
- Express server with routes for index and API endpoints - CRUD operations for markdown journals via REST API - Modular view components (header, main, footer, page) - UUID-based file management system for journals - Content-editable journal editor with AI assistant features - Package.json with express and uuid dependencies - Basic project structure with assets, config, tests, views directories 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
47 lines
1.4 KiB
JavaScript
47 lines
1.4 KiB
JavaScript
function getMain() {
|
||
return `
|
||
<main>
|
||
<section id="table-of-contents">
|
||
<h2>Table des matières</h2>
|
||
<nav id="toc-nav">
|
||
<!--
|
||
Exemple de structure hiérarchique :
|
||
<ul>
|
||
<li><a href="#section1">1. Introduction</a>
|
||
<ul>
|
||
<li><a href="#subsection1-1">1.1 Objectifs</a></li>
|
||
<li><a href="#subsection1-2">1.2 Contexte</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
-->
|
||
</nav>
|
||
</section>
|
||
|
||
<section id="design-journal">
|
||
<h2>Journal de conception</h2>
|
||
<div id="journal-editor" contenteditable="true">
|
||
<!-- Zone d’écriture principale -->
|
||
</div>
|
||
</section>
|
||
|
||
<section id="ai-assistant">
|
||
<h2>Assistant IA</h2>
|
||
<button id="activate-rephrase">Reformuler un passage</button>
|
||
<button id="check-inconsistencies">Vérifier incohérences</button>
|
||
<button id="check-duplications">Vérifier duplications</button>
|
||
<button id="give-advice">Conseil sur le contenu</button>
|
||
<div>
|
||
<input type="number" id="liberty-repeat-count" min="1" placeholder="Combien d’itérations ?" />
|
||
<button id="liberty-mode">Mode Liberté : auto-suites</button>
|
||
</div>
|
||
<div id="ai-assistant-feedback">
|
||
<!-- Résultats et retours IA affichés ici -->
|
||
</div>
|
||
</section>
|
||
</main>
|
||
`;
|
||
}
|
||
|
||
module.exports = { getMain };
|