Merge branch 'main' of https://github.com/pypp/JellyPlayer into feat/double-click-fullscreen
# Conflicts: # pnpm-lock.yaml # src/routes/_api/player/index.tsx
No files matched your search
@@ -0,0 +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
|
||||
@@ -23,5 +23,8 @@
|
||||
"editor.defaultFormatter": "biomejs.biome"
|
||||
},
|
||||
"rust-analyzer.linkedProjects": ["./src-tauri/Cargo.toml"],
|
||||
"typescript.tsdk": "node_modules/typescript/lib"
|
||||
"typescript.tsdk": "node_modules/typescript/lib",
|
||||
"[scss]": {
|
||||
"editor.defaultFormatter": "vscode.css-language-features"
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,24 @@
|
||||

|
||||

|
||||
<div align="center">
|
||||
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/prayag17/JellyPlayer?sort=date&display_name=tag&style=for-the-badge&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iODc4IiBoZWlnaHQ9IjEwMTIiIHZpZXdCb3g9IjAgMCA4NzggMTAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MzguODA5IDUwNkwzNS40MDQ4IDczOC45MDZMNDM4LjgwOSA5NzEuODEyTDg0Mi4yMTQgNzM4LjkwNlYyNzMuMDk0TDQzOC44MDkgNDAuMTg4NUwzNS40MDQ4IDI3My4wOTRMNDM4LjgwOSA1MDZaTTQzOC44MDkgMEw4NzcuMDE4IDI1M1Y3NTlMNDM4LjgwOSAxMDEyTDAuNjAwNTg2IDc1OVY3MTguODEyVjI5My4xODhWMjUzTDQzOC44MDkgMFoiIGZpbGw9IndoaXRlIi8%2BCjwvc3ZnPgo%3D&labelColor=000&link=https%3A%2F%2Fgithub.com%2Fprayag17%2FJellyPlayer%2Freleases%2Flatest">
|
||||
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/prayag17/JellyPlayer?style=for-the-badge&logo=github&labelColor=000&link=https%3A%2F%2Fgithub.com%2Fprayag17%2FJellyPlayer%2Fstargazers">
|
||||
<img alt="GitHub License" src="https://img.shields.io/github/license/prayag17/JellyPlayer?style=for-the-badge&labelColor=000">
|
||||
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/prayag17/JellyPlayer/continuous-integration.yml?style=for-the-badge&logo=github&label=CI&labelColor=000&link=https%3A%2F%2Fgithub.com%2Fprayag17%2FJellyPlayer%2Factions%2Fworkflows%2Fcontinuous-integration.yml">
|
||||
</div>
|
||||
|
||||
# 📝 Prerequisites
|
||||
###
|
||||
|
||||
> [!IMPORTANT]
|
||||
> **JellyPlayer** has been renamed to **Blink** to avoid confusion with first party Jellyfin apps
|
||||
|
||||
## 📝 Prerequisites
|
||||
|
||||
- Nodejs (≥19.1.0)
|
||||
- Rust (≥1.76.0)
|
||||
- Visual Studio C++ Build tools
|
||||
- [pnpm](https://pnpm.io/)
|
||||
|
||||
# ℹ️ Getting started
|
||||
## ℹ️ Getting started
|
||||
|
||||
- Install Nodejs, pnpm and Rust.
|
||||
> **Note** : Install Rust from <https://www.rust-lang.org/learn/get-started>
|
||||
@@ -17,7 +28,7 @@
|
||||
pnpm install
|
||||
```
|
||||
|
||||
# 🛠️ Development
|
||||
## 🛠️ Development
|
||||
|
||||
- Running the app:
|
||||
|
||||
@@ -33,20 +44,23 @@
|
||||
|
||||
- other commands can be found inside the `"scripts"` inside [package.json](https://github.com/prayag17/JellyPlayer/blob/main/package.json)
|
||||
|
||||
# 💻 Contribution
|
||||
## 💻 Contribution
|
||||
|
||||
- Checkout `issues` to see currently worked on features and bugs
|
||||
- Add features or fix bugs
|
||||
- Create a pull request
|
||||
|
||||
# ✨ Features
|
||||
## ✨ Features
|
||||
|
||||
- Play any media supported by the system (DirectPlay most files on windows, mac and linux)
|
||||
- Clean and minimal UI.
|
||||
- Multiple Jellyfin server support
|
||||
and more...
|
||||
- Multi Jellyfin server support
|
||||
- Cross Platform
|
||||
- Mediainfo recognition (DolbyVision, DolbyAtoms, Dts, Hdr10+, and more...)
|
||||
- Sort/Filter library items
|
||||
- Queue playback support
|
||||
|
||||
# 📷 Screenshots
|
||||
## 📷 Screenshots
|
||||
|
||||
- Home
|
||||

|
||||
@@ -61,12 +75,12 @@
|
||||
- About Dialog
|
||||

|
||||
|
||||
# 📃 Roadmap
|
||||
## 📃 Roadmap
|
||||
|
||||
- Checkout [GitHub Project](https://github.com/users/prayag17/projects/3)
|
||||
|
||||
|
||||
# 🎊 Special thanks to
|
||||
## 🎊 Special thanks to
|
||||
|
||||
- [@ferferga](https://github.com/ferferga) for helping in development behind the scenes.
|
||||
- All contributors of [jellyfin/jellyfin-vue](https://github.com/jellyfin/jellyfin-vue).
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<script src="http://localhost:8097"></script>
|
||||
<title>Jellyplayer</title>
|
||||
<style>
|
||||
.app-loading {
|
||||
@@ -12,7 +13,7 @@
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: hsl(256, 100%, 4%);
|
||||
background: #222;
|
||||
z-index: 100000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -22,19 +23,70 @@
|
||||
}
|
||||
|
||||
.app-loading.hidden {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.app-loading-logo {
|
||||
width: 65vw;
|
||||
width: 40vw;
|
||||
opacity: 0;
|
||||
animation: fadeIn linear 500ms forwards;
|
||||
}
|
||||
|
||||
.circular {
|
||||
animation: rotate 1.2s linear infinite;
|
||||
height: 50px;
|
||||
left: 50%;
|
||||
position: absolute;
|
||||
bottom: 20%;
|
||||
width: 50px;
|
||||
}
|
||||
.path {
|
||||
stroke-dasharray: 1,200;
|
||||
stroke-dashoffset: 0;
|
||||
animation:
|
||||
dash 800ms ease-in-out infinite,
|
||||
color 6s ease-in-out infinite
|
||||
;
|
||||
stroke-linecap: round;
|
||||
stroke: #fff;
|
||||
}
|
||||
|
||||
@keyframes rotate {
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
@keyframes dash {
|
||||
0% {
|
||||
stroke-dasharray: 1,200;
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
50% {
|
||||
stroke-dasharray: 89,200;
|
||||
stroke-dashoffset: -35;
|
||||
}
|
||||
100% {
|
||||
stroke-dasharray: 89,200;
|
||||
stroke-dashoffset: -124;
|
||||
}
|
||||
}
|
||||
@keyframes fadeIn {
|
||||
0%{
|
||||
opacity: 0;
|
||||
}
|
||||
100%{
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="app-loading">
|
||||
<img src="./assetsStatic/LogoBig.svg" class="app-loading-logo" />
|
||||
<img src="/assetsStatic/logoDark.png" class="app-loading-logo" />
|
||||
<svg class="circular" height="50" width="50">
|
||||
<circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="4" stroke-miterlimit="10" />
|
||||
</svg>
|
||||
</div>
|
||||
<div id="root"></div>
|
||||
<svg style="width: 0; height: 0; position: absolute" aria-hidden="true" focusable="false">
|
||||
|
||||
@@ -1,65 +1,72 @@
|
||||
{
|
||||
"name": "jellyplayer",
|
||||
"name": "blink",
|
||||
"private": true,
|
||||
"version": "0.0.5-dev",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"dev": "vite && tsr watch",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"tauri": "tauri",
|
||||
"lint": "biome check src/**/*",
|
||||
"lint:fix": "biome check --apply src/**/*"
|
||||
"lint:fix": "biome check --apply src/**/*",
|
||||
"tanstack-router-dev": "tsr watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.11.4",
|
||||
"@emotion/styled": "^11.11.5",
|
||||
"@fontsource-variable/jetbrains-mono": "^5.0.21",
|
||||
"@fontsource-variable/noto-sans": "^5.0.5",
|
||||
"@fontsource/noto-sans": "^5.0.22",
|
||||
"@jellyfin/sdk": "0.8.2",
|
||||
"@jellyfin/sdk": "0.9.0",
|
||||
"@million/lint": "1.0.0-rc.13",
|
||||
"@mui/lab": "5.0.0-alpha.170",
|
||||
"@mui/material": "^5.15.15",
|
||||
"@mui/material": "6.0.0-alpha.6",
|
||||
"@tanem/react-nprogress": "^5.0.51",
|
||||
"@tanstack/react-query": "^5.32.0",
|
||||
"@tanstack/react-query-devtools": "^5.32.0",
|
||||
"@tanstack/react-virtual": "^3.4.0",
|
||||
"@tauri-apps/api": "^1.5.4",
|
||||
"@types/node": "^20.12.7",
|
||||
"@types/react": "^18.3.0",
|
||||
"@tanstack/react-query": "^5.40.0",
|
||||
"@tanstack/react-query-devtools": "^5.40.0",
|
||||
"@tanstack/react-router": "^1.34.5",
|
||||
"@tanstack/react-virtual": "^3.5.0",
|
||||
"@tauri-apps/api": "^1.5.6",
|
||||
"@types/node": "^20.12.12",
|
||||
"@types/react": "^18.3.3",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"axios": "^1.6.8",
|
||||
"axios": "^1.7.2",
|
||||
"axios-tauri-api-adapter": "^0.2.1",
|
||||
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
|
||||
"blurhash": "^2.0.5",
|
||||
"events": "^3.3.0",
|
||||
"framer-motion": "^11.1.7",
|
||||
"framer-motion": "^11.2.7",
|
||||
"jassub": "^1.7.15",
|
||||
"material-symbols": "^0.17.3",
|
||||
"million": "^3.0.6",
|
||||
"material-symbols": "^0.18.0",
|
||||
"million": "^3.1.6",
|
||||
"notistack": "^3.0.1",
|
||||
"react": "^18.3.1",
|
||||
"react": "18.3.1",
|
||||
"react-blurhash": "^0.3.0",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-dom": "18.3.1",
|
||||
"react-error-boundary": "^4.0.13",
|
||||
"react-markdown": "^9.0.1",
|
||||
"react-multi-carousel": "^2.8.5",
|
||||
"react-player": "^2.16.0",
|
||||
"react-router-dom": "^6.23.0",
|
||||
"react-use-konami": "^1.1.0",
|
||||
"remark-gfm": "^4.0.0",
|
||||
"tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log#v1",
|
||||
"tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store",
|
||||
"typescript": "^5.4.5",
|
||||
"vite-plugin-svgr": "^4.2.0",
|
||||
"wavesurfer.js": "^7.7.11",
|
||||
"wavesurfer.js": "^7.7.15",
|
||||
"zustand": "^4.5.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^1.7.1",
|
||||
"@tauri-apps/cli": "^1.5.12",
|
||||
"@vitejs/plugin-react": "^4.2.1",
|
||||
"@biomejs/biome": "^1.7.3",
|
||||
"@tanstack/router-cli": "^1.33.12",
|
||||
"@tanstack/router-devtools": "^1.34.5",
|
||||
"@tanstack/router-vite-plugin": "^1.34.1",
|
||||
"@tauri-apps/cli": "^1.5.14",
|
||||
"@vitejs/plugin-react": "^4.3.0",
|
||||
"prop-types": "^15.8.1",
|
||||
"sass": "^1.75.0",
|
||||
"vite": "^5.2.10",
|
||||
"sass": "^1.77.2",
|
||||
"vite": "^5.2.12",
|
||||
"vite-plugin-compression": "^0.5.1"
|
||||
},
|
||||
"license": "GPL-3.0-only"
|
||||
|
||||
|
After Width: | Height: | Size: 27 KiB |
@@ -0,0 +1,13 @@
|
||||
<svg width="1395" height="522" viewBox="0 0 1395 522" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<rect width="1395" height="522" fill="white"/>
|
||||
<rect width="322" height="322" transform="translate(100 100)" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M260.939 261L121.509 180.5V341.5L260.939 261Z" fill="url(#pattern0_1155_288)"/>
|
||||
<path d="M400.369 180.5L260.939 100L121.509 180.5L260.939 261L121.509 341.5L260.939 422L400.369 341.5V180.5Z" fill="#222222"/>
|
||||
<path d="M473.213 361V165.798H564.679C588.103 165.798 605.95 170.446 618.22 179.741C630.49 188.85 636.625 201.12 636.625 216.551C636.625 226.961 634.208 235.885 629.374 243.321C624.541 250.571 618.034 256.242 609.854 260.332C601.86 264.236 593.123 266.188 583.641 266.188L588.661 256.149C599.629 256.149 609.482 258.194 618.22 262.284C626.958 266.188 633.836 271.951 638.856 279.573C644.061 287.195 646.664 296.676 646.664 308.017C646.664 324.748 640.25 337.762 627.422 347.057C614.595 356.352 595.539 361 570.256 361H473.213ZM509.465 332.556H568.025C581.596 332.556 592.007 330.325 599.258 325.864C606.508 321.402 610.133 314.244 610.133 304.391C610.133 294.724 606.508 287.66 599.258 283.198C592.007 278.55 581.596 276.227 568.025 276.227H506.676V248.062H560.775C573.417 248.062 583.084 245.831 589.776 241.369C596.655 236.907 600.094 230.215 600.094 221.291C600.094 212.182 596.655 205.396 589.776 200.934C583.084 196.473 573.417 194.242 560.775 194.242H509.465V332.556ZM682.007 361V154.086H716.865V361H682.007ZM762.615 361V212.089H797.473V361H762.615ZM780.183 187.549C773.676 187.549 768.285 185.504 764.009 181.414C759.919 177.324 757.874 172.398 757.874 166.635C757.874 160.686 759.919 155.759 764.009 151.855C768.285 147.765 773.676 145.72 780.183 145.72C786.69 145.72 791.988 147.672 796.078 151.576C800.354 155.294 802.492 160.035 802.492 165.798C802.492 171.933 800.447 177.138 796.357 181.414C792.267 185.504 786.876 187.549 780.183 187.549ZM927.718 210.416C939.616 210.416 950.212 212.739 959.508 217.387C968.989 222.035 976.425 229.192 981.816 238.859C987.208 248.341 989.903 260.61 989.903 275.669V361H955.046V280.131C955.046 266.931 951.885 257.078 945.565 250.571C939.43 244.065 930.785 240.811 919.631 240.811C911.451 240.811 904.2 242.485 897.88 245.831C891.559 249.177 886.632 254.197 883.1 260.889C879.754 267.396 878.08 275.669 878.08 285.708V361H843.223V212.089H876.407V252.245L870.551 239.975C875.757 230.494 883.286 223.243 893.139 218.224C903.178 213.018 914.704 210.416 927.718 210.416ZM1062.57 327.816L1063.4 284.035L1141.2 212.089H1183.03L1116.94 278.457L1098.54 293.795L1062.57 327.816ZM1034.12 361V154.086H1068.98V361H1034.12ZM1146.5 361L1092.13 293.795L1114.16 265.909L1188.89 361H1146.5ZM1225.28 362.952C1218.96 362.952 1213.57 360.814 1209.11 356.538C1204.65 352.076 1202.42 346.499 1202.42 339.807C1202.42 332.742 1204.65 327.165 1209.11 323.075C1213.57 318.799 1218.96 316.661 1225.28 316.661C1231.6 316.661 1237 318.799 1241.46 323.075C1245.92 327.165 1248.15 332.742 1248.15 339.807C1248.15 346.499 1245.92 352.076 1241.46 356.538C1237 360.814 1231.6 362.952 1225.28 362.952Z" fill="#222222"/>
|
||||
<defs>
|
||||
<pattern id="pattern0_1155_288" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image0_1155_288" transform="matrix(0 -0.000244141 0.000281909 0 -0.0773502 1)"/>
|
||||
</pattern>
|
||||
<image id="image0_1155_288" width="4096" height="4096" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAABAACAYAAADyoyQXAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUALN16SURBVHgB7H1ZluM4zyzwnd7XXdPd/wP/qpRlThgCHGQ5SzjdWTIBBAIgSNuyJfP/o/+f6I8wZWHrX7ZtJHsE++d4AHuUi8XJso/nycu4mHplzIujYrGjp7lY0ry7+GT3ix2LQz6df8BP1A3ErY4X+If4BvwhLI5zt/3Z95HwWyUaX3rMQXsvFo9jeXjTWM3gEjwHc9nYVAy+IEZgjCd8jTFxnH2fy3R34lIMro5n+Qzbcgz35bLNfisXvhGXTXIHDqfcicsqSbRGkvEo7q/p8CiiT0J9VATDPo8m0rmkZjAZnslAlmM0+mToBG6trtV3uqT7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DB2jqK+hkZzWVHXe8q3B3Uct+51l5yrED6nMy+OJ7N5fpa7Iv4yXn1Yl/J7VN1WB13Nd7qmszgMTj2yCOefMvrs0ceuaucJxjuICKXu5BbJGlQ9/tkdefdqZNlGWM4m5fmj4/rDCQNwnflXFLine truncated
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.7 MiB |
|
After Width: | Height: | Size: 27 KiB |
@@ -0,0 +1,13 @@
|
||||
<svg width="1395" height="522" viewBox="0 0 1395 522" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<rect width="1395" height="522" fill="#222222"/>
|
||||
<rect width="322" height="322" transform="translate(100 100)" fill="#222222"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M260.939 261L121.509 180.5V341.5L260.939 261Z" fill="url(#pattern0_1178_275)"/>
|
||||
<path d="M400.369 180.5L260.939 100L121.509 180.5L260.939 261L121.509 341.5L260.939 422L400.369 341.5V180.5Z" fill="white"/>
|
||||
<path d="M473.213 361V165.798H564.679C588.103 165.798 605.95 170.446 618.22 179.741C630.49 188.85 636.625 201.12 636.625 216.551C636.625 226.961 634.208 235.885 629.374 243.321C624.541 250.571 618.034 256.242 609.854 260.332C601.86 264.236 593.123 266.188 583.641 266.188L588.661 256.149C599.629 256.149 609.482 258.194 618.22 262.284C626.958 266.188 633.836 271.951 638.856 279.573C644.061 287.195 646.664 296.676 646.664 308.017C646.664 324.748 640.25 337.762 627.422 347.057C614.595 356.352 595.539 361 570.256 361H473.213ZM509.465 332.556H568.025C581.596 332.556 592.007 330.325 599.258 325.864C606.508 321.402 610.133 314.244 610.133 304.391C610.133 294.724 606.508 287.66 599.258 283.198C592.007 278.55 581.596 276.227 568.025 276.227H506.676V248.062H560.775C573.417 248.062 583.084 245.831 589.776 241.369C596.655 236.907 600.094 230.215 600.094 221.291C600.094 212.182 596.655 205.396 589.776 200.934C583.084 196.473 573.417 194.242 560.775 194.242H509.465V332.556ZM682.007 361V154.086H716.865V361H682.007ZM762.615 361V212.089H797.473V361H762.615ZM780.183 187.549C773.676 187.549 768.285 185.504 764.009 181.414C759.919 177.324 757.874 172.398 757.874 166.635C757.874 160.686 759.919 155.759 764.009 151.855C768.285 147.765 773.676 145.72 780.183 145.72C786.69 145.72 791.988 147.672 796.078 151.576C800.354 155.294 802.492 160.035 802.492 165.798C802.492 171.933 800.447 177.138 796.357 181.414C792.267 185.504 786.876 187.549 780.183 187.549ZM927.718 210.416C939.616 210.416 950.212 212.739 959.508 217.387C968.989 222.035 976.425 229.192 981.816 238.859C987.208 248.341 989.903 260.61 989.903 275.669V361H955.046V280.131C955.046 266.931 951.885 257.078 945.565 250.571C939.43 244.065 930.785 240.811 919.631 240.811C911.451 240.811 904.2 242.485 897.88 245.831C891.559 249.177 886.632 254.197 883.1 260.889C879.754 267.396 878.08 275.669 878.08 285.708V361H843.223V212.089H876.407V252.245L870.551 239.975C875.757 230.494 883.286 223.243 893.139 218.224C903.178 213.018 914.704 210.416 927.718 210.416ZM1062.57 327.816L1063.4 284.035L1141.2 212.089H1183.03L1116.94 278.457L1098.54 293.795L1062.57 327.816ZM1034.12 361V154.086H1068.98V361H1034.12ZM1146.5 361L1092.13 293.795L1114.16 265.909L1188.89 361H1146.5ZM1225.28 362.952C1218.96 362.952 1213.57 360.814 1209.11 356.538C1204.65 352.076 1202.42 346.499 1202.42 339.807C1202.42 332.742 1204.65 327.165 1209.11 323.075C1213.57 318.799 1218.96 316.661 1225.28 316.661C1231.6 316.661 1237 318.799 1241.46 323.075C1245.92 327.165 1248.15 332.742 1248.15 339.807C1248.15 346.499 1245.92 352.076 1241.46 356.538C1237 360.814 1231.6 362.952 1225.28 362.952Z" fill="white"/>
|
||||
<defs>
|
||||
<pattern id="pattern0_1178_275" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image0_1178_275" transform="matrix(0 -0.000244141 0.000281909 0 -0.0773502 1)"/>
|
||||
</pattern>
|
||||
<image id="image0_1178_275" width="4096" height="4096" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAABAACAYAAADyoyQXAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUALN16SURBVHgB7H1ZluM4zyzwnd7XXdPd/wP/qpRlThgCHGQ5SzjdWTIBBAIgSNuyJfP/o/+f6I8wZWHrX7ZtJHsE++d4AHuUi8XJso/nycu4mHplzIujYrGjp7lY0ry7+GT3ix2LQz6df8BP1A3ErY4X+If4BvwhLI5zt/3Z95HwWyUaX3rMQXsvFo9jeXjTWM3gEjwHc9nYVAy+IEZgjCd8jTFxnH2fy3R34lIMro5n+Qzbcgz35bLNfisXvhGXTXIHDqfcicsqSbRGkvEo7q/p8CiiT0J9VATDPo8m0rmkZjAZnslAlmM0+mToBG6trtV3uqT7tpnoOievpNfEyqvVS34pCWOdXT3ejSV5Dv2x4m/S+epjJTIVOHIOUo3FsSTZtX+d2qYk17sbM3il3saqqVXPRNbjZkytYe/X8UoSL3A+k8NLfJxrZcdUakxerYyYrwG0Nh2HpPWFXC+tVqGYpPeWjfMaTW1MfX66sXA/I73V/jW4JWGM/LGOU9dr7V9gzKgjPObOYfu3tk2FIrpnd2NqbXt7LY6qS5quHpFjJF+XJJ3si+dVz1OPY+XcIpEaVY5h5dxrWjt9POE+acBHGI35IGLjjqHdVebfrTEwMi9xTF5gMRqRHb2mYxBf0o3m67HWdLF55wnfbMOGztb4Zz3tGWDVY8xOy4aH7MAz0pAdNjcMdoRdT+2IXO04J80S74cYJ8zujv2gRZvpB3l8V+3HudMQJ9tO045z0i3Hah/fH+b6BtkftMitHdLLGrLPKlJP3acetXytmLo+Fsn3Z0c/4726PthaHxVeYDHvEcVcE2EeRZqbtOWd0RxmCozOSQwTs17J03tP7sXy3kMnxxvD10fj/tgZDzSS7+9VIOapsbdtkTMvXqUidn9H2LFFOPValBMpvNCa2py0IxtlrvYr+yE/ug93LXJr+7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P+6rx9hrO20fZsn78diwQvv/dwLGtE6z2JSYSTbItdcK/1OAsRNE4E80dvAkBEk5ySyY5cFLlW9s7hrSOvm7w+ZkJ3QJ2J5x+7zUit9T7B9XYUZLWhK7K0LQXxwzAzk3WYWcYx611iDWZGljAjc3InYVot6xG/V76zFs8MYlLXKdEnK/eZyH3OMR7Rmo3EG5kX3YeXTbQPEw0SJyX98nw0hlmrEBfplQWJAbQ+wKcmetMGxdIBqV8Z2Deel6CkPNtXG5LPj+VLedpIfhpWpW9wcK62j8QB9aGGm2Rbjf05aK9V93K3eLY3KOikDEzyzRmybxFBuKCeCO1W/QL+0qZkU8enRpM5JdYxWgbt2s038Mi6RP1Yh/gqMnrzhArzdeMQ8cJ/yvVMRT5JG381Wn2Tt/KswbmH/nnEGT81K/+N/K5nHm+PW/4t5vv4p0RyLIl/Od8l/7LeebyscqL/7BZsHTDB2jqK+hkZzWVHXe8q3B3Uct+51l5yrED6nMy+OJ7N5fpa7Iv4yXn1Yl/J7VN1WB13Nd7qmszgMTj2yCOefMvrs0ceuaucJxjuICKXu5BbJGlQ9/tkdefdqZNlGWM4m5fmj4/rDCQNwnflXFLine truncated
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.7 MiB |
|
Before Width: | Height: | Size: 967 KiB After Width: | Height: | Size: 2.8 MiB |
|
Before Width: | Height: | Size: 889 KiB |
@@ -1,20 +0,0 @@
|
||||
<svg width="1512" height="1512" viewBox="0 0 1512 1512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="1512" height="1512" rx="756" fill="url(#paint0_radial_33_14)"/>
|
||||
<path d="M591.675 378.82C546.952 352.839 485.631 382.519 485.631 438.696V756.315L865.3 537.63L591.675 378.82Z" fill="url(#paint1_linear_33_14)"/>
|
||||
<path d="M1164.33 721.71C1158.23 711.195 1149.47 702.478 1138.93 696.439L865.3 537.63L485.631 756.315V1073.93C485.631 1130.11 546.952 1159.79 591.675 1133.81L1138.93 816.192C1149.47 810.153 1158.23 801.435 1164.33 790.921C1170.42 780.407 1173.63 768.469 1173.63 756.315C1173.63 744.162 1170.42 732.224 1164.33 721.71Z" fill="url(#paint2_linear_33_14)"/>
|
||||
<path d="M485.631 756.315V1073.93C485.631 1130.11 546.952 1159.79 591.675 1133.81L1138.93 816.192C1149.47 810.153 1158.23 801.435 1164.33 790.921C1170.42 780.407 1173.63 768.469 1173.63 756.315C1173.63 744.162 1170.42 732.224 1164.33 721.71C1158.23 711.195 1149.47 702.478 1138.93 696.439L865.3 537.63M485.631 756.315V438.696C485.631 382.519 546.952 352.839 591.675 378.82L865.3 537.63M485.631 756.315L865.3 537.63" stroke="white" stroke-width="84" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<defs>
|
||||
<radialGradient id="paint0_radial_33_14" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1512 1512) rotate(-135) scale(2138.29)">
|
||||
<stop/>
|
||||
<stop offset="1" stop-color="#474747"/>
|
||||
</radialGradient>
|
||||
<linearGradient id="paint1_linear_33_14" x1="485.631" y1="369.315" x2="1173.63" y2="1143.82" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FB2576"/>
|
||||
<stop offset="0.697961" stop-color="#150050"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint2_linear_33_14" x1="485.631" y1="369.315" x2="1173.63" y2="1143.82" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FB2576"/>
|
||||
<stop offset="0.697961" stop-color="#150050"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 4.4 KiB |
@@ -1,99 +0,0 @@
|
||||
<!-- @format -->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Document</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main>
|
||||
<img src="./assetsStatic/LogoBigBlack.png" alt="" srcset="">
|
||||
</main>
|
||||
<div class="loading">
|
||||
<div class="indicator"></div>
|
||||
</div>
|
||||
<div class="background"></div>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
overflow: hidden;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.background {
|
||||
position: fixed;
|
||||
z-index: 0;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-image: url("./assetsStatic/splashBg.png");
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
border-radius: 7px;
|
||||
}
|
||||
|
||||
main {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 75%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.loading {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
background: hsla(255, 100%, 4%, 0.5);
|
||||
z-index: 1;
|
||||
height: 8px;
|
||||
overflow: hidden;
|
||||
backdrop-filter: blur(5px);
|
||||
border-radius: 0 0 7px 7px;
|
||||
}
|
||||
|
||||
.indicator {
|
||||
background: hsl(337, 96%, 56%);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform-origin: left;
|
||||
animation: loading 0.8s infinite ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes loading {
|
||||
0% {
|
||||
transform: scaleX(0) translateX(-100%);
|
||||
transform-origin: left;
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scaleX(1) translateX(100%);
|
||||
transform-origin: left;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,11 +1,11 @@
|
||||
[package]
|
||||
name = "jellyplayer"
|
||||
name = "blink"
|
||||
version = "0.0.5-dev"
|
||||
description = "A Modern Jellyfin Client"
|
||||
authors = ["prayag17", "JellyPlayer contributors (https://github.com/prayag17/JellyPlayer/graphs/contributors)"]
|
||||
license = "GPL-3.0-only"
|
||||
repository = "https://github.com/prayag17/JellyPlayer/"
|
||||
default-run = "jellyplayer"
|
||||
default-run = "blink"
|
||||
edition = "2021"
|
||||
rust-version = "1.59"
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 45 KiB |
@@ -7,7 +7,7 @@
|
||||
"distDir": "../dist"
|
||||
},
|
||||
"package": {
|
||||
"productName": "JellyPlayer",
|
||||
"productName": "Blink",
|
||||
"version": "../package.json"
|
||||
},
|
||||
"tauri": {
|
||||
@@ -46,7 +46,7 @@
|
||||
"icons/icon.icns",
|
||||
"icons/icon.ico"
|
||||
],
|
||||
"identifier": "com.jellyplayer.prayag17",
|
||||
"identifier": "com.blink.prayag17",
|
||||
"longDescription": "A modern desktop client for Jellyfin",
|
||||
"macOS": {
|
||||
"entitlements": null,
|
||||
@@ -56,7 +56,7 @@
|
||||
"signingIdentity": null
|
||||
},
|
||||
"resources": [],
|
||||
"shortDescription": "JellyPlayer",
|
||||
"shortDescription": "Blink",
|
||||
"targets": ["deb", "appimage", "nsis", "app", "dmg", "updater"],
|
||||
"windows": {
|
||||
"certificateThumbprint": null,
|
||||
@@ -68,10 +68,6 @@
|
||||
"installerIcon": "icons/icon.ico",
|
||||
"displayLanguageSelector": true,
|
||||
"license": "../LICENSE"
|
||||
},
|
||||
"webviewInstallMode": {
|
||||
"silent": true,
|
||||
"type": "offlineInstaller"
|
||||
}
|
||||
},
|
||||
"appimage": {
|
||||
@@ -107,7 +103,7 @@
|
||||
"height": 600,
|
||||
"width": 800,
|
||||
"resizable": true,
|
||||
"title": "JellyPlayer",
|
||||
"title": "Blink",
|
||||
"visible": true,
|
||||
"center": true,
|
||||
"label": "main"
|
||||
|
||||
@@ -40,14 +40,14 @@ import {
|
||||
} from "@mui/material";
|
||||
|
||||
// Routes
|
||||
import About from "./routes/about";
|
||||
import MusicAlbumTitlePage from "./routes/album/index.jsx";
|
||||
import ArtistTitlePage from "./routes/artist/index.jsx";
|
||||
import BoxSetTitlePage from "./routes/boxset/index.jsx";
|
||||
import EpisodeTitlePage from "./routes/episode/index";
|
||||
import About from "./routes/_about";
|
||||
import MusicAlbumTitlePage from "./routes/album/$id.js";
|
||||
import ArtistTitlePage from "./routes/artist/$id.js";
|
||||
import BoxSetTitlePage from "./routes/boxset/$id.js";
|
||||
import EpisodeTitlePage from "./routes/episode/$id";
|
||||
import FavoritePage from "./routes/favorite/index.jsx";
|
||||
import Home from "./routes/home";
|
||||
import ItemDetail from "./routes/item";
|
||||
import ItemDetail from "./routes/item/$id";
|
||||
import LibraryView from "./routes/library";
|
||||
import {
|
||||
LoginRoute,
|
||||
@@ -55,39 +55,17 @@ import {
|
||||
UserLogin,
|
||||
UserLoginManual,
|
||||
} from "./routes/login";
|
||||
import PersonTitlePage from "./routes/person/index.jsx";
|
||||
import PersonTitlePage from "./routes/person/$id.jsx";
|
||||
import VideoPlayer from "./routes/player/videoPlayer";
|
||||
import PlaylistTitlePage from "./routes/playlist/index.jsx";
|
||||
import PlaylistTitlePage from "./routes/playlist/$id.jsx";
|
||||
import SearchPage from "./routes/search";
|
||||
import SeriesTitlePage from "./routes/series/index.jsx";
|
||||
import { ServerSetup } from "./routes/setup/server";
|
||||
import ServerList from "./routes/setup/serverList/index.jsx";
|
||||
import SeriesTitlePage from "./routes/series/$id.js";
|
||||
import { ServerSetup } from "./routes/setup/server.add";
|
||||
import ServerList from "./routes/setup/server.list.js";
|
||||
|
||||
import Markdown from "react-markdown";
|
||||
import remarkGfm from "remark-gfm";
|
||||
|
||||
// Fonts
|
||||
import "@fontsource-variable/jetbrains-mono";
|
||||
import "@fontsource/noto-sans/100-italic.css";
|
||||
import "@fontsource/noto-sans/100.css";
|
||||
import "@fontsource/noto-sans/200-italic.css";
|
||||
import "@fontsource/noto-sans/200.css";
|
||||
import "@fontsource/noto-sans/300-italic.css";
|
||||
import "@fontsource/noto-sans/300.css";
|
||||
import "@fontsource/noto-sans/400-italic.css";
|
||||
import "@fontsource/noto-sans/400.css";
|
||||
import "@fontsource/noto-sans/500-italic.css";
|
||||
import "@fontsource/noto-sans/500.css";
|
||||
import "@fontsource/noto-sans/600-italic.css";
|
||||
import "@fontsource/noto-sans/600.css";
|
||||
import "@fontsource/noto-sans/700-italic.css";
|
||||
import "@fontsource/noto-sans/700.css";
|
||||
import "@fontsource/noto-sans/800-italic.css";
|
||||
import "@fontsource/noto-sans/800.css";
|
||||
import "@fontsource/noto-sans/900-italic.css";
|
||||
import "@fontsource/noto-sans/900.css";
|
||||
|
||||
import "material-symbols/rounded.scss";
|
||||
|
||||
// Components
|
||||
import { AppBar } from "./components/appBar/appBar.jsx";
|
||||
@@ -251,12 +229,7 @@ function AppReady() {
|
||||
const location = useLocation();
|
||||
const navigate = useNavigate();
|
||||
|
||||
const [updateDialog, setUpdateDialog] = useState(false);
|
||||
const [updateDialogButton, setUpdateDialogButton] = useState(false);
|
||||
const [backdropLoading, setBackdropLoading] = useState(true);
|
||||
const [updateInfo, setUpdateInfo] = useState<UpdateManifest | undefined>(
|
||||
undefined,
|
||||
);
|
||||
|
||||
|
||||
const isQueryFetching = useIsFetching();
|
||||
const isMutating = useIsMutating();
|
||||
@@ -265,28 +238,7 @@ function AppReady() {
|
||||
|
||||
const [videoPlaybackItem] = usePlaybackStore((state) => [state.item]);
|
||||
|
||||
// Reset BakcdropImageLoading for every new image
|
||||
useEffect(() => {
|
||||
setBackdropLoading(true);
|
||||
}, [backdropId]);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
async function checkForUpdates() {
|
||||
try {
|
||||
const { shouldUpdate, manifest } = await checkUpdate();
|
||||
|
||||
if (shouldUpdate) {
|
||||
setUpdateInfo(manifest);
|
||||
setUpdateDialog(true);
|
||||
|
||||
console.log(`Update found : ${manifest?.version}, ${manifest?.date}`);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
checkForUpdates();
|
||||
}, []);
|
||||
|
||||
if (!initialRoute) {
|
||||
return (
|
||||
@@ -304,142 +256,13 @@ function AppReady() {
|
||||
}
|
||||
|
||||
return (
|
||||
<SnackbarProvider maxSnack={5}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<CssBaseline />
|
||||
<NProgress isAnimating={isQueryFetching || isMutating} />
|
||||
<Dialog
|
||||
open={updateDialog}
|
||||
fullWidth
|
||||
PaperProps={{
|
||||
style: {
|
||||
borderRadius: "14px",
|
||||
background: "rgb(0 0 0 / 0.5)",
|
||||
backdropFilter: "blur(10px)",
|
||||
border: "1px solid rgb(255 255 255 / 0.2)",
|
||||
},
|
||||
}}
|
||||
sx={{
|
||||
"& img": {
|
||||
width: "100%",
|
||||
},
|
||||
}}
|
||||
>
|
||||
{updateInfo !== undefined && (
|
||||
<>
|
||||
<DialogTitle
|
||||
variant="h5"
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
alignItems: "flex-start",
|
||||
gap: "0.4em",
|
||||
}}
|
||||
>
|
||||
Update Available!
|
||||
<Chip
|
||||
icon={
|
||||
<span className="material-symbols-rounded">update</span>
|
||||
}
|
||||
label={`v${updateInfo.version}`}
|
||||
color="success"
|
||||
/>
|
||||
</DialogTitle>
|
||||
<DialogContent dividers>
|
||||
<DialogContentText>
|
||||
<Markdown remarkPlugins={[remarkGfm]}>
|
||||
{updateInfo.body}
|
||||
</Markdown>
|
||||
</DialogContentText>
|
||||
</DialogContent>
|
||||
<DialogActions
|
||||
style={{
|
||||
padding: "1em",
|
||||
}}
|
||||
>
|
||||
<IconButton
|
||||
disabled={updateDialogButton}
|
||||
target="_blank"
|
||||
href={`https://github.com/prayag17/JellyPlayer/releases/${updateInfo.version}`}
|
||||
>
|
||||
<SvgIcon>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 16 16"
|
||||
>
|
||||
<title>Update</title>
|
||||
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8" />
|
||||
</svg>
|
||||
</SvgIcon>
|
||||
</IconButton>
|
||||
<Button
|
||||
size="large"
|
||||
color="error"
|
||||
variant="outlined"
|
||||
disabled={updateDialogButton}
|
||||
onClick={() => setUpdateDialog(false)}
|
||||
>
|
||||
close
|
||||
</Button>
|
||||
<LoadingButton
|
||||
size="large"
|
||||
color="success"
|
||||
variant="contained"
|
||||
loading={updateDialogButton}
|
||||
loadingIndicator="Updating..."
|
||||
onClick={async () => {
|
||||
setUpdateDialogButton(true);
|
||||
await installUpdate();
|
||||
enqueueSnackbar(
|
||||
"Update has been installed! You need to relaunch JellyPlayer.",
|
||||
{
|
||||
variant: "success",
|
||||
},
|
||||
);
|
||||
await relaunch();
|
||||
}}
|
||||
>
|
||||
Update
|
||||
</LoadingButton>
|
||||
</DialogActions>
|
||||
</>
|
||||
)}
|
||||
</Dialog>
|
||||
|
||||
|
||||
<Settings />
|
||||
<EasterEgg />
|
||||
|
||||
|
||||
{/* Show Dialog if server not reachable */}
|
||||
|
||||
<div className="app-backdrop-container">
|
||||
<AnimatePresence>
|
||||
<motion.img
|
||||
key={backdropId}
|
||||
src={backdropUrl}
|
||||
alt=""
|
||||
className="app-backdrop"
|
||||
initial={{
|
||||
opacity: 0,
|
||||
}}
|
||||
animate={{
|
||||
opacity: backdropLoading ? 0 : 1,
|
||||
}}
|
||||
exit={{
|
||||
opacity: 0,
|
||||
}}
|
||||
transition={{
|
||||
opacity: {
|
||||
duration: 1.2,
|
||||
},
|
||||
}}
|
||||
onLoad={() => setBackdropLoading(false)}
|
||||
loading="lazy"
|
||||
/>
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
|
||||
<div
|
||||
className={audioPlayerVisible ? "audio-playing" : ""}
|
||||
style={{
|
||||
@@ -448,8 +271,7 @@ function AppReady() {
|
||||
transition: "padding 250ms",
|
||||
}}
|
||||
>
|
||||
<AppBar />
|
||||
{audioPlayerVisible && <AudioPlayer />}
|
||||
|
||||
<ErrorBoundary FallbackComponent={ErrorNotice} key={location.key}>
|
||||
<Routes location={location}>
|
||||
<Route path="/" element={<Navigate to={initialRoute} />} />
|
||||
@@ -527,7 +349,7 @@ function AppReady() {
|
||||
</div>
|
||||
|
||||
<ReactQueryDevtools buttonPosition="bottom-right" position="left" />
|
||||
</ThemeProvider>
|
||||
</>
|
||||
</SnackbarProvider>
|
||||
);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 889 KiB After Width: | Height: | Size: 98 KiB |
@@ -1,20 +1,12 @@
|
||||
<svg width="1512" height="1512" viewBox="0 0 1512 1512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="1512" height="1512" rx="756" fill="url(#paint0_radial_33_14)"/>
|
||||
<path d="M591.675 378.82C546.952 352.839 485.631 382.519 485.631 438.696V756.315L865.3 537.63L591.675 378.82Z" fill="url(#paint1_linear_33_14)"/>
|
||||
<path d="M1164.33 721.71C1158.23 711.195 1149.47 702.478 1138.93 696.439L865.3 537.63L485.631 756.315V1073.93C485.631 1130.11 546.952 1159.79 591.675 1133.81L1138.93 816.192C1149.47 810.153 1158.23 801.435 1164.33 790.921C1170.42 780.407 1173.63 768.469 1173.63 756.315C1173.63 744.162 1170.42 732.224 1164.33 721.71Z" fill="url(#paint2_linear_33_14)"/>
|
||||
<path d="M485.631 756.315V1073.93C485.631 1130.11 546.952 1159.79 591.675 1133.81L1138.93 816.192C1149.47 810.153 1158.23 801.435 1164.33 790.921C1170.42 780.407 1173.63 768.469 1173.63 756.315C1173.63 744.162 1170.42 732.224 1164.33 721.71C1158.23 711.195 1149.47 702.478 1138.93 696.439L865.3 537.63M485.631 756.315V438.696C485.631 382.519 546.952 352.839 591.675 378.82L865.3 537.63M485.631 756.315L865.3 537.63" stroke="white" stroke-width="84" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<svg width="1512" height="1512" viewBox="0 0 1512 1512" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<rect width="1512" height="1512" rx="756" fill="white"/>
|
||||
<rect width="1012" height="1012" transform="translate(250 250)" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M755.809 756L317.601 503V1009L755.809 756Z" fill="url(#pattern0_1167_274)"/>
|
||||
<path d="M1194.02 503L755.809 250L317.601 503L755.809 756L317.601 1009L755.809 1262L1194.02 1009V503Z" fill="#222222"/>
|
||||
<defs>
|
||||
<radialGradient id="paint0_radial_33_14" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1512 1512) rotate(-135) scale(2138.29)">
|
||||
<stop/>
|
||||
<stop offset="1" stop-color="#474747"/>
|
||||
</radialGradient>
|
||||
<linearGradient id="paint1_linear_33_14" x1="485.631" y1="369.315" x2="1173.63" y2="1143.82" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FB2576"/>
|
||||
<stop offset="0.697961" stop-color="#150050"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint2_linear_33_14" x1="485.631" y1="369.315" x2="1173.63" y2="1143.82" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FB2576"/>
|
||||
<stop offset="0.697961" stop-color="#150050"/>
|
||||
</linearGradient>
|
||||
<pattern id="pattern0_1167_274" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image0_1167_274" transform="matrix(0 -0.000244141 0.000281909 0 -0.0773503 1)"/>
|
||||
</pattern>
|
||||
<image id="image0_1167_274" width="4096" height="4096" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAABAACAYAAADyoyQXAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUALN16SURBVHgB7H1ZluM4zyzwnd7XXdPd/wP/qpRlThgCHGQ5SzjdWTIBBAIgSNuyJfP/o/+f6I8wZWHrX7ZtJHsE++d4AHuUi8XJso/nycu4mHplzIujYrGjp7lY0ry7+GT3ix2LQz6df8BP1A3ErY4X+If4BvwhLI5zt/3Z95HwWyUaX3rMQXsvFo9jeXjTWM3gEjwHc9nYVAy+IEZgjCd8jTFxnH2fy3R34lIMro5n+Qzbcgz35bLNfisXvhGXTXIHDqfcicsqSbRGkvEo7q/p8CiiT0J9VATDPo8m0rmkZjAZnslAlmM0+mToBG6trtV3uqT7tpnoOievpNfEyqvVS34pCWOdXT3ejSV5Dv2x4m/S+epjJTIVOHIOUo3FsSTZtX+d2qYk17sbM3il3saqqVXPRNbjZkytYe/X8UoSL3A+k8NLfJxrZcdUakxerYyYrwG0Nh2HpPWFXC+tVqGYpPeWjfMaTW1MfX66sXA/I73V/jW4JWGM/LGOU9dr7V9gzKgjPObOYfu3tk2FIrpnd2NqbXt7LY6qS5quHpFjJF+XJJ3si+dVz1OPY+XcIpEaVY5h5dxrWjt9POE+acBHGI35IGLjjqHdVebfrTEwMi9xTF5gMRqRHb2mYxBf0o3m67HWdLF55wnfbMOGztb4Zz3tGWDVY8xOy4aH7MAz0pAdNjcMdoRdT+2IXO04J80S74cYJ8zujv2gRZvpB3l8V+3HudMQJ9tO045z0i3Hah/fH+b6BtkftMitHdLLGrLPKlJP3acetXytmLo+Fsn3Z0c/4726PthaHxVeYDHvEcVcE2EeRZqbtOWd0RxmCozOSQwTs17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JOxvind3Sbfq4tt3BAcGaOWuE4qzkVNvJ60aulTQvNqcSC78IHsGq/SVOHlZpO3pmUbbT+xfDwn91XrPFfvlcW1fSHoP+6rx9hrO20fZsn78diwQvv/dwLGtE6z2JSYSTbItdcK/1OAsRNE4E80dvAkBEk5ySyY5cFLlW9s7hrSOvm7w+ZkJ3QJ2J5x+7zUit9T7B9XYUZLWhK7K0LQXxwzAzk3WYWcYx611iDWZGljAjc3InYVot6xG/V76zFs8MYlLXKdEnK/eZyH3OMR7Rmo3EG5kX3YeXTbQPEw0SJyX98nw0hlmrEBfplQWJAbQ+wKcmetMGxdIBqV8Z2Deel6CkPNtXG5LPj+VLedpIfhpWpW9wcK62j8QB9aGGm2Rbjf05aK9V93K3eLY3KOikDEzyzRmybxFBuKCeCO1W/QL+0qZkU8enRpM5JdYxWgbt2s038Mi6RP1Yh/gqMnrzhArzdeMQ8cJ/yvVMRT5JG381Wn2Tt/KswbmH/nnEGT81K/+N/K5nHm+PW/4t5vv4p0RyLIl/Od8l/7LeebyscqL/7BZsHTDB2jqK+hkZzWVHXe8q3B3Uct+51l5yrED6nMy+OJ7N5fpa7Iv4yXn1Yl/J7VN1WB13Nd7qmszgMTj2yCOefMvrs0ceuaucJxjuICKXu5BbJGlQ9/tkdefdqZNlGWM4m5fmj4/rDCQNwnflXFLine truncated
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 3.7 MiB |
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 27 KiB |
@@ -1,25 +1,13 @@
|
||||
<svg width="5020" height="475" viewBox="0 0 5020 475" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M184.178 464.934C154.522 464.934 126.954 458.251 101.475 444.885C75.9955 431.101 55.1108 412.305 38.8208 388.496C22.5308 364.688 12.9239 338.373 10 309.552H33.182C36.1058 334.196 44.6685 356.751 58.8701 377.218C73.0716 397.268 91.0324 413.14 112.752 424.835C134.89 436.113 158.699 441.752 184.178 441.752C212.163 441.752 237.852 434.86 261.242 421.076C284.633 407.292 303.22 388.287 317.004 364.061C330.788 339.835 337.68 312.685 337.68 282.611V42.6462H142.2V19.4642H360.236V282.611C360.236 316.862 352.299 347.98 336.427 375.965C320.972 403.533 299.67 425.253 272.52 441.125C245.788 456.998 216.34 464.934 184.178 464.934Z" fill="white"/>
|
||||
<path d="M984.562 455.536V19.4642H1007.74V432.354H1311.62V455.536H984.562Z" fill="white"/>
|
||||
<path d="M1448.35 455.536V19.4642H1471.53V432.354H1775.4V455.536H1448.35Z" fill="white"/>
|
||||
<path d="M2389.08 455.536H2365.9V19.4642H2541.33C2570.57 19.4642 2597.51 25.7296 2622.15 38.2604C2647.21 50.7912 2667.05 68.5432 2681.67 91.5163C2696.29 114.489 2703.6 141.013 2703.6 171.087C2703.6 199.908 2696.08 226.431 2681.05 250.657C2666.43 274.883 2646.38 293.471 2620.9 306.419C2598.76 317.697 2572.24 323.336 2541.33 323.336H2389.08V455.536ZM2389.08 300.154H2541.33C2568.06 300.154 2589.99 295.977 2607.11 287.623C2629.25 277.181 2647 261.517 2660.37 240.633C2673.74 219.748 2680.42 196.566 2680.42 171.087C2680.42 146.025 2673.74 123.052 2660.37 102.167C2647 81.2828 2629.04 65.6193 2606.49 55.177C2589.36 46.8231 2567.64 42.6462 2541.33 42.6462H2389.08V300.154Z" fill="white"/>
|
||||
<path d="M2839.71 455.536V19.4642H2862.89V432.354H3166.76V455.536H2839.71Z" fill="white"/>
|
||||
<path d="M3747.86 19.4642L3902.61 252.537L4056.11 19.4642H4083.68L3913.89 276.972V455.536H3890.71V276.972L3720.29 19.4642H3747.86Z" fill="white"/>
|
||||
<path d="M4215.4 19.4642H4522.41V42.6462H4238.58V219.33H4485.44V242.512H4238.58V432.354H4522.41V455.536H4215.4V19.4642Z" fill="white"/>
|
||||
<path d="M2200.97 19.4642H2228.54L2058.74 276.972V455.536H2035.56V276.972L1865.14 19.4642H1892.71L2047.47 252.537L2200.97 19.4642Z" fill="white"/>
|
||||
<path d="M505.113 19.4642H812.117V42.6462H528.295V219.33H775.152V242.512H528.295V432.354H812.117V455.536H505.113V19.4642Z" fill="white"/>
|
||||
<mask id="mask0_501_2" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="3232" y="10" width="1778" height="446">
|
||||
<path d="M4924.16 33.8748C4949.23 45.5702 4968.86 62.9044 4983.06 85.8775C4997.68 108.851 5004.99 134.33 5004.99 162.315C5004.99 194.895 4994.96 224.134 4974.91 250.031C4955.28 275.51 4924.58 295.842 4893.67 304.196L4674.8 19.4644H4840.83C4859.21 19.4644 4874.88 20.7174 4887.83 23.2236C4901.19 25.312 4913.3 28.8624 4924.16 33.8748Z" fill="black"/>
|
||||
<path d="M5010 455.536L4893.67 304.196H4674.8V455.536H5010Z" fill="black"/>
|
||||
<path d="M3643.7 455.536H3232.69L3438.2 10.0662L3643.7 455.536Z" fill="black"/>
|
||||
</mask>
|
||||
<g mask="url(#mask0_501_2)">
|
||||
<rect x="3232" y="10" width="1778" height="446" fill="url(#pattern0)"/>
|
||||
</g>
|
||||
<svg width="1395" height="522" viewBox="0 0 1395 522" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<rect width="1395" height="522" fill="white"/>
|
||||
<rect width="322" height="322" transform="translate(100 100)" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M260.939 261L121.509 180.5V341.5L260.939 261Z" fill="url(#pattern0_1155_288)"/>
|
||||
<path d="M400.369 180.5L260.939 100L121.509 180.5L260.939 261L121.509 341.5L260.939 422L400.369 341.5V180.5Z" fill="#222222"/>
|
||||
<path d="M473.213 361V165.798H564.679C588.103 165.798 605.95 170.446 618.22 179.741C630.49 188.85 636.625 201.12 636.625 216.551C636.625 226.961 634.208 235.885 629.374 243.321C624.541 250.571 618.034 256.242 609.854 260.332C601.86 264.236 593.123 266.188 583.641 266.188L588.661 256.149C599.629 256.149 609.482 258.194 618.22 262.284C626.958 266.188 633.836 271.951 638.856 279.573C644.061 287.195 646.664 296.676 646.664 308.017C646.664 324.748 640.25 337.762 627.422 347.057C614.595 356.352 595.539 361 570.256 361H473.213ZM509.465 332.556H568.025C581.596 332.556 592.007 330.325 599.258 325.864C606.508 321.402 610.133 314.244 610.133 304.391C610.133 294.724 606.508 287.66 599.258 283.198C592.007 278.55 581.596 276.227 568.025 276.227H506.676V248.062H560.775C573.417 248.062 583.084 245.831 589.776 241.369C596.655 236.907 600.094 230.215 600.094 221.291C600.094 212.182 596.655 205.396 589.776 200.934C583.084 196.473 573.417 194.242 560.775 194.242H509.465V332.556ZM682.007 361V154.086H716.865V361H682.007ZM762.615 361V212.089H797.473V361H762.615ZM780.183 187.549C773.676 187.549 768.285 185.504 764.009 181.414C759.919 177.324 757.874 172.398 757.874 166.635C757.874 160.686 759.919 155.759 764.009 151.855C768.285 147.765 773.676 145.72 780.183 145.72C786.69 145.72 791.988 147.672 796.078 151.576C800.354 155.294 802.492 160.035 802.492 165.798C802.492 171.933 800.447 177.138 796.357 181.414C792.267 185.504 786.876 187.549 780.183 187.549ZM927.718 210.416C939.616 210.416 950.212 212.739 959.508 217.387C968.989 222.035 976.425 229.192 981.816 238.859C987.208 248.341 989.903 260.61 989.903 275.669V361H955.046V280.131C955.046 266.931 951.885 257.078 945.565 250.571C939.43 244.065 930.785 240.811 919.631 240.811C911.451 240.811 904.2 242.485 897.88 245.831C891.559 249.177 886.632 254.197 883.1 260.889C879.754 267.396 878.08 275.669 878.08 285.708V361H843.223V212.089H876.407V252.245L870.551 239.975C875.757 230.494 883.286 223.243 893.139 218.224C903.178 213.018 914.704 210.416 927.718 210.416ZM1062.57 327.816L1063.4 284.035L1141.2 212.089H1183.03L1116.94 278.457L1098.54 293.795L1062.57 327.816ZM1034.12 361V154.086H1068.98V361H1034.12ZM1146.5 361L1092.13 293.795L1114.16 265.909L1188.89 361H1146.5ZM1225.28 362.952C1218.96 362.952 1213.57 360.814 1209.11 356.538C1204.65 352.076 1202.42 346.499 1202.42 339.807C1202.42 332.742 1204.65 327.165 1209.11 323.075C1213.57 318.799 1218.96 316.661 1225.28 316.661C1231.6 316.661 1237 318.799 1241.46 323.075C1245.92 327.165 1248.15 332.742 1248.15 339.807C1248.15 346.499 1245.92 352.076 1241.46 356.538C1237 360.814 1231.6 362.952 1225.28 362.952Z" fill="#222222"/>
|
||||
<defs>
|
||||
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image0_501_2" transform="matrix(0 -0.000973278 0.000244141 0 0 2.49327)"/>
|
||||
<pattern id="pattern0_1155_288" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image0_1155_288" transform="matrix(0 -0.000244141 0.000281909 0 -0.0773502 1)"/>
|
||||
</pattern>
|
||||
<image id="image0_501_2" width="4096" height="4096" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAABAACAYAAADyoyQXAAAAAXNSR0IArs4c6QAAIABJREFUeF7sfY2S4zjO5My+1933St+9f8TOhS2RxE8mEpTkquqe3oidLksEkEiAIC0b9N//89f/++evv/766+/Xf87/jb/hv+dFNsbqeo/5u6f7PfSC7mSv8sVgqfydOsF4Kkf9XBKOswtYkK/qmuUfYaexN4NbXIVYK1vuPrCl5FG+1Hl8aIw5xmRQHnfGxjlkc6krD30Pc2NbF8lPijfUAjaPIw6Kq7DPYu10Jfk8r5AvCY81Fn0MtUP5FjmR40ltmrgDtgh1+zWZw7s4Yw5flh+OWh4KjMjOpWu3bPA8i/nJ8u8SZsSVUQTS2K3hu1ggRsFbZePxez8Ji4jDHd9RXE0quD/bY0PtZPrs9bZuUEOV/k/qRjW5wvOfTTB/w1mmPH72/ibkZ40Hbbv8fRTMQ8r/+35HdP9/Xs2+0n/+4jILY9/KGmlk/vmrsBLvQQ2OKIw4e2I1zb/PP6yOKBn12/v53gtawOxsYH/iVaz30J3uBWe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c+r82sPfsYWZYpJ3cq+XT2Md6GHvxZlXC5ZJ3M9O7nU47eSUz6suJlZ/uLine truncated
|
||||
<image id="image0_1155_288" width="4096" height="4096" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAABAACAYAAADyoyQXAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUALN16SURBVHgB7H1ZluM4zyzwnd7XXdPd/wP/qpRlThgCHGQ5SzjdWTIBBAIgSNuyJfP/o/+f6I8wZWHrX7ZtJHsE++d4AHuUi8XJso/nycu4mHplzIujYrGjp7lY0ry7+GT3ix2LQz6df8BP1A3ErY4X+If4BvwhLI5zt/3Z95HwWyUaX3rMQXsvFo9jeXjTWM3gEjwHc9nYVAy+IEZgjCd8jTFxnH2fy3R34lIMro5n+Qzbcgz35bLNfisXvhGXTXIHDqfcicsqSbRGkvEo7q/p8CiiT0J9VATDPo8m0rmkZjAZnslAlmM0+mToBG6trtV3uqT7tpnoOievpNfEyqvVS34pCWOdXT3ejSV5Dv2x4m/S+epjJTIVOHIOUo3FsSTZtX+d2qYk17sbM3il3saqqVXPRNbjZkytYe/X8UoSL3A+k8NLfJxrZcdUakxerYyYrwG0Nh2HpPWFXC+tVqGYpPeWjfMaTW1MfX66sXA/I73V/jW4JWGM/LGOU9dr7V9gzKgjPObOYfu3tk2FIrpnd2NqbXt7LY6qS5quHpFjJF+XJJ3si+dVz1OPY+XcIpEaVY5h5dxrWjt9POE+acBHGI35IGLjjqHdVebfrTEwMi9xTF5gMRqRHb2mYxBf0o3m67HWdLF55wnfbMOGztb4Zz3tGWDVY8xOy4aH7MAz0pAdNjcMdoRdT+2IXO04J80S74cYJ8zujv2gRZvpB3l8V+3HudMQJ9tO045z0i3Hah/fH+b6BtkftMitHdLLGrLPKlJP3acetXytmLo+Fsn3Z0c/4726PthaHxVeYDHvEcVcE2EeRZqbtOWd0RxmCozOSQwTs17J03tP7sXy3kMnxxvD10fj/t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WuE4qzkVNvJ60aulTQvNqcSC78IHsGq/SVOHlZpO3pmUbbT+xfDwn91XrPFfvlcW1fSHoP+6rx9hrO20fZsn78diwQvv/dwLGtE6z2JSYSTbItdcK/1OAsRNE4E80dvAkBEk5ySyY5cFLlW9s7hrSOvm7w+ZkJ3QJ2J5x+7zUit9T7B9XYUZLWhK7K0LQXxwzAzk3WYWcYx611iDWZGljAjc3InYVot6xG/V76zFs8MYlLXKdEnK/eZyH3OMR7Rmo3EG5kX3YeXTbQPEw0SJyX98nw0hlmrEBfplQWJAbQ+wKcmetMGxdIBqV8Z2Deel6CkPNtXG5LPj+VLedpIfhpWpW9wcK62j8QB9aGGm2Rbjf05aK9V93K3eLY3KOikDEzyzRmybxFBuKCeCO1W/QL+0qZkU8enRpM5JdYxWgbt2s038Mi6RP1Yh/gqMnrzhArzdeMQ8cJ/yvVMRT5JG381Wn2Tt/KswbmH/nnEGT81K/+N/K5nHm+PW/4t5vv4p0RyLIl/Od8l/7LeebyscqL/7BZsHTDB2jqK+hkZzWVHXe8q3B3Uct+51l5yrED6nMy+OJ7N5fpa7Iv4yXn1Yl/J7VN1WB13Nd7qmszgMTj2yCOefMvrs0ceuaucJxjuICKXu5BbJGlQ9/tkdefdqZNlGWM4m5fmj4/rDCQNwnflXFLine truncated
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 6.1 MiB After Width: | Height: | Size: 3.7 MiB |
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 27 KiB |
@@ -1,25 +1,13 @@
|
||||
<svg width="5020" height="475" viewBox="0 0 5020 475" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M184.178 464.934C154.522 464.934 126.954 458.251 101.475 444.885C75.9955 431.101 55.1108 412.305 38.8208 388.496C22.5308 364.688 12.9239 338.373 10 309.552H33.182C36.1058 334.196 44.6685 356.751 58.8701 377.218C73.0716 397.268 91.0324 413.14 112.752 424.835C134.89 436.113 158.699 441.752 184.178 441.752C212.163 441.752 237.852 434.86 261.242 421.076C284.633 407.292 303.22 388.287 317.004 364.061C330.788 339.835 337.68 312.685 337.68 282.611V42.6462H142.2V19.4642H360.236V282.611C360.236 316.862 352.299 347.98 336.427 375.965C320.972 403.533 299.67 425.253 272.52 441.125C245.788 456.998 216.34 464.934 184.178 464.934Z" fill="black"/>
|
||||
<path d="M984.562 455.536V19.4642H1007.74V432.354H1311.62V455.536H984.562Z" fill="black"/>
|
||||
<path d="M1448.35 455.536V19.4642H1471.53V432.354H1775.4V455.536H1448.35Z" fill="black"/>
|
||||
<path d="M2389.08 455.536H2365.9V19.4642H2541.33C2570.57 19.4642 2597.51 25.7296 2622.15 38.2604C2647.21 50.7912 2667.05 68.5432 2681.67 91.5163C2696.29 114.489 2703.6 141.013 2703.6 171.087C2703.6 199.908 2696.08 226.431 2681.05 250.657C2666.43 274.883 2646.38 293.471 2620.9 306.419C2598.76 317.697 2572.24 323.336 2541.33 323.336H2389.08V455.536ZM2389.08 300.154H2541.33C2568.06 300.154 2589.99 295.977 2607.11 287.623C2629.25 277.181 2647 261.517 2660.37 240.633C2673.74 219.748 2680.42 196.566 2680.42 171.087C2680.42 146.025 2673.74 123.052 2660.37 102.167C2647 81.2828 2629.04 65.6193 2606.49 55.177C2589.36 46.8231 2567.64 42.6462 2541.33 42.6462H2389.08V300.154Z" fill="black"/>
|
||||
<path d="M2839.71 455.536V19.4642H2862.89V432.354H3166.76V455.536H2839.71Z" fill="black"/>
|
||||
<path d="M3747.86 19.4642L3902.61 252.537L4056.11 19.4642H4083.68L3913.89 276.972V455.536H3890.71V276.972L3720.29 19.4642H3747.86Z" fill="black"/>
|
||||
<path d="M4215.4 19.4642H4522.41V42.6462H4238.58V219.33H4485.44V242.512H4238.58V432.354H4522.41V455.536H4215.4V19.4642Z" fill="black"/>
|
||||
<path d="M2200.97 19.4642H2228.54L2058.74 276.972V455.536H2035.56V276.972L1865.14 19.4642H1892.71L2047.47 252.537L2200.97 19.4642Z" fill="black"/>
|
||||
<path d="M505.113 19.4642H812.117V42.6462H528.295V219.33H775.152V242.512H528.295V432.354H812.117V455.536H505.113V19.4642Z" fill="black"/>
|
||||
<mask id="mask0_941_19" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="3232" y="10" width="1778" height="446">
|
||||
<path d="M4924.16 33.8748C4949.23 45.5702 4968.86 62.9044 4983.06 85.8775C4997.68 108.851 5004.99 134.33 5004.99 162.315C5004.99 194.895 4994.96 224.134 4974.91 250.031C4955.28 275.51 4924.58 295.842 4893.67 304.196L4674.8 19.4644H4840.83C4859.21 19.4644 4874.88 20.7174 4887.83 23.2236C4901.19 25.312 4913.3 28.8624 4924.16 33.8748Z" fill="black"/>
|
||||
<path d="M5010 455.536L4893.67 304.196H4674.8V455.536H5010Z" fill="black"/>
|
||||
<path d="M3643.7 455.536H3232.69L3438.2 10.0662L3643.7 455.536Z" fill="black"/>
|
||||
</mask>
|
||||
<g mask="url(#mask0_941_19)">
|
||||
<rect x="3232" y="10" width="1778" height="446" fill="url(#pattern0)"/>
|
||||
</g>
|
||||
<svg width="1395" height="522" viewBox="0 0 1395 522" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<rect width="1395" height="522" fill="#222222"/>
|
||||
<rect width="322" height="322" transform="translate(100 100)" fill="#222222"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M260.939 261L121.509 180.5V341.5L260.939 261Z" fill="url(#pattern0_1178_275)"/>
|
||||
<path d="M400.369 180.5L260.939 100L121.509 180.5L260.939 261L121.509 341.5L260.939 422L400.369 341.5V180.5Z" fill="white"/>
|
||||
<path d="M473.213 361V165.798H564.679C588.103 165.798 605.95 170.446 618.22 179.741C630.49 188.85 636.625 201.12 636.625 216.551C636.625 226.961 634.208 235.885 629.374 243.321C624.541 250.571 618.034 256.242 609.854 260.332C601.86 264.236 593.123 266.188 583.641 266.188L588.661 256.149C599.629 256.149 609.482 258.194 618.22 262.284C626.958 266.188 633.836 271.951 638.856 279.573C644.061 287.195 646.664 296.676 646.664 308.017C646.664 324.748 640.25 337.762 627.422 347.057C614.595 356.352 595.539 361 570.256 361H473.213ZM509.465 332.556H568.025C581.596 332.556 592.007 330.325 599.258 325.864C606.508 321.402 610.133 314.244 610.133 304.391C610.133 294.724 606.508 287.66 599.258 283.198C592.007 278.55 581.596 276.227 568.025 276.227H506.676V248.062H560.775C573.417 248.062 583.084 245.831 589.776 241.369C596.655 236.907 600.094 230.215 600.094 221.291C600.094 212.182 596.655 205.396 589.776 200.934C583.084 196.473 573.417 194.242 560.775 194.242H509.465V332.556ZM682.007 361V154.086H716.865V361H682.007ZM762.615 361V212.089H797.473V361H762.615ZM780.183 187.549C773.676 187.549 768.285 185.504 764.009 181.414C759.919 177.324 757.874 172.398 757.874 166.635C757.874 160.686 759.919 155.759 764.009 151.855C768.285 147.765 773.676 145.72 780.183 145.72C786.69 145.72 791.988 147.672 796.078 151.576C800.354 155.294 802.492 160.035 802.492 165.798C802.492 171.933 800.447 177.138 796.357 181.414C792.267 185.504 786.876 187.549 780.183 187.549ZM927.718 210.416C939.616 210.416 950.212 212.739 959.508 217.387C968.989 222.035 976.425 229.192 981.816 238.859C987.208 248.341 989.903 260.61 989.903 275.669V361H955.046V280.131C955.046 266.931 951.885 257.078 945.565 250.571C939.43 244.065 930.785 240.811 919.631 240.811C911.451 240.811 904.2 242.485 897.88 245.831C891.559 249.177 886.632 254.197 883.1 260.889C879.754 267.396 878.08 275.669 878.08 285.708V361H843.223V212.089H876.407V252.245L870.551 239.975C875.757 230.494 883.286 223.243 893.139 218.224C903.178 213.018 914.704 210.416 927.718 210.416ZM1062.57 327.816L1063.4 284.035L1141.2 212.089H1183.03L1116.94 278.457L1098.54 293.795L1062.57 327.816ZM1034.12 361V154.086H1068.98V361H1034.12ZM1146.5 361L1092.13 293.795L1114.16 265.909L1188.89 361H1146.5ZM1225.28 362.952C1218.96 362.952 1213.57 360.814 1209.11 356.538C1204.65 352.076 1202.42 346.499 1202.42 339.807C1202.42 332.742 1204.65 327.165 1209.11 323.075C1213.57 318.799 1218.96 316.661 1225.28 316.661C1231.6 316.661 1237 318.799 1241.46 323.075C1245.92 327.165 1248.15 332.742 1248.15 339.807C1248.15 346.499 1245.92 352.076 1241.46 356.538C1237 360.814 1231.6 362.952 1225.28 362.952Z" fill="white"/>
|
||||
<defs>
|
||||
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image0_941_19" transform="matrix(0 -0.000973278 0.000244141 0 0 2.49327)"/>
|
||||
<pattern id="pattern0_1178_275" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image0_1178_275" transform="matrix(0 -0.000244141 0.000281909 0 -0.0773502 1)"/>
|
||||
</pattern>
|
||||
<image id="image0_941_19" width="4096" height="4096" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAABAACAYAAADyoyQXAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUALN16SURBVHgB7H1ZluM4zyzwnd7XXdPd/wP/qpRlThgCHGQ5SzjdWTIBBAIgSNuyJfP/o/+f6I8wZWHrX7ZtJHsE++d4AHuUi8XJso/nycu4mHplzIujYrGjp7lY0ry7+GT3ix2LQz6df8BP1A3ErY4X+If4BvwhLI5zt/3Z95HwWyUaX3rMQXsvFo9jeXjTWM3gEjwHc9nYVAy+IEZgjCd8jTFxnH2fy3R34lIMro5n+Qzbcgz35bLNfisXvhGXTXIHDqfcicsqSbRGkvEo7q/p8CiiT0J9VATDPo8m0rmkZjAZnslAlmM0+mToBG6trtV3uqT7tpnoOievpNfEyqvVS34pCWOdXT3ejSV5Dv2x4m/S+epjJTIVOHIOUo3FsSTZtX+d2qYk17sbM3il3saqqVXPRNbjZkytYe/X8UoSL3A+k8NLfJxrZcdUakxerYyYrwG0Nh2HpPWFXC+tVqGYpPeWjfM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ine truncated
|
||||
<image id="image0_1178_275" width="4096" height="4096" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAABAACAYAAADyoyQXAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUALN16SURBVHgB7H1ZluM4zyzwnd7XXdPd/wP/qpRlThgCHGQ5SzjdWTIBBAIgSNuyJfP/o/+f6I8wZWHrX7ZtJHsE++d4AHuUi8XJso/nycu4mHplzIujYrGjp7lY0ry7+GT3ix2LQz6df8BP1A3ErY4X+If4BvwhLI5zt/3Z95HwWyUaX3rMQXsvFo9jeXjTWM3gEjwHc9nYVAy+IEZgjCd8jTFxnH2fy3R34lIMro5n+Qzbcgz35bLNfisXvhGXTXIHDqfcicsqSbRGkvEo7q/p8CiiT0J9VATDPo8m0rmkZjAZnslAlmM0+mToBG6trtV3uqT7tpnoOievpNfEyqvVS34pCWOdXT3ejSV5Dv2x4m/S+epjJTIVOHIOUo3FsSTZtX+d2qYk17sbM3il3saqqVXPRNbjZkytYe/X8UoSL3A+k8NLfJxrZcdUakxerYyYrwG0Nh2HpPWFXC+tVqGYpPeWjfMaTW1MfX66sXA/I73V/jW4JWGM/LGOU9dr7V9gzKgjPObOYfu3tk2FIrpnd2NqbXt7LY6qS5quHpFjJF+XJJ3si+dVz1OPY+XcIpEaVY5h5dxrWjt9POE+acBHGI35IGLjjqHdVebfrTEwMi9xTF5gMRqRHb2mYxBf0o3m67HWdLF55wnfbMOGztb4Zz3tGWDVY8xOy4aH7MAz0pAdNjcMdoRdT+2IXO04J80S74cYJ8zujv2gRZvpB3l8V+3HudMQJ9tO045z0i3Hah/fH+b6BtkftMitHdLLGrLPKlJP3acetXytmLo+Fsn3Z0c/4726PthaHxVeYDHvEcVcE2EeRZqbtOWd0RxmCozOSQwTs17J03tP7sXy3kMnxxvD10fj/tgZDzSS7+9VIOapsbdtkTMvXqUidn9H2LFFOPValBMpvNCa2py0IxtlrvYr+yE/ug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cW1fSHoP+6rx9hrO20fZsn78diwQvv/dwLGtE6z2JSYSTbItdcK/1OAsRNE4E80dvAkBEk5ySyY5cFLlW9s7hrSOvm7w+ZkJ3QJ2J5x+7zUit9T7B9XYUZLWhK7K0LQXxwzAzk3WYWcYx611iDWZGljAjc3InYVot6xG/V76zFs8MYlLXKdEnK/eZyH3OMR7Rmo3EG5kX3YeXTbQPEw0SJyX98nw0hlmrEBfplQWJAbQ+wKcmetMGxdIBqV8Z2Deel6CkPNtXG5LPj+VLedpIfhpWpW9wcK62j8QB9aGGm2Rbjf05aK9V93K3eLY3KOikDEzyzRmybxFBuKCeCO1W/QL+0qZkU8enRpM5JdYxWgbt2s038Mi6RP1Yh/gqMnrzhArzdeMQ8cJ/yvVMRT5JG381Wn2Tt/KswbmH/nnEGT81K/+N/K5nHm+PW/4t5vv4p0RyLIl/Od8l/7LeebyscqL/7BZsHTDB2jqK+hkZzWVHXe8q3B3Uct+51l5yrED6nMy+OJ7N5fpa7Iv4yXn1Yl/J7VN1WB13Nd7qmszgMTj2yCOefMvrs0ceuaucJxjuICKXu5BbJGlQ9/tkdefdqZNlGWM4m5fmj4/rDCQNwnflXFLine truncated
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.7 MiB After Width: | Height: | Size: 3.7 MiB |
@@ -1,4 +1,5 @@
|
||||
import React, { useEffect, useRef, useState } from "react";
|
||||
import type React from "react";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
|
||||
import { relaunch } from "@tauri-apps/api/process";
|
||||
|
||||
@@ -19,28 +20,31 @@ import useScrollTrigger from "@mui/material/useScrollTrigger";
|
||||
import { red } from "@mui/material/colors";
|
||||
|
||||
import {
|
||||
NavLink as NavLinkBase,
|
||||
Link as RouterLink,
|
||||
type LinkProps as RouterLinkProps,
|
||||
Link,
|
||||
useLocation,
|
||||
useNavigate,
|
||||
} from "react-router-dom";
|
||||
useRouteContext,
|
||||
} from "@tanstack/react-router";
|
||||
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api";
|
||||
|
||||
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
|
||||
import { delServer } from "../../utils/storage/servers";
|
||||
import { delUser } from "../../utils/storage/user";
|
||||
import { useDrawerStore } from "../../utils/store/drawer";
|
||||
import { delServer } from "@/utils/storage/servers";
|
||||
import { delUser } from "@/utils/storage/user";
|
||||
import { useDrawerStore } from "@/utils/store/drawer";
|
||||
import "./appBar.scss";
|
||||
|
||||
import { EventEmitter as event } from "../../eventEmitter";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { EventEmitter as event } from "@/eventEmitter";
|
||||
|
||||
import { getTypeIcon } from "../utils/iconsCollection";
|
||||
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
import useSettingsStore, {
|
||||
setSettingsDialogOpen,
|
||||
setSettingsTabValue,
|
||||
} from "@/utils/store/settings";
|
||||
import {
|
||||
Divider,
|
||||
Drawer,
|
||||
@@ -49,11 +53,7 @@ import {
|
||||
ListItemButton,
|
||||
ListItemText,
|
||||
} from "@mui/material";
|
||||
import logo from "../../assets/icon.svg";
|
||||
import useSettingsStore, {
|
||||
setSettingsDialogOpen,
|
||||
setSettingsTabValue,
|
||||
} from "../../utils/store/settings";
|
||||
import BackButton from "../buttons/backButton";
|
||||
|
||||
interface ListItemLinkProps {
|
||||
icon?: React.ReactElement;
|
||||
@@ -61,24 +61,13 @@ interface ListItemLinkProps {
|
||||
to: string;
|
||||
}
|
||||
|
||||
const NavLink = React.forwardRef((props, ref) => (
|
||||
<NavLinkBase
|
||||
ref={ref}
|
||||
{...props}
|
||||
style={{ textDecoration: "none" }}
|
||||
className={({ isActive }) =>
|
||||
`${props.className} ${isActive ? props.activeClassName : ""}`
|
||||
}
|
||||
/>
|
||||
));
|
||||
|
||||
function ListItemLink(props: ListItemLinkProps) {
|
||||
const { icon, primary, to } = props;
|
||||
|
||||
return (
|
||||
<li>
|
||||
<ListItem
|
||||
component={NavLink}
|
||||
component={Link}
|
||||
activeClassName="active"
|
||||
className="library-drawer-item"
|
||||
to={to}
|
||||
@@ -100,11 +89,10 @@ function ListItemLink(props: ListItemLinkProps) {
|
||||
}
|
||||
|
||||
export const AppBar = () => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const navigate = useNavigate();
|
||||
|
||||
const [display, setDisplay] = useState(false);
|
||||
const [backButtonVisible, setBackButtonVisible] = useState(false);
|
||||
|
||||
const location = useLocation();
|
||||
|
||||
@@ -115,24 +103,18 @@ export const AppBar = () => {
|
||||
return usr.data;
|
||||
},
|
||||
enabled: display,
|
||||
networkMode: "always",
|
||||
});
|
||||
const libraries = useQuery({
|
||||
queryKey: ["libraries"],
|
||||
queryFn: async () => {
|
||||
const libs = await getUserViewsApi(api).getUserViews({
|
||||
userId: user.data.Id,
|
||||
userId: user.data?.Id,
|
||||
});
|
||||
return libs.data;
|
||||
},
|
||||
enabled: !!user.data && !!api.accessToken,
|
||||
networkMode: "always",
|
||||
});
|
||||
useEffect(() => {
|
||||
if (user.isError) {
|
||||
console.error(user.error);
|
||||
}
|
||||
}, [user]);
|
||||
|
||||
const trigger = useScrollTrigger({
|
||||
disableHysteresis: true,
|
||||
@@ -150,8 +132,6 @@ export const AppBar = () => {
|
||||
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
const [tabValue] = useSettingsStore((state) => [state.tabValue]);
|
||||
|
||||
const handleLogout = async () => {
|
||||
console.log("Logging out user...");
|
||||
await api.logout();
|
||||
@@ -177,11 +157,6 @@ export const AppBar = () => {
|
||||
setDisplay(true);
|
||||
}
|
||||
|
||||
if (location.pathname === "/home") {
|
||||
setBackButtonVisible(false);
|
||||
} else {
|
||||
setBackButtonVisible(true);
|
||||
}
|
||||
}, [location]);
|
||||
|
||||
const [showDrawer, setShowDrawer] = useState(false);
|
||||
@@ -209,13 +184,8 @@ export const AppBar = () => {
|
||||
<IconButton onClick={() => setShowDrawer(true)}>
|
||||
<div className="material-symbols-rounded">menu</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
disabled={!backButtonVisible}
|
||||
onClick={() => navigate(-1)}
|
||||
>
|
||||
<div className="material-symbols-rounded">arrow_back</div>
|
||||
</IconButton>
|
||||
<IconButton onClick={() => navigate("/home")}>
|
||||
<BackButton />
|
||||
<IconButton onClick={() => navigate({ to: "/home/" })}>
|
||||
<div
|
||||
className={
|
||||
location.pathname === "/home"
|
||||
@@ -229,10 +199,10 @@ export const AppBar = () => {
|
||||
</div>
|
||||
|
||||
<div className="flex flex-row" style={{ gap: "0.6em" }}>
|
||||
<IconButton onClick={() => navigate("/search")}>
|
||||
<IconButton onClick={() => navigate({ to: "/search" })}>
|
||||
<div className="material-symbols-rounded">search</div>
|
||||
</IconButton>
|
||||
<IconButton onClick={() => navigate("/favorite")}>
|
||||
<IconButton onClick={() => navigate({ to: "/favorite" })}>
|
||||
<div className="material-symbols-rounded">favorite</div>
|
||||
</IconButton>
|
||||
<IconButton sx={{ p: 0 }} onClick={handleMenuOpen}>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import AppBar from "@mui/material/AppBar";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import Toolbar from "@mui/material/Toolbar";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useRouter } from "@tanstack/react-router";
|
||||
|
||||
export const AppBarBackOnly = () => {
|
||||
const navigate = useNavigate();
|
||||
const { history } = useRouter();
|
||||
|
||||
const handleBack = () => {
|
||||
navigate(-1);
|
||||
history.go(-1);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -4,11 +4,10 @@ import React from "react";
|
||||
import Box from "@mui/material/Box";
|
||||
|
||||
import "./avatar.module.scss";
|
||||
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { useRouteContext } from "@tanstack/react-router";
|
||||
|
||||
export const AvatarImage = ({ userId }) => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useRouteContext({ from: "/_api" }).api;
|
||||
return (
|
||||
<Box className="avatar-image-container">
|
||||
<div
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import { IconButton } from "@mui/material";
|
||||
import { useRouter } from "@tanstack/react-router";
|
||||
import React from "react";
|
||||
|
||||
export default function BackButton() {
|
||||
const { history } = useRouter();
|
||||
const handleClick = () => {
|
||||
history.back();
|
||||
};
|
||||
|
||||
return (
|
||||
<IconButton onClick={handleClick}>
|
||||
<span className="material-symbols-rounded">arrow_back</span>
|
||||
</IconButton>
|
||||
);
|
||||
}
|
||||
@@ -4,16 +4,16 @@ import React, { useEffect } from "react";
|
||||
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
|
||||
import CircularProgress from "@mui/material/CircularProgress";
|
||||
import { pink } from "@mui/material/colors";
|
||||
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
||||
import { useRouteContext } from "@tanstack/react-router";
|
||||
import { useSnackbar } from "notistack";
|
||||
|
||||
import { useApi } from "../../utils/store/api";
|
||||
|
||||
const LikeButton = ({ itemId, isFavorite, queryKey, userId, itemName }) => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const queryClient = useQueryClient();
|
||||
const { enqueueSnackbar } = useSnackbar();
|
||||
|
||||
|
||||
@@ -8,12 +8,13 @@ import IconButton from "@mui/material/IconButton";
|
||||
import { green } from "@mui/material/colors";
|
||||
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
||||
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api/playstate-api";
|
||||
import { useRouteContext } from "@tanstack/react-router";
|
||||
import { useSnackbar } from "notistack";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
|
||||
const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
|
||||
const queryClient = useQueryClient();
|
||||
const { enqueueSnackbar } = useSnackbar();
|
||||
|
||||
@@ -9,6 +9,7 @@ import Fab from "@mui/material/Fab";
|
||||
import LinearProgress from "@mui/material/LinearProgress";
|
||||
import Typography from "@mui/material/Typography";
|
||||
|
||||
import { playAudio } from "@/utils/store/audioPlayback";
|
||||
import {
|
||||
type BaseItemDto,
|
||||
type BaseItemDtoQueryResult,
|
||||
@@ -23,26 +24,20 @@ import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
|
||||
import { getPlaylistsApi } from "@jellyfin/sdk/lib/utils/api/playlists-api";
|
||||
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api";
|
||||
import { useMutation } from "@tanstack/react-query";
|
||||
import { useNavigate, useRouteContext } from "@tanstack/react-router";
|
||||
import { useSnackbar } from "notistack";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { useAudioPlayback } from "../../utils/store/audioPlayback";
|
||||
|
||||
import useQueue, { setQueue } from "../../utils/store/queue";
|
||||
import useQueue, { setQueue } from "@/utils/store/queue";
|
||||
|
||||
import {
|
||||
playItem,
|
||||
setItem,
|
||||
usePlaybackDataLoadStore,
|
||||
usePlaybackStore,
|
||||
} from "../../utils/store/playback";
|
||||
import { playItem, usePlaybackDataLoadStore } from "@/utils/store/playback";
|
||||
|
||||
import type PlayResult from "@//utils/types/playResult";
|
||||
import { getRuntimeCompact } from "@/utils/date/time";
|
||||
import playbackProfile from "@/utils/playback-profiles";
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
import { getMediaInfoApi } from "@jellyfin/sdk/lib/utils/api/media-info-api";
|
||||
import type { SxProps } from "@mui/material";
|
||||
import type { AxiosResponse } from "axios";
|
||||
import type PlayResult from "src/utils/types/playResult";
|
||||
import { getRuntimeCompact } from "../../utils/date/time";
|
||||
import playbackProfile from "../../utils/playback-profiles";
|
||||
|
||||
type PlayButtonProps = {
|
||||
item: BaseItemDto;
|
||||
@@ -83,53 +78,9 @@ const PlayButton = ({
|
||||
playlistItemId = "",
|
||||
trackIndex,
|
||||
}: PlayButtonProps) => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
|
||||
const navigate = useNavigate();
|
||||
// const [
|
||||
// setUrl,
|
||||
// setPosition,
|
||||
// setDuration,
|
||||
// setItemId,
|
||||
// setItemName,
|
||||
// setAudioStreamIndex,
|
||||
// setVideoStreamIndex,
|
||||
// setSubtitleStreamIndex,
|
||||
// setMediaSourceId,
|
||||
// setUserId,
|
||||
// setMediaContainer,
|
||||
// setSeriesId,
|
||||
// setEpisodeIndex,
|
||||
// ] = usePlaybackStore((state) => [
|
||||
// state.setUrl,
|
||||
// state.setPosition,
|
||||
// state.setDuration,
|
||||
// state.setItemId,
|
||||
// state.setItemName,
|
||||
// state.setAudioStreamIndex,
|
||||
// state.setVideoStreamIndex,
|
||||
// state.setSubtitleStreamIndex,
|
||||
// state.setMediaSourceId,
|
||||
// state.setUserId,
|
||||
// state.setMediaContainer,
|
||||
// state.setSeriesId,
|
||||
// state.setEpisodeIndex,
|
||||
// ]);
|
||||
const [
|
||||
setAudioUrl,
|
||||
setAudioDisplay,
|
||||
setAudioItem,
|
||||
setAudioTracks,
|
||||
setCurrentTrack,
|
||||
setPlaylistItemId,
|
||||
] = useAudioPlayback((state) => [
|
||||
state.setUrl,
|
||||
state.setDisplay,
|
||||
state.setItem,
|
||||
state.setTracks,
|
||||
state.setCurrentTrack,
|
||||
state.setPlaylistItemId,
|
||||
]);
|
||||
const setPlaybackDataLoading = usePlaybackDataLoadStore(
|
||||
(state) => state.setisPending,
|
||||
);
|
||||
@@ -255,24 +206,20 @@ const PlayButton = ({
|
||||
},
|
||||
onSuccess: (result: PlayResult | null) => {
|
||||
if (trackIndex) {
|
||||
setPlaylistItemId(playlistItemId);
|
||||
// setCurrentTrack(trackIndex);
|
||||
// setAudioTracks(result.Items);
|
||||
setAudioUrl(
|
||||
`${api.basePath}/Audio/${result.Items[trackIndex].Id}/universal?deviceId=${api.deviceInfo.id}&userId=${userId}&api_key=${api.accessToken}`,
|
||||
);
|
||||
setAudioItem(result.Items[trackIndex]);
|
||||
setAudioDisplay(true);
|
||||
|
||||
setQueue(result.Items, trackIndex);
|
||||
// Playlist Playback
|
||||
enqueueSnackbar("Playlist playback is WIP", { variant: "info" });
|
||||
} else if (audio) {
|
||||
setAudioItem(result.Items[0]);
|
||||
setAudioTracks(result.Items);
|
||||
setAudioUrl(
|
||||
`${api.basePath}/Audio/${result.Items[0].Id}/universal?deviceId=${api.deviceInfo.id}&userId=${userId}&api_key=${api.accessToken}`,
|
||||
);
|
||||
setAudioDisplay(true);
|
||||
setQueue(result.Items, 0);
|
||||
// Album/Individual audio track playback
|
||||
const urlOptions = {
|
||||
deviceId: api?.deviceInfo.id,
|
||||
userId,
|
||||
api_key: api?.accessToken,
|
||||
};
|
||||
const urlParams = new URLSearchParams(urlOptions).toString();
|
||||
|
||||
const playbackUrl = `${api.basePath}/Audio/${result?.item.Items[0].Id}/universal?${urlParams}`;
|
||||
playAudio(playbackUrl, result?.item.Items[0], undefined);
|
||||
setQueue(result?.item.Items ?? [], 0);
|
||||
} else {
|
||||
// Creates a queue containing all Episodes for a particular season(series) or collection of movies
|
||||
const queue = result?.item.Items;
|
||||
@@ -342,7 +289,7 @@ const PlayButton = ({
|
||||
result?.mediaSource.MediaSources[0].Id,
|
||||
result?.mediaSource.PlaySessionId,
|
||||
);
|
||||
navigate("/player");
|
||||
navigate({ to: "/player" });
|
||||
}
|
||||
},
|
||||
onSettled: () => {
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
import { playItemFromQueue } from "@/utils/store/playback";
|
||||
import useQueue from "@/utils/store/queue";
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { IconButton } from "@mui/material";
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import { useRouteContext } from "@tanstack/react-router";
|
||||
import React from "react";
|
||||
import { useApi } from "src/utils/store/api";
|
||||
import { playItemFromQueue } from "src/utils/store/playback";
|
||||
import useQueue from "src/utils/store/queue";
|
||||
|
||||
const PlayNextButton = () => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const user = useQuery({
|
||||
queryKey: ["user"],
|
||||
queryFn: async () => {
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
import { playItemFromQueue } from "@/utils/store/playback";
|
||||
import useQueue from "@/utils/store/queue";
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { IconButton } from "@mui/material";
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import { useRouteContext } from "@tanstack/react-router";
|
||||
import React from "react";
|
||||
import { useApi } from "src/utils/store/api";
|
||||
import { playItemFromQueue } from "src/utils/store/playback";
|
||||
import useQueue from "src/utils/store/queue";
|
||||
|
||||
const PlayPreviousButton = () => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const user = useQuery({
|
||||
queryKey: ["user"],
|
||||
queryFn: async () => {
|
||||
|
||||
@@ -7,25 +7,37 @@ $image-size: 5em;
|
||||
display: grid !important;
|
||||
opacity: 1 !important;
|
||||
gap: 1em;
|
||||
height: 5em;
|
||||
grid-template-columns: 3em $image-size 1fr;
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
&-image{
|
||||
max-height: $image-size;
|
||||
max-width: $image-size;
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: $border-radius_04;
|
||||
overflow: hidden;
|
||||
&-container {
|
||||
aspect-ratio: 1;
|
||||
overflow: hidden;
|
||||
width: $image-size;
|
||||
height: $image-size;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
&-icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: rgb(255 255 255 / 0.2);
|
||||
border-radius: 10px;
|
||||
.material-symbols-rounded {
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
&-info{
|
||||
display: flex;
|
||||
@@ -35,7 +47,7 @@ $image-size: 5em;
|
||||
}
|
||||
}
|
||||
&-item.Mui-disabled {
|
||||
.queue-item-image{
|
||||
.queue-item-image,.queue-item-image-icon{
|
||||
opacity: 0.5 !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { playItemFromQueue } from "@/utils/store/playback";
|
||||
import useQueue from "@/utils/store/queue";
|
||||
import {
|
||||
IconButton,
|
||||
Menu,
|
||||
@@ -5,18 +7,16 @@ import {
|
||||
MenuList,
|
||||
Typography,
|
||||
} from "@mui/material";
|
||||
import React, { useRef, useState } from "react";
|
||||
import { useApi } from "src/utils/store/api";
|
||||
import { playItemFromQueue } from "src/utils/store/playback";
|
||||
import useQueue from "src/utils/store/queue";
|
||||
import React, { useState } from "react";
|
||||
import { getTypeIcon } from "../utils/iconsCollection";
|
||||
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import { useVirtualizer } from "@tanstack/react-virtual";
|
||||
import "./queueButton.scss";
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
import { useRouteContext } from "@tanstack/react-router";
|
||||
const QueueButton = () => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const [queueItems, currentItemIndex] = useQueue((state) => [
|
||||
state.tracks,
|
||||
state.currentItemIndex,
|
||||
@@ -45,14 +45,6 @@ const QueueButton = () => {
|
||||
},
|
||||
});
|
||||
|
||||
const menuRef = useRef(null);
|
||||
const virtualizer = useVirtualizer({
|
||||
count: queueItems.length,
|
||||
estimateSize: () => 86,
|
||||
getScrollElement: () => menuRef.current,
|
||||
overscan: 3,
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
<Menu
|
||||
@@ -69,7 +61,6 @@ const QueueButton = () => {
|
||||
}}
|
||||
slotProps={{
|
||||
paper: {
|
||||
ref: menuRef,
|
||||
style: {
|
||||
maxHeight: "30em",
|
||||
overflowX: "hidden",
|
||||
@@ -80,32 +71,25 @@ const QueueButton = () => {
|
||||
>
|
||||
<MenuList
|
||||
style={{
|
||||
height: `${virtualizer.getTotalSize()}px`,
|
||||
height: "fit-content",
|
||||
width: " 32em",
|
||||
position: "relative",
|
||||
}}
|
||||
>
|
||||
{virtualizer.getVirtualItems().map((virtualItem) => {
|
||||
const index = virtualItem.index;
|
||||
const item = queueItems[index];
|
||||
{queueItems.map((item, index) => {
|
||||
return (
|
||||
<MenuItem
|
||||
className="queue-item"
|
||||
disabled={index === currentItemIndex}
|
||||
onClick={() => handlePlay.mutate({ index })}
|
||||
key={virtualItem.key}
|
||||
style={{
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
left: 0,
|
||||
height: `${virtualItem.size}px`,
|
||||
transform: `translateY(${virtualItem.start}px)`,
|
||||
}}
|
||||
key={item.Id}
|
||||
>
|
||||
<Typography variant="subtitle2">
|
||||
{item.IndexNumberEnd
|
||||
? `S${item.ParentIndexNumber}:E${item.IndexNumber} / ${item.IndexNumberEnd}`
|
||||
: `S${item.ParentIndexNumber}:E${item.IndexNumber}`}
|
||||
{item.Type === "Audio"
|
||||
? item.IndexNumber ?? 0
|
||||
: item.IndexNumberEnd
|
||||
? `S${item.ParentIndexNumber}:E${item.IndexNumber} / ${item.IndexNumberEnd}`
|
||||
: `S${item.ParentIndexNumber}:E${item.IndexNumber}`}
|
||||
</Typography>
|
||||
<div className="queue-item-image-container">
|
||||
{item.ImageTags?.Primary ? (
|
||||
@@ -116,6 +100,14 @@ const QueueButton = () => {
|
||||
})}
|
||||
alt={item.Name}
|
||||
/>
|
||||
) : item.AlbumPrimaryImageTag?.length > 0 ? (
|
||||
<img
|
||||
className="queue-item-image"
|
||||
src={api?.getItemImageUrl(item?.AlbumId, "Primary", {
|
||||
tag: item.AlbumPrimaryImageTag[0],
|
||||
})}
|
||||
alt={item.Name}
|
||||
/>
|
||||
) : (
|
||||
<div className="queue-item-image-icon">
|
||||
{getTypeIcon(item.Type)}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MediaUrl } from "@jellyfin/sdk/lib/generated-client";
|
||||
import type { MediaUrl } from "@jellyfin/sdk/lib/generated-client";
|
||||
import { Dialog, IconButton } from "@mui/material";
|
||||
import React, { useState } from "react";
|
||||
import ReactPlayer from "react-player";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import React from "react";
|
||||
import { Component, useState } from "react";
|
||||
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useNavigate, useRouteContext } from "@tanstack/react-router";
|
||||
|
||||
import LinearProgress from "@mui/material/LinearProgress";
|
||||
import Typography from "@mui/material/Typography";
|
||||
@@ -12,13 +12,13 @@ import {
|
||||
type BaseItemDto,
|
||||
BaseItemKind,
|
||||
} from "@jellyfin/sdk/lib/generated-client";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import LikeButton from "../buttons/likeButton";
|
||||
import MarkPlayedButton from "../buttons/markPlayedButton";
|
||||
import PlayButton from "../buttons/playButton";
|
||||
import ErrorBoundary from "../errorBoundary";
|
||||
import { getTypeIcon } from "../utils/iconsCollection";
|
||||
import "./card.scss";
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
|
||||
const cardImageAspectRatios = {
|
||||
thumb: 1.777,
|
||||
@@ -57,21 +57,39 @@ export const Card = ({
|
||||
userId: string;
|
||||
seriesId: string | null;
|
||||
hideText: boolean;
|
||||
onClick: Function | null;
|
||||
onClick: () => null | null;
|
||||
disableOverlay: boolean;
|
||||
overrideIcon: any;
|
||||
}) => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const navigate = useNavigate();
|
||||
const defaultOnClick = () => {
|
||||
if (availableSpecialRoutes.includes(item.Type)) {
|
||||
navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`);
|
||||
} else if (!!item.Role || item.Type === BaseItemKind.Person) {
|
||||
navigate(`/person/${item.Id}`);
|
||||
} else if (item.Type === BaseItemKind.MusicArtist) {
|
||||
navigate(`/artist/${item.Id}`);
|
||||
} else {
|
||||
navigate(`/item/${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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import React from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
import MuiCard from "@mui/material/Card";
|
||||
import CardActionArea from "@mui/material/CardActionArea";
|
||||
@@ -10,8 +9,8 @@ import { Blurhash } from "react-blurhash";
|
||||
|
||||
import "./card.scss";
|
||||
|
||||
import { getRuntimeCompact } from "../../utils/date/time";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { getRuntimeCompact } from "@/utils/date/time";
|
||||
import { useNavigate, useRouteContext } from "@tanstack/react-router";
|
||||
import LikeButton from "../buttons/likeButton";
|
||||
import MarkPlayedButton from "../buttons/markPlayedButton";
|
||||
import PlayButton from "../buttons/playButton";
|
||||
@@ -44,10 +43,10 @@ export const EpisodeCard = ({
|
||||
disableRunTime = false,
|
||||
onClick,
|
||||
}) => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useRouteContext({ from: "/" }).api;
|
||||
const navigate = useNavigate();
|
||||
const defaultOnClick = () => {
|
||||
navigate(`/episode/${item.Id}`);
|
||||
navigate({ to: `/episode/${item.Id}` });
|
||||
};
|
||||
return (
|
||||
<div
|
||||
|
||||
@@ -11,16 +11,16 @@ import Typography from "@mui/material/Typography";
|
||||
|
||||
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 } from "react-router-dom";
|
||||
import { endsAt, getRuntime } from "../../utils/date/time";
|
||||
import { useNavigate, useRouteContext } 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 { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { useCarouselStore } from "../../utils/store/carousel";
|
||||
import LikeButton from "../buttons/likeButton";
|
||||
import MarkPlayedButton from "../buttons/markPlayedButton";
|
||||
import PlayButton from "../buttons/playButton";
|
||||
@@ -42,7 +42,7 @@ const availableSpecialRoutes = [
|
||||
* @returns {React.Component}
|
||||
*/
|
||||
const CarouselSlide = ({ item }) => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const navigate = useNavigate();
|
||||
|
||||
const user = useQuery({
|
||||
@@ -56,15 +56,18 @@ const CarouselSlide = ({ item }) => {
|
||||
|
||||
const handleMoreInfo = () => {
|
||||
if (availableSpecialRoutes.includes(item.Type)) {
|
||||
navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`);
|
||||
navigate({
|
||||
to: `/${item.Type.toLocaleLowerCase()}/$id`,
|
||||
params: { id: item.Id },
|
||||
});
|
||||
} else if (!!item.Role || item.Type === BaseItemKind.Person) {
|
||||
navigate(`/person/${item.Id}`);
|
||||
navigate({ to: "/person/$id", params: { id: item.Id } });
|
||||
} else if (item.Type === BaseItemKind.MusicArtist) {
|
||||
navigate(`/artist/${item.Id}`);
|
||||
navigate({ to: "/artist/$id", params: { id: item.Id } });
|
||||
} else if (item.Type === BaseItemKind.Episode) {
|
||||
navigate(`/episode/${item.Id}`);
|
||||
navigate({ to: "/episode/$id", params: { id: item.Id } });
|
||||
} else {
|
||||
navigate(`/item/${item.Id}`);
|
||||
navigate({ to: "/item/$id", params: { id: item.Id } });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -5,24 +5,23 @@ import Paper from "@mui/material/Paper";
|
||||
import Stack from "@mui/material/Stack";
|
||||
import Typography from "@mui/material/Typography";
|
||||
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
import { getRuntimeMusic } from "../../../utils/date/time";
|
||||
|
||||
import { SortOrder } from "@jellyfin/sdk/lib/generated-client";
|
||||
import { useApi } from "../../../utils/store/api";
|
||||
import { useAudioPlayback } from "../../../utils/store/audioPlayback";
|
||||
import LikeButton from "../../buttons/likeButton";
|
||||
import PlayButton from "../../buttons/playButton";
|
||||
|
||||
import TrackList from "../tracksList/index";
|
||||
import "./albumArtist.scss";
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
import { Link, useRouteContext } from "@tanstack/react-router";
|
||||
|
||||
export const ArtistAlbum = ({ user, album, boxProps }) => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const albumTracks = useQuery({
|
||||
queryKey: ["artist", "album", album.Id],
|
||||
queryFn: async () => {
|
||||
@@ -117,7 +116,7 @@ export const ArtistAlbum = ({ user, album, boxProps }) => {
|
||||
</Typography>
|
||||
<MuiLink
|
||||
component={Link}
|
||||
to={`/musicalbum/${album.Id}`}
|
||||
to="/album/$Id"
|
||||
variant="h2"
|
||||
color="inherit"
|
||||
underline="hover"
|
||||
|
||||
@@ -4,16 +4,17 @@ import { Card } from "../../card/card";
|
||||
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 { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
|
||||
import { useApi } from "../../../utils/store/api";
|
||||
import { useRouteContext } from "@tanstack/react-router";
|
||||
|
||||
/**
|
||||
* @description Latest Media Section
|
||||
*/
|
||||
export const LatestMediaSection = ({ latestMediaLib }) => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const user = useQuery({
|
||||
queryKey: ["user"],
|
||||
queryFn: async () => {
|
||||
@@ -55,16 +56,18 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
|
||||
imageType={"Primary"}
|
||||
cardCaption={
|
||||
item.Type === BaseItemKind.Episode
|
||||
? `S${item.ParentIndexNumber}:E${item.IndexNumber} - ${item.Name}`
|
||||
? `S${item.ParentIndexNumber ?? 0}:E${
|
||||
item.IndexNumber ?? 0
|
||||
} - ${item.Name ?? "Unknown"}`
|
||||
: item.Type === BaseItemKind.Series
|
||||
? `${item.ProductionYear} - ${
|
||||
? `${item.ProductionYear} - ${
|
||||
item.EndDate
|
||||
? new Date(item.EndDate).toLocaleString([], {
|
||||
year: "numeric",
|
||||
})
|
||||
})
|
||||
: "Present"
|
||||
}`
|
||||
: item.ProductionYear
|
||||
}`
|
||||
: item.ProductionYear
|
||||
}
|
||||
cardType={
|
||||
item.Type === BaseItemKind.MusicAlbum ||
|
||||
|
||||
@@ -1,824 +0,0 @@
|
||||
import Chip from "@mui/material/Chip";
|
||||
import LinearProgress from "@mui/material/LinearProgress";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import Stack from "@mui/material/Stack";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import React, { useEffect, useState } from "react";
|
||||
|
||||
// import { BaseItemDto } from "";
|
||||
// import { BaseItemPerson } from "@jellyfin/sdk/lib/generated-client/models/base-item-person";
|
||||
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client/models/base-item-kind";
|
||||
import { MediaStreamType } from "@jellyfin/sdk/lib/generated-client/models/media-stream-type";
|
||||
|
||||
import { red, yellow } from "@mui/material/colors";
|
||||
import { endsAt, getRuntime, getRuntimeFull } from "../../../utils/date/time";
|
||||
import LikeButton from "../../buttons/likeButton";
|
||||
import MarkPlayedButton from "../../buttons/markPlayedButton";
|
||||
import PlayButton from "../../buttons/playButton";
|
||||
import { Card } from "../../card/card";
|
||||
|
||||
import { Blurhash } from "react-blurhash";
|
||||
import TextLink from "../../textLink";
|
||||
import "./hero.scss";
|
||||
|
||||
import { ErrorBoundary } from "react-error-boundary";
|
||||
import { useApi } from "../../../utils/store/api";
|
||||
/**
|
||||
* @typedef {Object} Props
|
||||
* @property {import("@jellyfin/sdk/lib/generated-client/models").BaseItemDto} item
|
||||
* @property {Array} queryKey
|
||||
* @property {string} userId
|
||||
* @property {import("@jellyfin/sdk/lib/generated-client/models").BaseItemPerson[]} writers
|
||||
* @property {import("@jellyfin/sdk/lib/generated-client/models").BaseItemPerson[]} directors
|
||||
* @property {import("@jellyfin/sdk/lib/generated-client/models").BaseItemPerson[]} artists
|
||||
* @property {import("@jellyfin/sdk/lib/generated-client/models").NameGuidPair[]} studios
|
||||
* @property {bool} disableInfoStrip
|
||||
* @property {bool} disablePlayButton
|
||||
* @property {bool} disableLikeButton
|
||||
* @property {bool} disableMarkAsPlayedButton
|
||||
* @property {string} albumBy
|
||||
* @property {bool} audioPlayButton
|
||||
* @property {bool} favourParentImg
|
||||
* @property {"portrait"| "thumb"| 'square'} cardType
|
||||
* @property {bool} enableVideoInfoStrip
|
||||
*/
|
||||
|
||||
/**
|
||||
* @description Hero section for item pages
|
||||
* @param {Props}
|
||||
* @returns {React.Component}
|
||||
*/
|
||||
const Hero = ({
|
||||
item,
|
||||
queryKey,
|
||||
userId,
|
||||
writers = [],
|
||||
directors = [],
|
||||
artists = [],
|
||||
studios = [],
|
||||
disableInfoStrip,
|
||||
disablePlayButton,
|
||||
disableLikeButton,
|
||||
disableMarkAsPlayedButton,
|
||||
albumBy,
|
||||
audioPlayButton = false,
|
||||
favourParentImg = true,
|
||||
isEpisode = false,
|
||||
cardType = "portrait",
|
||||
enableVideoInfoStrip = false,
|
||||
}) => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
|
||||
const filterMediaStreamVideo = (source) => {
|
||||
if (source.Type === MediaStreamType.Video) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
const filterMediaStreamAudio = (source) => {
|
||||
if (source.Type === MediaStreamType.Audio) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
const filterMediaStreamSubtitle = (source) => {
|
||||
if (source.Type === MediaStreamType.Subtitle) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
const videoTracks = item.MediaStreams?.filter(filterMediaStreamVideo);
|
||||
const audioTracks = item.MediaStreams?.filter(filterMediaStreamAudio);
|
||||
const subtitleTracks = item.MediaStreams?.filter(filterMediaStreamSubtitle);
|
||||
|
||||
const [currentVideoIndex, setCurrentVideoIndex] = useState(0);
|
||||
const [currentAudioIndex, setCurrentAudioIndex] = useState(0);
|
||||
const [currentSubtitleIndex, setCurrentSubtitleIndex] = useState(0);
|
||||
|
||||
useEffect(() => {
|
||||
if (!!videoTracks && !!audioTracks & !!subtitleTracks) {
|
||||
setCurrentVideoIndex(videoTracks[0]?.Index);
|
||||
setCurrentAudioIndex(audioTracks[0]?.Index);
|
||||
setCurrentSubtitleIndex(subtitleTracks[0]?.Index);
|
||||
}
|
||||
}, []);
|
||||
|
||||
const qualityLabel = () => {
|
||||
if (
|
||||
videoTracks[0]?.DisplayTitle.toLocaleLowerCase().includes("2160p") ||
|
||||
videoTracks[0]?.DisplayTitle.toLocaleLowerCase().includes("4k")
|
||||
) {
|
||||
return "4K";
|
||||
}
|
||||
if (
|
||||
videoTracks[0]?.DisplayTitle.toLocaleLowerCase().includes("1080p") ||
|
||||
videoTracks[0]?.DisplayTitle.toLocaleLowerCase().includes("hd")
|
||||
) {
|
||||
return "HD";
|
||||
}
|
||||
return "SD";
|
||||
};
|
||||
|
||||
const atmosLabel = () => {
|
||||
if (
|
||||
audioTracks[0]?.DisplayTitle.toLocaleLowerCase().includes("atmos") &&
|
||||
audioTracks[0]?.DisplayTitle.toLocaleLowerCase().includes("truehd")
|
||||
) {
|
||||
return "TrueHD | Atmos";
|
||||
}
|
||||
if (audioTracks[0]?.DisplayTitle.toLocaleLowerCase().includes("atmos")) {
|
||||
return "Atmos";
|
||||
}
|
||||
if (audioTracks[0]?.DisplayTitle.toLocaleLowerCase().includes("truehd")) {
|
||||
return "TrueHD";
|
||||
}
|
||||
return "";
|
||||
};
|
||||
|
||||
const surroundSoundLabel = () => {
|
||||
if (audioTracks[0]?.DisplayTitle.includes("7.1")) {
|
||||
return "7.1";
|
||||
}
|
||||
if (audioTracks[0].DisplayTitle.includes("5.1")) {
|
||||
return "5.1";
|
||||
}
|
||||
return "2.0";
|
||||
};
|
||||
|
||||
return (
|
||||
<div
|
||||
className="item-detail-hero hero"
|
||||
style={{
|
||||
marginBottom: "2em",
|
||||
}}
|
||||
>
|
||||
<div className="hero-backdrop">
|
||||
{!!item.ImageBlurHashes.Backdrop && (
|
||||
<>
|
||||
{Object.keys(item.ImageBlurHashes.Backdrop).length !== 0 && (
|
||||
<Blurhash
|
||||
hash={
|
||||
item.ImageBlurHashes.Backdrop[
|
||||
Object.keys(item.ImageBlurHashes.Backdrop)[0]
|
||||
]
|
||||
}
|
||||
width="1080"
|
||||
height="720"
|
||||
resolutionX={64}
|
||||
resolutionY={96}
|
||||
className="hero-backdrop-blurhash"
|
||||
punch={1}
|
||||
/>
|
||||
)}
|
||||
<img
|
||||
className="hero-backdrop-image"
|
||||
src={
|
||||
item.ParentBackdropItemId
|
||||
? `${api.basePath}/Items/${item.ParentBackdropItemId}/Images/Backdrop`
|
||||
: `${api.basePath}/Items/${item.Id}/Images/Backdrop`
|
||||
}
|
||||
style={{
|
||||
opacity: 0,
|
||||
}}
|
||||
onLoad={(e) => {
|
||||
e.target.style.opacity = 1;
|
||||
}}
|
||||
loading="eager"
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
<div className="hero-backdrop-icon-container" />
|
||||
</div>
|
||||
<div
|
||||
className="item-detail-hero-info-container"
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
<div>
|
||||
<div className="item-name">
|
||||
{isEpisode ? (
|
||||
<>
|
||||
<TextLink
|
||||
variant="h2"
|
||||
location={`/series/${item.SeriesId}`}
|
||||
otherProps={{
|
||||
fontWeight: 300,
|
||||
}}
|
||||
>
|
||||
{item.ParentLogoImageTag ? (
|
||||
<img
|
||||
src={`${api.basePath}/Items/${item.SeriesId}/Images/Logo`}
|
||||
className="hero-name-logo"
|
||||
onLoad={(e) => {
|
||||
e.target.style.opacity = 1;
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
item.SeriesName
|
||||
)}
|
||||
</TextLink>
|
||||
<Typography variant="h3" fontWeight={300}>
|
||||
{`S${item.ParentIndexNumber}:E${item.IndexNumber} ${item.Name}`}
|
||||
</Typography>
|
||||
</>
|
||||
) : (
|
||||
<Typography variant="h2" fontWeight={300}>
|
||||
{item.ImageTags.Logo ? (
|
||||
<img
|
||||
src={
|
||||
item.SeriesId
|
||||
? `${api.basePath}/Items/${item.SeriesId}/Images/Logo`
|
||||
: `${api.basePath}/Items/${item.Id}/Images/Logo`
|
||||
}
|
||||
className="hero-name-logo"
|
||||
onLoad={(e) => {
|
||||
e.target.style.opacity = 1;
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
item.Name
|
||||
)}
|
||||
</Typography>
|
||||
)}
|
||||
{!!albumBy && (
|
||||
<TextLink
|
||||
variant="h6"
|
||||
location={`/artist/${albumBy.Id}`}
|
||||
otherProps={{
|
||||
fontWeight: 400,
|
||||
style: {
|
||||
opacity: 0.8,
|
||||
},
|
||||
}}
|
||||
>
|
||||
By {albumBy.Name}
|
||||
</TextLink>
|
||||
)}
|
||||
</div>
|
||||
{enableVideoInfoStrip && (
|
||||
<Stack direction="row" gap={1} mb={2} mt={2}>
|
||||
{!!qualityLabel() && (
|
||||
<Chip
|
||||
variant="filled"
|
||||
label={
|
||||
<Typography
|
||||
variant="caption"
|
||||
fontWeight={600}
|
||||
// fontFamily="JetBrains Mono Variable"
|
||||
>
|
||||
{qualityLabel()}
|
||||
</Typography>
|
||||
}
|
||||
sx={{
|
||||
borderRadius: "8px !important",
|
||||
"& .MuiChip-label": {
|
||||
fontSize: "2.2em",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{!!surroundSoundLabel() && (
|
||||
<Chip
|
||||
variant="filled"
|
||||
label={
|
||||
<Typography
|
||||
variant="caption"
|
||||
fontWeight={600}
|
||||
fontFamily="JetBrains Mono Variable"
|
||||
>
|
||||
{surroundSoundLabel()}
|
||||
</Typography>
|
||||
}
|
||||
sx={{
|
||||
borderRadius: "8px !important",
|
||||
"& .MuiChip-label": {
|
||||
fontSize: "2.2em",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{!!videoTracks[0]?.VideoRangeType && (
|
||||
<Chip
|
||||
variant="filled"
|
||||
label={
|
||||
<Typography
|
||||
variant="caption"
|
||||
fontWeight={600}
|
||||
fontFamily="JetBrains Mono Variable"
|
||||
>
|
||||
{videoTracks[0].VideoRangeType}
|
||||
</Typography>
|
||||
}
|
||||
sx={{
|
||||
borderRadius: "8px !important",
|
||||
"& .MuiChip-label": {
|
||||
fontSize: "2.2em",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{!!atmosLabel() && (
|
||||
<Chip
|
||||
variant="filled"
|
||||
label={
|
||||
<Typography
|
||||
variant="caption"
|
||||
fontWeight={600}
|
||||
fontFamily="JetBrains Mono Variable"
|
||||
>
|
||||
{atmosLabel()}
|
||||
</Typography>
|
||||
}
|
||||
sx={{
|
||||
borderRadius: "8px !important",
|
||||
"& .MuiChip-label": {
|
||||
fontSize: "2.2em",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{!!subtitleTracks.length > 0 && (
|
||||
<Chip
|
||||
variant="filled"
|
||||
label={
|
||||
<Typography
|
||||
variant="caption"
|
||||
fontWeight={600}
|
||||
fontFamily="JetBrains Mono Variable"
|
||||
>
|
||||
CC
|
||||
</Typography>
|
||||
}
|
||||
sx={{
|
||||
borderRadius: "8px !important",
|
||||
"& .MuiChip-label": {
|
||||
fontSize: "2.2em",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</Stack>
|
||||
)}
|
||||
{!disableInfoStrip && (
|
||||
<Stack
|
||||
direction="row"
|
||||
gap={2}
|
||||
className="hero-carousel-info"
|
||||
mt={1}
|
||||
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"}
|
||||
/>
|
||||
<ErrorBoundary fallback>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
gap: "0.25em",
|
||||
alignItems: "center",
|
||||
}}
|
||||
className="hero-carousel-info-rating"
|
||||
>
|
||||
<div
|
||||
className="material-symbols-rounded "
|
||||
style={{
|
||||
// fontSize: "2.2em",
|
||||
color: yellow[400],
|
||||
fontVariationSettings:
|
||||
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
|
||||
}}
|
||||
>
|
||||
star
|
||||
</div>
|
||||
<Typography
|
||||
style={{
|
||||
opacity: "0.8",
|
||||
}}
|
||||
variant="subtitle1"
|
||||
>
|
||||
{Math.round(item.CommunityRating * 10) / 10}
|
||||
</Typography>
|
||||
</div>
|
||||
</ErrorBoundary>
|
||||
{Boolean(item.CriticRating) && (
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
gap: "0.25em",
|
||||
alignItems: "center",
|
||||
}}
|
||||
className="hero-carousel-info-rating"
|
||||
>
|
||||
<div
|
||||
className="material-symbols-rounded "
|
||||
style={{
|
||||
color: red[400],
|
||||
fontVariationSettings:
|
||||
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
|
||||
}}
|
||||
>
|
||||
thumb_up
|
||||
</div>
|
||||
<Typography
|
||||
style={{
|
||||
opacity: "0.8",
|
||||
}}
|
||||
variant="subtitle1"
|
||||
>
|
||||
{item.CriticRating}
|
||||
</Typography>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!!item.RunTimeTicks && (
|
||||
<Typography style={{ opacity: "0.8" }} variant="subtitle1">
|
||||
{getRuntime(item.RunTimeTicks)}
|
||||
</Typography>
|
||||
)}
|
||||
{!!item.RunTimeTicks && (
|
||||
<Typography style={{ opacity: "0.8" }} variant="subtitle1">
|
||||
{endsAt(item.RunTimeTicks)}
|
||||
</Typography>
|
||||
)}
|
||||
</Stack>
|
||||
)}
|
||||
<Typography style={{ opacity: "0.8" }} variant="subtitle1" mt={1}>
|
||||
{item.Genres.join(", ")}
|
||||
</Typography>
|
||||
</div>
|
||||
{item.UserData?.PlaybackPositionTicks > 0 && (
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
gap: "0.5em",
|
||||
margin: " 1em 0 0 0",
|
||||
}}
|
||||
>
|
||||
<LinearProgress
|
||||
variant="determinate"
|
||||
value={item.UserData?.PlayedPercentage}
|
||||
style={{
|
||||
width: "50%",
|
||||
borderRadius: "1em",
|
||||
}}
|
||||
color="white"
|
||||
/>
|
||||
<Typography variant="subtitle1" fontWeight={600}>
|
||||
{getRuntimeFull(
|
||||
item.RunTimeTicks - item.UserData.PlaybackPositionTicks,
|
||||
)}{" "}
|
||||
remaining
|
||||
</Typography>
|
||||
</div>
|
||||
)}
|
||||
<div
|
||||
style={{
|
||||
margin: "1em 0",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
gap: "1em",
|
||||
}}
|
||||
className="item-button-container"
|
||||
>
|
||||
{!disablePlayButton && (
|
||||
<PlayButton
|
||||
itemId={item.Id}
|
||||
userId={userId}
|
||||
itemType={item.Type}
|
||||
currentVideoTrack={currentVideoIndex}
|
||||
currentAudioTrack={currentAudioIndex}
|
||||
currentSubTrack={currentSubtitleIndex}
|
||||
buttonProps={{
|
||||
size: "large",
|
||||
}}
|
||||
itemUserData={item.UserData}
|
||||
audio={audioPlayButton}
|
||||
playlistItemId={item.Type === BaseItemKind.Playlist && item.Id}
|
||||
/>
|
||||
)}
|
||||
{!disableLikeButton && (
|
||||
<LikeButton
|
||||
queryKey={["item", item.Id]}
|
||||
itemId={item.Id}
|
||||
itemName={item.Name}
|
||||
isFavorite={item.UserData?.IsFavorite}
|
||||
userId={userId}
|
||||
/>
|
||||
)}
|
||||
{!disableMarkAsPlayedButton && (
|
||||
<MarkPlayedButton
|
||||
queryKey={["item", item.Id]}
|
||||
itemId={item.Id}
|
||||
itemName={item.Name}
|
||||
isPlayed={item.UserData?.Played}
|
||||
userId={userId}
|
||||
/>
|
||||
)}{" "}
|
||||
</div>
|
||||
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
gap: "0.4em",
|
||||
maxWidth: "60%",
|
||||
}}
|
||||
>
|
||||
{Boolean(videoTracks?.length) && (
|
||||
<div className="hero-grid">
|
||||
<Typography
|
||||
variant="subtitle1"
|
||||
style={{
|
||||
opacity: 0.6,
|
||||
}}
|
||||
noWrap
|
||||
>
|
||||
Video
|
||||
</Typography>
|
||||
<TextField
|
||||
size="small"
|
||||
value={currentVideoIndex}
|
||||
select
|
||||
onChange={(e) => setCurrentVideoIndex(e.target.value)}
|
||||
SelectProps={{
|
||||
MenuProps: {
|
||||
disableScrollLock: true,
|
||||
},
|
||||
}}
|
||||
>
|
||||
{videoTracks.map((track) => {
|
||||
return (
|
||||
<MenuItem key={track.Index} value={track.Index}>
|
||||
{track.DisplayTitle}
|
||||
</MenuItem>
|
||||
);
|
||||
})}
|
||||
</TextField>
|
||||
</div>
|
||||
)}
|
||||
{Boolean(audioTracks?.length) && (
|
||||
<div className="hero-grid">
|
||||
<Typography
|
||||
variant="subtitle1"
|
||||
style={{
|
||||
opacity: 0.6,
|
||||
}}
|
||||
noWrap
|
||||
>
|
||||
Audio
|
||||
</Typography>
|
||||
<TextField
|
||||
size="small"
|
||||
value={currentAudioIndex}
|
||||
select
|
||||
onChange={(e) => setCurrentAudioIndex(e.target.value)}
|
||||
SelectProps={{
|
||||
MenuProps: {
|
||||
disableScrollLock: true,
|
||||
},
|
||||
}}
|
||||
>
|
||||
{audioTracks.map((track) => {
|
||||
return (
|
||||
<MenuItem key={track.Index} value={track.Index}>
|
||||
{track.DisplayTitle}
|
||||
</MenuItem>
|
||||
);
|
||||
})}
|
||||
</TextField>
|
||||
</div>
|
||||
)}
|
||||
{Boolean(subtitleTracks?.length) && (
|
||||
<div className="hero-grid">
|
||||
<Typography
|
||||
variant="subtitle1"
|
||||
style={{
|
||||
opacity: 0.6,
|
||||
}}
|
||||
noWrap
|
||||
>
|
||||
Subtitle
|
||||
</Typography>
|
||||
<TextField
|
||||
size="small"
|
||||
value={currentSubtitleIndex}
|
||||
select
|
||||
onChange={(e) => {
|
||||
console.log(e.target.value);
|
||||
setCurrentSubtitleIndex(e.target.value);
|
||||
}}
|
||||
SelectProps={{
|
||||
MenuProps: {
|
||||
disableScrollLock: true,
|
||||
},
|
||||
}}
|
||||
>
|
||||
{subtitleTracks.map((track) => {
|
||||
return (
|
||||
<MenuItem key={track.Index} value={track.Index}>
|
||||
{track.DisplayTitle}
|
||||
</MenuItem>
|
||||
);
|
||||
})}
|
||||
</TextField>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
marginTop: "0.2em",
|
||||
}}
|
||||
>
|
||||
<Typography fontStyle="italic" variant="h5" mb={1} mt={1}>
|
||||
{item.Taglines[0]}
|
||||
</Typography>
|
||||
<Typography variant="subtitle1">{item.Overview}</Typography>
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
marginTop: "2em",
|
||||
alignSelf: "flex-end",
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
{writers.length > 0 && (
|
||||
<div className="hero-grid">
|
||||
<Typography
|
||||
variant="subtitle1"
|
||||
style={{
|
||||
opacity: 0.6,
|
||||
}}
|
||||
noWrap
|
||||
>
|
||||
Written by
|
||||
</Typography>
|
||||
<div className="hero-text-container">
|
||||
{writers.map((writer, index) => (
|
||||
<>
|
||||
<TextLink
|
||||
key={writer.Id}
|
||||
variant={"subtitle1"}
|
||||
location={`/person/${writer.Id}`}
|
||||
>
|
||||
{writer.Name}
|
||||
</TextLink>
|
||||
{index !== writers.length - 1 && (
|
||||
<span
|
||||
style={{
|
||||
whiteSpace: "pre",
|
||||
}}
|
||||
>
|
||||
,{" "}
|
||||
</span>
|
||||
)}
|
||||
</>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{directors.length > 0 && (
|
||||
<div
|
||||
style={{
|
||||
marginTop: "0.5em",
|
||||
}}
|
||||
className="hero-grid"
|
||||
>
|
||||
<Typography
|
||||
variant="subtitle1"
|
||||
style={{
|
||||
opacity: 0.6,
|
||||
}}
|
||||
noWrap
|
||||
>
|
||||
Directed by
|
||||
</Typography>
|
||||
<div className="hero-text-container">
|
||||
{directors.map((director, index) => (
|
||||
<>
|
||||
<TextLink
|
||||
key={director.Id}
|
||||
variant={"subtitle1"}
|
||||
location={`/person/${director.Id}`}
|
||||
>
|
||||
{director.Name}
|
||||
</TextLink>
|
||||
{index !== directors.length - 1 && (
|
||||
<span
|
||||
style={{
|
||||
whiteSpace: "pre",
|
||||
}}
|
||||
>
|
||||
,{" "}
|
||||
</span>
|
||||
)}
|
||||
</>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{artists.length > 0 && (
|
||||
<div
|
||||
className="hero-grid"
|
||||
style={{
|
||||
marginTop: "0.5em",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
variant="subtitle1"
|
||||
style={{
|
||||
opacity: 0.6,
|
||||
}}
|
||||
noWrap
|
||||
>
|
||||
Artists
|
||||
</Typography>
|
||||
<div className="hero-text-container">
|
||||
{artists.map((artist, index) => (
|
||||
<>
|
||||
<TextLink
|
||||
key={artist.Id}
|
||||
variant={"subtitle1"}
|
||||
location={`/artist/${artist.Id}`}
|
||||
>
|
||||
{artist.Name}
|
||||
</TextLink>
|
||||
{index !== artists.length - 1 && (
|
||||
<span
|
||||
style={{
|
||||
whiteSpace: "pre",
|
||||
}}
|
||||
>
|
||||
,{" "}
|
||||
</span>
|
||||
)}
|
||||
</>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{studios.length > 0 && (
|
||||
<div
|
||||
className="hero-grid"
|
||||
style={{
|
||||
marginTop: "0.5em",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
variant="subtitle1"
|
||||
style={{
|
||||
opacity: 0.6,
|
||||
}}
|
||||
noWrap
|
||||
>
|
||||
Studios
|
||||
</Typography>
|
||||
<Typography variant="subtitle1">
|
||||
{studios.map((studio) => studio.Name).join(", ")}
|
||||
</Typography>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="item-detail-primaryImage">
|
||||
<Card
|
||||
item={item}
|
||||
seriesId={favourParentImg && item.SeriesId}
|
||||
imageType={"Primary"}
|
||||
cardType={cardType}
|
||||
queryKey={queryKey}
|
||||
userId={userId}
|
||||
imageBlurhash={
|
||||
!!item.ImageBlurHashes?.Primary &&
|
||||
item.ImageBlurHashes?.Primary[
|
||||
Object.keys(item.ImageBlurHashes.Primary)[0]
|
||||
]
|
||||
}
|
||||
hideText
|
||||
disablePadding
|
||||
disableOverlay
|
||||
onClick={() => {}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Hero;
|
||||
|
||||
Hero.defaultProps = {
|
||||
disableInfoStrip: false,
|
||||
disablePlayButton: false,
|
||||
disableLikeButton: false,
|
||||
disableMarkAsPlayedButton: false,
|
||||
};
|
||||
@@ -1,70 +0,0 @@
|
||||
$maskPercentage: 40%;
|
||||
.hero {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
gap: 2em;
|
||||
justify-content: space-between;
|
||||
padding-right: 1em;
|
||||
.item-detail-primaryImage {
|
||||
width: 26%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
&-backdrop {
|
||||
position: absolute;
|
||||
background-attachment: scroll;
|
||||
width: calc(100vw + 100px);
|
||||
height: calc(100vh + 100px);
|
||||
top: -50px;
|
||||
left: -50px;
|
||||
z-index: -1;
|
||||
filter: brightness(0.4);
|
||||
mask-image: linear-gradient(to bottom, black 40%, transparent),
|
||||
linear-gradient(to left, black 40%, transparent);
|
||||
-webkit-mask-image: linear-gradient(to bottom, black 40%, transparent),
|
||||
linear-gradient(to left, black 40%, transparent);
|
||||
mask-composite: source-in;
|
||||
-webkit-mask-composite: source-in;
|
||||
& > * {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
&-image {
|
||||
object-fit: cover;
|
||||
z-index: 1;
|
||||
}
|
||||
&-blurhash {
|
||||
z-index: 0;
|
||||
}
|
||||
&-icon {
|
||||
&-container {
|
||||
background: url(../../../assets/herobg.png);
|
||||
background-size: cover;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-grid {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
grid-template-columns: 1fr 85%;
|
||||
}
|
||||
|
||||
&-name-logo {
|
||||
width: 10.4em;
|
||||
max-height: 2.6em;
|
||||
object-fit: contain;
|
||||
object-position: left;
|
||||
opacity: 0;
|
||||
transition: opacity $transition-time-fast;
|
||||
filter: drop-shadow(0px 4px 10px rgb(0 0 0 / 0.5));
|
||||
}
|
||||
&-text-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
@@ -2,13 +2,14 @@ import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
|
||||
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { useRouteContext } from "@tanstack/react-router";
|
||||
import React from "react";
|
||||
import { useApi } from "../../../../utils/store/api";
|
||||
import { Card } from "../../../card/card";
|
||||
import { CardScroller } from "../../../cardScroller/cardScroller";
|
||||
|
||||
const GenreView = ({ libraryId, genreId, genreName, userId }) => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useRouteContext({ from: "/" }).api;
|
||||
|
||||
const items = useQuery({
|
||||
queryKey: ["library", "genreItem", genreId],
|
||||
queryFn: async () => {
|
||||
|
||||
@@ -5,17 +5,18 @@ import React from "react";
|
||||
import type { BaseItemDto, UserDto } from "@jellyfin/sdk/lib/generated-client";
|
||||
|
||||
import { getRuntimeMusic } from "../../../utils/date/time";
|
||||
import { useApi } from "../../../utils/store/api";
|
||||
import { useAudioPlayback } from "../../../utils/store/audioPlayback";
|
||||
import LikeButton from "../../buttons/likeButton";
|
||||
import "./tracksList.scss";
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
import { useRouteContext } from "@tanstack/react-router";
|
||||
|
||||
export default function TracksList({
|
||||
tracks,
|
||||
user,
|
||||
queryKey,
|
||||
}: { tracks: BaseItemDto[]; user: UserDto; queryKey: [] }) {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
|
||||
const [
|
||||
currentItem,
|
||||
@@ -58,11 +59,11 @@ export default function TracksList({
|
||||
</div>
|
||||
{tracks.map((track, index) => (
|
||||
<div
|
||||
className={currentItem.Id === track.Id ? "track playing" : "track"}
|
||||
className={currentItem?.Id === track.Id ? "track playing" : "track"}
|
||||
key={track.Id}
|
||||
onClick={() => playTrack(index)}
|
||||
>
|
||||
{currentItem.Id === track.Id ? (
|
||||
{currentItem?.Id === track.Id ? (
|
||||
<span className="material-symbols-rounded ">equalizer</span>
|
||||
) : (
|
||||
<Typography>{track.IndexNumber ?? "-"}</Typography>
|
||||
@@ -81,7 +82,7 @@ export default function TracksList({
|
||||
>
|
||||
{track.Name}
|
||||
</Typography>
|
||||
<Typography>{getRuntimeMusic(track.RunTimeTicks)}</Typography>
|
||||
<Typography>{getRuntimeMusic(track?.RunTimeTicks)}</Typography>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import Typography from "@mui/material/Typography";
|
||||
import React from "react";
|
||||
import { getRuntimeMusic } from "../../utils/date/time";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { useAudioPlayback } from "../../utils/store/audioPlayback";
|
||||
import LikeButton from "../buttons/likeButton";
|
||||
import PlayButton from "../buttons/playButton";
|
||||
import TextLink from "../textLink";
|
||||
import "./musicTrack.scss";
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
import { useRouteContext } from "@tanstack/react-router";
|
||||
|
||||
/**
|
||||
* @typedef {Object} Props
|
||||
@@ -33,7 +34,7 @@ const MusicTrack = ({
|
||||
trackIndex,
|
||||
className = "",
|
||||
}) => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const [currentTrackItem] = useAudioPlayback((state) => [state.item]);
|
||||
|
||||
return (
|
||||
@@ -87,7 +88,7 @@ const MusicTrack = ({
|
||||
variant="subtitle1"
|
||||
style={{
|
||||
color:
|
||||
item.Id === currentTrackItem.Id ? "hsl(337, 96%, 56%)" : "white",
|
||||
item.Id === currentTrackItem?.Id ? "hsl(337, 96%, 56%)" : "white",
|
||||
}}
|
||||
>
|
||||
{item.Name}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { LinearProgress } from "@mui/material";
|
||||
import { useNProgress } from "@tanem/react-nprogress";
|
||||
import React from "react";
|
||||
import type React from "react";
|
||||
|
||||
const NProgress: React.FC<{ isAnimating: boolean | number }> = ({
|
||||
isAnimating,
|
||||
@@ -19,7 +19,7 @@ const NProgress: React.FC<{ isAnimating: boolean | number }> = ({
|
||||
top: "0",
|
||||
left: "0",
|
||||
right: "0",
|
||||
zIndex: "10000",
|
||||
zIndex: "10001",
|
||||
}}
|
||||
>
|
||||
<LinearProgress
|
||||
|
||||
@@ -4,8 +4,8 @@ import Typography from "@mui/material/Typography";
|
||||
import { red } from "@mui/material/colors";
|
||||
import React from "react";
|
||||
|
||||
export const ErrorNotice = ({ error, resetErrorBoundary }) => {
|
||||
console.error(error);
|
||||
export const ErrorNotice = ({ error }) => {
|
||||
console.log(error);
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
@@ -46,7 +46,7 @@ export const ErrorNotice = ({ error, resetErrorBoundary }) => {
|
||||
// opacity: 0.6,
|
||||
}}
|
||||
>
|
||||
{error.message}
|
||||
{JSON.stringify(error.message)}
|
||||
</Typography>
|
||||
</Box>
|
||||
);
|
||||
|
||||
@@ -4,19 +4,13 @@ $image-size: 4em;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: rgb(0 0 0 / 0.6);
|
||||
z-index: 10;
|
||||
display: grid;
|
||||
padding: 0.5em 1em;
|
||||
// margin: 1em;
|
||||
backdrop-filter: blur(10px);
|
||||
// border-radius: 10px;
|
||||
// overflow: hidden;
|
||||
padding: 0.5em 1.5em;
|
||||
gap: 1em;
|
||||
box-shadow: 0 0 20px rgb(0 0 0 / 0.25);
|
||||
border-top: 1.2px solid rgb(255 255 255 / 0.2);
|
||||
grid-template-columns: 25% 1fr 25%;
|
||||
|
||||
grid-template-columns: 30% 1fr 30%;
|
||||
background: rgb(0 0 0 / 0.8) !important;
|
||||
#waveform {
|
||||
width: 100%;
|
||||
transform: scaleY(0);
|
||||
@@ -35,7 +29,7 @@ $image-size: 4em;
|
||||
}
|
||||
&-info {
|
||||
display: grid;
|
||||
gap: 0.5em;
|
||||
gap: 1em;
|
||||
grid-template-columns: minmax(0, $image-size) minmax(0, 1fr);
|
||||
width: fit-content;
|
||||
align-items: center;
|
||||
@@ -53,14 +47,12 @@ $image-size: 4em;
|
||||
|
||||
position: relative;
|
||||
&-container {
|
||||
border-radius: 5px;
|
||||
border-radius: $border-radius_04;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
height: fit-content;
|
||||
aspect-ratio: 1;
|
||||
background: rgb(255 255 255 / 0.1);
|
||||
|
||||
border: 1.2px solid rgb(255 255 255 / 0.1);
|
||||
}
|
||||
&-icon {
|
||||
position: absolute;
|
||||
|
||||
@@ -19,23 +19,24 @@ import Typography from "@mui/material/Typography";
|
||||
|
||||
import WaveSurfer from "wavesurfer.js";
|
||||
|
||||
import { useAudioPlayback } from "../../../utils/store/audioPlayback";
|
||||
import useQueue, { setTrackIndex } from "../../../utils/store/queue";
|
||||
import { useAudioPlayback } from "@/utils/store/audioPlayback";
|
||||
import useQueue from "@/utils/store/queue";
|
||||
|
||||
import { AnimatePresence } from "framer-motion";
|
||||
import "./audioPlayer.scss";
|
||||
|
||||
import { getRuntimeMusic, secToTicks } from "@/utils/date/time";
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { getRuntimeMusic, secToTicks } from "../../../utils/date/time";
|
||||
|
||||
import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api/playstate-api";
|
||||
import { theme } from "../../../theme";
|
||||
import { useApi } from "../../../utils/store/api";
|
||||
import MusicTrack from "../../musicTrack";
|
||||
import PlayNextButton from "@/components/buttons/playNextButton";
|
||||
import PlayPreviousButton from "@/components/buttons/playPreviousButtom";
|
||||
import QueueButton from "@/components/buttons/queueButton";
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
import { useRouteContext } from "@tanstack/react-router";
|
||||
|
||||
const AudioPlayer = () => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const [
|
||||
url,
|
||||
display,
|
||||
@@ -43,22 +44,10 @@ const AudioPlayer = () => {
|
||||
// tracks,
|
||||
// currentTrack,
|
||||
setCurrentTrack,
|
||||
setAudioUrl,
|
||||
setAudioItem,
|
||||
setAudioTracks,
|
||||
resetPlayer,
|
||||
playlistItemId,
|
||||
] = useAudioPlayback((state) => [
|
||||
state.url,
|
||||
state.display,
|
||||
state.item,
|
||||
// state.tracks,
|
||||
// state.currentTrack,
|
||||
state.setCurrentTrack,
|
||||
state.setUrl,
|
||||
state.setItem,
|
||||
state.setTracks,
|
||||
state.reset,
|
||||
state.playlistItemId,
|
||||
]);
|
||||
|
||||
@@ -91,11 +80,6 @@ const AudioPlayer = () => {
|
||||
|
||||
const [currentTime, setCurrentTime] = useState(0);
|
||||
|
||||
const [queueButton, setQueueButton] = useState(null);
|
||||
const handleOpenQueue = (event) => {
|
||||
setQueueButton(queueButton ? null : event.currentTarget);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (display) {
|
||||
const waveSurfer = WaveSurfer.create({
|
||||
@@ -170,43 +154,6 @@ const AudioPlayer = () => {
|
||||
waveSurferRef.current.playPause();
|
||||
};
|
||||
|
||||
const handleNext = () => {
|
||||
setPlaying(false);
|
||||
// setCurrentTrack(currentTrack + 1);
|
||||
setAudioUrl(
|
||||
`${api.basePath}/Audio/${
|
||||
tracks[currentTrack + 1].Id
|
||||
}/universal?deviceId=${api.deviceInfo.id}&userId=${
|
||||
user.data.Id
|
||||
}&api_key=${api.accessToken}`,
|
||||
);
|
||||
|
||||
setTrackIndex(currentTrack + 1);
|
||||
|
||||
// console.info(tracks[currentTrack + 1]);
|
||||
|
||||
console.log(currentTrack);
|
||||
// setAudioItem(tracks[currentTrack + 1]);
|
||||
setShowWaveform(false);
|
||||
};
|
||||
|
||||
const handlePrevious = () => {
|
||||
setPlaying(false);
|
||||
// setCurrentTrack(currentTrack - 1);
|
||||
setAudioUrl(
|
||||
`${api.basePath}/Audio/${
|
||||
tracks[currentTrack - 1].Id
|
||||
}/universal?deviceId=${api.deviceInfo.id}&userId=${
|
||||
user.data.Id
|
||||
}&api_key=${api.accessToken}`,
|
||||
);
|
||||
setTrackIndex(currentTrack - 1);
|
||||
// setAudioItem(tracks[currentTrack - 1]);
|
||||
setShowWaveform(false);
|
||||
};
|
||||
|
||||
console.log(tracks);
|
||||
|
||||
const info = useMemo(
|
||||
() => (
|
||||
<div
|
||||
@@ -225,10 +172,8 @@ const AudioPlayer = () => {
|
||||
<img
|
||||
alt={tracks[currentTrack]?.Name}
|
||||
className="audio-player-image"
|
||||
src={api.getItemImageUrl(
|
||||
Object.keys(tracks[currentTrack]?.ImageTags).length === 0
|
||||
? item.AlbumId
|
||||
: item.Id,
|
||||
src={api?.getItemImageUrl(
|
||||
!item?.ImageTags.Primary ? item?.AlbumId : item?.Id,
|
||||
"Primary",
|
||||
{
|
||||
quality: 85,
|
||||
@@ -243,38 +188,32 @@ const AudioPlayer = () => {
|
||||
</div>
|
||||
<div className="audio-player-info-text">
|
||||
<Typography
|
||||
variant="subtitle1"
|
||||
variant="subtitle2"
|
||||
style={{
|
||||
width: "100%",
|
||||
}}
|
||||
fontWeight={500}
|
||||
>
|
||||
{tracks[currentTrack].IndexNumber
|
||||
? `${tracks[currentTrack].IndexNumber}. ${tracks[currentTrack].Name}`
|
||||
: tracks[currentTrack].Name}
|
||||
{item?.Name}
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="subtitle2"
|
||||
variant="caption"
|
||||
style={{
|
||||
opacity: 0.5,
|
||||
}}
|
||||
noWrap
|
||||
fontWeight={400}
|
||||
>
|
||||
by {tracks[currentTrack].Artists.map((artist) => artist).join(",")}
|
||||
by {item?.Artists.map((artist) => artist).join(",")}
|
||||
</Typography>
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
[currentTrack],
|
||||
[tracks[currentTrack]?.Id, currentTrack],
|
||||
);
|
||||
|
||||
const controls = useMemo(
|
||||
() => (
|
||||
<div style={{ display: "flex", gap: "1em" }}>
|
||||
<IconButton onClick={handlePrevious} disabled={currentTrack === 0}>
|
||||
<div className="material-symbols-rounded">skip_previous</div>
|
||||
</IconButton>
|
||||
<PlayPreviousButton />
|
||||
<div
|
||||
style={{
|
||||
display: "inline-flex",
|
||||
@@ -283,15 +222,6 @@ const AudioPlayer = () => {
|
||||
position: "relative",
|
||||
}}
|
||||
>
|
||||
<CircularProgress
|
||||
size={48}
|
||||
style={{
|
||||
position: "absolute",
|
||||
zIndex: 1,
|
||||
opacity: loading ? 1 : 0,
|
||||
transition: "opacity 500ms",
|
||||
}}
|
||||
/>
|
||||
<Fab size="small" onClick={handlePlayPause}>
|
||||
<div
|
||||
className="material-symbols-rounded"
|
||||
@@ -303,15 +233,10 @@ const AudioPlayer = () => {
|
||||
</div>
|
||||
</Fab>
|
||||
</div>
|
||||
<IconButton
|
||||
onClick={handleNext}
|
||||
disabled={tracks.length - 1 === currentTrack}
|
||||
>
|
||||
<div className="material-symbols-rounded">skip_next</div>
|
||||
</IconButton>
|
||||
<PlayNextButton />
|
||||
</div>
|
||||
),
|
||||
[currentTrack, loading, playing, tracks.length],
|
||||
[tracks[currentTrack]?.Id, loading, playing, tracks.length],
|
||||
);
|
||||
|
||||
const buttons = useMemo(
|
||||
@@ -323,130 +248,7 @@ const AudioPlayer = () => {
|
||||
justifyContent: "flex-end",
|
||||
}}
|
||||
>
|
||||
<Popper
|
||||
open={Boolean(queueButton)}
|
||||
anchorEl={queueButton}
|
||||
placement="top"
|
||||
style={{
|
||||
zIndex: 100,
|
||||
}}
|
||||
disablePortal
|
||||
modifiers={[
|
||||
{
|
||||
name: "flip",
|
||||
enabled: true,
|
||||
options: {
|
||||
altBoundary: true,
|
||||
rootBoundary: "document",
|
||||
padding: 8,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "preventOverflow",
|
||||
enabled: true,
|
||||
options: {
|
||||
altAxis: true,
|
||||
altBoundary: true,
|
||||
tether: true,
|
||||
rootBoundary: "document",
|
||||
padding: 8,
|
||||
},
|
||||
},
|
||||
]}
|
||||
transition
|
||||
>
|
||||
{({ TransitionProps }) => (
|
||||
<Grow
|
||||
{...TransitionProps}
|
||||
style={{
|
||||
transformOrigin: "50% 100% 0",
|
||||
}}
|
||||
timeout={250}
|
||||
>
|
||||
<Paper
|
||||
className="audio-player-playlist"
|
||||
style={{
|
||||
padding: "1em",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
width: "34em",
|
||||
maxHeight: "24em",
|
||||
overflowY: "auto",
|
||||
borderRadius: "20px",
|
||||
marginBottom: "2.4em",
|
||||
}}
|
||||
>
|
||||
{tracks.map((track, index) => {
|
||||
return (
|
||||
<div
|
||||
className={
|
||||
track.Id === tracks[currentTrack].Id
|
||||
? "audio-player-playlist-track active"
|
||||
: "audio-player-playlist-track"
|
||||
}
|
||||
onClick={() => setTrackIndex(index)}
|
||||
>
|
||||
<div className="audio-player-playlist-track-image">
|
||||
{Object.keys(track.ImageTags).includes("Primary") ? (
|
||||
<img
|
||||
alt={track.Name}
|
||||
src={api.getItemImageUrl(track.Id, "Primary", {
|
||||
quality: 80,
|
||||
tag: track.ImageTags["Primary"],
|
||||
fillWidth: 92,
|
||||
fillHeight: 92,
|
||||
})}
|
||||
style={{
|
||||
width: "inherit",
|
||||
height: "inherit",
|
||||
objectFit: "cover",
|
||||
}}
|
||||
/>
|
||||
) : track.AlbumPrimaryImageTag ? (
|
||||
<img
|
||||
alt={track.Name}
|
||||
src={api.getItemImageUrl(track.AlbumId, "Primary", {
|
||||
quality: 80,
|
||||
tag: track.AlbumPrimaryImageTag,
|
||||
fillWidth: 102,
|
||||
fillHeight: 102,
|
||||
})}
|
||||
style={{
|
||||
width: "inherit",
|
||||
height: "inherit",
|
||||
objectFit: "cover",
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
</div>
|
||||
<div>
|
||||
<Typography variant="subtitle1">
|
||||
{track.Name}
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="caption"
|
||||
style={{
|
||||
opacity: 0.5,
|
||||
}}
|
||||
>
|
||||
{track.Artists.join(", ")}
|
||||
</Typography>
|
||||
</div>
|
||||
<Typography variant="subtitle2">
|
||||
{getRuntimeMusic(track.RunTimeTicks)}
|
||||
</Typography>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</Paper>
|
||||
</Grow>
|
||||
)}
|
||||
</Popper>
|
||||
<IconButton onClick={handleOpenQueue}>
|
||||
<div className="material-symbols-rounded">queue_music</div>
|
||||
</IconButton>
|
||||
<QueueButton />
|
||||
<IconButton
|
||||
onClick={(e) => {
|
||||
setIsMuted(!isMuted);
|
||||
@@ -490,130 +292,79 @@ const AudioPlayer = () => {
|
||||
},
|
||||
}}
|
||||
/>
|
||||
<IconButton onClick={resetPlayer}>
|
||||
<IconButton
|
||||
onClick={() => {
|
||||
useAudioPlayback.setState(useAudioPlayback.getInitialState());
|
||||
}}
|
||||
>
|
||||
<div className="material-symbols-rounded">close</div>
|
||||
</IconButton>
|
||||
</div>
|
||||
),
|
||||
[queueButton, volume, isMuted, currentTrack],
|
||||
[volume, isMuted, currentTrack],
|
||||
);
|
||||
|
||||
return (
|
||||
<AnimatePresence mode="sync">
|
||||
<motion.div
|
||||
initial={{
|
||||
transform: "translateY(100%)",
|
||||
}}
|
||||
animate={{ transform: "translateY(0)" }}
|
||||
exit={{
|
||||
transform: "translateY(100%)",
|
||||
}}
|
||||
style={{
|
||||
width: "100%",
|
||||
}}
|
||||
transition={{
|
||||
duration: 0.2,
|
||||
ease: "easeInOut",
|
||||
}}
|
||||
className="audio-player"
|
||||
>
|
||||
{/* <motion.div
|
||||
initial={{
|
||||
filter: "opacity(0)",
|
||||
}}
|
||||
animate={{
|
||||
filter: "opacity(1)",
|
||||
}}
|
||||
exit={{
|
||||
filter: "opacity(0)",
|
||||
}}
|
||||
className="audio-player-info"
|
||||
>
|
||||
<div className="audio-player-image-container">
|
||||
<img
|
||||
alt={tracks[currentTrack].Name}
|
||||
className="audio-player-image"
|
||||
src={api.getItemImageUrl(
|
||||
Object.keys(tracks[currentTrack].ImageTags).length === 0
|
||||
? item.AlbumId
|
||||
: item.Id,
|
||||
"Primary",
|
||||
{
|
||||
quality: 85,
|
||||
fillHeight: 462,
|
||||
fillWidth: 462,
|
||||
},
|
||||
)}
|
||||
/>
|
||||
<span className="material-symbols-rounded audio-player-image-icon">
|
||||
music_note
|
||||
</span>
|
||||
</div>
|
||||
<div className="audio-player-info-text">
|
||||
<Typography
|
||||
variant="subtitle1"
|
||||
style={{
|
||||
width: "100%",
|
||||
}}
|
||||
fontWeight={500}
|
||||
>
|
||||
{tracks[currentTrack].IndexNumber
|
||||
? `${tracks[currentTrack].IndexNumber}. ${tracks[currentTrack].Name}`
|
||||
: tracks[currentTrack].Name}
|
||||
</Typography>
|
||||
{display && (
|
||||
<motion.div
|
||||
initial={{
|
||||
transform: "translateY(100%)",
|
||||
}}
|
||||
animate={{ transform: "translateY(0)" }}
|
||||
exit={{
|
||||
transform: "translateY(100%)",
|
||||
}}
|
||||
style={{
|
||||
width: "100%",
|
||||
}}
|
||||
transition={{
|
||||
duration: 0.2,
|
||||
ease: "easeInOut",
|
||||
}}
|
||||
className="audio-player glass"
|
||||
>
|
||||
{info}
|
||||
|
||||
<div className="audio-player-controls">
|
||||
{controls}
|
||||
<div
|
||||
style={{
|
||||
width: "100%",
|
||||
display: "flex",
|
||||
gap: "1em",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
variant="subtitle2"
|
||||
fontWeight={300}
|
||||
style={{
|
||||
opacity: 0.5,
|
||||
opacity: 0.8,
|
||||
}}
|
||||
noWrap
|
||||
fontWeight={400}
|
||||
>
|
||||
by{" "}
|
||||
{tracks[currentTrack].Artists.map((artist) => artist).join(",")}
|
||||
{getRuntimeMusic(secToTicks(currentTime))}
|
||||
</Typography>
|
||||
<div
|
||||
id="waveform"
|
||||
ref={waveSurferContainerRef}
|
||||
data-show={Boolean(showWaveform)}
|
||||
/>
|
||||
<Typography
|
||||
variant="subtitle2"
|
||||
fontWeight={300}
|
||||
style={{
|
||||
opacity: 0.8,
|
||||
}}
|
||||
>
|
||||
{getRuntimeMusic(item?.RunTimeTicks ?? 0)}
|
||||
</Typography>
|
||||
</div>
|
||||
</motion.div> */}
|
||||
{info}
|
||||
|
||||
<div className="audio-player-controls">
|
||||
{controls}
|
||||
<div
|
||||
style={{
|
||||
width: "100%",
|
||||
display: "flex",
|
||||
gap: "1em",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
variant="subtitle2"
|
||||
fontWeight={300}
|
||||
style={{
|
||||
opacity: 0.8,
|
||||
}}
|
||||
>
|
||||
{getRuntimeMusic(secToTicks(currentTime))}
|
||||
</Typography>
|
||||
<div
|
||||
id="waveform"
|
||||
ref={waveSurferContainerRef}
|
||||
data-show={Boolean(showWaveform)}
|
||||
/>
|
||||
<Typography
|
||||
variant="subtitle2"
|
||||
fontWeight={300}
|
||||
style={{
|
||||
opacity: 0.8,
|
||||
}}
|
||||
>
|
||||
{getRuntimeMusic(tracks[currentTrack].RunTimeTicks)}
|
||||
</Typography>
|
||||
</div>
|
||||
</div>
|
||||
{buttons}
|
||||
</motion.div>
|
||||
{buttons}
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
import useSettingsStore, {
|
||||
setSettingsDialogOpen,
|
||||
setSettingsTabValue,
|
||||
} from "@/utils/store/settings";
|
||||
import {
|
||||
Button,
|
||||
Chip,
|
||||
@@ -21,34 +25,30 @@ import {
|
||||
} from "@mui/material";
|
||||
import { AnimatePresence, motion, transform } from "framer-motion";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import useSettingsStore, {
|
||||
setSettingsDialogOpen,
|
||||
setSettingsTabValue,
|
||||
} from "../../utils/store/settings";
|
||||
|
||||
import logo from "../../assets/logoBlack.png";
|
||||
import logo from "@/assets/logo.png";
|
||||
|
||||
import { createApi, 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";
|
||||
import { createApi, useApi } from "../../utils/store/api";
|
||||
import { useCentralStore } from "../../utils/store/central";
|
||||
import "./settings.scss";
|
||||
|
||||
import type { RecommendedServerInfo } from "@jellyfin/sdk";
|
||||
import { LoadingButton } from "@mui/lab";
|
||||
import { red, yellow } from "@mui/material/colors";
|
||||
import { relaunch } from "@tauri-apps/api/process";
|
||||
import { checkUpdate, installUpdate } from "@tauri-apps/api/updater";
|
||||
import { enqueueSnackbar, useSnackbar } from "notistack";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import {
|
||||
delServer,
|
||||
getAllServers,
|
||||
getDefaultServer,
|
||||
setDefaultServer,
|
||||
setServer,
|
||||
} from "../../utils/storage/servers";
|
||||
import { delUser } from "../../utils/storage/user";
|
||||
} from "@/utils/storage/servers";
|
||||
import { delUser } from "@/utils/storage/user";
|
||||
import type { RecommendedServerInfo } from "@jellyfin/sdk";
|
||||
import { LoadingButton } from "@mui/lab";
|
||||
import { red, yellow } from "@mui/material/colors";
|
||||
import { useNavigate, useRouteContext } from "@tanstack/react-router";
|
||||
import { relaunch } from "@tauri-apps/api/process";
|
||||
import { checkUpdate, installUpdate } from "@tauri-apps/api/updater";
|
||||
import { enqueueSnackbar, useSnackbar } from "notistack";
|
||||
|
||||
const motionConfig = {
|
||||
initial: {
|
||||
@@ -64,7 +64,8 @@ const Settings = () => {
|
||||
state.dialogOpen,
|
||||
state.tabValue,
|
||||
]);
|
||||
const [api, jellyfin] = useApi((state) => [state.api, state.jellyfin]);
|
||||
const api = useApiInContext((s) => s.api);
|
||||
|
||||
const systemInfo = useQuery({
|
||||
queryKey: ["about", "systemInfo"],
|
||||
queryFn: async () => {
|
||||
@@ -116,7 +117,7 @@ const Settings = () => {
|
||||
},
|
||||
onSuccess: async () => {
|
||||
setSettingsDialogOpen(false);
|
||||
navigate("/login/index");
|
||||
navigate({ to: "/login/index" });
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
@@ -139,12 +140,12 @@ const Settings = () => {
|
||||
setDefaultServer(serversOnDisk.data[0].id);
|
||||
createApi(serversOnDisk.data[0].address, null);
|
||||
} else {
|
||||
// Reset Api as no server is present on disk
|
||||
useApi.setState(useApi.getInitialState());
|
||||
// TODO: Reset api in context
|
||||
// useApi.setState(useApi.getInitialState());
|
||||
}
|
||||
setSettingsDialogOpen(false);
|
||||
await queryClient.removeQueries();
|
||||
navigate("/");
|
||||
navigate({ to: "/" });
|
||||
}
|
||||
enqueueSnackbar("Server deleted successfully!", { variant: "success" });
|
||||
await serversOnDisk.refetch();
|
||||
@@ -193,7 +194,9 @@ const Settings = () => {
|
||||
maxWidth="md"
|
||||
PaperProps={{
|
||||
className: "settings glass",
|
||||
elevation: 10,
|
||||
}}
|
||||
hideBackdrop
|
||||
onClose={() => setSettingsDialogOpen(false)}
|
||||
>
|
||||
<Tabs
|
||||
@@ -256,246 +259,28 @@ const Settings = () => {
|
||||
{/* General */}
|
||||
{tabValue === 1 && (
|
||||
<div className="settings-container">
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
<FormControlLabel
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="h6" fontWeight={400}>
|
||||
Enable DiscordRPC
|
||||
</Typography>
|
||||
<Typography variant="subtitle2" fontWeight={200}>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
{Array.from(new Array(10)).map((i) => (
|
||||
<FormControlLabel
|
||||
key={i}
|
||||
value="start"
|
||||
control={<Switch color="primary" />}
|
||||
label={
|
||||
<div className="settings-option-info">
|
||||
<Typography variant="subtitle1">
|
||||
Some dummy setting
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="caption"
|
||||
className="settings-option-info-caption"
|
||||
>
|
||||
this a test
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
labelPlacement="start"
|
||||
className="settings-option"
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -516,7 +301,7 @@ const Settings = () => {
|
||||
opacity: 0,
|
||||
}}
|
||||
animate={{ transform: "translateY(0px)", opacity: 1 }}
|
||||
exit={{ transform: "translateY(-10px)", opacity: 1 }}
|
||||
exit={{ transform: "translateY(-10px)", opacity: 0 }}
|
||||
transition={{
|
||||
delay: 0.1 * index,
|
||||
duration: 0.15,
|
||||
@@ -644,37 +429,60 @@ const Settings = () => {
|
||||
<div className="settings-grid">
|
||||
<div className="settings-info-container">
|
||||
<div className="settings-info">
|
||||
<Typography>Client Version:</Typography>
|
||||
<Typography variant="subtitle2">Client Version:</Typography>
|
||||
<Chip
|
||||
icon={
|
||||
<span className="material-symbols-rounded">
|
||||
<span
|
||||
className="material-symbols-rounded"
|
||||
style={{ "--wght": 500 }}
|
||||
>
|
||||
{updateInfo.data?.shouldUpdate
|
||||
? "update"
|
||||
: "update_disabled"}
|
||||
? "new_release"
|
||||
: "new_releases"}
|
||||
</span>
|
||||
}
|
||||
label={
|
||||
<Typography variant="subtitle1">
|
||||
<Typography variant="subtitle2">
|
||||
{applicationVersion}
|
||||
</Typography>
|
||||
}
|
||||
color={
|
||||
updateInfo.data?.shouldUpdate ? "error" : "success"
|
||||
}
|
||||
size="medium"
|
||||
size="small"
|
||||
style={{
|
||||
width: "fit-content !important",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<div className="settings-info">
|
||||
<Typography>Update Available:</Typography>
|
||||
<Typography>
|
||||
{updateInfo.isFetching
|
||||
? "Checking for new updates..."
|
||||
: updateInfo.data?.shouldUpdate
|
||||
? updateInfo.data.manifest?.version
|
||||
: "No update found."}
|
||||
<Typography variant="subtitle2">
|
||||
Update Available:
|
||||
</Typography>
|
||||
<Typography variant="subtitle2">
|
||||
{updateInfo.isFetching ? (
|
||||
"Checking for new updates..."
|
||||
) : updateInfo.data?.shouldUpdate ? (
|
||||
<Chip
|
||||
icon={
|
||||
<span className="material-symbols-rounded">
|
||||
new_releases
|
||||
</span>
|
||||
}
|
||||
label={
|
||||
<Typography variant="subtitle2">
|
||||
{applicationVersion}
|
||||
</Typography>
|
||||
}
|
||||
color="success"
|
||||
size="small"
|
||||
style={{
|
||||
width: "fit-content !important",
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
"No update found."
|
||||
)}
|
||||
</Typography>
|
||||
</div>
|
||||
<LoadingButton
|
||||
@@ -709,22 +517,32 @@ const Settings = () => {
|
||||
{systemInfo.isSuccess ? (
|
||||
<div className="settings-info-container">
|
||||
<div className="settings-info">
|
||||
<Typography>Server:</Typography>
|
||||
<Typography>{systemInfo.data?.ServerName}</Typography>
|
||||
<Typography variant="subtitle2">Server:</Typography>
|
||||
<Typography variant="subtitle2">
|
||||
{systemInfo.data?.ServerName}
|
||||
</Typography>
|
||||
</div>
|
||||
<div className="settings-info">
|
||||
<Typography>Jellyfin Version:</Typography>
|
||||
<Typography>{systemInfo.data?.Version}</Typography>
|
||||
<Typography variant="subtitle2">
|
||||
Jellyfin Version:
|
||||
</Typography>
|
||||
<Typography variant="subtitle2">
|
||||
{systemInfo.data?.Version}
|
||||
</Typography>
|
||||
</div>
|
||||
<div className="settings-info">
|
||||
<Typography>Operating System:</Typography>
|
||||
<Typography>
|
||||
<Typography variant="subtitle2">
|
||||
Operating System:
|
||||
</Typography>
|
||||
<Typography variant="subtitle2">
|
||||
{systemInfo.data?.OperatingSystemDisplayName}
|
||||
</Typography>
|
||||
</div>
|
||||
<div className="settings-info">
|
||||
<Typography>Server Architecture:</Typography>
|
||||
<Typography>
|
||||
<Typography variant="subtitle2">
|
||||
Server Architecture:
|
||||
</Typography>
|
||||
<Typography variant="subtitle2">
|
||||
{systemInfo.data?.SystemArchitecture}
|
||||
</Typography>
|
||||
</div>
|
||||
@@ -745,10 +563,9 @@ const Settings = () => {
|
||||
background: "rgb(0 0 0 / 0.3)",
|
||||
padding: "1em",
|
||||
borderRadius: "10px",
|
||||
border: "1px solid rgb(255 255 255 / 0.1)",
|
||||
}}
|
||||
>
|
||||
<Typography variant="h6" fontWeight={300} mb={1}>
|
||||
<Typography variant="subtitle1" mb={1}>
|
||||
Links:
|
||||
</Typography>
|
||||
<div
|
||||
@@ -759,15 +576,22 @@ const Settings = () => {
|
||||
gap: "0.1em",
|
||||
}}
|
||||
>
|
||||
<Link
|
||||
<Typography
|
||||
component={Link}
|
||||
variant="subtitle2"
|
||||
target="_blank"
|
||||
href="https://github.com/prayag17/JellyPlayer"
|
||||
>
|
||||
https://github.com/prayag17/JellyPlayer
|
||||
</Link>
|
||||
<Link target="_blank" href="https://jellyfin.org">
|
||||
</Typography>
|
||||
<Typography
|
||||
component={Link}
|
||||
variant="subtitle2"
|
||||
target="_blank"
|
||||
href="https://jellyfin.org"
|
||||
>
|
||||
https://jellyfin.org
|
||||
</Link>
|
||||
</Typography>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -776,7 +600,12 @@ const Settings = () => {
|
||||
</AnimatePresence>
|
||||
|
||||
{/* Add Server */}
|
||||
<Dialog open={addServerDialog} fullWidth>
|
||||
<Dialog
|
||||
open={addServerDialog}
|
||||
fullWidth
|
||||
hideBackdrop
|
||||
disableScrollLock={true}
|
||||
>
|
||||
<DialogTitle>Add Server</DialogTitle>
|
||||
<DialogContent className="settings-server-add">
|
||||
<TextField
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
grid-template-columns: 20% 1fr;
|
||||
height: 60vh;
|
||||
overflow: hidden !important;
|
||||
|
||||
.MuiTabs-flexContainerVertical{
|
||||
height: 100%;
|
||||
}
|
||||
@@ -23,8 +22,8 @@
|
||||
}
|
||||
&-scroll{
|
||||
overflow-y: auto;
|
||||
mask-image: linear-gradient(to top, transparent, black 15px calc(100% - 15px), transparent);
|
||||
scrollbar-gutter:stable ;
|
||||
overscroll-behavior: contain;
|
||||
// Magic scrollbar
|
||||
&::-webkit-scrollbar {
|
||||
&-thumb {
|
||||
@@ -48,9 +47,11 @@
|
||||
&-logo{
|
||||
width: 100%;
|
||||
background: rgb(255 255 255 / 1);
|
||||
padding: 2em;
|
||||
padding: 0em;
|
||||
height: 10em;
|
||||
margin-bottom: 1em;
|
||||
border-radius: $border-radius-default;
|
||||
object-fit: contain;
|
||||
}
|
||||
&-info{
|
||||
display: grid;
|
||||
@@ -58,17 +59,24 @@
|
||||
gap: 1em;
|
||||
justify-items: start;
|
||||
align-items: center;
|
||||
|
||||
border-bottom: 1px solid rgb(255 255 255 / 0.1);
|
||||
padding-bottom: 0.5em;
|
||||
&-container{
|
||||
background: rgb(0 0 0 / 0.3);
|
||||
border: 1px solid rgb(255 255 255 / 0.1);
|
||||
padding: 1em;
|
||||
border-radius: $border-radius-default;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap:0.4em;
|
||||
gap:0.6em;
|
||||
width: 100%;
|
||||
}
|
||||
&:last-child {
|
||||
border: none;
|
||||
padding-bottom: 0em;
|
||||
}
|
||||
> :last-child {
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
//settings
|
||||
@@ -78,7 +86,11 @@
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
padding: 0 !important;
|
||||
margin: 0 0 0.4em 0!important;
|
||||
margin: 0 !important;
|
||||
margin-bottom: 0.6em !important;
|
||||
&-info-caption{
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
//serverList
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
import Typography from "@mui/material/Typography";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
import "./textLink.scss";
|
||||
|
||||
const TextLink = ({ children, location, variant, otherProps }) => {
|
||||
const navigate = useNavigate();
|
||||
// const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
<Typography
|
||||
variant={variant}
|
||||
className="link flex"
|
||||
onClick={() => navigate(location)}
|
||||
// onClick={() => navigate(location)}
|
||||
{...otherProps}
|
||||
>
|
||||
{children}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
// Fix image imports
|
||||
declare module "*.png" {
|
||||
const value: any;
|
||||
export = value;
|
||||
}
|
||||
declare module "*.svg" {
|
||||
const value: any;
|
||||
export = value;
|
||||
}
|
||||
declare module "*.jpg" {
|
||||
const value: any;
|
||||
export = value;
|
||||
}
|
||||
@@ -1,12 +1,32 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import { MemoryRouter as Router } from "react-router-dom";
|
||||
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import { RouterProvider, createRouter } from "@tanstack/react-router";
|
||||
import React, { Suspense } from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
// Import the generated route tree
|
||||
import { routeTree } from "./routeTree.gen";
|
||||
|
||||
import App from "./App";
|
||||
// Create a new router instance
|
||||
const router = createRouter({
|
||||
routeTree,
|
||||
context: {
|
||||
api: undefined!,
|
||||
createApi: undefined!,
|
||||
},
|
||||
});
|
||||
|
||||
const queryClient = new QueryClient({
|
||||
// Register the router instance for type safety
|
||||
declare module "@tanstack/react-router" {
|
||||
interface Register {
|
||||
router: typeof 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({
|
||||
defaultOptions: {
|
||||
queries: {
|
||||
networkMode: "always",
|
||||
@@ -17,12 +37,21 @@ const queryClient = new QueryClient({
|
||||
},
|
||||
});
|
||||
|
||||
function ProviderWrapper() {
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const createApi = useApiInContext((s) => s.createApi);
|
||||
return <RouterProvider router={router} context={{ api, createApi }} />;
|
||||
}
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root")!).render(
|
||||
<React.StrictMode>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<Router>
|
||||
<App />
|
||||
</Router>
|
||||
{/* TODO: Create a proper loading fallback component */}
|
||||
<Suspense fallback={<h1>Loading in main.tsx</h1>}>
|
||||
<ApiProvider>
|
||||
<ProviderWrapper />
|
||||
</ApiProvider>
|
||||
</Suspense>
|
||||
</QueryClientProvider>
|
||||
</React.StrictMode>,
|
||||
);
|
||||
|
||||
@@ -0,0 +1,457 @@
|
||||
/* prettier-ignore-start */
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// @ts-nocheck
|
||||
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
|
||||
// This file is auto-generated by TanStack Router
|
||||
|
||||
// Import Routes
|
||||
|
||||
import { Route as rootRoute } from './routes/__root'
|
||||
import { Route as ApiImport } from './routes/_api'
|
||||
import { Route as IndexImport } from './routes/index'
|
||||
import { Route as ApiSearchIndexImport } from './routes/_api/search/index'
|
||||
import { Route as ApiPlayerIndexImport } from './routes/_api/player/index'
|
||||
import { Route as ApiLoginIndexImport } from './routes/_api/login/index'
|
||||
import { Route as ApiHomeIndexImport } from './routes/_api/home/index'
|
||||
import { Route as ApiFavoriteIndexImport } from './routes/_api/favorite/index'
|
||||
import { Route as SetupServerListImport } from './routes/setup/server.list'
|
||||
import { Route as SetupServerErrorImport } from './routes/setup/server.error'
|
||||
import { Route as SetupServerAddImport } from './routes/setup/server.add'
|
||||
import { Route as ApiSeriesIdImport } from './routes/_api/series/$id'
|
||||
import { Route as ApiPlaylistIdImport } from './routes/_api/playlist/$id'
|
||||
import { Route as ApiPersonIdImport } from './routes/_api/person/$id'
|
||||
import { Route as ApiLoginManualImport } from './routes/_api/login/manual'
|
||||
import { Route as ApiLoginListImport } from './routes/_api/login/list'
|
||||
import { Route as ApiLibraryIdImport } from './routes/_api/library/$id'
|
||||
import { Route as ApiItemIdImport } from './routes/_api/item/$id'
|
||||
import { Route as ApiEpisodeIdImport } from './routes/_api/episode/$id'
|
||||
import { Route as ApiBoxsetIdImport } from './routes/_api/boxset/$id'
|
||||
import { Route as ApiArtistIdImport } from './routes/_api/artist/$id'
|
||||
import { Route as ApiAlbumIdImport } from './routes/_api/album/$id'
|
||||
import { Route as ApiLoginUserIdUserNameImport } from './routes/_api/login/$userId.$userName'
|
||||
|
||||
// Create/Update Routes
|
||||
|
||||
const ApiRoute = ApiImport.update({
|
||||
id: '/_api',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const IndexRoute = IndexImport.update({
|
||||
path: '/',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const ApiSearchIndexRoute = ApiSearchIndexImport.update({
|
||||
path: '/search/',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiPlayerIndexRoute = ApiPlayerIndexImport.update({
|
||||
path: '/player/',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiLoginIndexRoute = ApiLoginIndexImport.update({
|
||||
path: '/login/',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiHomeIndexRoute = ApiHomeIndexImport.update({
|
||||
path: '/home/',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiFavoriteIndexRoute = ApiFavoriteIndexImport.update({
|
||||
path: '/favorite/',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const SetupServerListRoute = SetupServerListImport.update({
|
||||
path: '/setup/server/list',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const SetupServerErrorRoute = SetupServerErrorImport.update({
|
||||
path: '/setup/server/error',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const SetupServerAddRoute = SetupServerAddImport.update({
|
||||
path: '/setup/server/add',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
|
||||
const ApiSeriesIdRoute = ApiSeriesIdImport.update({
|
||||
path: '/series/$id',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiPlaylistIdRoute = ApiPlaylistIdImport.update({
|
||||
path: '/playlist/$id',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiPersonIdRoute = ApiPersonIdImport.update({
|
||||
path: '/person/$id',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiLoginManualRoute = ApiLoginManualImport.update({
|
||||
path: '/login/manual',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiLoginListRoute = ApiLoginListImport.update({
|
||||
path: '/login/list',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiLibraryIdRoute = ApiLibraryIdImport.update({
|
||||
path: '/library/$id',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiItemIdRoute = ApiItemIdImport.update({
|
||||
path: '/item/$id',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiEpisodeIdRoute = ApiEpisodeIdImport.update({
|
||||
path: '/episode/$id',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiBoxsetIdRoute = ApiBoxsetIdImport.update({
|
||||
path: '/boxset/$id',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiArtistIdRoute = ApiArtistIdImport.update({
|
||||
path: '/artist/$id',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiAlbumIdRoute = ApiAlbumIdImport.update({
|
||||
path: '/album/$id',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
const ApiLoginUserIdUserNameRoute = ApiLoginUserIdUserNameImport.update({
|
||||
path: '/login/$userId/$userName',
|
||||
getParentRoute: () => ApiRoute,
|
||||
} as any)
|
||||
|
||||
// Populate the FileRoutesByPath interface
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
interface FileRoutesByPath {
|
||||
'/': {
|
||||
id: '/'
|
||||
path: '/'
|
||||
fullPath: '/'
|
||||
preLoaderRoute: typeof IndexImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/_api': {
|
||||
id: '/_api'
|
||||
path: ''
|
||||
fullPath: ''
|
||||
preLoaderRoute: typeof ApiImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/_api/album/$id': {
|
||||
id: '/_api/album/$id'
|
||||
path: '/album/$id'
|
||||
fullPath: '/album/$id'
|
||||
preLoaderRoute: typeof ApiAlbumIdImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/artist/$id': {
|
||||
id: '/_api/artist/$id'
|
||||
path: '/artist/$id'
|
||||
fullPath: '/artist/$id'
|
||||
preLoaderRoute: typeof ApiArtistIdImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/boxset/$id': {
|
||||
id: '/_api/boxset/$id'
|
||||
path: '/boxset/$id'
|
||||
fullPath: '/boxset/$id'
|
||||
preLoaderRoute: typeof ApiBoxsetIdImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/episode/$id': {
|
||||
id: '/_api/episode/$id'
|
||||
path: '/episode/$id'
|
||||
fullPath: '/episode/$id'
|
||||
preLoaderRoute: typeof ApiEpisodeIdImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/item/$id': {
|
||||
id: '/_api/item/$id'
|
||||
path: '/item/$id'
|
||||
fullPath: '/item/$id'
|
||||
preLoaderRoute: typeof ApiItemIdImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/library/$id': {
|
||||
id: '/_api/library/$id'
|
||||
path: '/library/$id'
|
||||
fullPath: '/library/$id'
|
||||
preLoaderRoute: typeof ApiLibraryIdImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/login/list': {
|
||||
id: '/_api/login/list'
|
||||
path: '/login/list'
|
||||
fullPath: '/login/list'
|
||||
preLoaderRoute: typeof ApiLoginListImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/login/manual': {
|
||||
id: '/_api/login/manual'
|
||||
path: '/login/manual'
|
||||
fullPath: '/login/manual'
|
||||
preLoaderRoute: typeof ApiLoginManualImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/person/$id': {
|
||||
id: '/_api/person/$id'
|
||||
path: '/person/$id'
|
||||
fullPath: '/person/$id'
|
||||
preLoaderRoute: typeof ApiPersonIdImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/playlist/$id': {
|
||||
id: '/_api/playlist/$id'
|
||||
path: '/playlist/$id'
|
||||
fullPath: '/playlist/$id'
|
||||
preLoaderRoute: typeof ApiPlaylistIdImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/series/$id': {
|
||||
id: '/_api/series/$id'
|
||||
path: '/series/$id'
|
||||
fullPath: '/series/$id'
|
||||
preLoaderRoute: typeof ApiSeriesIdImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/setup/server/add': {
|
||||
id: '/setup/server/add'
|
||||
path: '/setup/server/add'
|
||||
fullPath: '/setup/server/add'
|
||||
preLoaderRoute: typeof SetupServerAddImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/setup/server/error': {
|
||||
id: '/setup/server/error'
|
||||
path: '/setup/server/error'
|
||||
fullPath: '/setup/server/error'
|
||||
preLoaderRoute: typeof SetupServerErrorImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/setup/server/list': {
|
||||
id: '/setup/server/list'
|
||||
path: '/setup/server/list'
|
||||
fullPath: '/setup/server/list'
|
||||
preLoaderRoute: typeof SetupServerListImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/_api/favorite/': {
|
||||
id: '/_api/favorite/'
|
||||
path: '/favorite'
|
||||
fullPath: '/favorite'
|
||||
preLoaderRoute: typeof ApiFavoriteIndexImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/home/': {
|
||||
id: '/_api/home/'
|
||||
path: '/home'
|
||||
fullPath: '/home'
|
||||
preLoaderRoute: typeof ApiHomeIndexImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/login/': {
|
||||
id: '/_api/login/'
|
||||
path: '/login'
|
||||
fullPath: '/login'
|
||||
preLoaderRoute: typeof ApiLoginIndexImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/player/': {
|
||||
id: '/_api/player/'
|
||||
path: '/player'
|
||||
fullPath: '/player'
|
||||
preLoaderRoute: typeof ApiPlayerIndexImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/search/': {
|
||||
id: '/_api/search/'
|
||||
path: '/search'
|
||||
fullPath: '/search'
|
||||
preLoaderRoute: typeof ApiSearchIndexImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
'/_api/login/$userId/$userName': {
|
||||
id: '/_api/login/$userId/$userName'
|
||||
path: '/login/$userId/$userName'
|
||||
fullPath: '/login/$userId/$userName'
|
||||
preLoaderRoute: typeof ApiLoginUserIdUserNameImport
|
||||
parentRoute: typeof ApiImport
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Create and export the route tree
|
||||
|
||||
export const routeTree = rootRoute.addChildren({
|
||||
IndexRoute,
|
||||
ApiRoute: ApiRoute.addChildren({
|
||||
ApiAlbumIdRoute,
|
||||
ApiArtistIdRoute,
|
||||
ApiBoxsetIdRoute,
|
||||
ApiEpisodeIdRoute,
|
||||
ApiItemIdRoute,
|
||||
ApiLibraryIdRoute,
|
||||
ApiLoginListRoute,
|
||||
ApiLoginManualRoute,
|
||||
ApiPersonIdRoute,
|
||||
ApiPlaylistIdRoute,
|
||||
ApiSeriesIdRoute,
|
||||
ApiFavoriteIndexRoute,
|
||||
ApiHomeIndexRoute,
|
||||
ApiLoginIndexRoute,
|
||||
ApiPlayerIndexRoute,
|
||||
ApiSearchIndexRoute,
|
||||
ApiLoginUserIdUserNameRoute,
|
||||
}),
|
||||
SetupServerAddRoute,
|
||||
SetupServerErrorRoute,
|
||||
SetupServerListRoute,
|
||||
})
|
||||
|
||||
/* prettier-ignore-end */
|
||||
|
||||
/* ROUTE_MANIFEST_START
|
||||
{
|
||||
"routes": {
|
||||
"__root__": {
|
||||
"filePath": "__root.tsx",
|
||||
"children": [
|
||||
"/",
|
||||
"/_api",
|
||||
"/setup/server/add",
|
||||
"/setup/server/error",
|
||||
"/setup/server/list"
|
||||
]
|
||||
},
|
||||
"/": {
|
||||
"filePath": "index.tsx"
|
||||
},
|
||||
"/_api": {
|
||||
"filePath": "_api.tsx",
|
||||
"children": [
|
||||
"/_api/album/$id",
|
||||
"/_api/artist/$id",
|
||||
"/_api/boxset/$id",
|
||||
"/_api/episode/$id",
|
||||
"/_api/item/$id",
|
||||
"/_api/library/$id",
|
||||
"/_api/login/list",
|
||||
"/_api/login/manual",
|
||||
"/_api/person/$id",
|
||||
"/_api/playlist/$id",
|
||||
"/_api/series/$id",
|
||||
"/_api/favorite/",
|
||||
"/_api/home/",
|
||||
"/_api/login/",
|
||||
"/_api/player/",
|
||||
"/_api/search/",
|
||||
"/_api/login/$userId/$userName"
|
||||
]
|
||||
},
|
||||
"/_api/album/$id": {
|
||||
"filePath": "_api/album/$id.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/artist/$id": {
|
||||
"filePath": "_api/artist/$id.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/boxset/$id": {
|
||||
"filePath": "_api/boxset/$id.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/episode/$id": {
|
||||
"filePath": "_api/episode/$id.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/item/$id": {
|
||||
"filePath": "_api/item/$id.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/library/$id": {
|
||||
"filePath": "_api/library/$id.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/login/list": {
|
||||
"filePath": "_api/login/list.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/login/manual": {
|
||||
"filePath": "_api/login/manual.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/person/$id": {
|
||||
"filePath": "_api/person/$id.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/playlist/$id": {
|
||||
"filePath": "_api/playlist/$id.jsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/series/$id": {
|
||||
"filePath": "_api/series/$id.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/setup/server/add": {
|
||||
"filePath": "setup/server.add.tsx"
|
||||
},
|
||||
"/setup/server/error": {
|
||||
"filePath": "setup/server.error.tsx"
|
||||
},
|
||||
"/setup/server/list": {
|
||||
"filePath": "setup/server.list.tsx"
|
||||
},
|
||||
"/_api/favorite/": {
|
||||
"filePath": "_api/favorite/index.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/home/": {
|
||||
"filePath": "_api/home/index.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/login/": {
|
||||
"filePath": "_api/login/index.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/player/": {
|
||||
"filePath": "_api/player/index.tsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/search/": {
|
||||
"filePath": "_api/search/index.jsx",
|
||||
"parent": "/_api"
|
||||
},
|
||||
"/_api/login/$userId/$userName": {
|
||||
"filePath": "_api/login/$userId.$userName.tsx",
|
||||
"parent": "/_api"
|
||||
}
|
||||
}
|
||||
}
|
||||
ROUTE_MANIFEST_END */
|
||||
@@ -0,0 +1,274 @@
|
||||
import { AppBar } from "@/components/appBar/appBar";
|
||||
import NProgress from "@/components/nProgress";
|
||||
import AudioPlayer from "@/components/playback/audioPlayer";
|
||||
import Settings from "@/components/settings";
|
||||
import { EasterEgg } from "@/components/utils/easterEgg";
|
||||
import { useBackdropStore } from "@/utils/store/backdrop";
|
||||
import { LoadingButton } from "@mui/lab";
|
||||
import {
|
||||
Button,
|
||||
Chip,
|
||||
CircularProgress,
|
||||
CssBaseline,
|
||||
Dialog,
|
||||
DialogActions,
|
||||
DialogContent,
|
||||
DialogContentText,
|
||||
DialogTitle,
|
||||
IconButton,
|
||||
SvgIcon,
|
||||
ThemeProvider,
|
||||
} from "@mui/material";
|
||||
import { useIsFetching, useIsMutating } from "@tanstack/react-query";
|
||||
import {
|
||||
Outlet,
|
||||
ScrollRestoration,
|
||||
createRootRoute,
|
||||
createRootRouteWithContext,
|
||||
useNavigate,
|
||||
useRouterState,
|
||||
} from "@tanstack/react-router";
|
||||
import { TanStackRouterDevtools } from "@tanstack/router-devtools";
|
||||
import { relaunch } from "@tauri-apps/api/process";
|
||||
import {
|
||||
type UpdateManifest,
|
||||
checkUpdate,
|
||||
installUpdate,
|
||||
} from "@tauri-apps/api/updater";
|
||||
import { AnimatePresence, motion } from "framer-motion";
|
||||
import { SnackbarProvider, useSnackbar } from "notistack";
|
||||
import React, { Suspense, useEffect, useLayoutEffect, useState } from "react";
|
||||
import Markdown from "react-markdown";
|
||||
import remarkGfm from "remark-gfm";
|
||||
|
||||
import "../styles/global.scss";
|
||||
import { theme } from "@/theme";
|
||||
|
||||
// Fonts
|
||||
import "@fontsource-variable/jetbrains-mono";
|
||||
import "@fontsource-variable/noto-sans";
|
||||
|
||||
import "material-symbols/rounded.scss";
|
||||
import type { Api } from "@jellyfin/sdk";
|
||||
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
||||
|
||||
type ApiContext = {
|
||||
api: Api;
|
||||
createApi: (
|
||||
serverAddress: string | undefined,
|
||||
accessToken: string | undefined,
|
||||
) => void;
|
||||
};
|
||||
|
||||
export const Route = createRootRouteWithContext<ApiContext>()({
|
||||
errorComponent: (error) => {
|
||||
console.error(error.error);
|
||||
},
|
||||
component: () => {
|
||||
"use memo";
|
||||
const isQueryFetching = useIsFetching();
|
||||
const isMutating = useIsMutating();
|
||||
const routeIsLoading = useRouterState().isLoading;
|
||||
const [updateDialog, setUpdateDialog] = useState(false);
|
||||
const [updateDialogButton, setUpdateDialogButton] = useState(false);
|
||||
const [updateInfo, setUpdateInfo] = useState<UpdateManifest | undefined>(
|
||||
undefined,
|
||||
);
|
||||
useLayoutEffect(() => {
|
||||
async function checkForUpdates() {
|
||||
try {
|
||||
const { shouldUpdate, manifest } = await checkUpdate();
|
||||
|
||||
if (shouldUpdate) {
|
||||
setUpdateInfo(manifest);
|
||||
setUpdateDialog(true);
|
||||
|
||||
console.log(
|
||||
`Update found : ${manifest?.version}, ${manifest?.date}`,
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
checkForUpdates();
|
||||
}, []);
|
||||
const { enqueueSnackbar } = useSnackbar();
|
||||
const [backdropUrl, backdropId] = useBackdropStore((state) => [
|
||||
state.backdropUrl,
|
||||
state.backdropId,
|
||||
]);
|
||||
|
||||
const [backdropLoading, setBackdropLoading] = useState(true);
|
||||
// Reset BackdropImageLoading for every new image
|
||||
useEffect(() => {
|
||||
setBackdropLoading(true);
|
||||
}, [backdropId]);
|
||||
return (
|
||||
<Suspense fallback={<h1>Loading...</h1>}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<SnackbarProvider maxSnack={5}>
|
||||
<CssBaseline />
|
||||
<ScrollRestoration />
|
||||
<Settings />
|
||||
<EasterEgg />
|
||||
<NProgress
|
||||
isAnimating={isQueryFetching || isMutating || routeIsLoading}
|
||||
/>
|
||||
|
||||
{routeIsLoading && (
|
||||
<motion.div
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
style={{
|
||||
width: "100vw",
|
||||
height: "100vh",
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
background: "rgb(0 0 0 / 0.35)",
|
||||
position: "fixed",
|
||||
zIndex: 10000,
|
||||
}}
|
||||
>
|
||||
<CircularProgress size={72} thickness={2} />
|
||||
</motion.div>
|
||||
)}
|
||||
|
||||
<Dialog
|
||||
open={updateDialog}
|
||||
fullWidth
|
||||
PaperProps={{
|
||||
style: {
|
||||
borderRadius: "14px",
|
||||
background: "rgb(0 0 0 / 0.5)",
|
||||
backdropFilter: "blur(10px)",
|
||||
border: "1px solid rgb(255 255 255 / 0.2)",
|
||||
},
|
||||
}}
|
||||
sx={{
|
||||
"& img": {
|
||||
width: "100%",
|
||||
},
|
||||
}}
|
||||
>
|
||||
{updateInfo !== undefined && (
|
||||
<>
|
||||
<DialogTitle
|
||||
variant="h5"
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
alignItems: "flex-start",
|
||||
gap: "0.4em",
|
||||
}}
|
||||
>
|
||||
Update Available!
|
||||
<Chip
|
||||
icon={
|
||||
<span className="material-symbols-rounded">update</span>
|
||||
}
|
||||
label={`v${updateInfo.version}`}
|
||||
color="success"
|
||||
/>
|
||||
</DialogTitle>
|
||||
<DialogContent dividers>
|
||||
<DialogContentText>
|
||||
<Markdown remarkPlugins={[remarkGfm]}>
|
||||
{updateInfo.body}
|
||||
</Markdown>
|
||||
</DialogContentText>
|
||||
</DialogContent>
|
||||
<DialogActions
|
||||
style={{
|
||||
padding: "1em",
|
||||
}}
|
||||
>
|
||||
<IconButton
|
||||
disabled={updateDialogButton}
|
||||
target="_blank"
|
||||
href={`https://github.com/prayag17/JellyPlayer/releases/${updateInfo.version}`}
|
||||
>
|
||||
<SvgIcon>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 16 16"
|
||||
>
|
||||
<title>Update</title>
|
||||
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8" />
|
||||
</svg>
|
||||
</SvgIcon>
|
||||
</IconButton>
|
||||
<Button
|
||||
size="large"
|
||||
color="error"
|
||||
variant="outlined"
|
||||
disabled={updateDialogButton}
|
||||
onClick={() => setUpdateDialog(false)}
|
||||
>
|
||||
close
|
||||
</Button>
|
||||
<LoadingButton
|
||||
size="large"
|
||||
color="success"
|
||||
variant="contained"
|
||||
loading={updateDialogButton}
|
||||
loadingIndicator="Updating..."
|
||||
onClick={async () => {
|
||||
setUpdateDialogButton(true);
|
||||
await installUpdate();
|
||||
enqueueSnackbar(
|
||||
"Update has been installed! You need to relaunch JellyPlayer.",
|
||||
{
|
||||
variant: "success",
|
||||
},
|
||||
);
|
||||
await relaunch();
|
||||
}}
|
||||
>
|
||||
Update
|
||||
</LoadingButton>
|
||||
</DialogActions>
|
||||
</>
|
||||
)}
|
||||
</Dialog>
|
||||
<div className="app-backdrop-container">
|
||||
<AnimatePresence>
|
||||
<motion.img
|
||||
key={backdropId}
|
||||
src={backdropUrl}
|
||||
alt=""
|
||||
className="app-backdrop"
|
||||
initial={{
|
||||
opacity: 0,
|
||||
}}
|
||||
animate={{
|
||||
opacity: backdropLoading ? 0 : 1,
|
||||
}}
|
||||
exit={{
|
||||
opacity: 0,
|
||||
}}
|
||||
transition={{
|
||||
opacity: {
|
||||
duration: 1.2,
|
||||
},
|
||||
}}
|
||||
onLoad={() => setBackdropLoading(false)}
|
||||
loading="lazy"
|
||||
/>
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
<AppBar />
|
||||
<AudioPlayer />
|
||||
<Outlet />
|
||||
<ReactQueryDevtools />
|
||||
<TanStackRouterDevtools />
|
||||
</SnackbarProvider>
|
||||
</ThemeProvider>
|
||||
</Suspense>
|
||||
);
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,52 @@
|
||||
import {
|
||||
getAllServers,
|
||||
getDefaultServer,
|
||||
getServer,
|
||||
} from "@/utils/storage/servers";
|
||||
import { getUser } from "@/utils/storage/user";
|
||||
import { axiosClient, useApiInContext } from "@/utils/store/api";
|
||||
import { getSystemApi } from "@jellyfin/sdk/lib/utils/api/system-api";
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { Outlet, createFileRoute, redirect } from "@tanstack/react-router";
|
||||
import React from "react";
|
||||
import { Suspense } from "react";
|
||||
|
||||
export const Route = createFileRoute("/_api")({
|
||||
beforeLoad: async ({ context, location }) => {
|
||||
console.log(context.api);
|
||||
if (!context.api) {
|
||||
const currentServerId = await getDefaultServer();
|
||||
if (currentServerId) {
|
||||
const currentServer = await getServer(currentServerId);
|
||||
const userOnDisk = await getUser();
|
||||
if (userOnDisk) {
|
||||
context.createApi(currentServer?.address, userOnDisk.AccessToken);
|
||||
} else {
|
||||
context.createApi(currentServer?.address, undefined); // Creates Api
|
||||
}
|
||||
}
|
||||
} else if (context.api) {
|
||||
try {
|
||||
await getSystemApi(context.api).getPingSystem(); // Verify server status
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
throw redirect({
|
||||
to: "/setup/server/error",
|
||||
});
|
||||
}
|
||||
if (context.api.accessToken) {
|
||||
try {
|
||||
await getUserApi(context.api).getCurrentUser(); // Verify user is able to authenticate
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
throw redirect({
|
||||
to: "/login/manual",
|
||||
search: {
|
||||
redirect: location.href,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -1,25 +1,17 @@
|
||||
import PropTypes from "prop-types";
|
||||
import React, { useEffect, useLayoutEffect, useRef } from "react";
|
||||
import React, { useLayoutEffect, useRef } from "react";
|
||||
|
||||
import heroBg from "@/assets/herobg.png";
|
||||
import Box from "@mui/material/Box";
|
||||
import Chip from "@mui/material/Chip";
|
||||
import CircularProgress from "@mui/material/CircularProgress";
|
||||
import Divider from "@mui/material/Divider";
|
||||
import Paper from "@mui/material/Paper";
|
||||
import Stack from "@mui/material/Stack";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import heroBg from "../../assets/herobg.png";
|
||||
|
||||
import { Link, NavLink, useParams } from "react-router-dom";
|
||||
|
||||
import useParallax from "@/utils/hooks/useParallax";
|
||||
import { motion, useScroll } from "framer-motion";
|
||||
import useParallax from "../../utils/hooks/useParallax";
|
||||
|
||||
import {
|
||||
BaseItemKind,
|
||||
ItemFields,
|
||||
SortOrder,
|
||||
} from "@jellyfin/sdk/lib/generated-client";
|
||||
import { BaseItemKind, SortOrder } from "@jellyfin/sdk/lib/generated-client";
|
||||
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
|
||||
import { getLibraryApi } from "@jellyfin/sdk/lib/utils/api/library-api";
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
@@ -29,25 +21,24 @@ import { Blurhash } from "react-blurhash";
|
||||
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
import { endsAt, getRuntime, getRuntimeMusic } from "../../utils/date/time";
|
||||
import { getRuntime } from "@/utils/date/time";
|
||||
|
||||
import { Card } from "../../components/card/card";
|
||||
import { CardScroller } from "../../components/cardScroller/cardScroller";
|
||||
import { Card } from "@/components/card/card";
|
||||
import { CardScroller } from "@/components/cardScroller/cardScroller";
|
||||
|
||||
import LikeButton from "../../components/buttons/likeButton";
|
||||
import MarkPlayedButton from "../../components/buttons/markPlayedButton";
|
||||
import PlayButton from "../../components/buttons/playButton";
|
||||
import TrackList from "../../components/layouts/tracksList";
|
||||
import { ErrorNotice } from "../../components/notices/errorNotice/errorNotice";
|
||||
import ShowMoreText from "../../components/showMoreText";
|
||||
import LikeButton from "@/components/buttons/likeButton";
|
||||
import PlayButton from "@/components/buttons/playButton";
|
||||
import TrackList from "@/components/layouts/tracksList";
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
import ShowMoreText from "@/components/showMoreText";
|
||||
|
||||
import { getTypeIcon } from "../../components/utils/iconsCollection";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { useAudioPlayback } from "../../utils/store/audioPlayback";
|
||||
import { useBackdropStore } from "../../utils/store/backdrop";
|
||||
import { getTypeIcon } from "@/components/utils/iconsCollection";
|
||||
import { useAudioPlayback } from "@/utils/store/audioPlayback";
|
||||
import { useBackdropStore } from "@/utils/store/backdrop";
|
||||
import "./album.scss";
|
||||
|
||||
import IconLink from "../../components/iconLink";
|
||||
import IconLink from "@/components/iconLink";
|
||||
import { Link, createFileRoute } from "@tanstack/react-router";
|
||||
|
||||
function TabPanel(props) {
|
||||
const { children, value, index, ...other } = props;
|
||||
@@ -79,9 +70,13 @@ function a11yProps(index) {
|
||||
};
|
||||
}
|
||||
|
||||
const MusicAlbumTitlePage = () => {
|
||||
const { id } = useParams();
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
export const Route = createFileRoute("/_api/album/$id")({
|
||||
component: MusicAlbumTitlePage,
|
||||
});
|
||||
|
||||
function MusicAlbumTitlePage() {
|
||||
const { id } = Route.useParams();
|
||||
const api = Route.useRouteContext().api;
|
||||
|
||||
const user = useQuery({
|
||||
queryKey: ["user"],
|
||||
@@ -97,9 +92,8 @@ const MusicAlbumTitlePage = () => {
|
||||
queryKey: ["item", id],
|
||||
queryFn: async () => {
|
||||
const result = await getUserLibraryApi(api).getItem({
|
||||
userId: user.data.Id,
|
||||
userId: user.data?.Id,
|
||||
itemId: id,
|
||||
fields: [ItemFields.Crew],
|
||||
});
|
||||
return result.data;
|
||||
},
|
||||
@@ -112,8 +106,8 @@ const MusicAlbumTitlePage = () => {
|
||||
queryKey: ["item", id, "similarItem"],
|
||||
queryFn: async () => {
|
||||
const result = await getLibraryApi(api).getSimilarAlbums({
|
||||
userId: user.data.Id,
|
||||
itemId: item.data.Id,
|
||||
userId: user.data?.Id,
|
||||
itemId: item.data?.Id,
|
||||
limit: 16,
|
||||
});
|
||||
return result.data;
|
||||
@@ -127,10 +121,10 @@ const MusicAlbumTitlePage = () => {
|
||||
queryKey: ["item", id, "musicTracks"],
|
||||
queryFn: async () => {
|
||||
const result = await getItemsApi(api).getItems({
|
||||
userId: user.data.Id,
|
||||
parentId: item.data.Id,
|
||||
sortOrder: SortOrder.Ascending,
|
||||
sortBy: "IndexNumber",
|
||||
userId: user.data?.Id,
|
||||
parentId: item.data?.Id,
|
||||
sortOrder: [SortOrder.Ascending],
|
||||
sortBy: ["IndexNumber"],
|
||||
});
|
||||
return result.data;
|
||||
},
|
||||
@@ -393,10 +387,13 @@ const MusicAlbumTitlePage = () => {
|
||||
</Typography>
|
||||
<div className="item-detail-cast-grid">
|
||||
{item.data.ArtistItems.map((artist) => (
|
||||
<NavLink
|
||||
<Link
|
||||
className="item-detail-cast-card"
|
||||
key={artist.Id}
|
||||
to={`/artist/${artist.Id}`}
|
||||
to="/artist/$id"
|
||||
params={{
|
||||
id: artist.Id,
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
@@ -436,7 +433,7 @@ const MusicAlbumTitlePage = () => {
|
||||
{artist.Role}
|
||||
</Typography>
|
||||
</div>
|
||||
</NavLink>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
@@ -504,6 +501,6 @@ const MusicAlbumTitlePage = () => {
|
||||
if (item.isError || similarItems.isError) {
|
||||
return <ErrorNotice />;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default MusicAlbumTitlePage;
|
||||
@@ -8,10 +8,8 @@ import Tab from "@mui/material/Tab";
|
||||
import Tabs from "@mui/material/Tabs";
|
||||
import Typography from "@mui/material/Typography";
|
||||
|
||||
import useParallax from "@/utils/hooks/useParallax";
|
||||
import { AnimatePresence, motion, useScroll } from "framer-motion";
|
||||
import useParallax from "../../utils/hooks/useParallax";
|
||||
|
||||
import { Link, useParams } from "react-router-dom";
|
||||
|
||||
import {
|
||||
BaseItemKind,
|
||||
@@ -24,21 +22,21 @@ import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api"
|
||||
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
import LikeButton from "@/components/buttons/likeButton";
|
||||
import { Card } from "@/components/card/card";
|
||||
import { Blurhash } from "react-blurhash";
|
||||
import LikeButton from "../../components/buttons/likeButton";
|
||||
import { Card } from "../../components/card/card";
|
||||
|
||||
import meshBg from "../../assets/herobg.png";
|
||||
import { ArtistAlbum } from "../../components/layouts/artist/artistAlbum";
|
||||
import MusicTrack from "../../components/musicTrack";
|
||||
import { ErrorNotice } from "../../components/notices/errorNotice/errorNotice";
|
||||
import ShowMoreText from "../../components/showMoreText";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { setBackdrop, useBackdropStore } from "../../utils/store/backdrop";
|
||||
import meshBg from "@/assets/herobg.png";
|
||||
import { ArtistAlbum } from "@/components/layouts/artist/artistAlbum";
|
||||
import MusicTrack from "@/components/musicTrack";
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
import ShowMoreText from "@/components/showMoreText";
|
||||
import { setBackdrop, useBackdropStore } from "@/utils/store/backdrop";
|
||||
import "./artist.scss";
|
||||
|
||||
import IconLink from "../../components/iconLink";
|
||||
import { getTypeIcon } from "../../components/utils/iconsCollection";
|
||||
import IconLink from "@/components/iconLink";
|
||||
import { getTypeIcon } from "@/components/utils/iconsCollection";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
|
||||
function TabPanel(props) {
|
||||
const { children, value, index, ...other } = props;
|
||||
@@ -63,9 +61,13 @@ TabPanel.propTypes = {
|
||||
value: PropTypes.number.isRequired,
|
||||
};
|
||||
|
||||
const ArtistTitlePage = () => {
|
||||
const { id } = useParams();
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
export const Route = createFileRoute("/_api/artist/$id")({
|
||||
component: ArtistTitlePage,
|
||||
});
|
||||
|
||||
function ArtistTitlePage() {
|
||||
const { id } = Route.useParams();
|
||||
const api = Route.useRouteContext().api;
|
||||
|
||||
const user = useQuery({
|
||||
queryKey: ["user"],
|
||||
@@ -483,6 +485,6 @@ const ArtistTitlePage = () => {
|
||||
if (item.isError) {
|
||||
return <ErrorNotice />;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default ArtistTitlePage;
|
||||
@@ -1,16 +1,14 @@
|
||||
import PropTypes from "prop-types";
|
||||
import React, { useState, useEffect, useLayoutEffect, useRef } from "react";
|
||||
import React, { useEffect, useRef } from "react";
|
||||
|
||||
import Box from "@mui/material/Box";
|
||||
import Chip from "@mui/material/Chip";
|
||||
import CircularProgress from "@mui/material/CircularProgress";
|
||||
import Divider from "@mui/material/Divider";
|
||||
import Stack from "@mui/material/Stack";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import { Link, useNavigate, useParams } from "react-router-dom";
|
||||
|
||||
import useParallax from "@/utils/hooks/useParallax";
|
||||
import { motion, useScroll } from "framer-motion";
|
||||
import useParallax from "../../utils/hooks/useParallax";
|
||||
|
||||
import {
|
||||
BaseItemKind,
|
||||
@@ -23,25 +21,24 @@ 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 { Card } from "../../components/card/card";
|
||||
import { CardScroller } from "../../components/cardScroller/cardScroller";
|
||||
import Hero from "../../components/layouts/item/hero";
|
||||
import { Card } from "@/components/card/card";
|
||||
import { CardScroller } from "@/components/cardScroller/cardScroller";
|
||||
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
import ShowMoreText from "@/components/showMoreText";
|
||||
import { endsAt, getRuntime } from "@/utils/date/time";
|
||||
import { setBackdrop, useBackdropStore } from "@/utils/store/backdrop";
|
||||
import { Blurhash } from "react-blurhash";
|
||||
import { ErrorNotice } from "../../components/notices/errorNotice/errorNotice";
|
||||
import ShowMoreText from "../../components/showMoreText";
|
||||
import { endsAt, getRuntime } from "../../utils/date/time";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { setBackdrop, useBackdropStore } from "../../utils/store/backdrop";
|
||||
|
||||
import LikeButton from "../../components/buttons/likeButton";
|
||||
import MarkPlayedButton from "../../components/buttons/markPlayedButton";
|
||||
import PlayButton from "../../components/buttons/playButton";
|
||||
import LikeButton from "@/components/buttons/likeButton";
|
||||
import MarkPlayedButton from "@/components/buttons/markPlayedButton";
|
||||
import PlayButton from "@/components/buttons/playButton";
|
||||
|
||||
import heroBg from "../../assets/herobg.png";
|
||||
import heroBg from "@/assets/herobg.png";
|
||||
import "./boxset.scss";
|
||||
|
||||
import IconLink from "../../components/iconLink";
|
||||
import IconLink from "@/components/iconLink";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
|
||||
function TabPanel(props) {
|
||||
const { children, value, index, ...other } = props;
|
||||
@@ -66,9 +63,13 @@ TabPanel.propTypes = {
|
||||
value: PropTypes.number.isRequired,
|
||||
};
|
||||
|
||||
const BoxSetTitlePage = () => {
|
||||
const { id } = useParams();
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
export const Route = createFileRoute("/_api/boxset/$id")({
|
||||
component: BoxSetTitlePage,
|
||||
});
|
||||
|
||||
function BoxSetTitlePage() {
|
||||
const { id } = Route.useParams();
|
||||
const api = Route.useRouteContext().api;
|
||||
|
||||
const user = useQuery({
|
||||
queryKey: ["user"],
|
||||
@@ -503,6 +504,6 @@ const BoxSetTitlePage = () => {
|
||||
if (item.isError || similarItems.isError) {
|
||||
return <ErrorNotice />;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default BoxSetTitlePage;
|
||||
@@ -14,10 +14,8 @@ import { green, red, yellow } from "@mui/material/colors";
|
||||
|
||||
import { Blurhash } from "react-blurhash";
|
||||
|
||||
import { Link, NavLink, useParams } from "react-router-dom";
|
||||
|
||||
import useParallax from "@/utils/hooks/useParallax";
|
||||
import { motion, useScroll } from "framer-motion";
|
||||
import useParallax from "../../utils/hooks/useParallax";
|
||||
|
||||
import {
|
||||
BaseItemKind,
|
||||
@@ -30,43 +28,43 @@ import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api"
|
||||
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
import heroBg from "../../assets/herobg.png";
|
||||
import { Card } from "../../components/card/card";
|
||||
import { CardScroller } from "../../components/cardScroller/cardScroller";
|
||||
import heroBg from "@/assets/herobg.png";
|
||||
import { Card } from "@/components/card/card";
|
||||
import { CardScroller } from "@/components/cardScroller/cardScroller";
|
||||
|
||||
import LikeButton from "../../components/buttons/likeButton";
|
||||
import MarkPlayedButton from "../../components/buttons/markPlayedButton";
|
||||
import PlayButton from "../../components/buttons/playButton";
|
||||
import TrailerButton from "../../components/buttons/trailerButton";
|
||||
import { ErrorNotice } from "../../components/notices/errorNotice/errorNotice";
|
||||
import ShowMoreText from "../../components/showMoreText";
|
||||
import TextLink from "../../components/textLink";
|
||||
import { getTypeIcon } from "../../components/utils/iconsCollection";
|
||||
import { endsAt, getRuntime } from "../../utils/date/time";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { useBackdropStore } from "../../utils/store/backdrop";
|
||||
import LikeButton from "@/components/buttons/likeButton";
|
||||
import MarkPlayedButton from "@/components/buttons/markPlayedButton";
|
||||
import PlayButton from "@/components/buttons/playButton";
|
||||
import TrailerButton from "@/components/buttons/trailerButton";
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
import ShowMoreText from "@/components/showMoreText";
|
||||
import TextLink from "@/components/textLink";
|
||||
import { getTypeIcon } from "@/components/utils/iconsCollection";
|
||||
import { endsAt, getRuntime } from "@/utils/date/time";
|
||||
import { useBackdropStore } from "@/utils/store/backdrop";
|
||||
import "./episode.scss";
|
||||
|
||||
import ultraHdIcon from "../../assets/icons/4k.svg";
|
||||
import dolbyAtmosIcon from "../../assets/icons/dolby-atmos.svg";
|
||||
import dolbyDigitalPlusIcon from "../../assets/icons/dolby-digital-plus.svg";
|
||||
import dolbyDigitalIcon from "../../assets/icons/dolby-digital.svg";
|
||||
import dolbyTrueHDIcon from "../../assets/icons/dolby-truehd.svg";
|
||||
import dolbyVisionAtmosIcon from "../../assets/icons/dolby-vision-atmos.png";
|
||||
import dolbyVisionIcon from "../../assets/icons/dolby-vision.svg";
|
||||
import dtsHdMaIcon from "../../assets/icons/dts-hd-ma.svg";
|
||||
import dtsIcon from "../../assets/icons/dts.svg";
|
||||
import hdIcon from "../../assets/icons/hd.svg";
|
||||
import hdrIcon from "../../assets/icons/hdr.svg";
|
||||
import hdr10PlusIcon from "../../assets/icons/hdr10-plus.svg";
|
||||
import hdr10Icon from "../../assets/icons/hdr10.svg";
|
||||
import imaxIcon from "../../assets/icons/imax.svg";
|
||||
import sdIcon from "../../assets/icons/sd.svg";
|
||||
import sdrIcon from "../../assets/icons/sdr.svg";
|
||||
import ultraHdIcon from "@/assets/icons/4k.svg";
|
||||
import dolbyAtmosIcon from "@/assets/icons/dolby-atmos.svg";
|
||||
import dolbyDigitalPlusIcon from "@/assets/icons/dolby-digital-plus.svg";
|
||||
import dolbyDigitalIcon from "@/assets/icons/dolby-digital.svg";
|
||||
import dolbyTrueHDIcon from "@/assets/icons/dolby-truehd.svg";
|
||||
import dolbyVisionAtmosIcon from "@/assets/icons/dolby-vision-atmos.png";
|
||||
import dolbyVisionIcon from "@/assets/icons/dolby-vision.svg";
|
||||
import dtsHdMaIcon from "@/assets/icons/dts-hd-ma.svg";
|
||||
import dtsIcon from "@/assets/icons/dts.svg";
|
||||
import hdIcon from "@/assets/icons/hd.svg";
|
||||
import hdrIcon from "@/assets/icons/hdr.svg";
|
||||
import hdr10PlusIcon from "@/assets/icons/hdr10-plus.svg";
|
||||
import hdr10Icon from "@/assets/icons/hdr10.svg";
|
||||
import imaxIcon from "@/assets/icons/imax.svg";
|
||||
import sdIcon from "@/assets/icons/sd.svg";
|
||||
import sdrIcon from "@/assets/icons/sdr.svg";
|
||||
|
||||
import type MediaQualityInfo from "../../utils/types/mediaQualityInfo";
|
||||
import type MediaQualityInfo from "@/utils/types/mediaQualityInfo";
|
||||
|
||||
import IconLink from "../../components/iconLink";
|
||||
import IconLink from "@/components/iconLink";
|
||||
import { Link, createFileRoute } from "@tanstack/react-router";
|
||||
|
||||
function TabPanel(props) {
|
||||
const { children, value, index, ...other } = props;
|
||||
@@ -91,9 +89,13 @@ TabPanel.propTypes = {
|
||||
value: PropTypes.number.isRequired,
|
||||
};
|
||||
|
||||
const EpisodeTitlePage = () => {
|
||||
const { id } = useParams();
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
export const Route = createFileRoute("/_api/episode/$id")({
|
||||
component: EpisodeTitlePage,
|
||||
});
|
||||
|
||||
function EpisodeTitlePage() {
|
||||
const { id } = Route.useParams();
|
||||
const api = Route.useRouteContext().api;
|
||||
|
||||
const user = useQuery({
|
||||
queryKey: ["user"],
|
||||
@@ -832,10 +834,13 @@ const EpisodeTitlePage = () => {
|
||||
<Typography variant="h6">Actors</Typography>
|
||||
<div className="item-detail-cast-grid">
|
||||
{actors.map((actor) => (
|
||||
<NavLink
|
||||
<Link
|
||||
className="item-detail-cast-card"
|
||||
key={actor.Id}
|
||||
to={`/person/${actor.Id}`}
|
||||
to={`/person/$id`}
|
||||
params={{
|
||||
id: actor.Id,
|
||||
}}
|
||||
>
|
||||
{actor.PrimaryImageTag ? (
|
||||
<img
|
||||
@@ -865,7 +870,7 @@ const EpisodeTitlePage = () => {
|
||||
{actor.Role}
|
||||
</Typography>
|
||||
</div>
|
||||
</NavLink>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
@@ -875,10 +880,13 @@ const EpisodeTitlePage = () => {
|
||||
<Typography variant="h6">Writers</Typography>
|
||||
<div className="item-detail-cast-grid">
|
||||
{writers.map((actor) => (
|
||||
<NavLink
|
||||
<Link
|
||||
className="item-detail-cast-card"
|
||||
key={actor.Id}
|
||||
to={`/person/${actor.Id}`}
|
||||
to={`/person/$id`}
|
||||
params={{
|
||||
id: actor.Id,
|
||||
}}
|
||||
>
|
||||
{actor.PrimaryImageTag ? (
|
||||
<img
|
||||
@@ -908,7 +916,7 @@ const EpisodeTitlePage = () => {
|
||||
{actor.Role}
|
||||
</Typography>
|
||||
</div>
|
||||
</NavLink>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
@@ -918,10 +926,13 @@ const EpisodeTitlePage = () => {
|
||||
<Typography variant="h6">Directors</Typography>
|
||||
<div className="item-detail-cast-grid">
|
||||
{directors.map((actor) => (
|
||||
<NavLink
|
||||
<Link
|
||||
className="item-detail-cast-card"
|
||||
to={`/person/${actor.Id}`}
|
||||
key={actor.Id}
|
||||
to={`/person/$id`}
|
||||
params={{
|
||||
id: actor.Id,
|
||||
}}
|
||||
>
|
||||
{actor.PrimaryImageTag ? (
|
||||
<img
|
||||
@@ -951,7 +962,7 @@ const EpisodeTitlePage = () => {
|
||||
{actor.Role}
|
||||
</Typography>
|
||||
</div>
|
||||
</NavLink>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
@@ -961,10 +972,13 @@ const EpisodeTitlePage = () => {
|
||||
<Typography variant="h6">Producers</Typography>
|
||||
<div className="item-detail-cast-grid">
|
||||
{producers.map((actor) => (
|
||||
<NavLink
|
||||
<Link
|
||||
className="item-detail-cast-card"
|
||||
key={actor.Id}
|
||||
to={`/person/${actor.Id}`}
|
||||
to={`/person/$id`}
|
||||
params={{
|
||||
id: actor.Id,
|
||||
}}
|
||||
>
|
||||
{actor.PrimaryImageTag ? (
|
||||
<img
|
||||
@@ -994,7 +1008,7 @@ const EpisodeTitlePage = () => {
|
||||
{actor.Role}
|
||||
</Typography>
|
||||
</div>
|
||||
</NavLink>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
@@ -1007,6 +1021,6 @@ const EpisodeTitlePage = () => {
|
||||
if (item.isError) {
|
||||
return <ErrorNotice />;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default EpisodeTitlePage;
|
||||
@@ -1,20 +1,24 @@
|
||||
import React, { useEffect } from "react";
|
||||
|
||||
import { useBackdropStore } from "../../utils/store/backdrop";
|
||||
import { useBackdropStore } from "@/utils/store/backdrop";
|
||||
|
||||
import Typography from "@mui/material/Typography";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import "./favorite.scss";
|
||||
|
||||
import { Card } from "@/components/card/card";
|
||||
import { CardScroller } from "@/components/cardScroller/cardScroller";
|
||||
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
|
||||
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { Card } from "../../components/card/card";
|
||||
import { CardScroller } from "../../components/cardScroller/cardScroller";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
|
||||
const FavoritePage = () => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
export const Route = createFileRoute("/_api/favorite/")({
|
||||
component: FavoritePage,
|
||||
});
|
||||
|
||||
function FavoritePage() {
|
||||
const api = Route.useRouteContext().api;
|
||||
const [setBackdrop] = useBackdropStore((state) => [state.setBackdrop]);
|
||||
|
||||
const user = useQuery({
|
||||
@@ -167,7 +171,7 @@ const FavoritePage = () => {
|
||||
item.EndDate
|
||||
? new Date(item.EndDate).toLocaleString([], {
|
||||
year: "numeric",
|
||||
})
|
||||
})
|
||||
: "Present"
|
||||
}`}
|
||||
cardType="portrait"
|
||||
@@ -297,6 +301,6 @@ const FavoritePage = () => {
|
||||
)}
|
||||
</main>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
export default FavoritePage;
|
||||
@@ -4,14 +4,14 @@ import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
import "./home.scss";
|
||||
|
||||
import Carousel from "../../components/carousel";
|
||||
import Carousel from "@/components/carousel";
|
||||
|
||||
// Custom Components
|
||||
import { Card } from "../../components/card/card";
|
||||
import { CardScroller } from "../../components/cardScroller/cardScroller";
|
||||
import { LatestMediaSection } from "../../components/layouts/homeSection/latestMediaSection";
|
||||
import { CardsSkeleton } from "../../components/skeleton/cards";
|
||||
import { CarouselSkeleton } from "../../components/skeleton/carousel";
|
||||
import { Card } from "@/components/card/card";
|
||||
import { CardScroller } from "@/components/cardScroller/cardScroller";
|
||||
import { LatestMediaSection } from "@/components/layouts/homeSection/latestMediaSection";
|
||||
import { CardsSkeleton } from "@/components/skeleton/cards";
|
||||
import { CarouselSkeleton } from "@/components/skeleton/carousel";
|
||||
|
||||
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
|
||||
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api";
|
||||
@@ -19,20 +19,24 @@ 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 { useNavigate } from "react-router-dom";
|
||||
import { createFileRoute, useNavigate } from "@tanstack/react-router";
|
||||
|
||||
import { setBackdrop, useBackdropStore } from "../../utils/store/backdrop";
|
||||
import { setBackdrop, useBackdropStore } from "@/utils/store/backdrop";
|
||||
|
||||
import CarouselSlide from "@/components/carouselSlide";
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
import { 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 CarouselSlide from "../../components/carouselSlide";
|
||||
import { ErrorNotice } from "../../components/notices/errorNotice/errorNotice";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
|
||||
const Home = () => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
export const Route = createFileRoute("/_api/home/")({
|
||||
component: Home,
|
||||
});
|
||||
|
||||
function Home() {
|
||||
const api = useApiInContext((s) => s.api);
|
||||
|
||||
const user = useQuery({
|
||||
queryKey: ["user"],
|
||||
@@ -91,7 +95,7 @@ const Home = () => {
|
||||
return resumeItems.data;
|
||||
},
|
||||
enabled: !!user.data,
|
||||
refetchOnMount: true
|
||||
refetchOnMount: true,
|
||||
});
|
||||
|
||||
const resumeItemsAudio = useQuery({
|
||||
@@ -127,7 +131,7 @@ const Home = () => {
|
||||
return upNext.data;
|
||||
},
|
||||
enabled: !!user.data,
|
||||
refetchOnMount: true
|
||||
refetchOnMount: true,
|
||||
});
|
||||
|
||||
const [latestMediaLibs, setLatestMediaLibs] = useState([]);
|
||||
@@ -221,7 +225,7 @@ const Home = () => {
|
||||
imageType="Primary"
|
||||
cardType="thumb"
|
||||
disableOverlay
|
||||
onClick={() => navigate(`/library/${item.Id}`)}
|
||||
onClick={() => navigate({ to: `/library/${item.Id}` })}
|
||||
imageBlurhash={
|
||||
!!item.ImageBlurHashes?.Primary &&
|
||||
item.ImageBlurHashes?.Primary[
|
||||
@@ -412,6 +416,6 @@ const Home = () => {
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
export default React.memo(Home);
|
||||
@@ -14,10 +14,8 @@ import { green, red, yellow } from "@mui/material/colors";
|
||||
|
||||
import { Blurhash } from "react-blurhash";
|
||||
|
||||
import { Link, NavLink, useParams } from "react-router-dom";
|
||||
|
||||
import useParallax from "@/utils/hooks/useParallax";
|
||||
import { motion, useScroll } from "framer-motion";
|
||||
import useParallax from "../../utils/hooks/useParallax";
|
||||
|
||||
import {
|
||||
BaseItemKind,
|
||||
@@ -30,47 +28,46 @@ import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api"
|
||||
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
import heroBg from "../../assets/herobg.png";
|
||||
import { Card } from "../../components/card/card";
|
||||
import { CardScroller } from "../../components/cardScroller/cardScroller";
|
||||
import heroBg from "@/assets/herobg.png";
|
||||
import { Card } from "@/components/card/card";
|
||||
import { CardScroller } from "@/components/cardScroller/cardScroller";
|
||||
|
||||
import "./item.scss";
|
||||
|
||||
import { ErrorNotice } from "../../components/notices/errorNotice/errorNotice";
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
|
||||
import LikeButton from "../../components/buttons/likeButton";
|
||||
import MarkPlayedButton from "../../components/buttons/markPlayedButton";
|
||||
import PlayButton from "../../components/buttons/playButton";
|
||||
import TrailerButton from "../../components/buttons/trailerButton";
|
||||
import ShowMoreText from "../../components/showMoreText";
|
||||
import TextLink from "../../components/textLink";
|
||||
import { getTypeIcon } from "../../components/utils/iconsCollection";
|
||||
import { endsAt, getRuntime } from "../../utils/date/time";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { setBackdrop, useBackdropStore } from "../../utils/store/backdrop";
|
||||
import LikeButton from "@/components/buttons/likeButton";
|
||||
import MarkPlayedButton from "@/components/buttons/markPlayedButton";
|
||||
import PlayButton from "@/components/buttons/playButton";
|
||||
import TrailerButton from "@/components/buttons/trailerButton";
|
||||
import ShowMoreText from "@/components/showMoreText";
|
||||
import { getTypeIcon } from "@/components/utils/iconsCollection";
|
||||
import { endsAt, getRuntime } from "@/utils/date/time";
|
||||
import { setBackdrop, useBackdropStore } from "@/utils/store/backdrop";
|
||||
|
||||
import ItemSkeleton from "../../components/skeleton/item";
|
||||
import ItemSkeleton from "@/components/skeleton/item";
|
||||
|
||||
import ultraHdIcon from "../../assets/icons/4k.svg";
|
||||
import dolbyAtmosIcon from "../../assets/icons/dolby-atmos.svg";
|
||||
import dolbyDigitalPlusIcon from "../../assets/icons/dolby-digital-plus.svg";
|
||||
import dolbyDigitalIcon from "../../assets/icons/dolby-digital.svg";
|
||||
import dolbyTrueHDIcon from "../../assets/icons/dolby-truehd.svg";
|
||||
import dolbyVisionAtmosIcon from "../../assets/icons/dolby-vision-atmos.png";
|
||||
import dolbyVisionIcon from "../../assets/icons/dolby-vision.svg";
|
||||
import dtsHdMaIcon from "../../assets/icons/dts-hd-ma.svg";
|
||||
import dtsIcon from "../../assets/icons/dts.svg";
|
||||
import hdIcon from "../../assets/icons/hd.svg";
|
||||
import hdrIcon from "../../assets/icons/hdr.svg";
|
||||
import hdr10PlusIcon from "../../assets/icons/hdr10-plus.svg";
|
||||
import hdr10Icon from "../../assets/icons/hdr10.svg";
|
||||
import imaxIcon from "../../assets/icons/imax.svg";
|
||||
import sdIcon from "../../assets/icons/sd.svg";
|
||||
import sdrIcon from "../../assets/icons/sdr.svg";
|
||||
import ultraHdIcon from "@/assets/icons/4k.svg";
|
||||
import dolbyAtmosIcon from "@/assets/icons/dolby-atmos.svg";
|
||||
import dolbyDigitalPlusIcon from "@/assets/icons/dolby-digital-plus.svg";
|
||||
import dolbyDigitalIcon from "@/assets/icons/dolby-digital.svg";
|
||||
import dolbyTrueHDIcon from "@/assets/icons/dolby-truehd.svg";
|
||||
import dolbyVisionAtmosIcon from "@/assets/icons/dolby-vision-atmos.png";
|
||||
import dolbyVisionIcon from "@/assets/icons/dolby-vision.svg";
|
||||
import dtsHdMaIcon from "@/assets/icons/dts-hd-ma.svg";
|
||||
import dtsIcon from "@/assets/icons/dts.svg";
|
||||
import hdIcon from "@/assets/icons/hd.svg";
|
||||
import hdrIcon from "@/assets/icons/hdr.svg";
|
||||
import hdr10PlusIcon from "@/assets/icons/hdr10-plus.svg";
|
||||
import hdr10Icon from "@/assets/icons/hdr10.svg";
|
||||
import imaxIcon from "@/assets/icons/imax.svg";
|
||||
import sdIcon from "@/assets/icons/sd.svg";
|
||||
import sdrIcon from "@/assets/icons/sdr.svg";
|
||||
|
||||
import type MediaQualityInfo from "../../utils/types/mediaQualityInfo";
|
||||
import type MediaQualityInfo from "@/utils/types/mediaQualityInfo";
|
||||
|
||||
import IconLink from "../../components/iconLink";
|
||||
import IconLink from "@/components/iconLink";
|
||||
import { Link, createFileRoute } from "@tanstack/react-router";
|
||||
|
||||
function TabPanel(props) {
|
||||
const { children, value, index, ...other } = props;
|
||||
@@ -95,10 +92,15 @@ TabPanel.propTypes = {
|
||||
value: PropTypes.number.isRequired,
|
||||
};
|
||||
|
||||
const ItemDetail = () => {
|
||||
const { id } = useParams();
|
||||
export const Route = createFileRoute("/_api/item/$id")({
|
||||
component: ItemDetail,
|
||||
});
|
||||
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
function ItemDetail() {
|
||||
"use memo";
|
||||
const { id } = Route.useParams();
|
||||
|
||||
const api = Route.useRouteContext().api;
|
||||
|
||||
const user = useQuery({
|
||||
queryKey: ["user"],
|
||||
@@ -114,9 +116,8 @@ const ItemDetail = () => {
|
||||
queryKey: ["item", id],
|
||||
queryFn: async () => {
|
||||
const result = await getUserLibraryApi(api).getItem({
|
||||
userId: user.data.Id,
|
||||
userId: user.data?.Id,
|
||||
itemId: id,
|
||||
fields: Object.values(ItemFields),
|
||||
});
|
||||
return result.data;
|
||||
},
|
||||
@@ -824,10 +825,13 @@ const ItemDetail = () => {
|
||||
<Typography variant="h6">Actors</Typography>
|
||||
<div className="item-detail-cast-grid">
|
||||
{actors.map((actor) => (
|
||||
<NavLink
|
||||
<Link
|
||||
className="item-detail-cast-card"
|
||||
key={actor.Id}
|
||||
to={`/person/${actor.Id}`}
|
||||
to="/person/$id"
|
||||
params={{
|
||||
id: actor.Id,
|
||||
}}
|
||||
>
|
||||
{actor.PrimaryImageTag ? (
|
||||
<img
|
||||
@@ -857,7 +861,7 @@ const ItemDetail = () => {
|
||||
{actor.Role}
|
||||
</Typography>
|
||||
</div>
|
||||
</NavLink>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
@@ -867,7 +871,7 @@ const ItemDetail = () => {
|
||||
<Typography variant="h6">Writers</Typography>
|
||||
<div className="item-detail-cast-grid">
|
||||
{writers.map((actor) => (
|
||||
<NavLink
|
||||
<Link
|
||||
className="item-detail-cast-card"
|
||||
key={actor.Id}
|
||||
to={`/person/${actor.Id}`}
|
||||
@@ -900,7 +904,7 @@ const ItemDetail = () => {
|
||||
{actor.Role}
|
||||
</Typography>
|
||||
</div>
|
||||
</NavLink>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
@@ -910,10 +914,13 @@ const ItemDetail = () => {
|
||||
<Typography variant="h6">Directors</Typography>
|
||||
<div className="item-detail-cast-grid">
|
||||
{directors.map((actor) => (
|
||||
<NavLink
|
||||
<Link
|
||||
className="item-detail-cast-card"
|
||||
to={`/person/${actor.Id}`}
|
||||
to="/person/$id"
|
||||
key={actor.Id}
|
||||
params={{
|
||||
id: actor.Id,
|
||||
}}
|
||||
>
|
||||
{actor.PrimaryImageTag ? (
|
||||
<img
|
||||
@@ -943,7 +950,7 @@ const ItemDetail = () => {
|
||||
{actor.Role}
|
||||
</Typography>
|
||||
</div>
|
||||
</NavLink>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
@@ -953,10 +960,13 @@ const ItemDetail = () => {
|
||||
<Typography variant="h6">Producers</Typography>
|
||||
<div className="item-detail-cast-grid">
|
||||
{producers.map((actor) => (
|
||||
<NavLink
|
||||
<Link
|
||||
className="item-detail-cast-card"
|
||||
key={actor.Id}
|
||||
to={`/person/${actor.Id}`}
|
||||
to={`/person/$id`}
|
||||
params={{
|
||||
id: actor.Id,
|
||||
}}
|
||||
>
|
||||
{actor.PrimaryImageTag ? (
|
||||
<img
|
||||
@@ -986,7 +996,7 @@ const ItemDetail = () => {
|
||||
{actor.Role}
|
||||
</Typography>
|
||||
</div>
|
||||
</NavLink>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
@@ -1049,6 +1059,6 @@ const ItemDetail = () => {
|
||||
if (item.isError || similarItems.isError) {
|
||||
return <ErrorNotice />;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default ItemDetail;
|
||||
@@ -1,8 +1,7 @@
|
||||
import { motion } from "framer-motion";
|
||||
import React, { useState, useEffect, useLayoutEffect } from "react";
|
||||
import { useParams } from "react-router-dom";
|
||||
|
||||
import { useInfiniteQuery, useQuery } from "@tanstack/react-query";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
import Accordion from "@mui/material/Accordion";
|
||||
import AccordionDetails from "@mui/material/AccordionDetails";
|
||||
@@ -31,27 +30,26 @@ import { getPersonsApi } from "@jellyfin/sdk/lib/utils/api/persons-api";
|
||||
import { getStudiosApi } from "@jellyfin/sdk/lib/utils/api/studios-api";
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
|
||||
import { Card } from "../../components/card/card";
|
||||
import { EmptyNotice } from "../../components/notices/emptyNotice/emptyNotice";
|
||||
import { Card } from "@/components/card/card";
|
||||
import { EmptyNotice } from "@/components/notices/emptyNotice/emptyNotice";
|
||||
|
||||
import GenreView from "@/components/layouts/library/genreView";
|
||||
import MusicTrack from "@/components/musicTrack";
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
import { setBackdrop, useBackdropStore } from "@/utils/store/backdrop";
|
||||
import {
|
||||
type BaseItemDtoQueryResult,
|
||||
BaseItemKind,
|
||||
ItemFields,
|
||||
SortOrder,
|
||||
} from "@jellyfin/sdk/lib/generated-client";
|
||||
import GenreView from "../../components/layouts/library/genreView";
|
||||
import MusicTrack from "../../components/musicTrack";
|
||||
import { ErrorNotice } from "../../components/notices/errorNotice/errorNotice";
|
||||
import { setBackdrop, useBackdropStore } from "../../utils/store/backdrop";
|
||||
|
||||
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
|
||||
import { useScrollTrigger } from "@mui/material";
|
||||
import { useVirtualizer, useWindowVirtualizer } from "@tanstack/react-virtual";
|
||||
import { useWindowVirtualizer } from "@tanstack/react-virtual";
|
||||
import type { AxiosResponse } from "axios";
|
||||
import { enqueueSnackbar } from "notistack";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import "./library.scss";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
|
||||
const useWindowWidth = () => {
|
||||
const [width, setWidth] = React.useState(window.innerWidth);
|
||||
@@ -72,11 +70,14 @@ const useWindowWidth = () => {
|
||||
return width;
|
||||
};
|
||||
|
||||
const LibraryView = () => {
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
const maxDisplayItems = 100;
|
||||
export const Route = createFileRoute("/_api/library/$id")({
|
||||
component: LibraryView,
|
||||
});
|
||||
|
||||
const { id } = useParams();
|
||||
function LibraryView() {
|
||||
const api = Route.useRouteContext().api;
|
||||
|
||||
const { id } = Route.useParams();
|
||||
|
||||
const user = useQuery({
|
||||
queryKey: ["user"],
|
||||
@@ -370,6 +371,14 @@ const LibraryView = () => {
|
||||
const backdropItemsTemp = items.data.Items?.filter(
|
||||
(item) => item.BackdropImageTags?.length > 0,
|
||||
);
|
||||
const backdropItem = backdropItemsTemp[0];
|
||||
// enqueueSnackbar("Running");
|
||||
setBackdrop(
|
||||
api?.getItemImageUrl(backdropItem?.Id, "Backdrop", {
|
||||
tag: backdropItem?.BackdropImageTags[0],
|
||||
}),
|
||||
backdropItem?.BackdropImageTags[0] ?? "none",
|
||||
);
|
||||
setBackdropItems(backdropItemsTemp);
|
||||
}
|
||||
}, [items.isSuccess]);
|
||||
@@ -384,7 +393,7 @@ const LibraryView = () => {
|
||||
api?.getItemImageUrl(backdropItem.Id, "Backdrop", {
|
||||
tag: backdropItem.BackdropImageTags[0],
|
||||
}),
|
||||
backdropItem.Id,
|
||||
backdropItem.BackdropImageTags[0] ?? "none",
|
||||
);
|
||||
}, 10000); // Update backdrop every 10s
|
||||
return () => clearInterval(intervalId);
|
||||
@@ -1333,6 +1342,6 @@ const LibraryView = () => {
|
||||
if (currentLib.isError) {
|
||||
return <h6>{currentLib.error}</h6>;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default LibraryView;
|
||||
@@ -0,0 +1,211 @@
|
||||
import LoadingButton from "@mui/lab/LoadingButton";
|
||||
import { OutlinedInput, Paper, Typography } from "@mui/material";
|
||||
import Checkbox from "@mui/material/Checkbox";
|
||||
import FormControl from "@mui/material/FormControl";
|
||||
import FormControlLabel from "@mui/material/FormControlLabel";
|
||||
import FormGroup from "@mui/material/FormGroup";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import InputAdornment from "@mui/material/InputAdornment";
|
||||
import InputLabel from "@mui/material/InputLabel";
|
||||
|
||||
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 { setBackdrop } from "@/utils/store/backdrop.js";
|
||||
import { createFileRoute, useNavigate } from "@tanstack/react-router";
|
||||
import React, { useLayoutEffect, useState } from "react";
|
||||
|
||||
export const Route = createFileRoute("/_api/login/$userId/$userName")({
|
||||
component: LoginUser,
|
||||
});
|
||||
|
||||
function LoginUser() {
|
||||
const { userName, userId } = Route.useParams();
|
||||
|
||||
const api = Route.useRouteContext().api;
|
||||
|
||||
const [password, setPassword] = useState({
|
||||
showpass: false,
|
||||
});
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [rememberMe, setRememberMe] = useState(true);
|
||||
|
||||
const navigate = useNavigate({ from: "/login/$userId/$userName" });
|
||||
|
||||
const { enqueueSnackbar } = useSnackbar();
|
||||
|
||||
const handlePassword = (prop) => (event) => {
|
||||
setPassword({
|
||||
...password,
|
||||
[prop]: event.target.value,
|
||||
});
|
||||
};
|
||||
|
||||
const handleShowPassword = () => {
|
||||
setPassword({
|
||||
...password,
|
||||
showpass: !password.showpass,
|
||||
});
|
||||
};
|
||||
|
||||
const authUser = async () => {
|
||||
try {
|
||||
const auth = await api.authenticateUserByName(
|
||||
userName,
|
||||
password.password,
|
||||
);
|
||||
return auth;
|
||||
} catch (error) {
|
||||
if (error.response?.status === 500) {
|
||||
enqueueSnackbar(
|
||||
"Unable to connect to server. Please try again after some time.",
|
||||
{ variant: "error" },
|
||||
);
|
||||
} else {
|
||||
enqueueSnackbar("Incorrect Password.", { variant: "error" });
|
||||
}
|
||||
setLoading(false);
|
||||
console.error(error);
|
||||
}
|
||||
};
|
||||
|
||||
const handleLogin = async () => {
|
||||
setLoading(true);
|
||||
const user = await authUser();
|
||||
sessionStorage.setItem("accessToken", user.data.AccessToken);
|
||||
createApi(api.basePath, user.data.AccessToken);
|
||||
if (rememberMe === true) {
|
||||
await saveUser(userName, user.data.AccessToken);
|
||||
}
|
||||
setLoading(false);
|
||||
navigate("/home");
|
||||
};
|
||||
|
||||
useLayoutEffect(() => {
|
||||
setBackdrop("", "");
|
||||
}, []);
|
||||
|
||||
const handleCheckRememberMe = (event) => {
|
||||
setRememberMe(event.target.checked);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<AppBarBackOnly />
|
||||
<div
|
||||
style={{
|
||||
height: "100vh",
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
flexDirection: "column",
|
||||
width: "30vw",
|
||||
margin: "auto",
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
marginBottom: "-4em",
|
||||
boxShadow: "1em 0 hsl(256, 100%, 6%)",
|
||||
}}
|
||||
>
|
||||
<AvatarImage userId={userId} />
|
||||
</div>
|
||||
<Paper
|
||||
sx={{
|
||||
width: "100%",
|
||||
padding: "1em",
|
||||
paddingTop: "5em",
|
||||
borderRadius: "10px",
|
||||
}}
|
||||
elevation={2}
|
||||
>
|
||||
<Typography
|
||||
textAlign="center"
|
||||
variant="h5"
|
||||
sx={{ opacity: 0.8 }}
|
||||
mb={2}
|
||||
>
|
||||
Login as{" "}
|
||||
<Typography
|
||||
variant="h5"
|
||||
style={{
|
||||
display: "inline",
|
||||
}}
|
||||
fontWeight={700}
|
||||
className="gradient-text"
|
||||
>
|
||||
{userName}
|
||||
</Typography>
|
||||
</Typography>
|
||||
<FormGroup
|
||||
sx={{
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
<FormControl
|
||||
variant="outlined"
|
||||
style={{
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
<InputLabel htmlFor="user-password">Password:</InputLabel>
|
||||
<OutlinedInput
|
||||
id="user-password"
|
||||
type={password.showpass ? "text" : "password"}
|
||||
variant="outlined"
|
||||
onChange={handlePassword("password")}
|
||||
label="Password:"
|
||||
endAdornment={
|
||||
<InputAdornment position="end">
|
||||
<IconButton
|
||||
onClick={handleShowPassword}
|
||||
aria-label="toggle password visibility"
|
||||
>
|
||||
{password.showpass ? (
|
||||
<span className="material-symbols-rounded">
|
||||
visibility
|
||||
</span>
|
||||
) : (
|
||||
<span className="material-symbols-rounded">
|
||||
visibility_off
|
||||
</span>
|
||||
)}
|
||||
</IconButton>
|
||||
</InputAdornment>
|
||||
}
|
||||
/>
|
||||
</FormControl>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Checkbox
|
||||
checked={rememberMe}
|
||||
onChange={handleCheckRememberMe}
|
||||
/>
|
||||
}
|
||||
label="Remember me"
|
||||
/>
|
||||
</FormGroup>
|
||||
<LoadingButton
|
||||
variant="contained"
|
||||
endIcon={
|
||||
<span className="material-symbols-rounded">chevron_right</span>
|
||||
}
|
||||
onClick={handleLogin}
|
||||
loading={loading}
|
||||
loadingPosition="end"
|
||||
size="large"
|
||||
fullWidth
|
||||
>
|
||||
Login
|
||||
</LoadingButton>
|
||||
</Paper>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { Typography } from "@mui/material";
|
||||
import CircularProgress from "@mui/material/CircularProgress";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { useLocation, useNavigate } from "@tanstack/react-router";
|
||||
import React, { Suspense, useState } from "react";
|
||||
|
||||
import "./login.scss";
|
||||
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import { AnimatePresence, motion } from "framer-motion";
|
||||
import Markdown from "react-markdown";
|
||||
import remarkGfm from "remark-gfm";
|
||||
|
||||
export const Route = createFileRoute("/_api/login/")({
|
||||
component: LoginRoute,
|
||||
});
|
||||
|
||||
function LoginRoute() {
|
||||
const location = useLocation();
|
||||
const navigate = useNavigate();
|
||||
const api = Route.useRouteContext().api;
|
||||
const [status, setStatus] = useState("Fetching public users...");
|
||||
|
||||
const usersList = useQuery({
|
||||
queryKey: ["public-users"],
|
||||
queryFn: async () => {
|
||||
const result = await getUserApi(api).getPublicUsers();
|
||||
return result.data;
|
||||
},
|
||||
enabled: Boolean(api),
|
||||
});
|
||||
|
||||
if (location.pathname === "/login") {
|
||||
console.log(api);
|
||||
if (usersList.isSuccess && !usersList.isFetching) {
|
||||
if (usersList.data.length > 0) {
|
||||
setStatus("Public users found!");
|
||||
navigate({ to: "/login/list" });
|
||||
} else {
|
||||
setStatus("No public users found");
|
||||
navigate({ to: "/login/manual" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<Suspense fallback={<h1>Loading /login</h1>}>
|
||||
<div
|
||||
style={{
|
||||
position: "relative",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
flexDirection: "column",
|
||||
width: "100vw",
|
||||
height: "100vh",
|
||||
}}
|
||||
>
|
||||
<CircularProgress size={72} thickness={2} />
|
||||
<AnimatePresence mode="wait">
|
||||
<motion.div
|
||||
key={status}
|
||||
initial={{
|
||||
opacity: 0,
|
||||
transform: "translateY(10px)",
|
||||
}}
|
||||
layout
|
||||
animate={{ opacity: 1, transform: "translateY(0px)" }}
|
||||
exit={{
|
||||
opacity: 0,
|
||||
transform: "translateY(-10px)",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
component={Markdown}
|
||||
remarkPlugins={[remarkGfm]}
|
||||
color="white"
|
||||
variant="h6"
|
||||
mt={3}
|
||||
fontWeight={350}
|
||||
textAlign="center"
|
||||
>
|
||||
{status}
|
||||
</Typography>
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,342 @@
|
||||
import { EventEmitter as event } from "@/eventEmitter.js";
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import React, { useLayoutEffect, useState } from "react";
|
||||
|
||||
import { saveUser } from "@/utils/storage/user.js";
|
||||
|
||||
import LoadingButton from "@mui/lab/LoadingButton";
|
||||
import {
|
||||
Dialog,
|
||||
DialogActions,
|
||||
DialogContent,
|
||||
DialogContentText,
|
||||
Grid,
|
||||
OutlinedInput,
|
||||
Paper,
|
||||
Tooltip,
|
||||
Typography,
|
||||
} from "@mui/material";
|
||||
import Button from "@mui/material/Button";
|
||||
import Checkbox from "@mui/material/Checkbox";
|
||||
import Container from "@mui/material/Container";
|
||||
import FormControlLabel from "@mui/material/FormControlLabel";
|
||||
import LinearProgress from "@mui/material/LinearProgress";
|
||||
|
||||
import { useSnackbar } from "notistack";
|
||||
|
||||
import { AppBarBackOnly } from "@/components/appBar/backOnly.jsx";
|
||||
import { Card } from "@/components/card/card.js";
|
||||
|
||||
import { getQuickConnectApi } from "@jellyfin/sdk/lib/utils/api/quick-connect-api";
|
||||
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 { setBackdrop } from "@/utils/store/backdrop.js";
|
||||
import { blue } from "@mui/material/colors";
|
||||
import { createFileRoute, useNavigate } from "@tanstack/react-router";
|
||||
|
||||
export const Route = createFileRoute("/_api/login/list")({
|
||||
component: LoginPublicUsersList,
|
||||
loader: async ({context}) => {
|
||||
const api = context.api;
|
||||
const result = await getUserApi(api).getPublicUsers();
|
||||
return result.data;
|
||||
},
|
||||
});
|
||||
|
||||
function LoginPublicUsersList() {
|
||||
const navigate = useNavigate();
|
||||
|
||||
const { enqueueSnackbar } = useSnackbar();
|
||||
|
||||
const api = Route.useRouteContext().api;
|
||||
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [rememberMe, setRememberMe] = useState(true);
|
||||
const [quickConnectLoading, setQuickConnectLoading] = useState(-1);
|
||||
const [quickConnectCode, setQuickConnectCode] = useState("");
|
||||
|
||||
const handleCheckRememberMe = (event) => {
|
||||
setRememberMe(event.target.checked);
|
||||
};
|
||||
|
||||
const handleChangeServer = () => {
|
||||
// navigate("/servers/list");
|
||||
};
|
||||
const handleManualLogin = () => {
|
||||
// navigate("/login/manual");
|
||||
};
|
||||
const users = Route.useLoaderData();
|
||||
|
||||
const handleQuickConnect = async () => {
|
||||
setQuickConnectLoading(0);
|
||||
|
||||
const quickApi = getQuickConnectApi(api);
|
||||
|
||||
const headers = {
|
||||
"X-Emby-Authorization": `MediaBrowser Client="${api.clientInfo.name}", Device="${api.deviceInfo.name}", DeviceId="${api.deviceInfo.id}", Version="${api.clientInfo.version}"`,
|
||||
};
|
||||
|
||||
const quickConnectInitiation = await quickApi
|
||||
.initiate({
|
||||
headers,
|
||||
})
|
||||
.catch(() => ({ status: 401 }));
|
||||
|
||||
if (quickConnectInitiation.status !== 200) {
|
||||
setQuickConnectLoading(-1);
|
||||
enqueueSnackbar("Unable to use Quick Connect", {
|
||||
variant: "error",
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
setQuickConnectLoading(1);
|
||||
|
||||
const { Secret, Code } = quickConnectInitiation.data;
|
||||
|
||||
setQuickConnectCode(Code);
|
||||
|
||||
const interval = setInterval(async () => {
|
||||
const quickConnectCheck = await quickApi
|
||||
.connect({
|
||||
secret: Secret,
|
||||
})
|
||||
.catch(() => ({ status: 401, data: { Authenticated: false } }));
|
||||
|
||||
if (quickConnectCheck.status !== 200) {
|
||||
setQuickConnectCode("");
|
||||
enqueueSnackbar("Unable to use Quick Connect", {
|
||||
variant: "error",
|
||||
});
|
||||
|
||||
setQuickConnectLoading(-1);
|
||||
clearInterval(interval);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!quickConnectCheck.data.Authenticated) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auth = await getUserApi(api)
|
||||
.authenticateWithQuickConnect({
|
||||
quickConnectDto: {
|
||||
Secret: Secret,
|
||||
},
|
||||
})
|
||||
.catch(() => ({ status: 401 }));
|
||||
|
||||
api.accessToken = auth.data.AccessToken;
|
||||
|
||||
clearInterval(interval);
|
||||
|
||||
if (auth.status !== 200) {
|
||||
enqueueSnackbar("Unable to use Quick Connect", {
|
||||
variant: "error",
|
||||
});
|
||||
setQuickConnectLoading(-1);
|
||||
return;
|
||||
}
|
||||
|
||||
sessionStorage.setItem("accessToken", auth.data.AccessToken);
|
||||
createApi(api.basePath, auth.data.AccessToken);
|
||||
|
||||
if (rememberMe === true) {
|
||||
await saveUser(auth.data.User.Name, auth.data.AccessToken);
|
||||
}
|
||||
|
||||
setQuickConnectLoading(-1);
|
||||
enqueueSnackbar(`Logged in as ${auth.data.User.Name}!`, {
|
||||
variant: "success",
|
||||
});
|
||||
navigate("/home");
|
||||
}, 1000);
|
||||
|
||||
setLoading(false);
|
||||
};
|
||||
|
||||
useLayoutEffect(() => {
|
||||
setBackdrop("", "");
|
||||
}, []);
|
||||
|
||||
if (users.isPending) {
|
||||
return <LinearProgress />;
|
||||
}
|
||||
|
||||
if (users.isSuccess) {
|
||||
return (
|
||||
<>
|
||||
<AppBarBackOnly />
|
||||
<Container
|
||||
maxWidth="md"
|
||||
sx={{
|
||||
height: "100vh",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Typography variant="h3" mb={2}>
|
||||
Users
|
||||
</Typography>
|
||||
|
||||
<Grid
|
||||
container
|
||||
columns={{
|
||||
xs: 2,
|
||||
sm: 3,
|
||||
md: 4,
|
||||
}}
|
||||
wrap="nowrap"
|
||||
alignItems="center"
|
||||
overflow="auto"
|
||||
width="100%"
|
||||
mb={3}
|
||||
paddingBottom={2}
|
||||
className="roundedScrollbar"
|
||||
>
|
||||
{users.data.map((item, index) => {
|
||||
return (
|
||||
<Grid
|
||||
key={item.Id}
|
||||
flexShrink={0}
|
||||
flexGrow={1}
|
||||
xs={1}
|
||||
sm={1}
|
||||
md={1}
|
||||
>
|
||||
<Card
|
||||
cardTitle={item.Name}
|
||||
item={item}
|
||||
disableOverlay
|
||||
itemType="User"
|
||||
cardType="square"
|
||||
onClick={() =>
|
||||
navigate(`/login/withImg/${item.Name}/${item.Id}/`)
|
||||
}
|
||||
overrideIcon="User"
|
||||
imageType="Primary"
|
||||
/>
|
||||
</Grid>
|
||||
);
|
||||
})}
|
||||
</Grid>
|
||||
|
||||
<div className="buttons">
|
||||
<Button
|
||||
color="secondary"
|
||||
variant="contained"
|
||||
className="userEventButton"
|
||||
onClick={handleChangeServer}
|
||||
>
|
||||
Change Server
|
||||
</Button>
|
||||
<LoadingButton
|
||||
onClick={handleQuickConnect}
|
||||
variant="contained"
|
||||
className="userEventButton"
|
||||
sx={{ width: "100%" }}
|
||||
loading={quickConnectLoading === 1}
|
||||
size="large"
|
||||
>
|
||||
Quick Connect
|
||||
</LoadingButton>
|
||||
<Button
|
||||
variant="contained"
|
||||
className="userEventButton"
|
||||
onClick={handleManualLogin}
|
||||
size="small"
|
||||
>
|
||||
Manual Login
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<Dialog open={Boolean(quickConnectCode)} fullWidth maxWidth="xs">
|
||||
<DialogContent
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
variant="h5"
|
||||
mb={2}
|
||||
style={{
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
Quick Connect Code:
|
||||
</Typography>
|
||||
<DialogContentText>
|
||||
Use this code in the Quick Connect tab in your server to login.
|
||||
</DialogContentText>
|
||||
<div
|
||||
className="flex flex-row"
|
||||
style={{ gap: "1em", alignItems: "center", marginTop: "1em" }}
|
||||
>
|
||||
<Tooltip title="Click to copy" arrow placement="top">
|
||||
<Typography
|
||||
variant="h3"
|
||||
color="textPrimary"
|
||||
textAlign="center"
|
||||
sx={{
|
||||
background: "rgb(255 255 255 / 0.1)",
|
||||
width: "fit-content",
|
||||
padding: "0.4em",
|
||||
borderRadius: "10px",
|
||||
cursor: "pointer",
|
||||
}}
|
||||
onClick={(e) => {
|
||||
navigator.clipboard.writeText(quickConnectCode);
|
||||
enqueueSnackbar("Quick Connect Code copied!", {
|
||||
variant: "info",
|
||||
key: "copiedText",
|
||||
});
|
||||
}}
|
||||
>
|
||||
{quickConnectCode}
|
||||
</Typography>
|
||||
</Tooltip>
|
||||
</div>
|
||||
</DialogContent>
|
||||
<DialogActions
|
||||
className="flex flex-row"
|
||||
sx={{
|
||||
padding: "0em 1em 1em 1em",
|
||||
justifyContent: "space-between",
|
||||
}}
|
||||
>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Checkbox
|
||||
checked={rememberMe}
|
||||
onChange={handleCheckRememberMe}
|
||||
/>
|
||||
}
|
||||
label="Remember device"
|
||||
/>
|
||||
<Button
|
||||
variant="contained"
|
||||
onClick={() => {
|
||||
setQuickConnectCode("");
|
||||
setQuickConnectLoading(-1);
|
||||
}}
|
||||
>
|
||||
Close
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
</Container>
|
||||
</>
|
||||
);
|
||||
}
|
||||
if (users.isError) {
|
||||
return <ErrorNotice />;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
|
||||
.user {
|
||||
&List {
|
||||
display: flex;
|
||||
gap: 1em;
|
||||
width: min(60vw, 45em);
|
||||
}
|
||||
&Card {
|
||||
border-radius: $border-radius-default;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
flex: 1 1 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
&Icon {
|
||||
font-size: 5em;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: $clr-accent-dark;
|
||||
}
|
||||
}
|
||||
|
||||
.buttons {
|
||||
display: flex;
|
||||
gap: 1em;
|
||||
width: 100%;
|
||||
.userEventButton {
|
||||
flex: 1 1 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.login {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
&-form {
|
||||
width: 28em;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: stretch;
|
||||
gap:1em;
|
||||
&-container{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap:2em;
|
||||
background: rgb(255 255 255 / 0.05);
|
||||
padding: 2em;
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgb(255 255 255 / 0.1);
|
||||
&.padded-top {
|
||||
margin-top: 25vh;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,422 @@
|
||||
import { queryOptions, useMutation, useQuery } from "@tanstack/react-query";
|
||||
import React, { type FormEvent, useLayoutEffect, useState } from "react";
|
||||
|
||||
import { saveUser } from "@/utils/storage/user.js";
|
||||
|
||||
import LoadingButton from "@mui/lab/LoadingButton";
|
||||
import {
|
||||
Dialog,
|
||||
DialogActions,
|
||||
DialogContent,
|
||||
DialogContentText,
|
||||
FilledInput,
|
||||
Grid,
|
||||
OutlinedInput,
|
||||
Paper,
|
||||
TextField,
|
||||
Tooltip,
|
||||
Typography,
|
||||
} from "@mui/material";
|
||||
import Button from "@mui/material/Button";
|
||||
import Checkbox from "@mui/material/Checkbox";
|
||||
import Container from "@mui/material/Container";
|
||||
import FormControl from "@mui/material/FormControl";
|
||||
import FormControlLabel from "@mui/material/FormControlLabel";
|
||||
import FormGroup from "@mui/material/FormGroup";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import InputAdornment from "@mui/material/InputAdornment";
|
||||
import InputLabel from "@mui/material/InputLabel";
|
||||
|
||||
import { useSnackbar } from "notistack";
|
||||
|
||||
import { AppBarBackOnly } from "@/components/appBar/backOnly.jsx";
|
||||
import { useApiInContext } from "@/utils/store/api.js";
|
||||
import { getBrandingApi } from "@jellyfin/sdk/lib/utils/api/branding-api";
|
||||
import { getQuickConnectApi } from "@jellyfin/sdk/lib/utils/api/quick-connect-api";
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import "./login.scss";
|
||||
|
||||
import { setBackdrop } from "@/utils/store/backdrop.js";
|
||||
import { blue } from "@mui/material/colors";
|
||||
import {
|
||||
createFileRoute,
|
||||
useNavigate,
|
||||
useRouteContext,
|
||||
useRouter,
|
||||
useRouterState,
|
||||
} from "@tanstack/react-router";
|
||||
import { redirect } from "@tanstack/react-router";
|
||||
|
||||
export const Route = createFileRoute("/_api/login/manual")({
|
||||
component: UserLoginManual,
|
||||
});
|
||||
|
||||
function UserLoginManual() {
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [quickConnectLoading, setQuickConnectLoading] = useState(-1);
|
||||
const [quickConnectCode, setQuickConnectCode] = useState("");
|
||||
const [rememberMe, setRememberMe] = useState(true);
|
||||
// console.log(Route.useRouteContext());
|
||||
const api = useApiInContext((s) => s.api);
|
||||
const createApi = useApiInContext((s) => s.createApi);
|
||||
const router = useRouter();
|
||||
const searchParams = Route.useSearch();
|
||||
|
||||
const server = useQuery({
|
||||
queryKey: ["login", "manual", "serverInfo"],
|
||||
queryFn: async () => {
|
||||
return (await getBrandingApi(api).getBrandingOptions()).data;
|
||||
},
|
||||
});
|
||||
|
||||
const navigate = useNavigate();
|
||||
const { enqueueSnackbar } = useSnackbar();
|
||||
|
||||
const [username, setUsername] = useState("");
|
||||
const [password, setPassword] = useState<{
|
||||
password: string | undefined;
|
||||
showpass: boolean;
|
||||
}>({
|
||||
showpass: false,
|
||||
password: "",
|
||||
});
|
||||
|
||||
const handlePassword = (prop) => (event) => {
|
||||
setPassword({
|
||||
...password,
|
||||
[prop]: event.target.value,
|
||||
});
|
||||
};
|
||||
|
||||
const handleShowPassword = () => {
|
||||
setPassword({
|
||||
...password,
|
||||
showpass: !password.showpass,
|
||||
});
|
||||
};
|
||||
|
||||
const handleLoginFn = async (event: FormEvent<HTMLFormElement>) => {
|
||||
event.preventDefault();
|
||||
try {
|
||||
const authenticate = await api.authenticateUserByName(
|
||||
username,
|
||||
password.password,
|
||||
);
|
||||
createApi(api.basePath, authenticate.data?.AccessToken);
|
||||
|
||||
if (rememberMe) await saveUser(username, authenticate.data.AccessToken);
|
||||
|
||||
router.invalidate().finally(() => {
|
||||
navigate({ to: searchParams.redirect || "/home", replace: true });
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
enqueueSnackbar(
|
||||
"Unable to authenticate. Please check your username and password",
|
||||
{ variant: "error" },
|
||||
);
|
||||
}
|
||||
return;
|
||||
};
|
||||
|
||||
const handleLogin = useMutation({
|
||||
mutationKey: ["login", "authenticate"],
|
||||
mutationFn: handleLoginFn,
|
||||
});
|
||||
|
||||
const handleCheckRememberMe = (event) => {
|
||||
setRememberMe(event.target.checked);
|
||||
};
|
||||
|
||||
const handleQuickConnect = async () => {
|
||||
setQuickConnectLoading(0);
|
||||
|
||||
const quickApi = getQuickConnectApi(api);
|
||||
|
||||
const headers = {
|
||||
"X-Emby-Authorization": `MediaBrowser Client="${api.clientInfo.name}", Device="${api.deviceInfo.name}", DeviceId="${api.deviceInfo.id}", Version="${api.clientInfo.version}"`,
|
||||
};
|
||||
|
||||
const quickConnectInitiation = await quickApi
|
||||
.initiate({
|
||||
headers,
|
||||
})
|
||||
.catch(() => ({ status: 401 }));
|
||||
|
||||
if (quickConnectInitiation.status !== 200) {
|
||||
setQuickConnectCode("");
|
||||
setQuickConnectLoading(-1);
|
||||
enqueueSnackbar("Unable to use Quick Connect", {
|
||||
variant: "error",
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
setQuickConnectLoading(1);
|
||||
|
||||
const { Secret, Code } = quickConnectInitiation.data;
|
||||
|
||||
setQuickConnectCode(Code);
|
||||
|
||||
const interval = setInterval(async () => {
|
||||
const quickConnectCheck = await quickApi
|
||||
.connect({
|
||||
secret: Secret,
|
||||
})
|
||||
.catch(() => ({ status: 401, data: { Authenticated: false } }));
|
||||
|
||||
if (quickConnectCheck.status !== 200) {
|
||||
enqueueSnackbar("Unable to use Quick Connect", {
|
||||
variant: "error",
|
||||
});
|
||||
|
||||
setQuickConnectLoading(-1);
|
||||
clearInterval(interval);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!quickConnectCheck.data.Authenticated) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auth = await getUserApi(api)
|
||||
.authenticateWithQuickConnect({
|
||||
quickConnectDto: {
|
||||
Secret: Secret,
|
||||
},
|
||||
})
|
||||
.catch(() => ({ status: 401 }));
|
||||
|
||||
api.accessToken = auth.data.AccessToken;
|
||||
|
||||
clearInterval(interval);
|
||||
|
||||
if (auth.status !== 200) {
|
||||
enqueueSnackbar("Unable to use Quick Connect", {
|
||||
variant: "error",
|
||||
});
|
||||
setQuickConnectLoading(-1);
|
||||
return;
|
||||
}
|
||||
|
||||
sessionStorage.setItem("accessToken", auth.data.AccessToken);
|
||||
createApi(api.basePath, auth.data.AccessToken);
|
||||
|
||||
if (rememberMe === true) {
|
||||
await saveUser(userName, auth.data.AccessToken);
|
||||
}
|
||||
|
||||
setQuickConnectLoading(-1);
|
||||
enqueueSnackbar(`Logged in as ${auth.data.User.Name}!`, {
|
||||
variant: "success",
|
||||
});
|
||||
navigate("/home");
|
||||
}, 1000);
|
||||
|
||||
setLoading(false);
|
||||
};
|
||||
|
||||
useLayoutEffect(() => {
|
||||
setBackdrop("", "");
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<>
|
||||
<AppBarBackOnly />
|
||||
<div className="login scrollY">
|
||||
<div
|
||||
className={`login-form-container ${
|
||||
server.data?.LoginDisclaimer && "padded-top"
|
||||
}`}
|
||||
>
|
||||
<Typography variant="h3" color="textPrimary">
|
||||
Login
|
||||
</Typography>
|
||||
<form className="login-form" onSubmit={(e) => handleLogin.mutate(e)}>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="Username"
|
||||
onChange={(e) => setUsername(e.currentTarget.value)}
|
||||
/>
|
||||
<FormControl sx={{ width: "100%" }} variant="outlined">
|
||||
<InputLabel htmlFor="user-password">Password:</InputLabel>
|
||||
<OutlinedInput
|
||||
fullWidth
|
||||
id="user-password"
|
||||
type={password.showpass ? "text" : "password"}
|
||||
onChange={handlePassword("password")}
|
||||
label="Password:"
|
||||
endAdornment={
|
||||
<InputAdornment position="end">
|
||||
<IconButton
|
||||
onClick={handleShowPassword}
|
||||
aria-label="toggle password visibility"
|
||||
>
|
||||
{password.showpass ? (
|
||||
<span className="material-symbols-rounded">
|
||||
visibility
|
||||
</span>
|
||||
) : (
|
||||
<span className="material-symbols-rounded">
|
||||
visibility_off
|
||||
</span>
|
||||
)}
|
||||
</IconButton>
|
||||
</InputAdornment>
|
||||
}
|
||||
/>
|
||||
</FormControl>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Checkbox
|
||||
checked={rememberMe}
|
||||
onChange={handleCheckRememberMe}
|
||||
/>
|
||||
}
|
||||
label="Remember me"
|
||||
/>
|
||||
<div
|
||||
className="flex flex-row"
|
||||
style={{ width: "100%", gap: "0.8em", flexWrap: "wrap" }}
|
||||
>
|
||||
<LoadingButton
|
||||
variant="contained"
|
||||
type="submit"
|
||||
loading={handleLogin.isPending}
|
||||
sx={{ width: "100%" }}
|
||||
>
|
||||
Login
|
||||
</LoadingButton>
|
||||
<LoadingButton
|
||||
onClick={handleQuickConnect}
|
||||
variant="contained"
|
||||
className="userEventButton"
|
||||
style={{ flex: 1 }}
|
||||
loading={quickConnectLoading === 1}
|
||||
// size="large"
|
||||
>
|
||||
Quick Connect
|
||||
</LoadingButton>
|
||||
<Button
|
||||
color="secondary"
|
||||
variant="contained"
|
||||
className="userEventButton"
|
||||
// size="large"
|
||||
style={{ flex: 1 }}
|
||||
onClick={() => navigate("/servers/list")}
|
||||
>
|
||||
Change Server
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{server.isSuccess && server.data.LoginDisclaimer && (
|
||||
<Paper
|
||||
elevation={5}
|
||||
style={{
|
||||
marginTop: "1em",
|
||||
padding: "1em",
|
||||
borderRadius: "15px",
|
||||
width: "32em",
|
||||
}}
|
||||
>
|
||||
<div
|
||||
className="flex flex-row flex-align-center"
|
||||
style={{ gap: "0.5em", marginBottom: "0.5em" }}
|
||||
>
|
||||
<span
|
||||
className="material-symbols-rounded"
|
||||
style={{
|
||||
color: blue[700],
|
||||
"--fill": 1,
|
||||
}}
|
||||
>
|
||||
info
|
||||
</span>
|
||||
Notice
|
||||
</div>
|
||||
<Typography variant="subtitle2" style={{ opacity: 0.8 }}>
|
||||
{server.data.LoginDisclaimer}
|
||||
</Typography>
|
||||
</Paper>
|
||||
)}
|
||||
<Dialog open={Boolean(quickConnectCode)} fullWidth maxWidth="xs">
|
||||
<DialogContent
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
variant="h5"
|
||||
mb={2}
|
||||
style={{
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
Quick Connect Code:
|
||||
</Typography>
|
||||
<DialogContentText>
|
||||
Use this code in the Quick Connect tab in your server to login.
|
||||
</DialogContentText>
|
||||
<div
|
||||
className="flex flex-row"
|
||||
style={{ gap: "1em", alignItems: "center", marginTop: "1em" }}
|
||||
>
|
||||
<Tooltip title="Click to copy" arrow placement="top">
|
||||
<Typography
|
||||
variant="h3"
|
||||
color="textPrimary"
|
||||
textAlign="center"
|
||||
sx={{
|
||||
background: "rgb(255 255 255 / 0.1)",
|
||||
width: "fit-content",
|
||||
padding: "0.4em",
|
||||
borderRadius: "10px",
|
||||
cursor: "pointer",
|
||||
}}
|
||||
onClick={(e) => {
|
||||
navigator.clipboard.writeText(quickConnectCode);
|
||||
enqueueSnackbar("Quick Connect Code copied!", {
|
||||
variant: "info",
|
||||
key: "copiedText",
|
||||
});
|
||||
}}
|
||||
>
|
||||
{quickConnectCode}
|
||||
</Typography>
|
||||
</Tooltip>
|
||||
</div>
|
||||
</DialogContent>
|
||||
<DialogActions
|
||||
className="flex flex-row"
|
||||
sx={{
|
||||
padding: "0em 1em 1em 1em",
|
||||
justifyContent: "space-between",
|
||||
}}
|
||||
>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Checkbox
|
||||
checked={rememberMe}
|
||||
onChange={handleCheckRememberMe}
|
||||
/>
|
||||
}
|
||||
label="Remember device"
|
||||
/>
|
||||
<Button
|
||||
variant="contained"
|
||||
onClick={() => {
|
||||
setQuickConnectCode("");
|
||||
setQuickConnectLoading(-1);
|
||||
}}
|
||||
>
|
||||
Close
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import PropTypes from "prop-types";
|
||||
import React, { useState, useEffect, useLayoutEffect, useRef } from "react";
|
||||
import React, { useState, useLayoutEffect, useRef } from "react";
|
||||
|
||||
import Box from "@mui/material/Box";
|
||||
import CircularProgress from "@mui/material/CircularProgress";
|
||||
@@ -8,10 +8,8 @@ import Tab from "@mui/material/Tab";
|
||||
import Tabs from "@mui/material/Tabs";
|
||||
import Typography from "@mui/material/Typography";
|
||||
|
||||
import useParallax from "@/utils/hooks/useParallax";
|
||||
import { AnimatePresence, motion, useScroll } from "framer-motion";
|
||||
import useParallax from "../../utils/hooks/useParallax";
|
||||
|
||||
import { Link, useParams } from "react-router-dom";
|
||||
|
||||
import {
|
||||
BaseItemKind,
|
||||
@@ -22,21 +20,21 @@ import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
|
||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
|
||||
|
||||
import { Card } from "@/components/card/card";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { Card } from "../../components/card/card";
|
||||
|
||||
import { Blurhash } from "react-blurhash";
|
||||
|
||||
import LikeButton from "../../components/buttons/likeButton";
|
||||
import { ErrorNotice } from "../../components/notices/errorNotice/errorNotice";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
import { setBackdrop } from "../../utils/store/backdrop";
|
||||
import LikeButton from "@/components/buttons/likeButton";
|
||||
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
|
||||
import { setBackdrop } from "@/utils/store/backdrop";
|
||||
|
||||
import meshBg from "../../assets/herobg.png";
|
||||
import ShowMoreText from "../../components/showMoreText";
|
||||
import meshBg from "@/assets/herobg.png";
|
||||
import ShowMoreText from "@/components/showMoreText";
|
||||
import "./person.scss";
|
||||
|
||||
import IconLink from "../../components/iconLink";
|
||||
import IconLink from "@/components/iconLink";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
|
||||
function TabPanel(props) {
|
||||
const { children, value, index, ...other } = props;
|
||||
@@ -68,9 +66,13 @@ function a11yProps(index) {
|
||||
};
|
||||
}
|
||||
|
||||
const PersonTitlePage = () => {
|
||||
const { id } = useParams();
|
||||
const [api] = useApi((state) => [state.api]);
|
||||
export const Route = createFileRoute("/_api/person/$id")({
|
||||
component: PersonTitlePage,
|
||||
});
|
||||
|
||||
function PersonTitlePage() {
|
||||
const { id } = Route.useParams();
|
||||
const api = Route.useRouteContext().api;
|
||||
|
||||
const user = useQuery({
|
||||
queryKey: ["user"],
|
||||
@@ -511,6 +513,6 @@ const PersonTitlePage = () => {
|
||||
if (item.isError) {
|
||||
return <ErrorNotice />;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default PersonTitlePage;
|
||||