mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-15 19:17:42 +01:00
* feat: add selection window page
* fix: chat input
* feat: add selection page
* chore: add
* chore: test
* feat: add
* feat: add store
* feat: add selection settings
* chore: remove unused code
* docs: add release note
* docs: add release note
* chore: format code
* chore: format code
* fix: copy error
* disable hashbrown default feature
* Enable unstable feature allocator_api
To make coco-app compile in CI:
```
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hashbrown-0.15.5/src/raw/mod.rs:3856:12
|
3856 | impl<T, A: Allocator> RawIntoIter<T, A> {
| ^^^^^^^^^
|
= note: see issue #32838 <https://github.com/rust-lang/rust/issues/32838> for more information
= help: add `#![feature(allocator_api)]` to the crate attributes to enable
= note: this compiler was built on 2025-06-25; consider upgrading it if it is out of date
```
I don't know why it does not compile, feature `allocator-api2` is
enabled for `hashbrown 0.15.5`, so technically [1] it should not use the
allocator APIs from the std. According to [2], enabling the `nightly`
feature of `allocator-api2` may cause this issue as well, but it is not
enabled in our case either.
Anyway, enabling `#![feature(allocator_api)]` should make it work.
[1]: b751eef8e9/src/raw/alloc.rs (L26-L47)
[2]: https://github.com/rust-lang/hashbrown/issues/564
* put it in main.rs
* format main.rs
* Enable default-features for hashbrown 0.15.5
* format main.rs
* enable feature allocator-api2
* feat: add selection set config
* fix: selection setting
* fix: ci error
* fix: ci error
* fix: ci error
* fix: ci error
* merge: merge main
* fix: rust code warn
* fix: rust code error
* fix: rust code error
* fix: selection settings
* style: selection styles
* style: selection styles
---------
Co-authored-by: Steve Lau <stevelauc@outlook.com>
172 lines
4.4 KiB
JSON
172 lines
4.4 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2.0.0",
|
|
"productName": "Coco-AI",
|
|
"version": "../package.json",
|
|
"identifier": "rs.coco.app",
|
|
"build": {
|
|
"beforeDevCommand": "pnpm dev",
|
|
"devUrl": "http://localhost:1420",
|
|
"beforeBuildCommand": "pnpm build",
|
|
"frontendDist": "../dist"
|
|
},
|
|
"app": {
|
|
"macOSPrivateApi": true,
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"title": "Coco AI",
|
|
"url": "/ui",
|
|
"height": 590,
|
|
"width": 680,
|
|
"decorations": false,
|
|
"minimizable": false,
|
|
"maximizable": false,
|
|
"skipTaskbar": true,
|
|
"resizable": false,
|
|
"acceptFirstMouse": true,
|
|
"shadow": true,
|
|
"transparent": true,
|
|
"fullscreen": false,
|
|
"center": false,
|
|
"visible": false,
|
|
"windowEffects": {
|
|
"effects": [],
|
|
"radius": 6
|
|
},
|
|
"visibleOnAllWorkspaces": true,
|
|
"alwaysOnTop": true
|
|
},
|
|
{
|
|
"label": "settings",
|
|
"title": "Coco AI Settings",
|
|
"url": "/ui/settings",
|
|
"width": 1000,
|
|
"minWidth": 1000,
|
|
"height": 700,
|
|
"minHeight": 700,
|
|
"center": true,
|
|
"transparent": true,
|
|
"maximizable": false,
|
|
"skipTaskbar": false,
|
|
"dragDropEnabled": false,
|
|
"hiddenTitle": true,
|
|
"visible": false,
|
|
"windowEffects": {
|
|
"effects": ["sidebar"],
|
|
"state": "active"
|
|
}
|
|
},
|
|
{
|
|
"label": "check",
|
|
"title": "Coco AI Update",
|
|
"url": "/ui/check",
|
|
"width": 340,
|
|
"minWidth": 340,
|
|
"height": 260,
|
|
"minHeight": 260,
|
|
"center": false,
|
|
"decorations": false,
|
|
"transparent": true,
|
|
"maximizable": false,
|
|
"skipTaskbar": false,
|
|
"dragDropEnabled": false,
|
|
"hiddenTitle": true,
|
|
"visible": false,
|
|
"shadow": false,
|
|
"windowEffects": {
|
|
"effects": ["sidebar"],
|
|
"state": "active",
|
|
"radius": 7
|
|
}
|
|
},
|
|
{
|
|
"label": "selection",
|
|
"title": "Selection",
|
|
"alwaysOnTop": true,
|
|
"shadow": false,
|
|
"decorations": false,
|
|
"transparent": true,
|
|
"closable": true,
|
|
"minimizable": false,
|
|
"maximizable": false,
|
|
"dragDropEnabled": false,
|
|
"resizable": false,
|
|
"center": false,
|
|
"url": "/ui/selection",
|
|
"hiddenTitle": true,
|
|
"visible": false,
|
|
"acceptFirstMouse": true,
|
|
"windowEffects": {
|
|
"effects": [],
|
|
"state": "active",
|
|
"radius": 7
|
|
}
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": {
|
|
"default-src": "'self' asset: http: https: ipc: blob: data:"
|
|
},
|
|
"dangerousDisableAssetCspModification": true,
|
|
"assetProtocol": {
|
|
"enable": true,
|
|
"scope": {
|
|
"allow": ["**/*"],
|
|
"requireLiteralLeadingDot": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"createUpdaterArtifacts": true,
|
|
"targets": ["nsis", "dmg", "app", "appimage", "deb", "rpm"],
|
|
"category": "Utility",
|
|
"shortDescription": "Coco AI",
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico",
|
|
"icons/icon.png",
|
|
"icons/Square30x30Logo.png",
|
|
"icons/Square44x44Logo.png",
|
|
"icons/Square71x71Logo.png",
|
|
"icons/Square89x89Logo.png",
|
|
"icons/Square107x107Logo.png",
|
|
"icons/Square142x142Logo.png",
|
|
"icons/Square150x150Logo.png",
|
|
"icons/Square284x284Logo.png",
|
|
"icons/Square310x310Logo.png",
|
|
"icons/StoreLogo.png"
|
|
],
|
|
"resources": ["assets/**/*", "icons"]
|
|
},
|
|
"plugins": {
|
|
"features": {
|
|
"protocol": ["all"]
|
|
},
|
|
"window": {},
|
|
"updater": {
|
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDlDRjNDRUU0NTdBMzdCRTMKUldUamU2Tlg1TTd6bkUwZWM0d2Zjdk0wdXJmendWVlpMMmhKN25EcmprYmIydnJ3dmFUME9QYXkK",
|
|
"endpoints": [
|
|
"https://release.infinilabs.com/coco/app/.latest.json?target={{target}}&arch={{arch}}¤t_version={{current_version}}"
|
|
]
|
|
},
|
|
"shell": {},
|
|
"globalShortcut": {},
|
|
"deep-link": {
|
|
"mobile": [
|
|
{
|
|
"host": "app.infini.cloud",
|
|
"pathPrefix": ["/open"]
|
|
}
|
|
],
|
|
"desktop": {
|
|
"schemes": ["coco"]
|
|
}
|
|
},
|
|
"os": {}
|
|
}
|
|
} |