1018 B
1018 B
Architecture — Q-Edit
Overview
- UI shell:
index.html+style.css - App logic:
script.js(currently a single-file controller) - New utilities:
src/utils/format.js(pure helpers; safe to unit test) - Docs & CI: under
docs/and.gitea/
Data Flow (current)
- DOM is initialized from
index.html. script.jswires event listeners, loads data (local or remote), renders lists in#content-summaryand sidebars (#file-tree), and manages pagination/filtering.- User interactions update in-memory state and the DOM.
Near-Term Refactor Plan
- Gradually split
script.jsinto modules:src/state/*for app statesrc/services/*for data I/Osrc/ui/*for renderingsrc/utils/*for helpers (started)
- Load modules via
<script type="module">or continue classic scripts by exposing namespaces onwindow(decision TBD via ADR).
Compatibility
- App remains deployable as static files.
- Tests run in Node (jsdom) and do not require a server.