Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【更新】v0.13.9 #121

Merged
merged 31 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
520bce2
chore: 完善README
crrashh1542 Feb 27, 2024
6394210
ci: 调整配置项
crrashh1542 Feb 27, 2024
d12ee10
chore: 移除Yarn配置
crrashh1542 Mar 1, 2024
5a30b54
build: 将预编译脚本和数据移动至/scripts目录
crrashh1542 Mar 1, 2024
0fc226d
Merge branch 'wu_main' of https://github.com/crrashh1542/win-up-to-da…
crrashh1542 Mar 1, 2024
37a7fa8
chore(deps): 更新依赖
crrashh1542 Mar 1, 2024
0e12c48
chore(deps): 更新依赖&插件
crrashh1542 Mar 2, 2024
0f12534
chore(deps): 更新依赖
crrashh1542 Apr 7, 2024
db84c5f
fix(AboutPage): 详情卡片图标无法显示
crrashh1542 Apr 7, 2024
30b2f6c
chore: 使用Prettier格式化代码
crrashh1542 Jun 5, 2024
8ac36cf
build: 将Vite作为打包工具
crrashh1542 Jun 6, 2024
740b769
build: 让解析器不解析Web Component
crrashh1542 Jun 7, 2024
46ae9d7
chore(prebuild): 整理代码
crrashh1542 Jun 7, 2024
0b2f5f2
chore(prebuild): 将分支中的”/“改为”_“
crrashh1542 Jun 7, 2024
d3961e6
chore(utils): 将逻辑代码移入utils目录
crrashh1542 Jun 8, 2024
fa05cb8
perf: 启用代码分割
crrashh1542 Jun 8, 2024
dfbd718
perf: 将变量导出为单个字符
crrashh1542 Jun 8, 2024
a53ace6
ci: 修复更换分支系统后无法开始CI的问题
crrashh1542 Jun 9, 2024
a9a1180
chore(deps): 更新依赖
crrashh1542 Jun 9, 2024
60ac9f6
fix(AboutPage): 修复外部链接样式不生效的问题
crrashh1542 Jun 9, 2024
2087d9b
fix: 修复生产模式无法初始化的问题
crrashh1542 Jun 9, 2024
5c3ca83
build(deps): 更新依赖
crrashh1542 Jul 4, 2024
010025b
fix(TopNav): 修复移动端导航栏文字过多时溢出的问题
crrashh1542 Jul 31, 2024
e8af423
chore: 更换站点图标
crrashh1542 Jul 31, 2024
23b63c9
build(deps): 更新依赖
crrashh1542 Jul 31, 2024
ebee940
feat: 初步支持PWA
crrashh1542 Aug 1, 2024
d3c62a6
build(deps): 更新依赖
crrashh1542 Aug 7, 2024
0568473
build(deps): 更新依赖
crrashh1542 Aug 24, 2024
4e886de
style(AboutPage): 使关于卡片更Fluent化
crrashh1542 Aug 24, 2024
538badd
chore(parser): 移除不需要的项目信息
crrashh1542 Aug 24, 2024
a6e62d8
release: v0.13.9
crrashh1542 Aug 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:vue/vue3-essential"
],
"extends": ["eslint:recommended", "plugin:vue/vue3-essential"],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"vue"
],
"plugins": ["vue"],
"rules": {}
}
91 changes: 45 additions & 46 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,53 @@
name: 🐛 Bug 反馈
description: 遇到的任何问题都可以反馈!
labels: ["Bug"]
title: "【BUG】"
body:

- type: dropdown
attributes:
label: 出现位置
description: 你可以在此处指出该 Bug 出现于本项目的哪个位置。
options:
- 构建过程(Node)
- 生产模式页面(Browser)
- 开发模式页面(Browser)
- 操作逻辑
- 其它,请在后续详细补充
validations:
labels: ['Bug']
title: '【BUG】'
body:
- type: dropdown
attributes:
label: 出现位置
description: 你可以在此处指出该 Bug 出现于本项目的哪个位置。
options:
- 构建过程(Node)
- 生产模式页面(Browser)
- 开发模式页面(Browser)
- 操作逻辑
- 其它,请在后续详细补充
validations:
required: true

