Commit avant changement d'agent vers devstral
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
hx-get="/api/daily/calendar/{{.PrevMonth}}"
|
||||
hx-target="#daily-calendar"
|
||||
hx-swap="outerHTML"
|
||||
data-i18n-title="calendar.prevMonth"
|
||||
title="Mois précédent">
|
||||
‹
|
||||
</button>
|
||||
@ -12,6 +13,7 @@
|
||||
hx-get="/api/daily/calendar/{{.NextMonth}}"
|
||||
hx-target="#daily-calendar"
|
||||
hx-swap="outerHTML"
|
||||
data-i18n-title="calendar.nextMonth"
|
||||
title="Mois suivant">
|
||||
›
|
||||
</button>
|
||||
@ -52,6 +54,7 @@
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML"
|
||||
hx-push-url="true"
|
||||
data-i18n="calendar.today"
|
||||
title="Ouvrir la note du jour (Ctrl/Cmd+D)"
|
||||
style="flex: 1; padding: 0.5rem; font-size: 0.85rem;">
|
||||
📅 Aujourd'hui
|
||||
@ -60,6 +63,7 @@
|
||||
hx-get="/api/daily/calendar/{{.CurrentMonth}}"
|
||||
hx-target="#daily-calendar"
|
||||
hx-swap="outerHTML"
|
||||
data-i18n="calendar.thisMonth"
|
||||
title="Revenir au mois actuel"
|
||||
style="flex: 1; padding: 0.5rem; font-size: 0.85rem;">
|
||||
🗓️ Ce mois
|
||||
|
||||
@ -18,11 +18,11 @@
|
||||
{{end}}
|
||||
</label>
|
||||
{{if .IsHome}}
|
||||
<button type="button" class="toggle-preview-btn" hx-get="/api/home" hx-target="#editor-container" hx-swap="innerHTML" hx-push-url="true" title="Actualiser la page d'accueil">
|
||||
<button type="button" class="toggle-preview-btn" hx-get="/api/home" hx-target="#editor-container" hx-swap="innerHTML" hx-push-url="true" data-i18n="editor.refresh" title="Actualiser la page d'accueil">
|
||||
🔄 Actualiser
|
||||
</button>
|
||||
{{else}}
|
||||
<button type="button" id="toggle-preview-btn" class="toggle-preview-btn" onclick="togglePreview()" title="Mode: Éditeur + Preview (cliquer pour Éditeur seul)">
|
||||
<button type="button" id="toggle-preview-btn" class="toggle-preview-btn" onclick="togglePreview()" data-i18n-title="editor.togglePreview" title="Mode: Éditeur + Preview (cliquer pour Éditeur seul)">
|
||||
◫ Split
|
||||
</button>
|
||||
{{end}}
|
||||
@ -53,7 +53,7 @@
|
||||
{{if not .IsHome}}
|
||||
<div class="editor-actions">
|
||||
<div class="editor-actions-primary">
|
||||
<button type="submit">Enregistrer</button>
|
||||
<button type="submit" data-i18n="editor.save">Enregistrer</button>
|
||||
<button
|
||||
hx-delete="/api/notes/{{.Filename}}"
|
||||
hx-confirm="Êtes-vous sûr de vouloir supprimer cette note ({{.Filename}}) ?"
|
||||
@ -61,6 +61,7 @@
|
||||
hx-swap="innerHTML"
|
||||
class="secondary"
|
||||
type="button"
|
||||
data-i18n="editor.delete"
|
||||
>
|
||||
Supprimer
|
||||
</button>
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
type="search"
|
||||
name="query"
|
||||
placeholder="Rechercher une note (mot-clé, tag:projet, title:... )"
|
||||
data-i18n-placeholder="search.placeholder"
|
||||
hx-get="/api/search"
|
||||
hx-trigger="keyup changed delay:500ms, search"
|
||||
hx-target="#search-results"
|
||||
@ -43,10 +44,11 @@
|
||||
hx-swap="innerHTML"
|
||||
hx-push-url="true"
|
||||
style="white-space: nowrap;"
|
||||
data-i18n="menu.home"
|
||||
title="Retour à la page d'accueil (Ctrl/Cmd+H)">
|
||||
🏠 Accueil
|
||||
</button>
|
||||
<button onclick="showNewNoteModal()" style="white-space: nowrap;" title="Créer une nouvelle note (Ctrl/Cmd+N)">
|
||||
<button onclick="showNewNoteModal()" style="white-space: nowrap;" data-i18n="menu.newNote" title="Créer une nouvelle note (Ctrl/Cmd+N)">
|
||||
✨ Nouvelle note
|
||||
</button>
|
||||
</header>
|
||||
@ -163,6 +165,9 @@
|
||||
<button class="settings-tab" onclick="switchSettingsTab('editor')">
|
||||
⌨️ Éditeur
|
||||
</button>
|
||||
<button class="settings-tab" onclick="switchSettingsTab('other')">
|
||||
⚙️ Autre
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Section Thèmes -->
|
||||
@ -443,6 +448,37 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Section Autre (Langue) -->
|
||||
<div id="other-section" class="settings-section" style="display: none;">
|
||||
<h3 style="font-size: 1.1rem; color: var(--text-primary); margin-bottom: var(--spacing-lg);">🌍 Langue / Language</h3>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: var(--spacing-md);">
|
||||
<label class="language-option" style="display: flex; align-items: center; padding: var(--spacing-lg); background: var(--bg-secondary); border-radius: var(--radius-md); border: 2px solid var(--border-primary); cursor: pointer; transition: all 0.2s ease;">
|
||||
<input type="radio" name="language" value="en" style="margin-right: var(--spacing-md); width: 20px; height: 20px; cursor: pointer;">
|
||||
<div style="flex: 1;">
|
||||
<div style="font-weight: 500; color: var(--text-primary); margin-bottom: 0.25rem; font-size: 1rem;">
|
||||
🇬🇧 English
|
||||
</div>
|
||||
<div style="font-size: 0.85rem; color: var(--text-secondary);">
|
||||
English interface
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
|
||||
<label class="language-option" style="display: flex; align-items: center; padding: var(--spacing-lg); background: var(--bg-secondary); border-radius: var(--radius-md); border: 2px solid var(--border-primary); cursor: pointer; transition: all 0.2s ease;">
|
||||
<input type="radio" name="language" value="fr" style="margin-right: var(--spacing-md); width: 20px; height: 20px; cursor: pointer;">
|
||||
<div style="flex: 1;">
|
||||
<div style="font-weight: 500; color: var(--text-primary); margin-bottom: 0.25rem; font-size: 1rem;">
|
||||
🇫🇷 Français
|
||||
</div>
|
||||
<div style="font-size: 0.85rem; color: var(--text-secondary);">
|
||||
Interface en français
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="theme-modal-footer">
|
||||
<button type="button" class="secondary" onclick="closeThemeModal()">Fermer</button>
|
||||
@ -467,7 +503,7 @@
|
||||
<section>
|
||||
<div class="sidebar-section-header" data-section="favorites" onclick="toggleSidebarSection('favorites', event)" style="cursor: pointer; display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0;">
|
||||
<span class="section-toggle expanded">▶</span>
|
||||
<h2 class="sidebar-section-title" style="margin: 0; flex: 1;">⭐ Favoris</h2>
|
||||
<h2 class="sidebar-section-title" data-i18n="sidebar.favorites" style="margin: 0; flex: 1;">⭐ Favoris</h2>
|
||||
</div>
|
||||
<div class="sidebar-section-content" id="favorites-content" style="display: block;">
|
||||
<div id="favorites-list"
|
||||
@ -485,7 +521,7 @@
|
||||
<section>
|
||||
<div class="sidebar-section-header" data-section="daily-notes" onclick="toggleSidebarSection('daily-notes', event)" style="cursor: pointer; display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0;">
|
||||
<span class="section-toggle expanded">▶</span>
|
||||
<h2 class="sidebar-section-title" style="margin: 0; flex: 1;">📅 Daily Notes</h2>
|
||||
<h2 class="sidebar-section-title" data-i18n="sidebar.daily" style="margin: 0; flex: 1;">📅 Daily Notes</h2>
|
||||
</div>
|
||||
<div class="sidebar-section-content" id="daily-notes-content" style="display: block;">
|
||||
<div id="daily-calendar-container"
|
||||
@ -525,7 +561,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Bouton Nouveau dossier avant les paramètres -->
|
||||
<button onclick="showNewFolderModal()" class="folder-create-btn sidebar-action-btn" title="Créer un nouveau dossier (Ctrl/Cmd+Shift+F)">
|
||||
<button onclick="showNewFolderModal()" class="folder-create-btn sidebar-action-btn" data-i18n="fileTree.newFolder" title="Créer un nouveau dossier (Ctrl/Cmd+Shift+F)">
|
||||
📁 Nouveau dossier
|
||||
</button>
|
||||
|
||||
@ -537,7 +573,7 @@
|
||||
<circle cx="12" cy="12" r="3"></circle>
|
||||
<path d="M12 1v6m0 6v6m-6-6h6m6 0h-6m-5.3-5.3l4.2 4.2m4.2 4.2l4.2 4.2m0-12.6l-4.2 4.2m-4.2 4.2L2.7 19.3"></path>
|
||||
</svg>
|
||||
<span>Paramètres</span>
|
||||
<span data-i18n="settings.title">Paramètres</span>
|
||||
</button>
|
||||
|
||||
<!-- Bouton À propos -->
|
||||
|
||||
Reference in New Issue
Block a user