隐藏工具栏

This commit is contained in:
锦恢 2025-04-29 15:19:14 +08:00
parent 9c98a636f9
commit 63ed5d7256
4 changed files with 76 additions and 1518 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
"description": "", "description": "",
"main": "dist/main.js", "main": "dist/main.js",
"scripts": { "scripts": {
"start": "tsc; electron .", "start": "tsc && electron .",
"build": "webpack --config webpack.config.js", "build": "webpack --config webpack.config.js",
"watch": "webpack --watch --config webpack.config.js", "watch": "webpack --watch --config webpack.config.js",
"dist": "tsc; electron-builder" "dist": "tsc; electron-builder"
@ -27,7 +27,7 @@
}, },
"devDependencies": { "devDependencies": {
"@types/ws": "^8.18.1", "@types/ws": "^8.18.1",
"electron": "^35.2.1", "electron": "36.0.0",
"typescript": "^5.6.3" "typescript": "^5.6.3"
}, },
"build": { "build": {

View File

@ -6,16 +6,17 @@ let mainWindow: BrowserWindow
function createWindow(): void { function createWindow(): void {
mainWindow = new BrowserWindow({ mainWindow = new BrowserWindow({
width: 1200,
height: 800, height: 800,
useContentSize: true,
width: 1200,
webPreferences: { webPreferences: {
nodeIntegration: true, nodeIntegration: true,
contextIsolation: false contextIsolation: false
} },
autoHideMenuBar: true
}) })
mainWindow.loadFile('resources/renderer/index.html') mainWindow.loadFile('resources/renderer/index.html')
mainWindow.webContents.openDevTools()
} }
const wss = new (WebSocket as any).Server({ port: 8080 }); const wss = new (WebSocket as any).Server({ port: 8080 });

View File

@ -0,0 +1,65 @@
{
"currentIndex": 0,
"tabs": [
{
"name": "交互测试",
"icon": "icon-robot",
"type": "blank",
"componentIndex": 3,
"storage": {
"messages": [],
"settings": {
"modelIndex": 0,
"enableTools": [
{
"name": "puppeteer_navigate",
"description": "Navigate to a URL",
"enabled": true
},
{
"name": "puppeteer_screenshot",
"description": "Take a screenshot of the current page or a specific element",
"enabled": true
},
{
"name": "puppeteer_click",
"description": "Click an element on the page",
"enabled": true
},
{
"name": "puppeteer_fill",
"description": "Fill out an input field",
"enabled": true
},
{
"name": "puppeteer_select",
"description": "Select an element on the page with Select tag",
"enabled": true
},
{
"name": "puppeteer_hover",
"description": "Hover an element on the page",
"enabled": true
},
{
"name": "puppeteer_evaluate",
"description": "Execute JavaScript in the browser console",
"enabled": true
}
],
"enableWebSearch": false,
"temperature": 0.7,
"contextLength": 10,
"systemPrompt": ""
}
}
},
{
"name": "空白测试 2",
"icon": "icon-blank",
"type": "blank",
"componentIndex": -1,
"storage": {}
}
]
}