Skip to content

Commit 4d0de30

Browse files
gui-knowledge-bench
0 parents  commit 4d0de30

34 files changed

+5107
-0
lines changed

.github/workflows/build_vue.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build Vue
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+
permissions:
11+
contents: write
12+
pages: write
13+
id-token: write
14+
15+
jobs:
16+
build_vue:
17+
runs-on: ubuntu-latest
18+
name: Build Vue
19+
steps:
20+
- uses: actions/checkout@v2
21+
- id: Build-Vue
22+
uses: xRealNeon/VuePagesAction@1.0.1
23+
with:
24+
username: 'Kendrick-Stein'
25+
reponame: 'GUI-Knowledge-Bench'
26+
token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged

.gitignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
# Dependency directories
11+
node_modules
12+
.pnpm-store/
13+
14+
# Build outputs
15+
dist
16+
dist-ssr
17+
*.local
18+
.vite/
19+
20+
# Local env files
21+
.env
22+
.env.local
23+
.env.*.local
24+
25+
# Editor directories and files
26+
.vscode/*
27+
!.vscode/extensions.json
28+
!.vscode/settings.json
29+
.idea
30+
.DS_Store
31+
*.suo
32+
*.ntvs*
33+
*.njsproj
34+
*.sln
35+
*.sw?
36+
37+
# Coverage directory used by tools like istanbul
38+
coverage
39+
40+
# Cache directories
41+
.npm
42+
.eslintcache
43+
.stylelintcache
44+
45+
# Optional: Uncomment if using Cypress for testing
46+
# cypress/videos/
47+
# cypress/screenshots/

.gitlab-ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
image: node:22
2+
3+
stages:
4+
- pages
5+
6+
pages:
7+
stage: pages
8+
before_script:
9+
- corepack enable
10+
- corepack prepare pnpm@latest-9 --activate
11+
- pnpm config set store-dir .pnpm-store
12+
script:
13+
- pnpm install # install dependencies
14+
- pnpm run build --base=/fire-web/
15+
- rm -rf public/*
16+
- cp -a dist/. public/
17+
cache:
18+
key:
19+
files:
20+
- pnpm-lock.yaml
21+
paths:
22+
- .pnpm-store
23+
artifacts:
24+
paths:
25+
- public

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 GUI-Knowledge-Bench
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# GUI-Knowledge-Bench
2+
3+
Project website for GUI-Knowledge-Bench
4+
5+
## 🚀 Demo
6+
7+
8+
9+
## 🛠️ Tech Stack
10+
11+
- **Frontend Framework**: Vue 3
12+
- **UI Components**: Element Plus
13+
- **Build Tool**: Vite
14+
- **HTTP Client**: Axios
15+
16+
## 📋 Features
17+
18+
- Interactive demonstration of multi-modal agent tuning
19+
- Visualization of VLM-driven agent capabilities
20+
- Tool usage efficiency metrics
21+
22+
## 🔧 Development Setup
23+
24+
### Prerequisites
25+
26+
- [Node.js](https://nodejs.org/) (v16 or higher)
27+
- [pnpm](https://pnpm.io/) (recommended) or npm
28+
29+
### Installation
30+
31+
1. Clone the repository
32+
33+
34+
2. Install dependencies
35+
```bash
36+
pnpm install
37+
```
38+
39+
3. Start the development server
40+
```bash
41+
pnpm dev
42+
```
43+
44+
## 🏗️ Building for Production
45+
46+
```bash
47+
pnpm build
48+
```
49+
50+
The built files will be in the `dist` directory, ready to be deployed.
51+
52+
## 🚀 Deployment
53+
54+
This project is set up for GitHub Pages deployment:
55+
56+
1. Build the project
57+
```bash
58+
pnpm build
59+
```
60+
61+
2. Push to GitHub
62+
```bash
63+
git add .
64+
git commit -m "Ready for deployment"
65+
git push
66+
```
67+
68+
3. Configure GitHub Pages to serve from the desired branch
69+
70+
## 📄 License
71+
72+
[MIT License](LICENSE)

change_color.py

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
def replace_colors_in_vue(input_file, output_file):
2+
"""
3+
将Vue文件中的蓝色系配色替换为紫色系
4+
"""
5+
6+
# 定义所有需要替换的颜色映射
7+
color_replacements = [
8+
# 主要颜色替换
9+
('#1a237e', '#4a148c'), # 深紫色,用于标题
10+
11+
# 链接和强调色
12+
('#1976d2', '#7b1fa2'), # 主紫色
13+
('#1565c0', '#6a1b9a'), # 深一点的紫色,hover状态
14+
('#0d47a1', '#4a148c'), # 更深的紫色,hover状态
15+
16+
# 浅色背景和边框
17+
('#90caf9', '#ce93d8'), # 浅紫色,用于边框
18+
('#64b5f6', '#ba68c8'), # 渐变色的浅端
19+
('#42a5f5', '#ab47bc'), # hover渐变的浅端
20+
21+
# 背景色调整
22+
('#e3f0fc', '#f3e5f5'), # 很浅的紫色背景
23+
('#e3f2fd', '#f3e5f5'), # 图标颜色
24+
('#e3eaf2', '#e1bee7'), # 边框色
25+
26+
# 阴影颜色调整
27+
('rgba(25, 118, 210, 0.04)', 'rgba(123, 31, 162, 0.04)'),
28+
('rgba(25, 118, 210, 0.06)', 'rgba(123, 31, 162, 0.06)'),
29+
('rgba(25, 118, 210, 0.08)', 'rgba(123, 31, 162, 0.08)'),
30+
('rgba(25, 118, 210, 0.13)', 'rgba(123, 31, 162, 0.13)'),
31+
('rgba(25, 118, 210, 0.18)', 'rgba(123, 31, 162, 0.18)'),
32+
33+
# 渐变调整
34+
('linear-gradient(90deg, #1976d2 0%, #64b5f6 100%)',
35+
'linear-gradient(90deg, #7b1fa2 0%, #ba68c8 100%)'),
36+
('linear-gradient(90deg, #1565c0 0%, #42a5f5 100%)',
37+
'linear-gradient(90deg, #6a1b9a 0%, #ab47bc 100%)'),
38+
]
39+
40+
# 读取输入文件
41+
try:
42+
with open(input_file, 'r', encoding='utf-8') as f:
43+
content = f.read()
44+
except FileNotFoundError:
45+
print(f"错误:找不到输入文件 {input_file}")
46+
return
47+
except Exception as e:
48+
print(f"读取文件时出错:{e}")
49+
return
50+
51+
# 执行所有替换
52+
replaced_count = 0
53+
for old_color, new_color in color_replacements:
54+
count = content.count(old_color)
55+
if count > 0:
56+
content = content.replace(old_color, new_color)
57+
replaced_count += count
58+
print(f"替换 {old_color} -> {new_color} ({count} 处)")
59+
60+
# 写入输出文件
61+
try:
62+
with open(output_file, 'w', encoding='utf-8') as f:
63+
f.write(content)
64+
print(f"\n✅ 成功!总共替换了 {replaced_count} 处颜色")
65+
print(f"新文件已保存到:{output_file}")
66+
except Exception as e:
67+
print(f"写入文件时出错:{e}")
68+
return
69+
70+
# 使用示例
71+
if __name__ == "__main__":
72+
# 设置输入和输出文件路径
73+
input_vue_file = "D:\科研\ICLR2026\dart\src\components\Main.vue" # 替换为你的原始Vue文件路径
74+
output_vue_file = "D:\科研\ICLR2026\dart\src\components\Main_alt.vue" # 输出的紫色主题Vue文件
75+
76+
# 执行颜色替换
77+
replace_colors_in_vue(input_vue_file, output_vue_file)
78+
79+
print("\n提示:请将你的Vue代码保存为 'original.vue' 文件,")
80+
print("然后运行这个脚本,会生成 'purple_theme.vue' 文件")

index.html

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

0 commit comments

Comments
 (0)