Compare commits
2 commits
b642deb087
...
788222967b
Author | SHA1 | Date | |
---|---|---|---|
788222967b | |||
bca209ef81 |
8 changed files with 29 additions and 20 deletions
3
app.vue
3
app.vue
|
@ -6,9 +6,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import ContextMenu from '~/components/UserInterface/ContextMenu.vue';
|
|
||||||
import { render } from 'vue';
|
|
||||||
|
|
||||||
const banner = useState("banner", () => false);
|
const banner = useState("banner", () => false);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
|
@ -66,7 +66,6 @@
|
||||||
import DOMPurify from 'dompurify';
|
import DOMPurify from 'dompurify';
|
||||||
import { parse } from 'marked';
|
import { parse } from 'marked';
|
||||||
import type { MessageProps } from '~/types/props';
|
import type { MessageProps } from '~/types/props';
|
||||||
import generateIrcColor from '~/utils/generateIrcColor';
|
|
||||||
import MessageMedia from './MessageMedia.vue';
|
import MessageMedia from './MessageMedia.vue';
|
||||||
import MessageReply from './UserInterface/MessageReply.vue';
|
import MessageReply from './UserInterface/MessageReply.vue';
|
||||||
|
|
||||||
|
|
11
components/Settings/AppSettings/index.ts
Normal file
11
components/Settings/AppSettings/index.ts
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
import Appearance from './Appearance.vue';
|
||||||
|
import Notifications from './Notifications.vue';
|
||||||
|
import Keybinds from './Keybinds.vue';
|
||||||
|
import Language from './Language.vue';
|
||||||
|
|
||||||
|
export {
|
||||||
|
Appearance,
|
||||||
|
Notifications,
|
||||||
|
Keybinds,
|
||||||
|
Language,
|
||||||
|
}
|
13
components/Settings/UserSettings/index.ts
Normal file
13
components/Settings/UserSettings/index.ts
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import Profile from './Profile.vue';
|
||||||
|
import Account from './Account.vue';
|
||||||
|
import Privacy from './Privacy.vue';
|
||||||
|
import Devices from './Devices.vue';
|
||||||
|
import Connections from './Connections.vue';
|
||||||
|
|
||||||
|
export {
|
||||||
|
Profile,
|
||||||
|
Account,
|
||||||
|
Privacy,
|
||||||
|
Devices,
|
||||||
|
Connections,
|
||||||
|
}
|
|
@ -22,8 +22,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { StatsResponse } from '~/types/interfaces';
|
|
||||||
|
|
||||||
|
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
layout: "auth"
|
layout: "auth"
|
||||||
|
|
|
@ -46,9 +46,13 @@
|
||||||
|
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { Profile, Account, Privacy, Devices, Connections } from '~/components/Settings/UserSettings';
|
||||||
|
import { Appearance, Notifications, Keybinds, Language } from '~/components/Settings/AppSettings';
|
||||||
|
|
||||||
import VerticalSpacer from '~/components/UserInterface/VerticalSpacer.vue';
|
import VerticalSpacer from '~/components/UserInterface/VerticalSpacer.vue';
|
||||||
import Button from '~/components/UserInterface/Button.vue';
|
import Button from '~/components/UserInterface/Button.vue';
|
||||||
|
|
||||||
|
|
||||||
const { logout } = useAuth()
|
const { logout } = useAuth()
|
||||||
const appConfig = useRuntimeConfig()
|
const appConfig = useRuntimeConfig()
|
||||||
|
|
||||||
|
@ -62,17 +66,6 @@ interface Category {
|
||||||
pages: Page[];
|
pages: Page[];
|
||||||
}
|
}
|
||||||
|
|
||||||
import Profile from '~/components/Settings/UserSettings/Profile.vue';
|
|
||||||
import Account from '~/components/Settings/UserSettings/Account.vue';
|
|
||||||
import Privacy from '~/components/Settings/UserSettings/Privacy.vue';
|
|
||||||
import Devices from '~/components/Settings/UserSettings/Devices.vue';
|
|
||||||
import Connections from '~/components/Settings/UserSettings/Connections.vue';
|
|
||||||
|
|
||||||
import Appearance from '~/components/Settings/AppSettings/Appearance.vue';
|
|
||||||
import Notifications from '~/components/Settings/AppSettings/Notifications.vue';
|
|
||||||
import Keybinds from '~/components/Settings/AppSettings/Keybinds.vue';
|
|
||||||
import Language from '~/components/Settings/AppSettings/Language.vue';
|
|
||||||
|
|
||||||
const settingsCategories = {
|
const settingsCategories = {
|
||||||
userSettings: {
|
userSettings: {
|
||||||
displayName: "User Settings",
|
displayName: "User Settings",
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import type { RuntimeNuxtHooks } from 'nuxt/schema';
|
|
||||||
|
|
||||||
declare module "nuxt/schema" {
|
declare module "nuxt/schema" {
|
||||||
interface RuntimeNuxtHooks {
|
interface RuntimeNuxtHooks {
|
||||||
"app:message:right-clicked": (payload: { messageId: string }) => void
|
"app:message:right-clicked": (payload: { messageId: string }) => void
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import type { NitroFetchRequest, NitroFetchOptions } from "nitropack";
|
import type { NitroFetchOptions } from "nitropack";
|
||||||
|
|
||||||
export default async <T>(path: string, options: NitroFetchOptions<string> = {}) => {
|
export default async <T>(path: string, options: NitroFetchOptions<string> = {}) => {
|
||||||
console.log("path received:", path);
|
console.log("path received:", path);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue