Skip to content

Commit

Permalink
Feat/dashboard (#623)
Browse files Browse the repository at this point in the history
* 分包:dashboard
---------

Co-authored-by: Zirui Cai <1575079435@qq.com>
Co-authored-by: ZeYi Lin <944270057@qq.com>
  • Loading branch information
3 people authored Jun 14, 2024
1 parent 38ba03f commit 8baf6cf
Show file tree
Hide file tree
Showing 226 changed files with 713 additions and 18,094 deletions.
Empty file removed .config/copy_frontend.py
Empty file.
21 changes: 0 additions & 21 deletions .editorconfig

This file was deleted.

19 changes: 0 additions & 19 deletions .eslintignore

This file was deleted.

21 changes: 0 additions & 21 deletions .eslintrc.cjs

This file was deleted.

9 changes: 1 addition & 8 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish to PyPI
on:
push:
tags:
- 'v*.*.*'
- "v*.*.*"

jobs:
publish:
Expand All @@ -18,14 +18,8 @@ jobs:
with:
python-version: "3.10"

- name: Set Nodejs
uses: actions/setup-node@v4
with:
node-version: 18.15.0

- name: Install Dependencies
run: |
npm install
pip install -r requirements.txt
pip install build
pip install twine
Expand All @@ -36,7 +30,6 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

run: |
npm run build.release
python -m build
python -m twine upload dist/*
Expand Down
12 changes: 5 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# frontend
node_modules
template
package-lock.json
pnpm-lock.yaml
vue/components.d.ts
vue/auto-imports.d.ts
swanlog/
swanlog.bak/
.eslintrc-auto-import.json
node_modules/
dist/
vue/
swanlab/template/
package-lock.json
.eslintrc-auto-import.json

# test
temp/
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit

This file was deleted.

6 changes: 0 additions & 6 deletions .husky/pre-push

This file was deleted.

68 changes: 0 additions & 68 deletions .prettierignore

This file was deleted.

8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

12 changes: 1 addition & 11 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{
"recommendations": [
/**
* 前端相关插件
*/
"Vue.volar",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"lokalise.i18n-ally",
"mrmlnc.vscode-json5",
/**
* python插件
*/
Expand All @@ -23,7 +13,7 @@
*/
// 代码风格统一
"editorconfig.editorconfig",
// 代码标记,TODO FIXME等
// 代码标记,比如TODO FIXME等
"gruntfuggly.todo-tree",
// 代码协作,git协作
"eamodio.gitlens",
Expand Down
37 changes: 12 additions & 25 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,6 @@
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
// 启动前端开发服务
{
"name": "前端开发",
"request": "launch",
"cwd": "${workspaceRoot}",
"type": "node",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "dev"]
},
// 启动后端开发服务
{
"name": "后端开发",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/test/start_server.py",
"console": "integratedTerminal",
"justMyCode": true,
"cwd": "${workspaceFolder}",
//sys.path 会加入顶层目录,影响模块导入查询路径
"env": { "PYTHONPATH": "${workspaceFolder}" }
},
// 模拟实验开启
{
"name": "开启一个实验",
Expand All @@ -35,7 +14,9 @@
"justMyCode": true,
"cwd": "${workspaceFolder}",
//sys.path 会加入顶层目录,影响模块导入查询路径
"env": { "PYTHONPATH": "${workspaceFolder}" }
"env": {
"PYTHONPATH": "${workspaceFolder}"
}
},
// python运行当前文件
{
Expand All @@ -47,22 +28,28 @@
"justMyCode": true,
"cwd": "${workspaceFolder}",
//sys.path 会加入顶层目录,影响模块导入查询路径
"env": { "PYTHONPATH": "${workspaceFolder}" }
"env": {
"PYTHONPATH": "${workspaceFolder}"
}
},
{
"name": "测试当前文件",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"args": ["${file}"],
"args": [
"${file}"
],
"console": "integratedTerminal"
},
{
"name": "进行所有单元测试",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"args": ["test/unit"],
"args": [
"test/unit"
],
"console": "integratedTerminal"
},
// 打包命令
Expand Down
Loading

0 comments on commit 8baf6cf

Please sign in to comment.