- type: input
attributes:
label: 项目版本
description: 你可以在此处输入 Bug 出现时项目的版本。若不填写则默认为 `dev` 分支最新版本。
placeholder: 格式为“包版本@hash (Build 构建数)”
- type: input
attributes:
label: 项目版本
description: 你可以在此处输入 Bug 出现时项目的版本。若不填写则默认为 `dev` 分支最新版本。
placeholder: 格式为“包版本@hash (Build 构建数)”

- type: textarea
attributes:
label: 具体表现
description: 你可以在此处描述该问题出现的具体情况,包括但不限于复现步骤、报错时的提示或日志等等。
validations:
required: true
- type: textarea
attributes:
label: 具体表现
description: 你可以在此处描述该问题出现的具体情况,包括但不限于复现步骤、报错时的提示或日志等等。
validations:
required: true

- type: textarea
attributes:
label: 预期表现
description: 你可以在此处描述你所希望的发生情形。
validations:
required: true
- type: textarea
attributes:
label: 预期表现
description: 你可以在此处描述你所希望的发生情形。
validations:
required: true

- type: dropdown
attributes:
label: 该 Bug 的优先级
description: 你可以在此处表述你希望该 Bug 得到开发者注意的优先级怎么样。
options:
- 高
- 中
- 低
- type: dropdown
attributes:
label: 该 Bug 的优先级
description: 你可以在此处表述你希望该 Bug 得到开发者注意的优先级怎么样。
options:
- 高
- 中
- 低

- type: checkboxes
attributes:
label: 提交 Issue 前须知
options:
- label: 我已经查看近期 Issues(包含 Open 和 Closed),未发现已存在此 Issue 或相似/同类型的 Issue。
required: true
- type: checkboxes
attributes:
label: 提交 Issue 前须知
options:
- label: 我已经查看近期 Issues(包含 Open 和 Closed),未发现已存在此 Issue 或相似/同类型的 Issue。
required: true
71 changes: 35 additions & 36 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@
name: 🚀 新功能提议
description: 想要啥新功能都可以建议!
labels: ["Feature"]
title: "【FEAT】"
body:
labels: ['Feature']
title: '【FEAT】'
body:
- type: dropdown
attributes:
label: 类型
description: 你可以在此处指出你想要的功能隶属于哪个类别。
options:
- UI & 设计
- 独立页面(如版本页面)
- 页内大版面组件
- 页内小部件
- 操作逻辑
- 其它,请在后续详细补充
validations:
required: true

- type: dropdown
attributes:
label: 类型
description: 你可以在此处指出你想要的功能隶属于哪个类别。
options:
- UI & 设计
- 独立页面(如版本页面)
- 页内大版面组件
- 页内小部件
- 操作逻辑
- 其它,请在后续详细补充
validations:
- type: textarea
attributes:
label: 具体要求
description: 你可以在此处描述你希望增加的功能的具体信息。
validations:
required: true

- type: textarea
attributes:
label: 具体要求
description: 你可以在此处描述你希望增加的功能的具体信息。
validations:
required: true

- type: dropdown
attributes:
label: 该请求的优先级
description: 你可以在此处表述你希望该功能请求得到注意的优先级怎么样。
options:
- 高
- 中
- 低
- type: dropdown
attributes:
label: 该请求的优先级
description: 你可以在此处表述你希望该功能请求得到注意的优先级怎么样。
options:
- 高
- 中
- 低

