Skip to content

Commit

Permalink
Merge pull request #298 from Fuynkio/dev_shawn
Browse files Browse the repository at this point in the history
重构:改用Vue Router 和动态导入
  • Loading branch information
ZhaoZuohong authored Sep 19, 2023
2 parents e817e8a + 5f6945f commit dedc9b1
Show file tree
Hide file tree
Showing 15 changed files with 1,022 additions and 65 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pyinstaller-win-shawn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- dev_shawn
workflow_dispatch:

jobs:
build-win-amd64:
Expand All @@ -24,6 +25,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Install UPX
uses: crazy-max/ghaction-upx@v2
Expand Down
6 changes: 6 additions & 0 deletions ui/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ export {}

declare module '@vue/runtime-core' {
export interface GlobalComponents {
Basementsetting: typeof import('./src/components/Basementsetting.vue')['default']
Clue: typeof import('./src/components/Clue.vue')['default']
Email: typeof import('./src/components/Email.vue')['default']
HelpText: typeof import('./src/components/HelpText.vue')['default']
MaaBasic: typeof import('./src/components/MaaBasic.vue')['default']
Maahugmission: typeof import('./src/components/Maahugmission.vue')['default']
MaaRogue: typeof import('./src/components/MaaRogue.vue')['default']
MaaWeekly: typeof import('./src/components/MaaWeekly.vue')['default']
Mowersetting: typeof import('./src/components/Mowersetting.vue')['default']
NButton: typeof import('naive-ui')['NButton']
NCard: typeof import('naive-ui')['NCard']
NCheckbox: typeof import('naive-ui')['NCheckbox']
Expand All @@ -27,6 +30,7 @@ declare module '@vue/runtime-core' {
NInput: typeof import('naive-ui')['NInput']
NInputNumber: typeof import('naive-ui')['NInputNumber']
NLog: typeof import('naive-ui')['NLog']
NMenu: typeof import('naive-ui')['NMenu']
NRadio: typeof import('naive-ui')['NRadio']
NRadioButton: typeof import('naive-ui')['NRadioButton']
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
Expand All @@ -40,6 +44,8 @@ declare module '@vue/runtime-core' {
NTooltip: typeof import('naive-ui')['NTooltip']
PlanEditor: typeof import('./src/components/PlanEditor.vue')['default']
Recruit: typeof import('./src/components/Recruit.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
SKLand: typeof import('./src/components/SKLand.vue')['default']
}
}
154 changes: 153 additions & 1 deletion ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
"moment": "^2.29.4",
"pinia": "^2.0.32",
"reconnecting-websocket": "^4.4.0",
"router": "^1.3.8",
"vue": "^3.2.47",
"vue-axios": "^3.5.2",
"vue-chartjs": "^5.0.0"
"vue-chartjs": "^5.0.0",
"vue-router": "^4.2.4"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.2.0",
Expand Down
Loading

0 comments on commit dedc9b1

Please sign in to comment.