Compare commits

...
Author SHA1 Message Date
Prayag Prajapati 10630c2de3 chore: update to v0.0.6-dev 2024-09-07 01:58:40 +05:30
Prayag Prajapati d722dc075c fix(ci): update ubuntu deps for tauri v2 2024-09-07 01:50:13 +05:30
Prayag Prajapati 388ec908ae fix(ci): env variable missing in release.yml 2024-09-07 01:40:18 +05:30
Prayag Prajapati 1642cdd101 chore(changelog): update changelog.md 2024-09-07 00:12:08 +05:30
Prayag Prajapati 0e4e05722b feat: add video player slider bubble theming #337 2024-09-07 00:01:13 +05:30
Prayag Prajapati bdf8f483d5 feat: add trickplay support #338 #337 2024-09-06 18:43:32 +05:30
Prayag Prajapati 6ee33c93bd fix(ci): update env variables 2024-09-01 10:57:12 +05:30
Prayag Prajapati 9232d4126b fix(ci): fix ubuntu build failing 2024-09-01 10:54:55 +05:30
Prayag Prajapati 9a74db5b8f chore(deps): update js and rust deps 2024-09-01 10:52:53 +05:30
Prayag Prajapati 1761974b3f feat: add chapter markers #337 2024-09-01 10:41:07 +05:30
Prayag Prajapati cec17b270a feat: add subtitle support #337 2024-08-27 19:12:46 +05:30
Prayag Prajapati 8106b714a1 fix(ci): invalid tauri build command 2024-08-08 12:39:45 +05:30
Prayag Prajapati 2b9d7bda02 fix(ci):workflow repo name 2024-08-05 18:30:06 +05:30
Prayag Prajapati 38ba7040a5 feat: remember last search query 2024-08-02 09:10:07 +05:30
Prayag Prajapati 7a2e4ae595 feat: add new audioPlayer route and allow reordering queue 2024-07-31 11:41:44 +05:30
Prayag Prajapati d824823624 chore(deps): update deps 2024-07-29 11:43:31 +05:30
Prayag Prajapati e92315b114 chore(deps): cleanup unused dependencies and update dependencies 2024-07-29 11:43:19 +05:30
Prayag Prajapati c1d0c715cf refactor: replace wavesurfer with html audio player 2024-07-29 11:40:03 +05:30
Prayag Prajapati 47ded84c48 feat: add new album page 2024-07-29 10:04:31 +05:30
Prayag Prajapati df91d4a744 fix: quick connect not working 2024-07-25 10:32:46 +05:30
Prayag Prajapati b59e147a39 chore: change tauri updater signing keys 2024-07-24 23:11:01 +05:30
Prayag Prajapati 3163951439 feat: show upNext card for episode items in player 2024-07-22 21:52:01 +05:30
Prayag Prajapati ffbca70de3 fix: login page not working 2024-07-22 18:59:17 +05:30
Prayag Prajapati a5ca2ff9bb Merge pull request #332 from pypp/feat/double-click-fullscreen
Double click to toggle fullscreen, single click to toggle playing
2024-07-21 13:22:54 +05:30
Prayag Prajapati 65369f3cff Merge pull request #333 from pypp/feat/scrollwheel-volume-control
Increase and decrease volume using scrollwheel
2024-07-21 13:21:12 +05:30
Netanel Henya df62e8634c fix: removed subtitleRenderer state that was added while merging 2024-07-20 22:24:09 +03:00
Netanel Henya 341956a3fc fix: fixed bug caused by merge econflicts 2024-07-20 22:21:55 +03:00
Netanel Henya fdabb37e74 Merge remote-tracking branch 'upstream/main' into feat/scrollwheel-volume-control
# Conflicts:
#	src/routes/_api/player/index.tsx
2024-07-20 22:10:57 +03:00
Netanel Henya 8264717136 fix: fixed fucntion to use the new API 2024-07-20 22:09:22 +03:00
Netanel Henya 263f43c05e Merge remote-tracking branch 'upstream/main' into feat/double-click-fullscreen
# Conflicts:
#	src-tauri/Cargo.toml
#	src/routes/_api/player/index.tsx
2024-07-20 22:08:55 +03:00
Netanel Henya 1abdacc545 Merge branch 'main' of https://github.com/pypp/JellyPlayer into feat/double-click-fullscreen
# Conflicts:
#	pnpm-lock.yaml
#	src/routes/_api/player/index.tsx
2024-07-20 21:45:44 +03:00
renovate[bot] 4e78f40aee fix(deps): update dependency babel-plugin-react-compiler to v0.0.0 2024-07-19 22:14:00 +05:30
renovate[bot] 6180ee6313 fix(deps): update tauri monorepo 2024-07-19 22:13:46 +05:30
Prayag Prajapati 72e8f184d0 chore(deps): update dependencies 2024-07-19 22:09:40 +05:30
Prayag Prajapati f53449bd4b feat: allow toggling subtitles on and off from player 2024-07-19 22:05:42 +05:30
Prayag Prajapati 70c6dd927b fix: playNext and playPrevious logic 2024-07-19 19:42:55 +05:30
Prayag Prajapati d077860fbc feat: add intro-skipper 2024-07-18 21:30:02 +05:30
Prayag Prajapati a240ec7452 refactor: cleanup unused variables in playbackStore 2024-07-17 22:11:28 +05:30
Prayag Prajapati 846a4d2180 chore(deps): update packages 2024-07-17 16:10:45 +05:30
Prayag Prajapati 800256bf2c refactor: support vtt and ass subtitles 2024-07-17 16:09:35 +05:30
Prayag Prajapati aeb52e8e89 chore: update changelog.md 2024-07-12 00:40:31 +05:30
Prayag Prajapati 139cbfd33b Update banner in readme 2024-07-12 00:37:23 +05:30
Prayag Prajapati c21483ee5b refactor: add sorting options to library page for Series and BoxSets 2024-07-12 00:34:47 +05:30
Prayag Prajapati 326b093210 style: update hero-carousel styling 2024-06-08 17:52:05 +05:30
Prayag Prajapati badc2b622f chore(deps): update deps 2024-06-06 17:23:38 +05:30
Netanel Henya 860e8e56aa reverted cargo.toml 2024-05-30 19:45:37 +03:00
Netanel Henya 41530df750 Merge branch 'main' of https://github.com/pypp/JellyPlayer into feat/scrollwheel-volume-control 2024-05-30 19:44:04 +03:00
renovate[bot] 68523e95be fix(deps): update dependency framer-motion to v11.2.9 2024-05-29 21:40:28 +05:30
Prayag Prajapati c22dbefeea refactor: move most routing logic to tanstack 2024-05-29 18:10:22 +05:30
Prayag Prajapati b8552ac35d refactor: implement new login logic and verify context.api status 2024-05-29 18:10:22 +05:30
Prayag Prajapati b1737b82e8 chore(deps): update dependencies 2024-05-29 18:10:22 +05:30
Prayag Prajapati 522621ed69 refactor: move to tanstack router 2024-05-29 18:10:22 +05:30
Netanel Henya 0e73ece9b5 feat: increase and decrease volume using scrollwheel 2024-05-14 17:28:57 +03:00
Netanel Henya cac7184a7c feat: enter fullscreen on double click, toggle playing on single click. 2024-05-14 16:40:51 +03:00
renovate[bot] 94a69faded fix(deps): update rust crate serde to 1.0.200 (#317)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 21:40:23 +05:30
renovate[bot] fc43ecc555 fix(deps): update tanstack-query monorepo to v5.32.1 (#299)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 21:40:03 +05:30
renovate[bot] c46d3e261b chore(deps): update dependency @biomejs/biome to v1.7.2 (#300)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 21:39:54 +05:30
renovate[bot] c5b1424904 fix(deps): update dependency wavesurfer.js to v7.7.12 (#305)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 21:39:41 +05:30
renovate[bot] cd87963e4f fix(deps): update dependency @tanstack/react-virtual to v3.5.0 (#313)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 21:39:31 +05:30
renovate[bot] a4a7beb5e3 fix(deps): update dependency material-symbols to v0.17.4 (#314)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 21:39:22 +05:30
renovate[bot] 1f3e0f9d55 chore(deps): update dependency sass to v1.76.0 (#315)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 21:39:14 +05:30
renovate[bot] 7eacff6bc7 fix(deps): update rust crate portpicker to 0.1.1 (#316)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 21:39:06 +05:30
renovate[bot] 0b8a588698 fix(deps): update rust crate serde_json to 1.0.116 (#318)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 21:38:47 +05:30
renovate[bot] f66266e131 fix(deps): update dependency @mui/material to v5.15.16 (#319)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 21:38:38 +05:30
202 changed files with 18228 additions and 9925 deletions

No files matched your search

+1
View File
@@ -0,0 +1 @@
{}
+6 -4
View File
@@ -52,7 +52,7 @@ jobs:
build: build:
needs: build_web needs: build_web
# Prevent forked PRs from running the build job which is expensive # Prevent forked PRs from running the build job which is expensive
if: github.repository == 'prayag17/JellyPlayer' if: github.repository == 'prayag17/Blink'
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -68,7 +68,7 @@ jobs:
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature. # You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev
- name: Rust setup - name: Rust setup
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
@@ -107,14 +107,16 @@ jobs:
run: pnpm install --no-frozen-lockfile run: pnpm install --no-frozen-lockfile
- name: Build app - name: Build app
run: pnpm run tauri build --bundles "deb" "appimage" "nsis" "app" "dmg" run: pnpm run tauri build
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
- name: Upload build Artifacts - name: Upload build Artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: JellyPlayer-${{ matrix.platform }}-dev${{ github.sha }} name: Blink-${{ matrix.platform }}-dev${{ github.sha }}
path: src-tauri/target/release/bundle/* path: src-tauri/target/release/bundle/*
+3 -1
View File
@@ -24,7 +24,7 @@ jobs:
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature. # You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev
- name: Rust setup - name: Rust setup
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
@@ -70,6 +70,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with: with:
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags. tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
releaseName: "App Name v__VERSION__" # tauri-action replaces \_\_VERSION\_\_ with the app version. releaseName: "App Name v__VERSION__" # tauri-action replaces \_\_VERSION\_\_ with the app version.
+1
View File
@@ -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
+3 -2
View File
@@ -2,8 +2,9 @@
"recommendations": [ "recommendations": [
"biomejs.biome", "biomejs.biome",
"github.vscode-github-actions", "github.vscode-github-actions",
"esbenp.prettier-vscode",
"swellaby.rust-pack", "swellaby.rust-pack",
"1yib.rust-bundle" "1yib.rust-bundle",
"sibiraj-s.vscode-scss-formatter",
"tauri-apps.tauri-vscode"
] ]
} }
+4 -1
View File
@@ -23,5 +23,8 @@
"editor.defaultFormatter": "biomejs.biome" "editor.defaultFormatter": "biomejs.biome"
}, },
"rust-analyzer.linkedProjects": ["./src-tauri/Cargo.toml"], "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"
}
} }
+106
View File
@@ -1,3 +1,109 @@
- # 0.0.6-dev (9/7/2024)
> **Note** : This is an unstable release
- feat: add video player slider bubble theming #337
- feat: add trickplay support #338 #337
- fix(ci): update env variables
- fix(ci): fix ubuntu build failing
- chore(deps): update js and rust deps
- feat: add chapter markers #337
- feat: add subtitle support #337
- fix(ci): invalid tauri build command
- fix(ci):workflow repo name
- feat: remember last search query
- feat: add new audioPlayer route and allow reordering queue
- chore(deps): update deps
- chore(deps): cleanup unused dependencies and update dependencies
- refactor: replace wavesurfer with html audio player
- feat: add new album page
- fix: quick connect not working
- chore: change tauri updater signing keys
- feat: show upNext card for episode items in player
- fix: login page not working
- Merge pull request #332 from pypp/feat/double-click-fullscreen
- Merge pull request #333 from pypp/feat/scrollwheel-volume-control
- fix: removed subtitleRenderer state that was added while merging
- fix: fixed bug caused by merge econflicts
- Merge remote-tracking branch 'upstream/main' into feat/scrollwheel-volume-control
- fix: fixed fucntion to use the new API
- Merge remote-tracking branch 'upstream/main' into feat/double-click-fullscreen
- Merge branch 'main' of https://github.com/pypp/JellyPlayer into feat/double-click-fullscreen
- fix(deps): update dependency babel-plugin-react-compiler to v0.0.0
- fix(deps): update tauri monorepo
- chore(deps): update dependencies
- feat: allow toggling subtitles on and off from player
- fix: playNext and playPrevious logic
- feat: add intro-skipper
- refactor: cleanup unused variables in playbackStore
- chore(deps): update packages
- refactor: support vtt and ass subtitles
- refactor: add sorting options to library page for Series and BoxSets
- style: update hero-carousel styling
- chore(deps): update deps
- fix(deps): update dependency framer-motion to v11.2.9
- refactor: move most routing logic to tanstack
- refactor: implement new login logic and verify context.api status
- chore(deps): update dependencies
- refactor: move to tanstack router
- fix: videoPlayer not restoring playback position when queueItem is updated
- fix: Slight UI regression when changing servers on latest version #288
- fix: eac3 codec support
- refactor: queueItem playback
- fix(deps): update rust crate tauri to 1.6.2 (#298)
- fix: episode playback
- feat: add queueButton
- Merge branch 'main' of https://github.com/prayag17/JellyPlayer
- chore(deps): fix vite 5.2 bundle
- fix(deps): update dependency @types/react to v18.3.1 (#295)
- fix: scrollTrigger in libraryView
- style: improve styling
- fix: backdrop flashing
- feat: use tanstack virtual for rendering library items
- style: improve login notice ui
- refactor: fetch mediaSource for series
- refactor: implement new playback method for playbutton (wip)
- ui: improve glass texture
- ui: implement new appBar #284
- feat: display sdr and hdr only videoRange
- style: improve hdr10 logo spacing
- chore: update title-movie screenshot in README.md
- chore: update title-movie.png
- fix: hdr10 icon height not matching
- style: update mediainfo icons
- style: update mediainfo icons
- fix: no subtitle option not selecting
- feat: use brand logo for hdr10plus
- fix: default subtitle not being selected properly
- style: display backdrops in boxset
- fix: videoPlayer not exiting if subtitles are disabled
- chore: add kitsu icon to iconLink
- fix: carousel not rendering
- chore: update readme
- chore: update screenshots
- fix: improve hdr10+ detection
- feat: add quality and audio brand labels
- style: improve page-margin
- fix(player): unable to play media without subtitles
- fix: album not displaying if no parent backdrop is found
- chore: add screenshots and some features of JellyPlayer #242
- chore: upload screenshots
- fix(nsis): nsis setup images not displaying correctly
- style: Improve titlePage styling
- style: change cardText styling
- style: Improve overall app component paddings and margins and rollback vite to 5.1.6
- chore(deps): update dependency vite to v5.2.6 (#286)
- fix(deps): update material-ui monorepo (#270)
- fix(deps): update dependency @types/node to v20.11.29 (#292)
- fix(deps): update dependency @types/react to v18.2.67 (#293)
- fix(deps): update tanstack-query monorepo to v5.28.6 (#271)
- fix(deps): update dependency @types/react to v18.2.67 (#272)
- fix(deps): update dependency @types/node to v20.11.29 (#274)
- fix(deps): update dependency framer-motion to v11.0.15 (#278)
- fix(deps): update dependency typescript to v5.4.3 (#287)
- fix(deps): update dependency material-symbols to v0.17.1 (#289)
- chore(deps): update dependency @biomejs/biome to v1.6.2 (#290)
- fix(deps): update rust crate log to ^0.4.21 (#276)
- chore: update latest.json
- # v0.0.5-dev - # v0.0.5-dev
> **Note** : This is an unstable release > **Note** : This is an unstable release
- feat(web): Add new About page (#258) by @prayag17 - feat(web): Add new About page (#258) by @prayag17
+26 -11
View File
@@ -1,13 +1,24 @@
![Banner](https://github.com/prayag17/JellyPlayer/assets/55829513/cefdd218-51ce-4180-be53-8fd69d9a63a2) ![Banner](https://github.com/user-attachments/assets/cf3ffbe3-3b48-4fab-bd7e-f011928286fa)
<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) - Nodejs (≥19.1.0)
- Rust (≥1.76.0) - Rust (≥1.76.0)
- Visual Studio C++ Build tools - Visual Studio C++ Build tools
- [pnpm](https://pnpm.io/) - [pnpm](https://pnpm.io/)
# ℹ️ Getting started ## ℹ️ Getting started
- Install Nodejs, pnpm and Rust. - Install Nodejs, pnpm and Rust.
> **Note** : Install Rust from <https://www.rust-lang.org/learn/get-started> > **Note** : Install Rust from <https://www.rust-lang.org/learn/get-started>
@@ -17,7 +28,7 @@
pnpm install pnpm install
``` ```
# 🛠️ Development ## 🛠️ Development
- Running the app: - Running the app:
@@ -33,20 +44,24 @@
- other commands can be found inside the `"scripts"` inside [package.json](https://github.com/prayag17/JellyPlayer/blob/main/package.json) - 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 - Checkout `issues` to see currently worked on features and bugs
- Add features or fix bugs - Add features or fix bugs
- Create a pull request - Create a pull request
# ✨ Features ## ✨ Features
- Play any media supported by the system (DirectPlay most files on windows, mac and linux) - Play any media supported by the system (DirectPlay most files on windows, mac and linux)
- Clean and minimal UI. - Clean and minimal UI.
- Multiple Jellyfin server support - Multi Jellyfin server support
and more... - Cross Platform
- Mediainfo recognition (DolbyVision, DolbyAtoms, Dts, Hdr10+, and more...)
- Sort/Filter library items
- Queue playback support
- Intro Skip button using [jumoog/Intro-Skipper](https://github.com/jumoog/intro-skipper) plugin
# 📷 Screenshots ## 📷 Screenshots
- Home - Home
![home](https://github.com/prayag17/JellyPlayer/assets/55829513/ffda4dc5-c147-4278-a232-bb58b1051501) ![home](https://github.com/prayag17/JellyPlayer/assets/55829513/ffda4dc5-c147-4278-a232-bb58b1051501)
@@ -61,12 +76,12 @@
- About Dialog - About Dialog
![about](https://github.com/prayag17/JellyPlayer/assets/55829513/fc3adf83-87fd-4901-8abd-39b148418f8d) ![about](https://github.com/prayag17/JellyPlayer/assets/55829513/fc3adf83-87fd-4901-8abd-39b148418f8d)
# 📃 Roadmap ## 📃 Roadmap
- Checkout [GitHub Project](https://github.com/users/prayag17/projects/3) - 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. - [@ferferga](https://github.com/ferferga) for helping in development behind the scenes.
- All contributors of [jellyfin/jellyfin-vue](https://github.com/jellyfin/jellyfin-vue). - All contributors of [jellyfin/jellyfin-vue](https://github.com/jellyfin/jellyfin-vue).
+12 -5
View File
@@ -1,5 +1,5 @@
{ {
"$schema": "https://biomejs.dev/schemas/1.5.0/schema.json", "$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"organizeImports": { "organizeImports": {
"enabled": true "enabled": true
}, },
@@ -8,13 +8,16 @@
"rules": { "rules": {
"recommended": true, "recommended": true,
"style": { "style": {
"noNonNullAssertion": "off" "noNonNullAssertion": "off",
"useEnumInitializers": "off"
}, },
"a11y": { "a11y": {
"useKeyWithClickEvents": "off" "useKeyWithClickEvents": "off",
"useMediaCaption": "off"
}, },
"correctness": { "correctness": {
"useExhaustiveDependencies": "off" "useExhaustiveDependencies": "off",
"noUnusedImports": "off"
}, },
"suspicious": { "suspicious": {
"noExplicitAny": "off" "noExplicitAny": "off"
@@ -27,8 +30,12 @@
"src/**/*.tsx", "src/**/*.tsx",
"src/**/*.jsx", "src/**/*.jsx",
"src/**/*.js", "src/**/*.js",
"*.json" "*.json",
"*.scss"
], ],
"ignoreUnknown": true "ignoreUnknown": true
},
"formatter": {
"formatWithErrors": true
} }
} }
+49 -5
View File
@@ -4,6 +4,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- <script src="http://localhost:8097"></script> -->
<title>Jellyplayer</title> <title>Jellyplayer</title>
<style> <style>
.app-loading { .app-loading {
@@ -12,29 +13,72 @@
left: 0; left: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
background: hsl(256, 100%, 4%); background: #fff;
z-index: 100000; z-index: 100000;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
transition: opacity 0.25s ease-in-out; transition: opacity 0.25s ease-in-out;
opacity: 0;
animation: fadeIn linear 500ms forwards;
} }
.app-loading.hidden { .app-loading.hidden {
opacity: 0; display: none;
pointer-events: none;
} }
.app-loading-logo { .app-loading-logo {
width: 65vw; width: 5vw;
}
.app-loading-bar-container{
height: 2px;
width: 16vw;
position: absolute;
left: 50%;
bottom: 36vh;
transform: translateX(-50%);
overflow: hidden;
}
.app-loading-bar{
width: 100%;
height: 100%;
background: #101010;
transform: scaleX(0);
animation: loading 1s ease-in-out infinite both;
transform-origin: left;
}
@keyframes fadeIn {
0%{
opacity: 0;
}
100%{
opacity: 1;
}
}
@keyframes loading {
0%{
transform: translate(-100%);
}
50%{
transform: translate(0%);
}
100%{
transform: translate(100%);
}
} }
</style> </style>
</head> </head>
<body> <body>
<div class="app-loading"> <div class="app-loading">
<img src="./assetsStatic/LogoBig.svg" class="app-loading-logo" /> <img src="./src/assets/icon-outline.svg" class="app-loading-logo" />
<div class="app-loading-bar-container">
<div class="app-loading-bar"></div>
</div>
</div> </div>
<div id="root"></div> <div id="root"></div>
<svg style="width: 0; height: 0; position: absolute" aria-hidden="true" focusable="false"> <svg style="width: 0; height: 0; position: absolute" aria-hidden="true" focusable="false">
+49 -38
View File
@@ -1,66 +1,77 @@
{ {
"name": "jellyplayer", "name": "blink",
"private": true, "private": true,
"version": "0.0.5-dev", "version": "0.0.6-dev",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite && tsr watch",
"build": "vite build", "build": "vite build",
"preview": "vite preview", "preview": "vite preview",
"tauri": "tauri", "tauri": "tauri",
"lint": "biome check src/**/*", "lint": "biome check src/**/*",
"lint:fix": "biome check --apply src/**/*" "lint:fix": "biome check --apply src/**/*",
"tanstack-router-dev": "tsr watch"
}, },
"dependencies": { "dependencies": {
"@emotion/react": "^11.11.4", "@emotion/react": "^11.13.3",
"@emotion/styled": "^11.11.5", "@emotion/styled": "^11.13.0",
"@fontsource-variable/jetbrains-mono": "^5.0.21", "@fontsource-variable/jetbrains-mono": "^5.0.22",
"@fontsource/noto-sans": "^5.0.22", "@fontsource-variable/noto-sans": "^5.0.5",
"@jellyfin/sdk": "0.8.2", "@jellyfin/sdk": "0.10.0",
"@mui/lab": "5.0.0-alpha.170", "@million/lint": "1.0.0-rc.84",
"@mui/material": "^5.15.15", "@mui/lab": "6.0.0-beta.9",
"@mui/material": "6.0.2",
"@react-spring/web": "^9.7.4",
"@tanem/react-nprogress": "^5.0.51", "@tanem/react-nprogress": "^5.0.51",
"@tanstack/react-query": "^5.32.0", "@tanstack/react-query": "^5.55.0",
"@tanstack/react-query-devtools": "^5.32.0", "@tanstack/react-query-devtools": "^5.55.0",
"@tanstack/react-virtual": "^3.4.0", "@tanstack/react-router": "^1.56.1",
"@tauri-apps/api": "^1.5.4", "@tanstack/react-virtual": "^3.10.7",
"@types/node": "^20.12.7", "@tauri-apps/api": "2.0.0-beta.15",
"@types/react": "^18.3.0", "@tauri-apps/plugin-clipboard-manager": "2.1.0-beta.5",
"@tauri-apps/plugin-process": "2.0.0-rc.1",
"@tauri-apps/plugin-store": "github:tauri-apps/tauri-plugin-store#v2",
"@tauri-apps/plugin-updater": "2.0.0-rc.2",
"@types/node": "^22.5.4",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0", "@types/react-dom": "^18.3.0",
"axios": "^1.6.8", "axios": "^1.7.7",
"axios-tauri-api-adapter": "^0.2.1", "axios-tauri-api-adapter": "^0.2.2",
"blurhash": "^2.0.5", "blurhash": "^2.0.5",
"events": "^3.3.0", "framer-motion": "^11.5.4",
"framer-motion": "^11.1.7", "jassub": "^1.7.17",
"jassub": "^1.7.15", "lodash": "^4.17.21",
"material-symbols": "^0.17.3", "material-symbols": "^0.23.0",
"million": "^3.0.6", "million": "^3.1.11",
"notistack": "^3.0.1", "notistack": "^3.0.1",
"react": "^18.3.1", "react": "18.3.1",
"react-blurhash": "^0.3.0", "react-blurhash": "^0.3.0",
"react-dom": "^18.3.1", "react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "18.3.1",
"react-error-boundary": "^4.0.13", "react-error-boundary": "^4.0.13",
"react-markdown": "^9.0.1", "react-markdown": "^9.0.1",
"react-multi-carousel": "^2.8.5", "react-multi-carousel": "^2.8.5",
"react-player": "^2.16.0", "react-player": "^2.16.0",
"react-router-dom": "^6.23.0",
"react-use-konami": "^1.1.0", "react-use-konami": "^1.1.0",
"remark-gfm": "^4.0.0", "remark-gfm": "^4.0.0",
"tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log#v1", "typescript": "^5.5.4",
"tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store",
"typescript": "^5.4.5",
"vite-plugin-svgr": "^4.2.0", "vite-plugin-svgr": "^4.2.0",
"wavesurfer.js": "^7.7.11", "wavesurfer.js": "^7.8.4",
"zustand": "^4.5.2" "zustand": "^4.5.5"
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "^1.7.1", "@babel/plugin-proposal-optional-chaining-assign": "^7.24.7",
"@tauri-apps/cli": "^1.5.12", "@biomejs/biome": "^1.8.3",
"@vitejs/plugin-react": "^4.2.1", "@tanstack/router-cli": "^1.56.1",
"@tanstack/router-devtools": "^1.56.1",
"@tanstack/router-vite-plugin": "^1.56.1",
"@tauri-apps/cli": "2.0.0-beta.22",
"@types/lodash": "^4.17.7",
"@vitejs/plugin-react": "^4.3.1",
"prop-types": "^15.8.1", "prop-types": "^15.8.1",
"sass": "^1.75.0", "sass": "^1.78.0",
"vite": "^5.2.10", "vite": "^5.4.3"
"vite-plugin-compression": "^0.5.1"
}, },
"license": "GPL-3.0-only" "license": "GPL-3.0-only"
} }
+4383 -2048
View File
File diff suppressed because it is too large. Load diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

-20
View File
@@ -1,20 +0,0 @@
<svg width="1196" height="246" viewBox="0 0 1196 246" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="50" y="50.0024" width="145.46" height="145.46" fill="url(#pattern0)"/>
<g clip-path="url(#clip0_504_8)">
<rect x="235.46" y="50" width="860" height="81.4648" fill="url(#pattern1)"/>
<path d="M235.64 186.465L247.232 161.265H249.068L260.66 186.465H258.68L247.736 162.417H248.528L237.62 186.465H235.64ZM239.888 179.373L240.5 177.825H255.584L256.196 179.373H239.888ZM278.081 186.465V161.265H279.629L291.329 181.461H290.501L302.165 161.265H303.677L303.713 186.465H301.913L301.877 164.037H302.381L291.329 183.117H290.429L279.341 164.037H279.881V186.465H278.081ZM324.991 186.645C323.119 186.645 321.379 186.333 319.771 185.709C318.187 185.061 316.795 184.161 315.595 183.009C314.419 181.833 313.507 180.477 312.859 178.941C312.211 177.381 311.887 175.689 311.887 173.865C311.887 172.041 312.211 170.361 312.859 168.825C313.507 167.265 314.419 165.909 315.595 164.757C316.795 163.581 318.187 162.681 319.771 162.057C321.379 161.409 323.119 161.085 324.991 161.085C326.863 161.085 328.591 161.409 330.175 162.057C331.783 162.681 333.175 163.569 334.351 164.721C335.527 165.873 336.439 167.229 337.087 168.789C337.759 170.325 338.095 172.017 338.095 173.865C338.095 175.713 337.759 177.417 337.087 178.977C336.439 180.513 335.527 181.857 334.351 183.009C333.175 184.161 331.783 185.061 330.175 185.709C328.591 186.333 326.863 186.645 324.991 186.645ZM324.991 184.953C326.599 184.953 328.087 184.677 329.455 184.125C330.823 183.573 332.011 182.793 333.019 181.785C334.027 180.777 334.807 179.601 335.359 178.257C335.935 176.913 336.223 175.449 336.223 173.865C336.223 172.257 335.935 170.793 335.359 169.473C334.807 168.129 334.027 166.953 333.019 165.945C332.011 164.937 330.823 164.157 329.455 163.605C328.087 163.053 326.599 162.777 324.991 162.777C323.383 162.777 321.895 163.053 320.527 163.605C319.159 164.157 317.959 164.937 316.927 165.945C315.919 166.953 315.127 168.129 314.551 169.473C313.999 170.793 313.723 172.257 313.723 173.865C313.723 175.449 313.999 176.913 314.551 178.257C315.127 179.601 315.919 180.777 316.927 181.785C317.959 182.793 319.159 183.573 320.527 184.125C321.895 184.677 323.383 184.953 324.991 184.953ZM346.263 186.465V161.265H356.235C358.899 161.265 361.239 161.805 363.255 162.885C365.271 163.965 366.831 165.453 367.935 167.349C369.063 169.245 369.627 171.417 369.627 173.865C369.627 176.313 369.063 178.485 367.935 180.381C366.831 182.277 365.271 183.765 363.255 184.845C361.239 185.925 358.899 186.465 356.235 186.465H346.263ZM348.099 184.809H356.091C358.467 184.809 360.531 184.341 362.283 183.405C364.035 182.469 365.391 181.185 366.351 179.553C367.311 177.897 367.791 176.001 367.791 173.865C367.791 171.729 367.311 169.845 366.351 168.213C365.391 166.557 364.035 165.261 362.283 164.325C360.531 163.389 358.467 162.921 356.091 162.921H348.099V184.809ZM379.425 172.857H393.069V174.477H379.425V172.857ZM379.641 184.809H395.193V186.465H377.805V161.265H394.653V162.921H379.641V184.809ZM403.687 186.465V161.265H412.723C414.835 161.265 416.647 161.601 418.159 162.273C419.671 162.945 420.835 163.917 421.651 165.189C422.467 166.437 422.875 167.961 422.875 169.761C422.875 171.513 422.467 173.025 421.651 174.297C420.835 175.545 419.671 176.517 418.159 177.213C416.647 177.885 414.835 178.221 412.723 178.221H404.695L405.523 177.357V186.465H403.687ZM421.183 186.465L414.631 177.321H416.719L423.271 186.465H421.183ZM405.523 177.465L404.695 176.601H412.723C415.435 176.601 417.487 176.001 418.879 174.801C420.295 173.601 421.003 171.921 421.003 169.761C421.003 167.577 420.295 165.897 418.879 164.721C417.487 163.521 415.435 162.921 412.723 162.921H404.695L405.523 162.021V177.465ZM431.397 186.465V161.265H432.945L450.909 184.197H450.081V161.265H451.917V186.465H450.405L432.405 163.533H433.233V186.465H431.397ZM475.832 186.645C474.464 186.645 473.18 186.333 471.98 185.709C470.804 185.061 469.856 184.173 469.136 183.045L470.252 181.821C470.948 182.853 471.764 183.645 472.7 184.197C473.66 184.725 474.704 184.989 475.832 184.989C479.168 184.989 480.836 183.009 480.836 179.049V162.921H471.548V161.265H482.672V179.049C482.672 181.569 482.096 183.465 480.944 184.737C479.792 186.009 478.088 186.645 475.832 186.645ZM494.667 172.857H508.311V174.477H494.667V172.857ZM494.883 184.809H510.435V186.465H493.047V161.265H509.895V162.921H494.883V184.809ZM518.929 186.465V161.265H520.765V184.809H535.273V186.465H518.929ZM541.788 186.465V161.265H543.624V184.809H558.132V186.465H541.788ZM567.915 186.465V177.321L568.347 178.509L557.763 161.265H559.779L569.391 176.925H568.383L577.995 161.265H579.903L569.319 178.509L569.751 177.321V186.465H567.915ZM587.297 173.685H600.941V175.341H587.297V173.685ZM587.513 186.465H585.677V161.265H602.525V162.921H587.513V186.465ZM610.188 186.465V161.265H612.024V186.465H610.188ZM622.605 186.465V161.265H624.153L642.117 184.197H641.289V161.265H643.125V186.465H641.613L623.613 163.533H624.441V186.465H622.605ZM675.427 186.645C673.555 186.645 671.815 186.333 670.207 185.709C668.623 185.061 667.243 184.161 666.067 183.009C664.891 181.857 663.979 180.513 663.331 178.977C662.683 177.417 662.359 175.713 662.359 173.865C662.359 172.017 662.683 170.325 663.331 168.789C663.979 167.229 664.891 165.873 666.067 164.721C667.267 163.569 668.659 16Line truncated
</g>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_504_8" transform="scale(0.000661376)"/>
</pattern>
<pattern id="pattern1" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image1_504_8" transform="scale(0.000244141 0.00257732)"/>
</pattern>
<clipPath id="clip0_504_8">
<rect width="910" height="145.465" fill="white" transform="translate(235.46 50)"/>
</clipPath>
<image id="image0_504_8" width="1512" height="1512" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABegAAAXoCAYAAADGxiudAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUADeKkSURBVHgB7P0/tyXJlR2O7egGuLgWDTSsmXGEpveTQ4DOqAfTPV3w5A0oS9YA/AICfl+AAPQBRMwX4FTTkExi5PzkoVsGFwVg1A04NFEtC2MNYJBrgK5CKPNWRr4dO/aJzPvqVdWrqrPXqro3I+PPOSfOicyzM26+gkQikUgkEolEInGIb37zm1/74x//WNbvpZSv1VqXj/LO8vmVtWj9XI6/unyv6/Hy73+3fTa8u50Dlb+7tMHSFvrZ6q+D1KcFrU2Vfruyugm2ffJYj+h8G6s7J+1/TedXfE51fruc+qfNFr/bjuvjx49/9/bbb/92Lf9v/+2/PUIikUgkEolEIpGYoiCRSCQSiUQikXjN8eDBg3f++Z//+Z0nT56886UvfekrC6H87lJc3nrrrfUTC/H+NTzlpr+6ku7YiPMF72zE+37fTGR5I7Ibqa7E+U7Gt+Yb8d7OFYxk++W4keRaDi7YiPYmwzbQMIb0xWVctz14gI4BVQL9Q4B2ysh8wWLblbxfSfvL59ZlI/8/3+r8eiH2f7cQ/P+0fK7lj/7lv/yXv/34449/i0QikUgkEolE4jVGEvSJRCKRSCQSiVcO77333rsr2f7lL3953dW+kujvbMT6SrSvnyvR/u5W/V1t30h1Oq5EdDeimXel7+VKWtNxR4IbUh58nr8ruS3kuba5E8hO++GT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IDw1UHAHcX/7CEFMLz+yMb/pmN7r/0vl4cFP/3Zz372SyQSiUQikUgk7hRJ0CcSiUQikUg8I9577713FzL+w4XEWt8V/yGevqbmK7UevwKFEO2i3b8KyTjdVR+QtXudk0QizLlax13NZUa+F7OLXOSL3rd+dte03SXPY9Vgt3Mp9rU3Z7CTvW6ehTjl+pZwxzgPezWe44k+0Xx1ejqdnS9Imev31EMZBIT0CXvb/mcPLvihQI0f2kS/KnC2Cm1q9HbzF8a/0f/oQcbw8G0fZBL/23FI8ut6IuWA8YcFHy/HvyxP32v/6yTtE4lEIpFIJJ4NSdAnEolEIpFIXIH1VTX//M//vL4zft0R/2F5+sdc2zvjB7Kw1uNd8oKd2Fu/8CsupFL46haSxf4By+J3E3efEXnZUAKC/yRhC0yIfzwlIju9ms4A7G56p48Q2Tp+R96eIUsnxLrqc2b3NFz/m1x7f7UXTEl6R852fSrZbGy1j0X11Zan5Fd1MBLz3RyHDevwcMPWkfk7+rw0a98jPUs59fcJjvTdj9v4a3t+d/+sHyL2Z69UGmzRdbBNNW5I/TbuEP9tLGD49Y3aax9TCPvfLZ/rTvuVuP/4iy+++OVnn332WyQSiUQikUgkTiEJ+kQikUgkEokJ1t3xC0n+YPn6V8u/b+Hp7vgVM7JyICKVTFbyUckwbbMdY5Hl8odR0ROuTDiCCcmt+444PCD9BvLXEfEMQ2p2eouuTECOg58gZ7d6R+8Px0RWJY/buTIhuLvhAfuHTcPvjnwXfSyhDLODmfsmubVuR8qSisMu8mbPJor2h2DuA9tEO9t5nO6BgLPZLqx0afqOdLHvk4c89Line truncated
<image id="image1_504_8" width="4096" height="388" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAAAGECAYAAAC2K+WjAAAAAXNSR0IArs4c6QAAIABJREFUeF7svQmcJVdZ9/97emayh+wgAQImYdFX4VUU1D8I+soivqgvEGRfBBISkkBCNiDIyE7YAtkTkrAFkoxECCKIiOAGCqIEBaJhM2HLnsns032f/+fcqrp1qm7d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HUt377/9O0tPM7JYpDo/UEIBAAwTc/RclfUHSgTWHv0vSK8zs/TXHJVyDBDAAaBAuoSHQHgIYALRnLiZWyY8OPXqvA/Y+4M/de+F3hcV+vx8W5GcK8RFi/TCIpc0AcjF73QYAWf5RBgBxfbmxQHJ3yESg0gBgdLu8/+KxYkODuIbMSCAfQ/KSyCT3A1F+hQFANoJ+vJLZQS7mT+qqyjMwGVjUAKBa/D8wEojMB7K6Q+7sJRPa9Uqcw7N+m3SUPelOl3/Pe3a9m/9dr2c32rqFb2pht+3bdmzZtm4v37b5p0dsX6/1HBozsXeM5SeqewFi+RXQozYCGADUhpJA0yWAAcB0+TeWHQOAxtLine truncated
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

-20
View File
@@ -1,20 +0,0 @@
<svg width="1197" height="247" viewBox="0 0 1197 247" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="50" y="50" width="146.79" height="146.79" fill="url(#pattern0)"/>
<g clip-path="url(#clip0_949_2)">
<rect x="236.79" y="50.6626" width="860" height="81.4648" fill="url(#pattern1)"/>
<path d="M236.97 187.127L248.562 161.927H250.398L261.99 187.127H260.01L249.066 163.079H249.858L238.95 187.127H236.97ZM241.218 180.035L241.83 178.487H256.914L257.526 180.035H241.218ZM279.411 187.127V161.927H280.959L292.659 182.123H291.831L303.495 161.927H305.007L305.043 187.127H303.243L303.207 164.699H303.711L292.659 183.779H291.759L280.671 164.699H281.211V187.127H279.411ZM326.321 187.307C324.449 187.307 322.709 186.995 321.101 186.371C319.517 185.723 318.125 184.823 316.925 183.671C315.749 182.495 314.837 181.139 314.189 179.603C313.541 178.043 313.217 176.351 313.217 174.527C313.217 172.703 313.541 171.023 314.189 169.487C314.837 167.927 315.749 166.571 316.925 165.419C318.125 164.243 319.517 163.343 321.101 162.719C322.709 162.071 324.449 161.747 326.321 161.747C328.193 161.747 329.921 162.071 331.505 162.719C333.113 163.343 334.505 164.231 335.681 165.383C336.857 166.535 337.769 167.891 338.417 169.451C339.089 170.987 339.425 172.679 339.425 174.527C339.425 176.375 339.089 178.079 338.417 179.639C337.769 181.175 336.857 182.519 335.681 183.671C334.505 184.823 333.113 185.723 331.505 186.371C329.921 186.995 328.193 187.307 326.321 187.307ZM326.321 185.615C327.929 185.615 329.417 185.339 330.785 184.787C332.153 184.235 333.341 183.455 334.349 182.447C335.357 181.439 336.137 180.263 336.689 178.919C337.265 177.575 337.553 176.111 337.553 174.527C337.553 172.919 337.265 171.455 336.689 170.135C336.137 168.791 335.357 167.615 334.349 166.607C333.341 165.599 332.153 164.819 330.785 164.267C329.417 163.715 327.929 163.439 326.321 163.439C324.713 163.439 323.225 163.715 321.857 164.267C320.489 164.819 319.289 165.599 318.257 166.607C317.249 167.615 316.457 168.791 315.881 170.135C315.329 171.455 315.053 172.919 315.053 174.527C315.053 176.111 315.329 177.575 315.881 178.919C316.457 180.263 317.249 181.439 318.257 182.447C319.289 183.455 320.489 184.235 321.857 184.787C323.225 185.339 324.713 185.615 326.321 185.615ZM347.593 187.127V161.927H357.565C360.229 161.927 362.569 162.467 364.585 163.547C366.601 164.627 368.161 166.115 369.265 168.011C370.393 169.907 370.957 172.079 370.957 174.527C370.957 176.975 370.393 179.147 369.265 181.043C368.161 182.939 366.601 184.427 364.585 185.507C362.569 186.587 360.229 187.127 357.565 187.127H347.593ZM349.429 185.471H357.421C359.797 185.471 361.861 185.003 363.613 184.067C365.365 183.131 366.721 181.847 367.681 180.215C368.641 178.559 369.121 176.663 369.121 174.527C369.121 172.391 368.641 170.507 367.681 168.875C366.721 167.219 365.365 165.923 363.613 164.987C361.861 164.051 359.797 163.583 357.421 163.583H349.429V185.471ZM380.755 173.519H394.399V175.139H380.755V173.519ZM380.971 185.471H396.523V187.127H379.135V161.927H395.983V163.583H380.971V185.471ZM405.017 187.127V161.927H414.053C416.165 161.927 417.977 162.263 419.489 162.935C421.001 163.607 422.165 164.579 422.981 165.851C423.797 167.099 424.205 168.623 424.205 170.423C424.205 172.175 423.797 173.687 422.981 174.959C422.165 176.207 421.001 177.179 419.489 177.875C417.977 178.547 416.165 178.883 414.053 178.883H406.025L406.853 178.019V187.127H405.017ZM422.513 187.127L415.961 177.983H418.049L424.601 187.127H422.513ZM406.853 178.127L406.025 177.263H414.053C416.765 177.263 418.817 176.663 420.209 175.463C421.625 174.263 422.333 172.583 422.333 170.423C422.333 168.239 421.625 166.559 420.209 165.383C418.817 164.183 416.765 163.583 414.053 163.583H406.025L406.853 162.683V178.127ZM432.727 187.127V161.927H434.275L452.239 184.859H451.411V161.927H453.247V187.127H451.735L433.735 164.195H434.563V187.127H432.727ZM477.162 187.307C475.794 187.307 474.51 186.995 473.31 186.371C472.134 185.723 471.186 184.835 470.466 183.707L471.582 182.483C472.278 183.515 473.094 184.307 474.03 184.859C474.99 185.387 476.034 185.651 477.162 185.651C480.498 185.651 482.166 183.671 482.166 179.711V163.583H472.878V161.927H484.002V179.711C484.002 182.231 483.426 184.127 482.274 185.399C481.122 186.671 479.418 187.307 477.162 187.307ZM495.997 173.519H509.641V175.139H495.997V173.519ZM496.213 185.471H511.765V187.127H494.377V161.927H511.225V163.583H496.213V185.471ZM520.259 187.127V161.927H522.095V185.471H536.603V187.127H520.259ZM543.118 187.127V161.927H544.954V185.471H559.462V187.127H543.118ZM569.245 187.127V177.983L569.677 179.171L559.093 161.927H561.109L570.721 177.587H569.713L579.325 161.927H581.233L570.649 179.171L571.081 177.983V187.127H569.245ZM588.627 174.347H602.271V176.003H588.627V174.347ZM588.843 187.127H587.007V161.927H603.855V163.583H588.843V187.127ZM611.518 187.127V161.927H613.354V187.127H611.518ZM623.935 187.127V161.927H625.483L643.447 184.859H642.619V161.927H644.455V187.127H642.943L624.943 164.195H625.771V187.127H623.935ZM676.758 187.307C674.886 187.307 673.146 186.995 671.538 186.371C669.954 185.723 668.574 184.823 667.398 183.671C666.222 182.519 665.31 181.175 664.662 179.639C664.014 178.079 663.69 176.375 663.69 174.527C663.69 172.679 664.014 170.987 664.662 169.451C665.31 167.891 666.222 166.535 667.398 165.383C668.598 164.231 669.99 163.34Line truncated
</g>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_949_2" transform="scale(0.000806452)"/>
</pattern>
<pattern id="pattern1" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image1_949_2" transform="scale(0.000244141 0.00257732)"/>
</pattern>
<clipPath id="clip0_949_2">
<rect width="910" height="145.465" fill="white" transform="translate(236.79 50.6626)"/>
</clipPath>
<image id="image0_949_2" width="1240" height="1240" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABNgAAATYCAYAAADNtnp8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAB1GVSURBVHgB7P1tsGXndd8Hrv1yzr3dDVCQZb1RfLmw9WJFkxIY2ZYlxSYgKYokkyJB0RIVOUJD4osdWyEQjyJVZaK+cKWUqXIsAjOZ1ExlJmh64onjiYtQjWucyYcBXRO7amo+EJo4+TBVU7xy7NhJJTJIAui+95yzd/bzrLWeZ+19LkiQxMvp7t+v6+Dee85+efY+5zarf/yvtUQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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2" width="4096" height="388" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAAAGECAYAAAC2K+WjAAAAAXNSR0IArs4c6QAAIABJREFUeF7snQmcJGV5/381swvIIbcol8rhlQRjjBrz12iMIppojAreCiogt9weGCdeICjIzS4CiqLACioeGKMGNUYTjAloUBIUDSjIsewue+9Mv//P21Vv1ftWV890z1R1V3V/6yPuTtX7Ps/zft/u2Zm339/vjcQFAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAwNAJREOvgAIgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQEAYAvAggAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAI1IIABQA0mgRIgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIYAPAagAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEI1IAABgA1mARKgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIYADAawACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIFADAhgA1GASKAECEIAABCAAA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Jw7KiXbtJ7aSS4xJusAQwABgsb7LNj8A9ySk5djPzTyT9TJI1A7UmRvY/axzA5ub5saUXBCwBDAB4HUAAAhCAAASGSOBaHTg5vdOufx9FOk2SFRd3u9ZsnDZPectD59m9V1wQgMBwCXxT0gsllb3//nuSXi3p/uEOj+wQgEAFBP5I0k2Sdig59kpJ75T0qZLjEq5aAhgAVMuX6BCoAwEMAOowCwOu4Xe7Hrbl9ltt/0VjWvZ3hdl+v+8U5DuFeBexvh3K3GYAmZi9bAMAl7+bAYBfX2YsEN/tMBEoNADo3i7rP3ss39DAr8EZCWRjiF8YTnKfivILDADcCNrxcmYHmZg/rqsoT2oyMKsBQLH4PzUS8MwHXN02t3vJ2HatHGf7rN0mGWVLWmFk7jSt6HYTme+1WtFdE5vN3GamN9uwfuPa9Yu3NOvX/H7vDVOamh7w24Z0fRAoewGij9Q0rYAABgAVQCXkwAlgADBw5ANLiAHAwFCTCAJDI4ABwNDQNzIxBgCNnDaKhgAEINAXAQwA+sJFYwhAAAJzEtg5OcXbngRU9nLine truncated
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 858 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 503 KiB

After

Width:  |  Height:  |  Size: 519 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

+22
View File
@@ -0,0 +1,22 @@
<svg width="1302" height="522" viewBox="0 0 1302 522" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="1301.68" height="522" fill="white"/>
<rect width="322" height="322" transform="translate(100 100)" fill="white"/>
<mask id="mask0_1155_288" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="121" y="180" width="140" height="162">
<path fill-rule="evenodd" clip-rule="evenodd" d="M260.939 261L121.509 180.5V341.5L260.939 261Z" fill="#D9D9D9"/>
</mask>
<g mask="url(#mask0_1155_288)">
<rect x="90.6289" y="180.5" width="170.37" height="161" fill="url(#pattern0_1155_288)"/>
</g>
<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="M694.794 368.28V161.366H729.652V368.28H694.794Z" fill="#222222"/>
<path d="M775.402 368.28V219.369H810.26V368.28H775.402ZM792.97 194.829C786.464 194.829 781.072 192.784 776.796 188.694C772.707 184.604 770.662 179.678 770.662 173.914C770.662 167.965 772.707 163.039 776.796 159.135C781.072 155.045 786.464 153 792.97 153C799.477 153 804.775 154.952 808.865 158.856C813.141 162.574 815.279 167.315 815.279 173.078C815.279 179.213 813.234 184.418 809.144 188.694C805.054 192.784 799.663 194.829 792.97 194.829Z" fill="#222222"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M486 368.28V173.078H577.466C600.89 173.078 618.737 177.726 631.007 187.021C643.277 196.13 649.412 208.4 649.412 223.83C649.412 234.241 646.995 243.165 642.162 250.601C637.625 257.407 631.613 262.82 624.128 266.841C626.493 267.616 628.786 268.524 631.007 269.563C639.745 273.468 646.623 279.231 651.643 286.853C656.848 294.475 659.451 303.956 659.451 315.297C659.451 332.028 653.037 345.042 640.21 354.337C627.382 363.632 608.327 368.28 583.043 368.28H486ZM580.812 339.836H522.252V283.506H580.812C594.384 283.506 604.794 285.83 612.045 290.478C619.295 294.94 622.92 302.004 622.92 311.671C622.92 321.524 619.295 328.682 612.045 333.144C604.794 337.605 594.384 339.836 580.812 339.836ZM602.563 248.649C595.871 253.111 586.204 255.342 573.562 255.342H522.252V201.522H573.562C586.204 201.522 595.871 203.753 602.563 208.214C609.442 212.676 612.881 219.462 612.881 228.571C612.881 237.495 609.442 244.187 602.563 248.649Z" fill="#222222"/>
<path d="M940.505 217.696C952.403 217.696 962.999 220.019 972.295 224.667C981.776 229.315 989.212 236.472 994.604 246.139C999.995 255.62 1002.69 267.89 1002.69 282.949V368.28H967.833V287.411C967.833 274.211 964.673 264.358 958.352 257.851C952.217 251.345 943.572 248.091 932.418 248.091C924.238 248.091 916.988 249.764 910.667 253.111C904.346 256.457 899.419 261.477 895.887 268.169C892.541 274.676 890.868 282.949 890.868 292.988V368.28H856.01V219.369H889.194V238.664C893.72 233.268 899.297 228.881 905.926 225.504C915.965 220.298 927.491 217.696 940.505 217.696Z" fill="#222222"/>
<path d="M1153.99 219.369H1195.82L1133.68 281.767L1201.68 368.28H1159.29L1107.69 304.511L1081.77 329.03V368.28H1046.91V161.366H1081.77V286.157L1153.99 219.369Z" fill="#222222"/>
<defs>
<pattern id="pattern0_1155_288" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_1155_288" transform="matrix(0.000572484 0 0 0.000580984 -0.735848 -0.442641)"/>
</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+mToBG6trtV3uqT7tpnoOievpNfEyqvVS34pCWOdXT3ejSV5Dv2x4m/S+epjJTIVOHIOUo3FsSTZtX+d2qYk17sbM3il3saqqVXPRNbjZkytYe/X8UoSL3A+k8NLfJxrZcdUakxerYyYrwG0Nh2HpPWFXC+tVqGYpPeWjfMaTW1MfX66sXA/I73V/jW4JWGM/LGOU9dr7V9gzKgjPObOYfu3tk2FIrpnd2NqbXt7LY6qS5quHpFjJF+XJJ3si+dVz1OPY+Xc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KexWw/20f29XcR2Q8Rb0YwhBGJRB2NMYcZj7qf51yEeX5c/PWsxm2QnH1/dvSe/4h+pD7s6GNRJDSG7PRxNo98XiinSCwtnswLrXFvGVl/eP4oJ7SH2YhjHdmo1ojfU/FaoXXS0GwNgtPbjXPSvGN1itmtxUL7KeLf2vRHvq2uvW8tr8Oa1Us2K/mv9r3aL+o7EmeG251jReRTvFbFLS8kRmTufZjGYU7ux8mvaeQM/aj/qC/uV+e5mutMjiiGH5dJOxvind3Sbfq4tt3BAcGaOWuE4qzkVNvJ60aulTQvNqcSC78IHsGq/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>

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

+22
View File
@@ -0,0 +1,22 @@
<svg width="1302" height="522" viewBox="0 0 1302 522" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="1302" height="522" fill="#222222"/>
<rect width="322" height="322" transform="translate(100 100)" fill="#222222"/>
<mask id="mask0_1178_275" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="121" y="180" width="140" height="162">
<path fill-rule="evenodd" clip-rule="evenodd" d="M260.939 261L121.509 180.5V341.5L260.939 261Z" fill="#D9D9D9"/>
</mask>
<g mask="url(#mask0_1178_275)">
<rect x="90.6289" y="180.5" width="170.37" height="161" fill="url(#pattern0_1178_275)"/>
</g>
<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="M694.794 368.64V161.726H729.652V368.64H694.794Z" fill="white"/>
<path d="M775.402 368.64V219.729H810.26V368.64H775.402ZM792.97 195.189C786.464 195.189 781.072 193.144 776.796 189.054C772.707 184.964 770.662 180.037 770.662 174.274C770.662 168.325 772.707 163.399 776.796 159.495C781.072 155.405 786.464 153.36 792.97 153.36C799.477 153.36 804.775 155.312 808.865 159.216C813.141 162.934 815.279 167.675 815.279 173.438C815.279 179.573 813.234 184.778 809.144 189.054C805.054 193.144 799.663 195.189 792.97 195.189Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M486 368.64V173.438H577.466C600.89 173.438 618.737 178.085 631.007 187.381C643.277 196.49 649.412 208.76 649.412 224.19C649.412 234.601 646.995 243.525 642.162 250.961C637.625 257.766 631.613 263.18 624.128 267.201C626.493 267.976 628.786 268.884 631.007 269.923C639.745 273.827 646.623 279.59 651.643 287.213C656.848 294.835 659.451 304.316 659.451 315.656C659.451 332.388 653.037 345.401 640.21 354.697C627.382 363.992 608.327 368.64 583.043 368.64H486ZM580.812 340.196H522.252V283.866H580.812C594.384 283.866 604.794 286.19 612.045 290.838C619.295 295.3 622.92 302.364 622.92 312.031C622.92 321.884 619.295 329.042 612.045 333.503C604.794 337.965 594.384 340.196 580.812 340.196ZM602.563 249.009C595.871 253.471 586.204 255.701 573.562 255.701H522.252V201.881H573.562C586.204 201.881 595.871 204.112 602.563 208.574C609.442 213.036 612.881 219.821 612.881 228.931C612.881 237.854 609.442 244.547 602.563 249.009Z" fill="white"/>
<path d="M940.505 218.055C952.403 218.055 962.999 220.379 972.295 225.027C981.776 229.675 989.212 236.832 994.604 246.499C999.995 255.98 1002.69 268.25 1002.69 283.309V368.64H967.833V287.77C967.833 274.571 964.673 264.718 958.352 258.211C952.217 251.704 943.572 248.451 932.418 248.451C924.238 248.451 916.988 250.124 910.667 253.471C904.346 256.817 899.419 261.836 895.887 268.529C892.541 275.036 890.868 283.309 890.868 293.348V368.64H856.01V219.729H889.194V239.024C893.72 233.627 899.297 229.241 905.926 225.863C915.965 220.658 927.491 218.055 940.505 218.055Z" fill="white"/>
<path d="M1153.99 219.729H1195.82L1133.68 282.127L1201.68 368.64H1159.29L1107.69 304.871L1081.77 329.39V368.64H1046.91V161.726H1081.77V286.517L1153.99 219.729Z" fill="white"/>
<defs>
<pattern id="pattern0_1178_275" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_1178_275" transform="matrix(0.000572484 0 0 0.000580984 -0.735848 -0.442641)"/>
</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+IEZgjCd8jTFxnH2fy3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nrzhArzdeMQ8cJ/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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 967 KiB

After

Width:  |  Height:  |  Size: 2.8 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 889 KiB

-20
View File
@@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

-99
View File
@@ -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>
+12 -9
View File
@@ -1,29 +1,32 @@
[package] [package]
name = "jellyplayer" name = "blink"
version = "0.0.5-dev" version = "0.0.6-dev"
description = "A Modern Jellyfin Client" description = "A Modern Jellyfin Client"
authors = ["prayag17", "JellyPlayer contributors (https://github.com/prayag17/JellyPlayer/graphs/contributors)"] authors = ["prayag17", "JellyPlayer contributors (https://github.com/prayag17/JellyPlayer/graphs/contributors)"]
license = "GPL-3.0-only" license = "GPL-3.0-only"
repository = "https://github.com/prayag17/JellyPlayer/" repository = "https://github.com/prayag17/JellyPlayer/"
default-run = "jellyplayer" default-run = "blink"
edition = "2021" edition = "2021"
rust-version = "1.59" rust-version = "1.59"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies] [build-dependencies]
tauri-build = { version = "1.5.1", features = [] } tauri-build = { version = "2.0.0-beta", features = [] }
[dependencies] [dependencies]
log = "^0.4.21" log = "^0.4.21"
serde_json = "1.0" serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.6.2", features = [ "window-all", "updater", "http-all", "process-exit", "process-relaunch", "shell-all", "devtools"] } tauri = { version = "2.0.0-beta", features = [ "devtools"] }
tauri-plugin-localhost = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } tauri-plugin-localhost = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1", features = ["colored"] } tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2", features = ["colored"] }
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
portpicker = "0.1" # used in the example to pick a random free port portpicker = "0.1" # used in the example to pick a random free port
tauri-plugin-process = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-updater = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-clipboard-manager = "2.1.0-beta.6"
[features] [features]
# by default Tauri runs in production mode # by default Tauri runs in production mode
+17
View File
@@ -0,0 +1,17 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "main-capabilities",
"description": "Capability for desktop window",
"windows": ["main"],
"permissions": [
"store:allow-get",
"store:allow-set",
"store:allow-save",
"store:allow-clear",
"store:allow-delete",
"store:allow-keys",
"store:allow-load",
"updater:allow-check",
"updater:allow-download-and-install"
]
}
+17
View File
@@ -0,0 +1,17 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "migrated",
"description": "permissions that were migrated from v1",
"local": true,
"windows": ["main"],
"permissions": [
"core:path:default",
"core:event:default",
"core:window:default",
"core:app:default",
"core:resources:default",
"core:menu:default",
"core:tray:default",
"core:window:allow-set-fullscreen"
]
}
+1
View File
@@ -0,0 +1 @@
{"clipboard-manager":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n","permissions":[]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-read-image":{"identifier":"allow-read-image","description":"Enables the read_image command without any pre-configured scope.","commands":{"allow":["read_image"],"deny":[]}},"allow-read-text":{"identifier":"allow-read-text","description":"Enables the read_text command without any pre-configured scope.","commands":{"allow":["read_text"],"deny":[]}},"allow-write-html":{"identifier":"allow-write-html","description":"Enables the write_html command without any pre-configured scope.","commands":{"allow":["write_html"],"deny":[]}},"allow-write-image":{"identifier":"allow-write-image","description":"Enables the write_image command without any pre-configured scope.","commands":{"allow":["write_image"],"deny":[]}},"allow-write-text":{"identifier":"allow-write-text","description":"Enables the write_text command without any pre-configured scope.","commands":{"allow":["write_text"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-read-image":{"identifier":"deny-read-image","description":"Denies the read_image command without any pre-configured scope.","commands":{"allow":[],"deny":["read_image"]}},"deny-read-text":{"identifier":"deny-read-text","description":"Denies the read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text"]}},"deny-write-html":{"identifier":"deny-write-html","description":"Denies the write_html command without any pre-configured scope.","commands":{"allow":[],"deny":["write_html"]}},"deny-write-image":{"identifier":"deny-write-image","description":"Denies the write_image command without any pre-configured scope.","commands":{"allow":[],"deny":["write_image"]}},"deny-write-text":{"identifier":"deny-write-text","description":"Denies the write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text"]}}},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["alloLine truncated
+1
View File
@@ -0,0 +1 @@
{"main-capabilities":{"identifier":"main-capabilities","description":"Capability for desktop window","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","store:allow-clear","store:allow-delete","store:allow-keys","store:allow-load","updater:allow-check","updater:allow-download-and-install"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-fullscreen"]}}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 45 KiB

+6 -32
View File
@@ -1,45 +1,19 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use tauri::{utils::config::AppUrl, WindowUrl}; use tauri_plugin_log::{fern::colors::ColoredLevelConfig, Target, TargetKind};
use tauri_plugin_log::{fern::colors::ColoredLevelConfig, LogTarget};
// Tauri by default uses HTTPS, so use the localhost plugin to downgrade back to
// HTTP. However, when running tauri dev, we already have a localhost server
// provided by vite, so don't enable it
#[cfg(debug_assertions)]
const USE_LOCALHOST_SERVER: bool = false;
#[cfg(not(debug_assertions))]
const USE_LOCALHOST_SERVER: bool = true;
fn main() { fn main() {
let port = portpicker::pick_unused_port().expect("failed to find unused port"); tauri::Builder::default()
.plugin(tauri_plugin_clipboard_manager::init())
let window_url = if USE_LOCALHOST_SERVER {
WindowUrl::External(format!("http://localhost:{}", port).parse().unwrap())
} else {
WindowUrl::App("index.html".into())
};
let mut context = tauri::generate_context!();
let mut builder = tauri::Builder::default();
if USE_LOCALHOST_SERVER {
// rewrite the config so the IPC is enabled on this URL
context.config_mut().build.dist_dir = AppUrl::Url(window_url.clone());
context.config_mut().build.dev_path = AppUrl::Url(window_url.clone());
builder = builder.plugin(tauri_plugin_localhost::Builder::new(port).build());
}
builder
.plugin( .plugin(
tauri_plugin_log::Builder::default() tauri_plugin_log::Builder::default()
.targets([LogTarget::LogDir, LogTarget::Stdout, LogTarget::Webview]) .targets([Target::new(TargetKind::Webview)])
.with_colors(ColoredLevelConfig::default()) .with_colors(ColoredLevelConfig::default())
.build(), .build(),
) )
.plugin(tauri_plugin_store::Builder::default().build()) .plugin(tauri_plugin_store::Builder::default().build())
.plugin(tauri_plugin_updater::Builder::default().build())
// .plugin(tauri_plugin_window_state::Builder::default().build()) // .plugin(tauri_plugin_window_state::Builder::default().build())
.run(context) .run(tauri::generate_context!())
.expect("error while running JellyPlayer"); .expect("error while running JellyPlayer");
} }
+45 -73
View File
@@ -3,40 +3,23 @@
"build": { "build": {
"beforeBuildCommand": "pnpm run build", "beforeBuildCommand": "pnpm run build",
"beforeDevCommand": "pnpm run dev", "beforeDevCommand": "pnpm run dev",
"devPath": "http://localhost:5173", "frontendDist": "../dist",
"distDir": "../dist" "devUrl": "http://localhost:5173"
},
"package": {
"productName": "JellyPlayer",
"version": "../package.json"
},
"tauri": {
"allowlist": {
"process": {
"all": false,
"exit": true,
"relaunch": true,
"relaunchDangerousAllowSymlinkMacos": false
},
"window": {
"all": true,
"setFullscreen": true
},
"shell": {
"all": true
},
"http": {
"all": true,
"request": true,
"scope": ["http://**", "http://*", "https://**", "https://*"]
}
}, },
"bundle": { "bundle": {
"active": true, "active": true,
"category": "Video", "category": "Video",
"copyright": "GPL-3.0-only", "copyright": "GPL-3.0-only",
"deb": { "windows": {
"depends": [] "certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": "",
"nsis": {
"sidebarImage": "../public/installerSideBarImage.bmp",
"headerImage": "../public/installerHeaderImage.bmp",
"installerIcon": "icons/icon.ico",
"displayLanguageSelector": true
}
}, },
"externalBin": [], "externalBin": [],
"icon": [ "icon": [
@@ -46,7 +29,14 @@
"icons/icon.icns", "icons/icon.icns",
"icons/icon.ico" "icons/icon.ico"
], ],
"identifier": "com.jellyplayer.prayag17", "linux": {
"deb": {
"depends": []
},
"appimage": {
"bundleMediaFramework": true
}
},
"longDescription": "A modern desktop client for Jellyfin", "longDescription": "A modern desktop client for Jellyfin",
"macOS": { "macOS": {
"entitlements": null, "entitlements": null,
@@ -56,62 +46,44 @@
"signingIdentity": null "signingIdentity": null
}, },
"resources": [], "resources": [],
"shortDescription": "JellyPlayer", "shortDescription": "Blink",
"targets": ["deb", "appimage", "nsis", "app", "dmg", "updater"], "targets": [
"windows": { "deb",
"certificateThumbprint": null, "appimage",
"digestAlgorithm": "sha256", "nsis",
"timestampUrl": "", "app",
"nsis": { "dmg"
"sidebarImage": "../public/installerSideBarImage.bmp", ],
"headerImage": "../public/installerHeaderImage.bmp", "licenseFile": "../LICENSE",
"installerIcon": "icons/icon.ico", "createUpdaterArtifacts": "v1Compatible"
"displayLanguageSelector": true,
"license": "../LICENSE"
},
"webviewInstallMode": {
"silent": true,
"type": "offlineInstaller"
}
},
"appimage": {
"bundleMediaFramework": true
}
},
"security": {
"csp": null,
"dangerousRemoteDomainIpcAccess": [
{
"domain": "**",
"windows": ["main"],
"enableTauriAPI": true
},
{
"domain": "*",
"windows": ["main"],
"enableTauriAPI": true
}
]
}, },
"productName": "Blink",
"version": "../package.json",
"identifier": "com.blink.prayag17",
"plugins": {
"updater": { "updater": {
"active": true, "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEZEMTg0MjEzRDYzRjJDN0EKUldSNkxEL1dFMElZL1dxbHA0V2lyVDFEdGpOZXkxMG9XdHVLVnRpVVV5c1Z0OFNRUE45dkpxbFAK",
"endpoints": [ "endpoints": [
"https://raw.githack.com/prayag17/JellyPlayer/main/latest.json" "https://raw.githack.com/prayag17/JellyPlayer/main/latest.json"
], ]
"dialog": false, }
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDk5QkE0QjMzOEQyRUI5M0MKUldROHVTNk5NMHU2bVMvS3VNRWZHRzhuWE1TRlg3WHI1VHBtZjFvVy80alZ2UHc4T3BqcHVGOWwK"
}, },
"app": {
"windows": [ "windows": [
{ {
"fullscreen": false, "fullscreen": false,
"height": 600, "height": 600,
"width": 800, "width": 800,
"resizable": true, "resizable": true,
"title": "JellyPlayer", "title": "Blink",
"visible": true, "visible": true,
"center": true, "center": true,
"label": "main" "label": "main",
"dragDropEnabled": false
}
],
"security": {
"csp": null
} }
]
} }
} }
-535
View File
@@ -1,535 +0,0 @@
import React, { useState, useEffect, useLayoutEffect } from "react";
import { ThemeProvider } from "@mui/material/styles";
import { AnimatePresence, motion } from "framer-motion";
import { SnackbarProvider } from "notistack";
import {
Navigate,
Route,
Routes,
useLocation,
useNavigate,
} from "react-router-dom";
import { relaunch } from "@tauri-apps/api/process";
import {
type UpdateManifest,
checkUpdate,
installUpdate,
} from "@tauri-apps/api/updater";
// Theming
import CssBaseline from "@mui/material/CssBaseline";
import "./styles/global.scss";
import { theme } from "./theme";
import LoadingButton from "@mui/lab/LoadingButton";
import Button from "@mui/material/Button";
// MUI
import {
Chip,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
IconButton,
LinearProgress,
SvgIcon,
} 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 FavoritePage from "./routes/favorite/index.jsx";
import Home from "./routes/home";
import ItemDetail from "./routes/item";
import LibraryView from "./routes/library";
import {
LoginRoute,
LoginWithImage,
UserLogin,
UserLoginManual,
} from "./routes/login";
import PersonTitlePage from "./routes/person/index.jsx";
import VideoPlayer from "./routes/player/videoPlayer";
import PlaylistTitlePage from "./routes/playlist/index.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 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";
import { ErrorNotice } from "./components/notices/errorNotice/errorNotice.jsx";
import AudioPlayer from "./components/playback/audioPlayer/index.jsx";
// Utils
import { useAudioPlayback } from "./utils/store/audioPlayback.js";
import { useBackdropStore } from "./utils/store/backdrop.js";
import { setInitialRoute, useCentralStore } from "./utils/store/central.js";
import {
usePlaybackDataLoadStore,
usePlaybackStore,
} from "./utils/store/playback";
// 3rd Party
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { CircularProgress } from "@mui/material";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { useSnackbar } from "notistack";
import { ErrorBoundary } from "react-error-boundary";
import { getSystemApi } from "@jellyfin/sdk/lib/utils/api/system-api";
import {
useIsFetching,
useIsMutating,
useQueryClient,
} from "@tanstack/react-query";
import NProgress from "./components/nProgress";
import Settings from "./components/settings";
import { EasterEgg } from "./components/utils/easterEgg.jsx";
import { handleRelaunch } from "./utils/misc/relaunch";
import {
delServer,
getAllServers,
getDefaultServer,
getServer,
setDefaultServer,
} from "./utils/storage/servers";
import { type UserStore, delUser, getUser } from "./utils/storage/user";
import { axiosClient, createApi, useApi } from "./utils/store/api";
const handleAuthError = async () => {
await delUser();
setInitialRoute("/login/index");
};
const authenticateUser = async (address: string, user: UserStore["user"]) => {
try {
createApi(address, user.AccessToken);
setInitialRoute("/home");
} catch (error) {
console.error(error);
setInitialRoute("/error");
}
};
const init = async () => {
if (window.location.pathname !== "/") {
window.location.href = "/";
return;
}
const defaultServerOnDisk = await getDefaultServer();
if (defaultServerOnDisk) {
const defaultServerInfo = await getServer(defaultServerOnDisk);
if (!defaultServerInfo) {
await setDefaultServer(null);
await delServer(defaultServerOnDisk);
const servers = await getAllServers();
setInitialRoute(servers.length > 0 ? "/servers/list" : "/setup/server");
return;
}
const userOnDisk = await getUser();
createApi(defaultServerInfo.address, "");
try {
const api = useApi.getState();
const ping = await getSystemApi(api.api).getPingSystem();
// const ping = await fetch("http://192.168.29.60:8096/System/Ping");
} catch (error) {
console.error(error);
setInitialRoute("/error");
return;
}
if (userOnDisk) {
try {
let authApi = useApi.getState().api;
if (!authApi) {
handleAuthError();
return;
}
await authenticateUser(defaultServerInfo.address, userOnDisk);
authApi = useApi.getState().api!;
const user = await getUserApi(authApi).getCurrentUser();
if (!user) {
await delUser();
handleAuthError();
}
} catch (error) {
console.error(error);
handleAuthError();
}
} else {
setInitialRoute("/login/index");
}
} else {
setInitialRoute("/setup/server");
}
};
function App() {
const [appReady, setAppReady] = useState(false);
useEffect(() => {
init().then(() => {
setAppReady(true);
});
}, []);
if (!appReady) {
return (
<div
style={{
position: "fixed",
top: "50%",
left: "50%",
transform: "translate(-50%, -50%)",
}}
>
<CircularProgress size={72} thickness={1.4} />
</div>
);
}
return <AppReady />;
}
function AppReady() {
const [audioPlayerVisible] = useAudioPlayback((state) => [state.display]);
const { enqueueSnackbar } = useSnackbar();
const [initialRoute] = useCentralStore((state) => [state.initialRoute]);
const [backdropUrl, backdropId] = useBackdropStore((state) => [
state.backdropUrl,
state.backdropId,
]);
const [playbackDataLoading] = usePlaybackDataLoadStore((state) => [
state.isPending,
]);
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();
useEffect(() => window.scrollTo(0, 0), [location.key]);
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 (
<div
style={{
position: "fixed",
top: "50%",
left: "50%",
transform: "translate(-50%, -50%)",
}}
>
<CircularProgress size={72} thickness={1.4} />
</div>
);
}
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={{
display: "flex",
width: "100vw",
transition: "padding 250ms",
}}
>
<AppBar />
{audioPlayerVisible && <AudioPlayer />}
<ErrorBoundary FallbackComponent={ErrorNotice} key={location.key}>
<Routes location={location}>
<Route path="/" element={<Navigate to={initialRoute} />} />
<Route
path="/error"
element={
<Dialog
open
onClose={handleRelaunch}
aria-labelledby="alert-dialog-text"
aria-describedby="alert-dialog-desc"
maxWidth="md"
>
<DialogTitle id="alert-dialog-text">
Unable to reach server
</DialogTitle>
<DialogContent>
<DialogContentText id="alert-dialog-desc">
Unable to connect to the jellyfin server.
</DialogContentText>
</DialogContent>
<DialogActions>
<Button
color="secondary"
variant="contained"
onClick={() => navigate("/servers/list")}
>
Change Server
</Button>
<Button
variant="contained"
color="primary"
onClick={handleRelaunch}
>
Restart JellyPlayer
</Button>
</DialogActions>
</Dialog>
}
/>
<Route path="/login/index" element={<LoginRoute />} />
<Route path="/home" element={<Home />} />
<Route path="/setup/server" element={<ServerSetup />} />
<Route path="/servers/list" element={<ServerList />} />
<Route
path="/login/withImg/:userName/:userId/"
element={<LoginWithImage />}
/>
<Route path="/login/users" element={<UserLogin />} />
<Route path="/login/manual" element={<UserLoginManual />} />
<Route path="/library/:id" element={<LibraryView />} />
<Route path="/item/:id" element={<ItemDetail />} />
<Route
path="/musicalbum/:id"
element={<MusicAlbumTitlePage />}
errorElement={<div>Error</div>}
/>
<Route path="/artist/:id" element={<ArtistTitlePage />} />
<Route path="/boxset/:id" element={<BoxSetTitlePage />} />
<Route path="/episode/:id" element={<EpisodeTitlePage />} />
<Route path="/person/:id" element={<PersonTitlePage />} />
<Route path="/playlist/:id" element={<PlaylistTitlePage />} />
<Route path="/series/:id" element={<SeriesTitlePage />} />
<Route path="/search" element={<SearchPage />} />
<Route path="/favorite" element={<FavoritePage />} />
<Route path="/about" element={<About />} />
<Route
path="/player"
element={<VideoPlayer />}
key={videoPlaybackItem?.Id ?? "noplayback"}
/>
</Routes>
</ErrorBoundary>
</div>
<ReactQueryDevtools buttonPosition="bottom-right" position="left" />
</ThemeProvider>
</SnackbarProvider>
);
}
export default App;
+3
View File
@@ -0,0 +1,3 @@
<svg width="1310" height="1512" viewBox="0 0 1310 1512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M654.715 756L52 1103.98L654.715 1451.96L1257.43 1103.98V408.022L654.715 60.0444L52 408.022L654.715 756ZM654.715 0L1309.43 378V1134L654.715 1512L0 1134V1073.96V438.044V378L654.715 0Z" fill="#101010"/>
</svg>

After

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 889 KiB

After

Width:  |  Height:  |  Size: 94 KiB

+14 -17
View File
@@ -1,20 +1,17 @@
<svg width="1512" height="1512" viewBox="0 0 1512 1512" fill="none" xmlns="http://www.w3.org/2000/svg"> <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="url(#paint0_radial_33_14)"/> <rect width="1512" height="1512" rx="756" fill="white"/>
<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)"/> <rect width="1012" height="1012" transform="translate(250 250)" fill="white"/>
<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)"/> <mask id="mask0_1167_274" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="317" y="503" width="439" height="506">
<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"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M755.809 756L317.601 503V1009L755.809 756Z" fill="#D9D9D9"/>
</mask>
<g mask="url(#mask0_1167_274)">
<rect x="220.55" y="503" width="535.45" height="506" fill="url(#pattern0_1167_274)"/>
</g>
<path d="M1194.02 503L755.809 250L317.601 503L755.809 756L317.601 1009L755.809 1262L1194.02 1009V503Z" fill="#222222"/>
<defs> <defs>
<radialGradient id="paint0_radial_33_14" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1512 1512) rotate(-135) scale(2138.29)"> <pattern id="pattern0_1167_274" patternContentUnits="objectBoundingBox" width="1" height="1">
<stop/> <use xlink:href="#image0_1167_274" transform="matrix(0.000572484 0 0 0.000580984 -0.735848 -0.442641)"/>
<stop offset="1" stop-color="#474747"/> </pattern>
</radialGradient> <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+acBHGI35IGLjjqHdVebfrTEwMi9xTF5gMRqRHb2mY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vSe/4h+pD7s6GNRJDSG7PRxNo98XiinSCwtnswLrXFvGVl/eP4oJ7SH2YhjHdmo1ojfU/FaoXXS0GwNgtPbjXPSvGN1itmtxUL7KeLf2vRHvq2uvW8tr8Oa1Us2K/mv9r3aL+o7EmeG251jReRTvFbFLS8kRmTufZjGYU7ux8mvaeQM/aj/qC/uV+e5mutMjiiGH5dJOxvind3Sbfq4tt3BAcGaOWuE4qzkVNvJ60aulTQvNqcSC78IHsGq/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
<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> </defs>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 3.7 MiB

