Skip to content

Commit

Permalink
chore: 调整预备组件库文件结构 (#219)
Browse files Browse the repository at this point in the history
* chore(docs): CI

* 通用设计规范

* feat(docs): 亮暗色切换动画

* 使用API托管字体

* 更新字体

* 更新文档

* 强制覆盖 vitepress 默认样式

* 调整结构

* chore: update dependencies

* Update button.md

* 更新设计文档

* refact: 迁移组件库设计文档

* fix CI

* fix CI

* 更新时间格式
  • Loading branch information
mark9804 committed Dec 23, 2023
1 parent 40113d9 commit 2e756f0
Show file tree
Hide file tree
Showing 46 changed files with 4,398 additions and 797 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/deploy-eden-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy Eden Docs To Preview Environment
on:
push:
branches:
- dev
- "dev/**"
- "feat/**"
paths:
- "lib/eden-design/**"

concurrency:
group: "eden-docs-deploy"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "18"
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Verify Change Logs
run: node common/scripts/install-run-rush.js change --verify
- name: Rush Update
run: node common/scripts/install-run-rush.js update
- name: Rush Install
run: node common/scripts/install-run-rush.js install
- name: Generate secret for translator
env:
YOUDAO_APP_ID: ${{ secrets.YOUDAO_APP_ID }}
YOUDAO_APP_SECRET: ${{ secrets.YOUDAO_APP_SECRET }}
shell: python
run: |
import os
YOUDAO_APP_ID = os.getenv("YOUDAO_APP_ID")
YOUDAO_APP_SECRET = os.getenv("YOUDAO_APP_SECRET")
with open("./apps/ba-online-toolbox/src/tools/public/secrets.json", "w") as f:
f.write(f'{{"appKey": "{YOUDAO_APP_ID}", "appSecret": "{YOUDAO_APP_SECRET}"}}')
- name: Rush build
run: node common/scripts/install-run-rush.js build --to eden-design --verbose
- name: Docs rsync deploy
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SERVER_PASS_PRODUCTION }}
ARGS: "-rltgoDzvO --delete"
SOURCE: "./lib/eden-design/docs/.vitepress/dist/"
REMOTE_HOST: ${{ secrets.SERVER_HOST_PRODUCTION }}
REMOTE_USER: ${{ secrets.SERVER_USER_PRODUCTION }}
TARGET: "/var/www/eden-docs"
EXCLUDE: ".git*"
10 changes: 5 additions & 5 deletions apps/ba-online-toolbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"js-yaml": "^4.1.0",
"pinia": "^2.1.4",
"pinia-plugin-persistedstate": "^3.1.0",
"vue": "^3.3.4",
"vue": "^3.3.7",
"vue-router": "^4.2.2",
"mitt": "^3.0.0"
},
Expand All @@ -50,17 +50,17 @@
"naive-ui": "^2.34.4",
"postcss": "~8.4.31",
"postcss-plugin-px2rem": "^0.8.1",
"postcss-preset-env": "^8.5.1",
"postcss-preset-env": "^9.2.0",
"prettier": "^2.8.8",
"sass": "^1.63.6",
"terser": "^5.18.2",
"typescript": "^5.1.6",
"unplugin-auto-import": "^0.16.6",
"unplugin-vue-components": "^0.25.1",
"unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2",
"vfonts": "^0.0.3",
"vite": ">=4.5.1",
"vue-eslint-parser": "^9.3.1",
"vue-tsc": "^1.8.3",
"ba-rig": "workspace:*"
}
}
}
8 changes: 4 additions & 4 deletions apps/ba-story-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"@vueuse/core": "^10.2.1",
"@vueuse/head": "^1.1.26",
"vue": "^3.3.4",
"vue": "^3.3.7",
"vue-router": "^4.2.2",
"ba-story-player": "workspace:*",
"@codemirror/lang-javascript": "~6.1.9",
Expand Down Expand Up @@ -46,8 +46,8 @@
"taze": "^0.10.3",
"typescript": "^5.1.6",
"unocss": "^0.53.0",
"unplugin-auto-import": "^0.16.6",
"unplugin-vue-components": "^0.25.1",
"unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2",
"unplugin-vue-macros": "^2.3.0",
"vite": ">=4.5.1",
"vite-plugin-pages": "^0.31.0",
Expand Down Expand Up @@ -81,4 +81,4 @@
"@unocss"
]
}
}
}
8 changes: 4 additions & 4 deletions apps/blue-archive-story-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
"pinia-plugin-persistedstate": "^3.1.0",
"pinyin-pro": "^3.15.4",
"typed.js": "^2.0.16",
"vue": "^3.3.4",
"vue": "^3.3.7",
"vue-router": "^4.2.2",
"xxhashjs": "^0.2.2",
"tailwindcss": "~3.3.3",
"autoprefixer": "~10.4.14",
"tailwindcss": "~3.3.5",
"autoprefixer": "~10.4.16",
"dayjs": "~1.11.9"
},
"devDependencies": {
Expand All @@ -55,7 +55,7 @@
"js-yaml": "^4.1.0",
"postcss": "~8.4.31",
"postcss-plugin-px2rem": "^0.8.1",
"postcss-preset-env": "^8.5.1",
"postcss-preset-env": "^9.2.0",
"rollup-plugin-visualizer": "^5.9.2",
"sass": "^1.63.6",
"terser": "^5.18.2",
Expand Down
Loading

0 comments on commit 2e756f0

Please sign in to comment.