π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
chore: unify logs message
Smaug6739155ee7aadcb7
diff --git a/frontend/app/App.vue b/frontend/app/App.vueindex 62f445b6..38b2ff62 100644--- a/frontend/app/App.vue+++ b/frontend/app/App.vue@@ -51,7 +51,6 @@ watch(router.beforeEach((to, from) => {if (to.path.startsWith('/dashboard') && (from.path === '/login' || from.path === '/')) {- console.log('Setting loading state to true');isLoading.value = true;}return;diff --git a/frontend/app/composables/useCollapseStore.ts b/frontend/app/composables/useCollapseStore.tsindex 02b97a00..528d9402 100644--- a/frontend/app/composables/useCollapseStore.ts+++ b/frontend/app/composables/useCollapseStore.ts@@ -24,7 +24,7 @@ async function init() {if (isInitializing) return;isInitializing = true;- console.log('π³ [CollapseStore] Initializing store...');+ console.debug('[collapseStore] π³ Initializing store...');if (import.meta.server) {resolveReady();@@ -37,10 +37,10 @@ async function init() {getStatesRef().value = savedStates;}} catch (e) {- console.warn('[CollapseStore] Failed to load collapse states', e);+ console.warn('[collapseStore] Failed to load collapse states', e);} finally {resolveReady();- console.log('π³ [CollapseStore] Store is ready !');+ console.debug('[collapseStore] Store is ready !');}}diff --git a/frontend/app/pages/dashboard/teams/[id]/insights.vue b/frontend/app/pages/dashboard/teams/[id]/insights.vueindex a73c1ba9..08b91f0e 100644--- a/frontend/app/pages/dashboard/teams/[id]/insights.vue+++ b/frontend/app/pages/dashboard/teams/[id]/insights.vue@@ -26,7 +26,6 @@ watchEffect(() => {const nodes = tree.getSubtreeAsArray(teamId);for (const node of nodes) {const month = new Date(node.data.created_timestamp).toISOString().slice(5, 7);- console.log('Month:', month, 'Node ID:', node.data.id);const existing = stats.value.find(item => item.month === month);if (existing) {existing.count++;diff --git a/frontend/app/stores/_utils.ts b/frontend/app/stores/_utils.tsindex 24aa6824..b82a2911 100644--- a/frontend/app/stores/_utils.ts+++ b/frontend/app/stores/_utils.ts@@ -84,7 +84,7 @@ async function refreshAccessToken(): Promise<void> {if (refreshPromise) return refreshPromise;refreshPromise = (async () => {- console.log('[AUTH] Refreshing access token...');+ console.debug('[auth] Refreshing access token...');try {const baseUrl = getApiBaseUrl();@@ -99,9 +99,9 @@ async function refreshAccessToken(): Promise<void> {throw new Error('Refresh token invalid');}- console.log('[AUTH] Access token refreshed successfully.');+ console.debug('[auth] Access token refreshed successfully.');} catch (error) {- console.warn('[AUTH] Refresh failed, logging out.', error);+ console.warn('[auth] Refresh failed, logging out.', error);// Clear user stateuseUserStore().post_logout();diff --git a/frontend/app/stores/nodes.permissions.store.ts b/frontend/app/stores/nodes.permissions.store.tsindex 48e9b833..5a2e2958 100644--- a/frontend/app/stores/nodes.permissions.store.ts+++ b/frontend/app/stores/nodes.permissions.store.ts@@ -50,7 +50,7 @@ export const useNodesPermissionsStore = defineStore('nodesPermissions', () => {}async function addPermission(perm: Omit<Permission, 'id' | 'created_timestamp'>): Promise<Permission> {- console.log(`[store/nodes/permissions] Adding permission for user ${perm.user_id} on node ${perm.node_id}`);+ console.debug(`[store/nodes/permissions] Adding permission for user ${perm.user_id} on node ${perm.node_id}`);const node = nodes.get(perm.node_id);if (!node) throw 'Node not found in store, cannot add permission';const request = await makeRequest(`nodes/${perm.node_id}/permissions`, 'POST', perm);@@ -69,7 +69,7 @@ export const useNodesPermissionsStore = defineStore('nodesPermissions', () => {}async function updatePermission(perm: Permission) {- console.log(`[store/nodes/permissions] Updating permission for user ${perm.user_id} on node ${perm.node_id}`);+ console.debug(`[store/nodes/permissions] Updating permission for user ${perm.user_id} on node ${perm.node_id}`);const node = nodes.get(perm.node_id);if (!node) throw 'Node not found in store, cannot update permission';const request = await makeRequest(`nodes/${perm.node_id}/permissions/${perm.id}`, 'PATCH', { permission: perm.permission });@@ -87,7 +87,7 @@ export const useNodesPermissionsStore = defineStore('nodesPermissions', () => {}async function removePermission(perm: Permission) {- console.log(`[store/nodes/permissions] Removing permission for user ${perm.user_id} on node ${perm.node_id}`);+ console.debug(`[store/nodes/permissions] Removing permission for user ${perm.user_id} on node ${perm.node_id}`);const node = nodes.get(perm.node_id);if (!node) throw 'Node not found in store, cannot remove permission';const request = await makeRequest(`nodes/${perm.node_id}/permissions/${perm.id}`, 'DELETE', {});diff --git a/frontend/app/stores/nodes.store.ts b/frontend/app/stores/nodes.store.tsindex 56805945..bada012e 100644--- a/frontend/app/stores/nodes.store.ts+++ b/frontend/app/stores/nodes.store.ts@@ -43,7 +43,7 @@ export const useNodesStore = defineStore('nodes', () => {const resources = computed(() => nodes.value.getIdsByRole(4).map(id => nodes.value.get(id)!));async function init() {- console.log('[store/nodes] Initializing store');+ console.debug('[store/nodes] Initializing store');clear();isFetching.value = true;@@ -53,7 +53,7 @@ export const useNodesStore = defineStore('nodes', () => {isFetching.value = false;if (import.meta.client) {window.addEventListener('online', () => {- console.log('[store/nodes] Online, syncing local deltas');+ console.debug('[store/nodes] Online, syncing local deltas');syncLocalDeltas();});}@@ -201,7 +201,7 @@ export const useNodesStore = defineStore('nodes', () => {async function fetch<T extends FetchOptions>(opts?: T): Promise<'id' extends keyof T ? Node : IndexedCollection> {if (opts?.id && !nodes.value.get(opts.id)?.partial) return nodes.value.get(opts.id) as 'id' extends keyof T ? Node : IndexedCollection;- console.log(`[store/nodes] Fetching nodes with options: ${JSON.stringify(opts)}`);+ console.debug(`[store/nodes] Fetching nodes with options: ${JSON.stringify(opts)}`);const request = await makeRequest(`nodes/${opts?.id ? opts.id : 'user/@me'}`, 'GET', {});if (request.status == 'success') {if (opts?.id) {@@ -237,7 +237,7 @@ export const useNodesStore = defineStore('nodes', () => {}async function fetchShared(): Promise<IndexedCollection> {- console.log(`[store/nodes] Fetching shared nodes`);+ console.debug(`[store/nodes] Fetching shared nodes`);const request = await makeRequest(`nodes/shared/@me`, 'GET', {});if (request.status === 'success') {if (!request.result) return nodes.value as IndexedCollection;@@ -305,7 +305,7 @@ export const useNodesStore = defineStore('nodes', () => {async function update(node: Node): Promise<void> {if (node.partial) {- console.log('[store/nodes] Node looks partial, cannot update it directly.');+ console.debug('[store/nodes] Node looks partial, cannot update it directly.');const full_node = await fetch({ id: node.id });if (!full_node) throw 'Node not found';node = mergeNode(node, full_node);@@ -327,7 +327,7 @@ export const useNodesStore = defineStore('nodes', () => {async function duplicate(node: Node): Promise<DB_Node> {if (!node) throw 'Node not found in store, cannot duplicate';if (node.partial) {- console.log('[store/nodes] Node looks partial, cannot duplcate it directly.');+ console.debug('[store/nodes] Node looks partial, cannot duplcate it directly.');const full_node = await fetch({ id: node.id });if (!full_node) throw 'Node not found';node = mergeNode(node, full_node);diff --git a/frontend/app/stores/preferences/preferences.ts b/frontend/app/stores/preferences/preferences.tsindex 7d3a38c4..2eafbc56 100644--- a/frontend/app/stores/preferences/preferences.ts+++ b/frontend/app/stores/preferences/preferences.ts@@ -21,7 +21,7 @@ export const usePreferencesStore = defineStore('preferences', () => {const debouncedSync = useDebounceFn(syncToBackend, 1500);async function initStore() {- console.log('π¬ [Preferences] Initializing store...');+ console.debug('[preferences] π¬ Initializing store...');if (!import.meta.client) return;try {const raw = await localForage.getItem<Partial<Preferences>>('preferences');