- type: checkboxes
attributes:
label: 提交 Issue 前须知
options:
- label: 我已经查看近期 Issues(包含 Open 和 Closed),未发现已存在此 Issue 或相似/同类型的 Issue。
required: true
- type: checkboxes
attributes:
label: 提交 Issue 前须知
options:
- label: 我已经查看近期 Issues(包含 Open 和 Closed),未发现已存在此 Issue 或相似/同类型的 Issue。
required: true
105 changes: 52 additions & 53 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
name: Build Production Page
on:
name: Build
on:
push:
# 由于其它分支为本地测试打包,故只 CI 主线变更
branches: [ wu_main ]
paths-ignore:
- '**.md'
- '**.txt'
- '.github/**'
- '!.github/workflows/**'
branches: [wu/main]
paths-ignore:
- '**.md'
- '**.txt'
- '.github/**'
- '!.github/workflows/**'
jobs:
setup:
name: Setup Project Info
runs-on: ubuntu-latest
outputs:
DIST_SUFFIX: ${{ steps.get-suffix.outputs.DIST_SUFFIX }}
steps:
- name: 🧐 Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
name: Setup Project Info
runs-on: ubuntu-latest
outputs:
DIST_SUFFIX: ${{ steps.get-suffix.outputs.DIST_SUFFIX }}
steps:
- name: 🧐 Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: 📙 Get Package Suffix
id: get-suffix
run: |
# 此处通过 jq 从 package.json 获取版本,否则在 depth
# 为 1 时通过 git tag 所读取的版本不准确
sudo apt-get install jq
VERSION=$(jq -r '.version' ./package.json)

- name: 📙 Get Package Suffix
id: get-suffix
run: |
# 此处通过 jq 从 package.json 获取版本,否则在 depth
# 为 1 时通过 git tag 所读取的版本不准确
sudo apt-get install jq
VERSION=$(jq -r '.version' ./package.json)

COMMIT_COUNT=$(git rev-list --count HEAD)
BUILD_DATE=$(date "+%y%m%d")
HEAD_SHA=$(git rev-parse --short HEAD)
echo "DIST_SUFFIX=v${VERSION}-${COMMIT_COUNT}-${BUILD_DATE}-${HEAD_SHA}" >> $GITHUB_OUTPUT
COMMIT_COUNT=$(git rev-list --count HEAD)
BUILD_DATE=$(date "+%y%m%d")
HEAD_SHA=$(git rev-parse --short HEAD)
echo "DIST_SUFFIX=v${VERSION}-${COMMIT_COUNT}-${BUILD_DATE}-${HEAD_SHA}" >> $GITHUB_OUTPUT

build:
name: Build Production Page
Expand All @@ -41,29 +41,28 @@ jobs:
DIST_NAME: dist-${{ needs.setup.outputs.DIST_SUFFIX }}
runs-on: ubuntu-latest
steps:
- name: 🧐 Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: '1'
- name: 🧐 Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: '1'

- name: 🛠️ Setup environment
id: setup
uses: pnpm/action-setup@v3
with:
version: 8
- name: 🛠️ Setup environment
id: setup
uses: pnpm/action-setup@v3
with:
version: 8

- name: ⚙️ Build production pages
id: build
run: |
pnpm install
pnpm add @vue/cli
pnpm build
- name: ⚙️ Build production pages
id: build
run: |
pnpm install
pnpm add @vue/cli
pnpm build

- name: 🌐 Upload the build
id: upload
uses: actions/upload-artifact@v4
with:
name: ${{ env.DIST_NAME }}
path: dist
retention-days: 60
- name: 🌐 Upload the build
id: upload
uses: actions/upload-artifact@v4
with:
name: ${{ env.DIST_NAME }}
path: dist
13 changes: 2 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
.DS_Store
node_modules
/dist
/temp

# Yarn files
/.pnp
.pnp.js
.pnp.cjs
.pnp.loader.mjs
.yarn/cache
.yarn/unplugged
.yarn/install-state.gz
dist

# local env files
.env.local
Expand All @@ -30,3 +20,4 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?
scripts/buildInfo.json
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 3,
"semi": false,
"singleQuote": true
}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
"recommendations": ["Vue.volar"]
}
5 changes: 0 additions & 5 deletions .yarnrc.yml

This file was deleted.

Loading