style: update hero-carousel styling

This commit is contained in:
Prayag Prajapati committed 2024-06-08 17:52:05 +05:30
1 parent badc2b622f
commit 326b093210
27 files changed
+750 -382

No files matched your search

+1 -1
View File
@@ -1 +1 @@
{"encodings":["src\\main.tsx","ProviderWrapper",[40,0,44,1],[41,13,41,42],[42,19,42,54],[43,8,43,71],"src\\utils\\store\\api.tsx","ApiProvider",[57,27,71,1],[57,28,57,40],[58,17,69,2],[70,8,70,75],"useApiInContext",[73,7,79,1],[74,15,74,37],[78,8,78,34],"src\\routes\\_api\\search\\index.jsx","SearchPage",[30,0,448,1],[31,13,31,36],[33,37,33,49],[34,21,34,49],[36,14,44,3],[48,16,62,3],[63,16,77,3],[78,20,92,3],[93,15,107,3],[108,14,122,3],[123,22,137,3],[138,16,150,3],[151,18,164,3],[166,23,166,71],[168,1,171,7],[173,2,446,8],[183,3,236,9],[184,4,235,6],[201,7,230,24],[202,8,229,14],[210,9,227,11],[228,9,228,65],[237,3,421,9],[243,5,262,20],[245,7,260,9],[265,5,290,20],[267,7,288,9],[293,5,307,20],[296,8,304,10],[310,5,329,20],[312,7,327,9],[332,5,352,20],[334,7,350,9],[355,5,375,20],[357,7,373,9],[378,5,397,20],[380,7,395,9],[400,5,419,20],[402,7,417,9],[438,5,444,11],[443,6,443,68],"src\\routes\\_api\\favorite\\index.tsx","FavoritePage",[20,0,304,1],[21,13,21,36],[22,23,22,71],[24,14,32,3],[34,16,45,3],[47,16,58,3],[60,20,71,3],[73,15,84,3],[86,14,97,3],[99,22,110,3],[112,16,123,3],[125,1,127,3],[130,2,302,9],[141,4,160,19],[143,6,158,8],[163,4,188,19],[165,6,186,8],[191,4,210,19],[193,6,208,8],[213,4,233,19],[215,6,231,8],[236,4,256,19],[238,6,254,8],[259,4,278,19],[261,6,276,8],[281,4,300,19],[283,6,298,8],"src\\routes\\_api\\home\\index.tsx","Home",[38,0,419,1],[39,13,39,42],[41,14,49,3],[51,19,61,3],[63,21,83,3],[85,26,99,3],[101,26,114,3],[116,21,135,3],[137,47,137,59],[139,18,139,31],[145,1,162,26],[162,5,162,24],[171,3,416,10],[178,4,205,20],[180,6,180,26],[183,7,202,9],[185,9,185,52],[207,4,241,20],[209,6,211,12],[210,7,210,51],[215,6,215,23],[217,6,239,21],[221,10,236,12],[242,4,303,20],[244,6,246,12],[245,7,245,52],[250,6,250,23],[254,6,301,21],[257,9,298,11],[304,4,362,20],[306,6,308,12],[307,7,307,59],[312,6,312,23],[317,6,360,21],[320,9,357,11],[363,4,404,20],[365,6,367,12],[366,7,366,59],[371,6,371,23],[376,6,402,21],[379,9,399,11],[405,4,415,20],[407,6,409,12],[408,7,408,62],[413,13,413,69],"src\\routes\\setup\\server.add.tsx","ServerSetup",[25,0,152,1],[26,33,26,45],[28,29,28,42],[30,18,30,60],[32,21,66,3],[70,3,79,5],[80,3,149,15],[88,4,148,11],[95,5,97,12],[96,6,96,54],[98,5,108,12],[99,6,107,8],[109,5,123,12],[110,6,122,22],[116,8,116,71],[124,5,147,12],[136,6,143,13],[144,6,146,19],"src\\routes\\_api\\player\\index.tsx","VideoPlayer",[81,0,592,1],[82,13,82,36],[83,21,83,32],[84,39,84,54],[96,5,106,3],[108,31,108,45],[109,41,109,55],[111,51,111,66],[114,31,114,46],[115,31,115,45],[116,35,116,50],[117,45,117,68],[118,33,118,56],[119,43,119,58],[120,43,120,67],[121,49,123,2],[124,29,124,40],[125,27,125,42],[127,1,127,41],[129,49,129,71],[209,16,209,28],[223,24,259,7],[261,1,269,21],[269,5,269,19],[271,1,302,38],[302,5,302,18],[302,20,302,36],[304,1,307,15],[307,5,307,13],[310,2,590,8],[311,3,334,21],[313,5,332,18],[331,6,331,52],[335,3,562,16],[352,4,400,10],[353,5,355,18],[354,6,354,66],[356,5,360,18],[359,6,359,64],[361,5,399,12],[382,6,398,18],[390,7,392,18],[394,8,396,19],[401,4,561,10],[402,5,409,18],[405,7,407,20],[410,5,560,11],[411,6,452,12],[412,7,445,9],[446,7,451,13],[447,8,449,21],[450,8,450,61],[453,6,559,12],[454,7,485,13],[455,8,455,30],[456,8,464,21],[461,9,463,16],[465,8,469,21],[466,9,468,16],[470,8,478,21],[475,9,477,16],[479,8,479,26],[480,8,484,21],[486,7,558,13],[487,8,523,21],[509,9,511,22],[512,9,522,11],[524,8,537,21],[530,9,536,16],[538,8,538,23],[539,8,545,21],[540,9,544,16],[546,8,557,21],[554,9,556,16],[564,3,589,5],"src\\routes\\_api\\login\\index.tsx","LoginRoute",[19,0,91,1],[20,18,20,31],[21,18,21,31],[22,13,22,36],[23,29,23,65],[25,19,32,3],[48,2,89,13],[48,22,48,45],[49,3,88,9],[60,4,60,48],[61,4,87,22],[62,5,86,18],[75,6,85,19],"src\\routes\\setup\\server.list.tsx","ServerList",[28,0,203,1],[29,18,29,31],[30,39,30,53],[31,29,31,42],[33,21,33,37],[35,17,38,3],[40,23,43,3],[45,28,63,3],[87,1,89,7],[92,2,201,8],[93,3,93,21],[94,3,114,9],[103,4,105,17],[106,4,113,17],[112,5,112,56],[115,3,200,11],[118,6,198,12],[119,7,121,13],[122,7,170,13],[123,8,151,21],[133,10,149,12],[135,12,141,25],[152,8,160,21],[161,8,169,21],[171,7,197,13],[172,8,183,21],[182,9,182,62],[184,8,196,21],[195,9,195,71],"src\\routes\\_api\\playlist\\$id.jsx","TabPanel",[23,0,38,1],[23,18,23,23],[27,2,36,8],[35,23,35,44],"PlaylistTitlePage",[57,0,229,1],[58,16,58,33],[59,13,59,36],[61,14,69,3],[71,14,84,3],[86,22,99,3],[101,21,112,3],[114,26,114,74],[116,1,126,7],[130,3,140,9],[139,4,139,24],[145,3,223,9],[160,7,168,9],[174,5,221,20],[181,8,218,10],[227,9,227,24],"src\\routes\\_api\\series\\$id.tsx",[65,0,80,1],[65,18,65,23],[69,2,78,8],[77,23,77,44],"SeriesTitlePage",[99,0,1205,1],[100,16,100,33],[102,13,102,36],[104,14,112,3],[114,14,127,3],[129,22,142,3],[144,17,157,3],[159,23,174,3],[176,43,179,3],[180,55,180,70],[182,43,185,3],[187,27,199,3],[201,18,216,3],[218,25,228,3],[229,26,229,74],[231,35,231,47],[232,31,232,43],[233,29,233,41],[234,35,234,47],[236,1,260,21],[260,5,260,19],[262Line truncated
{"encodings":["src\\main.tsx","ProviderWrapper",[40,0,44,1],[41,13,41,42],[42,19,42,54],[43,8,43,71],"src\\utils\\store\\api.tsx","ApiProvider",[57,27,71,1],[57,28,57,40],[58,17,69,2],[70,8,70,75],"useApiInContext",[73,7,79,1],[74,15,74,37],[78,8,78,34],"src\\routes\\_api\\search\\index.jsx","SearchPage",[30,0,448,1],[31,13,31,36],[33,37,33,49],[34,21,34,49],[36,14,44,3],[48,16,62,3],[63,16,77,3],[78,20,92,3],[93,15,107,3],[108,14,122,3],[123,22,137,3],[138,16,150,3],[151,18,164,3],[166,23,166,71],[168,1,171,7],[173,2,446,8],[183,3,236,9],[184,4,235,6],[201,7,230,24],[202,8,229,14],[210,9,227,11],[228,9,228,65],[237,3,421,9],[243,5,262,20],[245,7,260,9],[265,5,290,20],[267,7,288,9],[293,5,307,20],[296,8,304,10],[310,5,329,20],[312,7,327,9],[332,5,352,20],[334,7,350,9],[355,5,375,20],[357,7,373,9],[378,5,397,20],[380,7,395,9],[400,5,419,20],[402,7,417,9],[438,5,444,11],[443,6,443,68],"src\\routes\\_api\\favorite\\index.tsx","FavoritePage",[20,0,304,1],[21,13,21,36],[22,23,22,71],[24,14,32,3],[34,16,45,3],[47,16,58,3],[60,20,71,3],[73,15,84,3],[86,14,97,3],[99,22,110,3],[112,16,123,3],[125,1,127,3],[130,2,302,9],[141,4,160,19],[143,6,158,8],[163,4,188,19],[165,6,186,8],[191,4,210,19],[193,6,208,8],[213,4,233,19],[215,6,231,8],[236,4,256,19],[238,6,254,8],[259,4,278,19],[261,6,276,8],[281,4,300,19],[283,6,298,8],"src\\routes\\_api\\home\\index.tsx","Home",[38,0,419,1],[39,13,39,42],[41,14,49,3],[51,19,61,3],[63,21,83,3],[85,26,99,3],[101,26,114,3],[116,21,135,3],[137,47,137,59],[139,18,139,31],[145,1,162,26],[162,5,162,24],[171,3,416,10],[178,4,205,20],[180,6,180,26],[183,7,202,9],[185,9,185,52],[207,4,241,20],[209,6,211,12],[210,7,210,51],[215,6,215,23],[217,6,239,21],[221,10,236,12],[242,4,303,20],[244,6,246,12],[245,7,245,52],[250,6,250,23],[254,6,301,21],[257,9,298,11],[304,4,362,20],[306,6,308,12],[307,7,307,59],[312,6,312,23],[317,6,360,21],[320,9,357,11],[363,4,404,20],[365,6,367,12],[366,7,366,59],[371,6,371,23],[376,6,402,21],[379,9,399,11],[405,4,415,20],[407,6,409,12],[408,7,408,62],[413,13,413,69],"src\\routes\\setup\\server.add.tsx","ServerSetup",[25,0,152,1],[26,33,26,45],[28,29,28,42],[30,18,30,60],[32,21,66,3],[70,3,79,5],[80,3,149,15],[88,4,148,11],[95,5,97,12],[96,6,96,54],[98,5,108,12],[99,6,107,8],[109,5,123,12],[110,6,122,22],[116,8,116,71],[124,5,147,12],[136,6,143,13],[144,6,146,19],"src\\routes\\_api\\player\\index.tsx","VideoPlayer",[81,0,592,1],[82,13,82,36],[83,21,83,32],[84,39,84,54],[96,5,106,3],[108,31,108,45],[109,41,109,55],[111,51,111,66],[114,31,114,46],[115,31,115,45],[116,35,116,50],[117,45,117,68],[118,33,118,56],[119,43,119,58],[120,43,120,67],[121,49,123,2],[124,29,124,40],[125,27,125,42],[127,1,127,41],[129,49,129,71],[209,16,209,28],[223,24,259,7],[261,1,269,21],[269,5,269,19],[271,1,302,38],[302,5,302,18],[302,20,302,36],[304,1,307,15],[307,5,307,13],[310,2,590,8],[311,3,334,21],[313,5,332,18],[331,6,331,52],[335,3,562,16],[352,4,400,10],[353,5,355,18],[354,6,354,66],[356,5,360,18],[359,6,359,64],[361,5,399,12],[382,6,398,18],[390,7,392,18],[394,8,396,19],[401,4,561,10],[402,5,409,18],[405,7,407,20],[410,5,560,11],[411,6,452,12],[412,7,445,9],[446,7,451,13],[447,8,449,21],[450,8,450,61],[453,6,559,12],[454,7,485,13],[455,8,455,30],[456,8,464,21],[461,9,463,16],[465,8,469,21],[466,9,468,16],[470,8,478,21],[475,9,477,16],[479,8,479,26],[480,8,484,21],[486,7,558,13],[487,8,523,21],[509,9,511,22],[512,9,522,11],[524,8,537,21],[530,9,536,16],[538,8,538,23],[539,8,545,21],[540,9,544,16],[546,8,557,21],[554,9,556,16],[564,3,589,5],"src\\routes\\_api\\login\\index.tsx","LoginRoute",[19,0,91,1],[20,18,20,31],[21,18,21,31],[22,13,22,36],[23,29,23,65],[25,19,32,3],[48,2,89,13],[48,22,48,45],[49,3,88,9],[60,4,60,48],[61,4,87,22],[62,5,86,18],[75,6,85,19],"src\\routes\\setup\\server.list.tsx","ServerList",[28,0,203,1],[29,18,29,31],[30,39,30,53],[31,29,31,42],[33,21,33,37],[35,17,38,3],[40,23,43,3],[45,28,63,3],[87,1,89,7],[92,2,201,8],[93,3,93,21],[94,3,114,9],[103,4,105,17],[106,4,113,17],[112,5,112,56],[115,3,200,11],[118,6,198,12],[119,7,121,13],[122,7,170,13],[123,8,151,21],[133,10,149,12],[135,12,141,25],[152,8,160,21],[161,8,169,21],[171,7,197,13],[172,8,183,21],[182,9,182,62],[184,8,196,21],[195,9,195,71],"src\\routes\\_api\\playlist\\$id.jsx","TabPanel",[23,0,38,1],[23,18,23,23],[27,2,36,8],[35,23,35,44],"PlaylistTitlePage",[57,0,229,1],[58,16,58,33],[59,13,59,36],[61,14,69,3],[71,14,84,3],[86,22,99,3],[101,21,112,3],[114,26,114,74],[116,1,126,7],[130,3,140,9],[139,4,139,24],[145,3,223,9],[160,7,168,9],[174,5,221,20],[181,8,218,10],[227,9,227,24],"src\\routes\\_api\\series\\$id.tsx",[65,0,80,1],[65,18,65,23],[69,2,78,8],[77,23,77,44],"SeriesTitlePage",[99,0,1205,1],[100,16,100,33],[102,13,102,36],[104,14,112,3],[114,14,127,3],[129,22,142,3],[144,17,157,3],[159,23,174,3],[176,43,179,3],[180,55,180,70],[182,43,185,3],[187,27,199,3],[201,18,216,3],[218,25,228,3],[229,26,229,74],[231,35,231,47],[232,31,232,43],[233,29,233,41],[234,35,234,47],[236,1,260,21],[260,5,260,19],[262Line truncated
+4 -1
View File
@@ -21,7 +21,8 @@
"@jellyfin/sdk": "0.10.0",
"@million/lint": "1.0.0-rc.26",
"@mui/lab": "5.0.0-alpha.170",
"@mui/material": "6.0.0-alpha.6",
"@mui/material": "6.0.0-alpha.10",
"@react-spring/web": "^9.7.3",
"@tanem/react-nprogress": "^5.0.51",
"@tanstack/react-query": "^5.40.1",
"@tanstack/react-query-devtools": "^5.40.1",
@@ -38,6 +39,7 @@
"events": "^3.3.0",
"framer-motion": "^11.2.10",
"jassub": "^1.7.15",
"lodash": "^4.17.21",
"material-symbols": "^0.20.0",
"million": "^3.1.11",
"notistack": "^3.0.1",
@@ -63,6 +65,7 @@
"@tanstack/router-devtools": "^1.35.3",
"@tanstack/router-vite-plugin": "^1.34.8",
"@tauri-apps/cli": "^1.5.14",
"@types/lodash": "^4.17.5",
"@vitejs/plugin-react": "^4.3.0",
"prop-types": "^15.8.1",
"sass": "^1.77.4",
+146 -28
View File
@@ -31,10 +31,13 @@ importers:
version: 1.0.0-rc.26(react@18.3.1)(rollup@4.18.0)
'@mui/lab':
specifier: 5.0.0-alpha.170
version: 5.0.0-alpha.170(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@mui/material@6.0.0-alpha.6(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
version: 5.0.0-alpha.170(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@mui/material@6.0.0-alpha.10(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@mui/material':
specifier: 6.0.0-alpha.6
version: 6.0.0-alpha.6(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
specifier: 6.0.0-alpha.10
version: 6.0.0-alpha.10(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@react-spring/web':
specifier: ^9.7.3
version: 9.7.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@tanem/react-nprogress':
specifier: ^5.0.51
version: 5.0.51(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -83,6 +86,9 @@ importers:
jassub:
specifier: ^1.7.15
version: 1.7.15
lodash:
specifier: ^4.17.21
version: 4.17.21
material-symbols:
specifier: ^0.20.0
version: 0.20.0
@@ -130,7 +136,7 @@ importers:
version: 5.4.5
vite-plugin-svgr:
specifier: ^4.2.0
version: 4.2.0(rollup@4.18.0)(typescript@5.4.5)(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4))
version: 4.2.0(rollup@4.18.0)(typescript@5.4.5)(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1))
wavesurfer.js:
specifier: ^7.7.15
version: 7.7.15
@@ -149,13 +155,16 @@ importers:
version: 1.35.3(@tanstack/react-router@1.35.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(csstype@3.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@tanstack/router-vite-plugin':
specifier: ^1.34.8
version: 1.34.8(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4))
version: 1.34.8(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1))
'@tauri-apps/cli':
specifier: ^1.5.14
version: 1.5.14
'@types/lodash':
specifier: ^4.17.5
version: 4.17.5
'@vitejs/plugin-react':
specifier: ^4.3.0
version: 4.3.0(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4))
version: 4.3.0(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1))
prop-types:
specifier: ^15.8.1
version: 15.8.1
@@ -164,10 +173,10 @@ importers:
version: 1.77.4
vite:
specifier: ^5.2.12
version: 5.2.12(@types/node@20.14.2)(sass@1.77.4)
version: 5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1)
vite-plugin-compression:
specifier: ^0.5.1
version: 0.5.1(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4))
version: 0.5.1(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1))
packages:
@@ -655,6 +664,9 @@ packages:
resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==}
engines: {node: '>=6.0.0'}
'@jridgewell/source-map@0.3.6':
resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==}
'@jridgewell/sourcemap-codec@1.4.15':
resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
@@ -680,8 +692,8 @@ packages:
'@types/react':
optional: true
'@mui/base@5.0.0-beta.44':
resolution: {integrity: sha512-JLh+Lr6JiciiZ9Cy5ohWoJB6eSSlbUOIY168WpA4GagCyJlJb6CNGvBYczdCyhIBDhh2H6+jTTgi2JCUz4N1hw==}
'@mui/base@5.0.0-beta.48':
resolution: {integrity: sha512-po38+waGcGd+yXy0pWvnC/xTlOuUiiYT/o8PYm8XF1gWLJrRCKOzFT4k+nPI5y3AUQWbjC83CipDH12bzwL+ig==}
engines: {node: '>=12.0.0'}
peerDependencies:
'@types/react': ^17.0.0 || ^18.0.0
@@ -712,8 +724,8 @@ packages:
'@types/react':
optional: true
'@mui/material@6.0.0-alpha.6':
resolution: {integrity: sha512-wtPu8u3h83DIA24aEBMTtkvN4QCOXxZgpC8+ImrZdlJy4c28goseSGJCZIVLQmMMqQ4kasp91OkPTqOkUKD4gQ==}
'@mui/material@6.0.0-alpha.10':
resolution: {integrity: sha512-2lhy00EAITJbzdnL5OufsH3Twdas2kfhngSwfcMqo2ntlN2WguR68JQJl0vUTFuVLyzse6yXpt5zwnD3igEQVQ==}
engines: {node: '>=12.0.0'}
peerDependencies:
'@emotion/react': ^11.5.0
@@ -838,6 +850,30 @@ packages:
'@popperjs/core@2.11.8':
resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==}
'@react-spring/animated@9.7.3':
resolution: {integrity: sha512-5CWeNJt9pNgyvuSzQH+uy2pvTg8Y4/OisoscZIR8/ZNLIOI+CatFBhGZpDGTF/OzdNFsAoGk3wiUYTwoJ0YIvw==}
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
'@react-spring/core@9.7.3':
resolution: {integrity: sha512-IqFdPVf3ZOC1Cx7+M0cXf4odNLxDC+n7IN3MDcVCTIOSBfqEcBebSv+vlY5AhM0zw05PDbjKrNmBpzv/AqpjnQ==}
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
'@react-spring/shared@9.7.3':
resolution: {integrity: sha512-NEopD+9S5xYyQ0pGtioacLhL2luflh6HACSSDUZOwLHoxA5eku1UPuqcJqjwSD6luKjjLfiLOspxo43FUHKKSA==}
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
'@react-spring/types@9.7.3':
resolution: {integrity: sha512-Kpx/fQ/ZFX31OtlqVEFfgaD1ACzul4NksrvIgYfIFq9JpDHFwQkMVZ10tbo0FU/grje4rcL4EIrjekl3kYwgWw==}
'@react-spring/web@9.7.3':
resolution: {integrity: sha512-BXt6BpS9aJL/QdVqEIX9YoUy8CE6TJrU0mNCqSoxdXlIeNcEBWOfIyE6B14ENNsyQKS3wOWkiJfco0tCr/9tUg==}
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
'@rollup/pluginutils@5.1.0':
resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==}
engines: {node: '>=14.0.0'}
@@ -1173,6 +1209,9 @@ packages:
'@types/istanbul-reports@1.1.2':
resolution: {integrity: sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==}
'@types/lodash@4.17.5':
resolution: {integrity: sha512-MBIOHVZqVqgfro1euRDWX7OO0fBVUUMrN6Pwm8LQsz8cWhEpihlvR70ENj3f40j58TNxZaWv2ndSkInykNBBJw==}
'@types/mdast@4.0.4':
resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==}
@@ -1285,6 +1324,9 @@ packages:
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
buffer-from@1.1.2:
resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
build-url-ts@6.1.7:
resolution: {integrity: sha512-KU8hfHxEpBTvoJA4XLiL88JiJN6U0SIVtnXKMSKgxf2T+bP3tDlzd/WIl/dthi+01YXeS49yUxkL3JXyqPdIAw==}
@@ -1362,6 +1404,9 @@ packages:
comma-separated-tokens@2.0.3:
resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==}
commander@2.20.3:
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
convert-source-map@1.9.0:
resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==}
@@ -2112,10 +2157,17 @@ packages:
resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==}
engines: {node: '>=0.10.0'}
source-map-support@0.5.21:
resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
source-map@0.5.7:
resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==}
engines: {node: '>=0.10.0'}
source-map@0.6.1:
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
engines: {node: '>=0.10.0'}
space-separated-tokens@2.0.2:
resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}
@@ -2162,6 +2214,11 @@ packages:
resolution: {tarball: https://codeload.github.com/tauri-apps/tauri-plugin-store/tar.gz/51717bbde4101f44d3e2191907419f6f7085e2ef}
version: 0.0.0
terser@5.31.1:
resolution: {integrity: sha512-37upzU1+viGvuFtBo9NPufCb9dwM0+l9hMxYyWfBA+fbwrPqNJAhbZ6W47bBFnZHKHTUBnMvi87434qq+qnxOg==}
engines: {node: '>=10'}
hasBin: true
tiny-invariant@1.3.3:
resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
@@ -2920,6 +2977,12 @@ snapshots:
'@jridgewell/set-array@1.2.1': {}
'@jridgewell/source-map@0.3.6':
dependencies:
'@jridgewell/gen-mapping': 0.3.5
'@jridgewell/trace-mapping': 0.3.25
optional: true
'@jridgewell/sourcemap-codec@1.4.15': {}
'@jridgewell/trace-mapping@0.3.25':
@@ -2931,8 +2994,8 @@ snapshots:
dependencies:
'@antfu/ni': 0.21.12
'@axiomhq/js': 1.0.0-rc.3
'@babel/core': 7.24.6
'@babel/types': 7.24.6
'@babel/core': 7.24.7
'@babel/types': 7.24.7
'@clack/prompts': 0.7.0
cli-high: 0.4.2
diff: 5.2.0
@@ -2984,7 +3047,7 @@ snapshots:
optionalDependencies:
'@types/react': 18.3.3
'@mui/base@5.0.0-beta.44(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
'@mui/base@5.0.0-beta.48(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
dependencies:
'@babel/runtime': 7.24.7
'@floating-ui/react-dom': 2.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -3000,11 +3063,11 @@ snapshots:
'@mui/core-downloads-tracker@6.0.0-dev.240424162023-9968b4889d': {}
'@mui/lab@5.0.0-alpha.170(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@mui/material@6.0.0-alpha.6(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
'@mui/lab@5.0.0-alpha.170(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@mui/material@6.0.0-alpha.10(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
dependencies:
'@babel/runtime': 7.24.7
'@mui/base': 5.0.0-beta.40(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@mui/material': 6.0.0-alpha.6(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@mui/material': 6.0.0-alpha.10(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@mui/system': 5.15.15(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1)
'@mui/types': 7.2.14(@types/react@18.3.3)
'@mui/utils': 5.15.14(@types/react@18.3.3)(react@18.3.1)
@@ -3017,10 +3080,10 @@ snapshots:
'@emotion/styled': 11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1)
'@types/react': 18.3.3
'@mui/material@6.0.0-alpha.6(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
'@mui/material@6.0.0-alpha.10(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
dependencies:
'@babel/runtime': 7.24.7
'@mui/base': 5.0.0-beta.44(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@mui/base': 5.0.0-beta.48(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@mui/core-downloads-tracker': 6.0.0-dev.240424162023-9968b4889d
'@mui/system': 6.0.0-dev.240424162023-9968b4889d(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1)
'@mui/types': 7.2.14(@types/react@18.3.3)
@@ -3136,6 +3199,35 @@ snapshots:
'@popperjs/core@2.11.8': {}
'@react-spring/animated@9.7.3(react@18.3.1)':
dependencies:
'@react-spring/shared': 9.7.3(react@18.3.1)
'@react-spring/types': 9.7.3
react: 18.3.1
'@react-spring/core@9.7.3(react@18.3.1)':
dependencies:
'@react-spring/animated': 9.7.3(react@18.3.1)
'@react-spring/shared': 9.7.3(react@18.3.1)
'@react-spring/types': 9.7.3
react: 18.3.1
'@react-spring/shared@9.7.3(react@18.3.1)':
dependencies:
'@react-spring/types': 9.7.3
react: 18.3.1
'@react-spring/types@9.7.3': {}
'@react-spring/web@9.7.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
dependencies:
'@react-spring/animated': 9.7.3(react@18.3.1)
'@react-spring/core': 9.7.3(react@18.3.1)
'@react-spring/shared': 9.7.3(react@18.3.1)
'@react-spring/types': 9.7.3
react: 18.3.1
react-dom: 18.3.1(react@18.3.1)
'@rollup/pluginutils@5.1.0(rollup@4.18.0)':
dependencies:
'@types/estree': 1.0.5
@@ -3332,7 +3424,7 @@ snapshots:
prettier: 3.3.1
zod: 3.23.8
'@tanstack/router-vite-plugin@1.34.8(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4))':
'@tanstack/router-vite-plugin@1.34.8(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1))':
dependencies:
'@babel/core': 7.24.7
'@babel/generator': 7.24.7
@@ -3348,7 +3440,7 @@ snapshots:
'@types/babel__generator': 7.6.8
'@types/babel__template': 7.4.4
'@types/babel__traverse': 7.20.6
'@vitejs/plugin-react': 4.3.0(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4))
'@vitejs/plugin-react': 4.3.0(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1))
zod: 3.23.8
transitivePeerDependencies:
- supports-color
@@ -3449,6 +3541,8 @@ snapshots:
'@types/istanbul-lib-coverage': 2.0.6
'@types/istanbul-lib-report': 3.0.3
'@types/lodash@4.17.5': {}
'@types/mdast@4.0.4':
dependencies:
'@types/unist': 3.0.2
@@ -3488,14 +3582,14 @@ snapshots:
'@ungap/structured-clone@1.2.0': {}
'@vitejs/plugin-react@4.3.0(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4))':
'@vitejs/plugin-react@4.3.0(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1))':
dependencies:
'@babel/core': 7.24.7
'@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.24.7)
'@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.24.7)
'@types/babel__core': 7.20.5
react-refresh: 0.14.2
vite: 5.2.12(@types/node@20.14.2)(sass@1.77.4)
vite: 5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1)
transitivePeerDependencies:
- supports-color
@@ -3577,6 +3671,9 @@ snapshots:
node-releases: 2.0.14
update-browserslist-db: 1.0.16(browserslist@4.23.0)
buffer-from@1.1.2:
optional: true
build-url-ts@6.1.7: {}
callsites@3.1.0: {}
@@ -3653,6 +3750,9 @@ snapshots:
comma-separated-tokens@2.0.3: {}
commander@2.20.3:
optional: true
convert-source-map@1.9.0: {}
convert-source-map@2.0.0: {}
@@ -4651,8 +4751,17 @@ snapshots:
source-map-js@1.2.0: {}
source-map-support@0.5.21:
dependencies:
buffer-from: 1.1.2
source-map: 0.6.1
optional: true
source-map@0.5.7: {}
source-map@0.6.1:
optional: true
space-separated-tokens@2.0.2: {}
string-width@4.2.3:
@@ -4698,6 +4807,14 @@ snapshots:
dependencies:
'@tauri-apps/api': 1.5.6
terser@5.31.1:
dependencies:
'@jridgewell/source-map': 0.3.6
acorn: 8.11.3
commander: 2.20.3
source-map-support: 0.5.21
optional: true
tiny-invariant@1.3.3: {}
tiny-warning@1.0.3: {}
@@ -4805,27 +4922,27 @@ snapshots:
unist-util-stringify-position: 4.0.0
vfile-message: 4.0.2
vite-plugin-compression@0.5.1(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)):
vite-plugin-compression@0.5.1(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1)):
dependencies:
chalk: 4.1.2
debug: 4.3.5
fs-extra: 10.1.0
vite: 5.2.12(@types/node@20.14.2)(sass@1.77.4)
vite: 5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1)
transitivePeerDependencies:
- supports-color
vite-plugin-svgr@4.2.0(rollup@4.18.0)(typescript@5.4.5)(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)):
vite-plugin-svgr@4.2.0(rollup@4.18.0)(typescript@5.4.5)(vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1)):
dependencies:
'@rollup/pluginutils': 5.1.0(rollup@4.18.0)
'@svgr/core': 8.1.0(typescript@5.4.5)
'@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0(typescript@5.4.5))
vite: 5.2.12(@types/node@20.14.2)(sass@1.77.4)
vite: 5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1)
transitivePeerDependencies:
- rollup
- supports-color
- typescript
vite@5.2.12(@types/node@20.14.2)(sass@1.77.4):
vite@5.2.12(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1):
dependencies:
esbuild: 0.20.2
postcss: 8.4.38
@@ -4834,6 +4951,7 @@ snapshots:
'@types/node': 20.14.2
fsevents: 2.3.3
sass: 1.77.4
terser: 5.31.1
wavesurfer.js@7.7.15: {}
+11
View File
@@ -0,0 +1,11 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1029_262)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M23.5024 12.9928C23.271 9.28227 21.3839 6.50613 18.5446 4.9541C18.5607 5.04452 18.4802 5.15755 18.3886 5.11752C16.5315 4.30511 13.3809 6.93435 11.1793 5.55749C11.1958 6.05163 11.0993 8.46208 7.70374 8.6019C7.62358 8.60519 7.57946 8.52333 7.63015 8.46537C8.08426 7.94743 8.54275 6.63609 7.88349 5.93701C6.47168 7.20213 5.65179 7.67825 2.94477 7.04997C1.21159 8.86222 0.229486 11.3426 0.422283 14.4324C0.815644 20.7399 6.72373 24.3454 12.6732 23.9741C18.6223 23.6032 23.8959 19.3003 23.5024 12.9928Z" fill="#FA320A"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.6598 3.43995C13.8824 3.14856 17.3987 3.41156 18.5253 4.90604C18.5929 4.99566 18.4977 5.16526 18.3887 5.11766C16.5315 4.30524 13.3809 6.93449 11.1793 5.55762C11.1958 6.05176 11.0993 8.46222 7.7038 8.60204C7.62363 8.60532 7.57952 8.52347 7.6302 8.46551C8.08431 7.94756 8.5427 6.63623 7.88355 5.93714C6.34566 7.3153 5.51193 7.75815 2.17404 6.85591C2.06479 6.82644 2.10204 6.65087 2.21825 6.60655C2.84913 6.36546 4.27837 5.30946 5.63054 4.844C5.88796 4.75547 6.14459 4.68675 6.39505 4.64682C4.90625 4.51377 4.23515 4.30674 3.2882 4.44954C3.18443 4.46517 3.11392 4.34438 3.17825 4.26152C4.45414 2.61807 6.80454 2.12174 8.2547 2.9948C7.36083 1.88722 6.66064 1.0039 6.66064 1.0039L8.31973 0.0615234C8.31973 0.0615234 9.00518 1.59294 9.5039 2.7075C10.7381 0.883996 13.0343 0.715698 14.0044 2.00951C14.062 2.08639 14.0019 2.19573 13.9058 2.19344C13.1161 2.17422 12.6814 2.89243 12.6484 3.43865L12.6598 3.43995Z" fill="#00912D"/>
</g>
<defs>
<clipPath id="clip0_1029_262">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

