feat: save last window state ie. position and size

This commit is contained in:
Prayag Prajapati committed 2025-03-17 22:16:17 +05:30
1 parent d3d5c5ac54
commit b916560c6a
14 files changed
+2224 -2080

No files matched your search

+30 -29
View File
@@ -19,41 +19,42 @@
"@dnd-kit/utilities": "^3.2.2", "@dnd-kit/utilities": "^3.2.2",
"@emotion/react": "^11.14.0", "@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0", "@emotion/styled": "^11.14.0",
"@fontsource-variable/jetbrains-mono": "^5.1.2", "@fontsource-variable/jetbrains-mono": "^5.2.5",
"@fontsource-variable/noto-sans": "^5.1.1", "@fontsource-variable/noto-sans": "^5.2.6",
"@fontsource-variable/plus-jakarta-sans": "^5.1.1", "@fontsource-variable/plus-jakarta-sans": "^5.2.5",
"@fontsource-variable/space-grotesk": "^5.1.1", "@fontsource-variable/space-grotesk": "^5.2.6",
"@jellyfin/sdk": "0.11.0", "@jellyfin/sdk": "0.11.0",
"@million/lint": "^1.0.14", "@million/lint": "^1.0.14",
"@mui/lab": "6.0.0-beta.28", "@mui/lab": "6.0.0-beta.30",
"@mui/material": "6.4.5", "@mui/material": "6.4.7",
"@popperjs/core": "^2.11.8", "@popperjs/core": "^2.11.8",
"@react-spring/web": "^9.7.5", "@react-spring/web": "^9.7.5",
"@tanem/react-nprogress": "^5.0.55", "@tanem/react-nprogress": "^5.0.55",
"@tanstack/react-query": "^5.66.7", "@tanstack/react-query": "^5.68.0",
"@tanstack/react-query-devtools": "^5.66.7", "@tanstack/react-query-devtools": "^5.68.0",
"@tanstack/react-router": "^1.106.0", "@tanstack/react-router": "^1.114.23",
"@tanstack/react-virtual": "^3.13.0", "@tanstack/react-virtual": "^3.13.4",
"@tauri-apps/api": "2.2.0", "@tauri-apps/api": "2.3.0",
"@tauri-apps/plugin-clipboard-manager": "2.2.1", "@tauri-apps/plugin-clipboard-manager": "2.2.2",
"@tauri-apps/plugin-dialog": "2.2.0", "@tauri-apps/plugin-dialog": "2.2.0",
"@tauri-apps/plugin-notification": "2.2.1", "@tauri-apps/plugin-notification": "2.2.2",
"@tauri-apps/plugin-process": "2.2.0", "@tauri-apps/plugin-process": "2.2.0",
"@tauri-apps/plugin-store": "github:tauri-apps/tauri-plugin-store#v2", "@tauri-apps/plugin-store": "github:tauri-apps/tauri-plugin-store#v2",
"@tauri-apps/plugin-updater": "2.5.0", "@tauri-apps/plugin-updater": "2.6.1",
"@tauri-apps/plugin-upload": "2.2.1", "@tauri-apps/plugin-upload": "2.2.1",
"@types/node": "^22.13.4", "@tauri-apps/plugin-window-state": "~2",
"@types/node": "^22.13.10",
"@types/react": "^19.0.10", "@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4", "@types/react-dom": "^19.0.4",
"axios": "^1.7.9", "axios": "^1.8.3",
"axios-tauri-api-adapter": "^2.0.6", "axios-tauri-api-adapter": "^2.0.6",
"blurhash": "^2.0.5", "blurhash": "^2.0.5",
"framer-motion": "^12.4.5", "framer-motion": "^12.5.0",
"immer": "^10.1.1", "immer": "^10.1.1",
"jassub": "^1.7.17", "jassub": "^1.7.18",
"libpgs": "^0.8.1", "libpgs": "^0.8.1",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"material-symbols": "^0.28.2", "material-symbols": "^0.29.1",
"million": "^3.1.11", "million": "^3.1.11",
"notistack": "^3.0.2", "notistack": "^3.0.2",
"react": "19.0.0", "react": "19.0.0",
@@ -62,12 +63,12 @@
"react-dnd-html5-backend": "^16.0.1", "react-dnd-html5-backend": "^16.0.1",
"react-dom": "19.0.0", "react-dom": "19.0.0",
"react-error-boundary": "^5.0.0", "react-error-boundary": "^5.0.0",
"react-intersection-observer": "^9.15.1", "react-intersection-observer": "^9.16.0",
"react-markdown": "^9.0.3", "react-markdown": "^10.1.0",
"react-multi-carousel": "^2.8.5", "react-multi-carousel": "^2.8.5",
"react-player": "^2.16.0", "react-player": "^2.16.0",
"remark-gfm": "^4.0.1", "remark-gfm": "^4.0.1",
"typescript": "^5.7.3", "typescript": "^5.8.2",
"vite-plugin-svgr": "^4.3.0", "vite-plugin-svgr": "^4.3.0",
"wavesurfer.js": "^7.9.1", "wavesurfer.js": "^7.9.1",
"zustand": "5.0.3" "zustand": "5.0.3"
@@ -75,15 +76,15 @@
"devDependencies": { "devDependencies": {
"@babel/plugin-proposal-optional-chaining-assign": "^7.25.9", "@babel/plugin-proposal-optional-chaining-assign": "^7.25.9",
"@biomejs/biome": "^1.9.4", "@biomejs/biome": "^1.9.4",
"@tanstack/router-cli": "^1.106.0", "@tanstack/router-cli": "^1.114.23",
"@tanstack/router-devtools": "^1.106.0", "@tanstack/router-devtools": "^1.114.23",
"@tanstack/router-vite-plugin": "^1.106.0", "@tanstack/router-vite-plugin": "^1.114.23",
"@tauri-apps/cli": "2.2.7", "@tauri-apps/cli": "2.3.1",
"@types/lodash": "^4.17.15", "@types/lodash": "^4.17.16",
"@vitejs/plugin-react": "^4.3.4", "@vitejs/plugin-react": "^4.3.4",
"prop-types": "^15.8.1", "prop-types": "^15.8.1",
"sass": "^1.85.0", "sass": "^1.85.1",
"vite": "^6.1.1" "vite": "^6.2.2"
}, },
"license": "GPL-3.0-only" "license": "GPL-3.0-only"
} }
+863 -1027
View File
File diff suppressed because it is too large. Load diff
+1201 -1014
View File
File diff suppressed because it is too large. Load diff
+3 -1
View File
@@ -22,7 +22,6 @@ tauri = { version = "2.0.0-beta", features = [ "devtools"] }
tauri-plugin-localhost = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" } tauri-plugin-localhost = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" } tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2", features = ["colored"] } tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2", features = ["colored"] }
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
portpicker = "0.1" # used in the example to pick a random free port portpicker = "0.1" # used in the example to pick a random free port
tauri-plugin-process = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" } tauri-plugin-process = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-updater = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" } tauri-plugin-updater = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
@@ -38,3 +37,6 @@ default = [ "custom-protocol" ]
# this feature is used for production builds where `devPath` points to the filesystem # this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this # DO NOT remove this
custom-protocol = [ "tauri/custom-protocol" ] custom-protocol = [ "tauri/custom-protocol" ]
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-window-state = "2"
+14
View File
@@ -0,0 +1,14 @@
{
"identifier": "desktop-capability",
"platforms": [
"macOS",
"windows",
"linux"
],
"windows": [
"main"
],
"permissions": [
"window-state:default"
]
}
+1 -1
View File
@@ -1 +1 @@
{"clipboard-manager":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n","permissions":[]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-read-image":{"identifier":"allow-read-image","description":"Enables the read_image command without any pre-configured scope.","commands":{"allow":["read_image"],"deny":[]}},"allow-read-text":{"identifier":"allow-read-text","description":"Enables the read_text command without any pre-configured scope.","commands":{"allow":["read_text"],"deny":[]}},"allow-write-html":{"identifier":"allow-write-html","description":"Enables the write_html command without any pre-configured scope.","commands":{"allow":["write_html"],"deny":[]}},"allow-write-image":{"identifier":"allow-write-image","description":"Enables the write_image command without any pre-configured scope.","commands":{"allow":["write_image"],"deny":[]}},"allow-write-text":{"identifier":"allow-write-text","description":"Enables the write_text command without any pre-configured scope.","commands":{"allow":["write_text"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-read-image":{"identifier":"deny-read-image","description":"Denies the read_image command without any pre-configured scope.","commands":{"allow":[],"deny":["read_image"]}},"deny-read-text":{"identifier":"deny-read-text","description":"Denies the read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text"]}},"deny-write-html":{"identifier":"deny-write-html","description":"Denies the write_html command without any pre-configured scope.","commands":{"allow":[],"deny":["write_html"]}},"deny-write-image":{"identifier":"deny-write-image","description":"Denies the write_image command without any pre-configured scope.","commands":{"allow":[],"deny":["write_image"]}},"deny-write-text":{"identifier":"deny-write-text","description":"Denies the write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_winLine truncated {"clipboard-manager":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n","permissions":[]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-read-image":{"identifier":"allow-read-image","description":"Enables the read_image command without any pre-configured scope.","commands":{"allow":["read_image"],"deny":[]}},"allow-read-text":{"identifier":"allow-read-text","description":"Enables the read_text command without any pre-configured scope.","commands":{"allow":["read_text"],"deny":[]}},"allow-write-html":{"identifier":"allow-write-html","description":"Enables the write_html command without any pre-configured scope.","commands":{"allow":["write_html"],"deny":[]}},"allow-write-image":{"identifier":"allow-write-image","description":"Enables the write_image command without any pre-configured scope.","commands":{"allow":["write_image"],"deny":[]}},"allow-write-text":{"identifier":"allow-write-text","description":"Enables the write_text command without any pre-configured scope.","commands":{"allow":["write_text"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-read-image":{"identifier":"deny-read-image","description":"Denies the read_image command without any pre-configured scope.","commands":{"allow":[],"deny":["read_image"]}},"deny-read-text":{"identifier":"deny-read-text","description":"Denies the read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text"]}},"deny-write-html":{"identifier":"deny-write-html","description":"Denies the write_html command without any pre-configured scope.","commands":{"allow":[],"deny":["write_html"]}},"deny-write-image":{"identifier":"deny-write-image","description":"Denies the write_image command without any pre-configured scope.","commands":{"allow":[],"deny":["write_image"]}},"deny-write-text":{"identifier":"deny-write-text","description":"Denies the write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_winLine truncated
+1 -1
View File
@@ -1 +1 @@
{"main-capabilities":{"identifier":"main-capabilities","description":"Capability for desktop window","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","store:allow-clear","store:allow-delete","store:allow-keys","store:allow-load","updater:allow-check","updater:allow-download-and-install","notification:default","core:webview:allow-internal-toggle-devtools","dialog:default","upload:allow-download","clipboard-manager:allow-write-text"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-fullscreen"]}} {"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["window-state:default"],"platforms":["macOS","windows","linux"]},"main-capabilities":{"identifier":"main-capabilities","description":"Capability for desktop window","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","store:allow-clear","store:allow-delete","store:allow-keys","store:allow-load","updater:allow-check","updater:allow-download-and-install","notification:default","core:webview:allow-internal-toggle-devtools","dialog:default","upload:allow-download","clipboard-manager:allow-write-text"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-fullscreen"]}}
+51 -1
View File
@@ -901,6 +901,11 @@
"type": "string", "type": "string",
"const": "core:webview:allow-reparent" "const": "core:webview:allow-reparent"
}, },
{
"description": "Enables the set_webview_background_color command without any pre-configured scope.",
"type": "string",
"const": "core:webview:allow-set-webview-background-color"
},
{ {
"description": "Enables the set_webview_focus command without any pre-configured scope.", "description": "Enables the set_webview_focus command without any pre-configured scope.",
"type": "string", "type": "string",
@@ -981,6 +986,11 @@
"type": "string", "type": "string",
"const": "core:webview:deny-reparent" "const": "core:webview:deny-reparent"
}, },
{
"description": "Denies the set_webview_background_color command without any pre-configured scope.",
"type": "string",
"const": "core:webview:deny-set-webview-background-color"
},
{ {
"description": "Denies the set_webview_focus command without any pre-configured scope.", "description": "Denies the set_webview_focus command without any pre-configured scope.",
"type": "string", "type": "string",
@@ -1196,6 +1206,21 @@
"type": "string", "type": "string",
"const": "core:window:allow-set-always-on-top" "const": "core:window:allow-set-always-on-top"
}, },
{
"description": "Enables the set_background_color command without any pre-configured scope.",
"type": "string",
"const": "core:window:allow-set-background-color"
},
{
"description": "Enables the set_badge_count command without any pre-configured scope.",
"type": "string",
"const": "core:window:allow-set-badge-count"
},
{
"description": "Enables the set_badge_label command without any pre-configured scope.",
"type": "string",
"const": "core:window:allow-set-badge-label"
},
{ {
"description": "Enables the set_closable command without any pre-configured scope.", "description": "Enables the set_closable command without any pre-configured scope.",
"type": "string", "type": "string",
@@ -1281,6 +1306,11 @@
"type": "string", "type": "string",
"const": "core:window:allow-set-minimizable" "const": "core:window:allow-set-minimizable"
}, },
{
"description": "Enables the set_overlay_icon command without any pre-configured scope.",
"type": "string",
"const": "core:window:allow-set-overlay-icon"
},
{ {
"description": "Enables the set_position command without any pre-configured scope.", "description": "Enables the set_position command without any pre-configured scope.",
"type": "string", "type": "string",
@@ -1541,6 +1571,21 @@
"type": "string", "type": "string",
"const": "core:window:deny-set-always-on-top" "const": "core:window:deny-set-always-on-top"
}, },
{
"description": "Denies the set_background_color command without any pre-configured scope.",
"type": "string",
"const": "core:window:deny-set-background-color"
},
{
"description": "Denies the set_badge_count command without any pre-configured scope.",
"type": "string",
"const": "core:window:deny-set-badge-count"
},
{
"description": "Denies the set_badge_label command without any pre-configured scope.",
"type": "string",
"const": "core:window:deny-set-badge-label"
},
{ {
"description": "Denies the set_closable command without any pre-configured scope.", "description": "Denies the set_closable command without any pre-configured scope.",
"type": "string", "type": "string",
@@ -1626,6 +1671,11 @@
"type": "string", "type": "string",
"const": "core:window:deny-set-minimizable" "const": "core:window:deny-set-minimizable"
}, },
{
"description": "Denies the set_overlay_icon command without any pre-configured scope.",
"type": "string",
"const": "core:window:deny-set-overlay-icon"
},
{ {
"description": "Denies the set_position command without any pre-configured scope.", "description": "Denies the set_position command without any pre-configured scope.",
"type": "string", "type": "string",
@@ -1957,7 +2007,7 @@
"const": "notification:deny-show" "const": "notification:deny-show"
}, },
{ {
"description": "This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n", "description": "This permission set configures which\nprocess features are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",
"type": "string", "type": "string",
"const": "process:default" "const": "process:default"
}, },
+51 -1
View File
@@ -901,6 +901,11 @@
"type": "string", "type": "string",
"const": "core:webview:allow-reparent" "const": "core:webview:allow-reparent"
}, },
{
"description": "Enables the set_webview_background_color command without any pre-configured scope.",
"type": "string",
"const": "core:webview:allow-set-webview-background-color"
},
{ {
"description": "Enables the set_webview_focus command without any pre-configured scope.", "description": "Enables the set_webview_focus command without any pre-configured scope.",
"type": "string", "type": "string",
@@ -981,6 +986,11 @@
"type": "string", "type": "string",
"const": "core:webview:deny-reparent" "const": "core:webview:deny-reparent"
}, },
{
"description": "Denies the set_webview_background_color command without any pre-configured scope.",
"type": "string",
"const": "core:webview:deny-set-webview-background-color"
},
{ {
"description": "Denies the set_webview_focus command without any pre-configured scope.", "description": "Denies the set_webview_focus command without any pre-configured scope.",
"type": "string", "type": "string",
@@ -1196,6 +1206,21 @@
"type": "string", "type": "string",
"const": "core:window:allow-set-always-on-top" "const": "core:window:allow-set-always-on-top"
}, },
{
"description": "Enables the set_background_color command without any pre-configured scope.",
"type": "string",
"const": "core:window:allow-set-background-color"
},
{
"description": "Enables the set_badge_count command without any pre-configured scope.",
"type": "string",
"const": "core:window:allow-set-badge-count"
},
{
"description": "Enables the set_badge_label command without any pre-configured scope.",
"type": "string",
"const": "core:window:allow-set-badge-label"
},
{ {
"description": "Enables the set_closable command without any pre-configured scope.", "description": "Enables the set_closable command without any pre-configured scope.",
"type": "string", "type": "string",
@@ -1281,6 +1306,11 @@
"type": "string", "type": "string",
"const": "core:window:allow-set-minimizable" "const": "core:window:allow-set-minimizable"
}, },
{
"description": "Enables the set_overlay_icon command without any pre-configured scope.",
"type": "string",
"const": "core:window:allow-set-overlay-icon"
},
{ {
"description": "Enables the set_position command without any pre-configured scope.", "description": "Enables the set_position command without any pre-configured scope.",
"type": "string", "type": "string",
@@ -1541,6 +1571,21 @@
"type": "string", "type": "string",
"const": "core:window:deny-set-always-on-top" "const": "core:window:deny-set-always-on-top"
}, },
{
"description": "Denies the set_background_color command without any pre-configured scope.",
"type": "string",
"const": "core:window:deny-set-background-color"
},
{
"description": "Denies the set_badge_count command without any pre-configured scope.",
"type": "string",
"const": "core:window:deny-set-badge-count"
},
{
"description": "Denies the set_badge_label command without any pre-configured scope.",
"type": "string",
"const": "core:window:deny-set-badge-label"
},
{ {
"description": "Denies the set_closable command without any pre-configured scope.", "description": "Denies the set_closable command without any pre-configured scope.",
"type": "string", "type": "string",
@@ -1626,6 +1671,11 @@
"type": "string", "type": "string",
"const": "core:window:deny-set-minimizable" "const": "core:window:deny-set-minimizable"
}, },
{
"description": "Denies the set_overlay_icon command without any pre-configured scope.",
"type": "string",
"const": "core:window:deny-set-overlay-icon"
},
{ {
"description": "Denies the set_position command without any pre-configured scope.", "description": "Denies the set_position command without any pre-configured scope.",
"type": "string", "type": "string",
@@ -1957,7 +2007,7 @@
"const": "notification:deny-show" "const": "notification:deny-show"
}, },
{ {
"description": "This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n", "description": "This permission set configures which\nprocess features are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",
"type": "string", "type": "string",
"const": "process:default" "const": "process:default"
}, },
+1
View File
@@ -4,6 +4,7 @@ use tauri_plugin_log::{fern::colors::ColoredLevelConfig, Target, TargetKind};
fn main() { fn main() {
tauri::Builder::default() tauri::Builder::default()
.plugin(tauri_plugin_window_state::Builder::new().build())
.plugin(tauri_plugin_dialog::init()) .plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_upload::init()) .plugin(tauri_plugin_upload::init())
.plugin(tauri_plugin_notification::init()) .plugin(tauri_plugin_notification::init())
+2 -1
View File
@@ -77,7 +77,8 @@
"center": true, "center": true,
"label": "main", "label": "main",
"dragDropEnabled": false, "dragDropEnabled": false,
"backgroundColor": "#08001f" "backgroundColor": "#08001f",
"transparent": false
} }
], ],
"security": { "security": {
+1 -1
View File
@@ -248,7 +248,7 @@ const BubbleSlider = ({
// disablePortal: true, // disablePortal: true,
}, },
tooltip: { tooltip: {
className: "glass", // className: "glass",
style: { style: {
width: "34em", width: "34em",
overflow: "hidden", overflow: "hidden",
+2 -2
View File
@@ -24,8 +24,8 @@ const router = createRouter({
fetchCurrentUser: undefined!, fetchCurrentUser: undefined!,
}, },
defaultPreload: "intent", defaultPreload: "intent",
scrollRestoration: true, // scrollRestoration: true,
scrollRestorationBehavior: "smooth", // scrollRestorationBehavior: "smooth",
}); });
// Register the router instance for type safety // Register the router instance for type safety
+3 -1
View File
@@ -819,14 +819,16 @@ function VideoPlayer() {
</div> </div>
{(forceShowCredits || !showUpNextCard) && ( {(forceShowCredits || !showUpNextCard) && (
<div className="video-player-osd-info"> <div className="video-player-osd-info">
<div>
<Typography variant="h4" fontWeight={500} mb={2}> <Typography variant="h4" fontWeight={500} mb={2}>
{String(itemName)} {String(itemName)}
</Typography>
{episodeTitle && ( {episodeTitle && (
<Typography variant="h6" fontWeight={300} mt={1}> <Typography variant="h6" fontWeight={300} mt={1}>
{String(episodeTitle)} {String(episodeTitle)}
</Typography> </Typography>
)} )}
</Typography> </div>
<div className="video-player-osd-controls"> <div className="video-player-osd-controls">
<div className="video-player-osd-controls-progress"> <div className="video-player-osd-controls-progress">
{item && api && ( {item && api && (