-
-
Notifications
You must be signed in to change notification settings - Fork 78
Home
神代綺凜 edited this page Dec 29, 2020
·
45 revisions
不太建议您阅读或学习本项目的代码,这是我在初学 vue 时边学边写的实践成品,很多地方都不够优雅;例如开发初期缺乏组件化思想,导致单页文件十分长,HTML 层级很多,可能会让您看得头晕眼花;又例如我上来就拿着 mdui 一通写,过了一年才发现有 vuetify,但是已经太迟了啊,我已经写了好多定制的样式了,全换过去再调一遍 UI 不如杀了我(
重构有想过,但仅仅只是想过
工具箱成型后加入了越来越多的功能(主要是材料计算那块),重构成本变得越来越大,我写着写着毕业了社畜了也越来越懒,这简直就是个恶性循环,所以算了,随它去吧
yarn install
yarn run serve
yarn run build
-
VUE_APP_GTAG
- Optional, Google Analytics gtag ID. -
VUE_APP_CDN
- Optional, CDN URL of static resources, usually ends with a slash\
. -
USE_CDN
- Optional, set it totrue
if you want to let website load and service worker precache resources from CDN specified byVUE_APP_CDN
.-
VUE_APP_CDN
must be setted before enable it. - Because of some limitations of PWA, some files will be automatically processed to ensure that
index.html
,manifest.json
,service-worker.js
will not be loaded from CDN.
-
-
OCRSPACE_API_KEY
- Optional, API Key of ocr.space, default ishelloworld
if not set. -
BAIDUBCE_API_KEY
andBAIDUBCE_SECRET_KEY
- Optional, Baidu OCR will be used if both of them are set.
* Baidu OCR will only be used to recognize Chinese.
yarn run lint
yarn run update-data
or
# Load data through jsDelivr CDN, recommend in China, but sometimes may be out of date due to cache
yarn run update-data:cdn
or
git clone https://github.com/Kengxxiao/ArknightsGameData --depth=1 ../ArknightsGameData
# Alternate data, will be used when there are some errors in Kengxxiao/ArknightsGameData
# git clone https://github.com/Dimbreath/ArknightsData --depth=1 ../ArknightsData
yarn run update-data:local
Used to deploy to GitHub Pages automatically, please ignore if not needed.
After forking this repo, you can enable it on "Actions" page, and set the following secrets:
-
ACCESS_TOKEN
: Create here, just check "repo". -
GTAG
: Corresponding to ENVVUE_APP_GTAG
-
CDN
: Corresponding to ENVVUE_APP_CDN
-
USE_CDN
: Corresponding to ENVUSE_CDN