diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-08-31 01:06:06 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-08-31 01:06:06 +0200 |
| commit | 0c2754d2d4cb1905d5e324f56fbc64e4afae526f (patch) | |
| tree | c081859830e017af09af9d2f73c6ff8442aacce4 /packages/meshbay-hub/src/meshbay_hub/api/webapp.py | |
| parent | f6e80064ff8c4869a6ba2cef908cc54326948463 (diff) | |
| download | meshbay-0c2754d2d4cb1905d5e324f56fbc64e4afae526f.tar.gz | |
refactor(ui): extract Explore, Login, Register and CreateGroup from app.js
ExplorePage → explore-page.js (static import), LoginPage/RegisterPage/
FirstRunPage → auth-page.js (static import, LoginPage receives onLogin
as a prop), CreateGroupPage/wizard → create-group-page.js (lazy-loaded
via dynamic import(), same pattern as AdminPage/NodePage).
app.js goes from 1803 to 914 lines. webapp.py _ASSETS extended with the
three new files and the previously missing extracted pages. Test fixtures
updated to follow the moved components.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/api/webapp.py')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/api/webapp.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/api/webapp.py b/packages/meshbay-hub/src/meshbay_hub/api/webapp.py index 6a96602..0821809 100644 --- a/packages/meshbay-hub/src/meshbay_hub/api/webapp.py +++ b/packages/meshbay-hub/src/meshbay_hub/api/webapp.py @@ -35,7 +35,12 @@ _ASSETS = ("style.css", "keyderive.js", "crypto.js", "transport.js", "app.js", "icon.js", "file-utils.js", "hub-client.js", "apps.js", "chat-app.js", "files-app.js", "video-player.js", "video-app.js", "music-app.js", "music-player.js", "photos-app.js", - "group-settings.js", "group-page.js") + "group-settings.js", "group-page.js", + # Pages extracted from app.js — statically imported or lazy-loaded, + # but all must participate in the content hash. + "auth-page.js", "explore-page.js", "create-group-page.js", + "admin-page.js", "node-page.js", "group-name.js", + "search-page.js", "settings-page.js", "profile-page.js") def _asset_version() -> str: |