+4
View File
@@ -0,0 +1,4 @@
<svg width="39" height="14" viewBox="0 0 39 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 0H34.69C36.8991 0 38.69 1.79086 38.69 4V10C38.69 12.2091 36.8991 14 34.69 14H4.00001C1.79087 14 0 12.2091 0 10V4C0 1.79086 1.79086 0 4 0ZM6.7 9.395H4.4V3.525H3V10.505H6.7V9.395ZM10.7798 8.075L13.1398 3.525H11.5798L10.0898 6.715L8.58984 3.525H7.00984L9.37984 8.075V10.505H10.7798V8.075ZM16.0073 7.785L17.5473 10.505H19.1673L17.4973 7.675C18.0239 7.535 18.4206 7.28167 18.6873 6.915C18.9539 6.54167 19.0873 6.125 19.0873 5.665C19.0873 5.265 18.9906 4.905 18.7973 4.585C18.6106 4.25833 18.3273 4.00167 17.9473 3.815C17.5673 3.62167 17.1073 3.525 16.5673 3.525H13.9473V10.505H15.3473V7.785H16.0073ZM21.7535 10.505V3.525H20.3535V10.505H21.7535ZM23.2567 5.165C22.9501 5.705 22.7967 6.31833 22.7967 7.005C22.7967 7.69167 22.9501 8.305 23.2567 8.845C23.5701 9.385 23.9934 9.80833 24.5267 10.115C25.0667 10.415 25.6701 10.565 26.3367 10.565C27.1234 10.565 27.8067 10.3683 28.3867 9.975C28.9734 9.575 29.3834 9.01833 29.6167 8.305H28.0067C27.8467 8.63833 27.6201 8.89167 27.3267 9.065C27.0401 9.23167 26.7067 9.315 26.3267 9.315C25.9201 9.315 25.5567 9.22167 25.2367 9.035C24.9234 8.84167 24.6767 8.57167 24.4967 8.225C24.3234 7.87167 24.2367 7.465 24.2367 7.005C24.2367 6.53833 24.3234 6.13167 24.4967 5.785C24.6767 5.43833 24.9234 5.17167 25.2367 4.985C25.5567 4.79167 25.9201 4.695 26.3267 4.695C26.7067 4.695 27.0401 4.77833 27.3267 4.945C27.6201 5.11167 27.8467 5.36167 28.0067 5.695H29.6167C29.3834 4.98833 28.9734 4.435 28.3867 4.035C27.8001 3.635 27.1167 3.435 26.3367 3.435C25.6701 3.435 25.0667 3.58833 24.5267 3.895C23.9934 4.195 23.5701 4.61833 23.2567 5.165ZM31.9025 10.325C32.2958 10.4917 32.7358 10.575 33.2225 10.575C33.7358 10.575 34.1792 10.4817 34.5525 10.295C34.9258 10.1017 35.2092 9.845 35.4025 9.525C35.5958 9.205 35.6925 8.85833 35.6925 8.485C35.6925 8.05167 35.5892 7.70167 35.3825 7.435C35.1758 7.16833 34.9292 6.96833 34.6425 6.835C34.3558 6.70167 33.9858 6.56833 33.5325 6.435C33.1992 6.335 32.9392 6.24833 32.7525 6.175C32.5725 6.095 32.4192 5.995 32.2925 5.875C32.1725 5.74833 32.1125 5.59167 32.1125 5.405C32.1125 5.13833 32.1925 4.935 32.3525 4.795C32.5192 4.655 32.7392 4.585 33.0125 4.585C33.3258 4.585 33.5758 4.665 33.7625 4.825C33.9558 4.97833 34.0592 5.175 34.0725 5.415H35.6125C35.5658 4.78833 35.3158 4.30167 34.8625 3.955C34.4158 3.60167 33.8325 3.425 33.1125 3.425C32.6325 3.425 32.2058 3.50833 31.8325 3.675C31.4592 3.835 31.1692 4.06833 30.9625 4.375C30.7558 4.68167 30.6525 5.04167 30.6525 5.455C30.6525 5.895 30.7525 6.24833 30.9525 6.515C31.1592 6.775 31.4025 6.97167 31.6825 7.105C31.9692 7.23167 32.3392 7.36167 32.7925 7.495C33.1258 7.58833 33.3858 7.675 33.5725 7.755C33.7658 7.82833 33.9258 7.93167 34.0525 8.065C34.1792 8.19833 34.2425 8.36833 34.2425 8.575C34.2425 8.82833 34.1492 9.035 33.9625 9.195C33.7758 9.34833 33.5192 9.425 33.1925 9.425C32.8725 9.425 32.6192 9.34167 32.4325 9.175C32.2525 9.00833 32.1525 8.78167 32.1325 8.495H30.6325C30.6392 8.92167 30.7558 9.29167 30.9825 9.605C31.2092 9.91833 31.5158 10.1583 31.9025 10.325Z" fill="white"/>
<path d="M15.3473 6.735H16.5173C16.8973 6.735 17.1806 6.645 17.3673 6.465C17.5539 6.27833 17.6473 6.02167 17.6473 5.695C17.6473 5.375 17.5539 5.12833 17.3673 4.955C17.1806 4.775 16.8973 4.685 16.5173 4.685H15.3473V6.735Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

