feat(website): live cross-page MPA previews for the Vue Router example [stack 5/6] - #12
Open
Huxpro wants to merge 1 commit into
Open
feat(website): live cross-page MPA previews for the Vue Router example [stack 5/6]#12Huxpro wants to merge 1 commit into
Huxpro wants to merge 1 commit into
Conversation
Docs integration for examples/vue-router-mpa: - <Go> embeds (from PR #5) show source browsing + single-bundle web preview + QR; in-heap navigation runs live there - new global <MpaPreview> component links to the Sparkling web shell in a new tab (built into public/mpa-preview/ by scripts/build-mpa-preview.mjs), where the FULL cross-page MPA flow runs live — a new tab so the browser's own back/forward drive the container stack - Examples page (en/zh) + sidebar wire in the Vue Router (MPA) entry and scope precisely what the web preview shows vs. 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
Docs integration that makes the Vue Router example live on the website: source browsing + single-bundle preview via
<Go>, and the full cross-page MPA flow via a new<MpaPreview>component.Related issues
Docs surface for #11.
Changes
<MpaPreview>component: opens the Sparkling web shell in a new tab (built intopublic/mpa-preview/byscripts/build-mpa-preview.mjs), so the browser's own back/forward drive the container stack — the full MPA flow runs live in the browser.<Go>web preview shows (in-heap nav) vs. device/harness (cross-page).build-mpa-previewfolded into the site'sdev/build(prepare-previews);public/mpa-preview/gitignored (generated).How to test
pnpm --filter sparkling-website dev # open /guide/examples/vue-router, click "Open the live MPA demo", tap push('/users'), use the browser back buttonChecklist
CONTRIBUTING.md.🤖 Generated with Claude Code
https://claude.ai/code/session_01ARyWgB3243gQx1exWK61Qb
Generated by Claude Code