mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-17 06:30:50 +01:00
removed logs
This commit is contained in:
@ -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
|
||||
|
||||
@ -53,7 +53,6 @@ export const useUiStore = defineStore('uiStore', () => {
|
||||
const colorMode = useColorMode()
|
||||
|
||||
watchImmediate(currentThemeName, () => {
|
||||
console.log('set colorMode', currentThemeName.value)
|
||||
colorMode.preference = currentThemeName.value
|
||||
})
|
||||
|
||||
|
||||
@ -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 ?? ''
|
||||
|
||||
@ -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 }
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user