8000 GitHub - b-rad-c/vanjs-spa-template: A Van.js SPA template with routing and history
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

b-rad-c/vanjs-spa-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚨 This is deprecated, see this example which uses a reusable VanJS SPA framework created from this repository. 🚨

Van.js SPA Template

A VanJS powered demo SPA, 3.38kB bundled and gzipped!

Features

  • Navigation powered by custom router with async loading
  • router integrates with browser history
  • state object integrates with browser history
  • user profile page with user id parsed from url params
  • user list sorted with url query params
  • navLink component for generating links based off of named routes, with url and query params and active class css styling
  • handler for user id not found
  • not found page

Instructions

install

npm install

develop

npm run dev

build

npm run build

build visualizer

npm run bundle-visualizer

Credit

router based on minimal router (no longer maintained)

spa app based on this example app from @ndrean

About

A Van.js SPA template with routing and history

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.1%
  • CSS 6.7%
  • HTML 3.2%
0