+10
View File
@@ -0,0 +1,10 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1029_259)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.4392 21.4361C16.9038 21.6742 15.9771 16.4845 14.1977 16.5215C13.4395 16.5374 12.8419 17.3301 13.1043 18.254C13.2487 18.7619 13.649 19.5067 13.9012 19.9689C14.7909 21.6 13.4756 23.4458 11.9364 23.6019C9.37865 23.8614 8.31171 22.3776 8.37771 20.8586C8.45192 19.1535 9.89771 17.4111 8.41486 16.6698C6.86086 15.8928 5.5976 18.931 4.11055 19.6091C2.76465 20.2229 0.896337 19.747 0.232126 18.2525C-0.2344 17.2023 -0.149558 15.1801 1.9276 14.4085C3.22507 13.9266 6.11644 15.0387 6.26476 13.6301C6.43571 12.0063 3.22728 11.8694 2.26128 11.48C0.552021 10.7911 -0.456821 9.31714 0.3336 7.73588C0.926653 6.54978 2.6716 6.06714 4.00349 6.58672C5.59907 7.20914 5.85518 8.86409 6.67265 9.5523C7.37686 10.1455 8.34065 10.2197 8.97097 9.81188C9.43581 9.51104 9.59055 8.8503 9.41518 8.24672C9.18255 7.44546 8.56518 6.94546 7.96286 6.45556C6.89097 5.5842 5.37771 4.83493 6.29307 2.45651C7.04339 0.507354 9.24402 0.437144 9.24402 0.437144C10.1183 0.338828 10.9013 0.602828 11.5393 1.17283C12.3922 1.93483 12.5583 2.95335 12.4156 4.03999C12.2852 5.03188 11.9341 5.90062 11.7511 6.88335C11.5387 8.0243 12.1484 9.17399 13.3081 9.21872C14.8335 9.27767 15.2909 8.10525 15.4775 7.36209C15.7508 6.27472 16.1094 5.26525 17.1185 4.62946C18.5669 3.71693 20.5787 3.91693 21.512 5.67072C22.2503 7.05841 22.0133 8.96872 20.8808 10.0119C20.3727 10.4798 19.7617 10.6447 19.1009 10.6494C18.1532 10.6561 17.2059 10.6328 16.3262 11.0763C15.7274 11.3781 15.4664 11.8699 15.4665 12.529C15.4665 13.1715 15.801 13.591 16.3429 13.8641C17.3635 14.3785 18.4901 14.4837 19.5927 14.6767C21.1915 14.9567 22.5973 15.5199 23.4998 17.0036C23.5079 17.0166 23.5158 17.0298 23.5235 17.043C24.56 18.7997 23.476 21.329 21.4392 21.4361Z" fill="#0AC855"/>
</g>
<defs>
<clipPath id="clip0_1029_259">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

