Skip to content

Commit 0ff22fb

Browse files
author
githubnull
committed
feat: 添加帮助/关于页面功能 (v1.7.9)
- Web端: 添加About页面(关于/使用帮助/开源协议/免责声明) - Web端: 使用PrimeVue 4新Tabs组件替代废弃的TabView - Web端: 添加路由配置和导航入口(帮助按钮) - BurpSuite端: 添加AboutDialog对话框(两个API版本) - BurpSuite端: 在SqlmapUITab头部添加帮助按钮 - 修复: JLabel HTML标签渲染问题,改用Font.BOLD
1 parent 9d0bfeb commit 0ff22fb

8 files changed

Lines changed: 1333 additions & 3 deletions

File tree

src/backEnd/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
MAX_TASKS_COUNT_LOCK = threading.Lock()
55

66

7-
VERSION = "1.7.8"
7+
VERSION = "1.7.9"

src/burpEx/legacy-api/src/main/java/com/sqlmapwebui/burp/SqlmapUITab.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import burp.IBurpExtenderCallbacks;
44
import com.sqlmapwebui.burp.panels.*;
5+
import com.sqlmapwebui.burp.dialogs.AboutDialog;
56

67
import javax.swing.*;
78
import java.awt.*;
@@ -105,10 +106,21 @@ private JPanel createHeaderPanel() {
105106
titleLabel.setFont(new Font("SansSerif", Font.BOLD, 18));
106107
panel.add(titleLabel, BorderLayout.WEST);
107108

109+
// 右侧面板:包含状态标签和帮助按钮
110+
JPanel rightPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 10, 0));
111+
108112
statusLabel = new JLabel("● 未连接");
109113
statusLabel.setForeground(Color.RED);
110114
statusLabel.setFont(new Font("SansSerif", Font.BOLD, 12));
111-
panel.add(statusLabel, BorderLayout.EAST);
115+
rightPanel.add(statusLabel);
116+
117+
// 帮助按钮
118+
JButton helpButton = new JButton("帮助/关于");
119+
helpButton.setFont(new Font("Microsoft YaHei", Font.PLAIN, 12));
120+
helpButton.addActionListener(e -> AboutDialog.showDialog(this));
121+
rightPanel.add(helpButton);
122+
123+
panel.add(rightPanel, BorderLayout.EAST);
112124

113125
return panel;
114126
}

src/burpEx/legacy-api/src/main/java/com/sqlmapwebui/burp/dialogs/AboutDialog.java

Lines changed: 375 additions & 0 deletions
Large diffs are not rendered by default.

src/burpEx/montoya-api/src/main/java/com/sqlmapwebui/burp/SqlmapUITab.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import burp.api.montoya.MontoyaApi;
44
import com.sqlmapwebui.burp.panels.*;
5+
import com.sqlmapwebui.burp.dialogs.AboutDialog;
56

67
import javax.swing.*;
78
import java.awt.*;
@@ -105,10 +106,21 @@ private JPanel createHeaderPanel() {
105106
titleLabel.setFont(new Font("SansSerif", Font.BOLD, 18));
106107
panel.add(titleLabel, BorderLayout.WEST);
107108

109+
// 右侧面板:包含状态标签和帮助按钮
110+
JPanel rightPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 10, 0));
111+
108112
statusLabel = new JLabel("● 未连接");
109113
statusLabel.setForeground(Color.RED);
110114
statusLabel.setFont(new Font("SansSerif", Font.BOLD, 12));
111-
panel.add(statusLabel, BorderLayout.EAST);
115+
rightPanel.add(statusLabel);
116+
117+
// 帮助按钮
118+
JButton helpButton = new JButton("帮助/关于");
119+
helpButton.setFont(new Font("Microsoft YaHei", Font.PLAIN, 12));
120+
helpButton.addActionListener(e -> AboutDialog.showDialog(this));
121+
rightPanel.add(helpButton);
122+
123+
panel.add(rightPanel, BorderLayout.EAST);
112124

113125
return panel;
114126
}

src/burpEx/montoya-api/src/main/java/com/sqlmapwebui/burp/dialogs/AboutDialog.java

Lines changed: 375 additions & 0 deletions
Large diffs are not rendered by default.

src/frontEnd/src/router/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ const routes: RouteRecordRaw[] = [
4444
component: () => import('@/views/AddTask/index.vue'),
4545
meta: { requiresAuth: true, title: '添加任务' },
4646
},
47+
{
48+
path: '/about',
49+
name: 'about',
50+
component: () => import('@/views/About/index.vue'),
51+
meta: { requiresAuth: true, title: '关于' },
52+
},
4753
],
4854
},
4955
{

0 commit comments

Comments
 (0)