+11
View File
@@ -0,0 +1,11 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1029_262)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M23.5024 12.9928C23.271 9.28227 21.3839 6.50613 18.5446 4.9541C18.5607 5.04452 18.4802 5.15755 18.3886 5.11752C16.5315 4.30511 13.3809 6.93435 11.1793 5.55749C11.1958 6.05163 11.0993 8.46208 7.70374 8.6019C7.62358 8.60519 7.57946 8.52333 7.63015 8.46537C8.08426 7.94743 8.54275 6.63609 7.88349 5.93701C6.47168 7.20213 5.65179 7.67825 2.94477 7.04997C1.21159 8.86222 0.229486 11.3426 0.422283 14.4324C0.815644 20.7399 6.72373 24.3454 12.6732 23.9741C18.6223 23.6032 23.8959 19.3003 23.5024 12.9928Z" fill="#FA320A"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.6598 3.43995C13.8824 3.14856 17.3987 3.41156 18.5253 4.90604C18.5929 4.99566 18.4977 5.16526 18.3887 5.11766C16.5315 4.30524 13.3809 6.93449 11.1793 5.55762C11.1958 6.05176 11.0993 8.46222 7.7038 8.60204C7.62363 8.60532 7.57952 8.52347 7.6302 8.46551C8.08431 7.94756 8.5427 6.63623 7.88355 5.93714C6.34566 7.3153 5.51193 7.75815 2.17404 6.85591C2.06479 6.82644 2.10204 6.65087 2.21825 6.60655C2.84913 6.36546 4.27837 5.30946 5.63054 4.844C5.88796 4.75547 6.14459 4.68675 6.39505 4.64682C4.90625 4.51377 4.23515 4.30674 3.2882 4.44954C3.18443 4.46517 3.11392 4.34438 3.17825 4.26152C4.45414 2.61807 6.80454 2.12174 8.2547 2.9948C7.36083 1.88722 6.66064 1.0039 6.66064 1.0039L8.31973 0.0615234C8.31973 0.0615234 9.00518 1.59294 9.5039 2.7075C10.7381 0.883996 13.0343 0.715698 14.0044 2.00951C14.062 2.08639 14.0019 2.19573 13.9058 2.19344C13.1161 2.17422 12.6814 2.89243 12.6484 3.43865L12.6598 3.43995Z" fill="#00912D"/>
</g>
<defs>
<clipPath id="clip0_1029_262">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

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

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 25 KiB

