living-ai-documentation 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/frontend/config.js +3 -2
- package/dist/src/frontend/i18n/en.json +1 -1
- package/dist/src/frontend/i18n/fr.json +1 -1
- package/dist/src/frontend/index.html +38 -37
- package/dist/src/frontend/workspace/app.js +331 -66
- package/dist/src/frontend/workspace/app.js.map +1 -1
- package/dist/src/frontend/workspace/app.ts +424 -82
- package/dist/src/frontend/workspace/index.html +142 -71
- package/dist/src/frontend/workspace/persistence.js +61 -0
- package/dist/src/frontend/workspace/persistence.js.map +1 -1
- package/dist/src/frontend/workspace/persistence.ts +110 -0
- package/dist/src/frontend/workspace/styles.css +251 -32
- package/dist/src/routes/workspace.d.ts.map +1 -1
- package/dist/src/routes/workspace.js +377 -6
- package/dist/src/routes/workspace.js.map +1 -1
- package/package.json +2 -2
|
@@ -6,8 +6,9 @@ async function loadConfig() {
|
|
|
6
6
|
await window.initI18n(cfg.language || 'en');
|
|
7
7
|
window.applyI18n();
|
|
8
8
|
if (cfg.title) document.title = cfg.title;
|
|
9
|
-
document.getElementById("app-title").textContent =
|
|
10
|
-
|
|
9
|
+
document.getElementById("app-title").textContent = "Living AI Documentation";
|
|
10
|
+
const subtitle = document.getElementById("app-subtitle");
|
|
11
|
+
if (subtitle) subtitle.textContent = cfg.title || "";
|
|
11
12
|
if (cfg.filenamePattern) {
|
|
12
13
|
document.getElementById("welcome-pattern").textContent =
|
|
13
14
|
cfg.filenamePattern + ".md";
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"nav.toggle_sidebar": "Toggle sidebar",
|
|
20
20
|
"nav.search_placeholder": "Search docs…",
|
|
21
21
|
"nav.search_mobile_placeholder": "Search…",
|
|
22
|
-
"nav.workspace": "Workspace",
|
|
22
|
+
"nav.workspace": "Agentic Workspace",
|
|
23
23
|
"nav.toggle_dark": "Toggle dark mode",
|
|
24
24
|
"nav.export": "Export",
|
|
25
25
|
"nav.toggle_categories": "Show/hide category grouping",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"nav.toggle_sidebar": "Afficher/masquer le panneau",
|
|
20
20
|
"nav.search_placeholder": "Rechercher dans les docs…",
|
|
21
21
|
"nav.search_mobile_placeholder": "Rechercher…",
|
|
22
|
-
"nav.workspace": "Workspace",
|
|
22
|
+
"nav.workspace": "Workspace Agentique",
|
|
23
23
|
"nav.toggle_dark": "Basculer le mode sombre",
|
|
24
24
|
"nav.export": "Exporter",
|
|
25
25
|
"nav.toggle_categories": "Afficher/masquer le regroupement par catégorie",
|
|
@@ -531,61 +531,37 @@
|
|
|
531
531
|
<!-- ── Header ── -->
|
|
532
532
|
<header
|
|
533
533
|
id="header"
|
|
534
|
-
class="no-print flex items-center justify-between px-
|
|
534
|
+
class="no-print flex items-center justify-between px-6 h-[72px] border-b border-gray-200 dark:border-gray-800 bg-white/90 dark:bg-gray-900/90 backdrop-blur shrink-0 z-10 shadow-sm"
|
|
535
535
|
>
|
|
536
536
|
<div class="flex items-center gap-3">
|
|
537
537
|
<span
|
|
538
538
|
onclick="toggleSidebar()"
|
|
539
539
|
data-i18n-title="nav.toggle_sidebar"
|
|
540
540
|
title="Toggle sidebar"
|
|
541
|
-
class="
|
|
542
|
-
|
|
543
|
-
>
|
|
544
|
-
<span id="app-title" class="font-semibold text-base tracking-tight"
|
|
545
|
-
>Living Documentation</span
|
|
541
|
+
class="select-none cursor-pointer hover:opacity-70 transition-opacity flex items-center justify-center w-[38px] h-[38px] rounded-[10px] bg-gray-900 dark:bg-gray-800 border border-gray-600 text-white text-xs font-black"
|
|
542
|
+
>LD</span
|
|
546
543
|
>
|
|
544
|
+
<div>
|
|
545
|
+
<div id="app-title" class="font-[760] text-[15px] tracking-tight leading-tight">Living AI Documentation</div>
|
|
546
|
+
<div id="app-subtitle" class="text-[12px] text-gray-400 mt-[2px]"></div>
|
|
547
|
+
</div>
|
|
547
548
|
</div>
|
|
548
549
|
|
|
549
550
|
<div class="flex items-center gap-2">
|
|
550
|
-
<!-- Search (desktop — mirrors sidebar search) -->
|
|
551
|
-
<div class="relative hidden sm:block">
|
|
552
|
-
<input
|
|
553
|
-
id="header-search"
|
|
554
|
-
type="search"
|
|
555
|
-
data-i18n-placeholder="nav.search_placeholder"
|
|
556
|
-
placeholder="Search docs…"
|
|
557
|
-
class="w-56 pl-8 pr-3 py-1.5 text-sm rounded-lg border border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-gray-100 placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500"
|
|
558
|
-
/>
|
|
559
|
-
<span
|
|
560
|
-
class="absolute left-2.5 top-2 text-gray-400 text-sm pointer-events-none"
|
|
561
|
-
>🔍</span
|
|
562
|
-
>
|
|
563
|
-
</div>
|
|
564
|
-
|
|
565
551
|
<!-- Workspace -->
|
|
566
552
|
<a
|
|
567
553
|
href="/workspace"
|
|
568
554
|
data-i18n="nav.workspace"
|
|
569
|
-
class="
|
|
555
|
+
class="h-[34px] px-3 rounded-[9px] border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 text-[13px] font-bold text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors inline-flex items-center no-underline"
|
|
570
556
|
>
|
|
571
557
|
Workspace
|
|
572
558
|
</a>
|
|
573
559
|
|
|
574
|
-
<!-- Dark mode toggle -->
|
|
575
|
-
<button
|
|
576
|
-
id="dark-toggle"
|
|
577
|
-
data-i18n-title="nav.toggle_dark"
|
|
578
|
-
title="Toggle dark mode"
|
|
579
|
-
class="p-2 rounded-lg text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"
|
|
580
|
-
>
|
|
581
|
-
<span id="dark-icon" class="text-lg leading-none">☾</span>
|
|
582
|
-
</button>
|
|
583
|
-
|
|
584
560
|
<!-- Word Cloud -->
|
|
585
561
|
<button
|
|
586
562
|
onclick="openWordCloud()"
|
|
587
563
|
data-i18n="nav.word_cloud"
|
|
588
|
-
class="
|
|
564
|
+
class="h-[34px] px-3 rounded-[9px] border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 text-[13px] font-bold text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors inline-flex items-center"
|
|
589
565
|
>
|
|
590
566
|
☁ Word Cloud
|
|
591
567
|
</button>
|
|
@@ -594,7 +570,7 @@
|
|
|
594
570
|
<a
|
|
595
571
|
href="/diagram"
|
|
596
572
|
data-i18n="nav.diagram"
|
|
597
|
-
class="
|
|
573
|
+
class="h-[34px] px-3 rounded-[9px] border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 text-[13px] font-bold text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors inline-flex items-center no-underline"
|
|
598
574
|
>
|
|
599
575
|
◇ Diagram
|
|
600
576
|
</a>
|
|
@@ -603,7 +579,7 @@
|
|
|
603
579
|
<a
|
|
604
580
|
href="/context"
|
|
605
581
|
data-i18n="nav.ai_context"
|
|
606
|
-
class="
|
|
582
|
+
class="h-[34px] px-3 rounded-[9px] border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 text-[13px] font-bold text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors inline-flex items-center no-underline"
|
|
607
583
|
>
|
|
608
584
|
AI Context
|
|
609
585
|
</a>
|
|
@@ -612,7 +588,7 @@
|
|
|
612
588
|
<button
|
|
613
589
|
onclick="openFilesModal()"
|
|
614
590
|
data-i18n="nav.files"
|
|
615
|
-
class="
|
|
591
|
+
class="h-[34px] px-3 rounded-[9px] border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 text-[13px] font-bold text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors inline-flex items-center"
|
|
616
592
|
>
|
|
617
593
|
📁 Files
|
|
618
594
|
</button>
|
|
@@ -621,10 +597,35 @@
|
|
|
621
597
|
<a
|
|
622
598
|
href="/admin"
|
|
623
599
|
data-i18n="nav.admin"
|
|
624
|
-
class="
|
|
600
|
+
class="h-[34px] px-3 rounded-[9px] border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 text-[13px] font-bold text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors inline-flex items-center no-underline"
|
|
625
601
|
>
|
|
626
602
|
⚙ Admin
|
|
627
603
|
</a>
|
|
604
|
+
|
|
605
|
+
<!-- Dark mode toggle -->
|
|
606
|
+
<button
|
|
607
|
+
id="dark-toggle"
|
|
608
|
+
data-i18n-title="nav.toggle_dark"
|
|
609
|
+
title="Toggle dark mode"
|
|
610
|
+
class="p-2 rounded-lg text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"
|
|
611
|
+
>
|
|
612
|
+
<span id="dark-icon" class="text-lg leading-none">☾</span>
|
|
613
|
+
</button>
|
|
614
|
+
|
|
615
|
+
<!-- Search (desktop — mirrors sidebar search) -->
|
|
616
|
+
<div class="relative hidden sm:block">
|
|
617
|
+
<input
|
|
618
|
+
id="header-search"
|
|
619
|
+
type="search"
|
|
620
|
+
data-i18n-placeholder="nav.search_placeholder"
|
|
621
|
+
placeholder="Search docs…"
|
|
622
|
+
class="w-56 pl-8 pr-3 py-1.5 text-sm rounded-lg border border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-gray-100 placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500"
|
|
623
|
+
/>
|
|
624
|
+
<span
|
|
625
|
+
class="absolute left-2.5 top-2 text-gray-400 text-sm pointer-events-none"
|
|
626
|
+
>🔍</span
|
|
627
|
+
>
|
|
628
|
+
</div>
|
|
628
629
|
</div>
|
|
629
630
|
</header>
|
|
630
631
|
|