mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
update:去除无用样式
This commit is contained in:
+2
-1
@@ -182,4 +182,5 @@ uploadfile
|
|||||||
# Do not ignore env and json files inside manager-mobile
|
# Do not ignore env and json files inside manager-mobile
|
||||||
!main/manager-mobile/**/env/
|
!main/manager-mobile/**/env/
|
||||||
!main/manager-mobile/**/.env*
|
!main/manager-mobile/**/.env*
|
||||||
!main/manager-mobile/**/*.json
|
!main/manager-mobile/**/*.json
|
||||||
|
!main/xiaozhi-server/**/*.json
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "self.get_device_status",
|
||||||
|
"description": "Provides the real-time information of the device, including the current status of the audio speaker, screen, battery, network, etc.\nUse this tool for: \n1. Answering questions about current condition (e.g. what is the current volume of the audio speaker?)\n2. As the first step to control the device (e.g. turn up / down the volume of the audio speaker, etc.)",
|
||||||
|
"inputSchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {}
|
||||||
|
},
|
||||||
|
"mockResponse": {
|
||||||
|
"audio_speaker": {
|
||||||
|
"volume": 50,
|
||||||
|
"muted": false
|
||||||
|
},
|
||||||
|
"screen": {
|
||||||
|
"brightness": 80,
|
||||||
|
"theme": "light"
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"level": 85,
|
||||||
|
"charging": false
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"connected": true,
|
||||||
|
"type": "wifi"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "self.audio_speaker.set_volume",
|
||||||
|
"description": "Set the volume of the audio speaker. If the current volume is unknown, you must call `self.get_device_status` tool first and then call this tool.",
|
||||||
|
"inputSchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"volume": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 100
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"volume"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mockResponse": {
|
||||||
|
"success": true,
|
||||||
|
"volume": "${volume}",
|
||||||
|
"message": "音量已设置为 ${volume}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "self.screen.set_brightness",
|
||||||
|
"description": "Set the brightness of the screen.",
|
||||||
|
"inputSchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"brightness": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 100
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"brightness"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mockResponse": {
|
||||||
|
"success": true,
|
||||||
|
"brightness": "${brightness}",
|
||||||
|
"message": "亮度已设置为 ${brightness}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -53,28 +53,6 @@ body {
|
|||||||
box-shadow: 0px 0px 10px 2px rgba(0, 122, 255, 0.28);
|
box-shadow: 0px 0px 10px 2px rgba(0, 122, 255, 0.28);
|
||||||
}
|
}
|
||||||
|
|
||||||
.device-info {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 20px;
|
|
||||||
margin-left: 20px;
|
|
||||||
padding: 0 15px;
|
|
||||||
background-color: #f9f9f9;
|
|
||||||
border-radius: 4px;
|
|
||||||
height: 28px;
|
|
||||||
line-height: 28px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.device-info span {
|
|
||||||
color: #666;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.device-info strong {
|
|
||||||
color: #333;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-panel {
|
.config-panel {
|
||||||
display: block;
|
display: block;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
@@ -260,18 +238,6 @@ button:disabled {
|
|||||||
color: #0f9d58;
|
color: #0f9d58;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadeIn {
|
|
||||||
from {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translate(-50%, -60%);
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.script-status {
|
.script-status {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
|
|||||||
Reference in New Issue
Block a user