Commit Graph
24 Commits
Author SHA1 Message Date
bruno 14b99826eb feat(viewer): #90 regroupement fonctionnel des boutons de la barre d'actions + spacers
CI / lint (push) Successful in 1m18s
CI / security (push) Successful in 55s
CI / test (push) Successful in 2m10s
CI / build (push) Successful in 48s
CI / e2e (push) Successful in 11m0s
Ordre: [TOC][pop-out][Bookmark] | [Editer][Source][.md][Forge] | [Copier][PDF][Export] | [Partager]
- viewer.js: construction par groupes nav/edit/export/share, spacer .action-sep
  entre groupes non vides; Pretty ancre au groupe edition
- popout.html: meme assemblage groupe, ordre aligne
- style.css: regle .file-actions .action-sep (1px, var(--border-md))
- tests: tests/frontend/toolbar-order.test.mjs (9) branche au CI
2026-09-14 22:47:46 -04:00
bruno 0201d963b7 fix(ui): panneau TOc 'Sur cette page' toujours ferme au demarrage, ouvre uniquement via bouton TOC
CI / lint (push) Successful in 1m19s
CI / security (push) Successful in 55s
CI / test (push) Successful in 2m24s
CI / build (push) Successful in 48s
CI / e2e (push) Successful in 10m57s
2026-09-14 22:06:33 -04:00
bruno 24b5dd033a feat(viewer): couverture pretty print tous langages code (aliases hljs, langues hors bundle common, Dockerfile/Makefile)
CI / lint (push) Successful in 1m18s
CI / security (push) Successful in 56s
CI / test (push) Successful in 2m31s
CI / build (push) Successful in 48s
CI / e2e (push) Successful in 10m41s
2026-09-14 20:33:54 -04:00
bruno 5426022273 fix: HTTP fallback for clipboard — execCommand('copy') textarea method
- Added copyToClipboard() in utils.js with dual strategy:
  - HTTPS: navigator.clipboard.writeText() (modern API)
  - HTTP: textarea + execCommand('copy') (legacy fallback)
