From 737781e9aaef46c89e32e9ebaa7e3898936fe60d Mon Sep 17 00:00:00 2001 From: Tykayn Date: Sun, 12 Oct 2025 18:13:11 +0200 Subject: [PATCH] =?UTF-8?q?changer=20pages=20embed,=20ajout=20d=C3=A9finit?= =?UTF-8?q?ions=20culture=20g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/vcs.xml | 1 + frontend/public/embed.js | 34 +++--- frontend/src/app/app.html | 5 +- frontend/src/app/app.scss | 3 - frontend/src/app/pages/agenda/agenda.scss | 4 +- .../src/app/pages/batch-edit/batch-edit.html | 3 +- frontend/src/app/pages/embed/embed.html | 103 +++++++++--------- frontend/src/app/pages/embed/embed.scss | 5 +- frontend/src/app/pages/embed/embed.ts | 16 ++- frontend/src/app/pages/research/research.scss | 2 +- frontend/src/oedb-types.ts | 34 +++++- 11 files changed, 123 insertions(+), 87 deletions(-) diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 35eb1dd..6d53d7a 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,5 +2,6 @@ + \ No newline at end of file diff --git a/frontend/public/embed.js b/frontend/public/embed.js index eb49edc..1c9ff82 100644 --- a/frontend/public/embed.js +++ b/frontend/public/embed.js @@ -8,7 +8,7 @@ // Configuration par défaut const defaultConfig = { - apiUrl: 'https://api.oedb.fr', + apiUrl: 'https://api.openenventdatabase.org', theme: 'light', limit: 50, width: '100%', @@ -57,7 +57,7 @@ this.injectStyles(); this.render(); this.loadEvents(); - + if (this.config.autoRefresh) { this.startAutoRefresh(); } @@ -81,7 +81,7 @@ display: flex; flex-direction: column; } - + .oedb-embed-header { background: ${theme.primary}; color: white; @@ -89,52 +89,52 @@ text-align: center; font-weight: 600; } - + .oedb-embed-content { flex: 1; display: flex; overflow: hidden; } - + .oedb-embed-map { flex: 1; min-height: 200px; background: #f8f9fa; position: relative; } - + .oedb-embed-list { width: 300px; overflow-y: auto; border-left: 1px solid ${theme.border}; background: ${theme.background}; } - + .oedb-embed-list-only { width: 100%; } - + .oedb-embed-map-only { width: 100%; } - + .oedb-event-item { padding: 1rem; border-bottom: 1px solid ${theme.border}; cursor: pointer; transition: background-color 0.2s; } - + .oedb-event-item:hover { background: ${theme.border}; } - + .oedb-event-title { font-weight: 600; margin-bottom: 0.5rem; color: ${theme.text}; } - + .oedb-event-meta { font-size: 0.9rem; color: ${theme.secondary}; @@ -142,7 +142,7 @@ flex-direction: column; gap: 0.25rem; } - + .oedb-loading { display: flex; align-items: center; @@ -150,20 +150,20 @@ height: 200px; color: ${theme.secondary}; } - + .oedb-error { padding: 2rem; text-align: center; color: #e74c3c; background: #fdf2f2; } - + .oedb-no-events { padding: 2rem; text-align: center; color: ${theme.secondary}; } - + .oedb-map-placeholder { display: flex; align-items: center; @@ -195,7 +195,7 @@ async loadEvents() { if (this.isLoading) return; - + this.isLoading = true; this.showLoading(); diff --git a/frontend/src/app/app.html b/frontend/src/app/app.html index 2738940..deeb430 100644 --- a/frontend/src/app/app.html +++ b/frontend/src/app/app.html @@ -15,8 +15,8 @@
- - + +