Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.65 KB

README.md

File metadata and controls

67 lines (48 loc) · 1.65 KB

Mirrors China

TODO

  • Upgrade to Vue3
  • Docker support
  • Pinia how to work with router like Vuex:
// Vue2 + Vuex + Vue router
router.beforeEach((to, from, next) => {
  store.dispatch("onLoading", true);
  next();
});

router.afterEach((to, from) => {
  store.dispatch("onLoading", false);
});

How to convert it use Pinia?(code source)

  • 100% test coverage
  • tidy style
  • split one into many components
  • mirror sites sync
  • revise, supplement tag_color in static/data.json file

Setup

# install dependencies
pnpm install

# serve with hot reload at localhost:5173
pnpm serve

# build for production with minification
pnpm build

Docker:

docker-compose up -d

Data source

  • static/data.json

Acknowledgements

App level

Vue3 level