Skip to content

📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

refactor: remove unnecessary comments for clarity

Smaug67391a386d0eca7e
diff --git a/backend/types/Snowflake.go b/backend/types/Snowflake.go
index ec92f57a..7e866200 100644
--- a/backend/types/Snowflake.go
+++ b/backend/types/Snowflake.go
@@ -19,7 +19,6 @@ func SnowflakeFromString(s string) (*Snowflake, error) {
}
func (s Snowflake) MarshalJSON() ([]byte, error) {
- // Renvoie l'ID entre guillemets, pour JSON
return json.Marshal(strconv.FormatUint(uint64(s), 10))
}
diff --git a/frontend/app/components/DataTable.vue b/frontend/app/components/DataTable.vue
index 56a9ff47..ee2589f5 100644
--- a/frontend/app/components/DataTable.vue
+++ b/frontend/app/components/DataTable.vue
@@ -97,7 +97,6 @@ paginator.filter(row => {
});
const data = paginator.currentPageItems;
-// Gestion de la sélection
const selectedRows = ref<Field[]>([]);
const toggleSelectAll = () => {
diff --git a/frontend/app/composables/useCollapseStore.ts b/frontend/app/composables/useCollapseStore.ts
index 528d9402..a912b46b 100644
--- a/frontend/app/composables/useCollapseStore.ts
+++ b/frontend/app/composables/useCollapseStore.ts
@@ -3,7 +3,6 @@ import localForage from 'localforage';
const COLLAPSE_STORAGE_KEY = 'collapse-states';
-// ─── LE SINGLETON VIT ICI DE MANIÈRE UNIQUE ───
let isInitializing = false;
let resolveReady: () => void;
diff --git a/frontend/app/composables/useMark.ts b/frontend/app/composables/useMark.ts
index fb75bd12..970b0a79 100644
--- a/frontend/app/composables/useMark.ts
+++ b/frontend/app/composables/useMark.ts
@@ -42,7 +42,6 @@ export function useMark() {
if (currentList.includes(id)) return;
- // Ajout et sauvegarde via le store de préférences
const newList = [...currentList, id];
preferencesStore.set('readAnnouncements', newList);
},
diff --git a/frontend/app/helpers/TreeBuilder.ts b/frontend/app/helpers/TreeBuilder.ts
index 34b03885..e370b218 100644
--- a/frontend/app/helpers/TreeBuilder.ts
+++ b/frontend/app/helpers/TreeBuilder.ts
@@ -23,7 +23,7 @@ export class TreeBuilder<T extends { id: string; parent_id?: string | null; role
) {}
/**
- * Transforme un nœud pur en item UI de manière isolée et le met en cache
+ * Transform a raw node into a TreeItem, using the cache if available.
*/
public getTransformedItem(id: string): TreeItem<T> | undefined {
if (this.transformCache.has(id)) {
diff --git a/frontend/app/helpers/markdown/colors.ts b/frontend/app/helpers/markdown/colors.ts
index 21962a9c..ee016ae4 100644
--- a/frontend/app/helpers/markdown/colors.ts
+++ b/frontend/app/helpers/markdown/colors.ts
@@ -41,14 +41,12 @@ function parseFunctionSyntax(state: StateInline, opts: Required<ColorPluginOptio
let color = src.slice(start + 7, endBrace).trim();
if (!color) return false;
- // Vérifier si c’est une couleur valide CSS
if (!isValidColor(color, opts)) {
color = `var(--${color})`; // fallback CSS variable
}
if (src[endBrace + 1] !== '(') return false;
- // Trouver la parenthèse fermante
let depth = 1;
let i = endBrace + 2;
while (i < src.length && depth > 0) {
@@ -61,11 +59,9 @@ function parseFunctionSyntax(state: StateInline, opts: Required<ColorPluginOptio
const contentStart = endBrace + 2;
const contentEnd = i - 1;
- // Injecter les tokens
const open = state.push('span_open', 'span', 1);
open.attrs = [['style', `color:${color}`]];
- // Tokenize le contenu interne pour supporter le formatage (bold, italic, etc.)
const oldPos = state.pos;
const oldMax = state.posMax;
state.pos = contentStart;
@@ -76,7 +72,7 @@ function parseFunctionSyntax(state: StateInline, opts: Required<ColorPluginOptio
state.push('span_close', 'span', -1);
- state.pos = i; // avancer le curseur
+ state.pos = i;
return true;
}
@@ -111,7 +107,6 @@ function parseBracketSyntax(state: StateInline, opts: Required<ColorPluginOption
const openToken = state.push('span_open', 'span', 1);
openToken.attrSet('style', `color:${colorValue}`);
- // Tokenize le contenu interne pour supporter le formatage (bold, italic, etc.)
const oldPos = state.pos;
const oldMax = state.posMax;
state.pos = innerStart;
diff --git a/frontend/app/helpers/markdown/katex.ts b/frontend/app/helpers/markdown/katex.ts
index f728d8c6..2abd4c03 100644
--- a/frontend/app/helpers/markdown/katex.ts
+++ b/frontend/app/helpers/markdown/katex.ts
@@ -25,7 +25,7 @@ function markdownItKatexPlugin(md: MarkdownIt) {
endMathPos = i;
break;
}
- // Si on a $ en fin
+ // If we have $ at the end
if (!isDisplay && state.src.charCodeAt(i - 1) !== 0x5c) {
found = true;
endMathPos = i;
diff --git a/frontend/app/styles/vendors/code-hljs.scss b/frontend/app/styles/vendors/code-hljs.scss
index 65dc8f82..30ff1dde 100644
--- a/frontend/app/styles/vendors/code-hljs.scss
+++ b/frontend/app/styles/vendors/code-hljs.scss
@@ -42,8 +42,6 @@ pre code.hljs {
.hljs-selector-id,
.hljs-type {
color: #56b6c2;
-
- /* turquoise élégant */
}
/* Literals & builtins */