diff --git a/components/AppHeader.vue b/components/AppHeader.vue index 43c7502..20af8af 100644 --- a/components/AppHeader.vue +++ b/components/AppHeader.vue @@ -73,14 +73,14 @@ role="menuitem" @click="sleepGpu" >{{ gpuSleeping ? 'Sleeping…' : 'Sleep' }} -
- + @click="menuOpen = false" + >Settings withDefaults(defineProps<{ subtitle: string - current?: 'studio' | 'library' | 'director' | 'queue' + current?: 'studio' | 'library' | 'director' | 'queue' | 'settings' wide?: boolean - showSettings?: boolean queueCount?: number }>(), { current: 'studio', wide: false, - showSettings: false, queueCount: 0 }) const emit = defineEmits<{ - settings: [] gpu: [] }>() @@ -198,11 +195,6 @@ function closeMenu() { menuOpen.value = false } -function openSettings() { - menuOpen.value = false - emit('settings') -} - function applyHealth(health: { comfy?: { ok?: boolean; busy?: boolean; asleep?: boolean } imageComfy?: { ok?: boolean; busy?: boolean } diff --git a/components/SettingsModal.vue b/components/SettingsForm.vue similarity index 85% rename from components/SettingsModal.vue rename to components/SettingsForm.vue index 43868ac..73dd4ec 100644 --- a/components/SettingsModal.vue +++ b/components/SettingsForm.vue @@ -1,16 +1,22 @@ diff --git a/pages/index.vue b/pages/index.vue index a91173e..1fa3ac3 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -3,9 +3,7 @@ @@ -1976,16 +1974,6 @@ - ltxWorkflowEnabled({ studio: runtimeConfig.public.studio, @@ -2606,7 +2592,6 @@ const renamingFamily = ref(false) const renameDraft = ref('') const renameInput = ref(null) const unlockPassword = ref('') -const settingsOpen = ref(false) const queueAutoRun = ref(false) const queuePendingCount = ref(0) const activeQueueId = ref('') @@ -3761,8 +3746,6 @@ onMounted(async () => { loraPollAt = Date.now() void loadGenerationPresets() await loadDirectorScripts().catch(() => null) - userName.value = me.user?.name || me.user?.email || '' - authMode.value = me.authMode || '' instanceName.value = me.instanceName || instanceName.value || 'AIGen' applyInstancePrivacy() setTimeout(() => { void loadLibrary(true).catch(() => null) }, 6000) @@ -3794,10 +3777,6 @@ watch(folderId, () => { applyThumbnailDefault() }) -watch(settingsOpen, (open) => { - if (!open) void loadPromptPresets() -}) - watch(recommendPresetId, (id) => { try { localStorage.setItem('aigen-prompt-preset', id) } catch { /* ignore */ } }) diff --git a/pages/library.vue b/pages/library.vue index f0ec55c..fa3a963 100644 --- a/pages/library.vue +++ b/pages/library.vue @@ -4,8 +4,6 @@ subtitle="Library" current="library" wide - show-settings - @settings="settingsOpen = true" />
@@ -282,17 +280,6 @@
- -
isXaigenStudio({ studio: runtimeConfig.public.studio, instanceName: runtimeConfig.public.instanceName || instanceName.value })) -const authMode = ref('') -const userName = ref('') -const settingsOpen = ref(false) const folders = ref([]) const clips = ref([]) const stills = ref([]) @@ -892,8 +876,6 @@ onMounted(async () => { $fetch<{ user?: { name?: string; email?: string }; authEnabled?: boolean; authMode?: string; instanceName?: string }>('/api/auth/me').catch(() => ({ user: null })), loadLibrary().catch(() => applyLibrary({ folders: [], clips: [], stills: [] })) ]) - userName.value = me.user?.name || me.user?.email || '' - authMode.value = me.authMode || '' instanceName.value = me.instanceName || instanceName.value await nextTick() measure() diff --git a/pages/settings.vue b/pages/settings.vue new file mode 100644 index 0000000..d5c31d7 --- /dev/null +++ b/pages/settings.vue @@ -0,0 +1,19 @@ + + +