+171
View File
@@ -0,0 +1,171 @@
import useDebounce from "@/utils/hooks/useDebounce";
import React, {
type ReactNode,
useCallback,
useEffect,
useRef,
useState,
} from "react";
import { useSpring } from "@react-spring/web";
import { debounce } from "lodash";
import "./style.scss";
import { Button, IconButton } from "@mui/material";
enum Direction {
RIGHT = 0,
LEFT = 1,
}
const Slider = ({
content,
currentSlide,
}: { content: ReactNode[]; currentSlide: number }) => {
const containerRef = useRef<HTMLDivElement>(null);
const [scrollPos, setScrollPos] = useState({ isStart: true, isEnd: false });
const handleScroll = useCallback(() => {
const scrollWidth = containerRef.current?.scrollWidth ?? 0;
const clientWidth =
containerRef.current?.getBoundingClientRect().width ?? 0;
const scrolledPostion = containerRef.current?.scrollLeft ?? 0;
if (content.length === 0) {
setScrollPos({ isStart: true, isEnd: true });
} else if (clientWidth >= scrollWidth) {
setScrollPos({ isStart: true, isEnd: true });
} else if (
scrolledPostion >=
(containerRef.current?.scrollWidth ?? 0) - clientWidth
) {
setScrollPos({ isStart: false, isEnd: true });
} else if (scrolledPostion > 0) {
setScrollPos({ isStart: false, isEnd: false });
} else {
setScrollPos({ isStart: true, isEnd: false });
}
}, [content]);
const debouncedScroll = useCallback(
() => debounce(handleScroll, 50),
[handleScroll],
);
useEffect(() => {
const handleResize = () => {
debouncedScroll();
};
window.addEventListener("resize", handleResize, { passive: true });
return () => window.removeEventListener("resize", handleResize);
}, [debouncedScroll]);
useEffect(() => {
handleScroll();
}, [handleScroll, content]);
const onScroll = () => {
debouncedScroll();
};
const [, setX] = useSpring(() => ({
from: { x: 0 },
to: { x: 0 },
onChange: (results) => {
if (containerRef.current) {
containerRef.current.scrollLeft = results.value.x;
}
},
}));
const slide = (direction: Direction) => {
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;
if (direction === Direction.LEFT) {
const newX = Math.max(
scrollPosition - scrollOffset - visibleItems * cardWidth,
0,
);
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: 1000, velocity: 2 },
});
if (newX === 0) {
setScrollPos({ isStart: true, isEnd: false });
} else {
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 });
}
}
};
return (
<div className="slider">
<IconButton
className="slider-button left"
onClick={() => slide(Direction.LEFT)}
disabled={scrollPos.isStart}
variant="contained"
>
<span className="material-symbols-rounded">chevron_left</span>
</IconButton>
<div className="slider-track" ref={containerRef} onScroll={onScroll}>
{content?.map((item, index) => (
<div
key={index}
className={
currentSlide === index
? "slider-track-item active"
: "slider-track-item"
}
>
{item}
</div>
))}
</div>
<IconButton
className="slider-button right"
onClick={() => slide(Direction.RIGHT)}
disabled={scrollPos.isEnd}
variant="contained"
>
<span className="material-symbols-rounded">chevron_right</span>
</IconButton>
</div>
);
};
export default Slider;
+31
View File
@@ -0,0 +1,31 @@
.slider {
position: relative;
&-track {
overflow-y: hidden;
overflow-x: auto;
white-space: nowrap;
position: relative;
overscroll-behavior-x: contain;
margin: 0.5em 1em;
&-item {
display: inline-block;
// align-self: top;
padding: 0.5em 0;
}
}
&-button {
position: absolute !important;
bottom: 1.3em;
&.left {
left: -1.2em;
}
&.right {
right: -1.2em;
}
}
}
+1
View File
@@ -103,6 +103,7 @@ export const AppBar = () => {
return usr.data;
},
enabled: display,
throwOnError: true,
});
const libraries = useQuery({
queryKey: ["libraries"],
+11 -11
View File
@@ -11,6 +11,7 @@ import Typography from "@mui/material/Typography";
import {
type BaseItemDto,
BaseItemKind,
type ImageType,
} from "@jellyfin/sdk/lib/generated-client";
import LikeButton from "../buttons/likeButton";
import MarkPlayedButton from "../buttons/markPlayedButton";
@@ -49,22 +50,21 @@ export const Card = ({
overrideIcon,
}: {
item: BaseItemDto;
cardTitle: string | null;
cardCaption: string | null;
imageType: string;
cardTitle: string | undefined | null;
cardCaption?: string | null | number;
imageType: ImageType;
cardType: string;
queryKey: [];
userId: string;
seriesId: string | null;
hideText: boolean;
onClick: () => null | null;
disableOverlay: boolean;
overrideIcon: any;
queryKey?: string[];
userId?: string;
seriesId?: string | null;
hideText?: boolean;
onClick?: () => void;
disableOverlay?: boolean;
overrideIcon?: any;
}) => {
const api = useApiInContext((s) => s.api);
const navigate = useNavigate();
const defaultOnClick = () => {
switch (item.Type) {
case BaseItemKind.BoxSet:
navigate({ to: "/boxset/$id", params: { id: item.Id } });
+2 -1
View File
@@ -10,6 +10,7 @@ import { Blurhash } from "react-blurhash";
import "./card.scss";
import { getRuntimeCompact } from "@/utils/date/time";
import { useApiInContext } from "@/utils/store/api";
import { useNavigate, useRouteContext } from "@tanstack/react-router";
import LikeButton from "../buttons/likeButton";
import MarkPlayedButton from "../buttons/markPlayedButton";
@@ -43,7 +44,7 @@ export const EpisodeCard = ({
disableRunTime = false,
onClick,
}) => {
const api = useRouteContext({ from: "/" }).api;
const api = useApiInContext((s) => s.api);
const navigate = useNavigate();
const defaultOnClick = () => {
navigate({ to: `/episode/${item.Id}` });
+48 -21
View File
@@ -1,45 +1,72 @@
.carousel {
position: relative;
height: 70vh;
height: 64vh;
width: calc(100% + 2*$page-margin);
left: -$page-margin;
margin-bottom: 3.2em;
.slider {
position: absolute;
bottom: 0;
max-width: 35%;
right: $page-margin;
}
&-button {
position: absolute !important;
top: 50%;
transform: translateY(-50%);
z-index: 100;
&.right {
left: calc(100% + 0.5em);
right: 0.5em;
}
&.left {
right: calc(100% + 0.5em);
left: 0.5em;
}
}
&-indicator {
height: 3px;
width: 100%;
border-radius: 10px;
transition: background $transition-time-fast,
height $transition-time-fast;
background: rgb(255 255 255 / 0.5);
aspect-ratio: 1.77777;
overflow: hidden;
border-radius: 2px;
padding: 2px;
transition: opacity $transition-time-fast;
opacity: 0.5;
width: auto;
&:hover {
cursor: pointer;
height: 6px;
background: rgb(255 255 255 / 0.8) !important;
opacity: 0.8;
}
&-container {
display: flex;
position: absolute;
bottom: -1.5em;
left: 10px;
right: 10px;
gap: 1em;
align-items: center;
justify-content: center;
}
&.active {
height: 6px;
background: white !important;
}
}
&-image {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 4px;
}
&-icon {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background: rgb(155 155 155 / 0.4);
border-radius: 4px;
}
&.active {
opacity: 1;
.material-symbols-rounded {
--fill: 1;
}
}
}
}
@@ -5,46 +5,60 @@ import IconButton from "@mui/material/IconButton";
import { useCarouselStore } from "../../utils/store/carousel";
import "./carousel.scss";
import { useApiInContext } from "@/utils/store/api";
import type { BaseItemDto } from "@jellyfin/sdk/lib/generated-client";
import CarouselSlide from "../carouselSlide";
import ReactMultiCarousel from "react-multi-carousel";
import Slider from "../Slider";
import { getTypeIcon } from "../utils/iconsCollection";
const swipeConfidenceThreshold = 8000;
const swipePower = (offset, velocity) => {
return Math.abs(offset) * velocity;
};
const Carousel = ({ content, onChange }) => {
const Carousel = ({
content,
onChange,
}: {
content: BaseItemDto[];
onChange: () => void;
}) => {
const [currentSlide, setCurrentSlide] = useState(0);
const [setDirection, dir] = useCarouselStore((state) => [
state.setDirection,
state.direction,
]);
// biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
useEffect(() => {
onChange(currentSlide);
}, [content[currentSlide]?.key]);
}, [content[currentSlide]?.Id]);
const api = useApiInContext((s) => s.api);
const responsive = {
superLargeDesktop: {
// the naming can be any, depends on you.
breakpoint: { max: 4000, min: 3000 },
items: 6,
},
desktop: {
breakpoint: { max: 3000, min: 1024 },
items: 6,
},
tablet: {
breakpoint: { max: 1024, min: 464 },
items: 4,
},
mobile: {
breakpoint: { max: 464, min: 0 },
items: 1,
},
};
return (
<div className="carousel">
<IconButton
className="carousel-button left"
onClick={() => {
if (currentSlide === 0) {
setDirection("left");
setCurrentSlide(content.length - 1);
}
if (currentSlide > 0) {
setDirection("left");
setCurrentSlide((init) => init - 1);
}
}}
sx={{
background: " rgb(200 200 200 / 0.05)",
}}
// disabled={currentSlide == 0}
>
<div className="material-symbols-rounded">arrow_left</div>
</IconButton>
<AnimatePresence mode="sync">
<motion.div
key={currentSlide}
@@ -77,35 +91,31 @@ const Carousel = ({ content, onChange }) => {
position: "absolute",
}}
>
{content[currentSlide]}
<CarouselSlide
item={content[currentSlide]}
key={content[currentSlide].Id}
/>
</motion.div>
</AnimatePresence>
<IconButton
className="carousel-button right"
onClick={() => {
if (currentSlide === content.length - 1) {
setDirection("right");
setCurrentSlide(0);
} else if (currentSlide < content.length - 1) {
setDirection("right");
setCurrentSlide((init) => init + 1);
}
}}
// disabled={currentSlide == content.length - 1}
sx={{
background: " rgb(200 200 200 / 0.05)",
}}
>
<div className="material-symbols-rounded">arrow_right</div>
</IconButton>
<div className="carousel-indicator-container">
{content.map((item, index) => (
<div
<Slider
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) {
@@ -115,9 +125,24 @@ const Carousel = ({ content, onChange }) => {
}
setCurrentSlide(index);
}}
/>
>
{item.ImageTags?.Primary ? (
<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>
);
};
+77 -75
View File
@@ -14,12 +14,15 @@ import { yellow } from "@mui/material/colors";
import { endsAt, getRuntime } from "@/utils/date/time";
import { green, red } from "@mui/material/colors";
import { useQuery } from "@tanstack/react-query";
import { useNavigate, useRouteContext } from "@tanstack/react-router";
import { useNavigate } from "@tanstack/react-router";
import { getTypeIcon } from "../utils/iconsCollection";
import { useApiInContext } from "@/utils/store/api";
import { useCarouselStore } from "@/utils/store/carousel";
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
import {
type BaseItemDto,
BaseItemKind,
} from "@jellyfin/sdk/lib/generated-client";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import LikeButton from "../buttons/likeButton";
import MarkPlayedButton from "../buttons/markPlayedButton";
@@ -41,7 +44,7 @@ const availableSpecialRoutes = [
* @param {Props}
* @returns {React.Component}
*/
const CarouselSlide = ({ item }) => {
const CarouselSlide = ({ item }: { item: BaseItemDto }) => {
const api = useApiInContext((s) => s.api);
const navigate = useNavigate();
@@ -55,19 +58,31 @@ const CarouselSlide = ({ item }) => {
});
const handleMoreInfo = () => {
if (availableSpecialRoutes.includes(item.Type)) {
navigate({
to: `/${item.Type.toLocaleLowerCase()}/$id`,
params: { id: item.Id },
});
} else if (!!item.Role || item.Type === BaseItemKind.Person) {
navigate({ to: "/person/$id", params: { id: item.Id } });
} else if (item.Type === BaseItemKind.MusicArtist) {
navigate({ to: "/artist/$id", params: { id: item.Id } });
} else if (item.Type === BaseItemKind.Episode) {
navigate({ to: "/episode/$id", params: { id: item.Id } });
} else {
navigate({ to: "/item/$id", params: { id: item.Id } });
switch (item.Type) {
case BaseItemKind.BoxSet:
navigate({ to: "/boxset/$id", params: { id: item.Id } });
break;
case BaseItemKind.Episode:
navigate({ to: "/episode/$id", params: { id: item.Id } });
break;
case BaseItemKind.MusicAlbum:
navigate({ to: "/album/$id", params: { id: item.Id } });
break;
case BaseItemKind.MusicArtist:
navigate({ to: "/artist/$id", params: { id: item.Id } });
break;
case BaseItemKind.Person:
navigate({ to: "/person/$id", params: { id: item.Id } });
break;
case BaseItemKind.Series:
navigate({ to: "/series/$id", params: { id: item.Id } });
break;
case BaseItemKind.Playlist:
navigate({ to: "/playlist/$id", params: { id: item.Id } });
break;
default:
navigate({ to: "/item/$id", params: { id: item.Id } });
break;
}
};
@@ -78,50 +93,33 @@ const CarouselSlide = ({ item }) => {
className="hero-carousel-slide"
sx={{
background: "transparent",
px: 3,
// px: 3,
}}
elevation={10}
elevation={0}
>
<div className="hero-carousel-background-container">
{!!item.ImageBlurHashes.Backdrop && (
<>
{Object.keys(item.ImageBlurHashes.Backdrop).length !== 0 && (
<Blurhash
hash={
item.ImageBlurHashes.Backdrop[
Object.keys(item.ImageBlurHashes.Backdrop)[0]
]
}
// hash="LEHV6nWB2yk8pyo0adR*.7kCMdnj"
width="256"
height="179.2"
resolutionX={64}
resolutionY={45}
className="hero-carousel-background-blurhash"
punch={1.4}
/>
)}
<img
alt={item.Name}
className="hero-carousel-background-image"
src={
item.ParentBackdropItemId
? `${api.basePath}/Items/${item.ParentBackdropItemId}/Images/Backdrop?quality=80`
: `${api.basePath}/Items/${item.Id}/Images/Backdrop?quality=80&fillHeight=1400`
}
style={{
opacity: 0,
}}
onLoad={(e) => {
e.target.style.opacity = 1;
}}
loading="eager"
/>
</>
{item.BackdropImageTags?.length ? (
<img
alt={item.Name}
className="hero-carousel-background-image"
src={
item.ParentBackdropItemId
? `${api.basePath}/Items/${item.ParentBackdropItemId}/Images/Backdrop?quality=80`
: `${api.basePath}/Items/${item.Id}/Images/Backdrop?quality=80&fillHeight=1400`
}
style={{
opacity: 0,
}}
onLoad={(e) => {
e.target.style.opacity = 1;
}}
loading="eager"
/>
) : (
<div className="hero-carousel-background-icon-container">
{getTypeIcon(item.Type)}
</div>
)}
<div className="hero-carousel-background-icon-container">
{getTypeIcon(item.Type)}
</div>
</div>
<div className="hero-carousel-detail">
<Typography
@@ -207,10 +205,14 @@ const CarouselSlide = ({ item }) => {
justifyItems="flex-start"
alignItems="center"
>
<Typography style={{ opacity: "0.8" }} variant="subtitle1">
{item.ProductionYear ? item.ProductionYear : "Unknown"}
</Typography>
<Chip variant="filled" label={item.OfficialRating ?? "Not Rated"} />
{item.PremiereDate && (
<Typography style={{ opacity: "0.8" }} variant="subtitle2">
{item.ProductionYear ?? ""}
</Typography>
)}
{item.OfficialRating && (
<Chip variant="filled" size="small" label={item.OfficialRating} />
)}
{item.CommunityRating && (
<div
@@ -222,12 +224,10 @@ const CarouselSlide = ({ item }) => {
className="hero-carousel-info-rating"
>
<div
className="material-symbols-rounded "
className="material-symbols-rounded fill"
style={{
// fontSize: "2.2em",
color: yellow[400],
fontVariationSettings:
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
}}
>
star
@@ -236,13 +236,13 @@ const CarouselSlide = ({ item }) => {
style={{
opacity: "0.8",
}}
variant="subtitle1"
variant="subtitle2"
>
{Math.round(item.CommunityRating * 10) / 10}
</Typography>
</div>
)}
{Boolean(item.CriticRating) && (
{item.CriticRating && (
<div
style={{
display: "flex",
@@ -252,11 +252,9 @@ const CarouselSlide = ({ item }) => {
className="hero-carousel-info-rating"
>
<div
className="material-symbols-rounded "
className="material-symbols-rounded fill"
style={{
color: item.CriticRating > 50 ? green[400] : red[400],
fontVariationSettings:
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
}}
>
{item.CriticRating > 50 ? "thumb_up" : "thumb_down"}
@@ -265,23 +263,26 @@ const CarouselSlide = ({ item }) => {
style={{
opacity: "0.8",
}}
variant="subtitle1"
variant="subtitle2"
>
{item.CriticRating}
</Typography>
</div>
)}
{!!item.RunTimeTicks && (
<Typography style={{ opacity: "0.8" }} variant="subtitle1">
{item.RunTimeTicks && (
<Typography style={{ opacity: "0.8" }} variant="subtitle2">
{getRuntime(item.RunTimeTicks)}
</Typography>
)}
{!!item.RunTimeTicks && (
<Typography style={{ opacity: "0.8" }} variant="subtitle1">
{endsAt(item.RunTimeTicks)}
{item.RunTimeTicks && (
<Typography style={{ opacity: "0.8" }} variant="subtitle2">
{endsAt(item.RunTimeTicks - item.UserData.PlaybackPositionTicks)}
</Typography>
)}
<Typography variant="subtitle2" style={{ opacity: 0.8 }}>
{item.Genres?.slice(0, 4).join(" / ")}
</Typography>
</Stack>
<Typography
component={motion.div}
@@ -308,7 +309,6 @@ const CarouselSlide = ({ item }) => {
duration: 0.25,
ease: "easeInOut",
}}
variant="subtitle1"
className="hero-carousel-text"
sx={{
display: "-webkit-box",
@@ -319,6 +319,8 @@ const CarouselSlide = ({ item }) => {
WebkitLineClamp: "4",
WebkitBoxOrient: "vertical",
}}
variant="subtitle2"
fontWeight={300}
>
{item.Overview}
</Typography>
@@ -5,15 +5,19 @@ import { CardScroller } from "../../cardScroller/cardScroller";
import { CardsSkeleton } from "../../skeleton/cards";
import { useApiInContext } from "@/utils/store/api";
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
import {
type BaseItemDto,
BaseItemKind,
} from "@jellyfin/sdk/lib/generated-client";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
import { useRouteContext } from "@tanstack/react-router";
/**
* @description Latest Media Section
*/
export const LatestMediaSection = ({ latestMediaLib }) => {
export const LatestMediaSection = ({
latestMediaLib,
}: { latestMediaLib: BaseItemDto }) => {
const api = useApiInContext((s) => s.api);
const user = useQuery({
queryKey: ["user"],
@@ -23,27 +27,27 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
},
networkMode: "always",
});
const fetchLatestMedia = async (library) => {
const fetchLatestMedia = async (library: BaseItemDto) => {
const media = await getUserLibraryApi(api).getLatestMedia({
userId: user.data.Id,
parentId: library,
userId: user.data?.Id,
parentId: library.Id,
limit: 16,
fields: ["PrimaryImageAspectRatio"],
});
return media.data;
};
const data = useQuery({
queryKey: ["homeSection, latestMedia", latestMediaLib],
queryFn: () => fetchLatestMedia(latestMediaLib[0]),
queryKey: ["home", "latestMedia", latestMediaLib.Id],
queryFn: () => fetchLatestMedia(latestMediaLib),
enabled: !!user.data,
refetchOnMount: true
refetchOnMount: true,
});
if (data.isPending) {
return <CardsSkeleton />;
}
if (data.isSuccess && data.data.length >= 1) {
return (
<CardScroller displayCards={7} title={`Latest ${latestMediaLib[1]}`}>
<CardScroller displayCards={7} title={`Latest ${latestMediaLib.Name}`}>
{data.data.map((item) => {
return (
<Card
@@ -75,8 +79,8 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
? "square"
: "portrait"
}
queryKey={["homeSection, latestMedia", latestMediaLib]}
userId={user.data.Id}
queryKey={["home", "latestMedia", latestMediaLib.Id]}
userId={user.data?.Id}
imageBlurhash={
!!item.ImageBlurHashes?.Primary &&
item.ImageBlurHashes?.Primary[
+4 -2
View File
@@ -28,7 +28,7 @@ import React, { useEffect, useState } from "react";
import logo from "@/assets/logo.png";
import { createApi, jellyfin, useApiInContext } from "@/utils/store/api";
import { jellyfin, useApiInContext } from "@/utils/store/api";
import { useCentralStore } from "@/utils/store/central";
import { getSystemApi } from "@jellyfin/sdk/lib/utils/api/system-api";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
@@ -64,7 +64,9 @@ const Settings = () => {
state.dialogOpen,
state.tabValue,
]);
const api = useApiInContext((s) => s.api);
const api = useApiInContext((s) => s.api);
const createApi = useApiInContext((s) => s.createApi);
const systemInfo = useQuery({
queryKey: ["about", "systemInfo"],
+1 -3
View File
@@ -12,6 +12,7 @@ const router = createRouter({
api: undefined!,
createApi: undefined!,
},
defaultPreload: "intent",
});
// Register the router instance for type safety
@@ -21,9 +22,6 @@ declare module "@tanstack/react-router" {
}
}
import { ThemeProvider } from "@mui/material";
import { SnackbarProvider } from "notistack";
import { theme } from "./theme";
import { ApiProvider, useApiInContext } from "./utils/store/api";
export const queryClient = new QueryClient({
-2
View File
@@ -23,9 +23,7 @@ import { useIsFetching, useIsMutating } from "@tanstack/react-query";
import {
Outlet,
ScrollRestoration,
createRootRoute,
createRootRouteWithContext,
useNavigate,
useRouterState,
} from "@tanstack/react-router";
import { TanStackRouterDevtools } from "@tanstack/router-devtools";
-1
View File
@@ -1,6 +1,5 @@
import { getDefaultServer, getServer } from "@/utils/storage/servers";
import { getUser } from "@/utils/storage/user";
import { getSystemApi } from "@jellyfin/sdk/lib/utils/api/system-api";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { createFileRoute, redirect } from "@tanstack/react-router";
+28 -27
View File
@@ -7,10 +7,9 @@
position: relative;
height: 100%;
width: 100%;
border-radius: 10px !important;
overflow: hidden;
overflow: visible;
margin: 0 auto;
border: 1.2px solid rgb(255 255 255 / 0.15);
border: none;
// box-shadow: 0 0 30px black !important;
}
&-background {
@@ -24,32 +23,31 @@
&-container {
position: absolute;
z-index: 0;
top: 0;
top: -4.4em;
left: 0;
right: 0;
bottom: 0;
height: 90vh;
filter: brightness(0.8);
mask-image: linear-gradient(to left, black 50%, transparent), linear-gradient(to bottom, black 60%, transparent);
-webkit-mask-image: linear-gradient(to left,
black 50%,
transparent), linear-gradient(to bottom, black 40%, transparent);
mask-composite: intersect;
}
&-image {
position: absolute;
background-size: cover;
z-index: 1;
top: 0;
right: 0;
top: 0;
bottom: 0;
background-position: center;
object-fit: cover;
width: 80%;
height: 100%;
width: 100%;
height: 90vh;
transition: opacity 0.5s;
mask-image: linear-gradient(to left, black 50%, transparent);
-webkit-mask-image: linear-gradient(
to left,
black 50%,
transparent
);
}
&-icon-container {
position: absolute;
// background: $clr-gradient-dark;
@@ -60,6 +58,7 @@
right: 0;
bottom: 0;
background-blend-mode: overlay;
height: 9%;
.material-symbols-rounded {
position: absolute;
font-size: 15em !important;
@@ -67,7 +66,7 @@
top: 50%;
transform: translate(-50%, -50%);
font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 50,
"opsz" 60;
"opsz" 60;
}
}
}
@@ -89,16 +88,17 @@
display: flex;
height: 100%;
width: 80%;
padding: 2.5em;
padding: $page-margin;
padding-bottom: 0;
flex-direction: column;
justify-content: center;
justify-content: flex-end;
align-items: flex-start;
}
}
.backdropContainer {
background: linear-gradient(
45deg,
45deg,
$clr-background-default,
$clr-background-light
);
@@ -113,13 +113,14 @@
width: 100%;
}
&-text {
-webkit-line-clamp: 2 !important;
&-logo {
max-width: 7em;
max-height: 2em;
object-fit: contain;
object-position: bottom;
}
}
-webkit-line-clamp: 2 !important;
&-logo {
max-width: 7em;
max-height: 2em;
object-fit: contain;
object-position: bottom;
}
}
}
}
+52 -85
View File
@@ -21,16 +21,18 @@ import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api";
import { createFileRoute, useNavigate } from "@tanstack/react-router";
import { setBackdrop, useBackdropStore } from "@/utils/store/backdrop";
import { setBackdrop } from "@/utils/store/backdrop";
import CarouselSlide from "@/components/carouselSlide";
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
import { ApiContext, useApiInContext } from "@/utils/store/api";
import { BaseItemKind, ItemFields } from "@jellyfin/sdk/lib/generated-client";
import { useApiInContext } from "@/utils/store/api";
import {
type BaseItemDto,
BaseItemKind,
ItemFields,
} from "@jellyfin/sdk/lib/generated-client";
import Typography from "@mui/material/Typography";
import { useSnackbar } from "notistack";
import { ErrorBoundary } from "react-error-boundary";
import { useStore } from "zustand";
export const Route = createFileRoute("/_api/home/")({
component: Home,
@@ -45,6 +47,7 @@ function Home() {
queryKey: ["user"],
queryFn: async () => {
const usr = await getUserApi(api).getCurrentUser();
console.log(usr.data);
return usr.data;
},
networkMode: "always",
@@ -55,7 +58,7 @@ function Home() {
queryKey: ["libraries"],
queryFn: async () => {
const libs = await getUserViewsApi(api).getUserViews({
userId: user.data.Id,
userId: user.data?.Id,
});
return libs.data;
},
@@ -67,11 +70,10 @@ function Home() {
queryKey: ["home", "latestMedia"],
queryFn: async () => {
const media = await getUserLibraryApi(api).getLatestMedia({
userId: user.data.Id,
userId: user.data?.Id,
fields: [
ItemFields.Overview,
ItemFields.ParentId,
"ParentIndexNumber",
ItemFields.SeasonUserData,
ItemFields.IsHd,
ItemFields.MediaStreams,
@@ -89,7 +91,7 @@ function Home() {
queryKey: ["home", "resume", "video"],
queryFn: async () => {
const resumeItems = await getItemsApi(api).getResumeItems({
userId: user.data.Id,
userId: user.data?.Id,
limit: 10,
mediaTypes: ["Video"],
enableUserData: true,
@@ -105,7 +107,7 @@ function Home() {
queryKey: ["home", "resume", "audio"],
queryFn: async () => {
const resumeItems = await getItemsApi(api).getResumeItems({
userId: user.data.Id,
userId: user.data?.Id,
limit: 10,
mediaTypes: ["Audio"],
enableUserData: true,
@@ -120,14 +122,12 @@ function Home() {
queryKey: ["home", "upNext"],
queryFn: async () => {
const upNext = await getTvShowsApi(api).getNextUp({
userId: user.data.Id,
userId: user.data?.Id,
fields: [
ItemFields.PrimaryImageAspectRatio,
ItemFields.MediaStreams,
ItemFields.MediaSources,
ItemFields.ParentId,
"IndexNumber",
"ParentIndexNumber",
],
limit: 10,
});
@@ -137,38 +137,31 @@ function Home() {
refetchOnMount: true,
});
const [latestMediaLibs, setLatestMediaLibs] = useState([]);
const [latestMediaLibs, setLatestMediaLibs] = useState<
BaseItemDto[] | undefined
>([]);
const navigate = useNavigate();
const excludeTypes = ["boxsets", "playlists", "livetv", "channels"];
let tempData = [];
const [excludeTypes] = useState(
() => new Set(["boxsets", "playlists", "livetv", "channels"]),
);
useEffect(() => {
if (libraries.isSuccess) {
libraries.data.Items.map((lib) => {
if (excludeTypes.includes(lib.CollectionType)) {
return;
}
tempData = latestMediaLibs;
if (
!tempData.some(
(el) => JSON.stringify(el) === JSON.stringify([lib.Id, lib.Name]),
)
) {
tempData.push([lib.Id, lib.Name]);
setLatestMediaLibs(tempData);
}
});
const latestMediaLibsTemp = libraries.data.Items?.reduce(
(filteredItems: BaseItemDto[], currentItem) => {
if (!excludeTypes.has(currentItem.Type)) {
filteredItems.push(currentItem);
}
return filteredItems;
},
[],
);
setLatestMediaLibs(latestMediaLibsTemp);
}
}, [libraries.isSuccess]);
if (user.isPaused) {
user.refetch();
console.log(user.isError);
}
return (
<>
<main
@@ -182,12 +175,10 @@ function Home() {
{latestMedia.isPending ? (
<CarouselSkeleton />
) : (
latestMedia.data.length > 0 && (
latestMedia.data?.length && (
<Carousel
content={latestMedia.data?.map((item) => (
<CarouselSlide item={item} key={item.Id} />
))}
onChange={(now) => {
content={latestMedia.data}
onChange={(now: number) => {
if (latestMedia.isSuccess && latestMedia.data.length > 0) {
if (latestMedia.data[now]?.ParentBackdropImageTags) {
setBackdrop(
@@ -219,7 +210,7 @@ function Home() {
) : (
<CardScroller displayCards={4} title="Libraries">
{libraries.status === "success" &&
libraries.data.Items.map((item) => {
libraries.data.Items?.map((item) => {
return (
<Card
key={item.Id}
@@ -228,12 +219,11 @@ function Home() {
imageType="Primary"
cardType="thumb"
disableOverlay
onClick={() => navigate({ to: `/library/${item.Id}` })}
imageBlurhash={
!!item.ImageBlurHashes?.Primary &&
item.ImageBlurHashes?.Primary[
Object.keys(item.ImageBlurHashes.Primary)[0]
]
onClick={() =>
navigate({
to: "/library/$id",
params: { id: item.Id ?? "" },
})
}
overrideIcon={item.CollectionType}
/>
@@ -251,11 +241,11 @@ function Home() {
>
{upNextItems.isPending ? (
<CardsSkeleton />
) : upNextItems.isSuccess && upNextItems.data.Items.length === 0 ? (
) : upNextItems.isSuccess && !upNextItems.data.TotalRecordCount ? (
<></>
) : (
<CardScroller displayCards={4} title="Up Next">
{upNextItems.data.Items.map((item) => {
{upNextItems.data?.Items?.map((item) => {
return (
<Card
key={item.Id}
@@ -268,7 +258,7 @@ function Home() {
imageType={
item.Type === BaseItemKind.Episode
? "Primary"
: Object.keys(item.ImageTags).includes("Thumb")
: item.ImageTags?.Thumb
? "Thumb"
: "Backdrop"
}
@@ -291,13 +281,7 @@ function Home() {
}
cardType="thumb"
queryKey={["home", "upNext"]}
userId={user.data.Id}
imageBlurhash={
!!item.ImageBlurHashes?.Primary &&
item.ImageBlurHashes?.Primary[
Object.keys(item.ImageBlurHashes.Primary)[0]
]
}
userId={user.data?.Id}
/>
);
})}
@@ -314,11 +298,11 @@ function Home() {
{resumeItemsVideo.isPending ? (
<CardsSkeleton />
) : resumeItemsVideo.isSuccess &&
resumeItemsVideo.data.Items.length === 0 ? (
!resumeItemsVideo.data.TotalRecordCount ? (
<></>
) : (
<CardScroller displayCards={4} title="Continue Watching">
{resumeItemsVideo.data.Items.map((item) => {
{resumeItemsVideo.data?.Items?.map((item) => {
return (
<Card
key={item.Id}
@@ -331,7 +315,7 @@ function Home() {
imageType={
item.Type === BaseItemKind.Episode
? "Primary"
: Object.keys(item.ImageTags).includes("Thumb")
: item.ImageTags?.Thumb
? "Thumb"
: "Backdrop"
}
@@ -350,13 +334,7 @@ function Home() {
}
cardType="thumb"
queryKey={["home", "resume", "video"]}
userId={user.data.Id}
imageBlurhash={
!!item.ImageBlurHashes?.Primary &&
item.ImageBlurHashes?.Primary[
Object.keys(item.ImageBlurHashes.Primary)[0]
]
}
userId={user.data?.Id}
/>
);
})}
@@ -373,32 +351,21 @@ function Home() {
{resumeItemsAudio.isPending ? (
<CardsSkeleton />
) : resumeItemsAudio.isSuccess &&
resumeItemsAudio.data.Items.length === 0 ? (
!resumeItemsAudio.data.TotalRecordCount ? (
<></>
) : (
<CardScroller displayCards={4} title="Continue Listening">
{resumeItemsAudio.data.Items.map((item) => {
{resumeItemsAudio.data?.Items?.map((item) => {
return (
<Card
key={item.Id}
item={item}
cardTitle={item.Name}
imageType={
item.Type === BaseItemKind.Episode
? "Primary"
: Object.keys(item.ImageTags).includes("Thumb")
? "Thumb"
: "Backdrop"
}
imageType="Primary"
cardCaption={item.ProductionYear}
cardType="thumb"
queryKey={["home", "resume", "audio"]}
userId={user.data.Id}
imageBlurhash={
item.ImageBlurHashes?.Primary?.[
Object.keys(item.ImageBlurHashes.Primary)[0]
]
}
userId={user.data?.Id}
/>
);
})}
@@ -412,8 +379,8 @@ function Home() {
</div>
}
>
{latestMediaLibs.map((lib) => {
return <LatestMediaSection key={lib[0]} latestMediaLib={lib} />;
{latestMediaLibs?.map((lib) => {
return <LatestMediaSection key={lib.Id} latestMediaLib={lib} />;
})}
</ErrorBoundary>
</main>
+4 -2
View File
@@ -26,7 +26,7 @@ import { getLibraryApi } from "@jellyfin/sdk/lib/utils/api/library-api";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
import { useQuery } from "@tanstack/react-query";
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
import heroBg from "@/assets/herobg.png";
import { Card } from "@/components/card/card";
@@ -67,6 +67,7 @@ import sdrIcon from "@/assets/icons/sdr.svg";
import type MediaQualityInfo from "@/utils/types/mediaQualityInfo";
import IconLink from "@/components/iconLink";
import { queryClient } from "@/main";
import { Link, createFileRoute } from "@tanstack/react-router";
function TabPanel(props) {
@@ -97,7 +98,6 @@ export const Route = createFileRoute("/_api/item/$id")({
});
function ItemDetail() {
"use memo";
const { id } = Route.useParams();
const api = Route.useRouteContext().api;
@@ -126,6 +126,8 @@ function ItemDetail() {
refetchOnWindowFocus: true,
});
// const item = useSuspenseQuery({ queryKey: ["item", id] });
const similarItems = useQuery({
queryKey: ["item", id, "similarItem"],
queryFn: async () => {
+3 -2
View File
@@ -12,10 +12,10 @@ import { useSnackbar } from "notistack";
import { AppBarBackOnly } from "@/components/appBar/backOnly.jsx";
import { AvatarImage } from "@/components/avatar/avatar.jsx";
import { createApi } from "@/utils/store/api.js";
import "./login.scss";
import { saveUser } from "@/utils/storage/user";
import { useApiInContext } from "@/utils/store/api";
import { setBackdrop } from "@/utils/store/backdrop.js";
import { createFileRoute, useNavigate } from "@tanstack/react-router";
import React, { useLayoutEffect, useState } from "react";
@@ -27,7 +27,8 @@ export const Route = createFileRoute("/_api/login/$userId/$userName")({
function LoginUser() {
const { userName, userId } = Route.useParams();
const api = Route.useRouteContext().api;
const api = useApiInContext((s) => s.api);
const createApi = useApiInContext((s) => s.createApi);
const [password, setPassword] = useState({
showpass: false,
+3 -2
View File
@@ -31,9 +31,9 @@ import { getQuickConnectApi } from "@jellyfin/sdk/lib/utils/api/quick-connect-ap
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice.jsx";
import { createApi } from "@/utils/store/api.js";
import "./login.scss";
import { useApiInContext } from "@/utils/store/api";
import { setBackdrop } from "@/utils/store/backdrop.js";
import { blue } from "@mui/material/colors";
import { createFileRoute, useNavigate } from "@tanstack/react-router";
@@ -52,7 +52,8 @@ function LoginPublicUsersList() {
const { enqueueSnackbar } = useSnackbar();
const api = Route.useRouteContext().api;
const api = useApiInContext((s) => s.api);
const createApi = useApiInContext((s) => s.createApi);
const [loading, setLoading] = useState(false);
const [rememberMe, setRememberMe] = useState(true);
+39 -30
View File
@@ -55,7 +55,7 @@ import TrailerButton from "@/components/buttons/trailerButton";
import ShowMoreText from "@/components/showMoreText";
import { SeasonSelectorSkeleton } from "@/components/skeleton/seasonSelector";
import { getTypeIcon } from "@/components/utils/iconsCollection";
import { useBackdropStore } from "@/utils/store/backdrop";
import { setBackdrop, useBackdropStore } from "@/utils/store/backdrop";
import IconLink from "@/components/iconLink";
import EpisodeSkeleton from "@/components/skeleton/episode";
@@ -173,9 +173,10 @@ function SeriesTitlePage() {
refetchOnWindowFocus: true,
});
const [backdropImage, setBackdropImage] = useState(() => {
const result = sessionStorage.getItem(`backdrop-${item.data?.Id}`);
return result ?? "0";
const [backdropImage, setBackdropImage] = useState<SeriesBackdropImage>(() => {
const url = sessionStorage.getItem(`backdrop-${item.data?.Id}`);
const key = sessionStorage.getItem(`backdrop-${item.data?.Id}-key`);
return { url, key };
});
const [backdropImageLoaded, setBackdropImageLoaded] = useState(false);
@@ -226,7 +227,6 @@ function SeriesTitlePage() {
},
enabled: item.isSuccess,
});
const [setAppBackdrop] = useBackdropStore((state) => [state.setBackdrop]);
const [directors, setDirectors] = useState([]);
const [writers, setWriters] = useState([]);
@@ -235,17 +235,18 @@ function SeriesTitlePage() {
useLayoutEffect(() => {
if (item.isSuccess) {
setBackdropImage(
api.getItemImageUrl(item.data?.Id, "Backdrop", {
tag: item.data?.BackdropImageTags[0],
}),
);
setAppBackdrop(
api.getItemImageUrl(item.data?.Id, "Backdrop", {
tag: item.data?.BackdropImageTags[0],
}),
item.data.Id,
);
// setBackdropImage({
// url: api.getItemImageUrl(item.data?.Id, "Backdrop", {
// tag: item.data?.BackdropImageTags[0],
// }),
// key: item.data?.BackdropImageTags[0],
// });
// setBackdrop(
// api.getItemImageUrl(item.data?.Id, "Backdrop", {
// tag: item.data?.BackdropImageTags[0],
// }),
// item.data.Id,
// );
const direTp = item.data.People.filter((itm) => itm.Type === "Director");
setDirectors(direTp);
const writeTp = item.data.People.filter((itm) => itm.Type === "Writer");
@@ -286,13 +287,17 @@ function SeriesTitlePage() {
tag: currentSeasonItem.data.BackdropImageTags[0],
}),
);
setBackdropImage(
api.getItemImageUrl(currentSeasonItem.data.Id, "Backdrop", {
tag: currentSeasonItem.data.BackdropImageTags[0],
}),
currentSeasonItem.data.Id,
sessionStorage.setItem(
`backdrop-${item.data?.Id}-key`,
currentSeasonItem.data.BackdropImageTags[0],
);
setAppBackdrop(
setBackdropImage({
url: api.getItemImageUrl(item.data?.Id, "Backdrop", {
tag: item.data?.BackdropImageTags[0],
}),
key: item.data?.BackdropImageTags[0],
});
setBackdrop(
api.getItemImageUrl(currentSeasonItem.data.Id, "Backdrop", {
tag: currentSeasonItem.data.BackdropImageTags[0],
}),
@@ -306,13 +311,17 @@ function SeriesTitlePage() {
tag: item.data.BackdropImageTags[0],
}),
);
setBackdropImage(
api.getItemImageUrl(item.data.Id, "Backdrop", {
tag: item.data.BackdropImageTags[0],
}),
item.data.Id,
sessionStorage.setItem(
`backdrop-${item.data?.Id}-key`,
currentSeasonItem.data.BackdropImageTags[0],
);
setAppBackdrop(
setBackdropImage({
url: api.getItemImageUrl(item.data?.Id, "Backdrop", {
tag: item.data?.BackdropImageTags[0],
}),
key: item.data?.BackdropImageTags[0],
});
setBackdrop(
api.getItemImageUrl(item.data.Id, "Backdrop", {
tag: item.data.BackdropImageTags[0],
}),
@@ -369,9 +378,9 @@ function SeriesTitlePage() {
<AnimatePresence mode="wait">
{item.data.BackdropImageTags ? (
<motion.img
key={currentSeasonItem.dataUpdatedAt}
key={backdropImage.key}
alt={item.data.Name}
src={backdropImage}
src={backdropImage.url}
className="item-hero-backdrop"
initial={{
opacity: 0,
+3 -1
View File
@@ -14,12 +14,12 @@ import {
setDefaultServer,
} from "@/utils/storage/servers";
import { delUser } from "@/utils/storage/user";
import { createApi } from "@/utils/store/api";
import { setBackdrop } from "@/utils/store/backdrop";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { createFileRoute, useNavigate } from "@tanstack/react-router";
import { useSnackbar } from "notistack";
import "./serverList.scss";
import { useApiInContext } from "@/utils/store/api";
export const Route = createFileRoute("/setup/server/list")({
component: ServerList,
@@ -30,6 +30,8 @@ function ServerList() {
const [serverState, setServerState] = useState(null);
const { enqueueSnackbar } = useSnackbar();
const createApi = useApiInContext((s) => s.createApi);
const queryClient = useQueryClient();
const servers = useQuery({
+8 -28
View File
@@ -1,5 +1,6 @@
import { type Api, Jellyfin } from "@jellyfin/sdk";
import React, { createContext, useContext, useRef, useState } from "react";
import React, { type ReactNode } from "react";
import { createContext, useContext, useState } from "react";
import { type StoreApi, createStore, useStore } from "zustand";
import { version as appVer } from "../../../package.json";
@@ -11,10 +12,7 @@ type ApiStore = {
api: Api;
deviceId: string | null;
jellyfin: Jellyfin;
createApi: (
serverAddress: string | undefined,
accessToken?: string | undefined,
) => void;
createApi: (serverAddress: string, accessToken?: string | undefined) => void;
};
export const axiosClient = axios.create({
@@ -42,22 +40,12 @@ export const jellyfin = new Jellyfin({
},
});
// export const useApi = create<{
// api: Api;
// deviceId: string | null;
// jellyfin: Jellyfin;
// }>(() => ({
// api: undefined,
// deviceId: deviceId,
// jellyfin: jellyfin,
// }));
export const ApiContext = createContext<StoreApi<ApiStore>>(undefined!);
export const ApiContext = createContext(null);
export const ApiProvider = ({ children }) => {
export const ApiProvider = ({ children }: { children: ReactNode }) => {
const [store] = useState(() =>
createStore<ApiStore>()((set) => ({
api: undefined,
api: undefined!,
deviceId: deviceId,
jellyfin: jellyfin,
createApi: (serverAddress, accessToken?) =>
@@ -74,7 +62,7 @@ export const ApiProvider = ({ children }) => {
};
}),
})),
)
);
return <ApiContext.Provider value={store}>{children}</ApiContext.Provider>;
};
@@ -84,12 +72,4 @@ export function useApiInContext<T>(selector?: (state: ApiStore) => T) {
throw new Error("Missing StoreProvider");
}
return useStore(store, selector!);
}
export const createApi = (
serverAddress: string | undefined,
accessToken: string | undefined,
) => {
const createApiFn = useApiInContext((s) => s.createApi);
createApiFn(serverAddress, accessToken);
};
}
+4
View File
@@ -0,0 +1,4 @@
type SeriesBackdropImage = {
url?: string | null;
key?: string | null;
};