docs: remove legacy implementation docs in French
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
// Contenu par défaut si le chargement du fichier échoue
|
||||
export const DEFAULT_HELP_CONTENT =
|
||||
`---
|
||||
titre: Guide d'utilisateur
|
||||
auteur: Bruno Charest
|
||||
creation_date: 2025-10-21
|
||||
modification_date: 2025-10-21T22:42:09-04:00
|
||||
catégorie: documentation
|
||||
tags:
|
||||
- aide
|
||||
- guide
|
||||
aliases: []
|
||||
status: publié
|
||||
publish: false
|
||||
favoris: true
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
---
|
||||
# 🧭 Guide d'utilisateur ObsiViewer
|
||||
|
||||
Bienvenue dans **ObsiViewer** !
|
||||
|
||||
Ce guide vous aidera à comprendre les principales fonctionnalités :
|
||||
|
||||
## 📂 Navigation
|
||||
- La barre latérale permet d'accéder aux notes, favoris, tags et modèles.
|
||||
- Les boutons en haut à droite donnent accès au mode édition, plein écran, et propriétés.
|
||||
|
||||
## ✏️ Édition
|
||||
- Le bouton ✏️ ouvre le **mode édition** basé sur CodeMirror 6.
|
||||
- Toutes les modifications sont sauvegardées automatiquement.
|
||||
|
||||
## 🏷️ Tags
|
||||
- Cliquez sur un tag pour voir toutes les notes qui le contiennent.
|
||||
- Utilisez l'icône 🏷️ à gauche pour modifier ou ajouter des tags.
|
||||
|
||||
## ⚙️ Paramètres
|
||||
- Les thèmes, langues et préférences sont gérés depuis le menu principal.
|
||||
|
||||
---
|
||||
|
||||
💡 **Astuce :** vous pouvez mettre à jour ce guide directement depuis votre voute Markdown.`;
|
||||
|
||||
// Variable pour stocker le contenu du fichier help.md
|
||||
let helpContent: string | null = null;
|
||||
|
||||
// Fonction pour charger le contenu du fichier help.md
|
||||
export async function loadHelpContent(): Promise<string> {
|
||||
if (helpContent) return helpContent;
|
||||
|
||||
try {
|
||||
// En mode développement, on utilise fetch pour charger le fichier
|
||||
if (import.meta.env.DEV) {
|
||||
const response = await fetch('/src/app/constants/help.md');
|
||||
if (response.ok) {
|
||||
helpContent = await response.text();
|
||||
return helpContent;
|
||||
}
|
||||
}
|
||||
|
||||
// En cas d'échec ou en production, utiliser le contenu par défaut
|
||||
helpContent = DEFAULT_HELP_CONTENT;
|
||||
return helpContent;
|
||||
} catch (error) {
|
||||
console.error('Erreur lors du chargement du fichier help.md:', error);
|
||||
return DEFAULT_HELP_CONTENT;
|
||||
}
|
||||
}
|
||||
|
||||
// Pour la rétrocompatibilité, on exporte une promesse qui se résout avec le contenu
|
||||
export const HELP_NOTE_RAW = DEFAULT_HELP_CONTENT;
|
||||
@@ -33,7 +33,7 @@ import { TrashExplorerComponent } from '../../layout/sidebar/trash/trash-explore
|
||||
<section *ngIf="env.features.showTestSection" class="border-b border-border dark:border-gray-800">
|
||||
<button class="w-full flex items-center justify-between px-4 py-3 text-sm font-semibold hover:bg-surface1 dark:hover:bg-card active:bg-surface2 dark:active:bg-gray-700 transition-colors"
|
||||
(click)="open.tests = !open.tests">
|
||||
<span>Section Tests</span>
|
||||
<span class="flex items-center gap-2">🧪 <span>Section Tests</span></span>
|
||||
<span class="text-xs text-muted transition-transform duration-200" [class.rotate-90]="!open.tests">{{ open.tests ? '▾' : '▸' }}</span>
|
||||
</button>
|
||||
<div *ngIf="open.tests" class="px-3 py-2">
|
||||
@@ -49,7 +49,7 @@ import { TrashExplorerComponent } from '../../layout/sidebar/trash/trash-explore
|
||||
<section class="border-b border-border dark:border-gray-800">
|
||||
<button class="w-full flex items-center justify-between px-4 py-3 text-sm font-semibold hover:bg-surface1 dark:hover:bg-card active:bg-surface2 dark:active:bg-gray-700 transition-colors"
|
||||
(click)="open.quick = !open.quick">
|
||||
<span>Quick Links</span>
|
||||
<span class="flex items-center gap-2">⚡ <span>Quick Links</span></span>
|
||||
<span class="text-xs text-muted transition-transform duration-200" [class.rotate-90]="!open.quick">{{ open.quick ? '▾' : '▸' }}</span>
|
||||
</button>
|
||||
<div *ngIf="open.quick" class="pt-1">
|
||||
@@ -61,7 +61,7 @@ import { TrashExplorerComponent } from '../../layout/sidebar/trash/trash-explore
|
||||
<section class="border-b border-border dark:border-gray-800">
|
||||
<button class="w-full flex items-center justify-between px-4 py-3 text-sm font-semibold hover:bg-surface1 dark:hover:bg-card active:bg-surface2 dark:active:bg-gray-700 transition-colors"
|
||||
(click)="open.folders = !open.folders">
|
||||
<span>Folders</span>
|
||||
<span class="flex items-center gap-2">📁 <span>Folders</span></span>
|
||||
<span class="text-xs text-muted transition-transform duration-200" [class.rotate-90]="!open.folders">{{ open.folders ? '▾' : '▸' }}</span>
|
||||
</button>
|
||||
<div *ngIf="open.folders" class="px-1 py-1">
|
||||
@@ -73,7 +73,7 @@ import { TrashExplorerComponent } from '../../layout/sidebar/trash/trash-explore
|
||||
<section class="border-b border-border dark:border-gray-800">
|
||||
<button class="w-full flex items-center justify-between px-4 py-3 text-sm font-semibold hover:bg-surface1 dark:hover:bg-card active:bg-surface2 dark:active:bg-gray-700 transition-colors"
|
||||
(click)="open.tags = !open.tags">
|
||||
<span>Tags</span>
|
||||
<span class="flex items-center gap-2">🏷️ <span>Tags</span></span>
|
||||
<span class="text-xs text-muted transition-transform duration-200" [class.rotate-90]="!open.tags">{{ open.tags ? '▾' : '▸' }}</span>
|
||||
</button>
|
||||
<div *ngIf="open.tags" class="px-2 py-2">
|
||||
@@ -93,7 +93,7 @@ import { TrashExplorerComponent } from '../../layout/sidebar/trash/trash-explore
|
||||
<section class="border-b border-border dark:border-gray-800">
|
||||
<button class="w-full flex items-center justify-between px-4 py-3 text-sm font-semibold hover:bg-surface1 dark:hover:bg-card active:bg-surface2 dark:active:bg-gray-700 transition-colors"
|
||||
(click)="open.trash = !open.trash; onFolder('.trash')">
|
||||
<span class="flex items-center gap-2">Trash</span>
|
||||
<span class="flex items-center gap-2">🗑️ <span>Trash</span></span>
|
||||
<span class="text-xs text-muted transition-transform duration-200" [class.rotate-90]="!open.trash">{{ open.trash ? '▾' : '▸' }}</span>
|
||||
</button>
|
||||
<div *ngIf="open.trash" class="px-1 py-2">
|
||||
|
||||
@@ -27,7 +27,7 @@ import { VaultService } from '../../../services/vault.service';
|
||||
<section *ngIf="env.features.showTestSection" class="border-b border-border dark:border-gray-800">
|
||||
<button class="w-full flex items-center justify-between px-3 py-2 text-sm font-semibold hover:bg-surface1 dark:hover:bg-card"
|
||||
(click)="open.tests = !open.tests">
|
||||
<span>Section Tests</span>
|
||||
<span class="flex items-center gap-2">🧪 <span>Section Tests</span></span>
|
||||
<span class="text-xs text-muted">{{ open.tests ? '▾' : '▸' }}</span>
|
||||
</button>
|
||||
<div *ngIf="open.tests" class="px-3 py-2">
|
||||
@@ -43,7 +43,7 @@ import { VaultService } from '../../../services/vault.service';
|
||||
<section class="border-b border-border dark:border-gray-800">
|
||||
<button class="w-full flex items-center justify-between px-3 py-2 text-sm font-semibold hover:bg-surface1 dark:hover:bg-card"
|
||||
(click)="open.quick = !open.quick">
|
||||
<span>Quick Links</span>
|
||||
<span class="flex items-center gap-2">⚡ <span>Quick Links</span></span>
|
||||
<span class="text-xs text-muted">{{ open.quick ? '▾' : '▸' }}</span>
|
||||
</button>
|
||||
<div *ngIf="open.quick" class="pt-1">
|
||||
@@ -55,7 +55,7 @@ import { VaultService } from '../../../services/vault.service';
|
||||
<section class="border-b border-border dark:border-gray-800">
|
||||
<button class="w-full flex items-center justify-between px-3 py-2 text-sm font-semibold hover:bg-surface1 dark:hover:bg-card"
|
||||
(click)="toggleFoldersSection()">
|
||||
<span>Folders</span>
|
||||
<span class="flex items-center gap-2">📁 <span>Folders</span></span>
|
||||
<span class="text-xs text-muted">{{ open.folders ? '▾' : '▸' }}</span>
|
||||
</button>
|
||||
<div *ngIf="open.folders" class="px-1 py-1">
|
||||
@@ -73,7 +73,7 @@ import { VaultService } from '../../../services/vault.service';
|
||||
<section class="border-b border-border dark:border-gray-800">
|
||||
<button class="w-full flex items-center justify-between px-3 py-2 text-sm font-semibold hover:bg-surface1 dark:hover:bg-card"
|
||||
(click)="open.tags = !open.tags">
|
||||
<span>Tags</span>
|
||||
<span class="flex items-center gap-2">🏷️ <span>Tags</span></span>
|
||||
<span class="text-xs text-muted">{{ open.tags ? '▾' : '▸' }}</span>
|
||||
</button>
|
||||
<div *ngIf="open.tags" class="px-2 py-2">
|
||||
@@ -93,7 +93,7 @@ import { VaultService } from '../../../services/vault.service';
|
||||
<section class="border-b border-border dark:border-gray-800">
|
||||
<button class="w-full flex items-center justify-between px-3 py-2 text-sm font-semibold hover:bg-surface1 dark:hover:bg-card"
|
||||
(click)="toggleTrashSection()">
|
||||
<span class="flex items-center gap-2">Trash</span>
|
||||
<span class="flex items-center gap-2">🗑️ <span>Trash</span></span>
|
||||
<span class="text-xs text-muted">{{ open.trash ? '▾' : '▸' }}</span>
|
||||
</button>
|
||||
<div *ngIf="open.trash" class="px-1 py-2">
|
||||
|
||||
Reference in New Issue
Block a user