feat(examples): vue-router-mpa — Vue Router driving Sparkling MPA navigation [stack 4/6] - #11
Open
Huxpro wants to merge 1 commit into
Open
Conversation
…igation
A Vue-Lynx example where Vue Router drives Sparkling multi-page native
navigation via sparkling-history. Doubles as a go-web example (dual lynx+web
build emitting *.web.bundle + *.lynx.bundle).
- file-based pages (src/pages/{main,users,settings}) with per-page routes.json
compiled into a route manifest by sparkling-history/codegen
- one createSparklingRouter() per bundle/heap; same-bundle navigations stay
in-heap (Home <-> Features, dynamic /users/:id, per-route guards), cross-bundle
navigations (incl. named routes, history.state, replace) open native
containers
- Home surfaces cross-nav failures inline so the go-web preview (which has no
native bridge) shows why cross-page nav needs a device/harness
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ARyWgB3243gQx1exWK61Qb
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
examples/vue-router-mpa, a Vue-Lynx example where Vue Router drives Sparkling multi-page native navigation viasparkling-history. Doubles as a go-web example (dual lynx+web build).Related issues
Reference/validation app for #8/#9.
Changes
src/pages/{main,users,settings}with per-pageroutes.jsoncompiled into a route manifest bysparkling-history/codegen.createSparklingRouter()per bundle/heap; same-bundle navs stay in-heap (Home↔Features, dynamic/users/:id, per-route guards), cross-bundle navs (named routes,history.state,replace) open native containers.*.web.bundle+*.lynx.bundle; Home surfaces cross-nav failures inline (so a bridge-less preview shows why cross-page needs a device/harness).How to test
Checklist
CONTRIBUTING.md.🤖 Generated with Claude Code
https://claude.ai/code/session_01ARyWgB3243gQx1exWK61Qb
Generated by Claude Code