diff --git a/src/components/ui/dropdown/theme.vue b/src/components/ui/dropdown/theme.vue index 8cf3252..f16d71e 100644 --- a/src/components/ui/dropdown/theme.vue +++ b/src/components/ui/dropdown/theme.vue @@ -11,10 +11,6 @@ const { availableThemes, currentTheme } = storeToRefs(useUiStore()) const emit = defineEmits<{ select: [string] }>() -watchImmediate(availableThemes, () => - console.log('availableThemes', availableThemes), -) - const items = computed(() => availableThemes?.value.map((theme) => ({ ...theme, diff --git a/src/composables/useAndroidBackButton.ts b/src/composables/useAndroidBackButton.ts index 4ec9e5b..df240af 100644 --- a/src/composables/useAndroidBackButton.ts +++ b/src/composables/useAndroidBackButton.ts @@ -14,12 +14,20 @@ export function useAndroidBackButton() { // Track navigation history manually router.afterEach((to, from) => { - console.log('[AndroidBack] Navigation:', { to: to.path, from: from.path, stackSize: historyStack.value.length }) + console.log('[AndroidBack] Navigation:', { + to: to.path, + from: from.path, + stackSize: historyStack.value.length, + }) // If navigating forward (new page) - if (from.path && to.path !== from.path && !historyStack.value.includes(to.path)) { + if ( + from.path && + to.path !== from.path && + !historyStack.value.includes(to.path) + ) { historyStack.value.push(from.path) - console.log('[AndroidBack] Added to stack:', from.path, 'Stack:', historyStack.value) + //console.log('[AndroidBack] Added to stack:', from.path, 'Stack:', historyStack.value) } }) @@ -31,7 +39,10 @@ export function useAndroidBackButton() { // Listen to close requested event (triggered by Android back button) unlisten = await appWindow.onCloseRequested(async (event) => { - console.log('[AndroidBack] Back button pressed, stack size:', historyStack.value.length) + console.log( + '[AndroidBack] Back button pressed, stack size:', + historyStack.value.length, + ) // Check if we have history if (historyStack.value.length > 0) { @@ -40,7 +51,10 @@ export function useAndroidBackButton() { // Remove current page from stack historyStack.value.pop() - console.log('[AndroidBack] Going back, new stack size:', historyStack.value.length) + console.log( + '[AndroidBack] Going back, new stack size:', + historyStack.value.length, + ) // Navigate back in router router.back() diff --git a/src/middleware/database.ts b/src/middleware/database.ts index d9cf05b..15397ad 100644 --- a/src/middleware/database.ts +++ b/src/middleware/database.ts @@ -3,7 +3,6 @@ export default defineNuxtRouteMiddleware(async (to) => { const toVaultId = getSingleRouteParam(to.params.vaultId) - console.log('middleware', openVaults.value?.[toVaultId]) if (!openVaults.value?.[toVaultId]) { return await navigateTo(useLocalePath()({ name: 'vaultOpen' })) } diff --git a/src/pages/vault.vue b/src/pages/vault.vue index a038992..2d8db5f 100644 --- a/src/pages/vault.vue +++ b/src/pages/vault.vue @@ -67,7 +67,6 @@ onMounted(async () => { const knownDevice = await isKnownDeviceAsync() - console.log('knownDevice', knownDevice) if (!knownDevice) { console.log('not known device') newDeviceName.value = hostname.value ?? 'unknown' diff --git a/src/stores/desktop/workspace.ts b/src/stores/desktop/workspace.ts index 6ca7575..fa44958 100644 --- a/src/stores/desktop/workspace.ts +++ b/src/stores/desktop/workspace.ts @@ -37,7 +37,6 @@ export const useWorkspaceStore = defineStore('workspaceStore', () => { .from(haexWorkspaces) .orderBy(asc(haexWorkspaces.position)) - console.log('loadWorkspacesAsync', items) workspaces.value = items // Create default workspace if none exist diff --git a/src/stores/ui/index.ts b/src/stores/ui/index.ts index ad8cd52..23d6323 100644 --- a/src/stores/ui/index.ts +++ b/src/stores/ui/index.ts @@ -53,7 +53,6 @@ export const useUiStore = defineStore('uiStore', () => { const colorMode = useColorMode() watchImmediate(currentThemeName, () => { - console.log('set colorMode', currentThemeName.value) colorMode.preference = currentThemeName.value }) diff --git a/src/stores/vault/device.ts b/src/stores/vault/device.ts index 425db3b..6285cb6 100644 --- a/src/stores/vault/device.ts +++ b/src/stores/vault/device.ts @@ -52,7 +52,7 @@ export const useDeviceStore = defineStore('vaultInstanceStore', () => { const readDeviceNameAsync = async (id?: string) => { const { readDeviceNameAsync } = useVaultSettingsStore() const _id = id || deviceId.value - console.log('readDeviceNameAsync id', _id) + if (!_id) return deviceName.value = (await readDeviceNameAsync(_id))?.value ?? '' diff --git a/src/stores/vault/index.ts b/src/stores/vault/index.ts index c0e6305..fc04292 100644 --- a/src/stores/vault/index.ts +++ b/src/stores/vault/index.ts @@ -177,8 +177,8 @@ const drizzleCallback = (async ( }) } - console.log('drizzleCallback', method, sql, params) - console.log('drizzleCallback rows', rows, rows.slice(0, 1)) + /* console.log('drizzleCallback', method, sql, params) + console.log('drizzleCallback rows', rows, rows.slice(0, 1)) */ if (method === 'get') { return rows.length > 0 ? { rows: rows.at(0) } : { rows } diff --git a/src/stores/vault/notifications.ts b/src/stores/vault/notifications.ts index b98f9b0..918f895 100644 --- a/src/stores/vault/notifications.ts +++ b/src/stores/vault/notifications.ts @@ -40,7 +40,6 @@ export const useNotificationStore = defineStore('notificationStore', () => { const readNotificationsAsync = async (filter?: SQLWrapper[]) => { const { currentVault } = storeToRefs(useVaultStore()) - console.log('readNotificationsAsync', filter) if (filter) { return await currentVault.value?.drizzle .select() diff --git a/src/stores/vault/settings.ts b/src/stores/vault/settings.ts index 347618e..96893a5 100644 --- a/src/stores/vault/settings.ts +++ b/src/stores/vault/settings.ts @@ -32,7 +32,6 @@ export const useVaultSettingsStore = defineStore('vaultSettingsStore', () => { where: eq(schema.haexSettings.key, VaultSettingsKeyEnum.locale), }) - console.log('found currentLocaleRow', currentLocaleRow) if (currentLocaleRow?.value) { const currentLocale = app.$i18n.availableLocales.find( (locale) => locale === currentLocaleRow.value, @@ -129,7 +128,7 @@ export const useVaultSettingsStore = defineStore('vaultSettingsStore', () => { eq(schema.haexSettings.key, id), ), }) - console.log('store: readDeviceNameAsync', deviceName) + return deviceName?.id ? deviceName : undefined } @@ -149,7 +148,6 @@ export const useVaultSettingsStore = defineStore('vaultSettingsStore', () => { } return currentVault?.drizzle?.insert(schema.haexSettings).values({ - //id: crypto.randomUUID(), type: VaultSettingsTypeEnum.deviceName, key: deviceId, value: deviceName,