Skip to content

Commit ee5598a

Browse files
chore: update biome configuration and enhance desktop application functionality
- Refined biome.json to improve exclusion patterns for build artifacts and added support for global CSS. - Enhanced linter rules for better code quality and accessibility checks. - Updated useCurrentlyPlaying hook to improve playback state management and error handling. - Refactored aiQueueService for better track management and playback logic. - Improved theme loading and component imports for better performance and maintainability. - Cleaned up code formatting and organization across various components for consistency.
1 parent 70ea797 commit ee5598a

50 files changed

Lines changed: 4044 additions & 479 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/desktop/src-tauri/gen/schemas/acl-manifests.json

Lines changed: 3553 additions & 1 deletion
Large diffs are not rendered by default.
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
{"default":{"identifier":"default","description":"Capability for the main window","local":true,"windows":["main"],"permissions":["core:default","opener:default","fs:default","core:window:allow-start-dragging"]}}
1+
{
2+
"default": {
3+
"identifier": "default",
4+
"description": "Capability for the main window",
5+
"local": true,
6+
"windows": ["main"],
7+
"permissions": [
8+
"core:default",
9+
"opener:default",
10+
"fs:default",
11+
"core:window:allow-start-dragging"
12+
]
13+
}
14+
}

apps/desktop/src-tauri/gen/schemas/desktop-schema.json

Lines changed: 19 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
{
2222
"description": "A list of capabilities.",
2323
"type": "object",
24-
"required": [
25-
"capabilities"
26-
],
24+
"required": ["capabilities"],
2725
"properties": {
2826
"capabilities": {
2927
"description": "The list of capabilities.",
@@ -39,10 +37,7 @@
3937
"Capability": {
4038
"description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows' and webviews' fine grained access to the Tauri core, application, or plugin commands. If a webview or its window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programmatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, ], \"platforms\": [\"macOS\",\"windows\"] } ```",
4139
"type": "object",
42-
"required": [
43-
"identifier",
44-
"permissions"
45-
],
40+
"required": ["identifier", "permissions"],
4641
"properties": {
4742
"identifier": {
4843
"description": "Identifier of the capability.\n\n## Example\n\n`main-user-files-write`",
@@ -93,10 +88,7 @@
9388
},
9489
"platforms": {
9590
"description": "Limit which target platforms this capability applies to.\n\nBy default all platforms are targeted.\n\n## Example\n\n`[\"macOS\",\"windows\"]`",
96-
"type": [
97-
"array",
98-
"null"
99-
],
91+
"type": ["array", "null"],
10092
"items": {
10193
"$ref": "#/definitions/Target"
10294
}
@@ -106,9 +98,7 @@
10698
"CapabilityRemote": {
10799
"description": "Configuration for remote URLs that are associated with the capability.",
108100
"type": "object",
109-
"required": [
110-
"urls"
111-
],
101+
"required": ["urls"],
112102
"properties": {
113103
"urls": {
114104
"description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n## Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api",
@@ -1884,9 +1874,7 @@
18841874
},
18851875
{
18861876
"type": "object",
1887-
"required": [
1888-
"path"
1889-
],
1877+
"required": ["path"],
18901878
"properties": {
18911879
"path": {
18921880
"description": "A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
@@ -1908,9 +1896,7 @@
19081896
},
19091897
{
19101898
"type": "object",
1911-
"required": [
1912-
"path"
1913-
],
1899+
"required": ["path"],
19141900
"properties": {
19151901
"path": {
19161902
"description": "A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
@@ -2000,9 +1986,7 @@
20001986
"anyOf": [
20011987
{
20021988
"type": "object",
2003-
"required": [
2004-
"url"
2005-
],
1989+
"required": ["url"],
20061990
"properties": {
20071991
"app": {
20081992
"description": "An application to open this url with, for example: firefox.",
@@ -2020,9 +2004,7 @@
20202004
},
20212005
{
20222006
"type": "object",
2023-
"required": [
2024-
"path"
2025-
],
2007+
"required": ["path"],
20262008
"properties": {
20272009
"app": {
20282010
"description": "An application to open this path with, for example: xdg-open.",
@@ -2048,9 +2030,7 @@
20482030
"anyOf": [
20492031
{
20502032
"type": "object",
2051-
"required": [
2052-
"url"
2053-
],
2033+
"required": ["url"],
20542034
"properties": {
20552035
"app": {
20562036
"description": "An application to open this url with, for example: firefox.",
@@ -2068,9 +2048,7 @@
20682048
},
20692049
{
20702050
"type": "object",
2071-
"required": [
2072-
"path"
2073-
],
2051+
"required": ["path"],
20742052
"properties": {
20752053
"app": {
20762054
"description": "An application to open this path with, for example: xdg-open.",
@@ -2114,30 +2092,22 @@
21142092
},
21152093
"allow": {
21162094
"description": "Data that defines what is allowed by the scope.",
2117-
"type": [
2118-
"array",
2119-
"null"
2120-
],
2095+
"type": ["array", "null"],
21212096
"items": {
21222097
"$ref": "#/definitions/Value"
21232098
}
21242099
},
21252100
"deny": {
21262101
"description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",
2127-
"type": [
2128-
"array",
2129-
"null"
2130-
],
2102+
"type": ["array", "null"],
21312103
"items": {
21322104
"$ref": "#/definitions/Value"
21332105
}
21342106
}
21352107
}
21362108
}
21372109
],
2138-
"required": [
2139-
"identifier"
2140-
]
2110+
"required": ["identifier"]
21412111
}
21422112
]
21432113
},
@@ -5950,37 +5920,27 @@
59505920
{
59515921
"description": "MacOS.",
59525922
"type": "string",
5953-
"enum": [
5954-
"macOS"
5955-
]
5923+
"enum": ["macOS"]
59565924
},
59575925
{
59585926
"description": "Windows.",
59595927
"type": "string",
5960-
"enum": [
5961-
"windows"
5962-
]
5928+
"enum": ["windows"]
59635929
},
59645930
{
59655931
"description": "Linux.",
59665932
"type": "string",
5967-
"enum": [
5968-
"linux"
5969-
]
5933+
"enum": ["linux"]
59705934
},
59715935
{
59725936
"description": "Android.",
59735937
"type": "string",
5974-
"enum": [
5975-
"android"
5976-
]
5938+
"enum": ["android"]
59775939
},
59785940
{
59795941
"description": "iOS.",
59805942
"type": "string",
5981-
"enum": [
5982-
"iOS"
5983-
]
5943+
"enum": ["iOS"]
59845944
}
59855945
]
59865946
},
@@ -6002,4 +5962,4 @@
60025962
]
60035963
}
60045964
}
6005-
}
5965+
}

0 commit comments

Comments
 (0)