feat: add query search functionality and UI enhancements (#10)

* feat: add query serach & UI adjustments

* chore: Cleaning up the code

* fix: fix search bug

* chore: add /ui to the routing link
This commit is contained in:
BiggerRain
2024-11-20 10:08:08 +08:00
committed by GitHub
parent 7618291f6f
commit 40758dd093
29 changed files with 1169 additions and 286 deletions

View File

@@ -2,26 +2,39 @@
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"windows": ["main"],
"windows": ["main", "chat"],
"permissions": [
"core:default",
"core:event:allow-emit",
"core:event:allow-listen",
"core:window:default",
"core:window:allow-start-dragging",
"core:webview:allow-create-webview",
"core:window:allow-show",
"core:webview:allow-create-webview-window",
"core:webview:allow-get-all-webviews",
"core:webview:allow-webview-close",
"core:webview:allow-webview-hide",
"core:webview:allow-webview-show",
"core:webview:allow-webview-size",
"core:webview:allow-set-webview-size",
"core:webview:allow-set-webview-zoom",
"core:window:default",
"core:window:allow-center",
"core:window:allow-close",
"core:window:allow-hide",
"core:webview:allow-set-webview-size",
"core:window:allow-show",
"core:window:allow-create",
"core:window:allow-destroy",
"core:window:allow-start-dragging",
"core:window:allow-set-size",
"core:default",
"core:window:allow-get-all-windows",
"shell:allow-open",
"http:default",
"http:allow-fetch",
"http:allow-fetch-cancel",
"http:allow-fetch-read-body",
"http:allow-fetch-send",
"websocket:default",
"websocket:allow-connect",
"websocket:allow-send",
{
"identifier": "http:default",
"allow": [
@@ -30,9 +43,6 @@
}
],
"deny": []
},
"websocket:default",
"websocket:allow-connect",
"websocket:allow-send"
}
]
}

View File

@@ -13,14 +13,46 @@
"macOSPrivateApi": true,
"windows": [
{
"title": "Coco AI",
"width": 900,
"height": 800,
"maxHeight": 800,
"transparent": true,
"resizable": true,
"acceptFirstMouse": true,
"alwaysOnBottom": false,
"alwaysOnTop": false,
"center": false,
"closable": true,
"contentProtected": false,
"create": true,
"decorations": false,
"dragDropEnabled": true,
"focus": false,
"fullscreen": false,
"decorations": false
"height": 90,
"maxHeight": 700,
"minHeight": 90,
"width": 680,
"maxWidth": 680,
"minWidth": 680,
"hiddenTitle": false,
"incognito": false,
"label": "main",
"maximizable": false,
"minimizable": true,
"maximized": false,
"proxyUrl": "http://localhost:2900",
"resizable": false,
"shadow": true,
"skipTaskbar": false,
"theme": "Light",
"title": "Coco AI",
"transparent": true,
"url": "/ui",
"visible": true,
"visibleOnAllWorkspaces": true,
"windowEffects": {
"effects": [],
"radius": 20
},
"x": null,
"y": null,
"zoomHotkeysEnabled": false
}
],
"security": {
@@ -45,6 +77,7 @@
},
"plugins": {
"window": {},
"websocket": {}
"websocket": {},
"shell": {}
}
}
}