34 files changed
+2910
-300
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
{"encodings":["src\\main.tsx","ProviderWrapper",[52,0,71,1],[53,39,57,3],[53,8,53,11],[53,13,53,22],[53,24,53,35],[58,34,61,3],[58,8,58,12],[58,14,58,30],[66,2,69,4],"src\\components\\notices\\errorNotice\\errorNotice.tsx","ErrorNotice",[6,27,54,1],[6,28,6,56],[9,2,52,8],[20,3,31,9],[32,3,34,16],[35,3,51,16],"src\\utils\\store\\api.tsx","ApiProvider",[50,27,67,1],[50,28,50,65],[51,17,65,2],[66,8,66,75],"useApiInContext",[69,7,75,1],[70,15,70,37],[74,8,74,57],"src\\utils\\store\\central.tsx","CentralProvider",[48,31,71,1],[48,32,48,69],[49,17,67,2],[69,2,69,77],"useCentralStore",[73,7,79,1],[74,15,74,41],[78,8,78,57],"src\\routes\\_api\\player\\index.tsx","VideoPlayer",[88,0,918,1],[89,13,89,42],[90,21,90,32],[90,9,90,16],[91,39,91,54],[92,16,92,48],[94,14,94,51],[106,5,116,3],[97,2,97,16],[98,2,98,6],[99,2,99,10],[100,2,100,14],[101,2,101,15],[102,2,102,14],[103,2,103,13],[104,2,104,15],[105,2,105,11],[117,40,120,3],[117,8,117,29],[117,31,117,36],[122,31,122,45],[123,41,125,2],[127,51,127,66],[130,31,130,46],[131,31,131,45],[132,35,132,50],[133,45,133,68],[134,33,134,56],[135,43,135,58],[137,29,137,40],[138,27,138,42],[140,1,140,41],[142,41,142,72],[219,24,257,7],[259,1,267,21],[267,5,267,19],[269,1,287,7],[289,1,292,15],[292,5,292,13],[294,41,311,62],[311,5,311,31],[311,33,311,60],[313,1,334,3],[331,2,331,28],[332,2,332,29],[333,2,333,37],[336,29,344,15],[344,5,344,13],[346,24,364,25],[364,5,364,13],[364,15,364,23],[366,25,370,15],[370,5,370,13],[372,49,372,64],[373,27,375,7],[376,1,376,56],[376,46,376,54],[378,22,384,21],[384,5,384,19],[464,5,481,11],[465,6,474,8],[475,6,477,19],[478,6,480,19],[485,4,499,10],[486,5,495,7],[496,5,498,18],[504,4,511,10],[505,5,507,18],[508,5,510,18],[515,3,519,9],[516,4,518,17],[523,51,523,66],[524,1,530,13],[530,5,530,11],[542,2,916,8],[543,3,566,21],[545,5,564,18],[563,6,563,52],[568,4,582,13],[585,4,585,55],[587,3,605,21],[589,5,603,18],[595,6,597,12],[598,6,602,8],[606,3,883,16],[642,4,696,10],[643,5,645,18],[644,6,644,66],[646,5,648,18],[647,6,647,64],[649,5,695,12],[670,6,694,18],[686,7,688,18],[690,8,692,19],[698,5,881,11],[699,6,706,19],[702,8,704,21],[707,6,880,12],[708,7,763,13],[709,8,756,10],[757,8,762,14],[758,9,760,22],[761,9,761,62],[764,7,879,13],[765,8,800,14],[766,9,766,31],[767,9,777,22],[774,10,776,17],[778,9,782,22],[779,10,781,17],[783,9,793,22],[790,10,792,17],[794,9,794,27],[795,9,799,22],[801,8,878,14],[802,9,840,22],[824,10,826,23],[827,10,839,12],[841,9,854,22],[847,10,853,17],[855,9,855,24],[856,9,865,22],[860,10,864,17],[866,9,877,22],[874,10,876,17],[884,3,915,5],"sliderDisplayFormat",[386,29,521,2],"src\\routes\\_api\\home\\index.tsx","Home",[40,0,400,1],[41,13,41,42],[42,14,42,51],[44,19,54,3],[56,21,80,3],[82,26,96,3],[98,26,111,3],[113,21,130,3],[132,47,134,6],[136,18,136,31],[138,21,138,59],[140,24,142,2],[144,1,157,26],[157,5,157,24],[161,3,397,10],[168,4,208,20],[170,6,170,26],[173,7,205,9],[210,4,245,20],[212,6,214,12],[213,7,213,51],[218,6,218,23],[220,6,243,21],[224,10,240,12],[246,4,301,20],[248,6,250,12],[249,7,249,52],[254,6,254,23],[258,6,299,21],[261,9,296,11],[302,4,354,20],[304,6,306,12],[305,7,305,59],[310,6,310,23],[315,6,352,21],[318,9,349,11],[355,4,385,20],[357,6,359,12],[358,7,358,59],[363,6,363,23],[368,6,383,21],[371,9,380,11],[386,4,396,20],[388,6,390,12],[389,7,389,62],[394,13,394,69],"src\\routes\\_api\\search\\index.jsx","SearchPage",[32,0,386,1],[33,13,33,36],[35,18,35,31],[36,19,36,36],[36,9,36,14],[38,37,38,49],[41,14,41,51],[45,16,58,3],[59,16,72,3],[73,20,86,3],[87,15,100,3],[101,14,114,3],[115,22,128,3],[129,16,140,3],[141,18,153,3],[155,23,155,71],[155,8,155,19],[157,1,160,7],[162,2,384,8],[172,3,203,9],[173,4,194,6],[195,4,202,10],[201,5,201,61],[204,3,358,9],[210,5,229,20],[212,7,227,9],[232,5,257,20],[234,7,255,9],[260,5,274,20],[263,8,271,10],[277,5,290,20],[279,7,288,9],[293,5,307,20],[295,7,305,9],[310,5,324,20],[312,7,322,9],[327,5,340,20],[329,7,338,9],[343,5,356,20],[345,7,354,9],[375,5,381,11],[380,6,380,68],[383,3,383,13],"src\\routes\\_api\\favorite\\index.tsx","FavoritePage",[21,0,297,1],[22,13,22,36],[23,23,23,71],[23,8,23,19],[25,14,25,51],[27,16,38,3],[40,16,51,3],[53,20,64,3],[66,15,77,3],[79,14,90,3],[92,22,103,3],[105,16,116,3],[118,1,120,3],[123,2,295,9],[134,4,153,19],[136,6,151,8],[156,4,181,19],[158,6,179,8],[184,4,203,19],[186,6,201,8],[206,4,226,19],[208,6,224,8],[229,4,249,19],[231,6,247,8],[252,4,271,19],[254,6,269,8],[274,4,293,19],[276,6,291,8],"src\\routes\\setup\\server.list.tsx","ServerList",[28,0,206,1],[29,18,29,31],[30,39,30,53],[31,29,31,42],[31,9,31,24],[33,19,33,54],[35,21,35,37],[37,17,40,3],[42,23,45,3],[47,28,65,3],[90,1,92,7],[95,2,204,8],[96,3,96,21],[97,3,117,9],[106,4,108,17],[109,4,116,17],[115,5,115,56],[118,3,203,11],[121,6,201,12],[122,7,124,13],[125,7,173,13],[126,8,154,21],[136,10,152,12],[138,12,144,25],[155,8,163,21],[164,8,172,21],[174,7,200,13],[175,8,186,21],[185,9,185,62],[187,8,199,21],[198,9,198,71],"src\\routes\\setup\\server.add.tsx","ServerSetup",Line truncated
|
||||||
Vendored
+2
-1
@@ -26,5 +26,6 @@
|
|||||||
"typescript.tsdk": "node_modules/typescript/lib",
|
"typescript.tsdk": "node_modules/typescript/lib",
|
||||||
"[scss]": {
|
"[scss]": {
|
||||||
"editor.defaultFormatter": "vscode.css-language-features"
|
"editor.defaultFormatter": "vscode.css-language-features"
|
||||||
}
|
},
|
||||||
|
"millionLint.theme": "million"
|
||||||
}
|
}
|
||||||
@@ -18,6 +18,7 @@
|
|||||||
"@fontsource-variable/jetbrains-mono": "^5.1.0",
|
"@fontsource-variable/jetbrains-mono": "^5.1.0",
|
||||||
"@fontsource-variable/noto-sans": "^5.1.0",
|
"@fontsource-variable/noto-sans": "^5.1.0",
|
||||||
"@jellyfin/sdk": "0.10.0",
|
"@jellyfin/sdk": "0.10.0",
|
||||||
|
"@million/lint": "^1.0.0",
|
||||||
"@mui/lab": "6.0.0-beta.10",
|
"@mui/lab": "6.0.0-beta.10",
|
||||||
"@mui/material": "6.1.1",
|
"@mui/material": "6.1.1",
|
||||||
"@react-spring/web": "^9.7.4",
|
"@react-spring/web": "^9.7.4",
|
||||||
@@ -28,6 +29,7 @@
|
|||||||
"@tanstack/react-virtual": "^3.10.8",
|
"@tanstack/react-virtual": "^3.10.8",
|
||||||
"@tauri-apps/api": "2.0.0-rc.4",
|
"@tauri-apps/api": "2.0.0-rc.4",
|
||||||
"@tauri-apps/plugin-clipboard-manager": "2.1.0-beta.6",
|
"@tauri-apps/plugin-clipboard-manager": "2.1.0-beta.6",
|
||||||
|
"@tauri-apps/plugin-notification": "2.0.0-rc.1",
|
||||||
"@tauri-apps/plugin-process": "2.0.0-rc.1",
|
"@tauri-apps/plugin-process": "2.0.0-rc.1",
|
||||||
"@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.0.0-rc.2",
|
"@tauri-apps/plugin-updater": "2.0.0-rc.2",
|
||||||
@@ -38,6 +40,7 @@
|
|||||||
"axios-tauri-api-adapter": "^0.2.2",
|
"axios-tauri-api-adapter": "^0.2.2",
|
||||||
"blurhash": "^2.0.5",
|
"blurhash": "^2.0.5",
|
||||||
"framer-motion": "^11.9.0",
|
"framer-motion": "^11.9.0",
|
||||||
|
"immer": "^10.1.1",
|
||||||
"jassub": "^1.7.17",
|
"jassub": "^1.7.17",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"material-symbols": "^0.23.0",
|
"material-symbols": "^0.23.0",
|
||||||
|
|||||||
Generated
+1276
-4
File diff suppressed because it is too large.
Load diff
Binary file not shown.
|
After Width: | Height: | Size: 287 KiB |
Generated
+629
-21
@@ -135,6 +135,149 @@ version = "1.1.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16"
|
checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-broadcast"
|
||||||
|
version = "0.7.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "20cd0e2e25ea8e5f7e9df04578dc6cf5c83577fd09b1a46aaf5c85e1c33f2a7e"
|
||||||
|
dependencies = [
|
||||||
|
"event-listener",
|
||||||
|
"event-listener-strategy",
|
||||||
|
"futures-core",
|
||||||
|
"pin-project-lite",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-channel"
|
||||||
|
version = "2.3.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "89b47800b0be77592da0afd425cc03468052844aff33b84e33cc696f64e77b6a"
|
||||||
|
dependencies = [
|
||||||
|
"concurrent-queue",
|
||||||
|
"event-listener-strategy",
|
||||||
|
"futures-core",
|
||||||
|
"pin-project-lite",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-executor"
|
||||||
|
version = "1.13.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "30ca9a001c1e8ba5149f91a74362376cc6bc5b919d92d988668657bd570bdcec"
|
||||||
|
dependencies = [
|
||||||
|
"async-task",
|
||||||
|
"concurrent-queue",
|
||||||
|
"fastrand",
|
||||||
|
"futures-lite",
|
||||||
|
"slab",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-fs"
|
||||||
|
version = "2.1.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ebcd09b382f40fcd159c2d695175b2ae620ffa5f3bd6f664131efff4e8b9e04a"
|
||||||
|
dependencies = [
|
||||||
|
"async-lock",
|
||||||
|
"blocking",
|
||||||
|
"futures-lite",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-io"
|
||||||
|
version = "2.3.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "444b0228950ee6501b3568d3c93bf1176a1fdbc3b758dcd9475046d30f4dc7e8"
|
||||||
|
dependencies = [
|
||||||
|
"async-lock",
|
||||||
|
"cfg-if",
|
||||||
|
"concurrent-queue",
|
||||||
|
"futures-io",
|
||||||
|
"futures-lite",
|
||||||
|
"parking",
|
||||||
|
"polling",
|
||||||
|
"rustix",
|
||||||
|
"slab",
|
||||||
|
"tracing",
|
||||||
|
"windows-sys 0.59.0",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-lock"
|
||||||
|
version = "3.4.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18"
|
||||||
|
dependencies = [
|
||||||
|
"event-listener",
|
||||||
|
"event-listener-strategy",
|
||||||
|
"pin-project-lite",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-process"
|
||||||
|
version = "2.3.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "63255f1dc2381611000436537bbedfe83183faa303a5a0edaf191edef06526bb"
|
||||||
|
dependencies = [
|
||||||
|
"async-channel",
|
||||||
|
"async-io",
|
||||||
|
"async-lock",
|
||||||
|
"async-signal",
|
||||||
|
"async-task",
|
||||||
|
"blocking",
|
||||||
|
"cfg-if",
|
||||||
|
"event-listener",
|
||||||
|
"futures-lite",
|
||||||
|
"rustix",
|
||||||
|
"tracing",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-recursion"
|
||||||
|
version = "1.1.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.79",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-signal"
|
||||||
|
version = "0.2.10"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "637e00349800c0bdf8bfc21ebbc0b6524abea702b0da4168ac00d070d0c0b9f3"
|
||||||
|
dependencies = [
|
||||||
|
"async-io",
|
||||||
|
"async-lock",
|
||||||
|
"atomic-waker",
|
||||||
|
"cfg-if",
|
||||||
|
"futures-core",
|
||||||
|
"futures-io",
|
||||||
|
"rustix",
|
||||||
|
"signal-hook-registry",
|
||||||
|
"slab",
|
||||||
|
"windows-sys 0.59.0",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-task"
|
||||||
|
version = "4.7.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-trait"
|
||||||
|
version = "0.1.83"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.79",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "atk"
|
name = "atk"
|
||||||
version = "0.18.0"
|
version = "0.18.0"
|
||||||
@@ -158,6 +301,12 @@ dependencies = [
|
|||||||
"system-deps",
|
"system-deps",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "atomic-waker"
|
||||||
|
version = "1.1.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "autocfg"
|
name = "autocfg"
|
||||||
version = "1.4.0"
|
version = "1.4.0"
|
||||||
@@ -237,6 +386,7 @@ dependencies = [
|
|||||||
"tauri-plugin-clipboard-manager",
|
"tauri-plugin-clipboard-manager",
|
||||||
"tauri-plugin-localhost",
|
"tauri-plugin-localhost",
|
||||||
"tauri-plugin-log",
|
"tauri-plugin-log",
|
||||||
|
"tauri-plugin-notification",
|
||||||
"tauri-plugin-process",
|
"tauri-plugin-process",
|
||||||
"tauri-plugin-store",
|
"tauri-plugin-store",
|
||||||
"tauri-plugin-updater",
|
"tauri-plugin-updater",
|
||||||
@@ -267,6 +417,19 @@ dependencies = [
|
|||||||
"objc2",
|
"objc2",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "blocking"
|
||||||
|
version = "1.6.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "703f41c54fc768e63e091340b424302bb1c29ef4aa0c7f10fe849dfb114d29ea"
|
||||||
|
dependencies = [
|
||||||
|
"async-channel",
|
||||||
|
"async-task",
|
||||||
|
"futures-io",
|
||||||
|
"futures-lite",
|
||||||
|
"piper",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "borsh"
|
name = "borsh"
|
||||||
version = "1.3.0"
|
version = "1.3.0"
|
||||||
@@ -584,6 +747,15 @@ dependencies = [
|
|||||||
"memchr",
|
"memchr",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "concurrent-queue"
|
||||||
|
version = "2.5.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
|
||||||
|
dependencies = [
|
||||||
|
"crossbeam-utils",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "convert_case"
|
name = "convert_case"
|
||||||
version = "0.4.0"
|
version = "0.4.0"
|
||||||
@@ -814,6 +986,17 @@ dependencies = [
|
|||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "derivative"
|
||||||
|
version = "2.2.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 1.0.109",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "derive_arbitrary"
|
name = "derive_arbitrary"
|
||||||
version = "1.3.2"
|
version = "1.3.2"
|
||||||
@@ -857,6 +1040,16 @@ dependencies = [
|
|||||||
"dirs-sys",
|
"dirs-sys",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "dirs-next"
|
||||||
|
version = "2.0.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1"
|
||||||
|
dependencies = [
|
||||||
|
"cfg-if",
|
||||||
|
"dirs-sys-next",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dirs-sys"
|
name = "dirs-sys"
|
||||||
version = "0.4.1"
|
version = "0.4.1"
|
||||||
@@ -869,6 +1062,17 @@ dependencies = [
|
|||||||
"windows-sys 0.48.0",
|
"windows-sys 0.48.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "dirs-sys-next"
|
||||||
|
version = "0.1.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"
|
||||||
|
dependencies = [
|
||||||
|
"libc",
|
||||||
|
"redox_users",
|
||||||
|
"winapi",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dispatch"
|
name = "dispatch"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
@@ -971,6 +1175,33 @@ version = "1.2.2"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"
|
checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "endi"
|
||||||
|
version = "1.1.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a3d8a32ae18130a3c84dd492d4215c3d913c3b07c6b63c2eb3eb7ff1101ab7bf"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "enumflags2"
|
||||||
|
version = "0.7.10"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d232db7f5956f3f14313dc2f87985c58bd2c695ce124c8cdd984e08e15ac133d"
|
||||||
|
dependencies = [
|
||||||
|
"enumflags2_derive",
|
||||||
|
"serde",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "enumflags2_derive"
|
||||||
|
version = "0.7.10"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "de0d48a183585823424a4ce1aa132d174a6a81bd540895822eb4c8373a8e49e8"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.79",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "env_filter"
|
name = "env_filter"
|
||||||
version = "0.1.2"
|
version = "0.1.2"
|
||||||
@@ -1013,6 +1244,27 @@ version = "3.3.1"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a5d9305ccc6942a704f4335694ecd3de2ea531b114ac2d51f5f843750787a92f"
|
checksum = "a5d9305ccc6942a704f4335694ecd3de2ea531b114ac2d51f5f843750787a92f"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "event-listener"
|
||||||
|
version = "5.3.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba"
|
||||||
|
dependencies = [
|
||||||
|
"concurrent-queue",
|
||||||
|
"parking",
|
||||||
|
"pin-project-lite",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "event-listener-strategy"
|
||||||
|
version = "0.5.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1"
|
||||||
|
dependencies = [
|
||||||
|
"event-listener",
|
||||||
|
"pin-project-lite",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "exr"
|
name = "exr"
|
||||||
version = "1.72.0"
|
version = "1.72.0"
|
||||||
@@ -1194,6 +1446,19 @@ version = "0.3.30"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1"
|
checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "futures-lite"
|
||||||
|
version = "2.3.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5"
|
||||||
|
dependencies = [
|
||||||
|
"fastrand",
|
||||||
|
"futures-core",
|
||||||
|
"futures-io",
|
||||||
|
"parking",
|
||||||
|
"pin-project-lite",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-macro"
|
name = "futures-macro"
|
||||||
version = "0.3.30"
|
version = "0.3.30"
|
||||||
@@ -2072,6 +2337,19 @@ version = "0.1.1"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
|
checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "mac-notification-sys"
|
||||||
|
version = "0.6.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "dce8f34f3717aa37177e723df6c1fc5fb02b2a1087374ea3fe0ea42316dc8f91"
|
||||||
|
dependencies = [
|
||||||
|
"cc",
|
||||||
|
"dirs-next",
|
||||||
|
"objc-foundation",
|
||||||
|
"objc_id",
|
||||||
|
"time",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "malloc_buf"
|
name = "malloc_buf"
|
||||||
version = "0.0.6"
|
version = "0.0.6"
|
||||||
@@ -2215,12 +2493,37 @@ version = "1.0.6"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
|
checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "nix"
|
||||||
|
version = "0.27.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053"
|
||||||
|
dependencies = [
|
||||||
|
"bitflags 2.6.0",
|
||||||
|
"cfg-if",
|
||||||
|
"libc",
|
||||||
|
"memoffset",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nodrop"
|
name = "nodrop"
|
||||||
version = "0.1.14"
|
version = "0.1.14"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb"
|
checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "notify-rust"
|
||||||
|
version = "4.11.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "5134a72dc570b178bff81b01e81ab14a6fcc015391ed4b3b14853090658cd3a3"
|
||||||
|
dependencies = [
|
||||||
|
"log",
|
||||||
|
"mac-notification-sys",
|
||||||
|
"serde",
|
||||||
|
"tauri-winrt-notification",
|
||||||
|
"zbus",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "num-conv"
|
name = "num-conv"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
@@ -2276,6 +2579,17 @@ dependencies = [
|
|||||||
"objc_exception",
|
"objc_exception",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "objc-foundation"
|
||||||
|
version = "0.1.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"
|
||||||
|
dependencies = [
|
||||||
|
"block",
|
||||||
|
"objc",
|
||||||
|
"objc_id",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "objc-sys"
|
name = "objc-sys"
|
||||||
version = "0.3.5"
|
version = "0.3.5"
|
||||||
@@ -2414,6 +2728,16 @@ version = "0.2.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
|
checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ordered-stream"
|
||||||
|
version = "0.2.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
|
||||||
|
dependencies = [
|
||||||
|
"futures-core",
|
||||||
|
"pin-project-lite",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pango"
|
name = "pango"
|
||||||
version = "0.18.3"
|
version = "0.18.3"
|
||||||
@@ -2439,6 +2763,12 @@ dependencies = [
|
|||||||
"system-deps",
|
"system-deps",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "parking"
|
||||||
|
version = "2.2.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "parking_lot"
|
name = "parking_lot"
|
||||||
version = "0.12.3"
|
version = "0.12.3"
|
||||||
@@ -2614,6 +2944,17 @@ version = "0.1.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "piper"
|
||||||
|
version = "0.2.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "96c8c490f422ef9a4efd2cb5b42b76c8613d7e7dfc1caf667b8a3350a5acc066"
|
||||||
|
dependencies = [
|
||||||
|
"atomic-waker",
|
||||||
|
"fastrand",
|
||||||
|
"futures-io",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pkg-config"
|
name = "pkg-config"
|
||||||
version = "0.3.31"
|
version = "0.3.31"
|
||||||
@@ -2628,7 +2969,7 @@ checksum = "42cf17e9a1800f5f396bc67d193dc9411b59012a5876445ef450d449881e1016"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
"indexmap 2.5.0",
|
"indexmap 2.5.0",
|
||||||
"quick-xml",
|
"quick-xml 0.32.0",
|
||||||
"serde",
|
"serde",
|
||||||
"time",
|
"time",
|
||||||
]
|
]
|
||||||
@@ -2646,6 +2987,21 @@ dependencies = [
|
|||||||
"miniz_oxide 0.8.0",
|
"miniz_oxide 0.8.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "polling"
|
||||||
|
version = "3.7.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "cc2790cd301dec6cd3b7a025e4815cf825724a51c98dccfe6a3e55f05ffb6511"
|
||||||
|
dependencies = [
|
||||||
|
"cfg-if",
|
||||||
|
"concurrent-queue",
|
||||||
|
"hermit-abi 0.4.0",
|
||||||
|
"pin-project-lite",
|
||||||
|
"rustix",
|
||||||
|
"tracing",
|
||||||
|
"windows-sys 0.59.0",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "portpicker"
|
name = "portpicker"
|
||||||
version = "0.1.1"
|
version = "0.1.1"
|
||||||
@@ -2764,6 +3120,15 @@ dependencies = [
|
|||||||
"bytemuck",
|
"bytemuck",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "quick-xml"
|
||||||
|
version = "0.31.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "1004a344b30a54e2ee58d66a71b32d2db2feb0a31f9a2d302bf0536f15de2a33"
|
||||||
|
dependencies = [
|
||||||
|
"memchr",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "quick-xml"
|
name = "quick-xml"
|
||||||
version = "0.32.0"
|
version = "0.32.0"
|
||||||
@@ -3411,6 +3776,17 @@ dependencies = [
|
|||||||
"stable_deref_trait",
|
"stable_deref_trait",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "sha1"
|
||||||
|
version = "0.10.6"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
|
||||||
|
dependencies = [
|
||||||
|
"cfg-if",
|
||||||
|
"cpufeatures",
|
||||||
|
"digest",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sha2"
|
name = "sha2"
|
||||||
version = "0.10.8"
|
version = "0.10.8"
|
||||||
@@ -3428,6 +3804,15 @@ version = "1.3.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "signal-hook-registry"
|
||||||
|
version = "1.4.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1"
|
||||||
|
dependencies = [
|
||||||
|
"libc",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "simd-adler32"
|
name = "simd-adler32"
|
||||||
version = "0.3.7"
|
version = "0.3.7"
|
||||||
@@ -3534,6 +3919,12 @@ version = "1.2.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
|
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "static_assertions"
|
||||||
|
version = "1.1.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "string_cache"
|
name = "string_cache"
|
||||||
version = "0.8.7"
|
version = "0.8.7"
|
||||||
@@ -3672,7 +4063,7 @@ dependencies = [
|
|||||||
"tao-macros",
|
"tao-macros",
|
||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
"url",
|
"url",
|
||||||
"windows",
|
"windows 0.58.0",
|
||||||
"windows-core 0.58.0",
|
"windows-core 0.58.0",
|
||||||
"windows-version",
|
"windows-version",
|
||||||
"x11-dl",
|
"x11-dl",
|
||||||
@@ -3759,7 +4150,7 @@ dependencies = [
|
|||||||
"webkit2gtk",
|
"webkit2gtk",
|
||||||
"webview2-com",
|
"webview2-com",
|
||||||
"window-vibrancy",
|
"window-vibrancy",
|
||||||
"windows",
|
"windows 0.58.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -3861,7 +4252,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "tauri-plugin-localhost"
|
name = "tauri-plugin-localhost"
|
||||||
version = "2.0.0-rc.1"
|
version = "2.0.0-rc.1"
|
||||||
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#34737186fe64a3643166fb28dbcd5b504bb757bf"
|
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#34319bd977352dfeb9236bb2ac68f51a69ccc20d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"http",
|
"http",
|
||||||
"log",
|
"log",
|
||||||
@@ -3875,7 +4266,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "tauri-plugin-log"
|
name = "tauri-plugin-log"
|
||||||
version = "2.0.0-rc.2"
|
version = "2.0.0-rc.2"
|
||||||
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#34737186fe64a3643166fb28dbcd5b504bb757bf"
|
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#34319bd977352dfeb9236bb2ac68f51a69ccc20d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"android_logger",
|
"android_logger",
|
||||||
"byte-unit",
|
"byte-unit",
|
||||||
@@ -3893,10 +4284,29 @@ dependencies = [
|
|||||||
"time",
|
"time",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "tauri-plugin-notification"
|
||||||
|
version = "2.0.0-rc.5"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "27f6edb6c4219e9be6ff9b3b1957e679e918051d1070a57bc2de876f23d33072"
|
||||||
|
dependencies = [
|
||||||
|
"log",
|
||||||
|
"notify-rust",
|
||||||
|
"rand 0.8.5",
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
|
"serde_repr",
|
||||||
|
"tauri",
|
||||||
|
"tauri-plugin",
|
||||||
|
"thiserror",
|
||||||
|
"time",
|
||||||
|
"url",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tauri-plugin-process"
|
name = "tauri-plugin-process"
|
||||||
version = "2.0.0-rc.1"
|
version = "2.0.0-rc.1"
|
||||||
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#34737186fe64a3643166fb28dbcd5b504bb757bf"
|
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#34319bd977352dfeb9236bb2ac68f51a69ccc20d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"tauri",
|
"tauri",
|
||||||
"tauri-plugin",
|
"tauri-plugin",
|
||||||
@@ -3905,7 +4315,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "tauri-plugin-store"
|
name = "tauri-plugin-store"
|
||||||
version = "2.0.0-rc.3"
|
version = "2.0.0-rc.3"
|
||||||
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#34737186fe64a3643166fb28dbcd5b504bb757bf"
|
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#34319bd977352dfeb9236bb2ac68f51a69ccc20d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dunce",
|
"dunce",
|
||||||
"log",
|
"log",
|
||||||
@@ -3919,7 +4329,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "tauri-plugin-updater"
|
name = "tauri-plugin-updater"
|
||||||
version = "2.0.0-rc.3"
|
version = "2.0.0-rc.3"
|
||||||
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#34737186fe64a3643166fb28dbcd5b504bb757bf"
|
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#34319bd977352dfeb9236bb2ac68f51a69ccc20d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
"dirs",
|
"dirs",
|
||||||
@@ -3948,7 +4358,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "tauri-plugin-window-state"
|
name = "tauri-plugin-window-state"
|
||||||
version = "2.0.0-rc.5"
|
version = "2.0.0-rc.5"
|
||||||
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#34737186fe64a3643166fb28dbcd5b504bb757bf"
|
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#34319bd977352dfeb9236bb2ac68f51a69ccc20d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.6.0",
|
"bitflags 2.6.0",
|
||||||
"log",
|
"log",
|
||||||
@@ -3975,7 +4385,7 @@ dependencies = [
|
|||||||
"tauri-utils",
|
"tauri-utils",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
"url",
|
"url",
|
||||||
"windows",
|
"windows 0.58.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -4000,7 +4410,7 @@ dependencies = [
|
|||||||
"url",
|
"url",
|
||||||
"webkit2gtk",
|
"webkit2gtk",
|
||||||
"webview2-com",
|
"webview2-com",
|
||||||
"windows",
|
"windows 0.58.0",
|
||||||
"wry",
|
"wry",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -4050,6 +4460,17 @@ dependencies = [
|
|||||||
"toml 0.7.8",
|
"toml 0.7.8",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "tauri-winrt-notification"
|
||||||
|
version = "0.2.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f89f5fb70d6f62381f5d9b2ba9008196150b40b75f3068eb24faeddf1c686871"
|
||||||
|
dependencies = [
|
||||||
|
"quick-xml 0.31.0",
|
||||||
|
"windows 0.56.0",
|
||||||
|
"windows-version",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tempfile"
|
name = "tempfile"
|
||||||
version = "3.13.0"
|
version = "3.13.0"
|
||||||
@@ -4282,9 +4703,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"
|
checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"pin-project-lite",
|
"pin-project-lite",
|
||||||
|
"tracing-attributes",
|
||||||
"tracing-core",
|
"tracing-core",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "tracing-attributes"
|
||||||
|
version = "0.1.27"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.79",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tracing-core"
|
name = "tracing-core"
|
||||||
version = "0.1.32"
|
version = "0.1.32"
|
||||||
@@ -4333,6 +4766,17 @@ version = "1.17.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
|
checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "uds_windows"
|
||||||
|
version = "1.1.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "89daebc3e6fd160ac4aa9fc8b3bf71e1f74fbf92367ae71fb83a037e8bf164b9"
|
||||||
|
dependencies = [
|
||||||
|
"memoffset",
|
||||||
|
"tempfile",
|
||||||
|
"winapi",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "unic-char-property"
|
name = "unic-char-property"
|
||||||
version = "0.9.0"
|
version = "0.9.0"
|
||||||
@@ -4673,10 +5117,10 @@ checksum = "6f61ff3d9d0ee4efcb461b14eb3acfda2702d10dc329f339303fc3e57215ae2c"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"webview2-com-macros",
|
"webview2-com-macros",
|
||||||
"webview2-com-sys",
|
"webview2-com-sys",
|
||||||
"windows",
|
"windows 0.58.0",
|
||||||
"windows-core 0.58.0",
|
"windows-core 0.58.0",
|
||||||
"windows-implement",
|
"windows-implement 0.58.0",
|
||||||
"windows-interface",
|
"windows-interface 0.58.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -4697,7 +5141,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "a3a3e2eeb58f82361c93f9777014668eb3d07e7d174ee4c819575a9208011886"
|
checksum = "a3a3e2eeb58f82361c93f9777014668eb3d07e7d174ee4c819575a9208011886"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"thiserror",
|
"thiserror",
|
||||||
"windows",
|
"windows 0.58.0",
|
||||||
"windows-core 0.58.0",
|
"windows-core 0.58.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -4752,6 +5196,16 @@ dependencies = [
|
|||||||
"windows-version",
|
"windows-version",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "windows"
|
||||||
|
version = "0.56.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "1de69df01bdf1ead2f4ac895dc77c9351aefff65b2f3db429a343f9cbf05e132"
|
||||||
|
dependencies = [
|
||||||
|
"windows-core 0.56.0",
|
||||||
|
"windows-targets 0.52.6",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "windows"
|
name = "windows"
|
||||||
version = "0.58.0"
|
version = "0.58.0"
|
||||||
@@ -4771,19 +5225,42 @@ dependencies = [
|
|||||||
"windows-targets 0.52.6",
|
"windows-targets 0.52.6",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "windows-core"
|
||||||
|
version = "0.56.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4698e52ed2d08f8658ab0c39512a7c00ee5fe2688c65f8c0a4f06750d729f2a6"
|
||||||
|
dependencies = [
|
||||||
|
"windows-implement 0.56.0",
|
||||||
|
"windows-interface 0.56.0",
|
||||||
|
"windows-result 0.1.2",
|
||||||
|
"windows-targets 0.52.6",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "windows-core"
|
name = "windows-core"
|
||||||
version = "0.58.0"
|
version = "0.58.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"
|
checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"windows-implement",
|
"windows-implement 0.58.0",
|
||||||
"windows-interface",
|
"windows-interface 0.58.0",
|
||||||
"windows-result",
|
"windows-result 0.2.0",
|
||||||
"windows-strings",
|
"windows-strings",
|
||||||
"windows-targets 0.52.6",
|
"windows-targets 0.52.6",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "windows-implement"
|
||||||
|
version = "0.56.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f6fc35f58ecd95a9b71c4f2329b911016e6bec66b3f2e6a4aad86bd2e99e2f9b"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.79",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "windows-implement"
|
name = "windows-implement"
|
||||||
version = "0.58.0"
|
version = "0.58.0"
|
||||||
@@ -4795,6 +5272,17 @@ dependencies = [
|
|||||||
"syn 2.0.79",
|
"syn 2.0.79",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "windows-interface"
|
||||||
|
version = "0.56.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "08990546bf4edef8f431fa6326e032865f27138718c587dc21bc0265bbcb57cc"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.79",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "windows-interface"
|
name = "windows-interface"
|
||||||
version = "0.58.0"
|
version = "0.58.0"
|
||||||
@@ -4812,11 +5300,20 @@ version = "0.2.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0"
|
checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"windows-result",
|
"windows-result 0.2.0",
|
||||||
"windows-strings",
|
"windows-strings",
|
||||||
"windows-targets 0.52.6",
|
"windows-targets 0.52.6",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "windows-result"
|
||||||
|
version = "0.1.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8"
|
||||||
|
dependencies = [
|
||||||
|
"windows-targets 0.52.6",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "windows-result"
|
name = "windows-result"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
@@ -4832,7 +5329,7 @@ version = "0.1.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"
|
checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"windows-result",
|
"windows-result 0.2.0",
|
||||||
"windows-targets 0.52.6",
|
"windows-targets 0.52.6",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -5112,7 +5609,7 @@ dependencies = [
|
|||||||
"webkit2gtk",
|
"webkit2gtk",
|
||||||
"webkit2gtk-sys",
|
"webkit2gtk-sys",
|
||||||
"webview2-com",
|
"webview2-com",
|
||||||
"windows",
|
"windows 0.58.0",
|
||||||
"windows-core 0.58.0",
|
"windows-core 0.58.0",
|
||||||
"windows-version",
|
"windows-version",
|
||||||
"x11-dl",
|
"x11-dl",
|
||||||
@@ -5176,6 +5673,80 @@ dependencies = [
|
|||||||
"rustix",
|
"rustix",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "xdg-home"
|
||||||
|
version = "1.3.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ec1cdab258fb55c0da61328dc52c8764709b249011b2cad0454c72f0bf10a1f6"
|
||||||
|
dependencies = [
|
||||||
|
"libc",
|
||||||
|
"windows-sys 0.59.0",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "zbus"
|
||||||
|
version = "4.0.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "7b8e3d6ae3342792a6cc2340e4394334c7402f3d793b390d2c5494a4032b3030"
|
||||||
|
dependencies = [
|
||||||
|
"async-broadcast",
|
||||||
|
"async-executor",
|
||||||
|
"async-fs",
|
||||||
|
"async-io",
|
||||||
|
"async-lock",
|
||||||
|
"async-process",
|
||||||
|
"async-recursion",
|
||||||
|
"async-task",
|
||||||
|
"async-trait",
|
||||||
|
"blocking",
|
||||||
|
"derivative",
|
||||||
|
"enumflags2",
|
||||||
|
"event-listener",
|
||||||
|
"futures-core",
|
||||||
|
"futures-sink",
|
||||||
|
"futures-util",
|
||||||
|
"hex",
|
||||||
|
"nix",
|
||||||
|
"ordered-stream",
|
||||||
|
"rand 0.8.5",
|
||||||
|
"serde",
|
||||||
|
"serde_repr",
|
||||||
|
"sha1",
|
||||||
|
"static_assertions",
|
||||||
|
"tracing",
|
||||||
|
"uds_windows",
|
||||||
|
"windows-sys 0.52.0",
|
||||||
|
"xdg-home",
|
||||||
|
"zbus_macros",
|
||||||
|
"zbus_names",
|
||||||
|
"zvariant",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "zbus_macros"
|
||||||
|
version = "4.0.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "b7a3e850ff1e7217a3b7a07eba90d37fe9bb9e89a310f718afcde5885ca9b6d7"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro-crate 1.3.1",
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"regex",
|
||||||
|
"syn 1.0.109",
|
||||||
|
"zvariant_utils",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "zbus_names"
|
||||||
|
version = "3.0.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4b9b1fef7d021261cc16cba64c351d291b715febe0fa10dc3a443ac5a5022e6c"
|
||||||
|
dependencies = [
|
||||||
|
"serde",
|
||||||
|
"static_assertions",
|
||||||
|
"zvariant",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zerocopy"
|
name = "zerocopy"
|
||||||
version = "0.7.35"
|
version = "0.7.35"
|
||||||
@@ -5226,3 +5797,40 @@ checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"simd-adler32",
|
"simd-adler32",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "zvariant"
|
||||||
|
version = "4.0.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4e09e8be97d44eeab994d752f341e67b3b0d80512a8b315a0671d47232ef1b65"
|
||||||
|
dependencies = [
|
||||||
|
"endi",
|
||||||
|
"enumflags2",
|
||||||
|
"serde",
|
||||||
|
"static_assertions",
|
||||||
|
"zvariant_derive",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "zvariant_derive"
|
||||||
|
version = "4.0.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "72a5857e2856435331636a9fbb415b09243df4521a267c5bedcd5289b4d5799e"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro-crate 1.3.1",
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 1.0.109",
|
||||||
|
"zvariant_utils",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "zvariant_utils"
|
||||||
|
version = "1.1.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "00bedb16a193cc12451873fee2a1bc6550225acece0e36f333e68326c73c8172"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 1.0.109",
|
||||||
|
]
|
||||||
@@ -27,6 +27,7 @@ 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" }
|
||||||
tauri-plugin-clipboard-manager = "2.1.0-beta.6"
|
tauri-plugin-clipboard-manager = "2.1.0-beta.6"
|
||||||
|
tauri-plugin-notification = "2.0.0-rc.1"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
# by default Tauri runs in production mode
|
# by default Tauri runs in production mode
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
"store:allow-keys",
|
"store:allow-keys",
|
||||||
"store:allow-load",
|
"store:allow-load",
|
||||||
"updater:allow-check",
|
"updater:allow-check",
|
||||||
"updater:allow-download-and-install"
|
"updater:allow-download-and-install",
|
||||||
|
"notification:default",
|
||||||
|
"core:webview:allow-internal-toggle-devtools"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -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 @@
|
|||||||
{"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"]},"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"]}}
|
{"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"]},"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"]}}
|
||||||
@@ -1736,6 +1736,171 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "log:deny-log"
|
"const": "log:deny-log"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:default"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the batch command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-batch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the cancel command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-cancel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the check_permissions command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-check-permissions"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the create_channel command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-create-channel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the delete_channel command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-delete-channel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the get_active command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-get-active"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the get_pending command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-get-pending"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the is_permission_granted command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-is-permission-granted"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the list_channels command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-list-channels"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the notify command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-notify"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the permission_state command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-permission-state"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the register_action_types command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-register-action-types"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the register_listener command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-register-listener"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the remove_active command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-remove-active"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the request_permission command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-request-permission"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the show command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-show"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the batch command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-batch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the cancel command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-cancel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the check_permissions command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-check-permissions"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the create_channel command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-create-channel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the delete_channel command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-delete-channel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the get_active command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-get-active"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the get_pending command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-get-pending"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the is_permission_granted command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-is-permission-granted"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the list_channels command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-list-channels"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the notify command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-notify"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the permission_state command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-permission-state"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the register_action_types command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-register-action-types"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the register_listener command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-register-listener"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the remove_active command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-remove-active"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the request_permission command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-request-permission"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the show command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"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 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",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -1736,6 +1736,171 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "log:deny-log"
|
"const": "log:deny-log"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:default"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the batch command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-batch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the cancel command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-cancel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the check_permissions command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-check-permissions"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the create_channel command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-create-channel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the delete_channel command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-delete-channel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the get_active command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-get-active"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the get_pending command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-get-pending"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the is_permission_granted command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-is-permission-granted"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the list_channels command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-list-channels"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the notify command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-notify"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the permission_state command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-permission-state"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the register_action_types command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-register-action-types"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the register_listener command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-register-listener"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the remove_active command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-remove-active"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the request_permission command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-request-permission"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Enables the show command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:allow-show"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the batch command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-batch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the cancel command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-cancel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the check_permissions command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-check-permissions"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the create_channel command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-create-channel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the delete_channel command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-delete-channel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the get_active command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-get-active"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the get_pending command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-get-pending"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the is_permission_granted command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-is-permission-granted"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the list_channels command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-list-channels"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the notify command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-notify"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the permission_state command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-permission-state"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the register_action_types command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-register-action-types"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the register_listener command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-register-listener"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the remove_active command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-remove-active"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the request_permission command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"const": "notification:deny-request-permission"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Denies the show command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"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 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",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -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_notification::init())
|
||||||
.plugin(tauri_plugin_clipboard_manager::init())
|
.plugin(tauri_plugin_clipboard_manager::init())
|
||||||
.plugin(
|
.plugin(
|
||||||
tauri_plugin_log::Builder::default()
|
tauri_plugin_log::Builder::default()
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ const Slider = ({
|
|||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const slide = (direction: Direction) => {
|
const slideLeft = useCallback(() => {
|
||||||
const clientWidth =
|
const clientWidth =
|
||||||
containerRef.current?.getBoundingClientRect().width ?? 0;
|
containerRef.current?.getBoundingClientRect().width ?? 0;
|
||||||
const cardWidth =
|
const cardWidth =
|
||||||
@@ -86,58 +86,67 @@ const Slider = ({
|
|||||||
const visibleItems = Math.floor(clientWidth / cardWidth);
|
const visibleItems = Math.floor(clientWidth / cardWidth);
|
||||||
const scrollOffset = scrollPosition % cardWidth;
|
const scrollOffset = scrollPosition % cardWidth;
|
||||||
|
|
||||||
if (direction === Direction.LEFT) {
|
const newX = Math.max(
|
||||||
const newX = Math.max(
|
scrollPosition - scrollOffset - visibleItems * cardWidth,
|
||||||
scrollPosition - scrollOffset - visibleItems * cardWidth,
|
0,
|
||||||
0,
|
);
|
||||||
);
|
setX.start({
|
||||||
setX.start({
|
from: { x: scrollPosition },
|
||||||
from: { x: scrollPosition },
|
to: { x: newX },
|
||||||
to: { x: newX },
|
onChange: (results) => {
|
||||||
onChange: (results) => {
|
if (containerRef.current) {
|
||||||
if (containerRef.current) {
|
containerRef.current.scrollLeft = results.value.x;
|
||||||
containerRef.current.scrollLeft = results.value.x;
|
}
|
||||||
}
|
},
|
||||||
},
|
reset: true,
|
||||||
reset: true,
|
config: { friction: 60, tension: 1000, velocity: 2 },
|
||||||
config: { friction: 60, tension: 1000, velocity: 2 },
|
});
|
||||||
});
|
|
||||||
|
|
||||||
if (newX === 0) {
|
if (newX === 0) {
|
||||||
setScrollPos({ isStart: true, isEnd: false });
|
setScrollPos({ isStart: true, isEnd: false });
|
||||||
} else {
|
} else {
|
||||||
setScrollPos({ isStart: false, isEnd: false });
|
setScrollPos({ isStart: false, isEnd: false });
|
||||||
}
|
|
||||||
} else if (direction === Direction.RIGHT) {
|
|
||||||
const newX = Math.min(
|
|
||||||
scrollPosition - scrollOffset + visibleItems * cardWidth,
|
|
||||||
containerRef.current?.scrollWidth ?? 0 - clientWidth,
|
|
||||||
);
|
|
||||||
setX.start({
|
|
||||||
from: { x: scrollPosition },
|
|
||||||
to: { x: newX },
|
|
||||||
onChange: (results) => {
|
|
||||||
if (containerRef.current) {
|
|
||||||
containerRef.current.scrollLeft = results.value.x;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
reset: true,
|
|
||||||
config: { friction: 60, tension: 500, velocity: 2 },
|
|
||||||
});
|
|
||||||
|
|
||||||
if (newX >= (containerRef.current?.scrollWidth ?? 0) - clientWidth) {
|
|
||||||
setScrollPos({ isStart: false, isEnd: true });
|
|
||||||
} else {
|
|
||||||
setScrollPos({ isStart: false, isEnd: false });
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
}, [setX]);
|
||||||
|
|
||||||
|
const slideRight = useCallback(() => {
|
||||||
|
const clientWidth =
|
||||||
|
containerRef.current?.getBoundingClientRect().width ?? 0;
|
||||||
|
const cardWidth =
|
||||||
|
containerRef.current?.firstElementChild?.getBoundingClientRect().width ??
|
||||||
|
0;
|
||||||
|
const scrollPosition = containerRef.current?.scrollLeft ?? 0;
|
||||||
|
const visibleItems = Math.floor(clientWidth / cardWidth);
|
||||||
|
const scrollOffset = scrollPosition % cardWidth;
|
||||||
|
|
||||||
|
const newX = Math.min(
|
||||||
|
scrollPosition - scrollOffset + visibleItems * cardWidth,
|
||||||
|
containerRef.current?.scrollWidth ?? 0 - clientWidth,
|
||||||
|
);
|
||||||
|
setX.start({
|
||||||
|
from: { x: scrollPosition },
|
||||||
|
to: { x: newX },
|
||||||
|
onChange: (results) => {
|
||||||
|
if (containerRef.current) {
|
||||||
|
containerRef.current.scrollLeft = results.value.x;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
reset: true,
|
||||||
|
config: { friction: 60, tension: 500, velocity: 2 },
|
||||||
|
});
|
||||||
|
|
||||||
|
if (newX >= (containerRef.current?.scrollWidth ?? 0) - clientWidth) {
|
||||||
|
setScrollPos({ isStart: false, isEnd: true });
|
||||||
|
} else {
|
||||||
|
setScrollPos({ isStart: false, isEnd: false });
|
||||||
|
}
|
||||||
|
}, [setX]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="slider">
|
<div className="slider">
|
||||||
<IconButton
|
<IconButton
|
||||||
className="slider-button left"
|
className="slider-button left"
|
||||||
onClick={() => slide(Direction.LEFT)}
|
onClick={slideLeft}
|
||||||
disabled={scrollPos.isStart}
|
disabled={scrollPos.isStart}
|
||||||
variant="contained"
|
variant="contained"
|
||||||
>
|
>
|
||||||
@@ -159,7 +168,7 @@ const Slider = ({
|
|||||||
</div>
|
</div>
|
||||||
<IconButton
|
<IconButton
|
||||||
className="slider-button right"
|
className="slider-button right"
|
||||||
onClick={() => slide(Direction.RIGHT)}
|
onClick={slideRight}
|
||||||
disabled={scrollPos.isEnd}
|
disabled={scrollPos.isEnd}
|
||||||
variant="contained"
|
variant="contained"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { type ReactNode } from "react";
|
import React, { useCallback, useMemo, type ReactNode } from "react";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
|
||||||
import MuiAppBar from "@mui/material/AppBar";
|
import MuiAppBar from "@mui/material/AppBar";
|
||||||
@@ -21,6 +21,7 @@ import "./appBar.scss";
|
|||||||
import { getTypeIcon } from "../utils/iconsCollection";
|
import { getTypeIcon } from "../utils/iconsCollection";
|
||||||
|
|
||||||
import { useApiInContext } from "@/utils/store/api";
|
import { useApiInContext } from "@/utils/store/api";
|
||||||
|
import { useCentralStore } from "@/utils/store/central";
|
||||||
import {
|
import {
|
||||||
setSettingsDialogOpen,
|
setSettingsDialogOpen,
|
||||||
setSettingsTabValue,
|
setSettingsTabValue,
|
||||||
@@ -34,7 +35,6 @@ import {
|
|||||||
ListItemText,
|
ListItemText,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import BackButton from "../buttons/backButton";
|
import BackButton from "../buttons/backButton";
|
||||||
import { useCentralStore } from "@/utils/store/central";
|
|
||||||
|
|
||||||
interface ListItemLinkProps {
|
interface ListItemLinkProps {
|
||||||
icon?: ReactNode;
|
icon?: ReactNode;
|
||||||
@@ -70,6 +70,8 @@ function ListItemLink(props: ListItemLinkProps) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const MemoizeBackButton = React.memo(BackButton);
|
||||||
|
|
||||||
export const AppBar = () => {
|
export const AppBar = () => {
|
||||||
const api = useApiInContext((s) => s.api);
|
const api = useApiInContext((s) => s.api);
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@@ -98,13 +100,12 @@ export const AppBar = () => {
|
|||||||
|
|
||||||
const [anchorEl, setAnchorEl] = useState(null);
|
const [anchorEl, setAnchorEl] = useState(null);
|
||||||
const openMenu = Boolean(anchorEl);
|
const openMenu = Boolean(anchorEl);
|
||||||
const handleMenuOpen = (event) => {
|
const handleMenuOpen = useCallback((event) => {
|
||||||
setAnchorEl(event.currentTarget);
|
setAnchorEl(event.currentTarget);
|
||||||
};
|
}, []);
|
||||||
const handleMenuClose = () => {
|
const handleMenuClose = useCallback(() => {
|
||||||
setAnchorEl(null);
|
setAnchorEl(null);
|
||||||
};
|
}, []);
|
||||||
|
|
||||||
const queryClient = useQueryClient();
|
const queryClient = useQueryClient();
|
||||||
|
|
||||||
const handleLogout = async () => {
|
const handleLogout = async () => {
|
||||||
@@ -134,6 +135,43 @@ export const AppBar = () => {
|
|||||||
|
|
||||||
const [showDrawer, setShowDrawer] = useState(false);
|
const [showDrawer, setShowDrawer] = useState(false);
|
||||||
|
|
||||||
|
const appBarStyling = useMemo(() => {
|
||||||
|
return {
|
||||||
|
backgroundColor: "transparent",
|
||||||
|
paddingRight: "0 !important",
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
const menuStyle = useMemo(() => {
|
||||||
|
return { mt: 2 };
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const drawerPaperProps = useMemo(() => {
|
||||||
|
return {
|
||||||
|
className: "glass library-drawer",
|
||||||
|
elevation: 6,
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const handleNavigateToSearch = useCallback(
|
||||||
|
() => navigate({ to: "/search", search: { query: "" } }),
|
||||||
|
[navigate],
|
||||||
|
);
|
||||||
|
|
||||||
|
const handleDrawerClose = useCallback(() => {
|
||||||
|
setShowDrawer(false);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const handleDrawerOpen = useCallback(() => {
|
||||||
|
setShowDrawer(true);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const handleNavigateToHome = useCallback(() => navigate({ to: "/home" }), []);
|
||||||
|
const handleNavigateToFavorite = useCallback(() => {
|
||||||
|
navigate({ to: "/favorite" });
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const menuButtonSx = useMemo(() => ({ p: 0 }), []);
|
||||||
|
|
||||||
if (!display) {
|
if (!display) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
@@ -141,10 +179,7 @@ export const AppBar = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<MuiAppBar
|
<MuiAppBar
|
||||||
style={{
|
style={appBarStyling}
|
||||||
backgroundColor: "transparent",
|
|
||||||
paddingRight: "0 !important",
|
|
||||||
}}
|
|
||||||
className={
|
className={
|
||||||
trigger
|
trigger
|
||||||
? "appBar flex flex-row flex-justify-spaced-between elevated"
|
? "appBar flex flex-row flex-justify-spaced-between elevated"
|
||||||
@@ -154,11 +189,11 @@ export const AppBar = () => {
|
|||||||
color="transparent"
|
color="transparent"
|
||||||
>
|
>
|
||||||
<div className="flex flex-row" style={{ gap: "0.6em" }}>
|
<div className="flex flex-row" style={{ gap: "0.6em" }}>
|
||||||
<IconButton onClick={() => setShowDrawer(true)}>
|
<IconButton onClick={handleDrawerOpen}>
|
||||||
<div className="material-symbols-rounded">menu</div>
|
<div className="material-symbols-rounded">menu</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<BackButton />
|
<MemoizeBackButton />
|
||||||
<IconButton onClick={() => navigate({ to: "/home" })}>
|
<IconButton onClick={handleNavigateToHome}>
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
location.pathname === "/home"
|
location.pathname === "/home"
|
||||||
@@ -172,15 +207,13 @@ export const AppBar = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-row" style={{ gap: "0.6em" }}>
|
<div className="flex flex-row" style={{ gap: "0.6em" }}>
|
||||||
<IconButton
|
<IconButton onClick={handleNavigateToSearch}>
|
||||||
onClick={() => navigate({ to: "/search", params: { query: "" } })}
|
|
||||||
>
|
|
||||||
<div className="material-symbols-rounded">search</div>
|
<div className="material-symbols-rounded">search</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton onClick={() => navigate({ to: "/favorite" })}>
|
<IconButton onClick={handleNavigateToFavorite}>
|
||||||
<div className="material-symbols-rounded">favorite</div>
|
<div className="material-symbols-rounded">favorite</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton sx={{ p: 0 }} onClick={handleMenuOpen}>
|
<IconButton sx={menuButtonSx} onClick={handleMenuOpen}>
|
||||||
{!!user?.Id &&
|
{!!user?.Id &&
|
||||||
(user?.PrimaryImageTag === undefined ? (
|
(user?.PrimaryImageTag === undefined ? (
|
||||||
<Avatar className="appBar-avatar" alt={user?.Name ?? "image"}>
|
<Avatar className="appBar-avatar" alt={user?.Name ?? "image"}>
|
||||||
@@ -204,7 +237,7 @@ export const AppBar = () => {
|
|||||||
anchorEl={anchorEl}
|
anchorEl={anchorEl}
|
||||||
open={openMenu}
|
open={openMenu}
|
||||||
onClose={handleMenuClose}
|
onClose={handleMenuClose}
|
||||||
sx={{ mt: 2 }}
|
sx={menuStyle}
|
||||||
disableScrollLock
|
disableScrollLock
|
||||||
>
|
>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
@@ -248,17 +281,14 @@ export const AppBar = () => {
|
|||||||
</MuiAppBar>
|
</MuiAppBar>
|
||||||
<Drawer
|
<Drawer
|
||||||
open={showDrawer}
|
open={showDrawer}
|
||||||
PaperProps={{
|
PaperProps={drawerPaperProps}
|
||||||
className: "glass library-drawer",
|
|
||||||
elevation: 6,
|
|
||||||
}}
|
|
||||||
className="library-drawer"
|
className="library-drawer"
|
||||||
onClose={() => setShowDrawer(false)}
|
onClose={handleDrawerClose}
|
||||||
>
|
>
|
||||||
<List>
|
<List>
|
||||||
<ListItem>
|
<ListItem>
|
||||||
<ListItemButton
|
<ListItemButton
|
||||||
onClick={() => setShowDrawer(false)}
|
onClick={handleDrawerClose}
|
||||||
style={{
|
style={{
|
||||||
borderRadius: "100px",
|
borderRadius: "100px",
|
||||||
gap: "0.85em",
|
gap: "0.85em",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
import React from "react";
|
import React, { memo } from "react"; // Import memo
|
||||||
|
|
||||||
import Button, {
|
import Button, {
|
||||||
type ButtonProps,
|
type ButtonProps,
|
||||||
@@ -15,6 +15,8 @@ import {
|
|||||||
type BaseItemDtoQueryResult,
|
type BaseItemDtoQueryResult,
|
||||||
BaseItemKind,
|
BaseItemKind,
|
||||||
ItemFields,
|
ItemFields,
|
||||||
|
ItemFilter,
|
||||||
|
LocationType,
|
||||||
MediaProtocol,
|
MediaProtocol,
|
||||||
type PlaybackInfoResponse,
|
type PlaybackInfoResponse,
|
||||||
SortOrder,
|
SortOrder,
|
||||||
@@ -37,8 +39,12 @@ import { getRuntimeCompact } from "@/utils/date/time";
|
|||||||
import getSubtitle from "@/utils/methods/getSubtitles";
|
import getSubtitle from "@/utils/methods/getSubtitles";
|
||||||
import playbackProfile from "@/utils/playback-profiles";
|
import playbackProfile from "@/utils/playback-profiles";
|
||||||
import { axiosClient, useApiInContext } from "@/utils/store/api";
|
import { axiosClient, useApiInContext } from "@/utils/store/api";
|
||||||
|
import { usePhotosPlayback } from "@/utils/store/photosPlayback";
|
||||||
import type IntroMediaInfo from "@/utils/types/introMediaInfo";
|
import type IntroMediaInfo from "@/utils/types/introMediaInfo";
|
||||||
import { getMediaInfoApi } from "@jellyfin/sdk/lib/utils/api/media-info-api";
|
import { getMediaInfoApi } from "@jellyfin/sdk/lib/utils/api/media-info-api";
|
||||||
|
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||||
|
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
|
||||||
|
import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api";
|
||||||
import type { SxProps } from "@mui/material";
|
import type { SxProps } from "@mui/material";
|
||||||
import type { AxiosResponse } from "axios";
|
import type { AxiosResponse } from "axios";
|
||||||
|
|
||||||
@@ -62,6 +68,27 @@ type PlayButtonProps = {
|
|||||||
trackIndex: number;
|
trackIndex: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Memoized LinearProgress component
|
||||||
|
const MemoizedLinearProgress = memo(({ value }: { value: number }) => (
|
||||||
|
<LinearProgress
|
||||||
|
variant="determinate"
|
||||||
|
value={value}
|
||||||
|
sx={{
|
||||||
|
position: "absolute",
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
bottom: 0,
|
||||||
|
height: "100%",
|
||||||
|
background: "transparent",
|
||||||
|
opacity: 0.2,
|
||||||
|
zIndex: 0,
|
||||||
|
mixBlendMode: "difference",
|
||||||
|
}}
|
||||||
|
color="white"
|
||||||
|
/>
|
||||||
|
));
|
||||||
|
|
||||||
const PlayButton = ({
|
const PlayButton = ({
|
||||||
item,
|
item,
|
||||||
itemId,
|
itemId,
|
||||||
@@ -87,6 +114,7 @@ const PlayButton = ({
|
|||||||
const setPlaybackDataLoading = usePlaybackDataLoadStore(
|
const setPlaybackDataLoading = usePlaybackDataLoadStore(
|
||||||
(state) => state.setisPending,
|
(state) => state.setisPending,
|
||||||
);
|
);
|
||||||
|
const playPhotos = usePhotosPlayback((s) => s.playPhotos);
|
||||||
|
|
||||||
const { enqueueSnackbar } = useSnackbar();
|
const { enqueueSnackbar } = useSnackbar();
|
||||||
|
|
||||||
@@ -96,7 +124,7 @@ const PlayButton = ({
|
|||||||
setPlaybackDataLoading(true);
|
setPlaybackDataLoading(true);
|
||||||
let result: undefined | AxiosResponse<BaseItemDtoQueryResult, any>;
|
let result: undefined | AxiosResponse<BaseItemDtoQueryResult, any>;
|
||||||
let mediaSource: undefined | AxiosResponse<PlaybackInfoResponse, any>;
|
let mediaSource: undefined | AxiosResponse<PlaybackInfoResponse, any>;
|
||||||
let introInfo: undefined | AxiosResponse<IntroMediaInfo, any>;
|
let introInfo: undefined | IntroMediaInfo;
|
||||||
const indexNumber = item.IndexNumber ? item.IndexNumber - 1 : 0;
|
const indexNumber = item.IndexNumber ? item.IndexNumber - 1 : 0;
|
||||||
if (playlistItem) {
|
if (playlistItem) {
|
||||||
result = await getPlaylistsApi(api).getPlaylistItems({
|
result = await getPlaylistsApi(api).getPlaylistItems({
|
||||||
@@ -106,48 +134,50 @@ const PlayButton = ({
|
|||||||
} else {
|
} else {
|
||||||
switch (itemType) {
|
switch (itemType) {
|
||||||
case BaseItemKind.Episode:
|
case BaseItemKind.Episode:
|
||||||
result = await getTvShowsApi(api).getEpisodes({
|
if (item.SeriesId && item.SeasonId) {
|
||||||
seriesId: item.SeriesId,
|
result = await getTvShowsApi(api).getEpisodes({
|
||||||
fields: [
|
seriesId: item.SeriesId,
|
||||||
ItemFields.MediaSources,
|
fields: [
|
||||||
ItemFields.MediaStreams,
|
ItemFields.MediaSources,
|
||||||
ItemFields.Overview,
|
ItemFields.MediaStreams,
|
||||||
ItemFields.Chapters,
|
ItemFields.Overview,
|
||||||
ItemFields.Trickplay,
|
ItemFields.Chapters,
|
||||||
],
|
ItemFields.Trickplay,
|
||||||
enableUserData: true,
|
],
|
||||||
userId: userId,
|
enableUserData: true,
|
||||||
seasonId: item.SeasonId,
|
userId: userId,
|
||||||
// startItemId: item.Id,
|
seasonId: item.SeasonId,
|
||||||
});
|
// startItemId: item.Id,
|
||||||
mediaSource = await getMediaInfoApi(api).getPostedPlaybackInfo({
|
});
|
||||||
audioStreamIndex: currentAudioTrack,
|
mediaSource = await getMediaInfoApi(api).getPostedPlaybackInfo({
|
||||||
subtitleStreamIndex:
|
audioStreamIndex: currentAudioTrack,
|
||||||
currentSubTrack === "nosub" ? -1 : currentSubTrack,
|
subtitleStreamIndex:
|
||||||
itemId: result.data.Items?.[indexNumber].Id,
|
currentSubTrack === "nosub" ? -1 : currentSubTrack,
|
||||||
startTimeTicks:
|
itemId: result.data.Items?.[indexNumber].Id,
|
||||||
result.data.Items?.[indexNumber].UserData
|
startTimeTicks:
|
||||||
?.PlaybackPositionTicks,
|
result.data.Items?.[indexNumber].UserData
|
||||||
userId: userId,
|
?.PlaybackPositionTicks,
|
||||||
mediaSourceId:
|
userId: userId,
|
||||||
result.data.Items?.[indexNumber].MediaSources?.[0].Id,
|
mediaSourceId:
|
||||||
playbackInfoDto: {
|
result.data.Items?.[indexNumber].MediaSources?.[0].Id,
|
||||||
DeviceProfile: playbackProfile,
|
playbackInfoDto: {
|
||||||
},
|
DeviceProfile: playbackProfile,
|
||||||
});
|
},
|
||||||
try {
|
});
|
||||||
introInfo = (
|
try {
|
||||||
await axiosClient.get(
|
introInfo = (
|
||||||
`${api.basePath}/Episode/${result.data.Items?.[0]?.Id}/IntroSkipperSegments`,
|
await axiosClient.get(
|
||||||
{
|
`${api.basePath}/Episode/${result.data.Items?.[0]?.Id}/IntroSkipperSegments`,
|
||||||
headers: {
|
{
|
||||||
Authorization: `MediaBrowser Token=${api.accessToken}`,
|
headers: {
|
||||||
|
Authorization: `MediaBrowser Token=${api.accessToken}`,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
)
|
||||||
)
|
)?.data;
|
||||||
)?.data;
|
} catch (error) {
|
||||||
} catch (error) {
|
console.error(error);
|
||||||
console.error(error);
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BaseItemKind.Series:
|
case BaseItemKind.Series:
|
||||||
@@ -163,19 +193,23 @@ const PlayButton = ({
|
|||||||
enableUserData: true,
|
enableUserData: true,
|
||||||
userId: userId,
|
userId: userId,
|
||||||
});
|
});
|
||||||
mediaSource = await getMediaInfoApi(api).getPostedPlaybackInfo({
|
if (
|
||||||
audioStreamIndex: currentAudioTrack,
|
result.data.Items?.[0].Id &&
|
||||||
subtitleStreamIndex:
|
result.data.Items?.[0].MediaSources?.[0].Id
|
||||||
currentSubTrack === "nosub" ? -1 : currentSubTrack,
|
)
|
||||||
itemId: result.data.Items?.[0].Id,
|
mediaSource = await getMediaInfoApi(api).getPostedPlaybackInfo({
|
||||||
startTimeTicks:
|
audioStreamIndex: currentAudioTrack,
|
||||||
result.data.Items?.[0].UserData?.PlaybackPositionTicks,
|
subtitleStreamIndex:
|
||||||
userId: userId,
|
currentSubTrack === "nosub" ? -1 : currentSubTrack,
|
||||||
mediaSourceId: result.data.Items?.[0].MediaSources?.[0].Id,
|
itemId: result.data.Items?.[0].Id,
|
||||||
playbackInfoDto: {
|
startTimeTicks:
|
||||||
DeviceProfile: playbackProfile,
|
result.data.Items?.[0].UserData?.PlaybackPositionTicks,
|
||||||
},
|
userId: userId,
|
||||||
});
|
mediaSourceId: result.data.Items?.[0].MediaSources?.[0].Id,
|
||||||
|
playbackInfoDto: {
|
||||||
|
DeviceProfile: playbackProfile,
|
||||||
|
},
|
||||||
|
});
|
||||||
try {
|
try {
|
||||||
introInfo = (
|
introInfo = (
|
||||||
await axiosClient.get(
|
await axiosClient.get(
|
||||||
@@ -231,6 +265,24 @@ const PlayButton = ({
|
|||||||
sortBy: ["IndexNumber"],
|
sortBy: ["IndexNumber"],
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case BaseItemKind.Photo:
|
||||||
|
if (item.Id) {
|
||||||
|
const photo = (
|
||||||
|
await getUserLibraryApi(api).getItem({
|
||||||
|
itemId: item.Id,
|
||||||
|
})
|
||||||
|
).data;
|
||||||
|
result = await getItemsApi(api).getItems({
|
||||||
|
parentId: photo.ParentId,
|
||||||
|
filters: [ItemFilter.IsNotFolder],
|
||||||
|
recursive: false,
|
||||||
|
sortBy: ["SortName"],
|
||||||
|
mediaTypes: ["Photo"],
|
||||||
|
excludeLocationTypes: [LocationType.Virtual],
|
||||||
|
collapseBoxSetItems: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
result = await getItemsApi(api).getItems({
|
result = await getItemsApi(api).getItems({
|
||||||
ids: [itemId],
|
ids: [itemId],
|
||||||
@@ -268,16 +320,22 @@ const PlayButton = ({
|
|||||||
enqueueSnackbar("Playlist playback is WIP", { variant: "info" });
|
enqueueSnackbar("Playlist playback is WIP", { variant: "info" });
|
||||||
} else if (audio) {
|
} else if (audio) {
|
||||||
// Album/Individual audio track playback
|
// Album/Individual audio track playback
|
||||||
const urlOptions = {
|
const urlOptions: Record<string, string> = {
|
||||||
deviceId: api?.deviceInfo.id,
|
deviceId: api?.deviceInfo.id,
|
||||||
userId,
|
//@ts-ignore
|
||||||
|
userId: userId,
|
||||||
api_key: api?.accessToken,
|
api_key: api?.accessToken,
|
||||||
};
|
};
|
||||||
const urlParams = new URLSearchParams(urlOptions).toString();
|
const urlParams = new URLSearchParams(urlOptions).toString();
|
||||||
|
const playbackUrl = `${api.basePath}/Audio/${result?.item.Items?.[0].Id}/universal?${urlParams}`;
|
||||||
const playbackUrl = `${api.basePath}/Audio/${result?.item.Items[0].Id}/universal?${urlParams}`;
|
playAudio(playbackUrl, result?.item.Items?.[0], undefined);
|
||||||
playAudio(playbackUrl, result?.item.Items[0], undefined);
|
|
||||||
setQueue(result?.item.Items ?? [], 0);
|
setQueue(result?.item.Items ?? [], 0);
|
||||||
|
} else if (item.Type === "Photo") {
|
||||||
|
const index = result?.item?.Items?.map((i) => i.Id).indexOf(item.Id);
|
||||||
|
if (result?.item?.Items && index) {
|
||||||
|
playPhotos(result?.item?.Items, index);
|
||||||
|
navigate({ to: "/player/photos" });
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const episodeIndex = item.IndexNumber ? item.IndexNumber - 1 : 0;
|
const episodeIndex = item.IndexNumber ? item.IndexNumber - 1 : 0;
|
||||||
// Creates a queue containing all Episodes for a particular season(series) or collection of movies
|
// Creates a queue containing all Episodes for a particular season(series) or collection of movies
|
||||||
@@ -314,7 +372,7 @@ const PlayButton = ({
|
|||||||
let playItemValue = item;
|
let playItemValue = item;
|
||||||
if (itemType === BaseItemKind.Movie) {
|
if (itemType === BaseItemKind.Movie) {
|
||||||
playItemValue = result?.item.Items?.[0];
|
playItemValue = result?.item.Items?.[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
playItem(
|
playItem(
|
||||||
itemName,
|
itemName,
|
||||||
@@ -413,26 +471,13 @@ const PlayButton = ({
|
|||||||
audio
|
audio
|
||||||
? "Play Now"
|
? "Play Now"
|
||||||
: "Watch Now"}
|
: "Watch Now"}
|
||||||
<LinearProgress
|
<MemoizedLinearProgress
|
||||||
variant="determinate"
|
|
||||||
value={
|
value={
|
||||||
100 > itemUserData?.PlayedPercentage > 0
|
100 > itemUserData?.PlayedPercentage &&
|
||||||
|
itemUserData?.PlayedPercentage > 0
|
||||||
? itemUserData?.PlayedPercentage
|
? itemUserData?.PlayedPercentage
|
||||||
: 0
|
: 0
|
||||||
}
|
}
|
||||||
sx={{
|
|
||||||
position: "absolute",
|
|
||||||
top: 0,
|
|
||||||
left: 0,
|
|
||||||
right: 0,
|
|
||||||
bottom: 0,
|
|
||||||
height: "100%",
|
|
||||||
background: "transparent",
|
|
||||||
opacity: 0.2,
|
|
||||||
zIndex: 0,
|
|
||||||
mixBlendMode: "difference",
|
|
||||||
}}
|
|
||||||
color="white"
|
|
||||||
/>
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
{itemUserData?.PlaybackPositionTicks > 0 && (
|
{itemUserData?.PlaybackPositionTicks > 0 && (
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
/** @format */
|
/** @format */
|
||||||
|
|
||||||
import React, { memo } from "react";
|
import React, { memo } from "react";
|
||||||
import { Component, useState } from "react";
|
|
||||||
|
|
||||||
import { useNavigate, useRouteContext } from "@tanstack/react-router";
|
import { useNavigate } from "@tanstack/react-router";
|
||||||
|
|
||||||
import LinearProgress from "@mui/material/LinearProgress";
|
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -21,20 +19,6 @@ import { getTypeIcon } from "../utils/iconsCollection";
|
|||||||
import "./card.scss";
|
import "./card.scss";
|
||||||
import { useApiInContext } from "@/utils/store/api";
|
import { useApiInContext } from "@/utils/store/api";
|
||||||
|
|
||||||
const cardImageAspectRatios = {
|
|
||||||
thumb: 1.777,
|
|
||||||
portrait: 0.666,
|
|
||||||
square: 1,
|
|
||||||
};
|
|
||||||
|
|
||||||
const availableSpecialRoutes = [
|
|
||||||
BaseItemKind.Series,
|
|
||||||
BaseItemKind.BoxSet,
|
|
||||||
BaseItemKind.MusicAlbum,
|
|
||||||
BaseItemKind.Episode,
|
|
||||||
BaseItemKind.Playlist,
|
|
||||||
];
|
|
||||||
|
|
||||||
const CardComponent = ({
|
const CardComponent = ({
|
||||||
item,
|
item,
|
||||||
cardTitle,
|
cardTitle,
|
||||||
@@ -123,7 +107,9 @@ const CardComponent = ({
|
|||||||
</div>
|
</div>
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
<div className="card-image-icon-container">
|
<div className="card-image-icon-container">
|
||||||
{overrideIcon ? getTypeIcon(overrideIcon) : getTypeIcon(item.Type)}
|
{overrideIcon
|
||||||
|
? getTypeIcon(overrideIcon)
|
||||||
|
: getTypeIcon(item.Type ?? "universal")}
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
alt={item.Name ?? "blink"}
|
alt={item.Name ?? "blink"}
|
||||||
@@ -131,7 +117,7 @@ const CardComponent = ({
|
|||||||
overrideIcon === "User"
|
overrideIcon === "User"
|
||||||
? `${api.basePath}/Users/${item.Id}/Images/Primary`
|
? `${api.basePath}/Users/${item.Id}/Images/Primary`
|
||||||
: api.getItemImageUrl(
|
: api.getItemImageUrl(
|
||||||
seriesId ? item.SeriesId : (item.AlbumId ?? item.Id),
|
(seriesId ? item.SeriesId : (item.AlbumId ?? item.Id)) ?? "",
|
||||||
imageType,
|
imageType,
|
||||||
{
|
{
|
||||||
quality: 90,
|
quality: 90,
|
||||||
@@ -193,7 +179,7 @@ const CardComponent = ({
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{item.UserData?.PlaybackPositionTicks > 0 && (
|
{(item.UserData?.PlaybackPositionTicks ?? -1) > 0 && (
|
||||||
<div className="card-progress-container">
|
<div className="card-progress-container">
|
||||||
<div
|
<div
|
||||||
className="card-progress"
|
className="card-progress"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { AnimatePresence, motion } from "framer-motion";
|
import { AnimatePresence, motion } from "framer-motion";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState, useMemo, useCallback } from "react";
|
||||||
|
|
||||||
import IconButton from "@mui/material/IconButton";
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
|
||||||
@@ -18,6 +18,12 @@ const swipePower = (offset, velocity) => {
|
|||||||
return Math.abs(offset) * velocity;
|
return Math.abs(offset) * velocity;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Memoize CarouselSlide to prevent unnecessary re-renders
|
||||||
|
const MemoizedCarouselSlide = React.memo(CarouselSlide);
|
||||||
|
|
||||||
|
// Memoize Slider to prevent unnecessary re-renders
|
||||||
|
const MemoizedSlider = React.memo(Slider);
|
||||||
|
|
||||||
const Carousel = ({
|
const Carousel = ({
|
||||||
content,
|
content,
|
||||||
onChange,
|
onChange,
|
||||||
@@ -31,6 +37,7 @@ const Carousel = ({
|
|||||||
state.setDirection,
|
state.setDirection,
|
||||||
state.direction,
|
state.direction,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
onChange(currentSlide);
|
onChange(currentSlide);
|
||||||
}, [content[currentSlide]?.Id]);
|
}, [content[currentSlide]?.Id]);
|
||||||
@@ -39,7 +46,6 @@ const Carousel = ({
|
|||||||
|
|
||||||
const responsive = {
|
const responsive = {
|
||||||
superLargeDesktop: {
|
superLargeDesktop: {
|
||||||
// the naming can be any, depends on you.
|
|
||||||
breakpoint: { max: 4000, min: 3000 },
|
breakpoint: { max: 4000, min: 3000 },
|
||||||
items: 6,
|
items: 6,
|
||||||
},
|
},
|
||||||
@@ -57,6 +63,70 @@ const Carousel = ({
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Memoize the content mapping
|
||||||
|
const sliderContent = useMemo(() => {
|
||||||
|
return content.map((item, index) => (
|
||||||
|
<motion.div
|
||||||
|
className={
|
||||||
|
currentSlide === index
|
||||||
|
? "carousel-indicator active"
|
||||||
|
: "carousel-indicator"
|
||||||
|
}
|
||||||
|
layout
|
||||||
|
initial={{
|
||||||
|
height: "4.6em",
|
||||||
|
}}
|
||||||
|
whileHover={{
|
||||||
|
height: "5.5em",
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 0.05,
|
||||||
|
}}
|
||||||
|
key={item.Id}
|
||||||
|
onClick={() => {
|
||||||
|
if (currentSlide > index) {
|
||||||
|
setDirection("left");
|
||||||
|
} else if (currentSlide <= index) {
|
||||||
|
setDirection("right");
|
||||||
|
}
|
||||||
|
setCurrentSlide(index);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{item.ImageTags?.Thumb ? (
|
||||||
|
<img
|
||||||
|
src={api.getItemImageUrl(item.Id, "Thumb", {
|
||||||
|
tag: item.ImageTags.Primary,
|
||||||
|
fillWidth: 300,
|
||||||
|
})}
|
||||||
|
alt={item.Name ?? "item-image"}
|
||||||
|
className="carousel-indicator-image"
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<div className="carousel-indicator-icon">
|
||||||
|
{getTypeIcon(item.Type)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</motion.div>
|
||||||
|
));
|
||||||
|
}, [content, currentSlide, api, setDirection]);
|
||||||
|
|
||||||
|
const handleDragEnd = useCallback(
|
||||||
|
(e, { offset, velocity }) => {
|
||||||
|
const swipe = swipePower(offset.x, velocity.x);
|
||||||
|
if (
|
||||||
|
currentSlide !== content.length - 1 &&
|
||||||
|
swipe < -swipeConfidenceThreshold
|
||||||
|
) {
|
||||||
|
setDirection("right");
|
||||||
|
setCurrentSlide((init) => init + 1);
|
||||||
|
} else if (currentSlide !== 0 && swipe > swipeConfidenceThreshold) {
|
||||||
|
setDirection("left");
|
||||||
|
setCurrentSlide((init) => init - 1);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
[currentSlide, content.length, setDirection],
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="carousel">
|
<div className="carousel">
|
||||||
<AnimatePresence mode="sync">
|
<AnimatePresence mode="sync">
|
||||||
@@ -72,79 +142,22 @@ const Carousel = ({
|
|||||||
drag={"x"}
|
drag={"x"}
|
||||||
dragConstraints={{ left: 0, right: 0 }}
|
dragConstraints={{ left: 0, right: 0 }}
|
||||||
dragElastic={1}
|
dragElastic={1}
|
||||||
onDragEnd={(e, { offset, velocity }) => {
|
onDragEnd={handleDragEnd}
|
||||||
const swipe = swipePower(offset.x, velocity.x);
|
|
||||||
if (
|
|
||||||
currentSlide !== content.length - 1 &&
|
|
||||||
swipe < -swipeConfidenceThreshold
|
|
||||||
) {
|
|
||||||
setDirection("right");
|
|
||||||
setCurrentSlide((init) => init + 1);
|
|
||||||
} else if (currentSlide !== 0 && swipe > swipeConfidenceThreshold) {
|
|
||||||
setDirection("left");
|
|
||||||
setCurrentSlide((init) => init - 1);
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
style={{
|
style={{
|
||||||
height: "100%",
|
height: "100%",
|
||||||
width: "100%",
|
width: "100%",
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CarouselSlide
|
<MemoizedCarouselSlide
|
||||||
item={content[currentSlide]}
|
item={content[currentSlide]}
|
||||||
key={content[currentSlide].Id}
|
key={content[currentSlide].Id}
|
||||||
/>
|
/>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
<Slider
|
<MemoizedSlider currentSlide={currentSlide} content={sliderContent} />
|
||||||
currentSlide={currentSlide}
|
|
||||||
content={content.map((item, index) => (
|
|
||||||
<motion.div
|
|
||||||
className={
|
|
||||||
currentSlide === index
|
|
||||||
? "carousel-indicator active"
|
|
||||||
: "carousel-indicator"
|
|
||||||
}
|
|
||||||
layout
|
|
||||||
initial={{
|
|
||||||
height: "4.6em",
|
|
||||||
}}
|
|
||||||
whileHover={{
|
|
||||||
height: "5.5em",
|
|
||||||
}}
|
|
||||||
transition={{
|
|
||||||
duration: 0.05,
|
|
||||||
}}
|
|
||||||
key={item.Id}
|
|
||||||
onClick={() => {
|
|
||||||
if (currentSlide > index) {
|
|
||||||
setDirection("left");
|
|
||||||
} else if (currentSlide <= index) {
|
|
||||||
setDirection("right");
|
|
||||||
}
|
|
||||||
setCurrentSlide(index);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{item.ImageTags?.Thumb ? (
|
|
||||||
<img
|
|
||||||
src={api.getItemImageUrl(item.Id, "Thumb", {
|
|
||||||
tag: item.ImageTags.Primary,
|
|
||||||
fillWidth: 300,
|
|
||||||
})}
|
|
||||||
alt={item.Name ?? "item-image"}
|
|
||||||
className="carousel-indicator-image"
|
|
||||||
/>
|
|
||||||
) : (
|
|
||||||
<div className="carousel-indicator-icon">
|
|
||||||
{getTypeIcon(item.Type)}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</motion.div>
|
|
||||||
))}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Carousel;
|
export default React.memo(Carousel);
|
||||||
@@ -5,13 +5,13 @@ import { CardScroller } from "../../cardScroller/cardScroller";
|
|||||||
import { CardsSkeleton } from "../../skeleton/cards";
|
import { CardsSkeleton } from "../../skeleton/cards";
|
||||||
|
|
||||||
import { useApiInContext } from "@/utils/store/api";
|
import { useApiInContext } from "@/utils/store/api";
|
||||||
|
import { useCentralStore } from "@/utils/store/central";
|
||||||
import {
|
import {
|
||||||
type BaseItemDto,
|
type BaseItemDto,
|
||||||
BaseItemKind,
|
BaseItemKind,
|
||||||
} from "@jellyfin/sdk/lib/generated-client";
|
} from "@jellyfin/sdk/lib/generated-client";
|
||||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||||
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
|
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
|
||||||
import { useCentralStore } from "@/utils/store/central";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description Latest Media Section
|
* @description Latest Media Section
|
||||||
@@ -26,7 +26,7 @@ export const LatestMediaSection = ({
|
|||||||
userId: user?.Id,
|
userId: user?.Id,
|
||||||
parentId: library.Id,
|
parentId: library.Id,
|
||||||
limit: 16,
|
limit: 16,
|
||||||
fields: ["PrimaryImageAspectRatio"],
|
fields: ["PrimaryImageAspectRatio", "ParentId"],
|
||||||
});
|
});
|
||||||
return media.data;
|
return media.data;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ import PlayNextButton from "@/components/buttons/playNextButton";
|
|||||||
import PlayPreviousButton from "@/components/buttons/playPreviousButtom";
|
import PlayPreviousButton from "@/components/buttons/playPreviousButtom";
|
||||||
import QueueButton from "@/components/buttons/queueButton";
|
import QueueButton from "@/components/buttons/queueButton";
|
||||||
import { useApiInContext } from "@/utils/store/api";
|
import { useApiInContext } from "@/utils/store/api";
|
||||||
import { useNavigate } from "@tanstack/react-router";
|
|
||||||
import { playItemFromQueue } from "@/utils/store/playback";
|
|
||||||
import { useQuery } from "@tanstack/react-query";
|
|
||||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
|
||||||
import { useCentralStore } from "@/utils/store/central";
|
import { useCentralStore } from "@/utils/store/central";
|
||||||
|
import { playItemFromQueue } from "@/utils/store/playback";
|
||||||
|
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||||
|
import { useQuery } from "@tanstack/react-query";
|
||||||
|
import { useNavigate } from "@tanstack/react-router";
|
||||||
|
|
||||||
const AudioPlayer = () => {
|
const AudioPlayer = () => {
|
||||||
const api = useApiInContext((s) => s.api);
|
const api = useApiInContext((s) => s.api);
|
||||||
@@ -62,13 +62,117 @@ const AudioPlayer = () => {
|
|||||||
Authorization: api.authorizationHeader,
|
Authorization: api.authorizationHeader,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const currentTrackItem = tracks[currentTrack];
|
||||||
|
|
||||||
fetch(audioUrlRequest)
|
fetch(audioUrlRequest)
|
||||||
.then((res) => res)
|
.then((res) => res)
|
||||||
.then(async (result) => {
|
.then(async (result) => {
|
||||||
const blob = await result.blob();
|
const blob = await result.blob();
|
||||||
const blobUrl = URL.createObjectURL(blob);
|
const blobUrl = URL.createObjectURL(blob);
|
||||||
audioRef.current.src = blobUrl;
|
audioRef.current.src = blobUrl;
|
||||||
audioRef.current.play();
|
await audioRef.current.play();
|
||||||
|
if ("mediaSession" in navigator) {
|
||||||
|
navigator.mediaSession.playbackState = "playing";
|
||||||
|
navigator.mediaSession.metadata = new MediaMetadata({
|
||||||
|
title: currentTrackItem.Name ?? "Unknown audio",
|
||||||
|
artist: currentTrackItem.Artists?.join(", "),
|
||||||
|
album: currentTrackItem.Album ?? "",
|
||||||
|
artwork: [
|
||||||
|
{
|
||||||
|
src: api.getItemImageUrl(currentTrackItem.Id, "Primary", {
|
||||||
|
tag: currentTrackItem.ImageTags?.Primary,
|
||||||
|
width: 96,
|
||||||
|
height: 96,
|
||||||
|
}),
|
||||||
|
sizes: "96x96",
|
||||||
|
type: "image/jpeg",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: api.getItemImageUrl(currentTrackItem.Id, "Primary", {
|
||||||
|
tag: currentTrackItem.ImageTags?.Primary,
|
||||||
|
width: 128,
|
||||||
|
height: 128,
|
||||||
|
}),
|
||||||
|
sizes: "128x128",
|
||||||
|
type: "image/jpeg",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: api.getItemImageUrl(currentTrackItem.Id, "Primary", {
|
||||||
|
tag: currentTrackItem.ImageTags?.Primary,
|
||||||
|
width: 192,
|
||||||
|
height: 192,
|
||||||
|
}),
|
||||||
|
sizes: "192x192",
|
||||||
|
type: "image/jpeg",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: api.getItemImageUrl(currentTrackItem.Id, "Primary", {
|
||||||
|
tag: currentTrackItem.ImageTags?.Primary,
|
||||||
|
width: 256,
|
||||||
|
height: 256,
|
||||||
|
}),
|
||||||
|
sizes: "256x256",
|
||||||
|
type: "image/jpeg",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: api.getItemImageUrl(currentTrackItem.Id, "Primary", {
|
||||||
|
tag: currentTrackItem.ImageTags?.Primary,
|
||||||
|
width: 384,
|
||||||
|
height: 384,
|
||||||
|
}),
|
||||||
|
sizes: "384x384",
|
||||||
|
type: "image/jpeg",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: api.getItemImageUrl(currentTrackItem.Id, "Primary", {
|
||||||
|
tag: currentTrackItem.ImageTags?.Primary,
|
||||||
|
width: 512,
|
||||||
|
height: 512,
|
||||||
|
}),
|
||||||
|
sizes: "512x512",
|
||||||
|
type: "image/jpeg",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
console.log("Using MediaSession Api");
|
||||||
|
// navigator.mediaSession.setActionHandler("play", () => {
|
||||||
|
// /* Code excerpted. */
|
||||||
|
// });
|
||||||
|
// navigator.mediaSession.setActionHandler("pause", () => {
|
||||||
|
// /* Code excerpted. */
|
||||||
|
// });
|
||||||
|
// navigator.mediaSession.setActionHandler("stop", () => {
|
||||||
|
// /* Code excerpted. */
|
||||||
|
// });
|
||||||
|
// navigator.mediaSession.setActionHandler("seekbackward", () => {
|
||||||
|
// /* Code excerpted. */
|
||||||
|
// });
|
||||||
|
// navigator.mediaSession.setActionHandler("seekforward", () => {
|
||||||
|
// /* Code excerpted. */
|
||||||
|
// });
|
||||||
|
// navigator.mediaSession.setActionHandler("seekto", () => {
|
||||||
|
// /* Code excerpted. */
|
||||||
|
// });
|
||||||
|
// navigator.mediaSession.setActionHandler("previoustrack", () => {
|
||||||
|
// /* Code excerpted. */
|
||||||
|
// });
|
||||||
|
// navigator.mediaSession.setActionHandler("nexttrack", () => {
|
||||||
|
// /* Code excerpted. */
|
||||||
|
// });
|
||||||
|
// navigator.mediaSession.setActionHandler("skipad", () => {
|
||||||
|
// /* Code excerpted. */
|
||||||
|
// });
|
||||||
|
// navigator.mediaSession.setActionHandler("togglecamera", () => {
|
||||||
|
// /* Code excerpted. */
|
||||||
|
// });
|
||||||
|
// navigator.mediaSession.setActionHandler("togglemicrophone", () => {
|
||||||
|
// /* Code excerpted. */
|
||||||
|
// });
|
||||||
|
// navigator.mediaSession.setActionHandler("hangup", () => {
|
||||||
|
// /* Code excerpted. */
|
||||||
|
// });
|
||||||
|
}
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
});
|
});
|
||||||
setAudioRef(audioRef);
|
setAudioRef(audioRef);
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import {
|
|||||||
withStyles,
|
withStyles,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import { AnimatePresence, motion, transform } from "framer-motion";
|
import { AnimatePresence, motion, transform } from "framer-motion";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState, useMemo, useCallback } from "react";
|
||||||
|
|
||||||
import logo from "@/assets/logo.png";
|
import logo from "@/assets/logo.png";
|
||||||
|
|
||||||
@@ -191,17 +191,28 @@ const Settings = () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Memoize PaperProps to prevent unnecessary re-renders
|
||||||
|
const paperProps = useMemo(
|
||||||
|
() => ({
|
||||||
|
className: "settings glass",
|
||||||
|
elevation: 10,
|
||||||
|
}),
|
||||||
|
[],
|
||||||
|
);
|
||||||
|
|
||||||
|
// Memoize onClose function to prevent unnecessary re-renders
|
||||||
|
const handleClose = useCallback(() => {
|
||||||
|
setSettingsDialogOpen(false);
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog
|
<Dialog
|
||||||
open={open}
|
open={open}
|
||||||
fullWidth
|
fullWidth
|
||||||
maxWidth="md"
|
maxWidth="md"
|
||||||
PaperProps={{
|
PaperProps={paperProps}
|
||||||
className: "settings glass",
|
|
||||||
elevation: 10,
|
|
||||||
}}
|
|
||||||
hideBackdrop
|
hideBackdrop
|
||||||
onClose={() => setSettingsDialogOpen(false)}
|
onClose={handleClose}
|
||||||
>
|
>
|
||||||
<Tabs
|
<Tabs
|
||||||
orientation="vertical"
|
orientation="vertical"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React from "react";
|
import React, { useCallback, useMemo } from "react";
|
||||||
|
|
||||||
import { Dialog, Slide } from "@mui/material";
|
import { Dialog, Slide } from "@mui/material";
|
||||||
import { useKonamiEasterEgg } from "../../utils/misc/konami";
|
import { useKonamiEasterEgg } from "../../utils/misc/konami";
|
||||||
@@ -6,15 +6,22 @@ import { useKonamiEasterEgg } from "../../utils/misc/konami";
|
|||||||
export const EasterEgg = () => {
|
export const EasterEgg = () => {
|
||||||
const [easterEgg, setEasterEgg] = useKonamiEasterEgg();
|
const [easterEgg, setEasterEgg] = useKonamiEasterEgg();
|
||||||
|
|
||||||
|
// Memoize the onClose function
|
||||||
|
const handleClose = useCallback(() => {
|
||||||
|
setEasterEgg(false);
|
||||||
|
}, [setEasterEgg]);
|
||||||
|
|
||||||
|
// Memoize the sx object
|
||||||
|
const dialogSx = useMemo(
|
||||||
|
() => ({
|
||||||
|
background: "black",
|
||||||
|
}),
|
||||||
|
[],
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Dialog
|
<Dialog open={easterEgg} onClose={handleClose} sx={dialogSx}>
|
||||||
open={easterEgg}
|
|
||||||
onClose={() => setEasterEgg(false)}
|
|
||||||
sx={{
|
|
||||||
background: "black",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<iframe
|
<iframe
|
||||||
width="560"
|
width="560"
|
||||||
height="315"
|
height="315"
|
||||||
|
|||||||
+27
-1
@@ -25,6 +25,7 @@ import { Route as SetupServerErrorImport } from './routes/setup/server.error'
|
|||||||
import { Route as SetupServerAddImport } from './routes/setup/server.add'
|
import { Route as SetupServerAddImport } from './routes/setup/server.add'
|
||||||
import { Route as ApiSeriesIdImport } from './routes/_api/series/$id'
|
import { Route as ApiSeriesIdImport } from './routes/_api/series/$id'
|
||||||
import { Route as ApiPlaylistIdImport } from './routes/_api/playlist/$id'
|
import { Route as ApiPlaylistIdImport } from './routes/_api/playlist/$id'
|
||||||
|
import { Route as ApiPlayerPhotosImport } from './routes/_api/player/photos'
|
||||||
import { Route as ApiPlayerAudioImport } from './routes/_api/player/audio'
|
import { Route as ApiPlayerAudioImport } from './routes/_api/player/audio'
|
||||||
import { Route as ApiPersonIdImport } from './routes/_api/person/$id'
|
import { Route as ApiPersonIdImport } from './routes/_api/person/$id'
|
||||||
import { Route as ApiLoginManualImport } from './routes/_api/login/manual'
|
import { Route as ApiLoginManualImport } from './routes/_api/login/manual'
|
||||||
@@ -109,6 +110,11 @@ const ApiPlaylistIdRoute = ApiPlaylistIdImport.update({
|
|||||||
getParentRoute: () => ApiRoute,
|
getParentRoute: () => ApiRoute,
|
||||||
} as any)
|
} as any)
|
||||||
|
|
||||||
|
const ApiPlayerPhotosRoute = ApiPlayerPhotosImport.update({
|
||||||
|
path: '/player/photos',
|
||||||
|
getParentRoute: () => ApiRoute,
|
||||||
|
} as any)
|
||||||
|
|
||||||
const ApiPlayerAudioRoute = ApiPlayerAudioImport.update({
|
const ApiPlayerAudioRoute = ApiPlayerAudioImport.update({
|
||||||
path: '/player/audio',
|
path: '/player/audio',
|
||||||
getParentRoute: () => ApiRoute,
|
getParentRoute: () => ApiRoute,
|
||||||
@@ -273,6 +279,13 @@ declare module '@tanstack/react-router' {
|
|||||||
preLoaderRoute: typeof ApiPlayerAudioImport
|
preLoaderRoute: typeof ApiPlayerAudioImport
|
||||||
parentRoute: typeof ApiImport
|
parentRoute: typeof ApiImport
|
||||||
}
|
}
|
||||||
|
'/_api/player/photos': {
|
||||||
|
id: '/_api/player/photos'
|
||||||
|
path: '/player/photos'
|
||||||
|
fullPath: '/player/photos'
|
||||||
|
preLoaderRoute: typeof ApiPlayerPhotosImport
|
||||||
|
parentRoute: typeof ApiImport
|
||||||
|
}
|
||||||
'/_api/playlist/$id': {
|
'/_api/playlist/$id': {
|
||||||
id: '/_api/playlist/$id'
|
id: '/_api/playlist/$id'
|
||||||
path: '/playlist/$id'
|
path: '/playlist/$id'
|
||||||
@@ -387,6 +400,7 @@ interface ApiRouteChildren {
|
|||||||
ApiLibraryIdRoute: typeof ApiLibraryIdRoute
|
ApiLibraryIdRoute: typeof ApiLibraryIdRoute
|
||||||
ApiPersonIdRoute: typeof ApiPersonIdRoute
|
ApiPersonIdRoute: typeof ApiPersonIdRoute
|
||||||
ApiPlayerAudioRoute: typeof ApiPlayerAudioRoute
|
ApiPlayerAudioRoute: typeof ApiPlayerAudioRoute
|
||||||
|
ApiPlayerPhotosRoute: typeof ApiPlayerPhotosRoute
|
||||||
ApiPlaylistIdRoute: typeof ApiPlaylistIdRoute
|
ApiPlaylistIdRoute: typeof ApiPlaylistIdRoute
|
||||||
ApiSeriesIdRoute: typeof ApiSeriesIdRoute
|
ApiSeriesIdRoute: typeof ApiSeriesIdRoute
|
||||||
ApiFavoriteIndexRoute: typeof ApiFavoriteIndexRoute
|
ApiFavoriteIndexRoute: typeof ApiFavoriteIndexRoute
|
||||||
@@ -405,6 +419,7 @@ const ApiRouteChildren: ApiRouteChildren = {
|
|||||||
ApiLibraryIdRoute: ApiLibraryIdRoute,
|
ApiLibraryIdRoute: ApiLibraryIdRoute,
|
||||||
ApiPersonIdRoute: ApiPersonIdRoute,
|
ApiPersonIdRoute: ApiPersonIdRoute,
|
||||||
ApiPlayerAudioRoute: ApiPlayerAudioRoute,
|
ApiPlayerAudioRoute: ApiPlayerAudioRoute,
|
||||||
|
ApiPlayerPhotosRoute: ApiPlayerPhotosRoute,
|
||||||
ApiPlaylistIdRoute: ApiPlaylistIdRoute,
|
ApiPlaylistIdRoute: ApiPlaylistIdRoute,
|
||||||
ApiSeriesIdRoute: ApiSeriesIdRoute,
|
ApiSeriesIdRoute: ApiSeriesIdRoute,
|
||||||
ApiFavoriteIndexRoute: ApiFavoriteIndexRoute,
|
ApiFavoriteIndexRoute: ApiFavoriteIndexRoute,
|
||||||
@@ -430,6 +445,7 @@ export interface FileRoutesByFullPath {
|
|||||||
'/login/manual': typeof ApiLoginManualRoute
|
'/login/manual': typeof ApiLoginManualRoute
|
||||||
'/person/$id': typeof ApiPersonIdRoute
|
'/person/$id': typeof ApiPersonIdRoute
|
||||||
'/player/audio': typeof ApiPlayerAudioRoute
|
'/player/audio': typeof ApiPlayerAudioRoute
|
||||||
|
'/player/photos': typeof ApiPlayerPhotosRoute
|
||||||
'/playlist/$id': typeof ApiPlaylistIdRoute
|
'/playlist/$id': typeof ApiPlaylistIdRoute
|
||||||
'/series/$id': typeof ApiSeriesIdRoute
|
'/series/$id': typeof ApiSeriesIdRoute
|
||||||
'/setup/server/add': typeof SetupServerAddRoute
|
'/setup/server/add': typeof SetupServerAddRoute
|
||||||
@@ -457,6 +473,7 @@ export interface FileRoutesByTo {
|
|||||||
'/login/manual': typeof ApiLoginManualRoute
|
'/login/manual': typeof ApiLoginManualRoute
|
||||||
'/person/$id': typeof ApiPersonIdRoute
|
'/person/$id': typeof ApiPersonIdRoute
|
||||||
'/player/audio': typeof ApiPlayerAudioRoute
|
'/player/audio': typeof ApiPlayerAudioRoute
|
||||||
|
'/player/photos': typeof ApiPlayerPhotosRoute
|
||||||
'/playlist/$id': typeof ApiPlaylistIdRoute
|
'/playlist/$id': typeof ApiPlaylistIdRoute
|
||||||
'/series/$id': typeof ApiSeriesIdRoute
|
'/series/$id': typeof ApiSeriesIdRoute
|
||||||
'/setup/server/add': typeof SetupServerAddRoute
|
'/setup/server/add': typeof SetupServerAddRoute
|
||||||
@@ -486,6 +503,7 @@ export interface FileRoutesById {
|
|||||||
'/_api/login/manual': typeof ApiLoginManualRoute
|
'/_api/login/manual': typeof ApiLoginManualRoute
|
||||||
'/_api/person/$id': typeof ApiPersonIdRoute
|
'/_api/person/$id': typeof ApiPersonIdRoute
|
||||||
'/_api/player/audio': typeof ApiPlayerAudioRoute
|
'/_api/player/audio': typeof ApiPlayerAudioRoute
|
||||||
|
'/_api/player/photos': typeof ApiPlayerPhotosRoute
|
||||||
'/_api/playlist/$id': typeof ApiPlaylistIdRoute
|
'/_api/playlist/$id': typeof ApiPlaylistIdRoute
|
||||||
'/_api/series/$id': typeof ApiSeriesIdRoute
|
'/_api/series/$id': typeof ApiSeriesIdRoute
|
||||||
'/setup/server/add': typeof SetupServerAddRoute
|
'/setup/server/add': typeof SetupServerAddRoute
|
||||||
@@ -516,6 +534,7 @@ export interface FileRouteTypes {
|
|||||||
| '/login/manual'
|
| '/login/manual'
|
||||||
| '/person/$id'
|
| '/person/$id'
|
||||||
| '/player/audio'
|
| '/player/audio'
|
||||||
|
| '/player/photos'
|
||||||
| '/playlist/$id'
|
| '/playlist/$id'
|
||||||
| '/series/$id'
|
| '/series/$id'
|
||||||
| '/setup/server/add'
|
| '/setup/server/add'
|
||||||
@@ -542,6 +561,7 @@ export interface FileRouteTypes {
|
|||||||
| '/login/manual'
|
| '/login/manual'
|
||||||
| '/person/$id'
|
| '/person/$id'
|
||||||
| '/player/audio'
|
| '/player/audio'
|
||||||
|
| '/player/photos'
|
||||||
| '/playlist/$id'
|
| '/playlist/$id'
|
||||||
| '/series/$id'
|
| '/series/$id'
|
||||||
| '/setup/server/add'
|
| '/setup/server/add'
|
||||||
@@ -569,6 +589,7 @@ export interface FileRouteTypes {
|
|||||||
| '/_api/login/manual'
|
| '/_api/login/manual'
|
||||||
| '/_api/person/$id'
|
| '/_api/person/$id'
|
||||||
| '/_api/player/audio'
|
| '/_api/player/audio'
|
||||||
|
| '/_api/player/photos'
|
||||||
| '/_api/playlist/$id'
|
| '/_api/playlist/$id'
|
||||||
| '/_api/series/$id'
|
| '/_api/series/$id'
|
||||||
| '/setup/server/add'
|
| '/setup/server/add'
|
||||||
@@ -636,6 +657,7 @@ export const routeTree = rootRoute
|
|||||||
"/_api/library/$id",
|
"/_api/library/$id",
|
||||||
"/_api/person/$id",
|
"/_api/person/$id",
|
||||||
"/_api/player/audio",
|
"/_api/player/audio",
|
||||||
|
"/_api/player/photos",
|
||||||
"/_api/playlist/$id",
|
"/_api/playlist/$id",
|
||||||
"/_api/series/$id",
|
"/_api/series/$id",
|
||||||
"/_api/favorite/",
|
"/_api/favorite/",
|
||||||
@@ -702,6 +724,10 @@ export const routeTree = rootRoute
|
|||||||
"filePath": "_api/player/audio.tsx",
|
"filePath": "_api/player/audio.tsx",
|
||||||
"parent": "/_api"
|
"parent": "/_api"
|
||||||
},
|
},
|
||||||
|
"/_api/player/photos": {
|
||||||
|
"filePath": "_api/player/photos.tsx",
|
||||||
|
"parent": "/_api"
|
||||||
|
},
|
||||||
"/_api/playlist/$id": {
|
"/_api/playlist/$id": {
|
||||||
"filePath": "_api/playlist/$id.jsx",
|
"filePath": "_api/playlist/$id.jsx",
|
||||||
"parent": "/_api"
|
"parent": "/_api"
|
||||||
@@ -732,7 +758,7 @@ export const routeTree = rootRoute
|
|||||||
"parent": "/_api"
|
"parent": "/_api"
|
||||||
},
|
},
|
||||||
"/_api/search/": {
|
"/_api/search/": {
|
||||||
"filePath": "_api/search/index.jsx",
|
"filePath": "_api/search/index.tsx",
|
||||||
"parent": "/_api/search"
|
"parent": "/_api/search"
|
||||||
},
|
},
|
||||||
"/_api/login/$userId/$userName": {
|
"/_api/login/$userId/$userName": {
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ export const Route = createRootRouteWithContext<ApiContext>()({
|
|||||||
<AppBar />
|
<AppBar />
|
||||||
<AudioPlayer />
|
<AudioPlayer />
|
||||||
<Outlet />
|
<Outlet />
|
||||||
{/* <ReactQueryDevtools /> */}
|
<ReactQueryDevtools />
|
||||||
{/* <TanStackRouterDevtools /> */}
|
{/* <TanStackRouterDevtools /> */}
|
||||||
</SnackbarProvider>
|
</SnackbarProvider>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
|
|||||||
@@ -15,16 +15,16 @@ import { CarouselSkeleton } from "@/components/skeleton/carousel";
|
|||||||
|
|
||||||
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
|
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
|
||||||
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api";
|
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api";
|
||||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
|
||||||
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
|
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
|
||||||
import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api";
|
import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api";
|
||||||
|
|
||||||
import { createFileRoute, useNavigate } from "@tanstack/react-router";
|
import { createFileRoute, useNavigate } from "@tanstack/react-router";
|
||||||
|
|
||||||
import { setBackdrop } from "@/utils/store/backdrop";
|
import { useBackdropStore } from "@/utils/store/backdrop";
|
||||||
|
|
||||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||||
import { useApiInContext } from "@/utils/store/api";
|
import { useApiInContext } from "@/utils/store/api";
|
||||||
|
import { useCentralStore } from "@/utils/store/central";
|
||||||
import {
|
import {
|
||||||
type BaseItemDto,
|
type BaseItemDto,
|
||||||
BaseItemKind,
|
BaseItemKind,
|
||||||
@@ -32,7 +32,6 @@ import {
|
|||||||
} from "@jellyfin/sdk/lib/generated-client";
|
} from "@jellyfin/sdk/lib/generated-client";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import { ErrorBoundary } from "react-error-boundary";
|
import { ErrorBoundary } from "react-error-boundary";
|
||||||
import { useCentralStore } from "@/utils/store/central";
|
|
||||||
|
|
||||||
export const Route = createFileRoute("/_api/home/")({
|
export const Route = createFileRoute("/_api/home/")({
|
||||||
component: Home,
|
component: Home,
|
||||||
@@ -67,6 +66,11 @@ function Home() {
|
|||||||
ItemFields.MediaStreams,
|
ItemFields.MediaStreams,
|
||||||
ItemFields.MediaSources,
|
ItemFields.MediaSources,
|
||||||
],
|
],
|
||||||
|
includeItemTypes: [
|
||||||
|
BaseItemKind.Movie,
|
||||||
|
BaseItemKind.Series,
|
||||||
|
BaseItemKind.MusicAlbum,
|
||||||
|
],
|
||||||
enableUserData: true,
|
enableUserData: true,
|
||||||
enableImages: true,
|
enableImages: true,
|
||||||
});
|
});
|
||||||
@@ -131,6 +135,8 @@ function Home() {
|
|||||||
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
|
const setBackdrop = useBackdropStore((s) => s.setBackdrop);
|
||||||
|
|
||||||
const [excludeTypes] = useState(
|
const [excludeTypes] = useState(
|
||||||
() => new Set(["boxsets", "playlists", "livetv", "channels"]),
|
() => new Set(["boxsets", "playlists", "livetv", "channels"]),
|
||||||
);
|
);
|
||||||
@@ -139,7 +145,7 @@ function Home() {
|
|||||||
if (libraries.isSuccess) {
|
if (libraries.isSuccess) {
|
||||||
const latestMediaLibsTemp = libraries.data.Items?.reduce(
|
const latestMediaLibsTemp = libraries.data.Items?.reduce(
|
||||||
(filteredItems: BaseItemDto[], currentItem) => {
|
(filteredItems: BaseItemDto[], currentItem) => {
|
||||||
if (!excludeTypes.has(currentItem.Type)) {
|
if (currentItem.Type && !excludeTypes.has(currentItem.Type)) {
|
||||||
filteredItems.push(currentItem);
|
filteredItems.push(currentItem);
|
||||||
}
|
}
|
||||||
return filteredItems;
|
return filteredItems;
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
.photos {
|
||||||
|
background: black;
|
||||||
|
overflow: hidden;
|
||||||
|
height: 100vh;
|
||||||
|
&-currentPhoto {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
&-overlay{
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
&-preview {
|
||||||
|
// width: 10vw;
|
||||||
|
height: 10vh;
|
||||||
|
object-fit: cover;
|
||||||
|
border: 2px;
|
||||||
|
border: 2px solid transparent;
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: border $transition-time-default;
|
||||||
|
&-container {
|
||||||
|
width: 90vw;
|
||||||
|
overflow-y: hidden;
|
||||||
|
overflow-x: auto;
|
||||||
|
display: flex;
|
||||||
|
gap: 4px;
|
||||||
|
margin: 0 auto;
|
||||||
|
bottom: 0;
|
||||||
|
left: 5vw;
|
||||||
|
}
|
||||||
|
&.active {
|
||||||
|
border-color: $clr-accent-default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
import { useApiInContext } from "@/utils/store/api";
|
||||||
|
import { usePhotosPlayback } from "@/utils/store/photosPlayback";
|
||||||
|
import { createFileRoute } from "@tanstack/react-router";
|
||||||
|
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
||||||
|
|
||||||
|
import { AnimatePresence, motion } from "framer-motion";
|
||||||
|
import brokenImage from "../../../../public/assetsStatic/broken-image.png";
|
||||||
|
|
||||||
|
import "./photos.scss";
|
||||||
|
import { Button } from "@mui/material";
|
||||||
|
|
||||||
|
export const Route = createFileRoute("/_api/player/photos")({
|
||||||
|
component: PhotosPlayer,
|
||||||
|
});
|
||||||
|
|
||||||
|
function PhotosPlayer() {
|
||||||
|
const api = useApiInContext((s) => s.api);
|
||||||
|
const [photos, startIndex] = usePhotosPlayback((s) => [s.photos, s.index]);
|
||||||
|
const [currentIndex, setCurrentIndex] = useState(startIndex);
|
||||||
|
const currentPhoto = useMemo(
|
||||||
|
() => photos?.[currentIndex],
|
||||||
|
[photos, currentIndex],
|
||||||
|
);
|
||||||
|
const allPhotos = useMemo(
|
||||||
|
() =>
|
||||||
|
photos?.map((item, index) => (
|
||||||
|
<div
|
||||||
|
onClick={() => setCurrentIndex(index)}
|
||||||
|
key={item?.Id ?? "noPhoto"}
|
||||||
|
className={
|
||||||
|
index === currentIndex ? "photos-preview active" : "photos-preview"
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
src={
|
||||||
|
item.Id
|
||||||
|
? api.getItemImageUrl(item.Id, "Primary", {
|
||||||
|
// width: 250,
|
||||||
|
fillWidth: 250,
|
||||||
|
quality: 70,
|
||||||
|
})
|
||||||
|
: brokenImage
|
||||||
|
}
|
||||||
|
style={{
|
||||||
|
width: "auto",
|
||||||
|
height: "100%",
|
||||||
|
borderRadius: "2px",
|
||||||
|
}}
|
||||||
|
alt="Item"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)),
|
||||||
|
[photos, currentIndex],
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="photos">
|
||||||
|
<AnimatePresence mode="wait">
|
||||||
|
<motion.img
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 1 }}
|
||||||
|
exit={{ opacity: 0 }}
|
||||||
|
key={currentPhoto?.Id ?? "noPhoto"}
|
||||||
|
src={
|
||||||
|
currentPhoto
|
||||||
|
? `${api.basePath}/Items/${currentPhoto.Id}/Download?api_key=${api.accessToken}`
|
||||||
|
: brokenImage
|
||||||
|
}
|
||||||
|
alt="Item"
|
||||||
|
transition={{ duration: 0.1 }}
|
||||||
|
className="photos-currentPhoto"
|
||||||
|
/>
|
||||||
|
</AnimatePresence>
|
||||||
|
<motion.div
|
||||||
|
className="photos-overlay"
|
||||||
|
whileHover={{ opacity: 1, transform: "translateY(0)" }}
|
||||||
|
style={{ opacity: 0.5, transform: "translateY(80%)" }}
|
||||||
|
>
|
||||||
|
<div className="photos-preview-container">{allPhotos}</div>
|
||||||
|
</motion.div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -21,12 +21,15 @@ import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
|
|||||||
import { getPersonsApi } from "@jellyfin/sdk/lib/utils/api/persons-api";
|
import { getPersonsApi } from "@jellyfin/sdk/lib/utils/api/persons-api";
|
||||||
import { getSearchApi } from "@jellyfin/sdk/lib/utils/api/search-api";
|
import { getSearchApi } from "@jellyfin/sdk/lib/utils/api/search-api";
|
||||||
import "./search.scss";
|
import "./search.scss";
|
||||||
|
import { useCentralStore } from "@/utils/store/central";
|
||||||
import { Dialog, Fab } from "@mui/material";
|
import { Dialog, Fab } from "@mui/material";
|
||||||
import { Outlet, createFileRoute, useNavigate } from "@tanstack/react-router";
|
import { Outlet, createFileRoute, useNavigate } from "@tanstack/react-router";
|
||||||
import { useCentralStore } from "@/utils/store/central";
|
|
||||||
|
|
||||||
export const Route = createFileRoute("/_api/search/")({
|
export const Route = createFileRoute("/_api/search/")({
|
||||||
component: SearchPage,
|
component: SearchPage,
|
||||||
|
validateSearch: (search: Record<string, unknown>): { query: string } => {
|
||||||
|
return { query: search.query as string };
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
function SearchPage() {
|
function SearchPage() {
|
||||||
@@ -37,8 +37,6 @@ export const playAudio = (
|
|||||||
url: string,
|
url: string,
|
||||||
item: BaseItemDto | undefined | null,
|
item: BaseItemDto | undefined | null,
|
||||||
playlistItemId: string | undefined,
|
playlistItemId: string | undefined,
|
||||||
queue: BaseItemDto[] | undefined,
|
|
||||||
queueItemIndex: number,
|
|
||||||
): void => {
|
): void => {
|
||||||
useAudioPlayback.setState({
|
useAudioPlayback.setState({
|
||||||
display: true,
|
display: true,
|
||||||
@@ -46,7 +44,6 @@ export const playAudio = (
|
|||||||
item,
|
item,
|
||||||
playlistItemId,
|
playlistItemId,
|
||||||
});
|
});
|
||||||
setQueue(queue, queueItemIndex);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const generateAudioStreamUrl = (
|
export const generateAudioStreamUrl = (
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
import type { BaseItemDto } from "@jellyfin/sdk/lib/generated-client";
|
||||||
|
import { create } from "zustand";
|
||||||
|
import { devtools } from "zustand/middleware";
|
||||||
|
import { immer } from "zustand/middleware/immer";
|
||||||
|
import { shallow } from "zustand/shallow";
|
||||||
|
import { createWithEqualityFn } from "zustand/traditional";
|
||||||
|
import { usePlaybackStore } from "./playback";
|
||||||
|
|
||||||
|
type PhotosPlaybackStore = {
|
||||||
|
photos: BaseItemDto[] | null;
|
||||||
|
index: number;
|
||||||
|
playPhotos: (photos: BaseItemDto[], index: number) => void;
|
||||||
|
};
|
||||||
|
|
||||||
|
type PhotosPlaybackStoreActions = {
|
||||||
|
playPhotos: (photos: BaseItemDto[]) => void;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const usePhotosPlayback = createWithEqualityFn<PhotosPlaybackStore>()(
|
||||||
|
devtools(
|
||||||
|
immer((set) => ({
|
||||||
|
photos: null,
|
||||||
|
playPhotos: (photos, index) =>
|
||||||
|
set((state) => {
|
||||||
|
state.photos = photos;
|
||||||
|
state.index = index;
|
||||||
|
}),
|
||||||
|
index: 0,
|
||||||
|
})),
|
||||||
|
),
|
||||||
|
shallow,
|
||||||
|
);
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
import { create } from "zustand";
|
|
||||||
import { shallow } from "zustand/shallow";
|
import { shallow } from "zustand/shallow";
|
||||||
import { createWithEqualityFn } from "zustand/traditional";
|
import { createWithEqualityFn } from "zustand/traditional";
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import type {
|
|||||||
import type IntroMediaInfo from "./introMediaInfo";
|
import type IntroMediaInfo from "./introMediaInfo";
|
||||||
|
|
||||||
interface PlayResult {
|
interface PlayResult {
|
||||||
item: BaseItemDtoQueryResult;
|
item: BaseItemDtoQueryResult | undefined;
|
||||||
mediaSource: PlaybackInfoResponse;
|
mediaSource: PlaybackInfoResponse | undefined;
|
||||||
introInfo: IntroMediaInfo | undefined;
|
introInfo: IntroMediaInfo | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -34,7 +34,9 @@
|
|||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*" // *** The files TypeScript should type check ***
|
"src/**/*" // *** The files TypeScript should type check ***
|
||||||
],
|
,
|
||||||
|
"src/routes/_api/player/photos/.tsx"
|
||||||
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"build"
|
"build"
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@ import { defineConfig } from "vite";
|
|||||||
import react from "@vitejs/plugin-react";
|
import react from "@vitejs/plugin-react";
|
||||||
import svgr from "vite-plugin-svgr";
|
import svgr from "vite-plugin-svgr";
|
||||||
import { TanStackRouterVite } from '@tanstack/router-vite-plugin'
|
import { TanStackRouterVite } from '@tanstack/router-vite-plugin'
|
||||||
|
import MillionLint from "@million/lint";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
|
||||||
// const ReactCompilerConfig = {compilationMode: "annotation"}
|
// const ReactCompilerConfig = {compilationMode: "annotation"}
|
||||||
@@ -17,7 +17,7 @@ const plugins = [react({
|
|||||||
}]
|
}]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}), svgr(), TanStackRouterVite()];
|
}), svgr(), TanStackRouterVite(), MillionLint.vite()];
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: plugins,
|
plugins: plugins,
|
||||||
css: {
|
css: {
|
||||||
|
|||||||
Reference in new issue
Block a user