Repository navigation
Conversation
Consolidate page views and shared controls, preserve astronomy interactions, add static prerendering and SEO metadata, and document the Bun development workflow.
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
Migrate the existing static website to Vue 3, Vite, and Vue Router, using Bun for dependency management and development commands.
The website remains fully static. Each page is prerendered during the build, preserving direct access to existing URLs while enabling client-side navigation. The project is named
website, with attribution retained asempty610.Page structure and routing
index.htmland anApp.vuecontainingRouterView.Home.vueVenus.vueMars.vueTerminal.vueBackIcon,MusicButton, andMusicPlayer.//venus//mars//delocalized%20configuration%20project//index.htmlaliases.Assets and interactions
src/assets/.public/.data-pageto prevent conflicts after navigation.Add page lifecycle cleanup for event listeners, timers, animation frames, observers, audio, and WebGL resources. Async initialization checks whether its page is still active before continuing.
Retain the existing planet models, moon views, orbit demonstrations, rover exploration, terminal interactions, and music controls. The Mars profile remains a narrow expandable card aligned with the model controls; expanding it preserves the model's position and dimensions.
Static rendering and SEO
src/seo.js.robots.txtandsitemap.xmlduring the build.The production domain remains
https://empty610.com/. Page aliases and fragments share the canonical URL of their main page.Development and deployment
Add a Bun lockfile and these commands:
bun run devbun run buildbun run checkbun run previewPublish the complete
dist/directory at the domain root. Known routes have their own staticindex.html, supporting direct visits and refreshes without a backend.Preserve the production CSP and hosting headers. Local development removes the CSP meta tag to support Vite updates. Vue and JavaScript changes reload the page; CSS updates in place.
Add a concise English developer README covering setup, directory structure, routes, page extension, SEO configuration, and deployment.
Validation
bun run buildpassed.bun run checkpassed:git diff --cached --checkpassed before committing.