Replace Books island iframe with native Dioxus WASM view router #37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_books_wasm_views"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replace the
<iframe src="http://localhost:8883">in the Books island with a native Dioxus view router using the already-complete views inviews/mod.rs.Changes
Cargo.toml: add[package.metadata.island]sobuild_standalone.shdiscovers this islandisland.rs: full rewrite — view router matching all 9 views (Home, BookList, Library, BookDetail, Page, Search, Import, Convert, Settings);base_urlfromcontext.api_host; view-change event dispatchlib.rs: removehost/portthread_locals; pass onlycontexttoBooksAppTesting
wasm-pack build --target web --features standaloneCloses #36
- Add [package.metadata.island] to Cargo.toml so build_standalone.sh discovers and builds this island as a standalone WASM package - Rewrite island.rs: remove iframe + postMessage theme sync; render all 9 views (Home, BookList, Library, BookDetail, Page, Search, Import, Convert, Settings) as native Dioxus components - base_url derived from context.api_host ("/hero_books" relative path works behind hero_proxy; absolute URL works for direct access) - View changes dispatched via hero:view-change custom event - lib.rs: remove host/port thread_locals, pass only context to BooksApp - Add ViewList with 5 nav views + 4 hidden detail views to metadata()WIP: Replace Books island iframe with native Dioxus WASM view routerto Replace Books island iframe with native Dioxus WASM view routerPull request closed