- viewer.js: uses copyToClipboard() instead of direct navigator.clipboard
- popout.html: same dual-strategy inline
- Fixed: 'Erreur lors de la copie' on HTTP contexts
2026-07-25 10:32:39 -04:00
bruno 15a217eca4 feat: add copy-to-clipboard button on code blocks in viewer + popout
- CSS: .code-block-wrapper with relative positioning
- CSS: .copy-code-btn with hover opacity transition (hidden until hover)
- CSS: .copied state (green accent) after successful copy
- viewer.js: wraps each <pre> in .code-block-wrapper + appends copy button
- popout.html: same logic with vanilla JS (ES5 compatible)
- Button: 'Copier' → '✓ Copié' on click, reverts after 2s
- Toast: showToast('Code copié dans le presse-papiers') via navigator.clipboard
2026-07-25 10:27:40 -04:00
bruno b09a642f66 fix: copy ALL CSS custom properties via getComputedStyle from opener
CI / lint (push) Successful in 23s
CI / security (push) Successful in 13s
CI / test (push) Successful in 31s
CI / build (push) Successful in 9s
CI / e2e (push) Failing after 29s
- Iterates through ALL computed CSS variables (--*) from main app
- Uses getComputedStyle which works even if setProperty was used (themes.js)
- Sets properties via setProperty on popout root — EXACT theme match
- Fallback: localStorage obsigate-theme-mode for direct popout access
- Fixed typo in --text-primary (was 'teext-primary')
2026-07-24 15:36:00 -04:00
bruno 21ee86ffa0 fix: popout inherits exact theme via opener window inline styles
CI / lint (push) Successful in 24s
CI / security (push) Successful in 14s
CI / test (push) Successful in 30s
CI / build (push) Successful in 18s
CI / e2e (push) Failing after 38s
- Copies documentElement.style.cssText from main app (has all CSS variables from themes.js setProperty)
- This propagates ANY theme (Github, Linear, Spotify, Notion, etc.) dark+light
- Fallback: localStorage obsigate-theme + obsigate-theme-mode for direct popout access
- Removes the !important hack — replaced by proper cssText inheritance
2026-07-24 15:35:17 -04:00
bruno 02396641f6 fix: force theme via inline style as ultimate fallback
CI / lint (push) Successful in 23s
CI / security (push) Successful in 13s
CI / test (push) Successful in 32s
CI / build (push) Successful in 7s
CI / e2e (push) Failing after 15s
- Added <style id='theme-force'> with !important dark theme defaults
- JS updates inline style for light mode
- Completely bypasses CSS variable loading, caching, or path issues
- Guarantees body bg/text color regardless of stylesheet state
2026-07-24 15:01:04 -04:00
bruno a583281edb fix: add cache-buster to popout style.css URL
CI / lint (push) Successful in 27s
CI / security (push) Successful in 13s
CI / test (push) Successful in 27s
CI / build (push) Successful in 12s
CI / e2e (push) Failing after 19s
- Changed /static/style.css to /static/style.css?v=2 to force fresh load
- Ensures popout gets the latest CSS with dark theme :root defaults
2026-07-24 14:59:46 -04:00
bruno a1355977d9 fix: popout theme inheritance via URL query param
CI / lint (push) Successful in 24s
CI / security (push) Successful in 14s
CI / test (push) Successful in 28s
CI / build (push) Successful in 18s
CI / e2e (push) Failing after 10s
- Pass current theme as ?theme=dark|light in popout URL
- viewer.js, app.js, palette.js all pass theme to popout
- popout.html reads theme from URL param first (fallback: localStorage, then dark)
- Also syncs theme back to localStorage when set via query param
2026-07-24 14:56:29 -04:00
bruno f3bfd01f93 fix: popout Mermaid rendering order — run before highlight.js
CI / lint (push) Successful in 22s
CI / security (push) Successful in 14s
CI / test (push) Successful in 29s
CI / build (push) Successful in 8s
CI / e2e (push) Failing after 15s
- Mermaid now initializes and renders BEFORE highlight.js processes code blocks
- highlight.js skips .language-mermaid blocks to avoid 'Could not find language' warnings
- Code highlighting runs after Mermaid SVG replaces the code block
- Removes duplicate/conflicting hljs calls
2026-07-24 14:45:13 -04:00
bruno 143b1d436b fix: popout window — theme, Mermaid, frontmatter parity with main app
CI / lint (push) Successful in 27s
CI / security (push) Successful in 13s
CI / test (push) Successful in 28s
CI / build (push) Successful in 8s
CI / e2e (push) Failing after 26s
- Added Mermaid CDN script + mermaid.initialize() with theme detection
- Frontmatter card now collapsed by default (matching main app isOpen=false)
- Hidden acCard initially when collapsed
- Theme inherits localStorage obsigate-theme (same as main window)
2026-07-24 14:22:45 -04:00
bruno db8041d990 Add close-all tabs, close-current-file command, fix AI toolbar light theme + sticky
CI / lint (push) Failing after 5s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / security (push) Successful in 8s
2026-06-03 13:33:44 -04:00
bruno 40a8801220 Add AI toolbar to popout HTML editor
CI / lint (push) Failing after 8s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / security (push) Successful in 10s
2026-06-03 07:29:36 -04:00
bruno dc9684e56c Remove deprecated PDF endpoint and update frontend download actions
Remove the old HTML-based PDF download endpoint in favor of the new
WeasyPrint-based one, and replace the generic "Télécharger" button
in popout.html with a dedicated .md download and a new PDF button.
Also remove the unused generic download button from the main file view.
2026-05-26 21:55:42 -04:00
bruno 370420aa00 ajout de fonctionnalités 2026-05-25 20:21:42 -04:00
bruno e1fcbe9ce7 feat: expand CSP connect-src directive and add async loading guard for highlight.js in popout view
- Add cdnjs.cloudflare.com, fonts.googleapis.com, and fonts.gstatic.com to connect-src CSP directive
- Add waitForHljs helper function with 50 attempt limit and 100ms polling interval
- Check if hljs is defined before highlighting code blocks in popout view
- Fall back to async waiting if hljs not immediately available to prevent undefined reference errors
2026-04-12 17:06:35 -04:00
bruno 309f945751 feat: add CodeMirror-based file editor with modal interface and syntax highlighting
- Import CodeMirror 6 modules via ESM with importmap for @codemirror/state
- Add editor modal UI with header, cancel/save buttons, and editor body container
- Implement openEditor function to load file content and initialize CodeMirror with language-specific syntax highlighting
- Support 20+ file extensions including markdown, python, javascript, html, css, json, xml, sql, php, cpp, java, rust, and shell scripts
2026-03-31 11:48:14 -04:00
bruno a093cf420b feat: Implement new popout window for content viewing with outline, scroll spy, reading progress, and theme support. 2026-03-26 22:18:49 -04:00
bruno 611cd3ca02 feat: add theme synchronization to popout windows with localStorage and cross-window storage events 2026-03-24 22:00:59 -04:00
bruno dc2fdbe109 feat: replace basic frontmatter display with structured accent card UI featuring badges, tags, and boolean flags 2026-03-24 19:29:09 -04:00
bruno f963c37012 feat: Introduce a dedicated popout page for standalone file viewing, including content rendering and actions. 2026-03-24 10:17:41 -04:00
bruno 46e054f5dd feat: Introduce core backend application with authentication API and a new popout HTML page. 2026-03-24 09:51:38 -04:00
bruno 5e300f9ada feat: implement initial frontend SPA with advanced search, query parsing, and autocomplete suggestions. 2026-03-24 09:41:03 -04:00