+16 -19
View File
@@ -1,25 +1,22 @@
<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"> <svg width="1302" height="522" viewBox="0 0 1302 522" 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"/> <rect width="1301.68" height="522" fill="white"/>
<path d="M984.562 455.536V19.4642H1007.74V432.354H1311.62V455.536H984.562Z" fill="white"/> <rect width="322" height="322" transform="translate(100 100)" fill="white"/>
<path d="M1448.35 455.536V19.4642H1471.53V432.354H1775.4V455.536H1448.35Z" fill="white"/> <mask id="mask0_1155_288" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="121" y="180" width="140" height="162">
<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 fill-rule="evenodd" clip-rule="evenodd" d="M260.939 261L121.509 180.5V341.5L260.939 261Z" fill="#D9D9D9"/>
<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> </mask>
<g mask="url(#mask0_501_2)"> <g mask="url(#mask0_1155_288)">
<rect x="3232" y="10" width="1778" height="446" fill="url(#pattern0)"/> <rect x="90.6289" y="180.5" width="170.37" height="161" fill="url(#pattern0_1155_288)"/>
</g> </g>
<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="M694.794 368.28V161.366H729.652V368.28H694.794Z" fill="#222222"/>
<path d="M775.402 368.28V219.369H810.26V368.28H775.402ZM792.97 194.829C786.464 194.829 781.072 192.784 776.796 188.694C772.707 184.604 770.662 179.678 770.662 173.914C770.662 167.965 772.707 163.039 776.796 159.135C781.072 155.045 786.464 153 792.97 153C799.477 153 804.775 154.952 808.865 158.856C813.141 162.574 815.279 167.315 815.279 173.078C815.279 179.213 813.234 184.418 809.144 188.694C805.054 192.784 799.663 194.829 792.97 194.829Z" fill="#222222"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M486 368.28V173.078H577.466C600.89 173.078 618.737 177.726 631.007 187.021C643.277 196.13 649.412 208.4 649.412 223.83C649.412 234.241 646.995 243.165 642.162 250.601C637.625 257.407 631.613 262.82 624.128 266.841C626.493 267.616 628.786 268.524 631.007 269.563C639.745 273.468 646.623 279.231 651.643 286.853C656.848 294.475 659.451 303.956 659.451 315.297C659.451 332.028 653.037 345.042 640.21 354.337C627.382 363.632 608.327 368.28 583.043 368.28H486ZM580.812 339.836H522.252V283.506H580.812C594.384 283.506 604.794 285.83 612.045 290.478C619.295 294.94 622.92 302.004 622.92 311.671C622.92 321.524 619.295 328.682 612.045 333.144C604.794 337.605 594.384 339.836 580.812 339.836ZM602.563 248.649C595.871 253.111 586.204 255.342 573.562 255.342H522.252V201.522H573.562C586.204 201.522 595.871 203.753 602.563 208.214C609.442 212.676 612.881 219.462 612.881 228.571C612.881 237.495 609.442 244.187 602.563 248.649Z" fill="#222222"/>
<path d="M940.505 217.696C952.403 217.696 962.999 220.019 972.295 224.667C981.776 229.315 989.212 236.472 994.604 246.139C999.995 255.62 1002.69 267.89 1002.69 282.949V368.28H967.833V287.411C967.833 274.211 964.673 264.358 958.352 257.851C952.217 251.345 943.572 248.091 932.418 248.091C924.238 248.091 916.988 249.764 910.667 253.111C904.346 256.457 899.419 261.477 895.887 268.169C892.541 274.676 890.868 282.949 890.868 292.988V368.28H856.01V219.369H889.194V238.664C893.72 233.268 899.297 228.881 905.926 225.504C915.965 220.298 927.491 217.696 940.505 217.696Z" fill="#222222"/>
<path d="M1153.99 219.369H1195.82L1133.68 281.767L1201.68 368.28H1159.29L1107.69 304.511L1081.77 329.03V368.28H1046.91V161.366H1081.77V286.157L1153.99 219.369Z" fill="#222222"/>
<defs> <defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1"> <pattern id="pattern0_1155_288" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_501_2" transform="matrix(0 -0.000973278 0.000244141 0 0 2.49327)"/> <use xlink:href="#image0_1155_288" transform="matrix(0.000572484 0 0 0.000580984 -0.735848 -0.442641)"/>
</pattern> </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/iVaz30J3uBWe8L5YqL7vl1z885scdHid7P2P75y+reozFPiz8KZYhp8ZIFFeE4e0BiNMYi3yA+TT1YK5R7sBrhhSNIUbgjMY/CMMmLsNrh1PHU+Az+uFf+9w+3K/xL/ng/xuzv5Zfr5x1OAxnKL4xPx0G5y/HYGfLxFVyFbg5p/RkZ8Yozw/Gw8QAZK21MmYwvzb8BrkFuZn+nsjMBMbxKPJmO587uZVzyV7x+YVjaXOd1hUb95RrJJ/TPDDjCh4RfnhNxpBxY3idvqA6Rmobqg2hZhj38LpplsZqzX/fS1wdwhGdt+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MGxdIBqV8Z2Deel6CkPNtXG5LPj+VLedpIfhpWpW9wcK62j8QB9aGGm2Rbjf05aK9V93K3eLY3KOikDEzyzRmybxFBuKCeCO1W/QL+0qZkU8enRpM5JdYxWgbt2s038Mi6RP1Yh/gqMnrzhArzdeMQ8cJ/yvVMRT5JG381Wn2Tt/KswbmH/nnEGT81K/+N/K5nHm+PW/4t5vv4p0RyLIl/Od8l/7LeebyscqL/7BZsHTDB2jqK+hkZzWVHXe8q3B3Uct+51l5yrED6nMy+OJ7N5fpa7Iv4yXn1Yl/J7VN1WB13Nd7qmszgMTj2yCOefMvrs0ceuaucJxjuICKXu5BbJGlQ9/tkdefdqZNlGWM4m5fmj4/rDCQNwnflXFLine truncated
</defs> </defs>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 6.1 MiB

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 25 KiB

