Skip to content

Commit 9a4e93b

Browse files
Merge branch 'main' of https://github.com/SECTL/SecScore
2 parents df1d781 + 4af6157 commit 9a4e93b

27 files changed

Lines changed: 2068 additions & 1115 deletions

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: build
22

33
on:
4+
push:
45
workflow_dispatch:
56
inputs:
67
version:
@@ -39,6 +40,17 @@ jobs:
3940
echo "${{ github.event.inputs.version }} ${{ github.event.inputs.build }}"
4041
echo "__EOF__"
4142
} >> "$GITHUB_OUTPUT"
43+
elif [ "${{ github.event_name }}" = "push" ]; then
44+
VERSION="$(sed -n 's/.*"version":[[:space:]]*"\([^"]*\)".*/\1/p' package.json | head -n 1)"
45+
if [ -z "$VERSION" ]; then
46+
echo "无法从 package.json 读取 version 字段" >&2
47+
exit 1
48+
fi
49+
{
50+
echo "message<<__EOF__"
51+
echo "$VERSION build:all"
52+
echo "__EOF__"
53+
} >> "$GITHUB_OUTPUT"
4254
else
4355
{
4456
echo "message<<__EOF__"

AGENTS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
## 代码规范
44
- 所有代码必须符合 Rust 语言规范。
5-
- 所有代码跑`pnpm run typecheck` or `cargo typecheck`必须通过。
5+
- 所有代码跑`pnpm run typecheck` or `cargo typecheck` 必须通过。
66

77
## 提交与推送要求
8-
- 每次代码修改后,必须进行一次 Git 提交(commit)并推送(git push)。
8+
- 每次代码修改后,除非用户说明进行一次 Git 提交(commit)并推送(git push)否则不进行。
9+
- 用户只说 `cp` 时,表示执行一次 Git 提交(commit)并推送(git push)。
910
- 提交信息必须使用中文。
1011
- 提交信息必须遵循 Conventional Commits 规范,格式示例:`feat: 新增登录页表单校验``fix: 修复导出报告空指针问题`
1112
- 每次提交完成后,必须将对应提交推送到远端仓库(`git push`)。

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,13 @@
1919
"dependencies": {
2020
"@ant-design/icons": "^6.1.0",
2121
"@react-awesome-query-builder/antd": "6.7.0-alpha.0",
22-
"@react-querybuilder/antd": "^8.14.0",
23-
"@react-querybuilder/dnd": "^8.14.0",
2422
"@tauri-apps/api": "^2.5.0",
2523
"antd": "^6.3.1",
2624
"dayjs": "^1.11.20",
2725
"i18next": "^25.8.14",
2826
"json-rules-engine": "^7.3.1",
2927
"pinyin-pro": "^3.27.0",
3028
"react": "^19.2.1",
31-
"react-dnd": "^16.0.1",
32-
"react-dnd-html5-backend": "^16.0.1",
33-
"react-dnd-touch-backend": "^16.0.1",
3429
"react-dom": "^19.2.1",
3530
"react-i18next": "^16.5.6",
3631
"react-querybuilder": "^8.14.0",

pnpm-lock.yaml

Lines changed: 18 additions & 122 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)