Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions docs/backend/backend_python/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1074,14 +1074,9 @@
"in": "query",
"required": false,
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/InputType"
}
],
"$ref": "#/components/schemas/InputType",
"description": "Choose input type: 'path' or 'base64'",
"default": "path",
"title": "Input Type"
"default": "path"
},
"description": "Choose input type: 'path' or 'base64'"
}
Expand Down Expand Up @@ -1341,7 +1336,7 @@
"required": false,
"schema": {
"type": "number",
"maximum": 100.0,
"maximum": 100,
"minimum": 0.1,
"description": "Location clustering radius in km",
"default": 5.0,
Expand Down Expand Up @@ -1427,7 +1422,7 @@
"required": false,
"schema": {
"type": "number",
"maximum": 100.0,
"maximum": 100,
"minimum": 0.1,
"description": "Location clustering radius in km",
"default": 5.0,
Expand Down Expand Up @@ -1503,7 +1498,7 @@
"required": false,
"schema": {
"type": "number",
"maximum": 100.0,
"maximum": 100,
"minimum": 0.1,
"description": "Location clustering radius in km",
"default": 5.0,
Expand Down Expand Up @@ -2614,6 +2609,7 @@
"metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
Expand Down
12 changes: 11 additions & 1 deletion frontend/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,17 @@ Object.defineProperty(window, 'matchMedia', {

// Mock the module imports
jest.mock('@tauri-apps/api/core', () => ({
invoke: jest.fn().mockResolvedValue(null),
invoke: jest.fn().mockImplementation((cmd: string) => {
switch (cmd) {
case 'is_autostart_enabled':
return Promise.resolve(false);
case 'enable_autostart':
case 'disable_autostart':
return Promise.resolve(undefined);
default:
return Promise.resolve(null);
}
}),
}));

jest.mock('@tauri-apps/api/app', () => ({
Expand Down
56 changes: 50 additions & 6 deletions frontend/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion frontend/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ edition = "2021"
tauri-build = { version = "2.0.6", features = [] }

[dependencies]
tauri = { version = "2.9.1", features = ["protocol-asset", "devtools"] }
tauri = { version = "2.9.1", features = ["protocol-asset", "devtools", "tray-icon"] }
reqwest = { version = "0.12", features = ["blocking"] }
walkdir = "2.3"
sysinfo = "0.37.2"
Expand All @@ -37,6 +37,7 @@ tauri-plugin-process = "2.3.1"
tauri-plugin-store = "2.4.1"
tauri-plugin-updater = "2.9.0"
tauri-plugin-opener = "2.5.2"
tauri-plugin-autostart = "2"

[features]
# This feature is used for production builds or when a dev server is not specified, DO NOT REMOVE!!
Expand Down
2 changes: 1 addition & 1 deletion frontend/src-tauri/capabilities/migrated.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"core:resources:default",
"core:menu:default",
"core:tray:default",
"autostart:default",
"shell:allow-open",
"core:path:default",
"core:event:default",
Expand All @@ -19,7 +20,6 @@
"core:app:default",
"core:resources:default",
"core:menu:default",
"core:tray:default",
"core:window:allow-set-title",
"dialog:allow-open",
"fs:default",
Expand Down
Loading
Loading