+16 -19
View File
@@ -1,25 +1,22 @@
<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"> <svg width="1302" height="522" viewBox="0 0 1302 522" 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"/> <rect width="1302" height="522" fill="#222222"/>
<path d="M984.562 455.536V19.4642H1007.74V432.354H1311.62V455.536H984.562Z" fill="black"/> <rect width="322" height="322" transform="translate(100 100)" fill="#222222"/>
<path d="M1448.35 455.536V19.4642H1471.53V432.354H1775.4V455.536H1448.35Z" fill="black"/> <mask id="mask0_1178_275" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="121" y="180" width="140" height="162">
<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 fill-rule="evenodd" clip-rule="evenodd" d="M260.939 261L121.509 180.5V341.5L260.939 261Z" fill="#D9D9D9"/>
<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> </mask>
<g mask="url(#mask0_941_19)"> <g mask="url(#mask0_1178_275)">
<rect x="3232" y="10" width="1778" height="446" fill="url(#pattern0)"/> <rect x="90.6289" y="180.5" width="170.37" height="161" fill="url(#pattern0_1178_275)"/>
</g> </g>
<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="M694.794 368.64V161.726H729.652V368.64H694.794Z" fill="white"/>
<path d="M775.402 368.64V219.729H810.26V368.64H775.402ZM792.97 195.189C786.464 195.189 781.072 193.144 776.796 189.054C772.707 184.964 770.662 180.037 770.662 174.274C770.662 168.325 772.707 163.399 776.796 159.495C781.072 155.405 786.464 153.36 792.97 153.36C799.477 153.36 804.775 155.312 808.865 159.216C813.141 162.934 815.279 167.675 815.279 173.438C815.279 179.573 813.234 184.778 809.144 189.054C805.054 193.144 799.663 195.189 792.97 195.189Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M486 368.64V173.438H577.466C600.89 173.438 618.737 178.085 631.007 187.381C643.277 196.49 649.412 208.76 649.412 224.19C649.412 234.601 646.995 243.525 642.162 250.961C637.625 257.766 631.613 263.18 624.128 267.201C626.493 267.976 628.786 268.884 631.007 269.923C639.745 273.827 646.623 279.59 651.643 287.213C656.848 294.835 659.451 304.316 659.451 315.656C659.451 332.388 653.037 345.401 640.21 354.697C627.382 363.992 608.327 368.64 583.043 368.64H486ZM580.812 340.196H522.252V283.866H580.812C594.384 283.866 604.794 286.19 612.045 290.838C619.295 295.3 622.92 302.364 622.92 312.031C622.92 321.884 619.295 329.042 612.045 333.503C604.794 337.965 594.384 340.196 580.812 340.196ZM602.563 249.009C595.871 253.471 586.204 255.701 573.562 255.701H522.252V201.881H573.562C586.204 201.881 595.871 204.112 602.563 208.574C609.442 213.036 612.881 219.821 612.881 228.931C612.881 237.854 609.442 244.547 602.563 249.009Z" fill="white"/>
<path d="M940.505 218.055C952.403 218.055 962.999 220.379 972.295 225.027C981.776 229.675 989.212 236.832 994.604 246.499C999.995 255.98 1002.69 268.25 1002.69 283.309V368.64H967.833V287.77C967.833 274.571 964.673 264.718 958.352 258.211C952.217 251.704 943.572 248.451 932.418 248.451C924.238 248.451 916.988 250.124 910.667 253.471C904.346 256.817 899.419 261.836 895.887 268.529C892.541 275.036 890.868 283.309 890.868 293.348V368.64H856.01V219.729H889.194V239.024C893.72 233.627 899.297 229.241 905.926 225.863C915.965 220.658 927.491 218.055 940.505 218.055Z" fill="white"/>
<path d="M1153.99 219.729H1195.82L1133.68 282.127L1201.68 368.64H1159.29L1107.69 304.871L1081.77 329.39V368.64H1046.91V161.726H1081.77V286.517L1153.99 219.729Z" fill="white"/>
<defs> <defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1"> <pattern id="pattern0_1178_275" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_941_19" transform="matrix(0 -0.000973278 0.000244141 0 0 2.49327)"/> <use xlink:href="#image0_1178_275" transform="matrix(0.000572484 0 0 0.000580984 -0.735848 -0.442641)"/>
</pattern> </pattern>
<image id="image0_941_19" width="4096" height="4096" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAE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5cFLlW9s7hrSOvm7w+ZkJ3QJ2J5x+7zUit9T7B9XYUZLWhK7K0LQXxwzAzk3WYWcYx611iDWZGljAjc3InYVot6xG/V76zFs8MYlLXKdEnK/eZyH3OMR7Rmo3EG5kX3YeXTbQPEw0SJyX98nw0hlmrEBfplQWJAbQ+wKcmetMGxdIBqV8Z2Deel6CkPNtXG5LPj+VLedpIfhpWpW9wcK62j8QB9aGGm2Rbjf05aK9V93K3eLY3KOikDEzyzRmybxFBuKCeCO1W/QL+0qZkU8enRpM5JdYxWgbt2s038Mi6RP1Yh/gqMnrzhArzdeMQ8cJ/yvVMRT5JG381Wn2Tt/KswbmH/nnEGT81K/+N/K5nHm+PW/4t5vv4p0RyLIl/Od8l/7LeebyscqL/7BZsHTDB2jqK+hkZzWVHXe8q3B3Uct+51l5yrED6nMy+OJ7N5fpa7Iv4yXn1Yl/J7VN1WB13Nd7qmszgMTj2yCOefMvrs0ceuaucJxjuICKXu5BbJGlQ9/tkdefdqZNlGWM4m5fmj4/rDCQNwnflXF2DLine 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/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J7N5fpa7Iv4yXn1Yl/J7VN1WB13Nd7qmszgMTj2yCOefMvrs0ceuaucJxjuICKXu5BbJGlQ9/tkdefdqZNlGWM4m5fmj4/rDCQNwnflXFLine truncated
</defs> </defs>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 3.7 MiB

After

Width:  |  Height:  |  Size: 3.7 MiB

