Add logo and rename
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<div id="about-content" style="padding: 3rem; max-width: 900px; margin: 0 auto;">
|
||||
<div style="text-align: center; margin-bottom: 3rem;">
|
||||
<h1 style="font-size: 2.5rem; color: #c792ea; margin-bottom: 1rem;">
|
||||
📝 About Project Notes
|
||||
📝 About PersoNotes
|
||||
</h1>
|
||||
<p style="font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem;">
|
||||
Un gestionnaire de notes Markdown moderne et puissant
|
||||
|
||||
@ -36,6 +36,7 @@
|
||||
hx-get="/api/daily/{{.Date.Format "2006-01-02"}}"
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML"
|
||||
hx-push-url="true"
|
||||
{{end}}
|
||||
title="{{if .HasNote}}Note du {{.Date.Format "02/01/2006"}}{{else}}{{.Date.Format "02/01/2006"}} - Pas de note{{end}}">
|
||||
<span class="calendar-day-number">{{.Day}}</span>
|
||||
@ -49,6 +50,7 @@
|
||||
hx-get="/api/daily/today"
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML"
|
||||
hx-push-url="true"
|
||||
title="Ouvrir la note du jour">
|
||||
📅 Aujourd'hui
|
||||
</button>
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
hx-get="/api/daily/{{.Date.Format "2006-01-02"}}"
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML"
|
||||
hx-push-url="true"
|
||||
title="Note du {{.Date.Format "02/01/2006"}}">
|
||||
<span class="daily-recent-icon">📄</span>
|
||||
<div class="daily-recent-content">
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
{{end}}
|
||||
</label>
|
||||
{{if .IsHome}}
|
||||
<button type="button" class="toggle-preview-btn" hx-get="/api/home" hx-target="#editor-container" hx-swap="innerHTML" 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" title="Actualiser la page d'accueil">
|
||||
🔄 Actualiser
|
||||
</button>
|
||||
{{else}}
|
||||
@ -32,7 +32,7 @@
|
||||
<ul class="backlinks-list">
|
||||
{{range .Backlinks}}
|
||||
<li class="backlink-item">
|
||||
<a href="#" onclick="return false;" hx-get="/api/notes/{{.Path}}" hx-target="#editor-container" hx-swap="innerHTML" class="backlink-link">
|
||||
<a href="#" onclick="return false;" hx-get="/api/notes/{{.Path}}" hx-target="#editor-container" hx-swap="innerHTML" hx-push-url="true" class="backlink-link">
|
||||
📄 {{.Title}}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@ -16,7 +16,8 @@
|
||||
data-path="{{.Path}}"
|
||||
hx-get="/api/notes/{{.Path}}"
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML">
|
||||
hx-swap="innerHTML"
|
||||
hx-push-url="true">
|
||||
<span class="favorite-icon">⭐</span>
|
||||
<span class="favorite-file-icon">{{.Icon}}</span>
|
||||
<span class="favorite-name">{{.Title}}</span>
|
||||
|
||||
@ -1,21 +1,25 @@
|
||||
<!-- Indicateur de racine (non cliquable) -->
|
||||
<div class="root-indicator">
|
||||
<!-- Indicateur de racine (maintenant cliquable et rétractable) -->
|
||||
<div class="sidebar-section-header" data-section="notes" onclick="toggleSidebarSection('notes', event)" style="cursor: pointer;">
|
||||
<span class="section-toggle expanded">▶</span>
|
||||
<span class="folder-icon">🏠</span>
|
||||
<span class="folder-name">Racine</span>
|
||||
<span class="root-hint">(notes/)</span>
|
||||
</div>
|
||||
|
||||
<hr style="border: none; border-top: 1px solid var(--border-primary); margin: 0.75rem 0;">
|
||||
<!-- Contenu rétractable du file-tree -->
|
||||
<div class="sidebar-section-content" id="notes-content" style="display: block;">
|
||||
<hr style="border: none; border-top: 1px solid var(--border-primary); margin: 0.75rem 0;">
|
||||
|
||||
{{if .Tree}}
|
||||
{{if .Tree.Children}}
|
||||
{{template "tree-node" .Tree}}
|
||||
{{else}}
|
||||
<p style="color: var(--text-muted); font-size: 0.85rem;">Aucune note trouvée.</p>
|
||||
{{end}}
|
||||
{{else}}
|
||||
<p style="color: var(--text-muted); font-size: 0.85rem;">Aucune note trouvée.</p>
|
||||
{{end}}
|
||||
{{if .Tree}}
|
||||
{{if .Tree.Children}}
|
||||
{{template "tree-node" .Tree}}
|
||||
{{else}}
|
||||
<p style="color: var(--text-muted); font-size: 0.85rem;">Aucune note trouvée.</p>
|
||||
{{end}}
|
||||
{{else}}
|
||||
<p style="color: var(--text-muted); font-size: 0.85rem;">Aucune note trouvée.</p>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
{{define "tree-node"}}
|
||||
{{range .Children}}
|
||||
@ -43,6 +47,7 @@
|
||||
hx-get="/api/notes/{{.Path}}"
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML"
|
||||
hx-push-url="true"
|
||||
draggable="true">
|
||||
📄 {{.Name}}
|
||||
</a>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Project Notes</title>
|
||||
<title>PersoNotes</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
@ -21,15 +21,19 @@
|
||||
<script src="/frontend/src/font-manager.js"></script>
|
||||
<script src="/frontend/src/vim-mode-manager.js"></script>
|
||||
<script src="/frontend/src/favorites.js"></script>
|
||||
<script src="/frontend/src/sidebar-sections.js"></script>
|
||||
<script src="/frontend/src/keyboard-shortcuts.js"></script>
|
||||
<script type="module" src="/static/dist/project-notes-frontend.es.js"></script>
|
||||
<script type="module" src="/static/dist/personotes-frontend.es.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<button id="toggle-sidebar-btn" title="Afficher/Masquer la barre latérale (Ctrl/Cmd+B)" style="background: none; border: none; padding: 0; margin-right: 1rem; cursor: pointer; color: var(--text-primary); display: flex; align-items: center;">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
|
||||
</button>
|
||||
<h1>📝 Project Notes</h1>
|
||||
<div style="display: flex; align-items: center; gap: 0.75rem;">
|
||||
<img src="/static/images/logo.svg" alt="Logo" style="width: 40px; height: 40px;">
|
||||
<h1 style="margin: 0;">PersoNotes</h1>
|
||||
</div>
|
||||
<input
|
||||
type="search"
|
||||
name="query"
|
||||
@ -44,6 +48,7 @@
|
||||
hx-get="/api/home"
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML"
|
||||
hx-push-url="true"
|
||||
style="white-space: nowrap;"
|
||||
title="Retour à la page d'accueil (Ctrl/Cmd+H)">
|
||||
🏠 Accueil
|
||||
@ -52,6 +57,7 @@
|
||||
hx-get="/api/daily/today"
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML"
|
||||
hx-push-url="true"
|
||||
style="white-space: nowrap;"
|
||||
title="Note du jour (Ctrl/Cmd+D)">
|
||||
📅 Note du jour
|
||||
@ -478,13 +484,18 @@
|
||||
<hr>
|
||||
|
||||
<section>
|
||||
<h2 class="sidebar-section-title">⭐ Favoris</h2>
|
||||
<div id="favorites-list"
|
||||
hx-get="/api/favorites"
|
||||
hx-trigger="load"
|
||||
hx-swap="innerHTML">
|
||||
<!-- Les favoris apparaîtront ici -->
|
||||
<p style="color: var(--text-muted); font-size: 0.85rem; text-align: center;">Chargement...</p>
|
||||
<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>
|
||||
</div>
|
||||
<div class="sidebar-section-content" id="favorites-content" style="display: block;">
|
||||
<div id="favorites-list"
|
||||
hx-get="/api/favorites"
|
||||
hx-trigger="load once delay:100ms"
|
||||
hx-swap="innerHTML">
|
||||
<!-- Les favoris apparaîtront ici -->
|
||||
<p style="color: var(--text-muted); font-size: 0.85rem; text-align: center;">Chargement...</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -494,7 +505,7 @@
|
||||
<h2 class="sidebar-section-title">📅 Daily Notes</h2>
|
||||
<div id="daily-calendar-container"
|
||||
hx-get="/api/daily/calendar/{{.Now.Format "2006/01"}}"
|
||||
hx-trigger="load"
|
||||
hx-trigger="load once delay:150ms"
|
||||
hx-swap="innerHTML">
|
||||
<!-- Le calendrier apparaîtra ici -->
|
||||
<p style="color: var(--text-muted); font-size: 0.85rem; text-align: center;">Chargement...</p>
|
||||
@ -503,7 +514,7 @@
|
||||
<h3 style="font-size: 0.8rem; margin-top: var(--spacing-md); margin-bottom: var(--spacing-sm); color: var(--text-secondary);">Récentes</h3>
|
||||
<div id="daily-recent-container"
|
||||
hx-get="/api/daily/recent"
|
||||
hx-trigger="load"
|
||||
hx-trigger="load once delay:200ms"
|
||||
hx-swap="innerHTML">
|
||||
<!-- Les notes récentes apparaîtront ici -->
|
||||
</div>
|
||||
@ -521,7 +532,7 @@
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div id="file-tree" hx-get="/api/tree" hx-trigger="load" hx-swap="innerHTML">
|
||||
<div id="file-tree" hx-get="/api/tree" hx-trigger="load once delay:250ms" hx-swap="innerHTML">
|
||||
<!-- L'arborescence des fichiers apparaîtra ici -->
|
||||
<p style="color: var(--text-muted); font-size: 0.85rem;">Chargement...</p>
|
||||
</div>
|
||||
@ -546,7 +557,7 @@
|
||||
<!-- Bouton À propos -->
|
||||
<button
|
||||
class="sidebar-action-btn"
|
||||
title="À propos de Project Notes"
|
||||
title="À propos de PersoNotes"
|
||||
hx-get="/api/about"
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML"
|
||||
@ -562,7 +573,7 @@
|
||||
<main id="main-content">
|
||||
<div id="editor-container"
|
||||
hx-get="/api/home"
|
||||
hx-trigger="load"
|
||||
hx-trigger="load once"
|
||||
hx-swap="innerHTML">
|
||||
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; height: 50vh; text-align: center; color: var(--text-secondary);">
|
||||
<svg style="width: 64px; height: 64px; margin-bottom: 1rem; opacity: 0.5;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
|
||||
@ -10,7 +10,8 @@
|
||||
class="search-result-link"
|
||||
hx-get="/api/notes/{{.Path}}"
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML">
|
||||
hx-swap="innerHTML"
|
||||
hx-push-url="true">
|
||||
<div class="search-result-icon">📄</div>
|
||||
<div class="search-result-content">
|
||||
<div class="search-result-header">
|
||||
|
||||
Reference in New Issue
Block a user