NTU Marital Art Union
homepage.ntu.edu.tw/~b04611017/
transfer your csv data to json by python3
put your csv in ./data/
with name
xxxxx_club.csv
(for club data) or
xxxxx_common.csv
(for boothmap, countdown showtime data)
xxxxx
is version number. Like: 105_1
and Run
pip3 install markdown2 --user
python3 data/dataTojson.py
all the format spec are written in dataTojson.py
favicon.ico
static
├ logo
├ └ xxx.png
└── img
├── 105_1_logo.png
├── clublogo
│ └── 105_1_logo_*.png
├── countdown
│ ├── 105_1_count*_*.jpg
│ └── 105_1_count*_*_full.jpg
├── permanent_logo.png
└── permanent_logo_small.png
Remind : the picture should shrink
You can use https://tinypng.com/
Remember to put .ico in root
yarn global add @vue/cli
vue create
yarn install
yarn serve
yarn build
cp dist path_your_static_server
If not work(Vue-router is annoying), build development version.
yarn build --mode develop
yarn lint
Edit wrangler.toml
yarn global add @cloudflare/wrangler
wrangler config # Enter your api
yarn build # Build to dist/
wrangler preview # Testing
wrangler publish
The vue-router with history mode on will failed by 404.
To redirect the requests to index.html, add worker/index.js
to solve,
where the code is from https://gist.github.com/simevidas/d8ec51a51b05d4fabee6ddbe90c938ce
MIT