diff --git a/document-parser/data/docling_studio.db b/document-parser/data/docling_studio.db index e08b47d..205f2f6 100644 Binary files a/document-parser/data/docling_studio.db and b/document-parser/data/docling_studio.db differ diff --git a/frontend/src/app/App.vue b/frontend/src/app/App.vue index 28afa5a..a74103d 100644 --- a/frontend/src/app/App.vue +++ b/frontend/src/app/App.vue @@ -1,18 +1,50 @@ diff --git a/frontend/src/pages/HistoryPage.vue b/frontend/src/pages/HistoryPage.vue index d1b6e8b..eceb7ed 100644 --- a/frontend/src/pages/HistoryPage.vue +++ b/frontend/src/pages/HistoryPage.vue @@ -2,74 +2,23 @@
- -
-
- {{ t('history.emptyDocs') }} -
-
-
-
- - - -
- {{ doc.filename }} - - {{ formatSize(doc.fileSize) }} - - - -
-
- -
-
-
+
@@ -85,9 +34,6 @@ onMounted(() => { padding: 16px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; - display: flex; - align-items: center; - justify-content: space-between; } .page-title { @@ -96,115 +42,8 @@ onMounted(() => { color: var(--text); } -.tab-bar { - display: flex; - gap: 4px; - background: var(--bg-secondary); - border-radius: 8px; - padding: 3px; -} - -.tab-btn { - background: none; - border: none; - padding: 6px 16px; - font-size: 13px; - font-weight: 500; - color: var(--text-muted); - border-radius: 6px; - cursor: pointer; - transition: all var(--transition); -} - -.tab-btn:hover { - color: var(--text); -} - -.tab-btn.active { - background: var(--bg-primary); - color: var(--text); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); -} - .page-content { flex: 1; overflow-y: auto; } - -.tab-empty { - text-align: center; - color: var(--text-muted); - padding: 60px 20px; - font-size: 14px; -} - -.doc-items { - display: flex; - flex-direction: column; - gap: 2px; -} - -.doc-row { - display: flex; - align-items: center; - justify-content: space-between; - padding: 14px 20px; - border-bottom: 1px solid var(--border); - transition: background var(--transition); -} - -.doc-row:hover { background: var(--bg-hover); } - -.doc-row-info { - display: flex; - align-items: center; - gap: 12px; - min-width: 0; - flex: 1; -} - -.doc-row-icon { - width: 18px; - height: 18px; - color: var(--accent); - flex-shrink: 0; -} - -.doc-row-meta { - display: flex; - flex-direction: column; - min-width: 0; -} - -.doc-row-name { - font-size: 14px; - font-weight: 500; - color: var(--text); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.doc-row-detail { - font-size: 12px; - color: var(--text-muted); - margin-top: 2px; - font-family: 'IBM Plex Mono', monospace; -} - -.doc-row-delete { - background: none; - border: none; - padding: 6px; - cursor: pointer; - color: var(--text-muted); - border-radius: 4px; - display: flex; - opacity: 0; - transition: all var(--transition); -} - -.doc-row:hover .doc-row-delete { opacity: 1; } -.doc-row-delete:hover { color: var(--error); background: rgba(239, 68, 68, 0.1); } -.doc-row-delete svg { width: 16px; height: 16px; } diff --git a/frontend/src/pages/HomePage.vue b/frontend/src/pages/HomePage.vue new file mode 100644 index 0000000..a175185 --- /dev/null +++ b/frontend/src/pages/HomePage.vue @@ -0,0 +1,270 @@ + + + + + diff --git a/frontend/src/shared/i18n.js b/frontend/src/shared/i18n.js index 4f6350b..bb7446a 100644 --- a/frontend/src/shared/i18n.js +++ b/frontend/src/shared/i18n.js @@ -3,9 +3,23 @@ import { useSettingsStore } from '../features/settings/store.js' const messages = { fr: { // Sidebar + 'nav.home': 'Accueil', 'nav.studio': 'Studio', + 'nav.documents': 'Documents', 'nav.history': 'Historique', 'nav.settings': 'Paramètres', + 'nav.collapse': 'Réduire la barre latérale', + 'nav.expand': 'Développer la barre latérale', + + // Top bar + 'topbar.newAnalysis': 'Nouvelle analyse', + + // Home + 'home.title': 'Docling Studio', + 'home.subtitle': 'Analysez, explorez et validez la structure de vos documents PDF grâce à Docling.', + 'home.documents': 'Documents', + 'home.analyses': 'Analyses', + 'home.recentDocs': 'Documents récents', // Studio — import 'studio.title': 'Intelligence des documents', @@ -84,9 +98,21 @@ const messages = { 'settings.language': 'Langue', }, en: { + 'nav.home': 'Home', 'nav.studio': 'Studio', + 'nav.documents': 'Documents', 'nav.history': 'History', 'nav.settings': 'Settings', + 'nav.collapse': 'Collapse sidebar', + 'nav.expand': 'Expand sidebar', + + 'topbar.newAnalysis': 'New analysis', + + 'home.title': 'Docling Studio', + 'home.subtitle': 'Analyze, explore and validate the structure of your PDF documents with Docling.', + 'home.documents': 'Documents', + 'home.analyses': 'Analyses', + 'home.recentDocs': 'Recent documents', 'studio.title': 'Document Intelligence', 'studio.subtitle': 'Upload a PDF document to start analyzing with Docling', diff --git a/frontend/src/shared/ui/AppSidebar.vue b/frontend/src/shared/ui/AppSidebar.vue index d51bef3..39ed932 100644 --- a/frontend/src/shared/ui/AppSidebar.vue +++ b/frontend/src/shared/ui/AppSidebar.vue @@ -1,26 +1,29 @@