Skip to content

Commit 081abf7

Browse files
authored
Revert "feat: fix the problem in the Operator Market frontend pages" (#204)
Reverts #203
2 parents 8f30f71 + 0df7a87 commit 081abf7

File tree

213 files changed

+45537
-45547
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+45537
-45547
lines changed

frontend/.editorconfig

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
root = true
2-
3-
[*]
4-
charset = utf-8
5-
end_of_line = lf
6-
indent_style = space
7-
indent_size = 2
8-
insert_final_newline = true
9-
trim_trailing_whitespace = true
10-
11-
[*.{md}]
12-
trim_trailing_whitespace = false
13-
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.{md}]
12+
trim_trailing_whitespace = false
13+

frontend/.gitignore

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
9-
10-
node_modules
11-
dist
12-
dist-ssr
13-
*.local
14-
15-
src/mock/sessions/*
16-
17-
# Editor directories and files
18-
.vscode/*
19-
!.vscode/extensions.json
20-
.idea
21-
.DS_Store
22-
*.suo
23-
*.ntvs*
24-
*.njsproj
25-
*.sln
26-
*.sw?
27-
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
src/mock/sessions/*
16+
17+
# Editor directories and files
18+
.vscode/*
19+
!.vscode/extensions.json
20+
.idea
21+
.DS_Store
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?
27+
2828
.vite

frontend/README.md

Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,96 @@
1-
🚀 快速开始
2-
3-
```
4-
npm install # 安装依赖
5-
npm run dev # 启动项目
6-
npm run mock # 启动后台Mock服务(可选)
7-
```
8-
9-
📁 项目结构
10-
11-
```
12-
frontend/
13-
├── public/ # 📖 文档中心
14-
│ ├── huawei-logo.webp/ # logo
15-
│ └── xxx/ # 标注工作台(可分离部署)
16-
17-
├── src/ # 🎨 前端应用
18-
│ ├── apps/ # 多前端应用
19-
│ │ ├── console/ # 数据工作台&运营控制台
20-
│ │ │ ├── next.config.js
21-
│ │ │ ├── package.json
22-
│ │ │ └── src/
23-
│ │ └── annotation-studio/ # 标注工作台(可分离部署)
24-
│ │
25-
│ ├── assets/ # 共享UI组件/SDK
26-
│ │ ├── xxx/ # 数据工作台&运营控制台
27-
│ │ │ ├── next.config.js
28-
│ │ │ └── src/
29-
│ │ │
30-
│ │ │
31-
│ │ └── xxx/ # 数据工作台&运营控制台
32-
│ │ ├── package.json
33-
│ │ └── src/
34-
│ │
35-
│ ├── components/ # 构建与环境配置
36-
│ │ ├── CardView.tsx # 数据工作台&运营控制台
37-
│ │ ├── DetailHeader.tsx # 数据工作台&运营控制台
38-
│ │ ├── RadioCard.tsx # 数据工作台&运营控制台
39-
│ │ ├── SearchControls # 数据工作台&运营控制台
40-
│ │ ├── TagList # 标注工作台(可分离部署)
41-
│ │ └── TaskPopover # 标注工作台(可分离部署)
42-
│ │
43-
│ ├── hooks/ # 构建与环境配置
44-
│ │ ├── console/ # 数据工作台&运营控制台
45-
│ │ ├── next.config.js
46-
│ │ ├── next.config.js
47-
│ │ ├── next.config.js
48-
│ │ ├── next.config.js
49-
│ │ ├── next.config.js
50-
│ │ └── annotation-studio/ # 标注工作台(可分离部署)
51-
│ │
52-
│ ├── mock/ # 构建与环境配置
53-
│ │ ├── console/ # 数据工作台&运营控制台
54-
│ │ ├── next.config.js
55-
│ │ ├── next.config.js
56-
│ │ ├── next.config.js
57-
│ │ ├── next.config.js
58-
│ │ └── annotation-studio/ # 标注工作台(可分离部署)
59-
│ │
60-
│ ├── pages/ # 构建与环境配置
61-
│ │ ├── console/ # 数据工作台&运营控制台
62-
│ │ │ ├── next.config.js
63-
│ │ │ ├── package.json
64-
│ │ │ └── src/
65-
│ │ └── annotation-studio/ # 标注工作台(可分离部署)
66-
│ │
67-
│ ├── providers/ # 构建与环境配置
68-
│ │ ├── console/ # 数据工作台&运营控制台
69-
│ │ │ ├── next.config.js
70-
│ │ │ ├── package.json
71-
│ │ │ └── src/
72-
│ │ └── annotation-studio/ # 标注工作台(可分离部署)
73-
│ │
74-
│ ├── routes/ # 构建与环境配置
75-
│ │ └── next.config.js
76-
│ │
77-
│ ├── types/ # 构建与环境配置
78-
│ │ ├── next.config.js
79-
│ │ ├── next.config.js
80-
│ │ ├── next.config.js
81-
│ │ ├── next.config.js
82-
│ │ └── next.config.js
83-
│ │
84-
│ └── utils/ # 构建与环境配置
85-
│ ├── next.config.js
86-
│ ├── next.config.js
87-
│ └── next.config.js
88-
89-
├── eslint.config.js/ # 🔧 后端服务架构
90-
├── index.html/ # 🔧 后端服务架构
91-
├── package.json/ # 🔧 后端服务架构
92-
├── README.md # 项目说明
93-
├── tailwind.config.ts # 更新日志
94-
├── vite.config.ts # 开源协议
95-
└── pom.xml # Maven根配置
96-
```
1+
🚀 快速开始
2+
3+
```
4+
npm install # 安装依赖
5+
npm run dev # 启动项目
6+
npm run mock # 启动后台Mock服务(可选)
7+
```
8+
9+
📁 项目结构
10+
11+
```
12+
frontend/
13+
├── public/ # 📖 文档中心
14+
│ ├── huawei-logo.webp/ # logo
15+
│ └── xxx/ # 标注工作台(可分离部署)
16+
17+
├── src/ # 🎨 前端应用
18+
│ ├── apps/ # 多前端应用
19+
│ │ ├── console/ # 数据工作台&运营控制台
20+
│ │ │ ├── next.config.js
21+
│ │ │ ├── package.json
22+
│ │ │ └── src/
23+
│ │ └── annotation-studio/ # 标注工作台(可分离部署)
24+
│ │
25+
│ ├── assets/ # 共享UI组件/SDK
26+
│ │ ├── xxx/ # 数据工作台&运营控制台
27+
│ │ │ ├── next.config.js
28+
│ │ │ └── src/
29+
│ │ │
30+
│ │ │
31+
│ │ └── xxx/ # 数据工作台&运营控制台
32+
│ │ ├── package.json
33+
│ │ └── src/
34+
│ │
35+
│ ├── components/ # 构建与环境配置
36+
│ │ ├── CardView.tsx # 数据工作台&运营控制台
37+
│ │ ├── DetailHeader.tsx # 数据工作台&运营控制台
38+
│ │ ├── RadioCard.tsx # 数据工作台&运营控制台
39+
│ │ ├── SearchControls # 数据工作台&运营控制台
40+
│ │ ├── TagList # 标注工作台(可分离部署)
41+
│ │ └── TaskPopover # 标注工作台(可分离部署)
42+
│ │
43+
│ ├── hooks/ # 构建与环境配置
44+
│ │ ├── console/ # 数据工作台&运营控制台
45+
│ │ ├── next.config.js
46+
│ │ ├── next.config.js
47+
│ │ ├── next.config.js
48+
│ │ ├── next.config.js
49+
│ │ ├── next.config.js
50+
│ │ └── annotation-studio/ # 标注工作台(可分离部署)
51+
│ │
52+
│ ├── mock/ # 构建与环境配置
53+
│ │ ├── console/ # 数据工作台&运营控制台
54+
│ │ ├── next.config.js
55+
│ │ ├── next.config.js
56+
│ │ ├── next.config.js
57+
│ │ ├── next.config.js
58+
│ │ └── annotation-studio/ # 标注工作台(可分离部署)
59+
│ │
60+
│ ├── pages/ # 构建与环境配置
61+
│ │ ├── console/ # 数据工作台&运营控制台
62+
│ │ │ ├── next.config.js
63+
│ │ │ ├── package.json
64+
│ │ │ └── src/
65+
│ │ └── annotation-studio/ # 标注工作台(可分离部署)
66+
│ │
67+
│ ├── providers/ # 构建与环境配置
68+
│ │ ├── console/ # 数据工作台&运营控制台
69+
│ │ │ ├── next.config.js
70+
│ │ │ ├── package.json
71+
│ │ │ └── src/
72+
│ │ └── annotation-studio/ # 标注工作台(可分离部署)
73+
│ │
74+
│ ├── routes/ # 构建与环境配置
75+
│ │ └── next.config.js
76+
│ │
77+
│ ├── types/ # 构建与环境配置
78+
│ │ ├── next.config.js
79+
│ │ ├── next.config.js
80+
│ │ ├── next.config.js
81+
│ │ ├── next.config.js
82+
│ │ └── next.config.js
83+
│ │
84+
│ └── utils/ # 构建与环境配置
85+
│ ├── next.config.js
86+
│ ├── next.config.js
87+
│ └── next.config.js
88+
89+
├── eslint.config.js/ # 🔧 后端服务架构
90+
├── index.html/ # 🔧 后端服务架构
91+
├── package.json/ # 🔧 后端服务架构
92+
├── README.md # 项目说明
93+
├── tailwind.config.ts # 更新日志
94+
├── vite.config.ts # 开源协议
95+
└── pom.xml # Maven根配置
96+
```

frontend/eslint.config.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
import js from '@eslint/js'
2-
import globals from 'globals'
3-
import reactHooks from 'eslint-plugin-react-hooks'
4-
import reactRefresh from 'eslint-plugin-react-refresh'
5-
import tseslint from 'typescript-eslint'
6-
import { globalIgnores } from 'eslint/config'
7-
8-
export default tseslint.config([
9-
globalIgnores(['dist']),
10-
{
11-
files: ['**/*.{ts,tsx}'],
12-
extends: [
13-
js.configs.recommended,
14-
tseslint.configs.recommended,
15-
reactHooks.configs['recommended-latest'],
16-
reactRefresh.configs.vite,
17-
],
18-
languageOptions: {
19-
ecmaVersion: 2020,
20-
globals: globals.browser,
21-
},
22-
},
23-
])
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
import { globalIgnores } from 'eslint/config'
7+
8+
export default tseslint.config([
9+
globalIgnores(['dist']),
10+
{
11+
files: ['**/*.{ts,tsx}'],
12+
extends: [
13+
js.configs.recommended,
14+
tseslint.configs.recommended,
15+
reactHooks.configs['recommended-latest'],
16+
reactRefresh.configs.vite,
17+
],
18+
languageOptions: {
19+
ecmaVersion: 2020,
20+
globals: globals.browser,
21+
},
22+
},
23+
])

frontend/index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<!doctype html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/huawei-logo.webp" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>DataMate</title>
8-
</head>
9-
<body>
10-
<div id="root"></div>
11-
<script type="module" src="/src/main.tsx"></script>
12-
</body>
13-
</html>
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/huawei-logo.webp" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>DataMate</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)