+171
View File
@@ -0,0 +1,171 @@
import useDebounce from "@/utils/hooks/useDebounce";
import React, {
type ReactNode,
useCallback,
useEffect,
useRef,
useState,
} from "react";
import { useSpring } from "@react-spring/web";
import { debounce } from "lodash";
import "./style.scss";
import { Button, IconButton } from "@mui/material";
enum Direction {
RIGHT = 0,
LEFT = 1,
}
const Slider = ({
content,
currentSlide,
}: { content: ReactNode[]; currentSlide: number }) => {
const containerRef = useRef<HTMLDivElement>(null);
const [scrollPos, setScrollPos] = useState({ isStart: true, isEnd: false });
const handleScroll = useCallback(() => {
const scrollWidth = containerRef.current?.scrollWidth ?? 0;
const clientWidth =
containerRef.current?.getBoundingClientRect().width ?? 0;
const scrolledPostion = containerRef.current?.scrollLeft ?? 0;
if (content.length === 0) {
setScrollPos({ isStart: true, isEnd: true });
} else if (clientWidth >= scrollWidth) {
setScrollPos({ isStart: true, isEnd: true });
} else if (
scrolledPostion >=
(containerRef.current?.scrollWidth ?? 0) - clientWidth
) {
setScrollPos({ isStart: false, isEnd: true });
} else if (scrolledPostion > 0) {
setScrollPos({ isStart: false, isEnd: false });
} else {
setScrollPos({ isStart: true, isEnd: false });
}
}, [content]);
const debouncedScroll = useCallback(
() => debounce(handleScroll, 50),
[handleScroll],
);
useEffect(() => {
const handleResize = () => {
debouncedScroll();
};
window.addEventListener("resize", handleResize, { passive: true });
return () => window.removeEventListener("resize", handleResize);
}, [debouncedScroll]);
useEffect(() => {
handleScroll();
}, [handleScroll, content]);
const onScroll = () => {
debouncedScroll();
};
const [, setX] = useSpring(() => ({
from: { x: 0 },
to: { x: 0 },
onChange: (results) => {
if (containerRef.current) {
containerRef.current.scrollLeft = results.value.x;
}
},
}));
const slide = (direction: Direction) => {
const clientWidth =
containerRef.current?.getBoundingClientRect().width ?? 0;
const cardWidth =
containerRef.current?.firstElementChild?.getBoundingClientRect().width ??
0;
const scrollPosition = containerRef.current?.scrollLeft ?? 0;
const visibleItems = Math.floor(clientWidth / cardWidth);
const scrollOffset = scrollPosition % cardWidth;
if (direction === Direction.LEFT) {
const newX = Math.max(
scrollPosition - scrollOffset - visibleItems * cardWidth,
0,
);
setX.start({
from: { x: scrollPosition },
to: { x: newX },
onChange: (results) => {
if (containerRef.current) {
containerRef.current.scrollLeft = results.value.x;
}
},
reset: true,
config: { friction: 60, tension: 1000, velocity: 2 },
});
if (newX === 0) {
setScrollPos({ isStart: true, isEnd: false });
} else {
setScrollPos({ isStart: false, isEnd: false });
}
} else if (direction === Direction.RIGHT) {
const newX = Math.min(
scrollPosition - scrollOffset + visibleItems * cardWidth,
containerRef.current?.scrollWidth ?? 0 - clientWidth,
);
setX.start({
from: { x: scrollPosition },
to: { x: newX },
onChange: (results) => {
if (containerRef.current) {
containerRef.current.scrollLeft = results.value.x;
}
},
reset: true,
config: { friction: 60, tension: 500, velocity: 2 },
});
if (newX >= (containerRef.current?.scrollWidth ?? 0) - clientWidth) {
setScrollPos({ isStart: false, isEnd: true });
} else {
setScrollPos({ isStart: false, isEnd: false });
}
}
};
return (
<div className="slider">
<IconButton
className="slider-button left"
onClick={() => slide(Direction.LEFT)}
disabled={scrollPos.isStart}
variant="contained"
>
<span className="material-symbols-rounded">chevron_left</span>
</IconButton>
<div className="slider-track" ref={containerRef} onScroll={onScroll}>
{content?.map((item, index) => (
<div
key={index}
className={
currentSlide === index
? "slider-track-item active"
: "slider-track-item"
}
>
{item}
</div>
))}
</div>
<IconButton
className="slider-button right"
onClick={() => slide(Direction.RIGHT)}
disabled={scrollPos.isEnd}
variant="contained"
>
<span className="material-symbols-rounded">chevron_right</span>
</IconButton>
</div>
);
};
export default Slider;
+34
View File
@@ -0,0 +1,34 @@
.slider {
position: relative;
&-track {
overflow-y: hidden;
overflow-x: auto;
white-space: nowrap;
position: relative;
overscroll-behavior-x: contain;
margin: 0.5em 1em;
&::-webkit-scrollbar {
display: none;
}
&-item {
display: inline-block;
// align-self: top;
padding: 0.5em 0;
}
}
&-button {
position: absolute !important;
bottom: 1.3em;
&.left {
left: -1.2em;
}
&.right {
right: -1.2em;
}
}
}
+27 -74
View File
@@ -1,46 +1,31 @@
import React, { useEffect, useRef, useState } from "react"; import React, { type ReactNode } from "react";
import { useEffect, useState } from "react";
import { relaunch } from "@tauri-apps/api/process";
import MuiAppBar from "@mui/material/AppBar"; import MuiAppBar from "@mui/material/AppBar";
import Avatar from "@mui/material/Avatar"; import Avatar from "@mui/material/Avatar";
import Button from "@mui/material/Button";
import Grow from "@mui/material/Grow";
import IconButton from "@mui/material/IconButton"; import IconButton from "@mui/material/IconButton";
import ListItemIcon from "@mui/material/ListItemIcon"; import ListItemIcon from "@mui/material/ListItemIcon";
import Menu from "@mui/material/Menu"; import Menu from "@mui/material/Menu";
import MenuItem from "@mui/material/MenuItem"; import MenuItem from "@mui/material/MenuItem";
import Paper from "@mui/material/Paper";
import Popper from "@mui/material/Popper";
import Toolbar from "@mui/material/Toolbar";
import Typography from "@mui/material/Typography";
import useScrollTrigger from "@mui/material/useScrollTrigger"; import useScrollTrigger from "@mui/material/useScrollTrigger";
import { red } from "@mui/material/colors"; import { Link, useLocation, useNavigate } from "@tanstack/react-router";
import {
NavLink as NavLinkBase,
Link as RouterLink,
type LinkProps as RouterLinkProps,
useLocation,
useNavigate,
} from "react-router-dom";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api"; import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api"; import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api";
import { useQuery, useQueryClient } from "@tanstack/react-query"; import { useQuery, useQueryClient } from "@tanstack/react-query";
import { delServer } from "../../utils/storage/servers"; import { delUser } from "@/utils/storage/user";
import { delUser } from "../../utils/storage/user";
import { useDrawerStore } from "../../utils/store/drawer";
import "./appBar.scss"; import "./appBar.scss";
import { EventEmitter as event } from "../../eventEmitter";
import { useApi } from "../../utils/store/api";
import { getTypeIcon } from "../utils/iconsCollection"; import { getTypeIcon } from "../utils/iconsCollection";
import { useApiInContext } from "@/utils/store/api";
import {
setSettingsDialogOpen,
setSettingsTabValue,
} from "@/utils/store/settings";
import { import {
Divider, Divider,
Drawer, Drawer,
@@ -49,36 +34,21 @@ import {
ListItemButton, ListItemButton,
ListItemText, ListItemText,
} from "@mui/material"; } from "@mui/material";
import logo from "../../assets/icon.svg"; import BackButton from "../buttons/backButton";
import useSettingsStore, {
setSettingsDialogOpen,
setSettingsTabValue,
} from "../../utils/store/settings";
interface ListItemLinkProps { interface ListItemLinkProps {
icon?: React.ReactElement; icon?: ReactNode;
primary: string; primary: string;
to: string; 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) { function ListItemLink(props: ListItemLinkProps) {
const { icon, primary, to } = props; const { icon, primary, to } = props;
return ( return (
<li> <li>
<ListItem <ListItem
component={NavLink} component={Link}
activeClassName="active" activeClassName="active"
className="library-drawer-item" className="library-drawer-item"
to={to} to={to}
@@ -100,11 +70,10 @@ function ListItemLink(props: ListItemLinkProps) {
} }
export const AppBar = () => { export const AppBar = () => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const navigate = useNavigate(); const navigate = useNavigate();
const [display, setDisplay] = useState(false); const [display, setDisplay] = useState(false);
const [backButtonVisible, setBackButtonVisible] = useState(false);
const location = useLocation(); const location = useLocation();
@@ -114,25 +83,20 @@ export const AppBar = () => {
const usr = await getUserApi(api).getCurrentUser(); const usr = await getUserApi(api).getCurrentUser();
return usr.data; return usr.data;
}, },
enabled: display, enabled: display && Boolean(api?.accessToken),
networkMode: "always", throwOnError: true,
}); });
const libraries = useQuery({ const libraries = useQuery({
queryKey: ["libraries"], queryKey: ["libraries"],
queryFn: async () => { queryFn: async () => {
const libs = await getUserViewsApi(api).getUserViews({ const libs = await getUserViewsApi(api).getUserViews({
userId: user.data.Id, userId: user.data?.Id,
}); });
return libs.data; return libs.data;
}, },
enabled: !!user.data && !!api.accessToken, enabled: !!user.data && !!api.accessToken,
networkMode: "always", networkMode: "always",
}); });
useEffect(() => {
if (user.isError) {
console.error(user.error);
}
}, [user]);
const trigger = useScrollTrigger({ const trigger = useScrollTrigger({
disableHysteresis: true, disableHysteresis: true,
@@ -150,17 +114,14 @@ export const AppBar = () => {
const queryClient = useQueryClient(); const queryClient = useQueryClient();
const [tabValue] = useSettingsStore((state) => [state.tabValue]);
const handleLogout = async () => { const handleLogout = async () => {
console.log("Logging out user..."); console.log("Logging out user...");
await api.logout(); await api.logout();
delUser(); delUser();
sessionStorage.removeItem("accessToken"); sessionStorage.removeItem("accessToken");
event.emit("create-jellyfin-api", api.basePath);
queryClient.clear(); queryClient.clear();
setAnchorEl(null); setAnchorEl(null);
navigate("/login/index"); navigate({ to: "/login" });
}; };
useEffect(() => { useEffect(() => {
@@ -168,7 +129,7 @@ export const AppBar = () => {
location.pathname.includes("login") || location.pathname.includes("login") ||
location.pathname.includes("setup") || location.pathname.includes("setup") ||
location.pathname.includes("server") || location.pathname.includes("server") ||
location.pathname.includes("player") || location.pathname === "/player" ||
location.pathname.includes("error") || location.pathname.includes("error") ||
location.pathname === "/" location.pathname === "/"
) { ) {
@@ -176,12 +137,6 @@ export const AppBar = () => {
} else { } else {
setDisplay(true); setDisplay(true);
} }
if (location.pathname === "/home") {
setBackButtonVisible(false);
} else {
setBackButtonVisible(true);
}
}, [location]); }, [location]);
const [showDrawer, setShowDrawer] = useState(false); const [showDrawer, setShowDrawer] = useState(false);
@@ -209,13 +164,8 @@ export const AppBar = () => {
<IconButton onClick={() => setShowDrawer(true)}> <IconButton onClick={() => setShowDrawer(true)}>
<div className="material-symbols-rounded">menu</div> <div className="material-symbols-rounded">menu</div>
</IconButton> </IconButton>
<IconButton <BackButton />
disabled={!backButtonVisible} <IconButton onClick={() => navigate({ to: "/home" })}>
onClick={() => navigate(-1)}
>
<div className="material-symbols-rounded">arrow_back</div>
</IconButton>
<IconButton onClick={() => navigate("/home")}>
<div <div
className={ className={
location.pathname === "/home" location.pathname === "/home"
@@ -229,16 +179,19 @@ export const AppBar = () => {
</div> </div>
<div className="flex flex-row" style={{ gap: "0.6em" }}> <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> <div className="material-symbols-rounded">search</div>
</IconButton> </IconButton>
<IconButton onClick={() => navigate("/favorite")}> <IconButton onClick={() => navigate({ to: "/favorite" })}>
<div className="material-symbols-rounded">favorite</div> <div className="material-symbols-rounded">favorite</div>
</IconButton> </IconButton>
<IconButton sx={{ p: 0 }} onClick={handleMenuOpen}> <IconButton sx={{ p: 0 }} onClick={handleMenuOpen}>
{user.isSuccess && {user.isSuccess &&
(user.data.PrimaryImageTag === undefined ? ( (user.data.PrimaryImageTag === undefined ? (
<Avatar className="appBar-avatar" alt={user.data.Name}> <Avatar
className="appBar-avatar"
alt={user.data.Name ?? "image"}
>
<span className="material-symbols-rounded appBar-avatar-icon"> <span className="material-symbols-rounded appBar-avatar-icon">
account_circle account_circle
</span> </span>
@@ -247,7 +200,7 @@ export const AppBar = () => {
<Avatar <Avatar
className="appBar-avatar" className="appBar-avatar"
src={`${api.basePath}/Users/${user.data.Id}/Images/Primary`} src={`${api.basePath}/Users/${user.data.Id}/Images/Primary`}
alt={user.data.Name} alt={user.data.Name ?? "image"}
> >
<span className="material-symbols-rounded appBar-avatar-icon"> <span className="material-symbols-rounded appBar-avatar-icon">
account_circle account_circle
+3 -3
View File
@@ -1,13 +1,13 @@
import AppBar from "@mui/material/AppBar"; import AppBar from "@mui/material/AppBar";
import IconButton from "@mui/material/IconButton"; import IconButton from "@mui/material/IconButton";
import Toolbar from "@mui/material/Toolbar"; import Toolbar from "@mui/material/Toolbar";
import { useNavigate } from "react-router-dom"; import { useRouter } from "@tanstack/react-router";
export const AppBarBackOnly = () => { export const AppBarBackOnly = () => {
const navigate = useNavigate(); const { history } = useRouter();
const handleBack = () => { const handleBack = () => {
navigate(-1); history.go(-1);
}; };
return ( return (
+2 -3
View File
@@ -4,11 +4,10 @@ import React from "react";
import Box from "@mui/material/Box"; import Box from "@mui/material/Box";
import "./avatar.module.scss"; import "./avatar.module.scss";
import { useRouteContext } from "@tanstack/react-router";
import { useApi } from "../../utils/store/api";
export const AvatarImage = ({ userId }) => { export const AvatarImage = ({ userId }) => {
const [api] = useApi((state) => [state.api]); const api = useRouteContext({ from: "/_api" }).api;
return ( return (
<Box className="avatar-image-container"> <Box className="avatar-image-container">
<div <div
+16
View File
@@ -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>
);
}
+3 -3
View File
@@ -4,16 +4,16 @@ import React, { useEffect } from "react";
import IconButton from "@mui/material/IconButton"; import IconButton from "@mui/material/IconButton";
import { useApiInContext } from "@/utils/store/api";
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api"; import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
import CircularProgress from "@mui/material/CircularProgress"; import CircularProgress from "@mui/material/CircularProgress";
import { pink } from "@mui/material/colors"; import { pink } from "@mui/material/colors";
import { useMutation, useQueryClient } from "@tanstack/react-query"; import { useMutation, useQueryClient } from "@tanstack/react-query";
import { useRouteContext } from "@tanstack/react-router";
import { useSnackbar } from "notistack"; import { useSnackbar } from "notistack";
import { useApi } from "../../utils/store/api";
const LikeButton = ({ itemId, isFavorite, queryKey, userId, itemName }) => { const LikeButton = ({ itemId, isFavorite, queryKey, userId, itemName }) => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const queryClient = useQueryClient(); const queryClient = useQueryClient();
const { enqueueSnackbar } = useSnackbar(); const { enqueueSnackbar } = useSnackbar();
+3 -2
View File
@@ -8,12 +8,13 @@ import IconButton from "@mui/material/IconButton";
import { green } from "@mui/material/colors"; import { green } from "@mui/material/colors";
import { useMutation, useQueryClient } from "@tanstack/react-query"; import { useMutation, useQueryClient } from "@tanstack/react-query";
import { useApiInContext } from "@/utils/store/api";
import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api/playstate-api"; import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api/playstate-api";
import { useRouteContext } from "@tanstack/react-router";
import { useSnackbar } from "notistack"; import { useSnackbar } from "notistack";
import { useApi } from "../../utils/store/api";
const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => { const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const queryClient = useQueryClient(); const queryClient = useQueryClient();
const { enqueueSnackbar } = useSnackbar(); const { enqueueSnackbar } = useSnackbar();
+125 -147
View File
@@ -9,11 +9,13 @@ import Fab from "@mui/material/Fab";
import LinearProgress from "@mui/material/LinearProgress"; import LinearProgress from "@mui/material/LinearProgress";
import Typography from "@mui/material/Typography"; import Typography from "@mui/material/Typography";
import { playAudio } from "@/utils/store/audioPlayback";
import { import {
type BaseItemDto, type BaseItemDto,
type BaseItemDtoQueryResult, type BaseItemDtoQueryResult,
BaseItemKind, BaseItemKind,
ItemFields, ItemFields,
MediaProtocol,
type PlaybackInfoResponse, type PlaybackInfoResponse,
SortOrder, SortOrder,
type UserItemDataDto, type UserItemDataDto,
@@ -23,26 +25,22 @@ import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
import { getPlaylistsApi } from "@jellyfin/sdk/lib/utils/api/playlists-api"; import { getPlaylistsApi } from "@jellyfin/sdk/lib/utils/api/playlists-api";
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api"; import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api";
import { useMutation } from "@tanstack/react-query"; import { useMutation } from "@tanstack/react-query";
import { useNavigate, useRouteContext } from "@tanstack/react-router";
import { useSnackbar } from "notistack"; 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 { import { playItem, usePlaybackDataLoadStore } from "@/utils/store/playback";
playItem,
setItem,
usePlaybackDataLoadStore,
usePlaybackStore,
} from "../../utils/store/playback";
import type PlayResult from "@//utils/types/playResult";
import { getRuntimeCompact } from "@/utils/date/time";
import getSubtitle from "@/utils/methods/getSubtitles";
import playbackProfile from "@/utils/playback-profiles";
import { axiosClient, useApiInContext } from "@/utils/store/api";
import type IntroMediaInfo from "@/utils/types/introMediaInfo";
import { getMediaInfoApi } from "@jellyfin/sdk/lib/utils/api/media-info-api"; import { getMediaInfoApi } from "@jellyfin/sdk/lib/utils/api/media-info-api";
import type { SxProps } from "@mui/material"; import type { SxProps } from "@mui/material";
import type { AxiosResponse } from "axios"; 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 = { type PlayButtonProps = {
item: BaseItemDto; item: BaseItemDto;
@@ -83,53 +81,9 @@ const PlayButton = ({
playlistItemId = "", playlistItemId = "",
trackIndex, trackIndex,
}: PlayButtonProps) => { }: PlayButtonProps) => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const navigate = useNavigate(); 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( const setPlaybackDataLoading = usePlaybackDataLoadStore(
(state) => state.setisPending, (state) => state.setisPending,
); );
@@ -142,39 +96,71 @@ const PlayButton = ({
setPlaybackDataLoading(true); setPlaybackDataLoading(true);
let result: undefined | AxiosResponse<BaseItemDtoQueryResult, any>; let result: undefined | AxiosResponse<BaseItemDtoQueryResult, any>;
let mediaSource: undefined | AxiosResponse<PlaybackInfoResponse, any>; let mediaSource: undefined | AxiosResponse<PlaybackInfoResponse, any>;
let introInfo: undefined | AxiosResponse<IntroMediaInfo, any>;
const indexNumber = item.IndexNumber ? item.IndexNumber - 1 : 0;
if (playlistItem) { if (playlistItem) {
result = await getPlaylistsApi(api).getPlaylistItems({ result = await getPlaylistsApi(api).getPlaylistItems({
userId: userId, userId: userId,
playlistId: playlistItemId, playlistId: playlistItemId,
}); });
} else { } else {
console.log(itemType);
switch (itemType) { switch (itemType) {
case BaseItemKind.Episode: case BaseItemKind.Episode:
result = await getTvShowsApi(api).getEpisodes({ result = await getTvShowsApi(api).getEpisodes({
seriesId: item.SeriesId, seriesId: item.SeriesId,
fields: [ItemFields.MediaSources, ItemFields.MediaStreams], fields: [
ItemFields.MediaSources,
ItemFields.MediaStreams,
ItemFields.Overview,
ItemFields.Chapters,
ItemFields.Trickplay,
],
enableUserData: true, enableUserData: true,
userId: userId, userId: userId,
seasonId: item.SeasonId,
startItemId: item.Id, startItemId: item.Id,
}); });
mediaSource = await getMediaInfoApi(api).getPostedPlaybackInfo({ mediaSource = await getMediaInfoApi(api).getPostedPlaybackInfo({
audioStreamIndex: currentAudioTrack, audioStreamIndex: currentAudioTrack,
subtitleStreamIndex: subtitleStreamIndex:
currentSubTrack === "nosub" ? -1 : currentSubTrack, currentSubTrack === "nosub" ? -1 : currentSubTrack,
itemId: result.data.Items[0].Id, itemId: result.data.Items?.[indexNumber].Id,
startTimeTicks: startTimeTicks:
result.data.Items[0].UserData?.PlaybackPositionTicks, result.data.Items?.[indexNumber].UserData
?.PlaybackPositionTicks,
userId: userId, userId: userId,
mediaSourceId: result.data.Items[0].MediaSources[0].Id, mediaSourceId:
result.data.Items?.[indexNumber].MediaSources?.[0].Id,
playbackInfoDto: { playbackInfoDto: {
DeviceProfile: playbackProfile, DeviceProfile: playbackProfile,
}, },
}); });
try {
introInfo = (
await axiosClient.get(
`${api.basePath}/Episode/${result.data.Items?.[0]?.Id}/IntroSkipperSegments`,
{
headers: {
Authorization: `MediaBrowser Token=${api.accessToken}`,
},
},
)
)?.data;
} catch (error) {
console.error(error);
}
break; break;
case BaseItemKind.Series: case BaseItemKind.Series:
result = await getTvShowsApi(api).getEpisodes({ result = await getTvShowsApi(api).getEpisodes({
seriesId: itemId, seriesId: itemId,
fields: [ItemFields.MediaSources, ItemFields.MediaStreams], fields: [
ItemFields.MediaSources,
ItemFields.MediaStreams,
ItemFields.Overview,
ItemFields.Chapters,
ItemFields.Trickplay,
],
enableUserData: true, enableUserData: true,
userId: userId, userId: userId,
}); });
@@ -182,15 +168,29 @@ const PlayButton = ({
audioStreamIndex: currentAudioTrack, audioStreamIndex: currentAudioTrack,
subtitleStreamIndex: subtitleStreamIndex:
currentSubTrack === "nosub" ? -1 : currentSubTrack, currentSubTrack === "nosub" ? -1 : currentSubTrack,
itemId: result.data.Items[0].Id, itemId: result.data.Items?.[0].Id,
startTimeTicks: startTimeTicks:
result.data.Items[0].UserData?.PlaybackPositionTicks, result.data.Items?.[0].UserData?.PlaybackPositionTicks,
userId: userId, userId: userId,
mediaSourceId: result.data.Items[0].MediaSources[0].Id, mediaSourceId: result.data.Items?.[0].MediaSources?.[0].Id,
playbackInfoDto: { playbackInfoDto: {
DeviceProfile: playbackProfile, DeviceProfile: playbackProfile,
}, },
}); });
try {
introInfo = (
await axiosClient.get(
`${api.basePath}/Episode/${result.data.Items?.[0]?.Id}/IntroSkipperSegments`,
{
headers: {
Authorization: `MediaBrowser Token=${api.accessToken}`,
},
},
)
)?.data;
} catch (error) {
console.error(error);
}
break; break;
case BaseItemKind.Playlist: case BaseItemKind.Playlist:
result = await getPlaylistsApi(api).getPlaylistItems({ result = await getPlaylistsApi(api).getPlaylistItems({
@@ -222,7 +222,12 @@ const PlayButton = ({
result = await getItemsApi(api).getItems({ result = await getItemsApi(api).getItems({
parentId: itemId, parentId: itemId,
userId, userId,
fields: [ItemFields.MediaSources, ItemFields.MediaStreams], fields: [
ItemFields.MediaSources,
ItemFields.MediaStreams,
ItemFields.Chapters,
ItemFields.Trickplay,
],
sortOrder: [SortOrder.Ascending], sortOrder: [SortOrder.Ascending],
sortBy: ["IndexNumber"], sortBy: ["IndexNumber"],
}); });
@@ -231,7 +236,12 @@ const PlayButton = ({
result = await getItemsApi(api).getItems({ result = await getItemsApi(api).getItems({
ids: [itemId], ids: [itemId],
userId: userId, userId: userId,
fields: [ItemFields.MediaSources, ItemFields.MediaStreams], fields: [
ItemFields.MediaSources,
ItemFields.MediaStreams,
ItemFields.Chapters,
ItemFields.Trickplay,
],
sortOrder: [SortOrder.Ascending], sortOrder: [SortOrder.Ascending],
sortBy: ["IndexNumber"], sortBy: ["IndexNumber"],
}); });
@@ -241,9 +251,9 @@ const PlayButton = ({
currentSubTrack === "nosub" ? -1 : currentSubTrack, currentSubTrack === "nosub" ? -1 : currentSubTrack,
itemId: itemId, itemId: itemId,
startTimeTicks: startTimeTicks:
result.data.Items[0].UserData.PlaybackPositionTicks, result.data.Items?.[0].UserData?.PlaybackPositionTicks,
userId: userId, userId: userId,
mediaSourceId: result.data.Items[0].MediaSources[0].Id, mediaSourceId: result.data.Items?.[0].MediaSources?.[0].Id,
playbackInfoDto: { playbackInfoDto: {
DeviceProfile: playbackProfile, DeviceProfile: playbackProfile,
}, },
@@ -251,76 +261,60 @@ const PlayButton = ({
break; break;
} }
} }
return { item: result?.data, mediaSource: mediaSource?.data }; return { item: result?.data, mediaSource: mediaSource?.data, introInfo };
}, },
onSuccess: (result: PlayResult | null) => { onSuccess: (result: PlayResult | null) => {
if (trackIndex) { if (trackIndex) {
setPlaylistItemId(playlistItemId); // Playlist Playback
// setCurrentTrack(trackIndex); enqueueSnackbar("Playlist playback is WIP", { variant: "info" });
// 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);
} else if (audio) { } else if (audio) {
setAudioItem(result.Items[0]); // Album/Individual audio track playback
setAudioTracks(result.Items); const urlOptions = {
setAudioUrl( deviceId: api?.deviceInfo.id,
`${api.basePath}/Audio/${result.Items[0].Id}/universal?deviceId=${api.deviceInfo.id}&userId=${userId}&api_key=${api.accessToken}`, userId,
); api_key: api?.accessToken,
setAudioDisplay(true); };
setQueue(result.Items, 0); 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 { } else {
const episodeIndex = item.IndexNumber ? item.IndexNumber - 1 : 0;
// Creates a queue containing all Episodes for a particular season(series) or collection of movies // Creates a queue containing all Episodes for a particular season(series) or collection of movies
const queue = result?.item.Items; const queue = result?.item.Items;
let itemName = item.Name; let itemName = item.Name;
let episodeTitle = ""; let episodeTitle = "";
if (result?.item.Items[0].SeriesId) { if (result?.item.Items?.[episodeIndex].SeriesId) {
itemName = result?.item.Items[0].SeriesName; itemName = result?.item.Items[episodeIndex].SeriesName;
episodeTitle = `S${result?.item.Items[0].ParentIndexNumber ?? 0}:E${ episodeTitle = `S${result?.item.Items[episodeIndex].ParentIndexNumber ?? 0}:E${
result?.item.Items[0].IndexNumber ?? 0 result?.item.Items[episodeIndex].IndexNumber ?? 0
} ${result?.item.Items[0].Name}`; } ${result?.item.Items[episodeIndex].Name}`;
} }
// Subtitle
// Select correct subtitle track, this is useful if item is played with playbutton from card since that does not provide coorect default subtitle track index. const subtitle = getSubtitle(
let selectedSubtitleTrack: number | "nosub" | undefined = currentSubTrack,
currentSubTrack; result?.mediaSource.MediaSources?.[0].MediaStreams,
const subtitles =
result?.mediaSource.MediaSources[0].MediaStreams?.filter(
(value) => value.Type === "Subtitle",
); );
let enableSubtitles = true; // URL generation
if (currentSubTrack === "nosub") {
enableSubtitles = false;
selectedSubtitleTrack = "nosub";
} else if (!currentSubTrack && subtitles?.length > 0) {
selectedSubtitleTrack = subtitles[0].Index;
} else {
enableSubtitles = false;
}
const urlOptions = { const urlOptions = {
Static: true, Static: true,
tag: result?.mediaSource.MediaSources[0].ETag, tag: result?.mediaSource.MediaSources?.[0].ETag,
mediaSourceId: result?.mediaSource.MediaSources[0].Id, mediaSourceId: result?.mediaSource.MediaSources?.[0].Id,
deviceId: api?.deviceInfo.id, deviceId: api?.deviceInfo.id,
api_key: api?.accessToken, api_key: api?.accessToken,
}; };
const urlParams = new URLSearchParams(urlOptions).toString(); const urlParams = new URLSearchParams(urlOptions).toString();
let playbackUrl = `${api?.basePath}/Videos/${result?.mediaSource.MediaSources[0].Id}/stream.${result?.mediaSource.MediaSources[0].Container}?${urlParams}`; let playbackUrl = `${api?.basePath}/Videos/${result?.mediaSource.MediaSources?.[0].Id}/stream.${result?.mediaSource.MediaSources?.[0].Container}?${urlParams}`;
if ( if (
result?.mediaSource.MediaSources[0].SupportsTranscoding && result?.mediaSource.MediaSources?.[0].SupportsTranscoding &&
result?.mediaSource.MediaSources[0].TranscodingUrl result?.mediaSource.MediaSources?.[0].TranscodingUrl
) { ) {
playbackUrl = `${api.basePath}${result.mediaSource.MediaSources[0].TranscodingUrl}`; playbackUrl = `${api.basePath}${result.mediaSource.MediaSources[0].TranscodingUrl}`;
} else if (result?.mediaSource.MediaSources[0].hlsStream) { }
playbackUrl = result.mediaSource.MediaSources[0].hlsStream; let playItemValue = item;
if (itemType === BaseItemKind.Movie) {
playItemValue = result?.item.Items?.[0];
} }
playItem( playItem(
@@ -328,21 +322,20 @@ const PlayButton = ({
episodeTitle, episodeTitle,
currentVideoTrack, currentVideoTrack,
currentAudioTrack, currentAudioTrack,
selectedSubtitleTrack, result?.mediaSource?.MediaSources?.[0].Container ?? "mkv",
result?.mediaSource?.MediaSources[0].Container ?? "mkv",
enableSubtitles,
playbackUrl, playbackUrl,
userId, userId,
item.UserData?.PlaybackPositionTicks, item.UserData?.PlaybackPositionTicks,
item.RunTimeTicks, item.RunTimeTicks,
item, playItemValue,
queue, queue,
0, episodeIndex,
subtitles, result?.mediaSource.MediaSources?.[0]?.Id,
result?.mediaSource.MediaSources[0].Id,
result?.mediaSource.PlaySessionId, result?.mediaSource.PlaySessionId,
subtitle,
result?.introInfo,
); );
navigate("/player"); navigate({ to: "/player" });
} }
}, },
onSettled: () => { onSettled: () => {
@@ -412,7 +405,7 @@ const PlayButton = ({
color="white" color="white"
size={size} size={size}
> >
{itemUserData.PlaybackPositionTicks > 0 {itemUserData?.PlaybackPositionTicks
? "Continue Watching" ? "Continue Watching"
: item?.Type === "MusicAlbum" || : item?.Type === "MusicAlbum" ||
item?.Type === "Audio" || item?.Type === "Audio" ||
@@ -424,8 +417,8 @@ const PlayButton = ({
<LinearProgress <LinearProgress
variant="determinate" variant="determinate"
value={ value={
100 > itemUserData.PlayedPercentage > 0 100 > itemUserData?.PlayedPercentage > 0
? itemUserData.PlayedPercentage ? itemUserData?.PlayedPercentage
: 0 : 0
} }
sx={{ sx={{
@@ -443,7 +436,7 @@ const PlayButton = ({
color="white" color="white"
/> />
</Button> </Button>
{itemUserData.PlaybackPositionTicks > 0 && ( {itemUserData?.PlaybackPositionTicks > 0 && (
<Typography <Typography
sx={{ sx={{
opacity: 0.8, opacity: 0.8,
@@ -465,18 +458,3 @@ const PlayButton = ({
}; };
export default PlayButton; export default PlayButton;
PlayButton.propTypes = {
itemId: PropTypes.string,
itemUserData: PropTypes.object,
userId: PropTypes.string,
itemType: PropTypes.string,
currentAudioTrack: PropTypes.number,
currentSubTrack: PropTypes.number,
currentVideoTrack: PropTypes.number,
className: PropTypes.string,
sx: PropTypes.any,
iconProps: PropTypes.any,
buttonProps: PropTypes.any,
iconOnly: PropTypes.bool,
};
+7 -5
View File
@@ -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 { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { IconButton } from "@mui/material"; import { IconButton } from "@mui/material";
import { useMutation, useQuery } from "@tanstack/react-query"; import { useMutation, useQuery } from "@tanstack/react-query";
import { useNavigate, useRouteContext } from "@tanstack/react-router";
import React from "react"; 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 PlayNextButton = () => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const user = useQuery({ const user = useQuery({
queryKey: ["user"], queryKey: ["user"],
queryFn: async () => { queryFn: async () => {
@@ -15,9 +16,10 @@ const PlayNextButton = () => {
return result.data; return result.data;
}, },
}); });
const navigate = useNavigate();
const handlePlayNext = useMutation({ const handlePlayNext = useMutation({
mutationKey: ["playNextButton"], mutationKey: ["playNextButton"],
mutationFn: () => playItemFromQueue("next", user.data?.Id), mutationFn: () => playItemFromQueue("next", user.data?.Id, api),
onError: (error) => [console.error(error)], onError: (error) => [console.error(error)],
}); });
const [queueItems, currentItemIndex] = useQueue((state) => [ const [queueItems, currentItemIndex] = useQueue((state) => [
@@ -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 { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { IconButton } from "@mui/material"; import { IconButton } from "@mui/material";
import { useMutation, useQuery } from "@tanstack/react-query"; import { useMutation, useQuery } from "@tanstack/react-query";
import { useRouteContext } from "@tanstack/react-router";
import React from "react"; 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 PlayPreviousButton = () => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const user = useQuery({ const user = useQuery({
queryKey: ["user"], queryKey: ["user"],
queryFn: async () => { queryFn: async () => {
@@ -17,7 +18,7 @@ const PlayPreviousButton = () => {
}); });
const handlePlayNext = useMutation({ const handlePlayNext = useMutation({
mutationKey: ["playPreviousButton"], mutationKey: ["playPreviousButton"],
mutationFn: () => playItemFromQueue("previous", user.data?.Id), mutationFn: () => playItemFromQueue("previous", user.data?.Id, api),
onError: (error) => [console.error(error)], onError: (error) => [console.error(error)],
}); });
const [queueItems, currentItemIndex] = useQueue((state) => [ const [queueItems, currentItemIndex] = useQueue((state) => [
+17 -5
View File
@@ -7,25 +7,37 @@ $image-size: 5em;
display: grid !important; display: grid !important;
opacity: 1 !important; opacity: 1 !important;
gap: 1em; gap: 1em;
height: 5em;
grid-template-columns: 3em $image-size 1fr; grid-template-columns: 3em $image-size 1fr;
justify-items: center; justify-items: center;
align-items: center; align-items: center;
&-image{ &-image{
max-height: $image-size; max-height: 100%;
max-width: $image-size; max-width: 100%;
object-fit: cover; object-fit: cover;
border-radius: $border-radius_04; border-radius: $border-radius_04;
overflow: hidden; overflow: hidden;
&-container { &-container {
aspect-ratio: 1; aspect-ratio: 1;
overflow: hidden; overflow: hidden;
width: $image-size; height: 100%;
height: $image-size;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
position: relative; 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{ &-info{
display: flex; display: flex;
@@ -35,7 +47,7 @@ $image-size: 5em;
} }
} }
&-item.Mui-disabled { &-item.Mui-disabled {
.queue-item-image{ .queue-item-image,.queue-item-image-icon{
opacity: 0.5 !important; opacity: 0.5 !important;
} }
} }
+20 -28
View File
@@ -1,3 +1,5 @@
import { playItemFromQueue } from "@/utils/store/playback";
import useQueue from "@/utils/store/queue";
import { import {
IconButton, IconButton,
Menu, Menu,
@@ -5,18 +7,16 @@ import {
MenuList, MenuList,
Typography, Typography,
} from "@mui/material"; } from "@mui/material";
import React, { useRef, useState } from "react"; import React, { 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 { getTypeIcon } from "../utils/iconsCollection"; import { getTypeIcon } from "../utils/iconsCollection";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api"; import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { useMutation, useQuery } from "@tanstack/react-query"; import { useMutation, useQuery } from "@tanstack/react-query";
import { useVirtualizer } from "@tanstack/react-virtual";
import "./queueButton.scss"; import "./queueButton.scss";
import { useApiInContext } from "@/utils/store/api";
import { useRouteContext } from "@tanstack/react-router";
const QueueButton = () => { const QueueButton = () => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const [queueItems, currentItemIndex] = useQueue((state) => [ const [queueItems, currentItemIndex] = useQueue((state) => [
state.tracks, state.tracks,
state.currentItemIndex, 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 ( return (
<> <>
<Menu <Menu
@@ -69,7 +61,6 @@ const QueueButton = () => {
}} }}
slotProps={{ slotProps={{
paper: { paper: {
ref: menuRef,
style: { style: {
maxHeight: "30em", maxHeight: "30em",
overflowX: "hidden", overflowX: "hidden",
@@ -80,30 +71,23 @@ const QueueButton = () => {
> >
<MenuList <MenuList
style={{ style={{
height: `${virtualizer.getTotalSize()}px`, height: "fit-content",
width: " 32em", width: " 32em",
position: "relative", position: "relative",
}} }}
> >
{virtualizer.getVirtualItems().map((virtualItem) => { {queueItems.map((item, index) => {
const index = virtualItem.index;
const item = queueItems[index];
return ( return (
<MenuItem <MenuItem
className="queue-item" className="queue-item"
disabled={index === currentItemIndex} disabled={index === currentItemIndex}
onClick={() => handlePlay.mutate({ index })} onClick={() => handlePlay.mutate({ index })}
key={virtualItem.key} key={item.Id}
style={{
position: "absolute",
top: 0,
left: 0,
height: `${virtualItem.size}px`,
transform: `translateY(${virtualItem.start}px)`,
}}
> >
<Typography variant="subtitle2"> <Typography variant="subtitle2">
{item.IndexNumberEnd {item.Type === "Audio"
? index + 1
: item.IndexNumberEnd
? `S${item.ParentIndexNumber}:E${item.IndexNumber} / ${item.IndexNumberEnd}` ? `S${item.ParentIndexNumber}:E${item.IndexNumber} / ${item.IndexNumberEnd}`
: `S${item.ParentIndexNumber}:E${item.IndexNumber}`} : `S${item.ParentIndexNumber}:E${item.IndexNumber}`}
</Typography> </Typography>
@@ -116,6 +100,14 @@ const QueueButton = () => {
})} })}
alt={item.Name} 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"> <div className="queue-item-image-icon">
{getTypeIcon(item.Type)} {getTypeIcon(item.Type)}
@@ -0,0 +1,205 @@
import { saveUser } from "@/utils/storage/user";
import { useApiInContext } from "@/utils/store/api";
import { getQuickConnectApi } from "@jellyfin/sdk/lib/utils/api/quick-connect-api";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { LoadingButton } from "@mui/lab";
import {
Button,
Checkbox,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
FormControlLabel,
Tooltip,
Typography,
} from "@mui/material";
import { useMutation, useQuery } from "@tanstack/react-query";
import { useNavigate } from "@tanstack/react-router";
import type { Timeout } from "@tanstack/react-router/dist/esm/utils";
import { writeText } from "@tauri-apps/plugin-clipboard-manager";
import { useSnackbar } from "notistack";
import React, { useState } from "react";
const QuickConnectButton = () => {
const api = useApiInContext((s) => s.api);
const createApi = useApiInContext((s) => s.createApi);
const headers = {
"X-Emby-Authorization": `MediaBrowser Client="${api.clientInfo.name}", Device="${api.deviceInfo.name}", DeviceId="${api.deviceInfo.id}", Version="${api.clientInfo.version}"`,
};
const [quickConnectStatusInterval, setQuickConnectStatusInterval] =
useState<Timeout | null>(null);
const quickConnectEnabled = useQuery({
queryKey: ["quick-connect-button", "check-quick-connect-enabled"],
queryFn: async () => await getQuickConnectApi(api).getQuickConnectEnabled(),
});
const navigate = useNavigate();
const { enqueueSnackbar } = useSnackbar();
const [quickConnectCode, setQuickConnectCode] = useState<string | null>();
const [rememberUser, setRememberUser] = useState(true);
const checkQuickConnectStatus = useMutation({
mutationKey: ["quick-connect-button", "check-quick-connect-status"],
mutationFn: async (secret: string) =>
(
await getQuickConnectApi(api).getQuickConnectState(
{ secret },
{ headers },
)
).data,
});
const initQuickConnect = useMutation({
mutationKey: ["quick-connect-button", "initiate-connection"],
mutationFn: async () => {
if (!quickConnectEnabled.data?.data) {
enqueueSnackbar("Quick Connect is not enabled on server.", {
variant: "error",
});
}
return await getQuickConnectApi(api).initiateQuickConnect({ headers });
},
onSuccess: (result) => {
setQuickConnectCode(result.data.Code);
const authAwaitInterval = setInterval(async () => {
// Check if user has been authenticated by the server
const quickConnectCheck = await checkQuickConnectStatus.mutateAsync(
result.data.Secret,
);
if (quickConnectCheck.Authenticated) {
const userAuth = await getUserApi(api).authenticateWithQuickConnect({
quickConnectDto: {
Secret: quickConnectCheck.Secret,
},
});
enqueueSnackbar(`Logged in as ${userAuth.data.User?.Name}!`, {
variant: "success",
});
sessionStorage.setItem("accessToken", userAuth.data.AccessToken);
createApi(api.basePath, userAuth.data.AccessToken);
if (rememberUser) {
await saveUser(userAuth.data.User?.Name, userAuth.data.AccessToken);
}
clearInterval(authAwaitInterval);
navigate({ to: "/home" });
}
}, 1000);
setQuickConnectStatusInterval(authAwaitInterval);
},
onError: (error) => {
enqueueSnackbar("Error initiating Quick Connect.", { variant: "error" });
console.error(error);
},
});
return (
<>
<LoadingButton
disabled={
quickConnectEnabled.isPending ||
Boolean(!quickConnectEnabled.data?.data)
}
loading={
initQuickConnect.isPending ||
checkQuickConnectStatus.isPending ||
(quickConnectCode && !checkQuickConnectStatus.data?.Authenticated)
}
variant="contained"
size="large"
style={{ flex: 1 }}
onClick={initQuickConnect.mutate}
>
Quick Connect
</LoadingButton>
<Dialog
open={Boolean(quickConnectCode)}
onClose={() => {
setQuickConnectCode(null);
clearInterval(quickConnectStatusInterval);
}}
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={async (e) => {
await 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={rememberUser}
onChange={(e) => setRememberUser(e.target.checked)}
/>
}
label="Remember device"
/>
<Button
variant="contained"
onClick={() => {
setQuickConnectCode(null);
}}
>
Close
</Button>
</DialogActions>
</Dialog>
</>
);
};
export default QuickConnectButton;
+1 -1
View File
@@ -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 { Dialog, IconButton } from "@mui/material";
import React, { useState } from "react"; import React, { useState } from "react";
import ReactPlayer from "react-player"; import ReactPlayer from "react-player";
+46 -58
View File
@@ -1,9 +1,9 @@
/** @format */ /** @format */
import React from "react"; import React, { memo } from "react";
import { Component, useState } 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 LinearProgress from "@mui/material/LinearProgress";
import Typography from "@mui/material/Typography"; import Typography from "@mui/material/Typography";
@@ -11,14 +11,15 @@ import Typography from "@mui/material/Typography";
import { import {
type BaseItemDto, type BaseItemDto,
BaseItemKind, BaseItemKind,
type ImageType,
} from "@jellyfin/sdk/lib/generated-client"; } from "@jellyfin/sdk/lib/generated-client";
import { useApi } from "../../utils/store/api";
import LikeButton from "../buttons/likeButton"; import LikeButton from "../buttons/likeButton";
import MarkPlayedButton from "../buttons/markPlayedButton"; import MarkPlayedButton from "../buttons/markPlayedButton";
import PlayButton from "../buttons/playButton"; import PlayButton from "../buttons/playButton";
import ErrorBoundary from "../errorBoundary"; import ErrorBoundary from "../errorBoundary";
import { getTypeIcon } from "../utils/iconsCollection"; import { getTypeIcon } from "../utils/iconsCollection";
import "./card.scss"; import "./card.scss";
import { useApiInContext } from "@/utils/store/api";
const cardImageAspectRatios = { const cardImageAspectRatios = {
thumb: 1.777, thumb: 1.777,
@@ -34,7 +35,7 @@ const availableSpecialRoutes = [
BaseItemKind.Playlist, BaseItemKind.Playlist,
]; ];
export const Card = ({ const CardComponent = ({
item, item,
cardTitle, cardTitle,
cardCaption, cardCaption,
@@ -49,38 +50,51 @@ export const Card = ({
overrideIcon, overrideIcon,
}: { }: {
item: BaseItemDto; item: BaseItemDto;
cardTitle: string | null; cardTitle: string | undefined | null;
cardCaption: string | null; cardCaption?: string | null | number;
imageType: string; imageType: ImageType;
cardType: string; cardType: string;
queryKey: []; queryKey?: string[];
userId: string; userId?: string;
seriesId: string | null; seriesId?: string | null;
hideText: boolean; hideText?: boolean;
onClick: Function | null; onClick?: () => void;
disableOverlay: boolean; disableOverlay?: boolean;
overrideIcon: any; overrideIcon?: any;
}) => { }) => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const navigate = useNavigate(); const navigate = useNavigate();
const defaultOnClick = () => { const defaultOnClick = () => {
if (availableSpecialRoutes.includes(item.Type)) { switch (item.Type) {
navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`); case BaseItemKind.BoxSet:
} else if (!!item.Role || item.Type === BaseItemKind.Person) { navigate({ to: "/boxset/$id", params: { id: item.Id } });
navigate(`/person/${item.Id}`); break;
} else if (item.Type === BaseItemKind.MusicArtist) { case BaseItemKind.Episode:
navigate(`/artist/${item.Id}`); navigate({ to: "/episode/$id", params: { id: item.Id } });
} else { break;
navigate(`/item/${item.Id}`); 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;
} }
}; };
return ( return (
<div <div className="card" onClick={onClick ? onClick : defaultOnClick}>
className="card"
elevation={0}
onClick={onClick ? onClick : defaultOnClick}
>
<div className={`card-image-container ${cardType}`}> <div className={`card-image-container ${cardType}`}>
<ErrorBoundary fallback> <ErrorBoundary fallback>
<div <div
@@ -106,21 +120,11 @@ export const Card = ({
</Typography> </Typography>
</div> </div>
</ErrorBoundary> </ErrorBoundary>
{/* {!!imageBlurhash && (
<Blurhash
hash={imageBlurhash}
width={128}
height={128}
resolutionX={24}
resolutionY={24}
className="card-image-blurhash"
/>
)} */}
<div className="card-image-icon-container"> <div className="card-image-icon-container">
{overrideIcon ? getTypeIcon(overrideIcon) : getTypeIcon(item.Type)} {overrideIcon ? getTypeIcon(overrideIcon) : getTypeIcon(item.Type)}
</div> </div>
<img <img
alt={item.Name} alt={item.Name ?? "blink"}
src={ src={
overrideIcon === "User" overrideIcon === "User"
? `${api.basePath}/Users/${item.Id}/Images/Primary` ? `${api.basePath}/Users/${item.Id}/Images/Primary`
@@ -154,7 +158,7 @@ export const Card = ({
userId={userId} userId={userId}
itemType={item.Type} itemType={item.Type}
currentAudioTrack={0} currentAudioTrack={0}
currentSubTrack={0} currentSubTrack="nosub"
currentVideoTrack={0} currentVideoTrack={0}
className="card-play-button" className="card-play-button"
iconProps={{ iconProps={{
@@ -197,24 +201,6 @@ export const Card = ({
/> />
</div> </div>
)} )}
{/*
{item.UserData?.PlaybackPositionTicks > 0 && (
<LinearProgress
variant="determinate"
value={item.UserData?.PlayedPercentage}
style={{
position: "absolute",
left: 0,
right: 0,
bottom: 0,
zIndex: 2,
height: "6px",
background: "rgb(5 5 5 / 0.5) !important",
backdropFilter: "blur(5px)",
}}
color="primary"
/>
)} */}
</div> </div>
<div <div
className="card-text-container" className="card-text-container"
@@ -235,3 +221,5 @@ export const Card = ({
</div> </div>
); );
}; };
export const Card = memo(CardComponent);
+5 -5
View File
@@ -1,5 +1,4 @@
import React from "react"; import React from "react";
import { useNavigate } from "react-router-dom";
import MuiCard from "@mui/material/Card"; import MuiCard from "@mui/material/Card";
import CardActionArea from "@mui/material/CardActionArea"; import CardActionArea from "@mui/material/CardActionArea";
@@ -10,8 +9,9 @@ import { Blurhash } from "react-blurhash";
import "./card.scss"; import "./card.scss";
import { getRuntimeCompact } from "../../utils/date/time"; import { getRuntimeCompact } from "@/utils/date/time";
import { useApi } from "../../utils/store/api"; import { useApiInContext } from "@/utils/store/api";
import { useNavigate, useRouteContext } from "@tanstack/react-router";
import LikeButton from "../buttons/likeButton"; import LikeButton from "../buttons/likeButton";
import MarkPlayedButton from "../buttons/markPlayedButton"; import MarkPlayedButton from "../buttons/markPlayedButton";
import PlayButton from "../buttons/playButton"; import PlayButton from "../buttons/playButton";
@@ -44,10 +44,10 @@ export const EpisodeCard = ({
disableRunTime = false, disableRunTime = false,
onClick, onClick,
}) => { }) => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const navigate = useNavigate(); const navigate = useNavigate();
const defaultOnClick = () => { const defaultOnClick = () => {
navigate(`/episode/${item.Id}`); navigate({ to: `/episode/${item.Id}` });
}; };
return ( return (
<div <div
+45 -18
View File
@@ -1,45 +1,72 @@
.carousel { .carousel {
position: relative; position: relative;
height: 70vh; height: 64vh;
width: calc(100% + 2*$page-margin);
left: -$page-margin;
margin-bottom: 3.2em; margin-bottom: 3.2em;
.slider {
position: absolute;
bottom: 0;
max-width: 35%;
right: $page-margin;
}
&-button { &-button {
position: absolute !important; position: absolute !important;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
z-index: 100; z-index: 100;
&.right { &.right {
left: calc(100% + 0.5em); right: 0.5em;
} }
&.left { &.left {
right: calc(100% + 0.5em); left: 0.5em;
} }
} }
&-indicator { &-indicator {
height: 3px; aspect-ratio: 1.77777;
width: 100%; overflow: hidden;
border-radius: 10px; border-radius: 2px;
transition: background $transition-time-fast, padding: 2px;
height $transition-time-fast; transition: opacity $transition-time-fast;
background: rgb(255 255 255 / 0.5); opacity: 0.5;
width: auto;
&:hover { &:hover {
cursor: pointer; cursor: pointer;
height: 6px; opacity: 0.8;
background: rgb(255 255 255 / 0.8) !important;
} }
&-container { &-container {
display: flex; display: flex;
position: absolute;
bottom: -1.5em;
left: 10px;
right: 10px;
gap: 1em; gap: 1em;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
&-image {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 4px;
}
&-icon {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background: rgb(155 155 155 / 0.4);
border-radius: 4px;
}
&.active { &.active {
height: 6px; opacity: 1;
background: white !important;
.material-symbols-rounded {
--fill: 1;
}
} }
} }
} }
@@ -5,46 +5,60 @@ import IconButton from "@mui/material/IconButton";
import { useCarouselStore } from "../../utils/store/carousel"; import { useCarouselStore } from "../../utils/store/carousel";
import "./carousel.scss"; import "./carousel.scss";
import { useApiInContext } from "@/utils/store/api";
import type { BaseItemDto } from "@jellyfin/sdk/lib/generated-client";
import CarouselSlide from "../carouselSlide";
import ReactMultiCarousel from "react-multi-carousel";
import Slider from "../Slider";
import { getTypeIcon } from "../utils/iconsCollection";
const swipeConfidenceThreshold = 8000; const swipeConfidenceThreshold = 8000;
const swipePower = (offset, velocity) => { const swipePower = (offset, velocity) => {
return Math.abs(offset) * velocity; return Math.abs(offset) * velocity;
}; };
const Carousel = ({ content, onChange }) => { const Carousel = ({
content,
onChange,
}: {
content: BaseItemDto[];
onChange: () => void;
}) => {
const [currentSlide, setCurrentSlide] = useState(0); const [currentSlide, setCurrentSlide] = useState(0);
const [setDirection, dir] = useCarouselStore((state) => [ const [setDirection, dir] = useCarouselStore((state) => [
state.setDirection, state.setDirection,
state.direction, state.direction,
]); ]);
// biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
useEffect(() => { useEffect(() => {
onChange(currentSlide); onChange(currentSlide);
}, [content[currentSlide]?.key]); }, [content[currentSlide]?.Id]);
const api = useApiInContext((s) => s.api);
const responsive = {
superLargeDesktop: {
// the naming can be any, depends on you.
breakpoint: { max: 4000, min: 3000 },
items: 6,
},
desktop: {
breakpoint: { max: 3000, min: 1024 },
items: 6,
},
tablet: {
breakpoint: { max: 1024, min: 464 },
items: 4,
},
mobile: {
breakpoint: { max: 464, min: 0 },
items: 1,
},
};
return ( return (
<div className="carousel"> <div className="carousel">
<IconButton
className="carousel-button left"
onClick={() => {
if (currentSlide === 0) {
setDirection("left");
setCurrentSlide(content.length - 1);
}
if (currentSlide > 0) {
setDirection("left");
setCurrentSlide((init) => init - 1);
}
}}
sx={{
background: " rgb(200 200 200 / 0.05)",
}}
// disabled={currentSlide == 0}
>
<div className="material-symbols-rounded">arrow_left</div>
</IconButton>
<AnimatePresence mode="sync"> <AnimatePresence mode="sync">
<motion.div <motion.div
key={currentSlide} key={currentSlide}
@@ -77,35 +91,31 @@ const Carousel = ({ content, onChange }) => {
position: "absolute", position: "absolute",
}} }}
> >
{content[currentSlide]} <CarouselSlide
item={content[currentSlide]}
key={content[currentSlide].Id}
/>
</motion.div> </motion.div>
</AnimatePresence> </AnimatePresence>
<IconButton <Slider
className="carousel-button right" currentSlide={currentSlide}
onClick={() => { content={content.map((item, index) => (
if (currentSlide === content.length - 1) { <motion.div
setDirection("right");
setCurrentSlide(0);
} else if (currentSlide < content.length - 1) {
setDirection("right");
setCurrentSlide((init) => init + 1);
}
}}
// disabled={currentSlide == content.length - 1}
sx={{
background: " rgb(200 200 200 / 0.05)",
}}
>
<div className="material-symbols-rounded">arrow_right</div>
</IconButton>
<div className="carousel-indicator-container">
{content.map((item, index) => (
<div
className={ className={
currentSlide === index currentSlide === index
? "carousel-indicator active" ? "carousel-indicator active"
: "carousel-indicator" : "carousel-indicator"
} }
layout
initial={{
height: "4.6em",
}}
whileHover={{
height: "5.5em",
}}
transition={{
duration: 0.05,
}}
key={item.Id} key={item.Id}
onClick={() => { onClick={() => {
if (currentSlide > index) { if (currentSlide > index) {
@@ -115,9 +125,24 @@ const Carousel = ({ content, onChange }) => {
} }
setCurrentSlide(index); setCurrentSlide(index);
}} }}
>
{item.ImageTags?.Thumb ? (
<img
src={api.getItemImageUrl(item.Id, "Thumb", {
tag: item.ImageTags.Primary,
fillWidth: 300,
})}
alt={item.Name ?? "item-image"}
className="carousel-indicator-image"
/> />
))} ) : (
<div className="carousel-indicator-icon">
{getTypeIcon(item.Type)}
</div> </div>
)}
</motion.div>
))}
/>
</div> </div>
); );
}; };
@@ -11,16 +11,19 @@ import Typography from "@mui/material/Typography";
import { yellow } from "@mui/material/colors"; import { yellow } from "@mui/material/colors";
import { endsAt, getRuntime } from "@/utils/date/time";
import { green, red } from "@mui/material/colors"; import { green, red } from "@mui/material/colors";
import { useQuery } from "@tanstack/react-query"; import { useQuery } from "@tanstack/react-query";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "@tanstack/react-router";
import { endsAt, getRuntime } from "../../utils/date/time";
import { getTypeIcon } from "../utils/iconsCollection"; import { getTypeIcon } from "../utils/iconsCollection";
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client"; import { useApiInContext } from "@/utils/store/api";
import { useCarouselStore } from "@/utils/store/carousel";
import {
type BaseItemDto,
BaseItemKind,
} from "@jellyfin/sdk/lib/generated-client";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api"; import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { useApi } from "../../utils/store/api";
import { useCarouselStore } from "../../utils/store/carousel";
import LikeButton from "../buttons/likeButton"; import LikeButton from "../buttons/likeButton";
import MarkPlayedButton from "../buttons/markPlayedButton"; import MarkPlayedButton from "../buttons/markPlayedButton";
import PlayButton from "../buttons/playButton"; import PlayButton from "../buttons/playButton";
@@ -41,8 +44,8 @@ const availableSpecialRoutes = [
* @param {Props} * @param {Props}
* @returns {React.Component} * @returns {React.Component}
*/ */
const CarouselSlide = ({ item }) => { const CarouselSlide = ({ item }: { item: BaseItemDto }) => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const navigate = useNavigate(); const navigate = useNavigate();
const user = useQuery({ const user = useQuery({
@@ -55,16 +58,31 @@ const CarouselSlide = ({ item }) => {
}); });
const handleMoreInfo = () => { const handleMoreInfo = () => {
if (availableSpecialRoutes.includes(item.Type)) { switch (item.Type) {
navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`); case BaseItemKind.BoxSet:
} else if (!!item.Role || item.Type === BaseItemKind.Person) { navigate({ to: "/boxset/$id", params: { id: item.Id } });
navigate(`/person/${item.Id}`); break;
} else if (item.Type === BaseItemKind.MusicArtist) { case BaseItemKind.Episode:
navigate(`/artist/${item.Id}`); navigate({ to: "/episode/$id", params: { id: item.Id } });
} else if (item.Type === BaseItemKind.Episode) { break;
navigate(`/episode/${item.Id}`); case BaseItemKind.MusicAlbum:
} else { navigate({ to: "/album/$id", params: { id: item.Id } });
navigate(`/item/${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;
} }
}; };
@@ -75,29 +93,12 @@ const CarouselSlide = ({ item }) => {
className="hero-carousel-slide" className="hero-carousel-slide"
sx={{ sx={{
background: "transparent", background: "transparent",
px: 3, // px: 3,
}} }}
elevation={10} elevation={0}
> >
<div className="hero-carousel-background-container"> <div className="hero-carousel-background-container">
{!!item.ImageBlurHashes.Backdrop && ( {item.BackdropImageTags?.length ? (
<>
{Object.keys(item.ImageBlurHashes.Backdrop).length !== 0 && (
<Blurhash
hash={
item.ImageBlurHashes.Backdrop[
Object.keys(item.ImageBlurHashes.Backdrop)[0]
]
}
// hash="LEHV6nWB2yk8pyo0adR*.7kCMdnj"
width="256"
height="179.2"
resolutionX={64}
resolutionY={45}
className="hero-carousel-background-blurhash"
punch={1.4}
/>
)}
<img <img
alt={item.Name} alt={item.Name}
className="hero-carousel-background-image" className="hero-carousel-background-image"
@@ -114,11 +115,11 @@ const CarouselSlide = ({ item }) => {
}} }}
loading="eager" loading="eager"
/> />
</> ) : (
)}
<div className="hero-carousel-background-icon-container"> <div className="hero-carousel-background-icon-container">
{getTypeIcon(item.Type)} {getTypeIcon(item.Type)}
</div> </div>
)}
</div> </div>
<div className="hero-carousel-detail"> <div className="hero-carousel-detail">
<Typography <Typography
@@ -204,10 +205,14 @@ const CarouselSlide = ({ item }) => {
justifyItems="flex-start" justifyItems="flex-start"
alignItems="center" alignItems="center"
> >
<Typography style={{ opacity: "0.8" }} variant="subtitle1"> {item.PremiereDate && (
{item.ProductionYear ? item.ProductionYear : "Unknown"} <Typography style={{ opacity: "0.8" }} variant="subtitle2">
{item.ProductionYear ?? ""}
</Typography> </Typography>
<Chip variant="filled" label={item.OfficialRating ?? "Not Rated"} /> )}
{item.OfficialRating && (
<Chip variant="filled" size="small" label={item.OfficialRating} />
)}
{item.CommunityRating && ( {item.CommunityRating && (
<div <div
@@ -219,12 +224,10 @@ const CarouselSlide = ({ item }) => {
className="hero-carousel-info-rating" className="hero-carousel-info-rating"
> >
<div <div
className="material-symbols-rounded " className="material-symbols-rounded fill"
style={{ style={{
// fontSize: "2.2em", // fontSize: "2.2em",
color: yellow[400], color: yellow[400],
fontVariationSettings:
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
}} }}
> >
star star
@@ -233,13 +236,13 @@ const CarouselSlide = ({ item }) => {
style={{ style={{
opacity: "0.8", opacity: "0.8",
}} }}
variant="subtitle1" variant="subtitle2"
> >
{Math.round(item.CommunityRating * 10) / 10} {Math.round(item.CommunityRating * 10) / 10}
</Typography> </Typography>
</div> </div>
)} )}
{Boolean(item.CriticRating) && ( {item.CriticRating && (
<div <div
style={{ style={{
display: "flex", display: "flex",
@@ -249,11 +252,9 @@ const CarouselSlide = ({ item }) => {
className="hero-carousel-info-rating" className="hero-carousel-info-rating"
> >
<div <div
className="material-symbols-rounded " className="material-symbols-rounded fill"
style={{ style={{
color: item.CriticRating > 50 ? green[400] : red[400], color: item.CriticRating > 50 ? green[400] : red[400],
fontVariationSettings:
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
}} }}
> >
{item.CriticRating > 50 ? "thumb_up" : "thumb_down"} {item.CriticRating > 50 ? "thumb_up" : "thumb_down"}
@@ -262,23 +263,26 @@ const CarouselSlide = ({ item }) => {
style={{ style={{
opacity: "0.8", opacity: "0.8",
}} }}
variant="subtitle1" variant="subtitle2"
> >
{item.CriticRating} {item.CriticRating}
</Typography> </Typography>
</div> </div>
)} )}
{!!item.RunTimeTicks && ( {item.RunTimeTicks && (
<Typography style={{ opacity: "0.8" }} variant="subtitle1"> <Typography style={{ opacity: "0.8" }} variant="subtitle2">
{getRuntime(item.RunTimeTicks)} {getRuntime(item.RunTimeTicks)}
</Typography> </Typography>
)} )}
{!!item.RunTimeTicks && ( {item.RunTimeTicks && (
<Typography style={{ opacity: "0.8" }} variant="subtitle1"> <Typography style={{ opacity: "0.8" }} variant="subtitle2">
{endsAt(item.RunTimeTicks)} {endsAt(item.RunTimeTicks - item.UserData.PlaybackPositionTicks)}
</Typography> </Typography>
)} )}
<Typography variant="subtitle2" style={{ opacity: 0.8 }}>
{item.Genres?.slice(0, 4).join(" / ")}
</Typography>
</Stack> </Stack>
<Typography <Typography
component={motion.div} component={motion.div}
@@ -305,7 +309,6 @@ const CarouselSlide = ({ item }) => {
duration: 0.25, duration: 0.25,
ease: "easeInOut", ease: "easeInOut",
}} }}
variant="subtitle1"
className="hero-carousel-text" className="hero-carousel-text"
sx={{ sx={{
display: "-webkit-box", display: "-webkit-box",
@@ -316,6 +319,8 @@ const CarouselSlide = ({ item }) => {
WebkitLineClamp: "4", WebkitLineClamp: "4",
WebkitBoxOrient: "vertical", WebkitBoxOrient: "vertical",
}} }}
variant="subtitle2"
fontWeight={300}
> >
{item.Overview} {item.Overview}
</Typography> </Typography>
@@ -5,24 +5,23 @@ import Paper from "@mui/material/Paper";
import Stack from "@mui/material/Stack"; import Stack from "@mui/material/Stack";
import Typography from "@mui/material/Typography"; import Typography from "@mui/material/Typography";
import { Link } from "react-router-dom";
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api"; import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
import { useQuery } from "@tanstack/react-query"; import { useQuery } from "@tanstack/react-query";
import { getRuntimeMusic } from "../../../utils/date/time"; import { getRuntimeMusic } from "../../../utils/date/time";
import { SortOrder } from "@jellyfin/sdk/lib/generated-client"; import { SortOrder } from "@jellyfin/sdk/lib/generated-client";
import { useApi } from "../../../utils/store/api";
import { useAudioPlayback } from "../../../utils/store/audioPlayback"; import { useAudioPlayback } from "../../../utils/store/audioPlayback";
import LikeButton from "../../buttons/likeButton"; import LikeButton from "../../buttons/likeButton";
import PlayButton from "../../buttons/playButton"; import PlayButton from "../../buttons/playButton";
import TrackList from "../tracksList/index"; import TrackList from "../tracksList/index";
import "./albumArtist.scss"; import "./albumArtist.scss";
import { useApiInContext } from "@/utils/store/api";
import { Link, useRouteContext } from "@tanstack/react-router";
export const ArtistAlbum = ({ user, album, boxProps }) => { export const ArtistAlbum = ({ user, album, boxProps }) => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const albumTracks = useQuery({ const albumTracks = useQuery({
queryKey: ["artist", "album", album.Id], queryKey: ["artist", "album", album.Id],
queryFn: async () => { queryFn: async () => {
@@ -117,7 +116,7 @@ export const ArtistAlbum = ({ user, album, boxProps }) => {
</Typography> </Typography>
<MuiLink <MuiLink
component={Link} component={Link}
to={`/musicalbum/${album.Id}`} to="/album/$Id"
variant="h2" variant="h2"
color="inherit" color="inherit"
underline="hover" underline="hover"
@@ -4,16 +4,21 @@ import { Card } from "../../card/card";
import { CardScroller } from "../../cardScroller/cardScroller"; import { CardScroller } from "../../cardScroller/cardScroller";
import { CardsSkeleton } from "../../skeleton/cards"; import { CardsSkeleton } from "../../skeleton/cards";
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client"; import { useApiInContext } from "@/utils/store/api";
import {
type BaseItemDto,
BaseItemKind,
} from "@jellyfin/sdk/lib/generated-client";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api"; import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api"; import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
import { useApi } from "../../../utils/store/api";
/** /**
* @description Latest Media Section * @description Latest Media Section
*/ */
export const LatestMediaSection = ({ latestMediaLib }) => { export const LatestMediaSection = ({
const [api] = useApi((state) => [state.api]); latestMediaLib,
}: { latestMediaLib: BaseItemDto }) => {
const api = useApiInContext((s) => s.api);
const user = useQuery({ const user = useQuery({
queryKey: ["user"], queryKey: ["user"],
queryFn: async () => { queryFn: async () => {
@@ -22,27 +27,27 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
}, },
networkMode: "always", networkMode: "always",
}); });
const fetchLatestMedia = async (library) => { const fetchLatestMedia = async (library: BaseItemDto) => {
const media = await getUserLibraryApi(api).getLatestMedia({ const media = await getUserLibraryApi(api).getLatestMedia({
userId: user.data.Id, userId: user.data?.Id,
parentId: library, parentId: library.Id,
limit: 16, limit: 16,
fields: ["PrimaryImageAspectRatio"], fields: ["PrimaryImageAspectRatio"],
}); });
return media.data; return media.data;
}; };
const data = useQuery({ const data = useQuery({
queryKey: ["homeSection, latestMedia", latestMediaLib], queryKey: ["home", "latestMedia", latestMediaLib.Id],
queryFn: () => fetchLatestMedia(latestMediaLib[0]), queryFn: () => fetchLatestMedia(latestMediaLib),
enabled: !!user.data, enabled: !!user.data,
refetchOnMount: true refetchOnMount: true,
}); });
if (data.isPending) { if (data.isPending) {
return <CardsSkeleton />; return <CardsSkeleton />;
} }
if (data.isSuccess && data.data.length >= 1) { if (data.isSuccess && data.data.length >= 1) {
return ( return (
<CardScroller displayCards={7} title={`Latest ${latestMediaLib[1]}`}> <CardScroller displayCards={7} title={`Latest ${latestMediaLib.Name}`}>
{data.data.map((item) => { {data.data.map((item) => {
return ( return (
<Card <Card
@@ -55,7 +60,9 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
imageType={"Primary"} imageType={"Primary"}
cardCaption={ cardCaption={
item.Type === BaseItemKind.Episode 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.Type === BaseItemKind.Series
? `${item.ProductionYear} - ${ ? `${item.ProductionYear} - ${
item.EndDate item.EndDate
@@ -72,8 +79,8 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
? "square" ? "square"
: "portrait" : "portrait"
} }
queryKey={["homeSection, latestMedia", latestMediaLib]} queryKey={["home", "latestMedia", latestMediaLib.Id]}
userId={user.data.Id} userId={user.data?.Id}
imageBlurhash={ imageBlurhash={
!!item.ImageBlurHashes?.Primary && !!item.ImageBlurHashes?.Primary &&
item.ImageBlurHashes?.Primary[ item.ImageBlurHashes?.Primary[
-824
View File
@@ -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,
};
-70
View File
@@ -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;
}
}
@@ -1,14 +1,16 @@
import { useApiInContext } from "@/utils/store/api";
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client"; import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api"; import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
import Typography from "@mui/material/Typography"; import Typography from "@mui/material/Typography";
import { useQuery } from "@tanstack/react-query"; import { useQuery } from "@tanstack/react-query";
import { useRouteContext } from "@tanstack/react-router";
import React from "react"; import React from "react";
import { useApi } from "../../../../utils/store/api";
import { Card } from "../../../card/card"; import { Card } from "../../../card/card";
import { CardScroller } from "../../../cardScroller/cardScroller"; import { CardScroller } from "../../../cardScroller/cardScroller";
const GenreView = ({ libraryId, genreId, genreName, userId }) => { const GenreView = ({ libraryId, genreId, genreName, userId }) => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const items = useQuery({ const items = useQuery({
queryKey: ["library", "genreItem", genreId], queryKey: ["library", "genreItem", genreId],
queryFn: async () => { queryFn: async () => {
+6 -5
View File
@@ -5,17 +5,18 @@ import React from "react";
import type { BaseItemDto, UserDto } from "@jellyfin/sdk/lib/generated-client"; import type { BaseItemDto, UserDto } from "@jellyfin/sdk/lib/generated-client";
import { getRuntimeMusic } from "../../../utils/date/time"; import { getRuntimeMusic } from "../../../utils/date/time";
import { useApi } from "../../../utils/store/api";
import { useAudioPlayback } from "../../../utils/store/audioPlayback"; import { useAudioPlayback } from "../../../utils/store/audioPlayback";
import LikeButton from "../../buttons/likeButton"; import LikeButton from "../../buttons/likeButton";
import "./tracksList.scss"; import "./tracksList.scss";
import { useApiInContext } from "@/utils/store/api";
import { useRouteContext } from "@tanstack/react-router";
export default function TracksList({ export default function TracksList({
tracks, tracks,
user, user,
queryKey, queryKey,
}: { tracks: BaseItemDto[]; user: UserDto; queryKey: [] }) { }: { tracks: BaseItemDto[]; user: UserDto; queryKey: [] }) {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const [ const [
currentItem, currentItem,
@@ -58,11 +59,11 @@ export default function TracksList({
</div> </div>
{tracks.map((track, index) => ( {tracks.map((track, index) => (
<div <div
className={currentItem.Id === track.Id ? "track playing" : "track"} className={currentItem?.Id === track.Id ? "track playing" : "track"}
key={track.Id} key={track.Id}
onClick={() => playTrack(index)} onClick={() => playTrack(index)}
> >
{currentItem.Id === track.Id ? ( {currentItem?.Id === track.Id ? (
<span className="material-symbols-rounded ">equalizer</span> <span className="material-symbols-rounded ">equalizer</span>
) : ( ) : (
<Typography>{track.IndexNumber ?? "-"}</Typography> <Typography>{track.IndexNumber ?? "-"}</Typography>
@@ -81,7 +82,7 @@ export default function TracksList({
> >
{track.Name} {track.Name}
</Typography> </Typography>
<Typography>{getRuntimeMusic(track.RunTimeTicks)}</Typography> <Typography>{getRuntimeMusic(track?.RunTimeTicks)}</Typography>
</div> </div>
))} ))}
</div> </div>
@@ -1,12 +1,15 @@
import Typography from "@mui/material/Typography"; import Typography from "@mui/material/Typography";
import React from "react"; import React from "react";
import { getRuntimeMusic } from "../../utils/date/time"; import { getRuntimeMusic } from "../../utils/date/time";
import { useApi } from "../../utils/store/api";
import { useAudioPlayback } from "../../utils/store/audioPlayback"; import { useAudioPlayback } from "../../utils/store/audioPlayback";
import LikeButton from "../buttons/likeButton"; import LikeButton from "../buttons/likeButton";
import PlayButton from "../buttons/playButton"; import PlayButton from "../buttons/playButton";
import TextLink from "../textLink"; import TextLink from "../textLink";
import "./musicTrack.scss"; import "./musicTrack.scss";
import { useApiInContext } from "@/utils/store/api";
import type { BaseItemDto } from "@jellyfin/sdk/lib/generated-client";
import type { QueryKey } from "@tanstack/react-query";
import lyrics_icon from "../../assets/icons/lyrics.svg";
/** /**
* @typedef {Object} Props * @typedef {Object} Props
@@ -32,8 +35,16 @@ const MusicTrack = ({
playlistItemId, playlistItemId,
trackIndex, trackIndex,
className = "", className = "",
}: {
item: BaseItemDto;
queryKey: QueryKey;
userId: string | undefined;
playlistItem: boolean;
playlistItemId: string;
trackIndex: number;
className: string;
}) => { }) => {
const [api] = useApi((state) => [state.api]); const api = useApiInContext((s) => s.api);
const [currentTrackItem] = useAudioPlayback((state) => [state.item]); const [currentTrackItem] = useAudioPlayback((state) => [state.item]);
return ( return (
@@ -87,7 +98,7 @@ const MusicTrack = ({
variant="subtitle1" variant="subtitle1"
style={{ style={{
color: color:
item.Id === currentTrackItem.Id ? "hsl(337, 96%, 56%)" : "white", item.Id === currentTrackItem?.Id ? "hsl(337, 96%, 56%)" : "white",
}} }}
> >
{item.Name} {item.Name}
@@ -99,13 +110,24 @@ const MusicTrack = ({
opacity: 0.8, opacity: 0.8,
}} }}
> >
{item.ArtistItems.map((artist, index) => ( {item.HasLyrics && (
<img
src={lyrics_icon}
alt="Lyrics"
className="music-track-info-lyrics"
/>
)}
{item.ArtistItems?.map((artist, index) => (
<> <>
<TextLink <TextLink
key={index}
variant={"subtitle2"} variant={"subtitle2"}
location={`/artist/${artist.Id}`} location={`/artist/${artist.Id}`}
otherProps={{ otherProps={{
fontWeight: 400, fontWeight: 400,
style: {
textDecoration: "none",
},
}} }}
> >
{artist.Name} {artist.Name}
+5 -1
View File
@@ -6,6 +6,7 @@
align-items: center; align-items: center;
justify-items: center; justify-items: center;
width: 100%; width: 100%;
cursor: pointer;
&-icon { &-icon {
position: absolute; position: absolute;
top: 0; top: 0;
@@ -20,7 +21,7 @@
} }
&-image { &-image {
margin: 0.4em; margin: 0.4em;
border-radius: $border-radius-default; border-radius: $border-radius_04;
overflow: hidden; overflow: hidden;
aspect-ratio: 1; aspect-ratio: 1;
position: relative; position: relative;
@@ -43,6 +44,9 @@
} }
&-info { &-info {
justify-self: start; justify-self: start;
&-lyrics {
margin-right: 0.4em;
}
} }
&:hover { &:hover {
+4 -3
View File
@@ -1,6 +1,6 @@
import { LinearProgress } from "@mui/material"; import { LinearProgress } from "@mui/material";
import { useNProgress } from "@tanem/react-nprogress"; import { useNProgress } from "@tanem/react-nprogress";
import React from "react"; import type React from "react";
const NProgress: React.FC<{ isAnimating: boolean | number }> = ({ const NProgress: React.FC<{ isAnimating: boolean | number }> = ({
isAnimating, isAnimating,
@@ -9,17 +9,17 @@ const NProgress: React.FC<{ isAnimating: boolean | number }> = ({
isAnimating, isAnimating,
}); });
if (isAnimating) {
return ( return (
<div <div
style={{ style={{
opacity: isFinished ? 0 : 1,
pointerEvents: "none", pointerEvents: "none",
transition: `opacity ${animationDuration}ms linear`, transition: `opacity ${animationDuration}ms linear`,
position: "fixed", position: "fixed",
top: "0", top: "0",
left: "0", left: "0",
right: "0", right: "0",
zIndex: "10000", zIndex: "10001",
}} }}
> >
<LinearProgress <LinearProgress
@@ -32,6 +32,7 @@ const NProgress: React.FC<{ isAnimating: boolean | number }> = ({
/> />
</div> </div>
); );
}
}; };
export default NProgress; export default NProgress;
@@ -14,7 +14,9 @@ export const EmptyNotice = ({ extraMsg }) => {
justifyContent: "center", justifyContent: "center",
alignItems: "center", alignItems: "center",
flexFlow: "column", flexFlow: "column",
// opacity: 0.2, position: "static",
top: 0,
left: 0,
}} }}
> >
<div <div
@@ -4,8 +4,8 @@ import Typography from "@mui/material/Typography";
import { red } from "@mui/material/colors"; import { red } from "@mui/material/colors";
import React from "react"; import React from "react";
export const ErrorNotice = ({ error, resetErrorBoundary }) => { export const ErrorNotice = ({ error }) => {
console.error(error); console.log(error);
return ( return (
<Box <Box
sx={{ sx={{
@@ -46,7 +46,7 @@ export const ErrorNotice = ({ error, resetErrorBoundary }) => {
// opacity: 0.6, // opacity: 0.6,
}} }}
> >
{error.message} {JSON.stringify(error.message)}
</Typography> </Typography>
</Box> </Box>
); );
+87
View File
@@ -0,0 +1,87 @@
import { useApiInContext } from "@/utils/store/api";
import { playItemFromQueue, usePlaybackStore } from "@/utils/store/playback";
import useQueue from "@/utils/store/queue";
import { Button, Typography } from "@mui/material";
import React from "react";
import { getTypeIcon } from "../utils/iconsCollection";
import "./outroCard.scss";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { useMutation, useQuery } from "@tanstack/react-query";
const OutroCard = (props: { handleShowCredits: () => void }) => {
const api = useApiInContext((s) => s.api);
const [nextItemIndex, queueItems] = useQueue((s) => [
s.currentItemIndex,
s.tracks,
]);
const item = queueItems[nextItemIndex + 1];
const user = useQuery({
queryKey: ["user"],
queryFn: async () => {
const result = await getUserApi(api).getCurrentUser();
return result.data;
},
});
const handlePlayNext = useMutation({
mutationKey: ["playNextButton"],
mutationFn: () => playItemFromQueue("next", user.data?.Id, api),
onError: (error) => [console.error(error)],
});
return (
<div className="outro-card">
<Typography variant="h4">Up Next</Typography>
<div className="outro-card-content">
{item?.ImageTags?.Primary ? (
<img
className="outro-card-content-image"
alt={item.Name ?? "Cover"}
src={api.getItemImageUrl(item.Id, "Primary", {
tag: item.ImageTags.Primary,
quality: 80,
})}
/>
) : (
<div className="outro-card-content-image icon">
{getTypeIcon(item?.Type)}
</div>
)}
<Typography variant="h5" className="outro-card-content-title">
{item.Name}
</Typography>
<Typography variant="subtitle2" className="outro-card-content-overview">
{item.Overview}
</Typography>
<div className="outro-card-content-buttons">
<Button
onClick={handlePlayNext.mutate}
color="white"
variant="contained"
startIcon={
<div
className="material-symbols-rounded fill"
style={{
zIndex: 1,
fontSize: "2em",
}}
>
play_arrow
</div>
}
>
Play Now
</Button>
<Button
onClick={props.handleShowCredits}
color="white"
variant="outlined"
>
Watch Credits
</Button>
</div>
</div>
</div>
);
};
export default OutroCard;
+50
View File
@@ -0,0 +1,50 @@
.outro-card {
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: 1000;
display: flex;
flex-direction: column;
padding: 0 5vw 2em 5vw;
gap: 1.2em;
background: linear-gradient(to top, rgb(10 10 10), rgb(10 10 10 / 0.7) 50%, transparent);
padding-top: 25vh;
&-content {
display: grid;
grid-template-areas: "img title"
"img info"
"img buttons";
grid-template-columns: 20em 1fr;
align-items: center;
gap: 1em;
&-image {
grid-area: img;
max-height: 14em;
width: 20em;
object-fit: cover;
border-radius: $border-radius-default;
}
&-title {
grid-area: title;
}
&-overview {
grid-area: info;
display: -webkit-box;
text-overflow: ellipsis;
overflow: hidden;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
&-buttons {
grid-area: buttons;
display: flex;
gap: 1em;
}
}
}
@@ -4,19 +4,13 @@ $image-size: 4em;
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 0; right: 0;
background: rgb(0 0 0 / 0.6);
z-index: 10; z-index: 10;
display: grid; display: grid;
padding: 0.5em 1em; padding: 0.5em 1.5em;
// margin: 1em;
backdrop-filter: blur(10px);
// border-radius: 10px;
// overflow: hidden;
gap: 1em; gap: 1em;
box-shadow: 0 0 20px rgb(0 0 0 / 0.25); 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: 30% 1fr 30%;
grid-template-columns: 25% 1fr 25%; background: rgb(0 0 0 / 0.8) !important;
#waveform { #waveform {
width: 100%; width: 100%;
transform: scaleY(0); transform: scaleY(0);
@@ -35,7 +29,7 @@ $image-size: 4em;
} }
&-info { &-info {
display: grid; display: grid;
gap: 0.5em; gap: 1em;
grid-template-columns: minmax(0, $image-size) minmax(0, 1fr); grid-template-columns: minmax(0, $image-size) minmax(0, 1fr);
width: fit-content; width: fit-content;
align-items: center; align-items: center;
@@ -53,14 +47,12 @@ $image-size: 4em;
position: relative; position: relative;
&-container { &-container {
border-radius: 5px; border-radius: $border-radius_04;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
height: fit-content; height: fit-content;
aspect-ratio: 1; aspect-ratio: 1;
background: rgb(255 255 255 / 0.1); background: rgb(255 255 255 / 0.1);
border: 1.2px solid rgb(255 255 255 / 0.1);
} }
&-icon { &-icon {
position: absolute; position: absolute;
@@ -1,621 +0,0 @@
import React, {
useEffect,
useLayoutEffect,
useMemo,
useRef,
useState,
} from "react";
import { motion } from "framer-motion";
import CircularProgress from "@mui/material/CircularProgress";
import Fab from "@mui/material/Fab";
import Grow from "@mui/material/Grow";
import IconButton from "@mui/material/IconButton";
import Paper from "@mui/material/Paper";
import Popper from "@mui/material/Popper";
import Slider from "@mui/material/Slider";
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 { AnimatePresence } from "framer-motion";
import "./audioPlayer.scss";
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";
const AudioPlayer = () => {
const [api] = useApi((state) => [state.api]);
const [
url,
display,
item,
// 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,
]);
const [tracks, currentTrack] = useQueue((state) => [
state.tracks,
state.currentItemIndex,
]);
const user = useQuery({
queryKey: ["user"],
queryFn: async () => {
const usr = await getUserApi(api).getCurrentUser();
return usr.data;
},
networkMode: "always",
enabled: Boolean(display),
});
const waveSurferRef = useRef(null);
const waveSurferContainerRef = useRef(null);
const [playerReady, setPlayerReady] = useState(false);
const [playing, setPlaying] = useState(true);
const [volume, setVolume] = useState(0.8);
const [isMuted, setIsMuted] = useState(false);
const [loading, setLoading] = useState(true);
const [showWaveform, setShowWaveform] = useState(false);
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({
container: waveSurferContainerRef.current,
dragToSeek: true,
height: 25,
cursorColor: "#fb2376",
progressColor: "#fb2376",
waveColor: "#ffffff2f",
normalize: true,
barHeight: 0.6,
backend: "MediaElementWebAudio",
});
waveSurfer.load(url);
waveSurfer.on("load", () => {
setLoading(true);
});
waveSurfer.on("ready", () => {
waveSurferRef.current = waveSurfer;
waveSurfer.play();
waveSurfer.setVolume(volume);
waveSurfer.setMuted(isMuted);
setPlayerReady(true);
setLoading(false);
});
waveSurfer.on("timeupdate", async (atime) => {
setCurrentTime(atime);
});
waveSurfer.on("redraw", () => {
setShowWaveform(true);
});
waveSurfer.on("play", () => {
setPlaying(true);
});
waveSurfer.on("pause", () => {
setPlaying(false);
});
waveSurfer.on("finish", () => {
setPlaying(false);
if (currentTrack !== tracks.length - 1) {
setCurrentTrack(currentTrack + 1);
setAudioUrl(
`${api.basePath}/Audio/${
tracks[currentTrack + 1].Id
}/universal?deviceId=${api.deviceInfo.id}&userId=${
user.data.Id
}&api_key=${api.accessToken}`,
);
setAudioItem(tracks[currentTrack + 1]);
setShowWaveform(false);
}
});
waveSurfer.on("destroy", () => {
waveSurfer.unAll();
setLoading(true);
});
return () => {
waveSurfer.destroy();
};
}
}, [url, currentTrack]);
useLayoutEffect(() => {
if (playerReady) {
waveSurferRef.current.setVolume(volume);
waveSurferRef.current.setMuted(isMuted);
}
}, [playerReady, volume, isMuted]);
const handlePlayPause = () => {
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
// 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>
<Typography
variant="subtitle2"
style={{
opacity: 0.5,
}}
noWrap
fontWeight={400}
>
by {tracks[currentTrack].Artists.map((artist) => artist).join(",")}
</Typography>
</div>
</div>
),
[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>
<div
style={{
display: "inline-flex",
alignItems: "center",
justifyContent: "center",
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"
style={{
fontSize: "2em",
}}
>
{playing ? "pause" : "play_arrow"}
</div>
</Fab>
</div>
<IconButton
onClick={handleNext}
disabled={tracks.length - 1 === currentTrack}
>
<div className="material-symbols-rounded">skip_next</div>
</IconButton>
</div>
),
[currentTrack, loading, playing, tracks.length],
);
const buttons = useMemo(
() => (
<div
style={{
display: "flex",
alignItems: "center",
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>
<IconButton
onClick={(e) => {
setIsMuted(!isMuted);
}}
>
<div className="material-symbols-rounded">
{isMuted ? "volume_mute" : "volume_up"}
</div>
</IconButton>
<Slider
value={isMuted ? 0 : volume * 100}
step={1}
max={100}
onChange={(e, newVal) => setVolume(newVal / 100)}
valueLabelDisplay="auto"
valueLabelFormat={(value) => Math.floor(value)}
size="small"
sx={{
mr: 1,
ml: 1,
width: "10em",
"& .MuiSlider-valueLabel": {
lineHeight: 1.2,
fontSize: 24,
background: "rgb(0 0 0 / 0.5)",
backdropFilter: "blur(5px)",
padding: 1,
borderRadius: "10px",
border: "1px solid rgb(255 255 255 / 0.15)",
boxShadow: "0 0 10px rgb(0 0 0 / 0.4) ",
transform: "translatey(-120%) scale(0)",
"&:before": {
display: "none",
},
"&.MuiSlider-valueLabelOpen": {
transform: "translateY(-120%) scale(1)",
},
"& > *": {
transform: "rotate(0deg)",
},
},
}}
/>
<IconButton onClick={resetPlayer}>
<div className="material-symbols-rounded">close</div>
</IconButton>
</div>
),
[queueButton, 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>
<Typography
variant="subtitle2"
style={{
opacity: 0.5,
}}
noWrap
fontWeight={400}
>
by{" "}
{tracks[currentTrack].Artists.map((artist) => artist).join(",")}
</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>
</AnimatePresence>
);
};
export default AudioPlayer;
Loaded 100 of 202 files, more files were not shown because too many files have changed in this diff. Show more