Compare commits

..
Author SHA1 Message Date
Prayag Prajapati bb89093c0d chore: update version to 0.0.5-dev 2024-03-17 16:57:05 +05:30
Prayag Prajapati b0a32c67cc feat(player): sync playback with jellyfin server 2024-03-17 15:35:46 +05:30
Prayag Prajapati 39e4a1e5be fix: show episode overlay when in focus 2024-03-16 23:28:10 +05:30
Prayag Prajapati 22ef458b35 fix: episode list breaking if no PremiereDate is available 2024-03-16 21:40:30 +05:30
Prayag Prajapati 4cdc2c8018 chore(deps): update npm dependencies 2024-03-16 21:23:38 +05:30
Prayag Prajapati 5ae76818ef fix: seasonSelectorSkeleton layout 2024-03-16 21:23:18 +05:30
Prayag Prajapati ff5fc5a149 feat: add new episode layout 2024-03-16 20:00:27 +05:30
Prayag Prajapati 9251a3518e fix(web): series backdropImage not visible 2024-03-16 16:42:07 +05:30
Prayag Prajapati 737df84488 fix(web): animate season backdrop and use series backdrop is no season backdrop is available 2024-03-16 16:36:56 +05:30
Prayag Prajapati 2ee2de5fe1 fix(player): subtitles not rendering after building app 2024-03-15 22:48:05 +05:30
Prayag Prajapati 16146e5e46 chore(deps): update all dependencies for cargo and pnpm 2024-03-13 15:42:15 +05:30
Prayag Prajapati 16c6885bcb chore: update changelog 2024-03-13 15:39:43 +05:30
Prayag Prajapati eeb9a5f9a8 feat(player): Allow selecting subtitles during playback 2024-03-13 15:39:14 +05:30
Prayag Prajapati 9cd22577a4 feat(player): add jassub to render ASS/SSA subtitles #253 2024-03-12 15:46:37 +05:30
Prayag Prajapati 063c3e98e8 fix(web): trailerButton breaking if no trailer found 2024-03-12 10:52:23 +05:30
Prayag Prajapati 68c88068f6 feat(web): use season backdrop in series page if available 2024-03-12 10:51:14 +05:30
Prayag Prajapati ac95c1711c fix(app): Enable window decorations and disable persistent_window_state 2024-03-12 09:28:11 +05:30
Prayag Prajapati d5e8229ad5 Merge branch 'main' of https://github.com/prayag17/JellyPlayer 2024-03-11 19:13:59 +05:30
Prayag Prajapati 8786288906 refactor(player): start rewrite for videoPlayer component 2024-03-11 19:13:41 +05:30
renovate[bot] a80353bcf2 fix(deps): update material-ui monorepo (#269)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-25 12:08:14 +05:30
renovate[bot] 39be8b5037 fix(deps): update material-ui monorepo (#268)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-25 12:07:16 +05:30
renovate[bot] eaca1d64fe fix(deps): update material-ui monorepo (#267)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-25 12:00:59 +05:30
Prayag Prajapati 599bdabf29 ui: minor changes 2024-02-24 14:50:31 +05:30
Prayag Prajapati 455a499670 fix(ui): NProgress not showing when mutation is running 2024-02-24 14:26:48 +05:30
Prayag Prajapati eb482c180e fix(web): Displaying of markAsPlayed and likeButton on state change. Improve Card performace 2024-02-22 18:33:19 +05:30
Prayag Prajapati 0493598d48 chore(deps): update pnpm/action-setup to v3 2024-02-20 21:23:47 +05:30
Prayag Prajapati 754d679ea5 fix(server): Use redirect instead of relaunch when changing or deleting a server 2024-02-20 19:55:05 +05:30
Prayag Prajapati ea2e0a6b1c fix(router): Remove ScrollRestoration and improve episodeSkeleton 2024-02-20 11:53:45 +05:30
Prayag Prajapati 81a2135254 chore(tauri): Disable devtools in standard builds 2024-02-20 11:35:25 +05:30
Prayag Prajapati 1447e0033a fix(web): Add ScrollRestoration 2024-02-19 22:13:24 +05:30
Prayag Prajapati f13533dfc6 update(ui): Improve hero-carousel-skeleton design 2024-02-19 20:59:12 +05:30
Prayag Prajapati 9d28aaae96 feat(web): Add a global query fetch/mutation status 2024-02-19 19:22:41 +05:30
Prayag Prajapati 778c8f8039 feat(settings-server): Add a refretch button 2024-02-19 17:09:32 +05:30
Prayag Prajapati 7519b04cf0 feat(web): Add new icons to itemDetail page 2024-02-19 14:09:53 +05:30
renovate[bot] 0e7e280a8d fix(deps): update rust crate tauri to 1.6.0 (#264)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 11:05:44 +05:30
renovate[bot] f25c170023 fix(deps): update rust crate tauri to 1.6.0 (#263)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 10:01:12 +05:30
renovate[bot] 3f8d920aac fix(deps): update rust crate tauri to 1.6.0 (#262)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 10:00:17 +05:30
Prayag Prajapati 4c8812d0fe feat(search): Add Episode to search 2024-02-18 10:58:49 +05:30
Prayag Prajapati faf3dc2a48 feat(web): Allow managing servers from settings dialog 2024-02-17 23:40:22 +05:30
Prayag Prajapati b155daa83b feat(web): Add new About page #258 2024-02-17 16:56:58 +05:30
Prayag Prajapati bf89f35ddd chore(web): start adding new queue implementaion 2024-01-31 14:15:18 +05:30
Prayag Prajapati e13940b015 fix(web): Updater image overflowing 2024-01-23 22:54:48 +05:30
Prayag Prajapati f44a3dc5b1 chore(tauri): Update latest.json 2024-01-23 22:47:42 +05:30
Prayag Prajapati bbd636519b fix(web): herobg import in boxset 2024-01-23 22:23:03 +05:30
Prayag Prajapati d053e10b2c chore(tauri): Update version to v0.0.4-dev 2024-01-23 22:20:37 +05:30
Prayag Prajapati d675b564ee Update itemDetail pages and improve some stylings #243 2024-01-23 22:18:13 +05:30
Prayag Prajapati 4e673fc376 Merge branch 'main' of https://github.com/prayag17/JellyPlayer 2024-01-20 16:35:45 +05:30
renovate[bot] f1b079f224 fix(deps): update material-ui monorepo (#255)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-20 13:49:06 +05:30
renovate[bot] 91f4ab00a1 fix(deps): update material-ui monorepo (#239)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-20 13:48:17 +05:30
renovate[bot] 04a7ca31f7 chore(deps): update actions/cache action to v4 (#252)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-20 13:47:59 +05:30
dependabot[bot] 61a44d44c3 chore(deps-dev): bump vite from 5.0.11 to 5.0.12 (#254)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.11 to 5.0.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.0.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.0.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 13:47:46 +05:30
Prayag Prajapati 9b7a3d5a40 chore(web): Add collapsable text to PersonPage 2024-01-19 20:09:05 +05:30
Prayag Prajapati 9149792ed9 chore(web): Implement new ArtistPage and add new TracksList component #243 2024-01-19 18:56:27 +05:30
Prayag Prajapati 9e73421540 fix: cast and crew being cut off in itemDetail page #243 2024-01-17 18:50:41 +05:30
Prayag Prajapati 63b717adfb chore(web): Add new album page #243 2024-01-16 21:47:55 +05:30
Prayag Prajapati 3987ffd4da Improve Person page #243 2024-01-16 11:50:09 +05:30
Prayag Prajapati dbb6e272b1 chore(web): add new person page #243 2024-01-14 22:06:43 +05:30
Prayag Prajapati 89f1a26ea7 Update UserImgLogin UI #202 2024-01-14 09:17:19 +05:30
Prayag Prajapati 6cf5dfeb9b fix redirect url in serverList 2024-01-14 09:04:40 +05:30
Prayag Prajapati 31458b5062 chore: use redirect instead of relaunch when changing server 2024-01-14 09:03:50 +05:30
Prayag Prajapati 8f375dc645 Fix initialSeason being set to specials 2024-01-13 21:55:16 +05:30
Prayag Prajapati 4d5f4b95e5 Remove button to copy quick connect code #201 2024-01-13 14:14:12 +05:30
Prayag Prajapati aa1e01b68a Allow remembering device when using Quick Connect, Improve quick connect messages 2024-01-13 11:57:26 +05:30
Prayag Prajapati 7db0ef4c00 Disable linting in CI 2024-01-13 11:39:43 +05:30
Prayag Prajapati 8813937c31 chore(web): Implement quickConnect UI #201 #202 2024-01-13 10:26:50 +05:30
DanCodes 31fa615da3 feat: quick connect
* style(icons): only use the rounded css

* feat: quick connect
2024-01-12 23:01:36 +05:30
Prayag Prajapati 90aba45e50 lint: Enable noUnusedImports in biomejs 2024-01-12 18:15:09 +05:30
Prayag Prajapati 482919c35a Merge branch 'main' of https://github.com/prayag17/JellyPlayer 2024-01-12 18:08:17 +05:30
Prayag Prajapati 117fc52738 Update package.json 2024-01-12 18:08:14 +05:30
Prayag Prajapati 79523b2f4b refactor(web): change all icons to material-symbols from mdi 2024-01-12 18:07:28 +05:30
DanCodes b41fcf8969 style(icons): only use the rounded css (#250) 2024-01-12 17:29:52 +05:30
Prayag Prajapati 7730ad1858 Improve home-carousel display for smaller displays 2024-01-12 14:52:27 +05:30
Prayag Prajapati e330b7e2f9 Update Latest.json 2024-01-12 11:49:42 +05:30
Prayag Prajapati 9f630e75f5 Merge branch 'main' of https://github.com/prayag17/JellyPlayer 2024-01-12 11:48:47 +05:30
Prayag Prajapati 89e1083099 Update latest.json 2024-01-12 11:48:12 +05:30
DanCodes 605e2be72d refactor: use crypto.randomUUID vs uuid.v4 (#249)
* refactor: use randomUUID vs uuidv4

* chore: don't import the node version

* chore: no need to non-null assert here
2024-01-11 23:00:51 +05:30
Prayag Prajapati 83ef175444 Merge branch 'main' of https://github.com/prayag17/JellyPlayer 2024-01-11 21:47:10 +05:30
Prayag Prajapati 3011eb749f Disable updater in CI 2024-01-11 21:46:40 +05:30
Prayag Prajapati 1bf6b82384 Merge pull request #248 from dan-online/fix/queries
fix(queries): staleTime and invalidating cache
2024-01-11 21:29:45 +05:30
DanCodes 9a5dce5ac9 style: fade out the loading screen 2024-01-11 15:54:45 +00:00
DanCodes 9d78a5ed5d feat: move init to app 2024-01-11 15:54:44 +00:00
Prayag Prajapati 98052df94f Merge pull request #247 from dan-online/feat/access-token
feat(user): store `accessToken` over password
2024-01-11 20:51:42 +05:30
DanCodes 4acf57cfd0 chore: cleanup code 2024-01-11 14:51:37 +00:00
Prayag Prajapati 1af7428869 Fix artifact naminng in CI 2024-01-11 18:17:41 +05:30
DanCodes 5feb6c2bb6 feat: store access token instead of password 2024-01-11 11:32:08 +00:00
Prayag Prajapati db6fa1cc91 Upload build artifacts 2024-01-11 15:11:33 +05:30
Prayag Prajapati f304f518d3 Update env in CI 2024-01-11 13:05:15 +05:30
Prayag Prajapati e5a85d787f Add env to CI and release 2024-01-11 11:32:04 +05:30
Prayag Prajapati 47a2919cb0 Relaunch app on server change 2024-01-11 11:22:46 +05:30
Prayag Prajapati b6445e2ae6 Merge pull request #244 from dan-online/main
refactor(web): update to typescript, cleanup small bugs + workspace
2024-01-11 11:02:41 +05:30
DanCodes 6b3c64073e chore: another bug fix 2024-01-10 11:05:15 +00:00
DanCodes c5c10bd8cb chore: small bug fixes 2024-01-10 11:01:55 +00:00
DanCodes 049e6bb833 fix(login): missing CircularProgress 2024-01-09 17:56:21 +00:00
Prayag Prajapati e907ddceef Update Episode page #243 2024-01-09 20:13:26 +05:30
DanCodes c0b9d93880 style: update everything to biome conventions 2024-01-09 13:50:20 +00:00
DanCodes 96350fa793 chore: delete nyan gif 2024-01-09 13:25:18 +00:00
DanCodes 04bb867d58 chore: tauri doesn't need all path apis 2024-01-09 13:24:50 +00:00
DanCodes d727eb7cde chore: linting issues 2024-01-09 13:18:54 +00:00
DanCodes d3b367b948 chore(app): cleanup main files 2024-01-09 13:18:54 +00:00
DanCodes 5bb89c1b08 chore: cleanup biome 2024-01-09 13:18:53 +00:00
DanCodes 0f9afd5f5b chore: remove prettier pragma 2024-01-09 13:18:53 +00:00
DanCodes f1920b5235 ci: only run when needed 2024-01-09 13:18:16 +00:00
DanCodes d072f7d712 ci: add linting 2024-01-09 13:18:16 +00:00
DanCodes 07cbf4babe ci: add builds 2024-01-09 13:18:16 +00:00
DanCodes 8d68eb546d feat(lint): use biome instead 2024-01-09 13:18:16 +00:00
DanCodes dca2a31639 refactor(web): typescript 2024-01-09 13:17:13 +00:00
Prayag Prajapati 13f686a472 Fix episode carousel #243 2024-01-09 14:17:16 +05:30
Prayag Prajapati 922ca0ed2a Update Icons in item page #243 2024-01-08 18:06:57 +05:30
Prayag Prajapati 6279663f46 Add 'disable subtitle' option and fix cast and crew in item Page #243 2024-01-07 21:37:26 +05:30
Prayag Prajapati 286d389af0 Update Series Page #243 2024-01-07 18:31:12 +05:30
Prayag Prajapati a6a4dfff4d Start adding new Item Page #243 2024-01-06 15:01:50 +05:30
Prayag Prajapati 87f9eaf8b6 Update Appbar 2024-01-04 12:40:33 +05:30
Prayag Prajapati 73ac8a529e Update carousel skeleton 2024-01-01 10:02:14 +05:30
Prayag Prajapati 6c57b0408b Update Carousel, Remove logo from appbar, update error icon 2023-12-31 23:04:25 +05:30
Prayag Prajapati ee577157f3 Update latest.json 2023-12-31 17:31:38 +05:30
Prayag Prajapati 4dc71b4c8b Disable building .msi bundle for windows 2023-12-31 17:16:15 +05:30
Prayag Prajapati a31a8920e9 Update latest.json 2023-12-31 16:49:42 +05:30
Prayag Prajapati da524107f0 Update version to 0.0.3-dev 2023-12-30 18:38:37 +05:30
Prayag Prajapati e397d0cf58 Update hero carousel 2023-12-30 16:17:50 +05:30
renovate[bot] 65db12192f fix(deps): update tauri monorepo (#237)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-29 18:53:29 +05:30
renovate[bot] b2d1154354 fix(deps): update material-ui monorepo (#236)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-29 18:52:35 +05:30
renovate[bot] 99bee007ac fix(deps): update tauri monorepo (#235)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-29 18:52:20 +05:30
renovate[bot] 3740d24cd1 fix(deps): update material-ui monorepo (#234)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-29 18:52:05 +05:30
Prayag Prajapati 960538a9a6 Update homepage carousel and add support for MD in updater 2023-12-29 17:45:23 +05:30
Prayag Prajapati afcc8cfd4d Update search page and emptyNotice 2023-12-29 11:00:06 +05:30
Prayag Prajapati bccc19981e Add navLink components to libraries menu 2023-12-29 10:46:39 +05:30
Prayag Prajapati 66f63c6d75 Start working on new appBar 2023-12-28 17:18:15 +05:30
Prayag Prajapati 722630cf37 Merge branch 'main' of https://github.com/prayag17/JellyPlayer 2023-12-17 19:19:26 +05:30
Prayag Prajapati 32e439c495 Fix display error in heroLayout 2023-12-17 19:19:09 +05:30
renovate[bot] eda16f8cc2 fix(deps): update material-ui monorepo (#233)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-16 20:26:03 +05:30
renovate[bot] 1b688fe75e fix(deps): update material-ui monorepo (#232)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-15 22:18:17 +05:30
Prayag Prajapati 3134818ca7 Add criticsRating and improve icons and animations in itemPage 2023-12-14 17:39:10 +05:30
Prayag Prajapati 2268bca663 Fix emptyNotice icon 2023-12-12 22:40:42 +05:30
Prayag Prajapati c1e55c0e3f Update EmptyNotice 2023-12-12 22:38:08 +05:30
Prayag Prajapati c5922d67c4 Update ErrorNotice and add route level errorBoundary 2023-12-12 20:29:16 +05:30
Prayag Prajapati 5799031a34 Update deps and code cleanup 2023-12-11 21:45:34 +05:30
Prayag Prajapati dc226da809 Update lastest.json 2023-12-10 14:41:53 +05:30
Prayag Prajapati 3db6249f71 Add Updater UI #231 2023-12-10 14:21:56 +05:30
renovate[bot] 2926e845d2 fix(deps): update material-ui monorepo (#230)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-10 10:58:52 +05:30
Prayag Prajapati ec6d5850d0 Update version to 0.0.2 in latest.json for testing 2023-12-08 16:57:25 +05:30
Prayag Prajapati 72a9f2cd39 update latest.json 2023-12-08 16:40:10 +05:30
Prayag Prajapati 874646a6dc Update package.json 2023-12-08 15:33:57 +05:30
Prayag Prajapati d84073ee03 Update updater key and versioning 2023-12-08 15:32:56 +05:30
Prayag Prajapati abca22763c Add env to workflow 2023-12-08 15:04:31 +05:30
Prayag Prajapati 2e62d3d2ee fix build.yml 2023-12-08 14:40:13 +05:30
Prayag Prajapati c477f62f69 Add updater #231 2023-12-08 14:35:46 +05:30
Prayag Prajapati 0af246cff2 Report playback end 2023-12-07 18:45:57 +05:30
renovate[bot] e095863afa fix(deps): update material-ui monorepo (#229)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 09:44:52 +05:30
renovate[bot] a290e83c19 fix(deps): update material-ui monorepo (#227)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 09:43:43 +05:30
dependabot[bot] f8545d2182 chore(deps-dev): bump vite from 5.0.0 to 5.0.5 (#228)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.0 to 5.0.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.0.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-07 09:43:32 +05:30
renovate[bot] 2b3c02b261 fix(deps): update rust crate tauri to 1.5.3 (#226)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 17:52:37 +05:30
renovate[bot] 9ce5f84fc5 fix(deps): update material-ui monorepo (#224)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 17:52:22 +05:30
Prayag Prajapati 60f1667dc2 fix deps 2023-12-03 15:54:06 +05:30
Prayag Prajapati 3add9d9f89 fix unable to change index in item page 2023-12-03 15:47:09 +05:30
Prayag Prajapati 50921dbc5f Update Banner in README.md 2023-12-02 19:21:47 +05:30
Prayag Prajapati faa9e844e1 Update icon and embed webView2 in windows bundler 2023-12-02 19:20:19 +05:30
Prayag Prajapati dd03a2dbe9 Update 2023-12-02 17:25:06 +05:30
renovate[bot] 8842cc994c fix(deps): update material-ui monorepo (#223)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-28 18:21:07 +05:30
renovate[bot] fcd92f2760 fix(deps): update material-ui monorepo (#221)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-28 18:20:03 +05:30
Prayag Prajapati 63e6bda233 Fix blurhash transition 2023-11-28 18:19:17 +05:30
Prayag Prajapati d6d81f2b4d fix genre view in library page 2023-11-28 18:16:37 +05:30
Prayag Prajapati 81d188ac5a Update card component and sidemenu 2023-11-25 16:56:52 +05:30
Prayag Prajapati 537176b77d Fix libraryPage 2023-11-22 17:34:44 +05:30
Prayag Prajapati 1dddbca3b2 Add about page #52 and fix changeServer 2023-11-21 22:33:02 +05:30
renovate[bot] 16c6a26a2e fix(deps): update material-ui monorepo (#219)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-21 15:52:06 +05:30
Prayag Prajapati bc3ddc3f24 Update icons 2023-11-21 15:18:37 +05:30
Prayag Prajapati e28917f8d3 Update icons 2023-11-20 21:48:23 +05:30
Prayag Prajapati 2482a83698 Clear unnecessary imports 2023-11-20 19:21:28 +05:30
Prayag Prajapati 6e22c545b1 Fix api creation on reload 2023-11-20 19:18:43 +05:30
Prayag Prajapati 27e2ee971d Implement a better routing and api creation method 2023-11-20 18:53:54 +05:30
renovate[bot] c58d656449 fix(deps): update material-ui monorepo (#218)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-18 14:56:28 +05:30
renovate[bot] a7b2f2361c fix(deps): update material-ui monorepo (#214)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-18 14:55:45 +05:30
renovate[bot] 7361dee0c5 fix(deps): update dependency material-symbols to ^0.14.0 (#215)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-18 14:55:35 +05:30
dependabot[bot] 255ce91be4 chore(deps): bump axios from 1.5.1 to 1.6.0 (#216)
Bumps [axios](https://github.com/axios/axios) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.5.1...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-18 14:55:02 +05:30
renovate[bot] a780dd77c8 chore(deps): update dependency vite to v5 (#217)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-18 14:54:37 +05:30
renovate[bot] 9d4a02c33a fix(deps): update material-ui monorepo (#197)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-06 21:13:03 +05:30
Prayag Prajapati df8afbf5e1 Fix user not getting deleted on server change 2023-11-05 13:36:22 +05:30
Prayag Prajapati 2f95e95e2e Allow deleting server #202 2023-10-27 22:28:47 +05:30
Prayag Prajapati aa47e2fda5 Change server reachability #202 2023-10-27 19:38:43 +05:30
Prayag Prajapati 09bcee155c Add change server option #202 2023-10-27 17:07:32 +05:30
renovate[bot] cdd1a0a85b fix(deps): update tauri monorepo (#198)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-27 15:52:00 +05:30
renovate[bot] b76cbd0068 chore(deps): update actions/setup-node action to v4 (#208)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-27 15:51:46 +05:30
Prayag Prajapati 27dd21400b Update deps 2023-10-26 22:05:30 +05:30
Prayag Prajapati d44848516a Migrate react-query to v5 2023-10-26 21:58:30 +05:30
Prayag Prajapati f5c6e97355 Fix routing and update deps 2023-10-26 21:51:57 +05:30
Prayag Prajapati 9ca0f529a8 Update routing method 2023-10-22 15:25:36 +05:30
Prayag Prajapati 339f86517c Fix api auth bug 2023-10-13 00:13:03 +05:30
Prayag Prajapati 4ba08867ba Move all routes to use api instead of window.api 2023-10-12 23:59:53 +05:30
Prayag Prajapati 71f3cb6325 Move all components from window.api to api #202 2023-10-12 23:49:26 +05:30
Prayag Prajapati 7e7535edfb Start working on new server page #202 2023-10-10 22:15:56 +05:30
Prayag Prajapati 0e774ebc8c Fix video jumping to start after playback starts 2023-10-08 21:40:45 +05:30
Prayag Prajapati 268339c410 Improve quality detection 2023-10-08 21:31:39 +05:30
Prayag Prajapati 6643b9ea7e Fix playbutton 2023-10-08 21:27:38 +05:30
Prayag Prajapati 9706ce0ed7 Fix scrollbar bug 2023-10-08 21:09:48 +05:30
Prayag Prajapati cc8c6e187a Display video quality Chips 2023-10-08 20:57:29 +05:30
Prayag Prajapati 4302d00bba Fix overflow 2023-10-08 15:18:36 +05:30
Prayag Prajapati a4ec70d44c Use MediaElementWebAudio for audioPlayer #189 2023-10-08 15:13:30 +05:30
Prayag Prajapati 8c9e5aec18 Remember Window state #199 2023-10-07 16:56:30 +05:30
Prayag Prajapati 1125ef2539 Fix #119 2023-10-07 13:13:20 +05:30
Prayag Prajapati 48d0354a3f Add favorite page #33 2023-10-07 12:49:06 +05:30
renovate[bot] 5f394c0d86 Update tauri monorepo to v1.5.1 (#196)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-06 21:18:36 +05:30
renovate[bot] 28954a38ba Update material-ui monorepo (#195)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-06 18:26:57 +05:30
renovate[bot] ebd6d49ce9 Update tauri monorepo to v1.5.1 (#193)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-06 18:20:05 +05:30
dependabot[bot] 6220696e18 chore(deps): bump postcss from 8.4.30 to 8.4.31 (#194)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.30 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.30...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-06 18:19:48 +05:30
renovate[bot] 7ec4e59821 Update material-ui monorepo (#185)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-06 18:14:38 +05:30
renovate[bot] 2fb3fb83e9 Update tauri monorepo to v1.5.1 (#188)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-06 18:14:26 +05:30
Prayag Prajapati 4549547012 Remove Alpha 1 notice 2023-10-05 23:06:08 +05:30
Prayag Prajapati e0c77fb7c6 Update audio player 2023-10-05 21:31:46 +05:30
Prayag Prajapati 686d1597af Fix onEnd #191 2023-10-05 21:16:31 +05:30
Prayag Prajapati 92bd2d5b0e Improve Mouse detection in video player #191 2023-10-04 18:54:51 +05:30
Prayag Prajapati f238e367ba Add continous playback #191 2023-10-04 15:34:39 +05:30
Prayag Prajapati 0749b3f59a Display logo in videoPlayer and improve episode info 2023-10-02 20:51:08 +05:30
Prayag Prajapati b0fc4f7f51 Improve api interactions and add Key binding to VideoPlayer #191 2023-10-02 17:45:04 +05:30
Prayag Prajapati 674bde06df Add liking and watched status marking for seasons 2023-10-02 15:31:12 +05:30
Prayag Prajapati 52faaef201 Fix library page not displaying all items #183 #182 2023-09-30 19:11:39 +05:30
renovate[bot] 3d75c08979 Update tauri monorepo to v1.5.0 (#187)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-30 09:01:17 +05:30
renovate[bot] f799aa5e11 Update tauri monorepo (#186)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-29 23:49:41 +05:30
254 changed files with 19006 additions and 10318 deletions

No files matched your search

@@ -0,0 +1,120 @@
# @format
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
build_web:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 7
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Sync node version and setup cache
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
# - name: Lint
# run: pnpm run lint
- name: Build
run: pnpm run build
build:
needs: build_web
# Prevent forked PRs from running the build job which is expensive
if: github.repository == 'prayag17/JellyPlayer'
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-22.04, windows-latest]
runs-on: ${{ matrix.platform }}
environment: TAURI
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 7
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Sync node version and setup cache
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build app
run: pnpm run tauri build --bundles "deb" "appimage" "nsis" "app" "dmg"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
- name: Upload build Artifacts
uses: actions/upload-artifact@v4
with:
name: JellyPlayer-${{ matrix.platform }}-dev${{ github.sha }}
path: src-tauri/target/release/bundle/*
@@ -14,6 +14,7 @@ jobs:
matrix: matrix:
platform: [macos-latest, ubuntu-22.04, windows-latest] platform: [macos-latest, ubuntu-22.04, windows-latest]
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
environment: TAURI
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -33,7 +34,7 @@ jobs:
with: with:
workspaces: "./src-tauri -> target" workspaces: "./src-tauri -> target"
- uses: pnpm/action-setup@v2 - uses: pnpm/action-setup@v3
name: Install pnpm name: Install pnpm
with: with:
version: 7 version: 7
@@ -42,18 +43,18 @@ jobs:
- name: Get pnpm store directory - name: Get pnpm store directory
shell: bash shell: bash
run: | run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3 - uses: actions/cache@v4
name: Setup pnpm cache name: Setup pnpm cache
with: with:
path: ${{ env.STORE_PATH }} path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pnpm-store- ${{ runner.os }}-pnpm-store-
- name: Sync node version and setup cache - name: Sync node version and setup cache
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: "lts/*" node-version: "lts/*"
cache: "pnpm" # Set this to npm, yarn or pnpm. cache: "pnpm" # Set this to npm, yarn or pnpm.
@@ -63,10 +64,12 @@ jobs:
run: pnpm install --no-frozen-lockfile && pnpm run build # Change this to npm, yarn or pnpm. run: pnpm install --no-frozen-lockfile && pnpm run build # Change this to npm, yarn or pnpm.
- name: Build the app - name: Build the app
uses: tauri-apps/tauri-action@v0 uses: tauri-apps/tauri-action@dev
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_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.
+9
View File
@@ -0,0 +1,9 @@
{
"recommendations": [
"biomejs.biome",
"github.vscode-github-actions",
"esbenp.prettier-vscode",
"swellaby.rust-pack",
"1yib.rust-bundle"
]
}
+25 -1
View File
@@ -1,3 +1,27 @@
{ {
"nuxt.isNuxtApp": false "editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": "always",
"source.organizeImports.biome": "explicit"
},
"[github-actions-workflow]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"rust-analyzer.linkedProjects": ["./src-tauri/Cargo.toml"],
"typescript.tsdk": "node_modules/typescript/lib"
} }
+12
View File
@@ -0,0 +1,12 @@
- # v0.0.5-dev
> **Note** : This is an unstable release
- feat(web): Add new About page (#258) by @prayag17
- feat(web): Allow managing servers from settings dialog by @prayag17
- feat(search): Add Episode to search by @prayag17
- feat(settings-server): Add a refretch button by @prayag17
- feat(web): Add a global query fetch/mutation status by @prayag17
- fix(server): Use redirect instead of relaunch when changing or deleting a server by @prayag17
- refactor(player): Rewrite and improve video playback by @prayag17
- feat(web): Use season backdrop in series page if available by @prayag17
- feat(player): Allow selecting subtitles during playback by @prayag17
- feat(ui): Add new episode layout by @prayag17
+3 -3
View File
@@ -1,9 +1,9 @@
![Banner](https://github.com/prayag17/JellyPlayer/assets/55829513/a022ae71-5458-4d4e-a9ee-892824fde927) ![Banner](https://github.com/prayag17/JellyPlayer/assets/55829513/cefdd218-51ce-4180-be53-8fd69d9a63a2)
# 📝 Prerequisites # 📝 Prerequisites
- Nodejs (≥19.1.0) - Nodejs (≥19.1.0)
- Rust (≥1.66.1) - Rust (≥1.76.0)
- Visual Studio C++ Build tools - Visual Studio C++ Build tools
- [pnpm](https://pnpm.io/) - [pnpm](https://pnpm.io/)
@@ -42,7 +42,7 @@
# 📃 Roadmap # 📃 Roadmap
- Checkout [GitHub Project](https://github.com/users/prayag17/projects/3) - Checkout [GitHub Project](https://github.com/users/prayag17/projects/3)
> **Note** : There is no current due date for alpha 1 release
# 🎊 Special thanks to # 🎊 Special thanks to
+34
View File
@@ -0,0 +1,34 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.0/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noNonNullAssertion": "off"
},
"a11y": {
"useKeyWithClickEvents": "off"
},
"correctness": {
"useExhaustiveDependencies": "off"
},
"nursery": {
"noUnusedImports": "off"
}
}
},
"files": {
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.jsx",
"src/**/*.js",
"*.json"
],
"ignoreUnknown": true
}
}
+30 -3
View File
@@ -3,20 +3,47 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Jellyplayer</title> <title>Jellyplayer</title>
<style>
.app-loading {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: hsl(256, 100%, 4%);
z-index: 100000;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
transition: opacity 0.25s ease-in-out;
}
.app-loading.hidden {
opacity: 0;
pointer-events: none;
}
.app-loading-logo {
width: 65vw;
}
</style>
</head> </head>
<body> <body>
<div class="app-loading">
<img src="./assetsStatic/LogoBig.svg" class="app-loading-logo" />
</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">
<linearGradient id="clr-gradient-default" x2="1" y2="1"> <linearGradient id="clr-gradient-default" x2="1" y2="1">
<stop offset="0%" stop-color="hsl(337, 96%, 56%)" /> <stop offset="0%" stop-color="hsl(337, 96%, 56%)" />
<stop offset="100%" stop-color="hsl(273, 100%, 36%)" /> <stop offset="100%" stop-color="hsl(273, 100%, 36%)" />
</linearGradient> </linearGradient>
</svg> </svg>
<script type="module" src="/src/main.jsx"></script> <script type="module" src="/src/main.tsx"></script>
</body> </body>
</html> </html>
+19
View File
@@ -0,0 +1,19 @@
{
"version": "0.0.4-dev",
"notes": "![banner](https://imgur.com/w3l4WFh.png)\n## What's Changed\n* refactor(web): update to typescript, cleanup small bugs + workspace by @dan-online in [#244](https://github.com/prayag17/JellyPlayer/pull/244)\n* feat(user): store `accessToken` over password by @dan-online in [#247](https://github.com/prayag17/JellyPlayer/pull/247)\n* fix(queries): staleTime and invalidating cache by @dan-online in [#248](https://github.com/prayag17/JellyPlayer/pull/248)\n* refactor: use `crypto.randomUUID` vs `uuid.v4` by @dan-online in [#249](https://github.com/prayag17/JellyPlayer/pull/249)\n* style(icons): only use the rounded css by @dan-online in [#250](https://github.com/prayag17/JellyPlayer/pull/250)\n* feat: quick connect by @dan-online in [#251](https://github.com/prayag17/JellyPlayer/pull/251)\n* feat: add new itemDetail Pages by @prayag17 in [#243](https://github.com/prayag17/issue/243)\n* feat: Auto focus search input in search route when opened initially by @prayag17\n* feat: Improved Login page ui by @prayag17\n* refactor: improve error boundary component\n## New Contributors\n* @dan-online made their first contribution in [#244](https://github.com/prayag17/JellyPlayer/pull/244)\n**Full Changelog**: [v0.0.3-dev...v0.0.4-dev](https://github.com/prayag17/JellyPlayer/compare/v0.0.3-dev...v0.0.4-dev)",
"pub_date": "2024-01-23T17:12:09.705Z",
"platforms": {
"linux-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVROHVTNk5NMHU2bVordkFWa21Fa2ZJTUFRcElHbmxFWlJFY29IdHg2WTZaeTRxbXNuUy9lMmI1MWEwSEtIa0FUN09WTjlKZDZiMHVWUEFPV0lneE9TWG53dis0K0hpdUFVPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzA2MDI5NjgxCWZpbGU6amVsbHktcGxheWVyXzAuMC40LWRldl9hbWQ2NC5BcHBJbWFnZS50YXIuZ3oKeDFiSzBtalVnYjlweUV5RElYeHlrZDRxS2tMQXFLZ3RmUkkveUVEQjhoSkp5ZmJCdEJlKzMza3lBdFRvMzVJZUhkUmdMejVBZGFvSEgwL2h2VnRZRHc9PQo=",
"url": "https://github.com/prayag17/JellyPlayer/releases/download/v0.0.4-dev/jelly-player_0.0.4-dev_amd64.AppImage.tar.gz"
},
"darwin-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVROHVTNk5NMHU2bVRxQlpMUGxUcjhZYWVmSWllK2JQYXFTVnVaZGxCQnNaL1J5ekVnSitUOVhWdjVBeEFQUHJXOER4bTI2Q0ZsWFYvSWNVK0FOSFE4M0U1VjNTRzFVOEF3PQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzA2MDI5Nzg0CWZpbGU6SmVsbHlQbGF5ZXIuYXBwLnRhci5negpkT2VmTmNjRG1hWjBYNUV3UUh4OG1KM1BRdHVvUTBrZWZ5NlhMOWx5U0YvZURZcUUzeVVFbFNDV2JzaDAyVThtZk9NV1lwSXozQjYyekNKY2hXVjdCdz09Cg==",
"url": "https://github.com/prayag17/JellyPlayer/releases/download/v0.0.4-dev/JellyPlayer_x64.app.tar.gz"
},
"windows-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVROHVTNk5NMHU2bWVHdGR2NTB1SDF5Vk5rN3ZyTXpybW5rMktsZmlwbVAxK2ZEMHltWndCdG9qUmpQNlNnaGcwdUdRVW1NeUJ3VmRPK1hFTFdLcWpINWZrdzBBYlBFUkFNPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzA2MDI5OTIyCWZpbGU6SmVsbHlQbGF5ZXJfMC4wLjQtZGV2X3g2NC1zZXR1cC5uc2lzLnppcApDWlpoYVd2enE5dDRhblV4R1g3djJtSzBTTlR1MXRIMHFVbTRYb3dIalZ0U0ozRlg1eXdjcHMrU1gwWGtuL24vNnI5UWRZdVNKSnF5Z0JycDNwcy9DQT09Cg==",
"url": "https://github.com/prayag17/JellyPlayer/releases/download/v0.0.4-dev/JellyPlayer_0.0.4-dev_x64-setup.nsis.zip"
}
}
}
+42 -26
View File
@@ -1,53 +1,69 @@
{ {
"name": "jellyplayer", "name": "jellyplayer",
"private": true, "private": true,
"version": "1.0.0", "version": "0.0.5-dev",
"type": "module", "type": "module",
"scripts": { "scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
"preview": "vite preview", "preview": "vite preview",
"tauri": "tauri" "tauri": "tauri",
"lint": "biome check src/**/*",
"lint:fix": "biome check --apply src/**/*"
}, },
"dependencies": { "dependencies": {
"@emotion/react": "^11.11.1", "@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.0", "@emotion/styled": "^11.11.0",
"@fontsource/noto-sans": "^5.0.12", "@fontsource-variable/jetbrains-mono": "^5.0.20",
"@jellyfin/sdk": "^0.8.2", "@fontsource/noto-sans": "^5.0.21",
"@mdi/js": "^7.2.96", "@jellyfin/sdk": "0.8.2",
"@mui/lab": "5.0.0-alpha.146", "@mui/lab": "5.0.0-alpha.168",
"@mui/material": "^5.14.10", "@mui/material": "^5.15.13",
"@tanstack/react-query": "^4.35.3", "@tanem/react-nprogress": "^5.0.51",
"@tanstack/react-query-devtools": "^4.35.3", "@tanstack/react-query": "^5.28.4",
"@tauri-apps/api": "^1.4.0", "@tanstack/react-query-devtools": "^5.28.4",
"axios": "^1.5.0", "@tauri-apps/api": "^1.5.3",
"axios-tauri-api-adapter": "^0.2.0", "@types/node": "^20.11.28",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"axios": "^1.6.8",
"axios-tauri-api-adapter": "^0.2.1",
"blurhash": "^2.0.5", "blurhash": "^2.0.5",
"events": "^3.3.0", "events": "^3.3.0",
"framer-motion": "^10.16.4", "framer-motion": "^11.0.14",
"jassub": "^1.7.15",
"material-symbols": "^0.17.0",
"million": "^3.0.6",
"notistack": "^3.0.1", "notistack": "^3.0.1",
"react": "^18.2.0", "react": "^18.2.0",
"react-blurhash": "^0.3.0", "react-blurhash": "^0.3.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-error-boundary": "^4.0.11", "react-error-boundary": "^4.0.13",
"react-markdown": "^9.0.1",
"react-multi-carousel": "^2.8.4", "react-multi-carousel": "^2.8.4",
"react-player": "^2.13.0", "react-player": "^2.15.1",
"react-router-dom": "^6.16.0", "react-router-dom": "^6.22.3",
"react-use-konami": "^1.1.0", "react-use-konami": "^1.1.0",
"remark-gfm": "^4.0.0",
"rx-player": "^4.0.0",
"shaka-player": "^4.7.11",
"tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log#v1", "tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log#v1",
"tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store", "tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store",
"uuid": "^9.0.1", "typescript": "^5.4.2",
"vite-plugin-svgr": "^4.0.0", "vite-plugin-svgr": "^4.2.0",
"wavesurfer.js": "^7.3.2", "wavesurfer.js": "^7.7.5",
"zustand": "^4.4.1" "zustand": "^4.5.2"
}, },
"devDependencies": { "devDependencies": {
"@tauri-apps/cli": "^1.4.0", "@biomejs/biome": "^1.6.1",
"@vitejs/plugin-react": "^4.1.0", "@tauri-apps/cli": "^1.5.11",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-refresh": "^0.4.6",
"prop-types": "^15.8.1", "prop-types": "^15.8.1",
"sass": "^1.68.0", "sass": "^1.72.0",
"vite": "^4.4.9", "vite": "^5.1.6",
"vite-plugin-compression": "^0.5.1" "vite-plugin-compression": "^0.5.1"
}, },
"license": "GPL-3.0-only" "license": "GPL-3.0-only"
+3109 -766
View File
File diff suppressed because it is too large. Load diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 30 KiB

+7 -7
View File
@@ -1,20 +1,20 @@
<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"> <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" width="146.79" height="146.79" fill="url(#pattern0)"/> <rect x="50" y="50.0024" width="145.46" height="145.46" fill="url(#pattern0)"/>
<g clip-path="url(#clip0_504_8)"> <g clip-path="url(#clip0_504_8)">
<rect x="236.79" y="50.6626" width="860" height="81.4648" fill="url(#pattern1)"/> <rect x="235.46" y="50" 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 <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> </g>
<defs> <defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1"> <pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_504_8" transform="scale(0.000806452)"/> <use xlink:href="#image0_504_8" transform="scale(0.000661376)"/>
</pattern> </pattern>
<pattern id="pattern1" patternContentUnits="objectBoundingBox" width="1" height="1"> <pattern id="pattern1" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image1_504_8" transform="scale(0.000244141 0.00257732)"/> <use xlink:href="#image1_504_8" transform="scale(0.000244141 0.00257732)"/>
</pattern> </pattern>
<clipPath id="clip0_504_8"> <clipPath id="clip0_504_8">
<rect width="910" height="145.465" fill="white" transform="translate(236.79 50.6626)"/> <rect width="910" height="145.465" fill="white" transform="translate(235.46 50)"/>
</clipPath> </clipPath>
<image id="image0_504_8" width="1240" height="1240" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABNgAAATYCAYAAADNtnp8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAB1GVSURBVHgB7P1tsGXndd8Hrv1yzr3dDVCQZb1RfLmw9WJFkxIY2ZYlxSYgKYokkyJB0RIVOUJD4osdWyEQjyJVZaK+cKWUqXIsAjOZ1ExlJmh64onjiYt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ADuTs6mx6NN07wgAAAAAAAAXwESbPA1Yf2KHhYAgLuTk+nxOfqzAQAAAADAawHBBl8rpwIAcPdzfXp8fpJsNwQAAAAAAOBVoEQUviYYbgAA9yBn0+OppmluCgAAAAAAQIAEG3zVTHLtg4JcA4B7j5PpkUpGn6dsFAAAAAAAIgg2+Fq4LgAA9y4Pi5aN0p8NAAAAAAAylIjCV4X9Y/LzAgAAiTOhbBQAAAAA4J6HBBt8tTwsAADgnIiWjX7eyucBAAAAAOAeBMEGXy2PCQAALDmZHp+hbBQAAAAA4N6EElF4zVAeCgDwmjmdHs80TfOiAAAAAADAXQ8JNvhqeFgAAOC1cDo9Pjf9HxPXBQAAAAAA7noQbPDVQH8hAIDXzonU/mwnAgAAAAAAdy2UiMJrYvrH4QPTl38mAADwtXJTdOLomQAAAAAAwF0FCTZ4rTwsALine truncated <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++W4keRaDi7Yi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_8" width="4096" height="388" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAAAGECAYAAAC2K+WjAAAAAXNSR0IArs4c6QAAIABJREFUeF7svQmcJVdZ9/97emayh+wgAQImYdFX4VUU1D8I+soivqgvEGRfBBISkkBCNiDIyE7YAtkTkrAFkoxECCKIiOAGCqIEBaJhM2HLnsns032f/+fcqrp1qm7d7tvTVfdW3f7W55PMdNU5z/Oc77l9p/vc8/sdExcEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACUydgU6+AAiAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhAQBgC8CCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAi0ggAFACyaBEiAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhgA8BqAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQi0gAAGAC2YBEqAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhgAMBrAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQg0A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CMTRZkQgAAEVkAAA4AVwKMrBCAAgQoC6Qne4VSIukW830kNOYMTPRcEIDBDBNz9MElXSHpUzcMKot2zzeyUmuMSboIEMACYIGxSrYTAjyWFU3LCZuavSfoPScEMNJgYhf+2s7l5JXjpu9oJYACw2l8BjB8CEIAABKZN4GodtWb+4EP/xExnSgri4lHX5h3z/vPPv+O94fAVLghAYIoE3P2zkn5HUt377/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 <image id="image1_504_8" width="4096" height="388" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAAAGECAYAAAC2K+WjAAAAAXNSR0IArs4c6QAAIABJREFUeF7svQmcJVdZ9/97emayh+wgAQImYdFX4VUU1D8I+soivqgvEGRfBBISkkBCNiDIyE7YAtkTkrAFkoxECCKIiOAGCqIEBaJhM2HLnsns032f/+fcqrp1qm7d7tvTVfdW3f7W55PMdNU5z/Oc77l9p/vc8/sdExcEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACUydgU6+AAiAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhAQBgC8C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9dr2c32rqFb2pht+3bdmzZtm4v37b5p0dsX6/1HBozsXeM5SeqewFi+RXQozYCGADUhpJA0yWAAcB0+TeWHQOAxtLine truncated
</defs> </defs>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 863 KiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

After

Width:  |  Height:  |  Size: 503 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 KiB

After

Width:  |  Height:  |  Size: 889 KiB

+17 -19
View File
@@ -1,22 +1,20 @@
<svg width="1155" height="1264" viewBox="0 0 1155 1264" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="1512" height="1512" viewBox="0 0 1512 1512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M968.546 551.878C981.951 559.555 993.091 570.638 1000.84 584.005C1008.59 597.372 1012.67 612.549 1012.67 628C1012.67 643.451 1008.59 658.628 1000.84 671.995C993.091 685.362 981.951 696.445 968.546 704.122L272.816 1107.92C215.959 1140.95 138 1103.21 138 1031.79V628V224.205C138 152.787 215.959 115.054 272.816 148.084L620.681 349.981L968.546 551.878Z" fill="url(#pattern0)"/> <rect width="1512" height="1512" rx="756" fill="url(#paint0_radial_33_14)"/>
<g filter="url(#filter0_d_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="M138 628V1031.79C138 1103.21 215.959 1140.95 272.816 1107.92L968.546 704.122C981.951 696.445 993.091 685.362 1000.84 671.995C1008.59 658.628 1012.67 643.451 1012.67 628C1012.67 612.549 1008.59 597.372 1000.84 584.005C993.091 570.638 981.951 559.555 968.546 551.878L620.681 349.981M138 628V224.205C138 152.787 215.959 115.054 272.816 148.084L620.681 349.981M138 628L620.681 349.981" stroke="white" stroke-width="100" shape-rendering="crispEdges"/> <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)"/>
</g> <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> <defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1"> <radialGradient id="paint0_radial_33_14" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1512 1512) rotate(-135) scale(2138.29)">
<use xlink:href="#image0_33_14" transform="translate(-0.0625001 1) scale(0.000274658 0.000244141) rotate(-90)"/> <stop/>
</pattern> <stop offset="1" stop-color="#474747"/>
<filter id="filter0_d_33_14" x="0" y="0.237759" width="1154.67" height="1263.52" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> </radialGradient>
<feFlood flood-opacity="0" result="BackgroundImageFix"/> <linearGradient id="paint1_linear_33_14" x1="485.631" y1="369.315" x2="1173.63" y2="1143.82" gradientUnits="userSpaceOnUse">
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/> <stop stop-color="#FB2576"/>
<feOffset dx="2" dy="4"/> <stop offset="0.697961" stop-color="#150050"/>
<feGaussianBlur stdDeviation="45"/> </linearGradient>
<feComposite in2="hardAlpha" operator="out"/> <linearGradient id="paint2_linear_33_14" x1="485.631" y1="369.315" x2="1173.63" y2="1143.82" gradientUnits="userSpaceOnUse">
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/> <stop stop-color="#FB2576"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_33_14"/> <stop offset="0.697961" stop-color="#150050"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_33_14" result="shape"/> </linearGradient>
</filter>
<image id="image0_33_14" width="4096" height="4096" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAABAACAYAAADyoyQXAAAAAXNSR0IArs4c6QAAIABJREFUeF7s/QmS5DquNIxm3V7I/63jvv0v6556poEiAGJwJ6nIrNPV1nYqU8LgcAxSKETmr//39f/7/fX19fXr+I/5nz2WySD6nh9ED5GRthF5RIbF69scjzK8ormJ5CpeGPuI7AyvqM6af+1F/ub5n/XVWmjWvvUbYUPyjcqgcihPsZx/BuFqhRfUPtrvckwivRzJZ7lFsDD61RSq4mB8Ididyw10Dcpqtbp+IT3t4fJ6esex3RxUOcowV7zOzKHKJst1hb/y90YMKOdIbVb4URtoXc3yv2qf5ext+YyHFc4Zu4wsywdjm5X9SVhY7JH8+YFow/9W7WD6WirT6edmdDQhkR//+O8ve1z+np37MpqjbBSV1dS/X1oR2jxW6THGPtrmOIgzWduJObkiG6NvGmNe4loZdXy/nu0YA+qvlutZ1PXn47mZ+R8RQxtu/zce+/0/okZuOcnqbzsY//n6ksceWSH34HKG6hnB9f/rf8pny6rh5JS5PZmiUb/+6vx4Vff7PPhb4W8wxlo0tXX8arDaaeD6PHR+j3PjxGFm85DPX52oWHb06svmNd15QOwZbkQctppdTm55a+VOj2Kl1wniU9eWz7o3E+Me9KdMr1+L+feRsyCvIceyHwJu4jrNMuddGTxWbjm3t3JuIn6iq5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MVeYvpzhtUYt0SJC5t6uPDNXgpHxjkI80rjF8Hira/tcpt/zj1nGpOLYkCqorvurGHpFVp7mcrRi1dPdFe9uXN60/ZUub34Pwaxl6MPqrHGlt+ZpTVsHMG/Lf9LK0oP79yVxfR9Zrl9bryVyRkb9uacJ2k6MisGLZphBXPtHvXZe46ebtbfDCiqFyV24mAygdrNasVWG2rywYtKMFCZbcY9WNTLT0CgrTDq763EyWR1nCdp7KM699YCiw/K3VuNSm+nOeH7jFYXXFJenCNtaTTWrPhYcIS5ZXZvnLM1p9ejX9JGcYzWZ54O943pffpU3ZBrsiGIvzh2IfqIN/BMnLvkT4/xvxvQ3czr7a88MJypJOPyuXNR+awkm8r3WYs+cH066eZ3TqmruOO9bTv2Zk8x3EzNx4Drc817crvw711gFurYDhw9qcbsQYRu+sxB/iV4i6/reT10ymkOef3lswNEqyVGcw+LjlkcVnucXs5j+DjX6a+9eZvuGAoEtswFA76Kx/iRPDWL/95a3GwCcH5HbuY7w0JO6snuvcyNn46LwMSa5OULDK31dfvoZrw40Nr0Y/ZlhdhMAZwOAU/PsA7GI/l7w/+tOjNqA4Obp2Vyg8XYu+L82BThZ+8+9QcA/PSMeZ7a+vJzJfLeftZz10ae4lOucSXndWV6+rS9bTxaz4vKuIRm7rVGNUdeLxJzWor8BwEWEN6ZlUdmLXnYuu0BaPcSOd0kcCz4boP4ldQZL5tfHOUaY+fX4iG4JKu522vIuZJV/VIeJzw5Y79Lv45JjZNSqYom4tNgZzr0+YfWRGkYxonJVD4yjVfON6+c9Xc2FqK68umRld8uv1B/Cg52AMzMomutoDdquQ/Wy3otymeVn1h4zp2Z9MP2P+GDsZdft1XPenF61ic7kqu6yGkLPvRHfim+kNhD+0evrbPxMbnZgyXCuYmFsM7JMLLine truncated
</defs> </defs>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 4.9 MiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 451 KiB

After

Width:  |  Height:  |  Size: 451 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 28 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: 23 KiB

After

Width:  |  Height:  |  Size: 25 KiB

+3 -6
View File
@@ -1,8 +1,5 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": ["config:base", ":disableDependencyDashboard"],
"config:base", "labels": ["dependencies"]
":disableDependencyDashboard"
],
"labels": ["dependencies"],
} }
+6 -5
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "jellyplayer" name = "jellyplayer"
version = "1.0.0" version = "0.0.5-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"
@@ -12,16 +12,17 @@ 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.4.1", features = [] } tauri-build = { version = "1.5.1", features = [] }
[dependencies] [dependencies]
log = "^0.4.20" log = "^0.4.20"
serde_json = "1.0" serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.5.0", features = [ "http-all", "devtools", "process-exit", "process-relaunch", "shell-all", "window-set-fullscreen", "http-all"] } tauri = { version = "1.6.1", features = [ "window-all", "updater", "http-all", "process-exit", "process-relaunch", "shell-all", "http-all"] }
tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" } tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
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 = "v1" }
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev", features = ["colored"] } tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1", features = ["colored"] }
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
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
[features] [features]
Binary file not shown.

Before

Width:  |  Height:  |  Size: 411 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 88 KiB

+1 -17
View File
@@ -1,20 +1,7 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use tauri::Manager;
use tauri::{utils::config::AppUrl, WindowUrl}; use tauri::{utils::config::AppUrl, WindowUrl};
use tauri_plugin_log::{fern::colors::ColoredLevelConfig, LogTarget}; use tauri_plugin_log::{fern::colors::ColoredLevelConfig, LogTarget};
// Create the command:
// This command must be async so that it doesn't run on the main thread.
#[tauri::command]
async fn close_splashscreen(window: tauri::Window) {
// Close splashscreen
if let Some(splashscreen) = window.get_window("splashscreen") {
splashscreen.close().unwrap();
}
// Show main window
window.get_window("main").unwrap().show().unwrap();
}
// Tauri by default uses HTTPS, so use the localhost plugin to downgrade back to // 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 // HTTP. However, when running tauri dev, we already have a localhost server
// provided by vite, so don't enable it // provided by vite, so don't enable it
@@ -52,10 +39,7 @@ fn main() {
.build(), .build(),
) )
.plugin(tauri_plugin_store::Builder::default().build()) .plugin(tauri_plugin_store::Builder::default().build())
.invoke_handler(tauri::generate_handler![close_splashscreen]) // .plugin(tauri_plugin_window_state::Builder::default().build())
.run(context) .run(context)
.expect("error while running JellyPlayer"); .expect("error while running JellyPlayer");
// tauri::Builder::default()
// .run(tauri::generate_context!())
// .expect("error while running tauri application");
} }
+35 -31
View File
@@ -8,7 +8,7 @@
}, },
"package": { "package": {
"productName": "JellyPlayer", "productName": "JellyPlayer",
"version": "1.0.0" "version": "../package.json"
}, },
"tauri": { "tauri": {
"allowlist": { "allowlist": {
@@ -19,6 +19,7 @@
"relaunchDangerousAllowSymlinkMacos": false "relaunchDangerousAllowSymlinkMacos": false
}, },
"window": { "window": {
"all": true,
"setFullscreen": true "setFullscreen": true
}, },
"shell": { "shell": {
@@ -27,12 +28,7 @@
"http": { "http": {
"all": true, "all": true,
"request": true, "request": true,
"scope": [ "scope": ["http://**", "http://*", "https://**", "https://*"]
"http://**",
"http://*",
"https://**",
"https://*"
]
} }
}, },
"bundle": { "bundle": {
@@ -51,7 +47,7 @@
"icons/icon.ico" "icons/icon.ico"
], ],
"identifier": "com.jellyplayer.prayag17", "identifier": "com.jellyplayer.prayag17",
"longDescription": "A Modern Jellyfin Client for Jellyfin", "longDescription": "A modern desktop client for Jellyfin",
"macOS": { "macOS": {
"entitlements": null, "entitlements": null,
"exceptionDomain": "", "exceptionDomain": "",
@@ -60,51 +56,59 @@
"signingIdentity": null "signingIdentity": null
}, },
"resources": [], "resources": [],
"shortDescription": "A Modern Jellyfin Client for Jellyfin", "shortDescription": "JellyPlayer",
"targets": "all", "targets": ["deb", "appimage", "nsis", "app", "dmg", "updater"],
"windows": { "windows": {
"certificateThumbprint": null, "certificateThumbprint": null,
"digestAlgorithm": "sha256", "digestAlgorithm": "sha256",
"timestampUrl": "", "timestampUrl": "",
"wix": {
"bannerPath": "../public/installerBanner.bmp",
"dialogImagePath": "../public/installerDialog.bmp"
},
"nsis": { "nsis": {
"sidebarImage": "../public/installerSideBarImage.bmp", "sidebarImage": "../public/installerSideBarImage.bmp",
"headerImage": "../public/installerHeaderImage.bmp", "headerImage": "../public/installerHeaderImage.bmp",
"installerIcon": "icons/icon.ico" "installerIcon": "icons/icon.ico"
},
"webviewInstallMode": {
"silent": true,
"type": "offlineInstaller"
} }
},
"appimage": {
"bundleMediaFramework": true
} }
}, },
"security": { "security": {
"csp": null "csp": null,
"dangerousRemoteDomainIpcAccess": [
{
"domain": "**",
"windows": ["main"],
"enableTauriAPI": true
},
{
"domain": "*",
"windows": ["main"],
"enableTauriAPI": true
}
]
}, },
"updater": { "updater": {
"active": false "active": true,
"endpoints": [
"https://raw.githack.com/prayag17/JellyPlayer/main/latest.json"
],
"dialog": false,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDk5QkE0QjMzOEQyRUI5M0MKUldROHVTNk5NMHU2bVMvS3VNRWZHRzhuWE1TRlg3WHI1VHBtZjFvVy80alZ2UHc4T3BqcHVGOWwK"
}, },
"windows": [ "windows": [
{
"width": 800,
"height": 300,
"center": true,
"decorations": false,
"resizable": false,
"url": "splash.html",
"label": "splashscreen",
"title": "JellyPlayer",
"visible": true,
"transparent": true
},
{ {
"fullscreen": false, "fullscreen": false,
"height": 600, "height": 600,
"width": 800, "width": 800,
"resizable": true, "resizable": true,
"title": "JellyPlayer", "title": "JellyPlayer",
"visible": false, "visible": true,
"center": true "center": true,
"label": "main"
} }
] ]
} }
-580
View File
@@ -1,580 +0,0 @@
/** @format */
import React, { useState, useEffect } from "react";
import useKonami from "react-use-konami";
import { ThemeProvider } from "@mui/material/styles";
import { SnackbarProvider, useSnackbar } from "notistack";
import {
Routes,
Route,
useNavigate,
useLocation,
Outlet,
} from "react-router-dom";
import { AnimatePresence, motion } from "framer-motion";
import { EventEmitter as event } from "./eventEmitter.js";
import { relaunch } from "@tauri-apps/api/process";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
// Theming
import CssBaseline from "@mui/material/CssBaseline";
import { theme } from "./theme";
import "./styles/global.scss";
// MUI
import Dialog from "@mui/material/Dialog";
import DialogActions from "@mui/material/DialogActions";
import DialogContent from "@mui/material/DialogContent";
import DialogContentText from "@mui/material/DialogContentText";
import DialogTitle from "@mui/material/DialogTitle";
import Button from "@mui/material/Button";
import Slide from "@mui/material/Slide";
import LinearProgress from "@mui/material/LinearProgress";
// Routes
import { ServerSetup, ServerList } from "./routes/setup/server";
import Home from "./routes/home";
import { UserLogin, LoginWithImage, UserLoginManual } from "./routes/login";
import LibraryView from "./routes/library";
import ItemDetail from "./routes/item";
import SeriesTitlePage from "./routes/series/index.jsx";
import FavoritePage from "./routes/favorite/index.jsx";
import Settings from "./routes/settings";
import About from "./routes/about";
import SearchPage from "./routes/search";
import { VideoPlayer } from "./routes/player/videoPlayer.jsx";
import { SideMenu } from "./components/menu/sidemenu.jsx";
import { AppBar } from "./components/appBar/appBar.jsx";
// Fonts
import "@fontsource/noto-sans/100.css";
import "@fontsource/noto-sans/100-italic.css";
import "@fontsource/noto-sans/200.css";
import "@fontsource/noto-sans/200-italic.css";
import "@fontsource/noto-sans/300.css";
import "@fontsource/noto-sans/300-italic.css";
import "@fontsource/noto-sans/400.css";
import "@fontsource/noto-sans/400-italic.css";
import "@fontsource/noto-sans/500.css";
import "@fontsource/noto-sans/500-italic.css";
import "@fontsource/noto-sans/600.css";
import "@fontsource/noto-sans/600-italic.css";
import "@fontsource/noto-sans/700.css";
import "@fontsource/noto-sans/700-italic.css";
import "@fontsource/noto-sans/800.css";
import "@fontsource/noto-sans/800-italic.css";
import "@fontsource/noto-sans/900.css";
import "@fontsource/noto-sans/900-italic.css";
// Jellyfin SDK TypeScript
import {
Jellyfin,
VersionOutdatedIssue,
VersionUnsupportedIssue,
} from "@jellyfin/sdk";
import { version as appVer } from "../package.json";
import { v4 as uuidv4 } from "uuid";
import { delServer, getServer } from "./utils/storage/servers.js";
import { delUser, getUser } from "./utils/storage/user.js";
import { useBackdropStore } from "./utils/store/backdrop.js";
import {
usePlaybackDataLoadStore,
usePlaybackStore,
} from "./utils/store/playback.js";
import BoxSetTitlePage from "./routes/boxset/index.jsx";
import PersonTitlePage from "./routes/person/index.jsx";
import MusicAlbumTitlePage from "./routes/album/index.jsx";
import AudioPlayer from "./components/playback/audioPlayer/index.jsx";
import { useAudioPlayback } from "./utils/store/audioPlayback.js";
import ArtistTitlePage from "./routes/artist/index.jsx";
import EpisodeTitlePage from "./routes/episode/index.jsx";
import PlaylistTitlePage from "./routes/playlist/index.jsx";
// Initial custom axios client to use tauri's http module
import axios from "axios";
import axiosTauriApiAdapter from "axios-tauri-api-adapter";
const axiosClient = axios.create({
adapter: axiosTauriApiAdapter,
headers: { "Access-Control-Allow-Origin": "*" },
timeout: 60000,
});
const deviceId = localStorage.getItem("deviceId");
if (!deviceId) {
localStorage.setItem("deviceId", uuidv4());
}
const jellyfin = new Jellyfin({
clientInfo: {
name: "JellyPlayer",
version: appVer,
},
deviceInfo: {
name: "JellyPlayer",
id: deviceId,
},
});
event.on("create-jellyfin-api", (serverAddress) => {
window.api = jellyfin.createApi(serverAddress, null, axiosClient);
// window.api = jellyfin.createApi(serverAddress);
});
event.on("set-api-accessToken", (serverAddress) => {
window.api = jellyfin.createApi(
serverAddress,
sessionStorage.getItem("accessToken"),
axiosClient,
);
});
const anim = {
initial: {
transform: "scale(0.98)",
opacity: 0,
},
animate: {
transform: "scale(1)",
opacity: 1,
},
exit: {
transform: "sscale(1.02)",
opacity: 0,
},
};
const AnimationWrapper = () => {
return (
<motion.div
className="root-page"
variants={anim}
initial="initial"
animate="animate"
exit="exit"
transition={{
duration: 0.25,
ease: "easeInOut",
}}
>
<Outlet />
</motion.div>
);
};
function App() {
const navigate = useNavigate();
const [serverReachable, setServerReachable] = useState(true);
const [playbackDataLoading] = usePlaybackDataLoadStore((state) => [
state.isLoading,
]);
const { enqueueSnackbar } = useSnackbar();
const createApi = async () => {
const server = await getServer();
event.emit("create-jellyfin-api", server.Ip);
};
const serverAvailable = async () => {
const server = await getServer();
if (server == null) {
return false;
} else {
return true;
}
};
const usersAvailable = async () => {
const users = await getUserApi(window.api).getPublicUsers();
if (users.status == 200 || users.data.length >= 1) {
return true;
} else {
return false;
}
};
const userSaved = async () => {
const user = await getUser();
if (user == null) {
return false;
} else {
return true;
}
};
const pingServer = async () => {
const server = await getServer();
try {
const result = await axios.get(
new URL(`${server.Ip}/System/Ping`).href,
);
if (result.data == "Jellyfin Server") {
event.emit("create-jellyfin-api", server.Ip);
setServerReachable(true);
} else {
setServerReachable(false);
}
} catch (error) {
setServerReachable(false);
enqueueSnackbar("Unable to verfiy server address.", {
variant: "error",
});
console.error(error);
}
};
const userLogin = async () => {
const user = await getUser();
const auth = await api.authenticateUserByName(
user.Name,
user.Password,
);
sessionStorage.setItem("accessToken", auth.data.AccessToken);
event.emit("set-api-accessToken", window.api.basePath);
};
const LogicalRoutes = () => {
serverAvailable().then(async (server) => {
if (server == true) {
createApi().then(() => {
pingServer();
if (serverReachable == true) {
userSaved().then((user_available) => {
if (user_available == true) {
navigate("/home");
} else {
usersAvailable().then(
(users_list_available) => {
if (
users_list_available ==
true
) {
navigate("/login/users");
} else {
navigate(
"/login/manual",
);
}
},
);
}
});
}
});
} else {
navigate("/setup/server");
}
});
};
const LoginLogicalRoutes = () => {
usersAvailable().then((users_list_available) => {
if (users_list_available == true) {
navigate("/login/users");
} else {
navigate("/login/manual");
}
});
};
const handleRelaunch = async (event, reason) => {
if (reason && reason == "backdropClick") {
return;
}
await relaunch();
};
const handleRemoveServer = async () => {
await delServer();
await delUser();
await relaunch();
};
const location = useLocation();
useEffect(() => {
window.scrollTo(0, 0);
}, [location.key]);
if (!window.api) {
serverAvailable().then((available) => {
if (available) {
createApi().then(
userSaved().then((userSavedBool) => {
if (userSavedBool) {
userLogin();
}
}),
);
}
});
}
const [audioPlayerVisible, currentAudioIndex] = useAudioPlayback(
(state) => [state.display, state.currentTrack],
);
const [backdropUrl, backdropId] = useBackdropStore((state) => [
state.backdropUrl,
state.backdropId,
]);
const [backdropLoading, setBackdropLoading] = useState(true);
const [easterEgg, setEasterEgg] = useState(false);
const sixtyNine = () => {
setEasterEgg(true);
};
useKonami(sixtyNine, {
code: [
"ArrowUp",
"ArrowUp",
"ArrowDown",
"ArrowDown",
"ArrowLeft",
"ArrowRight",
"ArrowLeft",
"ArrowRight",
"b",
"a",
],
});
return (
<SnackbarProvider maxSnack={5}>
<ThemeProvider theme={theme}>
{playbackDataLoading && (
<LinearProgress
sx={{
position: "fixed",
top: 0,
left: 0,
right: 0,
width: "100vw",
zIndex: 100000,
}}
/>
)}
<Dialog
open={easterEgg}
onClose={() => setEasterEgg(false)}
sx={{
background: "black",
}}
>
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1&disablekb=1"
title="EasterEgg"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
></iframe>
</Dialog>
<Slide
direction="up"
in={easterEgg}
mountOnEnter
unmountOnExit
>
<img
src="https://i.gifer.com/PYh.gif"
width={320}
height={320}
style={{
zIndex: "99999999",
position: "fixed",
bottom: 0,
left: 0,
objectFit: "cover",
}}
/>
</Slide>
{/* Show Dialog if server not reachable */}
<Dialog
open={!serverReachable}
onClose={handleRelaunch}
aria-labelledby="alert-dialog-text"
aria-describedby="alert-dialog-desc"
maxWidth="md"
sx={{
padding: "1em",
}}
>
<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 onClick={handleRemoveServer}>
Remove Server
</Button>
<Button onClick={handleRelaunch}>
Restart JellyPlayer
</Button>
</DialogActions>
</Dialog>
<div className="app-backdrop-container">
<AnimatePresence>
<motion.img
key={backdropId}
src={backdropUrl}
alt=""
className="app-backdrop"
initial={{
opacity: 0,
}}
animate={{
opacity: backdropLoading ? 0 : 0.5,
}}
exit={{
opacity: 0,
}}
transition={{
duration: 0.5,
ease: "easeInOut",
}}
onLoad={() => setBackdropLoading(false)}
loading="eager"
style={{
transition: "opacity 1s",
}}
/>
</AnimatePresence>
</div>
<div
style={{
display: "flex",
width: "100vw",
paddingBottom: audioPlayerVisible ? "8em" : "0",
transition: "padding 250ms",
}}
>
<CssBaseline />
<SideMenu />
<AppBar />
<AudioPlayer key={audioPlayerVisible} />
<Routes key={location.key} location={location}>
<Route element={<AnimationWrapper />}>
<Route
path="/"
element={<LogicalRoutes />}
/>
<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
exact
path="/library/:id"
element={<LibraryView />}
/>
<Route
exact
path="/item/:id"
element={<ItemDetail />}
/>
<Route
exact
path="/musicalbum/:id"
element={<MusicAlbumTitlePage />}
/>
<Route
exact
path="/artist/:id"
element={<ArtistTitlePage />}
/>
<Route
exact
path="/boxset/:id"
element={<BoxSetTitlePage />}
/>
<Route
exact
path="/episode/:id"
element={<EpisodeTitlePage />}
/>
<Route
exact
path="/person/:id"
element={<PersonTitlePage />}
/>
<Route
exact
path="/playlist/:id"
element={<PlaylistTitlePage />}
/>
<Route
path="/series/:id"
element={<SeriesTitlePage />}
/>
<Route
path="/search"
element={<SearchPage />}
/>
<Route
path="/favorite"
element={<FavoritePage />}
/>
<Route
path="/settings"
element={<Settings />}
/>
<Route path="/about" element={<About />} />
<Route
path="/player"
element={<VideoPlayer />}
/>
<Route
path="/login"
element={<LoginLogicalRoutes />}
/>
</Route>
</Routes>
</div>
<ReactQueryDevtools />
</ThemeProvider>
</SnackbarProvider>
);
}
export default App;
+530
View File
@@ -0,0 +1,530 @@
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.jsx";
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 } 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]);
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={{
duration: 0.8,
ease: "easeInOut",
}}
onLoadCapture={() => {
setBackdropLoading(true);
}}
onLoad={() => {
setBackdropLoading(false);
}}
loading="eager"
style={{
transition: "opacity 0.8s",
}}
/>
</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 key={location.key}>
<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 />} />
</Route>
</Routes>
</ErrorBoundary>
</div>
<ReactQueryDevtools buttonPosition="bottom-right" position="left" />
</ThemeProvider>
</SnackbarProvider>
);
}
export default App;
Binary file not shown.

After

Width:  |  Height:  |  Size: 889 KiB

+20
View File
@@ -0,0 +1,20 @@
<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>

After

Width:  |  Height:  |  Size: 1.8 KiB

+3
View File
@@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.35913 16.4525H9.06241V14.59H8.38159V14.3291H10.0399V14.59H9.35913V16.4525ZM6.24451 16.4525H5.91463L6.83534 14.3291H7.10524L8.01752 16.4525H7.68135L7.46509 15.9306H6.45758L6.24451 16.4525ZM11.9524 15.9606H11.9582L12.5853 14.3291H13.0472V16.4525H12.75V14.6769H12.7442L12.0392 16.4525H11.8503L11.1479 14.6769H11.1427V16.4525H10.8544V14.3291H11.3163L11.9524 15.9606ZM16.0182 15.3877C16.0182 15.5439 15.9909 15.687 15.9367 15.817C15.8825 15.9475 15.8078 16.0595 15.7131 16.1537C15.6178 16.2479 15.5047 16.321 15.3737 16.3731C15.2427 16.4252 15.0996 16.4515 14.946 16.4515C14.7918 16.4515 14.6498 16.4252 14.5199 16.3731C14.3894 16.321 14.2768 16.2479 14.1815 16.1537C14.0868 16.0595 14.0121 15.9475 13.9595 15.817C13.9058 15.687 13.8795 15.5439 13.8795 15.3877C13.8795 15.2298 13.9058 15.0862 13.9595 14.9557C14.0121 14.8258 14.0868 14.7142 14.1815 14.6222C14.2768 14.5301 14.3894 14.458 14.5199 14.407C14.6498 14.3554 14.7918 14.3301 14.946 14.3301C15.0996 14.3301 15.2427 14.3554 15.3737 14.407C15.5047 14.458 15.6178 14.5301 15.7131 14.6222C15.8078 14.7142 15.8825 14.8258 15.9367 14.9557C15.9909 15.0862 16.0182 15.2298 16.0182 15.3877ZM17.8302 14.7547C17.7902 14.7 17.736 14.6548 17.6676 14.6195C17.5992 14.5843 17.5224 14.5669 17.4372 14.5669C17.3914 14.5669 17.3451 14.5732 17.2988 14.5853C17.252 14.5974 17.2099 14.6174 17.172 14.6453C17.1336 14.6727 17.1026 14.7068 17.0789 14.7479C17.0552 14.7884 17.0436 14.8373 17.0436 14.8947C17.0436 14.9499 17.0542 14.9957 17.0763 15.033C17.0984 15.0699 17.1273 15.1014 17.1647 15.1267C17.2015 15.1525 17.2457 15.1746 17.2956 15.1925C17.3462 15.2109 17.3998 15.2293 17.4566 15.2482C17.525 15.2693 17.5945 15.293 17.665 15.3193C17.735 15.3461 17.7991 15.3813 17.856 15.425C17.9128 15.4687 17.9596 15.5234 17.9954 15.5886C18.0317 15.6544 18.0501 15.7375 18.0501 15.8385C18.0501 15.9427 18.0301 16.0337 17.9912 16.1105C17.9523 16.1873 17.9007 16.251 17.836 16.3015C17.7713 16.352 17.6966 16.3894 17.6119 16.4141C17.5277 16.4388 17.4409 16.4515 17.3514 16.4515C17.2241 16.4515 17.101 16.4262 16.9821 16.3773C16.8632 16.3278 16.7648 16.2547 16.6869 16.1579L16.9063 15.9722C16.9542 16.0427 17.0179 16.0995 17.0978 16.1432C17.1773 16.1868 17.2641 16.2089 17.3572 16.2089C17.4045 16.2089 17.4519 16.2021 17.4998 16.1889C17.5471 16.1758 17.5903 16.1547 17.6292 16.1263C17.6681 16.0979 17.7002 16.0621 17.725 16.0195C17.7492 15.9764 17.7618 15.9248 17.7618 15.8638C17.7618 15.8033 17.7492 15.7522 17.7234 15.7112C17.6976 15.6707 17.6629 15.636 17.6192 15.607C17.5755 15.5792 17.5245 15.5544 17.4666 15.5344C17.4088 15.5144 17.3472 15.4944 17.283 15.4734C17.2183 15.4545 17.1546 15.4308 17.092 15.4034C17.0294 15.3761 16.9731 15.3408 16.9237 15.2982C16.8742 15.2551 16.8342 15.2025 16.8037 15.1399C16.7732 15.0772 16.7585 14.9989 16.7585 14.9063C16.7585 14.8052 16.7785 14.719 16.8195 14.6464C16.8606 14.5743 16.9137 14.5143 16.9795 14.4669C17.0447 14.4196 17.1194 14.3849 17.2015 14.3628C17.2846 14.3412 17.3677 14.3301 17.4514 14.3301C17.5692 14.3301 17.6792 14.3512 17.7818 14.3928C17.8844 14.4348 17.967 14.4906 18.0296 14.5611L17.8302 14.7547ZM15.7131 15.3877C15.7131 15.2777 15.6947 15.1735 15.6589 15.0757C15.6226 14.9778 15.5716 14.8915 15.5047 14.8173C15.4379 14.7432 15.3579 14.6848 15.2638 14.6421C15.1696 14.5995 15.0638 14.5779 14.946 14.5779C14.8297 14.5779 14.7245 14.5995 14.6309 14.6421C14.5367 14.6848 14.4567 14.7432 14.3915 14.8173C14.3257 14.8915 14.2747 14.9778 14.2384 15.0757C14.2026 15.1735 14.1847 15.2777 14.1847 15.3877C14.1847 15.5002 14.2026 15.6055 14.2384 15.7044C14.2747 15.8033 14.3262 15.8896 14.3925 15.9622C14.4593 16.0358 14.5393 16.0932 14.6324 16.1348C14.725 16.1768 14.8297 16.1979 14.946 16.1979C15.0617 16.1979 15.167 16.1768 15.2622 16.1348C15.3574 16.0932 15.4379 16.0358 15.5047 15.9622C15.5716 15.8896 15.6226 15.8033 15.6589 15.7044C15.6947 15.6055 15.7131 15.5002 15.7131 15.3877ZM6.5628 15.6696H7.35725L6.96107 14.6737L6.5628 15.6696ZM23.2282 8.9832L22.3075 11.0524L21.3868 8.9832H20.6155L21.9218 11.9195L21.8861 11.9968L21.603 12.6355C21.6024 12.6371 21.602 12.6387 21.6014 12.6408C21.5167 12.8302 21.2931 12.9165 21.1037 12.8318L21.0027 12.7865L20.8048 13.23L20.7176 13.4268L20.7186 13.4273L20.9633 13.5368C21.4226 13.7414 21.9644 13.5331 22.1696 13.0722C22.1717 13.0685 23.8427 9.33412 24 8.9832H23.2282ZM16.799 7.54741H16.0924V12.2131H16.799V7.54741ZM19.0245 8.98214C18.6809 8.98214 18.3626 9.08999 18.1011 9.27308V7.54741H17.393V12.2131H18.1011V11.921C18.3626 12.1041 18.6809 12.212 19.0245 12.212C19.9147 12.212 20.6392 11.4881 20.6392 10.5973C20.6392 9.70662 19.9147 8.98214 19.0245 8.98214ZM14.0206 8.98214C13.1304 8.98214 12.4054 9.70608 12.4054 10.5968C12.4054 11.4875 13.1304 12.212 14.0206 12.212C14.9113 12.212 15.6357 11.4875 15.6357 10.5968C15.6357 9.70608 14.9113 8.98214 14.0206 8.98214ZM9.7169 7.54688H8.03332V12.2078H9.7169C11.0017 12.2078 12.0471 11.1618 12.0471 9.87706C12.0471 8.59175 11.0017 7.54688 9.7169 7.54688ZM6.62174 12.2072H5.93513C4.Line truncated
</svg>

After

Width:  |  Height:  |  Size: 5.8 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_358)">
<path d="M7.62939e-06 3.57031H2.51845C7.12551 3.57031 10.9286 7.35238 10.9286 12.0023C10.9286 16.6415 7.12551 20.4289 2.51845 20.4289H7.62939e-06V3.57031ZM24 20.4289H21.4816C16.8745 20.4289 13.0714 16.6469 13.0714 12.0023C13.0714 7.35774 16.8745 3.57031 21.4816 3.57031H24V20.4289Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_1029_358">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 545 B

+16
View File
@@ -0,0 +1,16 @@
<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_240)">
<path d="M13.7635 9.78027C13.9704 9.78027 14.1127 9.79963 14.1871 9.83982C14.2631 9.88002 14.31 9.94254 14.331 10.0289C14.352 10.1152 14.3633 10.3103 14.3633 10.6155V13.2327C14.3633 13.6823 14.331 13.9562 14.2679 14.0575C14.2049 14.1602 14.0367 14.2093 13.7635 14.2093V9.78027Z" fill="#F5C518"/>
<path d="M19.2771 13.6066V12.0072C19.2771 11.7429 19.2601 11.5694 19.2248 11.4896C19.1894 11.4098 19.0483 11.3585 18.9494 11.3585C18.8504 11.3585 18.6978 11.4002 18.6681 11.4704V14.1778C18.702 14.2549 18.8476 14.2978 18.9494 14.2978C19.0512 14.2978 19.1993 14.2563 19.2304 14.1778C19.2615 14.0993 19.2771 13.908 19.2771 13.6066Z" fill="#F5C518"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 0H22.5C23.3284 0 24 0.671573 24 1.5V22.5C24 23.3284 23.3284 24 22.5 24H1.5C0.671573 24 0 23.3284 0 22.5V1.5C0 0.671573 0.671573 0 1.5 0ZM3 8.625V15.375H4.875V8.625H3ZM8.87719 8.625L8.45756 11.7782L8.19683 10.0631C8.12123 9.51378 8.04872 9.03441 7.97929 8.625H5.625V15.375H7.21561L7.22178 10.9177L7.89135 15.375H9.02376L9.65939 10.8194L9.66402 15.375H11.25V8.625H8.87719ZM12 8.625V15.375H14.9267C15.5894 15.375 16.125 14.8417 16.125 14.1838V9.81623C16.125 9.15748 15.5885 8.625 14.9267 8.625H12ZM19.6612 10.3151H19.7811C20.4543 10.3151 21 10.8423 21 11.4918V14.1982C21 14.8481 20.4544 15.375 19.7811 15.375H19.6612C19.2493 15.375 18.8851 15.1776 18.6645 14.8756L18.5565 15.2883H16.875V8.625H18.6691V10.7927C18.9009 10.5038 19.2582 10.3151 19.6612 10.3151Z" fill="#F5C518"/>
<path d="M3 8.625V15.375H4.875V8.625H3Z" fill="black"/>
<path d="M8.87719 8.625L8.45756 11.7782L8.19683 10.0631C8.12123 9.51378 8.04872 9.03441 7.97929 8.625H5.625V15.375H7.21561L7.22178 10.9177L7.89135 15.375H9.02376L9.65939 10.8194L9.66402 15.375H11.25V8.625H8.87719Z" fill="black"/>
<path d="M12 15.375V8.625H14.9267C15.5885 8.625 16.125 9.15748 16.125 9.81623V14.1838C16.125 14.8417 15.5894 15.375 14.9267 15.375H12ZM14.1871 9.83982C14.1127 9.79963 13.9704 9.78027 13.7635 9.78027V14.2093C14.0367 14.2093 14.2049 14.1602 14.2679 14.0575C14.331 13.9562 14.3633 13.6823 14.3633 13.2327V10.6155C14.3633 10.3103 14.352 10.1152 14.331 10.0289C14.31 9.94255 14.2631 9.88002 14.1871 9.83982Z" fill="black"/>
<path d="M19.6612 10.3151H19.7811C20.4543 10.3151 21 10.8423 21 11.4918V14.1982C21 14.8481 20.4544 15.375 19.7811 15.375H19.6612C19.2493 15.375 18.8851 15.1776 18.6645 14.8756L18.5565 15.2883H16.875V8.625H18.6691V10.7927C18.9009 10.5038 19.2582 10.3151 19.6612 10.3151ZM19.2771 13.6066V12.0072C19.2771 11.7429 19.2601 11.5694 19.2248 11.4896C19.1894 11.4098 19.0483 11.3585 18.9494 11.3585C18.8504 11.3585 18.6978 11.4002 18.6681 11.4704V14.1778C18.702 14.2549 18.8476 14.2978 18.9494 14.2978C19.0512 14.2978 19.1993 14.2563 19.2304 14.1778C19.2615 14.0993 19.2771 13.908 19.2771 13.6066Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_1029_240">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

+3
View File
@@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.582 0L1.418 5.832V18.168L11.582 24V10.01L7.1 12.668V16.332C7.11 16.443 7.11 16.557 7.1 16.668C6.997 17.103 6.56 17.472 6.1 17.779C5.298 18.316 4.348 18.288 3.934 17.668C3.521 17.048 3.793 16.037 4.6 15.5C4.984 15.22 5.463 15.101 5.934 15.168V6.619C5.934 6.465 6.068 6.367 6.16 6.311L11.582 3V0ZM12.418 0V6.162C12.992 6.192 13.558 6.322 14.086 6.549C14.3968 6.55178 14.7047 6.48941 14.99 6.36592C15.2752 6.24243 15.5314 6.06055 15.742 5.832C15.6554 5.70835 15.5974 5.56704 15.572 5.41824C15.5467 5.26944 15.5547 5.11688 15.5955 4.97155C15.6362 4.82622 15.7087 4.69175 15.8078 4.57783C15.9068 4.46391 16.0298 4.37339 16.1681 4.3128C16.3063 4.25221 16.4563 4.22305 16.6072 4.22743C16.758 4.23181 16.9061 4.26962 17.0406 4.33813C17.1751 4.40665 17.2927 4.50416 17.3849 4.62363C17.4772 4.7431 17.5417 4.88155 17.574 5.029L17.578 5.035C17.6162 5.20913 17.6082 5.39022 17.5548 5.5603C17.5014 5.73038 17.4044 5.88353 17.2735 6.00453C17.1425 6.12554 16.9823 6.2102 16.8085 6.2501C16.6348 6.29 16.4536 6.28376 16.283 6.232C15.943 6.635 15.491 6.93 14.986 7.082C15.326 7.345 15.627 7.658 15.877 8.01C16.1424 7.94828 16.4214 7.99316 16.654 8.135C17.422 8.621 17.222 9.792 16.336 9.992C15.45 10.192 14.762 9.222 15.246 8.453C15.266 8.423 15.288 8.393 15.311 8.363C14.9421 7.85583 14.4471 7.45388 13.875 7.197C13.4159 6.98618 12.9221 6.86112 12.418 6.828V10.838C13.273 10.898 13.674 11.331 13.973 11.672C14.2 11.928 14.329 12.062 14.551 12.074C14.874 12.092 15.119 12.082 15.357 12.074C15.6554 12.0567 15.9548 12.0641 16.252 12.096C17.192 12.079 17.524 11.87 17.857 11.65C18.1906 11.4057 18.5789 11.2467 18.988 11.187C19.0154 11.0941 19.0558 11.0056 19.108 10.924C19.1391 10.8755 19.1743 10.8297 19.213 10.787C19.236 10.762 19.26 10.743 19.283 10.721C19.0778 9.93246 19.0778 9.10454 19.283 8.316L19.271 8.306C19.0967 8.14439 18.9843 7.92698 18.9532 7.69132C18.9221 7.45566 18.9744 7.21655 19.1008 7.01528C19.2273 6.81402 19.4201 6.66325 19.6459 6.58902C19.8717 6.51478 20.1164 6.52175 20.3376 6.6087C20.5588 6.69566 20.7427 6.85715 20.8576 7.06527C20.9724 7.2734 21.0109 7.5151 20.9665 7.74861C20.9221 7.98212 20.7975 8.19279 20.6143 8.34422C20.4311 8.49566 20.2007 8.57834 19.963 8.578H19.906C19.7674 9.19599 19.7674 9.83701 19.906 10.455H19.969C20.1271 10.4552 20.2829 10.4921 20.4243 10.5629C20.5656 10.6336 20.6886 10.7363 20.7835 10.8627C20.8784 10.9891 20.9426 11.1358 20.971 11.2913C20.9995 11.4468 20.9914 11.6067 20.9475 11.7586C20.9036 11.9104 20.8249 12.05 20.7178 12.1662C20.6107 12.2824 20.478 12.3722 20.3303 12.4284C20.1826 12.4846 20.0238 12.5056 19.8665 12.49C19.7092 12.4743 19.5577 12.4223 19.424 12.338L19.377 12.305C19.2196 12.1946 19.0974 12.0411 19.025 11.863C18.7294 11.9145 18.4503 12.0359 18.211 12.217C17.9936 12.3689 17.7573 12.4916 17.508 12.582C18.265 13.137 19.28 14.182 19.707 14.881C19.7906 14.8593 19.8766 14.8482 19.963 14.848C20.1215 14.8475 20.2779 14.8839 20.4199 14.9543C20.5619 15.0248 20.6855 15.1274 20.7809 15.254C20.8763 15.3805 20.9409 15.5276 20.9696 15.6835C20.9983 15.8393 20.9902 15.9998 20.9461 16.152C20.902 16.3042 20.823 16.4441 20.7154 16.5605C20.6078 16.6768 20.4745 16.7665 20.3262 16.8224C20.1779 16.8783 20.0186 16.8989 19.8609 16.8825C19.7033 16.8661 19.5516 16.8132 19.418 16.728L19.371 16.698C19.158 16.5471 19.0112 16.3201 18.9609 16.064C18.9107 15.8078 18.9608 15.5422 19.101 15.322C19.1165 15.297 19.1335 15.2729 19.152 15.25C18.707 14.475 17.126 12.97 16.692 12.863C16.2647 12.7527 15.8221 12.7131 15.382 12.746C15.142 12.754 14.869 12.764 14.516 12.746C14.001 12.719 13.733 12.413 13.473 12.117C13.213 11.821 12.963 11.557 12.418 11.506V18.5C12.5649 18.4721 12.7079 18.4268 12.844 18.365C12.8624 18.3542 12.8818 18.3451 12.902 18.338C13.462 18.071 14.323 17.428 14.998 15.891C14.7941 15.7405 14.6535 15.5196 14.6036 15.2711C14.5536 15.0227 14.598 14.7645 14.728 14.547C14.8183 14.3949 14.9466 14.2689 15.1004 14.1813C15.2541 14.0938 15.428 14.0477 15.6049 14.0477C15.7818 14.0477 15.9557 14.0937 16.1095 14.1811C16.2632 14.2686 16.3916 14.3946 16.482 14.5467C16.5723 14.6988 16.6216 14.8718 16.6249 15.0487C16.6282 15.2255 16.5854 15.4002 16.5008 15.5556C16.4162 15.711 16.2926 15.8416 16.1422 15.9348C15.9918 16.028 15.8198 16.0804 15.643 16.087C15.3183 16.8903 14.8307 17.6175 14.211 18.223C14.4605 18.2745 14.6961 18.3789 14.902 18.529C15.0049 18.6221 15.1342 18.6808 15.272 18.697C15.5769 18.6645 15.8757 18.5898 16.16 18.475C16.1327 18.2574 16.1764 18.0368 16.2844 17.8459C16.3924 17.655 16.5591 17.504 16.7597 17.4154C16.9603 17.3267 17.1841 17.305 17.398 17.3536C17.6119 17.4022 17.8044 17.5184 17.947 17.685V17.68C18.0736 17.828 18.1552 18.0092 18.1821 18.2022C18.209 18.3951 18.1801 18.5917 18.0988 18.7687C18.0175 18.9458 17.8872 19.0958 17.7233 19.2011C17.5594 19.3064 17.3688 19.3626 17.174 19.363C16.906 19.3653 16.6478 19.2623 16.455 19.076C16.0827 19.231 15.6887 19.3278 15.287 19.363H15.237C14.9784 19.3435 14.7313 19.2478 14.527 19.088C14.265 18.911 14.017 18.743 13.125 18.968C12.9029 19.0757 12.6636 19.1434 12.418 Line truncated
</svg>

After

Width:  |  Height:  |  Size: 8.5 KiB

+6
View File
@@ -0,0 +1,6 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 6.72048C0 5.92852 0.71433 5.38577 1.55763 5.50986L12.5582 6.94676C13.0526 7.01951 13.4467 7.55223 13.4467 8.13239L13.4465 9.63401C12.5196 10.2552 11.912 11.2948 11.912 12.4725C11.912 13.6614 12.5048 14.692 13.4467 15.311V15.9713C13.4467 16.5515 13.0526 17.0842 12.5582 17.1569L2.79676 18.4904C1.95345 18.6145 1.23912 18.0717 1.23912 17.2798L0 6.72048ZM4.74367 8.10062H3.29281V10.0011H2.37237V11.0992H3.29281V13.2108C3.25026 14.5376 3.77141 15.1317 4.96891 15.1429L6.08645 15.1429V14.0448H5.51262C4.86284 14.0132 4.72219 13.8231 4.74374 12.9679V11.0991H6.52725L8.17933 15.1428H9.73851L12.0124 10.001H10.4747L9.00215 13.5381L7.65934 10.0011H4.74367V8.10062Z" fill="#6CD591"/>
<path d="M4.74367 8.10062H3.29281V10.0011H2.37237V11.0992H3.29281V13.2108C3.25026 14.5376 3.77141 15.1317 4.96891 15.1429L6.08645 15.1429V14.0448H5.51262C4.86284 14.0132 4.72219 13.8231 4.74374 12.9679V11.0991H6.52725L8.17933 15.1428H9.73851L12.0124 10.001H10.4747L9.00215 13.5381L7.65934 10.0011H4.74367V8.10062Z" fill="white"/>
<path d="M21.358 9.89753C22.3 9.89753 22.928 10.1298 23.4045 10.6577C23.7943 11.08 24 11.703 24 12.3998C24 13.4133 23.5886 14.2052 22.8415 14.6592C22.3541 14.9549 21.9319 15.0394 20.979 15.0394H18.6185V7.99707H20.0695V9.89753H21.358ZM20.0695 13.9413H21.1414C21.9968 13.9413 22.5166 13.3712 22.5166 12.442C22.5166 11.4706 22.0618 10.9955 21.1414 10.9955H20.0695V13.9413Z" fill="white"/>
<path d="M16.3936 7.99707H17.8446V15.0394H15.3433C14.3255 15.0394 13.8382 14.8916 13.3184 14.4375C12.7878 13.9625 12.5172 13.2868 12.5172 12.4315C12.5172 11.5445 12.8096 10.8689 13.4268 10.3726C13.8166 10.0559 14.3473 9.89753 15.0294 9.89753H16.3937L16.3936 7.99707ZM16.3936 10.9956H15.3433C14.4988 10.9956 13.9898 11.5341 13.9898 12.4315C13.9898 13.3712 14.5095 13.9413 15.3433 13.9413H16.3936V10.9956Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

+3
View File
@@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.62 11.9996C6.61947 11.6983 6.67838 11.3999 6.79334 11.1214C6.9083 10.8429 7.07706 10.5898 7.28996 10.3767C7.50285 10.1635 7.75571 9.9944 8.03404 9.87907C8.31237 9.76375 8.61072 9.70445 8.912 9.70459H8.899C9.20011 9.70472 9.49824 9.7642 9.77635 9.87965C10.0544 9.99509 10.3071 10.1642 10.5198 10.3774C10.7324 10.5905 10.901 10.8435 11.0159 11.1219C11.1307 11.4002 11.1895 11.6985 11.189 11.9996C11.189 12.607 10.9478 13.1896 10.5183 13.6192C10.0889 14.0488 9.50644 14.2903 8.899 14.2906H8.912C8.61106 14.2907 8.31304 14.2316 8.03497 14.1165C7.75689 14.0014 7.50422 13.8327 7.29137 13.6199C7.07853 13.4072 6.90968 13.1546 6.79449 12.8765C6.67929 12.5985 6.62 12.3005 6.62 11.9996ZM17.34 7.93759H21.606C22.2134 7.93732 22.7959 7.69583 23.2253 7.26621C23.6548 6.8366 23.896 6.25402 23.896 5.64659C23.8967 5.34539 23.8379 5.04702 23.7231 4.76855C23.6084 4.49008 23.4398 4.23698 23.2271 4.02372C23.0144 3.81047 22.7617 3.64125 22.4836 3.52574C22.2054 3.41024 21.9072 3.35072 21.606 3.35059H17.34C17.0387 3.35059 16.7404 3.41001 16.4621 3.52545C16.1838 3.6409 15.9311 3.8101 15.7182 4.02337C15.5054 4.23664 15.3368 4.48979 15.222 4.76832C15.1071 5.04686 15.0483 5.34531 15.049 5.64659C15.0493 6.25385 15.2906 6.83617 15.72 7.26557C16.1494 7.69497 16.7317 7.93632 17.339 7.93659L17.34 7.93759ZM2.688 20.6446H10.973C11.2739 20.6446 11.5719 20.5853 11.85 20.4701C12.128 20.3549 12.3806 20.1861 12.5933 19.9732C12.8061 19.7604 12.9748 19.5077 13.0899 19.2296C13.205 18.9515 13.2641 18.6535 13.264 18.3526C13.2645 18.0515 13.2057 17.7532 13.0909 17.4749C12.976 17.1965 12.8074 16.9435 12.5948 16.7304C12.3821 16.5172 12.1294 16.3481 11.8513 16.2326C11.5732 16.1172 11.2751 16.0577 10.974 16.0576H2.687C2.3858 16.0576 2.08757 16.117 1.80935 16.2324C1.53113 16.3477 1.27839 16.5169 1.0656 16.73C0.852811 16.9432 0.684141 17.1962 0.569243 17.4746C0.454345 17.753 0.395474 18.0514 0.396 18.3526C0.395869 18.6534 0.454997 18.9514 0.570009 19.2294C0.685021 19.5074 0.853665 19.76 1.06631 19.9729C1.27896 20.1857 1.53144 20.3546 1.80935 20.4698C2.08726 20.5851 2.38514 20.6445 2.686 20.6446H2.688ZM13.569 14.2906H14.379L16.273 9.70459H15.19L14.036 12.7126H14.023L12.888 9.70459H11.734L13.569 14.2906ZM17.777 14.2906H18.788V9.70459H17.777V14.2906ZM20.655 14.2906H23.89V13.3606H21.667V12.4276H23.657V11.4936H21.667V10.6386H23.774V9.70459H20.662L20.655 14.2906ZM1.31 7.94059H2.32V4.24659H3.63V3.35159H0V4.24659H1.31V7.94059ZM5.057 7.94059H6.068V5.95859H8.026V7.94259H9.037V3.35259H8.027V5.06359H6.061V3.35059H5.057V7.94059ZM10.405 7.94059H13.647V7.00759H11.41V6.07359H13.4V5.14059H11.41V4.28459H13.517V3.35059H10.405V7.94059ZM0.162 14.2956H1.167V10.7756H1.18L2.347 14.2956H3.112L4.318 10.7756H4.331V14.2956H5.342V9.70559H3.82L2.755 12.6996H2.742L1.686 9.70459H0.156L0.162 14.2956ZM14.696 20.6486H16.337C16.6694 20.6503 17.0001 20.6 17.317 20.4996C17.6164 20.4062 17.8958 20.258 18.141 20.0626C18.3794 19.8687 18.5728 19.6255 18.708 19.3496C18.8577 19.0437 18.934 18.7071 18.931 18.3666C18.9416 17.9979 18.867 17.6318 18.713 17.2966C18.5777 17.0145 18.3767 16.769 18.127 16.5806C17.8652 16.3928 17.5683 16.2595 17.254 16.1886C16.9119 16.103 16.5606 16.0594 16.208 16.0586H14.689L14.696 20.6486ZM15.709 16.9926H16.305C16.5097 16.9917 16.7136 17.0186 16.911 17.0726C17.0924 17.122 17.2629 17.2047 17.414 17.3166C17.5577 17.4258 17.674 17.5668 17.754 17.7286C17.8433 17.9112 17.8879 18.1124 17.884 18.3156C17.8893 18.5418 17.845 18.7664 17.754 18.9736C17.6762 19.1446 17.5569 19.2934 17.407 19.4066C17.2523 19.5204 17.0761 19.6013 16.889 19.6446C16.6761 19.6932 16.4583 19.7167 16.24 19.7146H15.702L15.709 16.9926ZM20.395 20.6486H22.275C22.481 20.6484 22.6864 20.6269 22.888 20.5846C23.0836 20.5456 23.271 20.4732 23.442 20.3706C23.6044 20.2735 23.742 20.14 23.844 19.9806C23.953 19.7977 24.0068 19.5873 23.999 19.3746C24.0002 19.2331 23.9762 19.0926 23.928 18.9596C23.8831 18.8339 23.8138 18.7183 23.724 18.6196C23.634 18.5208 23.5265 18.4394 23.407 18.3796C23.2776 18.3134 23.138 18.2695 22.994 18.2496V18.2376C23.2169 18.1736 23.4166 18.0465 23.569 17.8716C23.7178 17.6893 23.7947 17.4587 23.785 17.2236C23.7954 17.0123 23.7436 16.8027 23.636 16.6206C23.5394 16.4707 23.4053 16.3486 23.247 16.2666C23.0779 16.18 22.8953 16.1229 22.707 16.0976C22.5082 16.0704 22.3077 16.0567 22.107 16.0566H20.395V20.6486ZM21.406 16.9146H22.093C22.1735 16.915 22.2538 16.9224 22.333 16.9366C22.4098 16.95 22.484 16.9753 22.553 17.0116C22.618 17.0462 22.6731 17.0968 22.713 17.1586C22.7563 17.2294 22.7776 17.3116 22.774 17.3946C22.7761 17.4757 22.7571 17.556 22.719 17.6276C22.6841 17.691 22.6339 17.7446 22.573 17.7836C22.5106 17.8236 22.4415 17.852 22.369 17.8676C22.2935 17.8846 22.2164 17.8934 22.139 17.8936H21.394L21.406 16.9146ZM21.406 18.7496H22.171C22.26 18.7502 22.3489 18.7569 22.437 18.7696C22.5264 18.7813 22.6138 18.8048 22.697 18.8396C22.7766 18.8725 22.8467 18.9248 22.901 18.9916C22.9568 19.0665 22.985 19.1583 22.981 19.2516C22.9846 19.3398 22.9638 19.4274 22.921 19.5046C22.881 19.5719 22.8263 19.6294 22.761Line truncated
</svg>

After

Width:  |  Height:  |  Size: 5.1 KiB

@@ -0,0 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.3256 20.447C17.9817 20.9692 17.3136 21.51 16.6142 21.8705L17.8097 9.74531C18.5703 9.50094 19.3125 9.17716 19.8592 8.71287L18.3256 20.447ZM15.4246 22.3763C14.267 22.7594 13.5939 22.8781 12.6303 22.9727L12.7805 10.5127C13.845 10.4822 15.2225 10.3379 16.3963 10.0874L15.4246 22.3763ZM8.52295 22.3763L7.55135 10.0874C8.72503 10.3379 10.1026 10.4822 11.1671 10.5127L11.3172 22.9727C10.3536 22.8781 9.68066 22.7594 8.52295 22.3763ZM5.62207 20.447L4.0883 8.71287C4.63504 9.17716 5.37725 9.50094 6.13785 9.74531L7.3333 21.8705C6.634 21.51 5.96583 20.9692 5.62207 20.447ZM18.2398 4.08301C18.255 4.15706 18.2635 4.23361 18.2639 4.31221C18.2644 4.39171 18.2567 4.46942 18.242 4.54454C18.7973 4.63367 19.2234 5.11206 19.2267 5.69306C19.2269 5.72946 19.2249 5.76551 19.2219 5.8011C19.5049 5.83867 19.7561 5.97731 19.938 6.17948C19.1398 7.3918 15.8806 8.3145 11.9738 8.3369C7.50032 8.3625 3.86204 7.19828 3.79281 5.72928C3.80262 5.71867 3.81163 5.70725 3.82189 5.69699C3.75284 5.57922 3.70519 5.44797 3.68057 5.3087C3.25223 5.71528 2.99304 6.04307 3.03864 6.52039C3.04301 6.58418 4.93365 20.121 4.93365 20.121C5.1518 22.2649 8.2651 23.9785 11.9738 23.9997C15.6824 23.9785 18.7958 22.2649 19.0139 20.121C19.0139 20.121 20.9045 6.58418 20.9089 6.52039C20.9995 5.56565 19.8824 4.69898 18.2398 4.08301Z" fill="#BCBDBE"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.79281 5.72934C3.86196 7.19825 7.50023 8.36256 11.9737 8.33704C15.8806 8.31474 19.1397 7.39203 19.938 6.17981C19.7561 5.97764 19.5049 5.83899 19.2219 5.80143C19.2249 5.76574 19.2269 5.72979 19.2267 5.6933C19.2234 5.11239 18.7973 4.63399 18.2421 4.54478C18.2567 4.46965 18.2644 4.39194 18.2639 4.31245C18.2603 3.66552 17.7328 3.14412 17.0859 3.14778C17.0712 3.14787 17.057 3.14965 17.0424 3.15028C17.0838 3.0293 17.107 2.90002 17.1063 2.76503C17.1025 2.1181 16.5752 1.5967 15.9282 1.60036C15.7798 1.60125 15.6385 1.63078 15.5081 1.68191C15.3231 1.33359 14.9678 1.09083 14.5536 1.06281C14.4814 0.481906 13.9851 0.033757 13.3853 0.0371283C13.0078 0.0392886 12.674 0.220582 12.4614 0.499036C12.2457 0.264389 11.9367 0.117177 11.5929 0.11914C10.946 0.122798 10.4246 0.650263 10.4282 1.2971C10.4289 1.42067 10.449 1.53942 10.4851 1.65104C10.2211 1.70002 9.98891 1.83724 9.81922 2.03111C9.6845 1.52934 9.22636 1.1606 8.68239 1.16363C8.17419 1.16657 7.74469 1.4933 7.58517 1.94662C7.15343 2.12122 6.84955 2.54475 6.85241 3.03875C6.85303 3.14849 6.86981 3.25413 6.89862 3.35477C6.75302 3.29107 6.59251 3.25538 6.42335 3.25636C5.91329 3.2593 5.48245 3.58834 5.32426 4.04434C5.17259 3.97386 5.00396 3.9338 4.82561 3.93487C4.17868 3.93853 3.6572 4.46591 3.66092 5.11284C3.6621 5.32616 3.72126 5.5253 3.8219 5.69695C3.81164 5.7073 3.80262 5.71863 3.79281 5.72934Z" fill="#DEDEDF"/>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

@@ -0,0 +1,8 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.3256 20.447C17.9817 20.9692 17.3136 21.51 16.6143 21.8705L17.8097 9.74531C18.5703 9.50094 19.3125 9.17716 19.8593 8.71287L18.3256 20.447ZM15.4246 22.3763C14.267 22.7594 13.5939 22.8781 12.6304 22.9727L12.7805 10.5127C13.845 10.4822 15.2225 10.3379 16.3963 10.0874L15.4246 22.3763ZM8.52296 22.3763L7.55136 10.0874C8.72504 10.3379 10.1026 10.4822 11.1671 10.5127L11.3172 22.9727C10.3537 22.8781 9.68067 22.7594 8.52296 22.3763ZM5.62209 20.447L4.08832 8.71287C4.63505 9.17716 5.37727 9.50094 6.13786 9.74531L7.33331 21.8705C6.63401 21.51 5.96585 20.9692 5.62209 20.447ZM18.2398 4.08301C18.255 4.15706 18.2635 4.23361 18.2639 4.31221C18.2644 4.39171 18.2567 4.46942 18.242 4.54454C18.7973 4.63367 19.2234 5.11206 19.2267 5.69306C19.2269 5.72946 19.2249 5.76551 19.2219 5.8011C19.5049 5.83867 19.7561 5.97731 19.938 6.17948C19.1398 7.3918 15.8806 8.3145 11.9738 8.3369C7.50033 8.3625 3.86206 7.19828 3.79282 5.72928C3.80264 5.71867 3.81165 5.70725 3.82191 5.69699C3.75285 5.57922 3.70521 5.44797 3.68058 5.3087C3.25224 5.71528 2.99306 6.04307 3.03865 6.52039C3.04302 6.58418 4.93367 20.121 4.93367 20.121C5.15181 22.2649 8.26512 23.9785 11.9738 23.9997C15.6825 23.9785 18.7959 22.2649 19.0139 20.121C19.0139 20.121 20.9046 6.58418 20.9089 6.52039C20.9995 5.56565 19.8824 4.69898 18.2398 4.08301Z" fill="#DB382A"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.0883 8.71289L5.62198 20.447C5.96583 20.9692 6.634 21.51 7.3333 21.8705L6.13785 9.74534C5.37725 9.50096 4.63504 9.17719 4.0883 8.71289Z" fill="#FFFFFE"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.55135 10.0879L8.52294 22.3768C9.68065 22.7599 10.3536 22.8786 11.3172 22.9732L11.167 10.5132C10.1026 10.4827 8.72503 10.3384 7.55135 10.0879Z" fill="#FFFFFE"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.6303 22.9732C13.5939 22.8786 14.2669 22.7599 15.4246 22.3768L16.3962 10.0879C15.2225 10.3384 13.845 10.4827 12.7805 10.5132L12.6303 22.9732Z" fill="#FFFFFE"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.6142 21.8705C17.3135 21.51 17.9817 20.9692 18.3255 20.447L19.8592 8.71289C19.3125 9.17719 18.5703 9.50096 17.8097 9.74534L16.6142 21.8705Z" fill="#FFFFFE"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.79281 5.72934C3.86196 7.19825 7.50023 8.36256 11.9737 8.33704C15.8806 8.31474 19.1397 7.39203 19.938 6.17981C19.7561 5.97764 19.5049 5.83899 19.2219 5.80143C19.2249 5.76574 19.2269 5.72979 19.2267 5.6933C19.2234 5.11239 18.7973 4.63399 18.2421 4.54478C18.2567 4.46965 18.2644 4.39194 18.2639 4.31245C18.2603 3.66552 17.7328 3.14412 17.0859 3.14778C17.0712 3.14787 17.057 3.14965 17.0424 3.15028C17.0838 3.0293 17.107 2.90002 17.1063 2.76503C17.1025 2.1181 16.5752 1.5967 15.9282 1.60036C15.7798 1.60125 15.6385 1.63078 15.5081 1.68191C15.3231 1.33359 14.9678 1.09083 14.5536 1.06281C14.4814 0.481906 13.9851 0.033757 13.3853 0.0371283C13.0078 0.0392886 12.674 0.220582 12.4614 0.499036C12.2457 0.264389 11.9367 0.117177 11.5929 0.11914C10.946 0.122798 10.4246 0.650263 10.4282 1.2971C10.4289 1.42067 10.449 1.53942 10.4851 1.65104C10.2211 1.70002 9.98891 1.83724 9.81922 2.03111C9.6845 1.52934 9.22636 1.1606 8.68239 1.16363C8.17419 1.16657 7.74469 1.4933 7.58517 1.94662C7.15343 2.12122 6.84955 2.54475 6.85241 3.03875C6.85303 3.14849 6.86981 3.25413 6.89862 3.35477C6.75302 3.29107 6.59251 3.25538 6.42335 3.25636C5.91329 3.2593 5.48245 3.58834 5.32426 4.04434C5.17259 3.97386 5.00396 3.9338 4.82561 3.93487C4.17868 3.93853 3.6572 4.46591 3.66092 5.11284C3.6621 5.32616 3.72126 5.5253 3.8219 5.69695C3.81164 5.7073 3.80262 5.71863 3.79281 5.72934Z" fill="#F9D320"/>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

+3
View File
@@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 24C5.385 24 0 18.615 0 12C0 5.385 5.385 0 12 0C18.615 0 24 5.385 24 12C24 18.615 18.615 24 12 24ZM12 1.211C6.05 1.211 1.211 6.05 1.211 12C1.211 17.95 6.05 22.79 12 22.79C17.95 22.79 22.79 17.95 22.79 12C22.79 6.05 17.95 1.211 12 1.211ZM4.89 18.531C5.79317 19.5162 6.89208 20.302 8.1164 20.838C9.34072 21.3741 10.6635 21.6486 12 21.644C13.3899 21.6464 14.7637 21.3475 16.027 20.768L9.33 14.088L4.89 18.531ZM19.178 18.464C20.7773 16.6901 21.6624 14.3864 21.662 11.998C21.662 8.113 19.375 4.783 16.094 3.238L10.005 9.314L19.169 18.464H19.178ZM9.301 10.035L4.227 15.09L3.548 14.41L8.885 9.074L15.115 2.849C14.1112 2.51138 13.0591 2.33946 12 2.34C6.663 2.337 2.337 6.663 2.337 12C2.337 14.172 3.05 16.178 4.276 17.801L9.332 12.746L9.691 13.075L16.936 20.32C17.0825 20.242 17.2229 20.1531 17.356 20.054L9.33 12.05L4.476 16.905L3.797 16.226L9.332 10.691L9.691 11.022L18.151 19.459C18.286 19.359 18.406 19.244 18.526 19.143L9.39 10.027L9.307 10.042L9.301 10.035ZM12.348 11.063L11.67 10.387L16.458 5.597L17.137 6.286L12.348 11.071V11.063ZM16.89 4.485L11.37 10.005L10.69 9.326L16.211 3.806L16.89 4.49V4.485Z" fill="#ED1C24"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

+25
View File
@@ -0,0 +1,25 @@
<svg width="5020" height="475" viewBox="0 0 5020 475" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M184.178 464.934C154.522 464.934 126.954 458.251 101.475 444.885C75.9955 431.101 55.1108 412.305 38.8208 388.496C22.5308 364.688 12.9239 338.373 10 309.552H33.182C36.1058 334.196 44.6685 356.751 58.8701 377.218C73.0716 397.268 91.0324 413.14 112.752 424.835C134.89 436.113 158.699 441.752 184.178 441.752C212.163 441.752 237.852 434.86 261.242 421.076C284.633 407.292 303.22 388.287 317.004 364.061C330.788 339.835 337.68 312.685 337.68 282.611V42.6462H142.2V19.4642H360.236V282.611C360.236 316.862 352.299 347.98 336.427 375.965C320.972 403.533 299.67 425.253 272.52 441.125C245.788 456.998 216.34 464.934 184.178 464.934Z" fill="black"/>
<path d="M984.562 455.536V19.4642H1007.74V432.354H1311.62V455.536H984.562Z" fill="black"/>
<path d="M1448.35 455.536V19.4642H1471.53V432.354H1775.4V455.536H1448.35Z" fill="black"/>
<path d="M2389.08 455.536H2365.9V19.4642H2541.33C2570.57 19.4642 2597.51 25.7296 2622.15 38.2604C2647.21 50.7912 2667.05 68.5432 2681.67 91.5163C2696.29 114.489 2703.6 141.013 2703.6 171.087C2703.6 199.908 2696.08 226.431 2681.05 250.657C2666.43 274.883 2646.38 293.471 2620.9 306.419C2598.76 317.697 2572.24 323.336 2541.33 323.336H2389.08V455.536ZM2389.08 300.154H2541.33C2568.06 300.154 2589.99 295.977 2607.11 287.623C2629.25 277.181 2647 261.517 2660.37 240.633C2673.74 219.748 2680.42 196.566 2680.42 171.087C2680.42 146.025 2673.74 123.052 2660.37 102.167C2647 81.2828 2629.04 65.6193 2606.49 55.177C2589.36 46.8231 2567.64 42.6462 2541.33 42.6462H2389.08V300.154Z" fill="black"/>
<path d="M2839.71 455.536V19.4642H2862.89V432.354H3166.76V455.536H2839.71Z" fill="black"/>
<path d="M3747.86 19.4642L3902.61 252.537L4056.11 19.4642H4083.68L3913.89 276.972V455.536H3890.71V276.972L3720.29 19.4642H3747.86Z" fill="black"/>
<path d="M4215.4 19.4642H4522.41V42.6462H4238.58V219.33H4485.44V242.512H4238.58V432.354H4522.41V455.536H4215.4V19.4642Z" fill="black"/>
<path d="M2200.97 19.4642H2228.54L2058.74 276.972V455.536H2035.56V276.972L1865.14 19.4642H1892.71L2047.47 252.537L2200.97 19.4642Z" fill="black"/>
<path d="M505.113 19.4642H812.117V42.6462H528.295V219.33H775.152V242.512H528.295V432.354H812.117V455.536H505.113V19.4642Z" fill="black"/>
<mask id="mask0_941_19" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="3232" y="10" width="1778" height="446">
<path d="M4924.16 33.8748C4949.23 45.5702 4968.86 62.9044 4983.06 85.8775C4997.68 108.851 5004.99 134.33 5004.99 162.315C5004.99 194.895 4994.96 224.134 4974.91 250.031C4955.28 275.51 4924.58 295.842 4893.67 304.196L4674.8 19.4644H4840.83C4859.21 19.4644 4874.88 20.7174 4887.83 23.2236C4901.19 25.312 4913.3 28.8624 4924.16 33.8748Z" fill="black"/>
<path d="M5010 455.536L4893.67 304.196H4674.8V455.536H5010Z" fill="black"/>
<path d="M3643.7 455.536H3232.69L3438.2 10.0662L3643.7 455.536Z" fill="black"/>
</mask>
<g mask="url(#mask0_941_19)">
<rect x="3232" y="10" width="1778" height="446" fill="url(#pattern0)"/>
</g>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_941_19" transform="matrix(0 -0.000973278 0.000244141 0 0 2.49327)"/>
</pattern>
<image id="image0_941_19" width="4096" height="4096" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAABAACAYAAADyoyQXAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUALN16SURBVHgB7H1ZluM4zyzwnd7XXdPd/wP/qpRlThgCHGQ5SzjdWTIBBAIgSNuyJfP/o/+f6I8wZWHrX7ZtJHsE++d4AHuUi8XJso/nycu4mHplzIujYrGjp7lY0ry7+GT3ix2LQz6df8BP1A3ErY4X+If4BvwhLI5zt/3Z95HwWyUaX3rMQXsvFo9jeXjTWM3gEjwHc9nYVAy+IEZgjCd8jTFxnH2fy3R34lIMro5n+Qzbcgz35bLNfisXvhGXTXIHDqfcicsqSbRGkvEo7q/p8CiiT0J9VATDPo8m0rmkZjAZnslAlmM0+mToBG6trtV3uqT7tpnoOievpNfEyqvVS34pCWOdXT3ejSV5Dv2x4m/S+epjJTIVOHIOUo3FsSTZtX+d2qYk17sbM3il3saqqVXPRNbjZkytYe/X8UoSL3A+k8NLfJxrZcdUakxerYyYrwG0Nh2HpPWFXC+tVqGYpPeWjfMaTW1MfX66sXA/I73V/jW4JWGM/LGOU9dr7V9gzKgjPObOYfu3tk2FIrpnd2NqbXt7LY6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size: 89 KiB

-224
View File
@@ -1,224 +0,0 @@
/** @format */
import { useEffect, useState } from "react";
import { AnimatePresence, motion } from "framer-motion";
import { relaunch } from "@tauri-apps/api/process";
import MuiAppBar from "@mui/material/AppBar";
import TextField from "@mui/material/TextField";
import IconButton from "@mui/material/IconButton";
import Toolbar from "@mui/material/Toolbar";
import Avatar from "@mui/material/Avatar";
import Box from "@mui/material/Box";
import ListItemIcon from "@mui/material/ListItemIcon";
import Menu from "@mui/material/Menu";
import MenuItem from "@mui/material/MenuItem";
import CircularProgress from "@mui/material/CircularProgress";
import useScrollTrigger from "@mui/material/useScrollTrigger";
import { MdiMagnify } from "../icons/mdiMagnify";
import { useLocation, useNavigate } from "react-router-dom";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { useIsMutating, useQuery } from "@tanstack/react-query";
import "./appBar.module.scss";
import { MdiAccount } from "../icons/mdiAccount";
import { MdiHeartOutline } from "../icons/mdiHeartOutline";
import { MdiArrowLeft } from "../icons/mdiArrowLeft";
import { MdiCog } from "../icons/mdiCog";
import { MdiInformation } from "../icons/mdiInformation";
import { MdiMenu } from "../icons/mdiMenu";
import { useDrawerStore } from "../../utils/store/drawer";
import { delServer } from "../../utils/storage/servers";
import { delUser } from "../../utils/storage/user";
import { MdiDelete } from "../icons/mdiDelete";
import logo from "../../assets/logo.png";
export const AppBar = () => {
const navigate = useNavigate();
const [display, setDisplay] = useState(false);
const [backButtonVisible, setBackButtonVisible] = useState(false);
const location = useLocation();
const user = useQuery({
queryKey: ["user"],
queryFn: async () => {
let usr = await getUserApi(window.api).getCurrentUser();
return usr.data;
},
enabled: display,
networkMode: "always",
});
const trigger = useScrollTrigger({
disableHysteresis: true,
threshold: 20,
});
const [anchorEl, setAnchorEl] = useState(null);
const openMenu = Boolean(anchorEl);
const handleMenuOpen = (event) => {
setAnchorEl(event.currentTarget);
};
const handleMenuClose = () => {
setAnchorEl(null);
};
const [setDrawerOpen] = useDrawerStore((state) => [state.setOpen]);
const handleDrawerOpen = () => {
setDrawerOpen(true);
};
useEffect(() => {
if (
location.pathname.includes("login") ||
location.pathname.includes("setup") ||
location.pathname.includes("player") ||
location.pathname === "/"
) {
setDisplay(false);
} else {
setDisplay(true);
}
}, [location]);
useEffect(() => {
if (location.pathname == "/home") {
setBackButtonVisible(false);
} else {
setBackButtonVisible(true);
}
}, [location]);
if (!display) {
return <></>;
}
if (display) {
return (
<MuiAppBar
style={{
backgroundColor: "transparent",
paddingRight: "0 !important",
}}
className={trigger ? "appBar backdropVisible" : "appBar"}
elevation={0}
>
<Toolbar
sx={{
justifyContent: "space-between",
paddingLeft: "20px !important",
}}
>
<div
style={{
display: "flex",
gap: "1em",
alignItems: "center",
}}
>
<IconButton
color="inherit"
aria-label="open drawer"
onClick={handleDrawerOpen}
>
<MdiMenu />
</IconButton>
<IconButton
onClick={() => navigate(-1)}
sx={{
transition: "transform 0.2s",
transform: backButtonVisible
? "scale(1)"
: "scale(0)",
transformOrigin: "left",
ml: 2,
}}
>
<MdiArrowLeft />
</IconButton>
</div>
<div style={{ display: "flex", gap: "1.2em" }}>
<IconButton onClick={() => navigate("/search")}>
<MdiMagnify />
</IconButton>
<IconButton disabled>
<MdiHeartOutline />
</IconButton>
<IconButton
sx={{ p: 0 }}
onClick={handleMenuOpen}
>
{user.isSuccess &&
(user.data.PrimaryImageTag ==
undefined ? (
<Avatar
className="appBar-avatar"
alt={user.data.Name}
>
<MdiAccount className="appBar-avatar-icon" />
</Avatar>
) : (
<Avatar
className="appBar-avatar"
src={
window.api.basePath +
"/Users/" +
user.data.Id +
"/Images/Primary"
}
alt={user.data.Name}
>
<MdiAccount className="appBar-avatar-icon" />
</Avatar>
))}
</IconButton>
<Menu
anchorEl={anchorEl}
open={openMenu}
onClose={handleMenuClose}
sx={{ mt: 1 }}
>
<MenuItem
onClick={() => navigate("/settings")}
disabled
>
<ListItemIcon>
<MdiCog />
</ListItemIcon>
Settings
</MenuItem>
<MenuItem
onClick={() => navigate("/about")}
disabled
>
<ListItemIcon>
<MdiInformation />
</ListItemIcon>
About
</MenuItem>
<MenuItem
onClick={async () => {
await delServer();
await delUser();
await relaunch();
}}
>
<ListItemIcon>
<MdiDelete />
</ListItemIcon>
Remove Server
</MenuItem>
</Menu>
</div>
</Toolbar>
</MuiAppBar>
);
}
};
+114 -7
View File
@@ -1,21 +1,128 @@
/** @format */
.appBar { .appBar {
transition: background-color $transition-time-fast, transition: background-color $transition-time-fast,
backdrop-filter $transition-time-fast, backdrop-filter $transition-time-fast,
box-shadow $transition-time-default !important; box-shadow $transition-time-default !important;
&.backdropVisible { &.backdropVisible {
background-color: $clr-background-dark-opacity-0_8 !important; background-color: rgb(0 0 0 / 0.6) !important;
backdrop-filter: blur(30px); backdrop-filter: blur(10px);
} }
&-avatar { &-avatar {
background: $clr-gradient-dark; background: rgb(255 255 255 / 0.1) !important;
&-icon { &-icon {
fill: url(#clr-gradient-default) !important; color: white;
} }
} }
&-logo { &-text {
height: 1.8em !important; opacity: 0.7;
transition: opacity $transition-time-fast;
position: relative;
color: white;
text-decoration: none;
&::after {
content: "";
width: 100%;
height: 1.2px;
background: white;
opacity: 0.7;
position: absolute;
bottom: 4.6px;
left: 0;
transform: scaleX(0);
transition: transform $transition-time-fast,
background $transition-time-fast,
opacity $transition-time-fast;
}
&:hover {
opacity: 0.8;
&::after {
transform: scaleX(0.25);
opacity: 0.8;
}
}
&.active {
opacity: 1;
color: $clr-accent-default;
&::after {
transform: scaleX(0.5);
opacity: 1;
background: $clr-accent-default;
}
}
}
&-library {
position: relative;
width: 20rem;
text-decoration: none;
&::after {
content: "";
position: absolute;
inset: 5px;
background: rgb(0 0 0 / 0.3);
opacity: 0;
transition: opacity $transition-time-fast;
border-radius: 5px;
}
> img {
border: 0px solid white;
width: inherit;
object-fit: cover;
height: 100%;
border-radius: 10px;
transition: border $transition-time-fast;
}
&-icon {
height: 100%;
width: inherit;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
color: white !important;
background: rgb(255 255 255 / 0.1);
border: 0px solid white;
border-radius: 10px;
transition: border $transition-time-fast;
.material-symbols-rounded {
font-size: 3em;
}
}
&.active {
&::after {
opacity: 1;
}
> img {
border: 5px solid white;
}
.material-symbols-rounded {
font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 25,
"opsz" 40;
}
.appBar-library-icon {
border: 5px solid white;
}
}
&-scrollContainer {
display: flex;
max-width: 35vw;
overflow: auto;
gap: 1em;
height: inherit;
padding: 15px;
// Magic scrollbar
&::-webkit-scrollbar {
&-thumb {
width: 150px;
max-width: 33%;
}
&-track {
margin-left: 25px;
margin-right: 25px;
background: transparent !important;
}
}
}
} }
} }
+430
View File
@@ -0,0 +1,430 @@
import React, { useEffect, useRef, useState } from "react";
import { relaunch } from "@tauri-apps/api/process";
import MuiAppBar from "@mui/material/AppBar";
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 ListItemIcon from "@mui/material/ListItemIcon";
import Menu from "@mui/material/Menu";
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 { red } from "@mui/material/colors";
import { Link, NavLink, useLocation, useNavigate } from "react-router-dom";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api";
import { useQuery, useQueryClient } from "@tanstack/react-query";
import { delServer } from "../../utils/storage/servers";
import { delUser } from "../../utils/storage/user";
import { useDrawerStore } from "../../utils/store/drawer";
import "./appBar.module.scss";
import { EventEmitter as event } from "../../eventEmitter";
import { useApi } from "../../utils/store/api";
import { getTypeIcon } from "../utils/iconsCollection";
import { Divider } from "@mui/material";
import logo from "../../assets/icon.svg";
import {
setSettingsDialogOpen,
setSettingsTabValue,
} from "../../utils/store/settings";
const forwardRefNavLink = React.forwardRef({
displayName: "NavLink",
render: (props, ref) => (
<NavLink
ref={ref}
to={props.to}
className={({ isActive }) =>
`${props.className} ${isActive ? props.activeClassName : ""}`
}
>
{props.children}
</NavLink>
),
});
export const AppBar = () => {
const [api] = useApi((state) => [state.api]);
const navigate = useNavigate();
const [display, setDisplay] = useState(false);
const [backButtonVisible, setBackButtonVisible] = useState(false);
const location = useLocation();
const user = useQuery({
queryKey: ["user"],
queryFn: async () => {
const usr = await getUserApi(api).getCurrentUser();
return usr.data;
},
enabled: display,
networkMode: "always",
});
const libraries = useQuery({
queryKey: ["libraries"],
queryFn: async () => {
const libs = await getUserViewsApi(api).getUserViews({
userId: user.data.Id,
});
return libs.data;
},
enabled: !!user.data && !!api.accessToken,
networkMode: "always",
});
useEffect(() => {
if (user.isError) {
console.error(user.error);
}
}, [user]);
const trigger = useScrollTrigger({
disableHysteresis: true,
threshold: 20,
});
const [anchorEl, setAnchorEl] = useState(null);
const openMenu = Boolean(anchorEl);
const handleMenuOpen = (event) => {
setAnchorEl(event.currentTarget);
};
const handleMenuClose = () => {
setAnchorEl(null);
};
const queryClient = useQueryClient();
const [setDrawerOpen] = useDrawerStore((state) => [state.setOpen]);
const handleDrawerOpen = () => {
setDrawerOpen(true);
};
const handleLogout = async () => {
console.log("Logging out user...");
await api.logout();
delUser();
sessionStorage.removeItem("accessToken");
event.emit("create-jellyfin-api", api.basePath);
queryClient.clear();
setAnchorEl(null);
navigate("/login/index");
};
const [librariesPopper, setLibrariesPopper] = useState(false);
const librariesText = useRef(null);
const handlePopper = (event) => {
if (librariesPopper) {
setLibrariesPopper(null);
} else {
setLibrariesPopper(event.currentTarget);
}
};
const [isBrowsingLibrary, setIsBrowsingLibrary] = useState(false);
useEffect(() => {
if (
location.pathname.includes("login") ||
location.pathname.includes("setup") ||
location.pathname.includes("server") ||
location.pathname.includes("player") ||
location.pathname.includes("error") ||
location.pathname === "/"
) {
setDisplay(false);
} else {
setDisplay(true);
}
if (location.pathname === "/home") {
setBackButtonVisible(false);
} else {
setBackButtonVisible(true);
}
if (location.pathname.includes("library")) {
setIsBrowsingLibrary(true);
} else {
setIsBrowsingLibrary(false);
}
}, [location]);
if (!display) {
return <></>;
}
if (display) {
return (
<MuiAppBar
style={{
backgroundColor: "transparent",
paddingRight: "0 !important",
}}
className={trigger ? "appBar backdropVisible" : "appBar"}
elevation={trigger ? 4 : 0}
color="transparent"
>
<Toolbar
sx={{
display: "grid",
gap: "0.6em",
gridTemplateColumns: "30% 1fr 30%",
}}
>
<IconButton
onClick={() => navigate(-1)}
disabled={!backButtonVisible}
style={{
justifySelf: "left",
}}
>
<div className="material-symbols-rounded">arrow_back</div>
</IconButton>
<div
className="flex flex-row flex-center"
style={{
gap: "2.6em",
}}
>
<NavLink to="/home">
{({ isActive }) =>
isActive ? (
<Button
style={{
textTransform: "none",
}}
size="large"
className="appBar-text active"
>
<Typography variant="subtitle1" fontWeight={600}>
Home
</Typography>
</Button>
) : (
<Button
style={{
textTransform: "none",
}}
className="appBar-text"
size="large"
color="white"
>
<Typography variant="subtitle1" fontWeight={600}>
Home
</Typography>
</Button>
)
}
</NavLink>
<Button
variant="text"
// disableRipple
disableElevation
onClick={handlePopper}
style={{ textTransform: "none" }}
size="large"
disableFocusRipple={false}
color={isBrowsingLibrary ? "primary" : "white"}
className={
isBrowsingLibrary ? "appBar-text active" : "appBar-text"
}
>
<Typography variant="subtitle1" fontWeight={600}>
Libraries
</Typography>
</Button>
{/* <Typography
variant="subtitle1"
fontWeight={600}
onMouseEnter={popoverEnter}
onFocus={popoverEnter}
tabIndex={0}
className={
isBrowsingLibrary
? "appBar-text active"
: "appBar-text"
}
// onMouseLeave={popoverLeave}
></Typography> */}
<Popper
open={Boolean(librariesPopper)}
anchorEl={librariesPopper}
placement="bottom"
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% 0 0",
}}
timeout={250}
>
<Paper
sx={{
mt: "1.1em",
maxHeight: "72em",
}}
style={{
boxShadow:
"0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",
overflow: "hidden",
borderRadius: "25px",
}}
>
<div className="appBar-library-scrollContainer">
{libraries.isPending
? "loading..."
: libraries.data.Items.map((library) => (
<NavLink
key={library.Id}
className="appBar-library"
to={`library/${library.Id}`}
style={{
borderRadius: "10px",
}}
>
{Object.keys(library.ImageTags).includes(
"Primary",
) ? (
<img
alt={library.Name}
src={`${api.basePath}/Items/${library.Id}/Images/Primary?quality=90&fillHeight=226&fillWidth=127`}
/>
) : (
<div className="appBar-library-icon">
{" "}
{getTypeIcon(library.CollectionType)}{" "}
<Typography variant="h6">
{library.Name}
</Typography>
</div>
)}
</NavLink>
))}
</div>
</Paper>
</Grow>
)}
</Popper>
</div>
<div
className="flex flex-row"
style={{ justifySelf: "right", gap: "0.6em" }}
>
<IconButton onClick={() => navigate("/search")}>
<div className="material-symbols-rounded">search</div>
</IconButton>
<IconButton onClick={() => navigate("/favorite")}>
<div className="material-symbols-rounded">favorite</div>
</IconButton>
<IconButton sx={{ p: 0 }} onClick={handleMenuOpen}>
{user.isSuccess &&
(user.data.PrimaryImageTag === undefined ? (
<Avatar className="appBar-avatar" alt={user.data.Name}>
<span className="material-symbols-rounded appBar-avatar-icon">
account_circle
</span>
</Avatar>
) : (
<Avatar
className="appBar-avatar"
src={`${api.basePath}/Users/${user.data.Id}/Images/Primary`}
alt={user.data.Name}
>
<span className="material-symbols-rounded appBar-avatar-icon">
account_circle
</span>
</Avatar>
))}
</IconButton>
<Menu
anchorEl={anchorEl}
open={openMenu}
onClose={handleMenuClose}
sx={{ mt: 2 }}
disableScrollLock
>
<MenuItem
onClick={() => {
handleLogout();
handleMenuClose();
}}
>
<ListItemIcon>
<div className="material-symbols-rounded">logout</div>
</ListItemIcon>
Logout
</MenuItem>
<Divider />
<MenuItem
onClick={() => {
setSettingsDialogOpen(true);
setSettingsTabValue(1);
handleMenuClose();
}}
>
<ListItemIcon>
<div className="material-symbols-rounded">settings</div>
</ListItemIcon>
Settings
</MenuItem>
<MenuItem
onClick={() => {
setSettingsDialogOpen(true);
setSettingsTabValue(10);
handleMenuClose();
}}
>
<ListItemIcon>
<div className="material-symbols-rounded">info</div>
</ListItemIcon>
About
</MenuItem>
</Menu>
</div>
</Toolbar>
</MuiAppBar>
);
}
};
+2 -5
View File
@@ -1,9 +1,6 @@
/** @format */
import AppBar from "@mui/material/AppBar"; import AppBar from "@mui/material/AppBar";
import Toolbar from "@mui/material/Toolbar";
import IconButton from "@mui/material/IconButton"; import IconButton from "@mui/material/IconButton";
import { MdiArrowLeft } from "../icons/mdiArrowLeft"; import Toolbar from "@mui/material/Toolbar";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
export const AppBarBackOnly = () => { export const AppBarBackOnly = () => {
@@ -24,7 +21,7 @@ export const AppBarBackOnly = () => {
onClick={handleBack} onClick={handleBack}
sx={{ mr: 2 }} sx={{ mr: 2 }}
> >
<MdiArrowLeft /> <span className="material-symbols-rounded">arrow_back</span>
</IconButton> </IconButton>
</Toolbar> </Toolbar>
</AppBar> </AppBar>
+10 -16
View File
@@ -1,38 +1,32 @@
/** @format */
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import React from "react";
import Box from "@mui/material/Box"; import Box from "@mui/material/Box";
import { MdiAccount } from "../icons/mdiAccount";
import "./avatar.module.scss"; import "./avatar.module.scss";
export const AvatarImage = ({ userId, userImageTags }) => { import { useApi } from "../../utils/store/api";
export const AvatarImage = ({ userId }) => {
const [api] = useApi((state) => [state.api]);
return ( return (
<Box className="avatar-image-container"> <Box className="avatar-image-container">
<div <div
className="avatar-image" className="avatar-image"
style={{ style={{
backgroundImage: backgroundImage: `url('${api.basePath}/Users/${userId}/Images/Primary')`,
"url('" +
window.api.basePath +
"/Users/" +
userId +
"/Images/Primary')",
}} }}
></div> />
<div className="avatar-image-icon-container"> <div className="avatar-image-icon-container">
<MdiAccount className="avatar-image-icon" /> <span className="material-symbols-rounded avatar-image-icon">
account_circle
</span>
</div> </div>
</Box> </Box>
); );
}; };
export const AvatarSideMenu = ({ userName }) => {
return <div></div>;
};
AvatarImage.propType = { AvatarImage.propType = {
userId: PropTypes.string.isRequired, userId: PropTypes.string.isRequired,
userImageTags: PropTypes.any, userImageTags: PropTypes.any,
+2 -3
View File
@@ -1,4 +1,3 @@
/** @format */
.avatar-image { .avatar-image {
aspect-ratio: 1; aspect-ratio: 1;
@@ -18,8 +17,8 @@
&-icon { &-icon {
height: 100%; height: 100%;
padding: 0.2em; padding: 0.2em;
background: $clr-gradient-dark; background: rgb(255 255 255 / 0.1);
fill: url(#clr-gradient-default) !important; color: white;
font-size: 7em !important; font-size: 7em !important;
} }
} }
+48 -60
View File
@@ -1,105 +1,93 @@
/** @format */
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { useEffect } from "react"; import React, { useEffect } from "react";
import IconButton from "@mui/material/IconButton"; import IconButton from "@mui/material/IconButton";
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api"; import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { pink } from "@mui/material/colors";
import { MdiHeart } from "../icons/mdiHeart";
import { MdiHeartOutline } from "../icons/mdiHeartOutline";
import { useSnackbar } from "notistack";
import CircularProgress from "@mui/material/CircularProgress"; import CircularProgress from "@mui/material/CircularProgress";
import { pink } from "@mui/material/colors";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { useSnackbar } from "notistack";
const LikeButton = ({ import { useApi } from "../../utils/store/api";
itemId,
isFavorite, const LikeButton = ({ itemId, isFavorite, queryKey, userId, itemName }) => {
queryKey, const [api] = useApi((state) => [state.api]);
userId,
itemName,
color = "white",
}) => {
const queryClient = useQueryClient(); const queryClient = useQueryClient();
const { enqueueSnackbar } = useSnackbar(); const { enqueueSnackbar } = useSnackbar();
const handleLiking = async () => { const handleLiking = async () => {
let result; let result = null;
if (isFavorite) { if (isFavorite) {
result = await getUserLibraryApi(window.api).unmarkFavoriteItem({ result = await getUserLibraryApi(api).unmarkFavoriteItem({
userId: userId, userId: userId,
itemId: itemId, itemId: itemId,
}); });
} else if (!isFavorite) { } else if (!isFavorite) {
result = await getUserLibraryApi(window.api).markFavoriteItem({ result = await getUserLibraryApi(api).markFavoriteItem({
userId: userId, userId: userId,
itemId: itemId, itemId: itemId,
}); });
} }
return result.data;
}; };
const mutation = useMutation({ const mutation = useMutation({
// mutationFn: async () => {
// new Promise((resolve, reject) => {
// setTimeout(() => {
// resolve("foo");
// }, 4000);
// });
// },
mutationFn: handleLiking, mutationFn: handleLiking,
onError: (error, a, context) => { onError: (error) => {
enqueueSnackbar(`${error}`, { enqueueSnackbar(`${error}`, {
variant: "error", variant: "error",
}); });
enqueueSnackbar( enqueueSnackbar(`An error occured while updating "${itemName}"`, {
`An error occured while updating "${itemName}"`, variant: "error",
{ });
variant: "error",
},
);
console.error(error); console.error(error);
}, },
onSettled: async () => { onSettled: async () => {
return await queryClient.invalidateQueries({ return await queryClient.invalidateQueries({
queryKey: queryKey, queryKey,
}); });
}, },
mutationKey: ["likeButton", itemId], mutationKey: ["likeButton", itemId],
}); });
return ( return (
<div <IconButton
onClick={(e) => {
if (!mutation.isPending) {
mutation.mutate();
e.stopPropagation();
}
}}
style={{ style={{
opacity: mutation.isPending ? 0.5 : 1,
transition: "opacity 250ms", transition: "opacity 250ms",
position: "relative",
display: "inline-flex",
}} }}
> >
<CircularProgress <div
style={{ className="material-symbols-rounded"
opacity: mutation.isLoading ? 1 : 0, style={
transition: "opacity 200ms", isFavorite
}} ? {
/> "--fill": mutation.isPending ? 0 : 1,
<IconButton color: mutation.isPending ? "white" : pink.A700,
onClick={(e) => { }
if (!mutation.isLoading) { : {
e.stopPropagation(); "--fill": mutation.isPending ? 1 : 0,
mutation.mutate(); color: mutation.isPending ? pink.A700 : "white",
} }
}} }
style={{
position: "absolute",
top: 0,
left: 0,
right: 0,
bottom: 0,
display: "flex",
alignItems: "center",
justifyContent: "center",
opacity: mutation.isLoading ? 0.5 : 1,
}}
> >
{isFavorite ? ( favorite
<MdiHeart sx={{ color: pink[700] }} /> </div>
) : ( </IconButton>
<MdiHeartOutline sx={{ color: color }} />
)}
</IconButton>
</div>
); );
}; };
+33 -45
View File
@@ -1,34 +1,37 @@
/** @format */
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { useEffect } from "react"; import React from "react";
import IconButton from "@mui/material/IconButton";
import CircularProgress from "@mui/material/CircularProgress"; import CircularProgress from "@mui/material/CircularProgress";
import IconButton from "@mui/material/IconButton";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { green } from "@mui/material/colors"; import { green } from "@mui/material/colors";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api/playstate-api"; import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api/playstate-api";
import { MdiCheck } from "../icons/mdiCheck";
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 queryClient = useQueryClient(); const queryClient = useQueryClient();
const { enqueueSnackbar } = useSnackbar(); const { enqueueSnackbar } = useSnackbar();
const handleMarking = async () => { const handleMarking = async () => {
let result = null;
if (!isPlayed) { if (!isPlayed) {
await getPlaystateApi(window.api).markPlayedItem({ result = await getPlaystateApi(api).markPlayedItem({
userId: userId, userId: userId,
itemId: itemId, itemId: itemId,
}); });
} else if (isPlayed) { } else if (isPlayed) {
await getPlaystateApi(window.api).markUnplayedItem({ result = await getPlaystateApi(api).markUnplayedItem({
userId: userId, userId: userId,
itemId: itemId, itemId: itemId,
}); });
} }
return result;
}; };
const mutation = useMutation({ const mutation = useMutation({
mutationFn: handleMarking, mutationFn: handleMarking,
@@ -36,12 +39,9 @@ const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => {
enqueueSnackbar(`${error}`, { enqueueSnackbar(`${error}`, {
variant: "error", variant: "error",
}); });
enqueueSnackbar( enqueueSnackbar(`An error occured while updating "${itemName}"`, {
`An error occured while updating "${itemName}"`, variant: "error",
{ });
variant: "error",
},
);
console.error(error); console.error(error);
}, },
onSettled: async () => { onSettled: async () => {
@@ -52,45 +52,33 @@ const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => {
mutationKey: ["markPlayedButton", itemId], mutationKey: ["markPlayedButton", itemId],
}); });
return ( return (
<div <IconButton
onClick={(e) => {
if (!mutation.isPending) {
mutation.mutate();
e.stopPropagation();
}
}}
style={{ style={{
opacity: mutation.isPending ? 0.5 : 1,
transition: "opacity 250ms", transition: "opacity 250ms",
position: "relative",
display: "inline-flex",
}} }}
> >
<CircularProgress <div
className="material-symbols-rounded"
style={{ style={{
opacity: mutation.isLoading ? 1 : 0, color: isPlayed
transition: "opacity 200ms", ? mutation.isPending
}} ? "white"
/> : green.A700
<IconButton : mutation.isPending
onClick={(e) => { ? green.A700
if (!mutation.isLoading) { : "white",
e.stopPropagation();
mutation.mutate();
}
}}
style={{
position: "absolute",
top: 0,
left: 0,
right: 0,
bottom: 0,
display: "flex",
alignItems: "center",
justifyContent: "center",
opacity: mutation.isLoading ? 0.5 : 1,
}} }}
> >
<MdiCheck done
sx={{ </div>
color: isPlayed ? green[400] : "white", </IconButton>
}}
/>
</IconButton>
</div>
); );
}; };
-255
View File
@@ -1,255 +0,0 @@
/** @format */
import PropTypes from "prop-types";
import Button from "@mui/material/Button";
import Fab from "@mui/material/Fab";
import LinearProgress from "@mui/material/LinearProgress";
import { MdiPlayOutline } from "../icons/mdiPlayOutline";
import {
usePlaybackDataLoadStore,
usePlaybackStore,
} from "../../utils/store/playback";
import { useNavigate } from "react-router-dom";
import { useMutation, useQuery } from "@tanstack/react-query";
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api";
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
import {
BaseItemKind,
ItemFields,
SortOrder,
} from "@jellyfin/sdk/lib/generated-client";
import { useSnackbar } from "notistack";
import { useAudioPlayback } from "../../utils/store/audioPlayback";
import { getPlaylistsApi } from "@jellyfin/sdk/lib/utils/api/playlists-api";
const PlayButton = ({
itemId,
itemUserData,
userId,
itemType,
currentAudioTrack,
currentSubTrack,
currentVideoTrack,
className,
sx,
iconProps,
buttonProps,
iconOnly,
audio = false,
size = "large",
playlistItem,
playlistItemId = "",
trackIndex,
}) => {
const navigate = useNavigate();
const [
setUrl,
setPosition,
setDuration,
setItemId,
setItemName,
setSubtitleTracksStore,
setSelectedSubtitleTrack,
] = usePlaybackStore((state) => [
state.setUrl,
state.setPosition,
state.setDuration,
state.setItemId,
state.setItemName,
state.setSubtitleTracks,
state.setSelectedSubtitleTrack,
]);
const [
setAudioUrl,
setAudioDisplay,
setAudioItem,
setAudioTracks,
setCurrentTrack,
setPlaylistItemId,
] = useAudioPlayback((state) => [
state.setUrl,
state.setDisplay,
state.setItem,
state.setTracks,
state.setCurrentTrack,
state.setPlaylistItemId,
]);
const setPlaybackDataLoading = usePlaybackDataLoadStore(
(state) => state.setIsLoading,
);
const { enqueueSnackbar } = useSnackbar();
const item = useMutation({
mutationKey: ["playButton", itemId, userId],
mutationFn: async () => {
setPlaybackDataLoading(true);
let result;
if (itemType == "Series") {
result = await getTvShowsApi(window.api).getEpisodes({
seriesId: itemId,
limit: 1,
startIndex: 0,
fields: [
ItemFields.MediaSources,
ItemFields.MediaStreams,
],
});
} else if (itemType == BaseItemKind.Playlist || playlistItem) {
result = await getPlaylistsApi(window.api).getPlaylistItems(
{
userId: userId,
playlistId: playlistItemId,
},
);
} else if (itemType == BaseItemKind.MusicAlbum) {
result = await getItemsApi(window.api).getItems({
parentId: itemId,
userId: userId,
fields: [
ItemFields.MediaSources,
ItemFields.MediaStreams,
],
sortOrder: SortOrder.Ascending,
sortBy: "IndexNumber",
});
} else if (itemType == BaseItemKind.MusicArtist) {
result = await getItemsApi(window.api).getItems({
artistIds: [itemId],
recursive: true,
includeItemTypes: [BaseItemKind.Audio],
userId: userId,
fields: [
ItemFields.MediaSources,
ItemFields.MediaStreams,
],
sortOrder: SortOrder.Ascending,
sortBy: ["PremiereDate", "ProductionYear", "SortName"],
});
} else {
result = await getItemsApi(window.api).getItems({
ids: [itemId],
userId: userId,
fields: [
ItemFields.MediaSources,
ItemFields.MediaStreams,
],
sortOrder: SortOrder.Ascending,
sortBy: "IndexNumber",
});
}
return result.data;
},
onSuccess: (item) => {
if (audio) {
setCurrentTrack(trackIndex);
setAudioTracks(item.Items);
setAudioUrl(
`${window.api.basePath}/Audio/${item.Items[trackIndex].Id}/universal?deviceId=${window.api.deviceInfo.id}&userId=${userId}&api_key=${window.api.accessToken}`,
);
setAudioItem(item.Items[trackIndex]);
setPlaylistItemId(playlistItemId);
setAudioDisplay(true);
} else {
setUrl(
`${window.api.basePath}/Videos/${item.Items[0].Id}/stream.
${item.Items[0].MediaSources[0].Container}
?Static=true&mediaSourceId=${item.Items[0].Id}&deviceId=${window.api.deviceInfo.id}&api_key=${window.api.accessToken}&Tag=${item.Items[0].MediaSources[0].ETag}&videoStreamIndex=${currentVideoTrack}&audioStreamIndex=${currentAudioTrack}`,
);
setPosition(item.Items[0].UserData?.PlaybackPositionTicks);
setItemName(
item.Items[0].Type == "Episode"
? `${item.Items[0].SeriesName} S${item.Items[0].ParentIndexNumber}:E${item.Items[0].IndexNumber} ${item.Items[0].Name}`
: item.Items[0].Name,
);
setItemId(item.Items[0].Id);
setDuration(item.Items[0].RunTimeTicks);
// setSubtitleTracksStore(subtitleTracks);
setSelectedSubtitleTrack(currentSubTrack);
navigate(`/player`);
}
},
onSettled: () => {
setPlaybackDataLoading(false);
},
onError: (error) => {
enqueueSnackbar(`${error}`, {
variant: "error",
});
},
});
const handleClick = (e) => {
e.stopPropagation();
item.mutate();
};
if (iconOnly) {
return (
<Fab
color="primary"
aria-label="Play"
className={className}
onClick={handleClick}
sx={sx}
size={size}
{...buttonProps}
>
<MdiPlayOutline {...iconProps} />
</Fab>
);
} else {
return (
<Button
className={className}
variant="contained"
onClick={handleClick}
startIcon={<MdiPlayOutline />}
{...buttonProps}
sx={{
position: "relative",
overflow: "hidden",
}}
size={size}
>
<LinearProgress
variant="determinate"
value={
100 > itemUserData.PlayedPercentage > 0
? itemUserData.PlayedPercentage
: 0
}
sx={{
position: "absolute",
top: 0,
left: 0,
right: 0,
bottom: 0,
height: "100%",
background: "transparent",
opacity: 0.2,
zIndex: 0,
}}
color="white"
/>
{itemUserData.PlaybackPositionTicks > 0 ? "Resume" : "Play"}
</Button>
);
}
};
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,
};
+358
View File
@@ -0,0 +1,358 @@
import PropTypes from "prop-types";
import React from "react";
import Button, {
type ButtonProps,
type ButtonPropsSizeOverrides,
} from "@mui/material/Button";
import Fab from "@mui/material/Fab";
import LinearProgress from "@mui/material/LinearProgress";
import Typography from "@mui/material/Typography";
import {
type BaseItemDto,
type BaseItemDtoQueryResult,
BaseItemKind,
ItemFields,
SortOrder,
type UserItemDataDto,
} from "@jellyfin/sdk/lib/generated-client";
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
import { getPlaylistsApi } from "@jellyfin/sdk/lib/utils/api/playlists-api";
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api";
import { useMutation } from "@tanstack/react-query";
import { 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 {
playItem,
setItem,
usePlaybackDataLoadStore,
usePlaybackStore,
} from "../../utils/store/playback";
import type { SxProps } from "@mui/material";
const PlayButton = ({
item,
itemId,
itemUserData,
userId,
itemType,
currentAudioTrack,
currentSubTrack,
currentVideoTrack,
className,
sx,
buttonProps,
iconOnly,
audio = false,
size = "large",
playlistItem,
playlistItemId = "",
trackIndex,
}: {
item: BaseItemDto;
itemId: string;
itemUserData: UserItemDataDto;
userId: string;
itemType: BaseItemKind;
currentAudioTrack: number;
currentVideoTrack: number;
currentSubTrack: number;
className: string;
sx: SxProps;
buttonProps: ButtonProps;
iconOnly: boolean;
audio: boolean;
size: ButtonPropsSizeOverrides;
playlistItem: BaseItemDto;
playlistItemId: string;
trackIndex: number;
}) => {
const [api] = useApi((state) => [state.api]);
const navigate = useNavigate();
// const [
// setUrl,
// setPosition,
// setDuration,
// setItemId,
// setItemName,
// setAudioStreamIndex,
// setVideoStreamIndex,
// setSubtitleStreamIndex,
// setMediaSourceId,
// setUserId,
// setMediaContainer,
// setSeriesId,
// setEpisodeIndex,
// ] = usePlaybackStore((state) => [
// state.setUrl,
// state.setPosition,
// state.setDuration,
// state.setItemId,
// state.setItemName,
// state.setAudioStreamIndex,
// state.setVideoStreamIndex,
// state.setSubtitleStreamIndex,
// state.setMediaSourceId,
// state.setUserId,
// state.setMediaContainer,
// state.setSeriesId,
// state.setEpisodeIndex,
// ]);
const [
setAudioUrl,
setAudioDisplay,
setAudioItem,
setAudioTracks,
setCurrentTrack,
setPlaylistItemId,
] = useAudioPlayback((state) => [
state.setUrl,
state.setDisplay,
state.setItem,
state.setTracks,
state.setCurrentTrack,
state.setPlaylistItemId,
]);
const setPlaybackDataLoading = usePlaybackDataLoadStore(
(state) => state.setisPending,
);
const { enqueueSnackbar } = useSnackbar();
const itemQuery = useMutation({
mutationKey: ["playButton", itemId, userId],
mutationFn: async () => {
setPlaybackDataLoading(true);
let result: any;
if (playlistItem) {
result = await getPlaylistsApi(api).getPlaylistItems({
userId: userId,
playlistId: playlistItemId,
});
} else {
switch (itemType) {
case BaseItemKind.Series:
result = await getTvShowsApi(api).getEpisodes({
seriesId: itemId,
limit: 1,
fields: [ItemFields.MediaSources, ItemFields.MediaStreams],
enableUserData: true,
userId: userId,
});
break;
case BaseItemKind.Playlist:
result = await getPlaylistsApi(api).getPlaylistItems({
userId: userId,
playlistId: playlistItemId,
});
break;
case BaseItemKind.MusicAlbum:
result = await getItemsApi(api).getItems({
parentId: itemId,
userId: userId,
fields: [ItemFields.MediaSources, ItemFields.MediaStreams],
sortOrder: SortOrder.Ascending,
sortBy: ["IndexNumber"],
});
break;
case BaseItemKind.MusicArtist:
result = await getItemsApi(api).getItems({
artistIds: [itemId],
recursive: true,
includeItemTypes: [BaseItemKind.Audio],
userId: userId,
fields: [ItemFields.MediaSources, ItemFields.MediaStreams],
sortOrder: SortOrder.Ascending,
sortBy: ["PremiereDate", "ProductionYear", "SortName"],
});
break;
case BaseItemKind.BoxSet:
result = await getItemsApi(api).getItems({
parentId: itemId,
userId,
fields: [ItemFields.MediaSources, ItemFields.MediaStreams],
sortOrder: SortOrder.Ascending,
sortBy: "IndexNumber",
});
break;
default:
result = await getItemsApi(api).getItems({
ids: [itemId],
userId: userId,
fields: [ItemFields.MediaSources, ItemFields.MediaStreams],
sortOrder: SortOrder.Ascending,
sortBy: "IndexNumber",
});
break;
}
}
return result.data;
},
onSuccess: (result: BaseItemDtoQueryResult | null) => {
if (trackIndex) {
setPlaylistItemId(playlistItemId);
// setCurrentTrack(trackIndex);
// setAudioTracks(result.Items);
setAudioUrl(
`${api.basePath}/Audio/${result.Items[trackIndex].Id}/universal?deviceId=${api.deviceInfo.id}&userId=${userId}&api_key=${api.accessToken}`,
);
setAudioItem(result.Items[trackIndex]);
setAudioDisplay(true);
setQueue(result.Items, trackIndex);
} else if (audio) {
setAudioItem(result.Items[0]);
setAudioTracks(result.Items);
setAudioUrl(
`${api.basePath}/Audio/${result.Items[0].Id}/universal?deviceId=${api.deviceInfo.id}&userId=${userId}&api_key=${api.accessToken}`,
);
setAudioDisplay(true);
setQueue(result.Items, 0);
} else {
// Movie / Series Playback
const queue = result.Items;
let itemName = result.Items[0].Name;
let episodeTitle = "";
if (result.Items[0].SeriesId) {
itemName = result.Items[0].SeriesName;
episodeTitle = `S${result?.Items[0].ParentIndexNumber ?? 0}:E${
result?.Items[0].IndexNumber ?? 0
} ${result?.Items[0].Name}`;
}
let selectedSubtitleTrack: number | undefined = currentSubTrack;
const subtitles = result?.Items[0].MediaSources[0].MediaStreams?.filter(
(value) => value.Type === "Subtitle",
);
if (!currentSubTrack) {
selectedSubtitleTrack = subtitles[0].Index;
}
playItem(
itemName,
episodeTitle,
currentVideoTrack,
currentAudioTrack,
selectedSubtitleTrack,
result.Items[0].Container,
true,
`${api.basePath}/Videos/${result.Items[0].Id}/stream.${result.Items[0].Container}?Static=true&mediaSourceId=${result.Items[0].Id}&deviceId=${api.deviceInfo.id}&api_key=${api.accessToken}&Tag=${result.Items[0].MediaSources[0].ETag}&videoStreamIndex=${currentVideoTrack}&audioStreamIndex=${currentAudioTrack}`,
userId,
result?.Items[0].UserData?.PlaybackPositionTicks,
result.Items[0].RunTimeTicks,
result.Items[0],
queue,
0,
subtitles,
result?.Items[0].MediaSources[0].Id
);
navigate("/player");
}
},
onSettled: () => {
setPlaybackDataLoading(false);
},
onError: (error) => {
enqueueSnackbar(`${error}`, {
variant: "error",
});
},
});
const handleClick = (e) => {
e.stopPropagation();
itemQuery.mutate();
};
if (iconOnly) {
return (
<Fab
color="primary"
aria-label="Play"
className={className}
onClick={handleClick}
sx={sx}
size={size}
{...buttonProps}
>
<div
className="material-symbols-rounded em-4"
style={{
fontSize: "3em",
}}
>
play_arrow
</div>
</Fab>
);
}
return (
<Button
className={className}
variant="contained"
onClick={handleClick}
startIcon={
<div
className="material-symbols-rounded"
style={{
fontSize: "2em",
}}
>
play_arrow
</div>
}
{...buttonProps}
sx={{
position: "relative",
overflow: "hidden",
}}
size={size}
>
<LinearProgress
variant="determinate"
value={
100 > itemUserData.PlayedPercentage > 0
? itemUserData.PlayedPercentage
: 0
}
sx={{
position: "absolute",
top: 0,
left: 0,
right: 0,
bottom: 0,
height: "100%",
background: "transparent",
opacity: 0.2,
zIndex: 0,
}}
color="white"
/>
{itemUserData.PlaybackPositionTicks > 0 ? "Resume" : "Play"}
</Button>
);
};
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,
};
+47
View File
@@ -0,0 +1,47 @@
import { MediaUrl } from "@jellyfin/sdk/lib/generated-client";
import { Dialog, IconButton } from "@mui/material";
import React, { useState } from "react";
import ReactPlayer from "react-player";
type TrailerButtonType = {
trailerItem: MediaUrl[];
disabled: boolean;
};
const TrailerButton = (props: TrailerButtonType) => {
const [dialog, setDialog] = useState(false);
return (
<>
<IconButton
disabled={props.disabled ?? false}
onClick={() => setDialog(true)}
>
<span className="material-symbols-rounded">theaters</span>
</IconButton>
<Dialog
maxWidth="md"
fullWidth
open={dialog}
PaperProps={{
style: {
overflow: "hidden",
},
}}
onClose={() => setDialog(false)}
>
<ReactPlayer
playing={false}
url={props.trailerItem[0]?.Url}
width="100%"
height="auto"
style={{
aspectRatio: "16/9",
}}
controls
/>
</Dialog>
</>
);
};
export default TrailerButton;
+72 -92
View File
@@ -1,32 +1,13 @@
/** @format */ import React from "react";
import PropTypes from "prop-types";
import { useNavigate } from "react-router-dom"; 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";
import Typography from "@mui/material/Typography"; import Typography from "@mui/material/Typography";
import LinearProgress from "@mui/material/LinearProgress";
import { Blurhash } from "react-blurhash"; import { Blurhash } from "react-blurhash";
import { useApi } from "../../utils/store/api";
import { TypeIconCollectionCard } from "../utils/iconsCollection";
import "./card.module.scss"; import "./card.module.scss";
import { MdiCheck } from "../icons/mdiCheck";
import LikeButton from "../buttons/likeButton";
import MarkPlayedButton from "../buttons/markPlayedButton";
import PlayButton from "../buttons/playButton";
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
import { MdiAccountTie } from "../icons/mdiAccountTie";
const cardImageAspectRatios = {
thumb: 1.777,
portrait: 0.666,
square: 1,
};
const availableSpecialRoutes = [BaseItemKind.Series];
/** /**
* @typedef {Object} Props * @typedef {Object} Props
@@ -56,85 +37,84 @@ export const ActorCard = ({
onClick, onClick,
disablePadding, disablePadding,
}) => { }) => {
const [api] = useApi((state) => [state.api]);
const navigate = useNavigate(); const navigate = useNavigate();
const defaultOnClick = () => { const defaultOnClick = () => {
navigate(`/person/${item.Id}`); navigate(`/person/${item.Id}`);
}; };
return ( return (
<CardActionArea <div
style={{ className="card card-actor"
padding: disablePadding ? 0 : "0.6em", elevation={0}
borderRadius: "calc(0.6em + 6px)", onClick={onClick ? onClick : defaultOnClick}
}}
className="card-container"
onClick={!!onClick ? onClick : defaultOnClick}
> >
<MuiCard className="card card-actor" elevation={0}> <div className="card-box">
<div className="card-box"> <div
<div className="card-image-container"
className="card-image-container" style={{
style={{ aspectRatio: 1,
aspectRatio: 1, }}
}} >
> {!!imageBlurhash && (
{!!imageBlurhash && ( <Blurhash
<Blurhash hash={imageBlurhash}
hash={imageBlurhash} width={128}
width={128} height={128}
height={128} resolutionX={24}
resolutionX={24} resolutionY={24}
resolutionY={24} className="card-image-blurhash"
className="card-image-blurhash"
/>
)}
<div className="card-image-icon-container">
<MdiAccountTie className="card-image-icon" />
</div>
<img
src={window.api.getItemImageUrl(
!!seriesId ? item.SeriesId : item.Id,
"Primary",
{
quality: 80,
fillHeight: 448,
fillWidth: 448,
},
)}
style={{
height: "100%",
width: "100%",
opacity: 0,
}}
loading="lazy"
onLoad={(e) => (e.target.style.opacity = 1)}
className="card-image"
/> />
)}
<div className="card-image-icon-container">
<div className="material-symbols-rounded">person</div>
</div> </div>
<div <img
className="card-text-container" alt={item.Name}
style={{ display: hideText ? "none" : "block" }} src={api.getItemImageUrl(
> seriesId ? item.SeriesId : item.Id,
<Typography "Primary",
variant="subtitle1" {
fontWeight={500} quality: 80,
noWrap fillHeight: 448,
textAlign="center" fillWidth: 448,
style={{ opacity: 0.9 }} },
> )}
{cardTitle} style={{
</Typography> height: "100%",
<Typography width: "100%",
variant="subtitle2" opacity: 0,
noWrap }}
textAlign="center" loading="lazy"
style={{ opacity: 0.6 }} onLoad={(e) => {
lineHeight="auto" e.target.style.opacity = 1;
> }}
{cardCaption} className="card-image"
</Typography> />
</div>
</div> </div>
</MuiCard> <div
</CardActionArea> className="card-text-container"
style={{ display: hideText ? "none" : "block" }}
>
<Typography
variant="subtitle1"
fontWeight={500}
noWrap
textAlign="center"
style={{ opacity: 0.9 }}
>
{cardTitle}
</Typography>
<Typography
variant="subtitle2"
noWrap
textAlign="center"
style={{ opacity: 0.6 }}
lineHeight="auto"
>
{cardCaption}
</Typography>
</div>
</div>
</div>
); );
}; };
-275
View File
@@ -1,275 +0,0 @@
/** @format */
import PropTypes from "prop-types";
import { useNavigate } from "react-router-dom";
import MuiCard from "@mui/material/Card";
import CardActionArea from "@mui/material/CardActionArea";
import Typography from "@mui/material/Typography";
import LinearProgress from "@mui/material/LinearProgress";
import { Blurhash } from "react-blurhash";
import { TypeIconCollectionCard } from "../utils/iconsCollection";
import "./card.module.scss";
import { MdiCheck } from "../icons/mdiCheck";
import LikeButton from "../buttons/likeButton";
import MarkPlayedButton from "../buttons/markPlayedButton";
import PlayButton from "../buttons/playButton";
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
const cardImageAspectRatios = {
thumb: 1.777,
portrait: 0.666,
square: 1,
};
const availableSpecialRoutes = [
BaseItemKind.Series,
BaseItemKind.BoxSet,
BaseItemKind.MusicAlbum,
BaseItemKind.Episode,
BaseItemKind.Playlist,
];
/**
* @typedef {Object} Props
* @property {import("@jellyfin/sdk/lib/generated-client/models").BaseItemDto} item
* @property {string} cardTitle
* @property {string | number} cardCaption
* @property {string} imageType
* @property {string} imageBlurhash
* @property {'thumb' | 'portrait' | 'square'} cardType
* @property {Array} queryKey
* @property {string} userId
* @property {string} seriesId
* @property {boolean} hideText
* @property {() => {}} onClick
* @property {boolean} disableOverlay
* @property {boolean} disablePadding
* @property {any} overrideIcon
*/
/**
* @description Hero section for item pages
* @param {Props}
* @returns {React.Component}
*/
export const Card = ({
item,
cardTitle,
cardCaption,
imageType = "Primary",
imageBlurhash,
cardType,
queryKey,
userId,
seriesId,
hideText,
onClick,
disableOverlay = false,
disablePadding,
overrideIcon,
}) => {
const navigate = useNavigate();
const defaultOnClick = () => {
if (availableSpecialRoutes.includes(item.Type)) {
navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`);
} else if (!!item.Role || item.Type == BaseItemKind.Person) {
navigate(`/person/${item.Id}`);
} else if (item.Type == BaseItemKind.MusicArtist) {
navigate(`/artist/${item.Id}`);
} else {
navigate(`/item/${item.Id}`);
}
};
return (
<CardActionArea
style={{
padding: disablePadding ? 0 : "0.6em",
borderRadius: "calc(0.6em + 6px)",
}}
className="card-container"
onClick={!!onClick ? onClick : defaultOnClick}
>
<MuiCard className="card" elevation={0}>
<div className="card-box">
<div
className="card-image-container"
style={{
aspectRatio: cardImageAspectRatios[cardType],
}}
>
{!!item.UserData && (
<>
<div
className="card-indicator check"
style={{
opacity: item.UserData?.Played
? 1
: 0,
}}
>
<MdiCheck />
</div>
<div
className={`card-indicator text`}
style={{
opacity: !!item.UserData
?.UnplayedItemCount
? 1
: 0,
}}
>
<Typography
variant="subtitle2"
padding="0.1em 0.4em"
fontWeight={400}
>
{
item.UserData
?.UnplayedItemCount
}
</Typography>
</div>
</>
)}
{!!imageBlurhash && (
<Blurhash
hash={imageBlurhash}
width={128}
height={128}
resolutionX={24}
resolutionY={24}
className="card-image-blurhash"
/>
)}
<div className="card-image-icon-container">
{!!overrideIcon
? TypeIconCollectionCard[overrideIcon]
: TypeIconCollectionCard[item.Type]}
</div>
<img
src={
overrideIcon == "User"
? `${window.api.basePath}/Users/${item.Id}/Images/Primary`
: window.api.getItemImageUrl(
!!seriesId
? item.SeriesId
: item.AlbumId
? item.AlbumId
: item.Id,
imageType,
{
quality: 85,
fillHeight: 462,
fillWidth: 462,
},
)
}
style={{
height: "100%",
width: "100%",
opacity: 0,
}}
loading="lazy"
onLoad={(e) => (e.target.style.opacity = 1)}
className="card-image"
/>
{!disableOverlay && (
<div className="card-overlay">
<PlayButton
itemId={item.Id}
userId={userId}
itemType={item.Type}
currentAudioTrack={0}
currentSubTrack={0}
currentVideoTrack={0}
className="card-play-button"
iconProps={{
style: { fontSize: "2.5em" },
}}
iconOnly
audio={
item.Type ==
BaseItemKind.MusicAlbum ||
item.Type ==
BaseItemKind.Audio ||
item.Type ==
BaseItemKind.AudioBook ||
item.Type ==
BaseItemKind.Playlist
}
playlistItem={
item.Type ==
BaseItemKind.Playlist
}
playlistItemId={item.Id}
/>
<LikeButton
itemId={item.Id}
itemName={item.Name}
isFavorite={
item.UserData?.IsFavorite
}
queryKey={queryKey}
userId={userId}
/>
<MarkPlayedButton
itemId={item.Id}
itemName={item.Name}
isPlayed={item.UserData?.Played}
queryKey={queryKey}
userId={userId}
/>
</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
className="card-text-container"
style={{ display: hideText ? "none" : "block" }}
>
<Typography
variant="subtitle1"
fontWeight={500}
noWrap
textAlign="center"
style={{ opacity: 0.9 }}
>
{cardTitle}
</Typography>
<Typography
variant="subtitle2"
noWrap
textAlign="center"
style={{ opacity: 0.6 }}
lineHeight="auto"
>
{cardCaption}
</Typography>
</div>
</div>
</MuiCard>
</CardActionArea>
);
};
+64 -19
View File
@@ -1,9 +1,9 @@
/** @format */
.card { .card {
height: 100%; height: 100%;
overflow: visible !important; overflow: visible !important;
align-items: flex-start; align-items: flex-start;
background: transparent !important; background: transparent !important;
padding: 0.4em;
&-box { &-box {
display: flex; display: flex;
width: 100%; width: 100%;
@@ -17,7 +17,7 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
transition: opacity $transition-time-fast; transition: all $transition-time-fast;
position: absolute; position: absolute;
z-index: 1; z-index: 1;
top: 0; top: 0;
@@ -25,28 +25,41 @@
&-container { &-container {
position: relative; position: relative;
width: 100%; width: 100%;
border-radius: $border-radius-default;
box-shadow: 0 4px 8px rgb(0 0 0 / 0.2); box-shadow: 0 4px 8px rgb(0 0 0 / 0.2);
border-radius: $border-radius-default;
overflow: hidden; overflow: hidden;
height: auto; height: auto;
z-index: 0; z-index: 0;
&.thumb{
aspect-ratio: 1.777777;
}
&.portrait{
aspect-ratio: 0.666666;
}
&.square {
aspect-ratio: 1;
}
} }
&-icon { &-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 5.4em !important; font-size: 5.4em !important;
fill: url(#clr-gradient-default) !important;
color: transparent;
&-container { &-container {
background: $clr-gradient-dark; background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.15));
height: 100%; height: 100%;
width: 100%; width: 100%;
position: absolute; position: absolute;
z-index: 0; z-index: 0;
top: 0; top: 0;
left: 0; left: 0;
transition: filter $transition-time-default;
.material-symbols-rounded {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: rgb(255 255 255 / 0.5);
font-size: 4em !important;
}
} }
} }
&-blurhash { &-blurhash {
@@ -56,6 +69,7 @@
left: 0; left: 0;
width: 100% !important; width: 100% !important;
height: 100% !important; height: 100% !important;
overflow: hidden;
} }
} }
&-overlay { &-overlay {
@@ -64,7 +78,6 @@
height: 100%; height: 100%;
left: 0; left: 0;
top: 0; top: 0;
background: rgb(0 0 0 / 0.6);
z-index: 10; z-index: 10;
opacity: 0; opacity: 0;
transition: opacity $transition-time-default; transition: opacity $transition-time-default;
@@ -72,14 +85,22 @@
align-items: flex-end; align-items: flex-end;
justify-content: flex-end; justify-content: flex-end;
padding: 0.5em; padding: 0.5em;
background: rgb(0 0 0 / 0.4);
} }
&-container:hover, &:hover,
&-container:focus, &:focus,
&-container:focus-within { &:focus-within {
.card-overlay { .card-overlay {
opacity: 1; opacity: 1;
} }
} }
&:hover {
cursor: pointer;
}
&:focus {
outline: none;
}
&-play-button { &-play-button {
position: absolute !important; position: absolute !important;
top: 50%; top: 50%;
@@ -102,11 +123,6 @@
border-radius: 100px; border-radius: 100px;
box-shadow: 0 0 5px rgb(0 0 0 / 0.2); box-shadow: 0 0 5px rgb(0 0 0 / 0.2);
} }
&-text {
&-container {
height: 15%;
}
}
&-episode { &-episode {
.card-box { .card-box {
height: unset !important; height: unset !important;
@@ -114,8 +130,37 @@
} }
&-actor { &-actor {
transition: all $transition-time-default;
border-radius: 10px;
// padding: 1em !important;
&:hover {
background: rgb(255 255 255 / 0.1) !important;
}
.card-image-container { .card-image-container {
border-radius: 100% !important; border-radius: 100% !important;
} }
} }
&-progress{
// width: attr('data-progress');
height: 100%;
background: white;
transition: width $transition-time-default ease-in-out;
&-container{
$padding: 12px;
position: absolute;
bottom: $padding;
left: $padding;
right: $padding;
height: 4.5px;
background: rgb(255 255 255 / 0.5);
backdrop-filter: blur(10px);
box-shadow: 0 0 10px rgb(20 20 20 / 0.5);
z-index: 1;
overflow: hidden;
box-sizing: content-box;
border-radius: 10px;
}
}
} }
+255
View File
@@ -0,0 +1,255 @@
/** @format */
import React from "react";
import { Component, useState } from "react";
import { useNavigate } from "react-router-dom";
import LinearProgress from "@mui/material/LinearProgress";
import Typography from "@mui/material/Typography";
import {
type BaseItemDto,
BaseItemKind,
} from "@jellyfin/sdk/lib/generated-client";
import { useApi } from "../../utils/store/api";
import LikeButton from "../buttons/likeButton";
import MarkPlayedButton from "../buttons/markPlayedButton";
import PlayButton from "../buttons/playButton";
import ErrorBoundary from "../errorBoundary";
import { getTypeIcon } from "../utils/iconsCollection";
import "./card.module.scss";
const cardImageAspectRatios = {
thumb: 1.777,
portrait: 0.666,
square: 1,
};
const availableSpecialRoutes = [
BaseItemKind.Series,
BaseItemKind.BoxSet,
BaseItemKind.MusicAlbum,
BaseItemKind.Episode,
BaseItemKind.Playlist,
];
export const Card = ({
item,
cardTitle,
cardCaption,
imageType = "Primary",
cardType = "square",
queryKey,
userId,
seriesId,
hideText = false,
onClick,
disableOverlay = false,
overrideIcon,
}: {
item: BaseItemDto;
cardTitle: string | null;
cardCaption: string | null;
imageType: string;
cardType: string;
queryKey: [];
userId: string;
seriesId: string | null;
hideText: boolean;
onClick: Function | null;
disableOverlay: boolean;
overrideIcon: any;
}) => {
const [api] = useApi((state) => [state.api]);
const navigate = useNavigate();
const defaultOnClick = () => {
if (availableSpecialRoutes.includes(item.Type)) {
navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`);
} else if (!!item.Role || item.Type === BaseItemKind.Person) {
navigate(`/person/${item.Id}`);
} else if (item.Type === BaseItemKind.MusicArtist) {
navigate(`/artist/${item.Id}`);
} else {
navigate(`/item/${item.Id}`);
}
};
return (
<div
className="card"
elevation={0}
onClick={onClick ? onClick : defaultOnClick}
>
<div className={`card-image-container ${cardType}`}>
<ErrorBoundary fallback>
<div
className="card-indicator check"
style={{
opacity: item.UserData?.Played ? 1 : 0,
}}
>
<div className="material-symbols-rounded">
done
</div>
</div>
<div
className={"card-indicator text"}
style={{
opacity: item.UserData?.UnplayedItemCount
? 1
: 0,
}}
>
<Typography
variant="subtitle2"
padding="0.1em 0.4em"
fontWeight={400}
>
{item.UserData?.UnplayedItemCount}
</Typography>
</div>
</ErrorBoundary>
{/* {!!imageBlurhash && (
<Blurhash
hash={imageBlurhash}
width={128}
height={128}
resolutionX={24}
resolutionY={24}
className="card-image-blurhash"
/>
)} */}
<div className="card-image-icon-container">
{overrideIcon
? getTypeIcon(overrideIcon)
: getTypeIcon(item.Type)}
</div>
<img
alt={item.Name}
src={
overrideIcon === "User"
? `${api.basePath}/Users/${item.Id}/Images/Primary`
: api.getItemImageUrl(
seriesId
? item.SeriesId
: item.AlbumId ?? item.Id,
imageType,
{
quality: 90,
fillWidth: 400,
},
)
}
style={{
height: "100%",
width: "100%",
opacity: 0,
}}
loading="lazy"
onLoad={(e) => {
e.currentTarget.style.setProperty("opacity", "1");
}}
onLoadStart={(e) => console.log(e)}
className="card-image"
/>
<div className="card-overlay">
{!disableOverlay && (
<>
<PlayButton
itemId={item.Id}
userId={userId}
itemType={item.Type}
currentAudioTrack={0}
currentSubTrack={0}
currentVideoTrack={0}
className="card-play-button"
iconProps={{
style: { fontSize: "2.5em" },
}}
iconOnly
audio={
item.Type ===
BaseItemKind.MusicAlbum ||
item.Type === BaseItemKind.Audio ||
item.Type ===
BaseItemKind.AudioBook ||
item.Type === BaseItemKind.Playlist
}
playlistItem={
item.Type === BaseItemKind.Playlist
}
playlistItemId={item.Id}
/>
<LikeButton
itemId={item.Id}
itemName={item.Name}
isFavorite={item.UserData?.IsFavorite}
queryKey={queryKey}
userId={userId}
/>
<MarkPlayedButton
itemId={item.Id}
itemName={item.Name}
isPlayed={item.UserData?.Played}
queryKey={queryKey}
userId={userId}
/>
</>
)}
</div>
{item.UserData?.PlaybackPositionTicks > 0 && (
<div className="card-progress-container">
<div
className="card-progress"
style={{
width: `${item.UserData?.PlayedPercentage}%`,
}}
/>
</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
className="card-text-container"
style={{ display: hideText ? "none" : "block" }}
>
<Typography
variant="subtitle1"
fontWeight={500}
noWrap
textAlign="center"
style={{ opacity: 0.9 }}
>
{cardTitle}
</Typography>
<Typography
variant="subtitle2"
noWrap
textAlign="center"
style={{ opacity: 0.6 }}
lineHeight="auto"
>
{cardCaption}
</Typography>
</div>
</div>
);
};
+145 -151
View File
@@ -1,22 +1,20 @@
/** @format */ import React from "react";
import { useNavigate } from "react-router-dom"; 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";
import Typography from "@mui/material/Typography";
import LinearProgress from "@mui/material/LinearProgress"; import LinearProgress from "@mui/material/LinearProgress";
import Typography from "@mui/material/Typography";
import { Blurhash } from "react-blurhash"; import { Blurhash } from "react-blurhash";
import "./card.module.scss"; import "./card.module.scss";
import { MdiCheck } from "../icons/mdiCheck";
import { getRuntimeCompact } from "../../utils/date/time";
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 { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
import { MdiTelevisionClassic } from "../icons/mdiTelevisionClassic";
import { getRuntimeCompact } from "../../utils/date/time";
/** /**
* @typedef {Object} Props * @typedef {Object} Props
@@ -26,6 +24,7 @@ import { getRuntimeCompact } from "../../utils/date/time";
* @property {string} imageBlurhash * @property {string} imageBlurhash
* @property {Array} queryKey * @property {Array} queryKey
* @property {string} userId * @property {string} userId
* @property {boolean} disableRunTime
* @property {() => {}} onClick * @property {() => {}} onClick
*/ */
@@ -42,145 +41,140 @@ export const EpisodeCard = ({
imageBlurhash, imageBlurhash,
queryKey, queryKey,
userId, userId,
disableRunTime = false,
onClick, onClick,
}) => { }) => {
const [api] = useApi((state) => [state.api]);
const navigate = useNavigate(); const navigate = useNavigate();
const defaultOnClick = () => { const defaultOnClick = () => {
navigate(`/episode/${item.Id}`); navigate(`/episode/${item.Id}`);
}; };
return ( return (
<CardActionArea <div
style={{ className="card card-episode"
padding: "0.6em", elevation={0}
borderRadius: "calc(0.6em + 6px)", onClick={onClick ? onClick : defaultOnClick}
}}
className="card-container"
onClick={!!onClick ? onClick : defaultOnClick}
> >
<MuiCard className="card card-episode" elevation={0}> <div className="card-box">
<div className="card-box"> <div
<div className="card-image-container"
className="card-image-container" style={{
style={{ aspectRatio: 1.777,
aspectRatio: 1.777, }}
}} >
> {!!item.UserData && (
{!!item.UserData && (
<div
className="card-indicator check"
style={{
opacity: item.UserData?.Played
? 1
: 0,
}}
>
<MdiCheck />
</div>
)}
{!!imageBlurhash && (
<Blurhash
hash={imageBlurhash}
width={128}
height={128}
resolutionX={24}
resolutionY={24}
className="card-image-blurhash"
/>
)}
<div className="card-image-icon-container">
<MdiTelevisionClassic className="card-image-icon" />
</div>
<img
src={window.api.getItemImageUrl(
item.Id,
"Primary",
{
quality: 90,
fillHeight: 512,
fillWidth: 512,
},
)}
style={{
height: "100%",
width: "100%",
opacity: 0,
}}
loading="lazy"
onLoad={(e) => (e.target.style.opacity = 1)}
className="card-image"
/>
<div className="card-overlay">
<PlayButton
itemId={item.Id}
userId={userId}
itemType={item.Type}
currentAudioTrack={0}
currentSubTrack={0}
currentVideoTrack={0}
className="card-play-button"
iconProps={{
style: { fontSize: "2.5em" },
}}
iconOnly
/>
<LikeButton
itemId={item.Id}
itemName={item.Name}
isFavorite={item.UserData?.IsFavorite}
queryKey={queryKey}
userId={userId}
/>
<MarkPlayedButton
itemId={item.Id}
itemName={item.Name}
isPlayed={item.UserData.Played}
queryKey={queryKey}
userId={userId}
/>
</div>
{100 > item.UserData?.PlayedPercentage > 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
className="card-text-container"
style={{ display: "block", marginTop: "0.5em" }}
>
<div <div
className="card-indicator check"
style={{ style={{
display: "flex", opacity: item.UserData?.Played ? 1 : 0,
alignItems: "center",
justifyContent: "space-between",
gap: "1em",
}} }}
> >
<Typography <div className="material-symbols-rounded">done</div>
variant="subtitle1" </div>
fontWeight={500} )}
textAlign="start" {!!imageBlurhash && (
noWrap <Blurhash
style={{ hash={imageBlurhash}
opacity: 0.9, width={128}
}} height={128}
> resolutionX={24}
{cardTitle} resolutionY={24}
</Typography> className="card-image-blurhash"
/>
)}
<div className="card-image-icon-container">
<div className="material-symbols-rounded">tv_gen</div>
</div>
<img
alt={item.Name}
src={api.getItemImageUrl(item.Id, "Primary", {
quality: 90,
fillHeight: 512,
fillWidth: 512,
})}
style={{
height: "100%",
width: "100%",
opacity: 0,
}}
loading="lazy"
onLoad={(e) => {
e.target.style.opacity = 1;
}}
className="card-image"
/>
<div className="card-overlay">
<PlayButton
itemId={item.Id}
userId={userId}
itemType={item.Type}
currentAudioTrack={0}
currentSubTrack={0}
currentVideoTrack={0}
className="card-play-button"
iconProps={{
style: { fontSize: "2.5em" },
}}
iconOnly
/>
<LikeButton
itemId={item.Id}
itemName={item.Name}
isFavorite={item.UserData?.IsFavorite}
queryKey={queryKey}
userId={userId}
/>
<MarkPlayedButton
itemId={item.Id}
itemName={item.Name}
isPlayed={item.UserData?.Played}
queryKey={queryKey}
userId={userId}
/>
</div>
{100 > item.UserData?.PlayedPercentage > 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
className="card-text-container"
style={{ display: "block", marginTop: "0.5em" }}
>
<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
gap: "1em",
}}
>
<Typography
variant="subtitle1"
fontWeight={500}
textAlign="start"
noWrap
style={{
opacity: 0.9,
}}
>
{cardTitle}
</Typography>
{!disableRunTime && (
<Typography <Typography
variant="subtitle1" variant="subtitle1"
fontWeight={500} fontWeight={500}
@@ -190,25 +184,25 @@ export const EpisodeCard = ({
> >
{getRuntimeCompact(item.RunTimeTicks)} {getRuntimeCompact(item.RunTimeTicks)}
</Typography> </Typography>
</div> )}
<Typography
variant="subtitle2"
textAlign="start"
style={{
opacity: 0.6,
display: "-webkit-box",
overflow: "hidden",
WebkitBoxOrient: "vertical",
WebkitLineClamp: 3,
}}
lineHeight="auto"
>
{cardCaption}
</Typography>
</div> </div>
<Typography
variant="subtitle2"
textAlign="start"
style={{
opacity: 0.6,
display: "-webkit-box",
overflow: "hidden",
WebkitBoxOrient: "vertical",
WebkitLineClamp: 3,
}}
lineHeight="auto"
>
{cardCaption}
</Typography>
</div> </div>
</MuiCard> </div>
</CardActionArea> </div>
); );
}; };
+19 -19
View File
@@ -1,18 +1,13 @@
/** @format */
import { useState } from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import React, { useState } from "react";
import Carousel from "react-multi-carousel"; import Carousel from "react-multi-carousel";
import "react-multi-carousel/lib/styles.css"; import "react-multi-carousel/lib/styles.css";
import { MdiChevronLeft } from "../icons/mdiChevronLeft";
import { MdiChevronRight } from "../icons/mdiChevronRight";
import IconButton from "@mui/material/IconButton";
import Box from "@mui/material/Box"; import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import ButtonGroup from "@mui/material/ButtonGroup"; import ButtonGroup from "@mui/material/ButtonGroup";
import IconButton from "@mui/material/IconButton";
import Typography from "@mui/material/Typography";
import "./cardScroller.module.scss"; import "./cardScroller.module.scss";
export const CardScroller = ({ export const CardScroller = ({
@@ -32,23 +27,29 @@ export const CardScroller = ({
partialVisibilityGutter: 40, partialVisibilityGutter: 40,
}, },
desktop: { desktop: {
breakpoint: { max: 3000, min: 625 }, breakpoint: { max: 3000, min: 925 },
items: displayCards, items: displayCards,
slidesToSlide: displayCards, // optional, default to 1. slidesToSlide: displayCards, // optional, default to 1.
partialVisibilityGutter: 30, partialVisibilityGutter: 30,
}, },
tablet: { tablet: {
breakpoint: { max: 624, min: 464 }, breakpoint: { max: 925, min: 600 },
items: displayCards - 2, items: displayCards - 3,
slidesToSlide: displayCards - 2, // optional, default to 1. slidesToSlide: displayCards - 3, // optional, default to 1.
partialVisibilityGutter: 20, partialVisibilityGutter: 20,
}, },
mobile: { mobile: {
breakpoint: { max: 464, min: 0 }, breakpoint: { max: 600, min: 424 },
items: displayCards - 5, items: displayCards - 5,
slidesToSlide: displayCards - 5, // optional, default to 1. slidesToSlide: displayCards - 5, // optional, default to 1.
partialVisibilityGutter: 10, partialVisibilityGutter: 10,
}, },
smallScreen: {
breakpoint: { max: 424, min: 0 },
items: 1,
slidesToSlide: 1, // optional, default to 1.
partialVisibilityGutter: 10,
},
}; };
const [carouselRef, setCarouselRef] = useState(); const [carouselRef, setCarouselRef] = useState();
@@ -59,8 +60,8 @@ export const CardScroller = ({
sx={{ mb: 1 }} sx={{ mb: 1 }}
className={ className={
disableDecoration disableDecoration
? `card-scroller-header-container hidden-decoration` ? "card-scroller-header-container hidden-decoration"
: `card-scroller-header-container` : "card-scroller-header-container"
} }
> >
<Typography <Typography
@@ -69,21 +70,20 @@ export const CardScroller = ({
className="card-scroller-heading" className="card-scroller-heading"
{...headingProps} {...headingProps}
> >
<div className="card-scroller-heading-decoration"></div>{" "} <div className="card-scroller-heading-decoration" /> {title}
{title}
</Typography> </Typography>
<ButtonGroup className="card-scroller-button-group"> <ButtonGroup className="card-scroller-button-group">
<IconButton <IconButton
className="card-scroller-button" className="card-scroller-button"
onClick={() => carouselRef.previous()} onClick={() => carouselRef.previous()}
> >
<MdiChevronLeft /> <div className="material-symbols-rounded">chevron_left</div>
</IconButton> </IconButton>
<IconButton <IconButton
className="card-scroller-button" className="card-scroller-button"
onClick={() => carouselRef.next()} onClick={() => carouselRef.next()}
> >
<MdiChevronRight /> <div className="material-symbols-rounded">chevron_right</div>
</IconButton> </IconButton>
</ButtonGroup> </ButtonGroup>
</Box> </Box>
@@ -1,4 +1,3 @@
/** @format */
.card-scroller { .card-scroller {
// height: 20em; // height: 20em;
+11 -10
View File
@@ -1,8 +1,8 @@
/** @format */
.carousel { .carousel {
position: relative; position: relative;
height: 100vh; height: 70vh;
margin: 0.6em 1.6em 1.6em 1.6em;
&-button { &-button {
position: absolute !important; position: absolute !important;
top: 50%; top: 50%;
@@ -12,33 +12,34 @@
right: 0.5em; right: 0.5em;
} }
&.left { &.left {
left: 0; left: 0.5em;
} }
} }
&-indicator { &-indicator {
height: 2px; height: 3px;
width: 100%; width: 100%;
border-radius: 10px; border-radius: 10px;
transition: background $transition-time-fast, transition: background $transition-time-fast,
height $transition-time-fast; height $transition-time-fast;
background: rgb(255 255 255 / 0.5);
&:hover { &:hover {
cursor: pointer; cursor: pointer;
height: 5px; height: 6px;
background: rgb(255 255 255 / 0.8) !important; background: rgb(255 255 255 / 0.8) !important;
} }
&-container { &-container {
display: flex; display: flex;
position: absolute; position: absolute;
bottom: 1em; bottom: -1.5em;
width: calc(100vw - 2em); left: 10px;
left: 1em; right: 10px;
right: 1em;
gap: 1em; gap: 1em;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
&.active { &.active {
height: 5px; height: 6px;
background: white !important;
} }
} }
} }
+26 -46
View File
@@ -1,13 +1,10 @@
/** @format */
import { useEffect, useState } from "react";
import { AnimatePresence, motion } from "framer-motion"; import { AnimatePresence, motion } from "framer-motion";
import React, { useEffect, useState } from "react";
import IconButton from "@mui/material/IconButton"; import IconButton from "@mui/material/IconButton";
import { MdiChevronLeft } from "../icons/mdiChevronLeft";
import { MdiChevronRight } from "../icons/mdiChevronRight";
import "./carousel.scss";
import { useCarouselStore } from "../../utils/store/carousel"; import { useCarouselStore } from "../../utils/store/carousel";
import "./carousel.scss";
const swipeConfidenceThreshold = 8000; const swipeConfidenceThreshold = 8000;
const swipePower = (offset, velocity) => { const swipePower = (offset, velocity) => {
@@ -21,15 +18,21 @@ const Carousel = ({ content, onChange }) => {
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]?.key]);
return ( return (
<div className="carousel"> <div className="carousel">
<IconButton <IconButton
className="carousel-button left" className="carousel-button left"
onClick={() => { onClick={() => {
if (currentSlide === 0) {
setDirection("left");
setCurrentSlide(content.length - 1);
}
if (currentSlide > 0) { if (currentSlide > 0) {
setDirection("left"); setDirection("left");
setCurrentSlide((init) => init - 1); setCurrentSlide((init) => init - 1);
@@ -38,11 +41,11 @@ const Carousel = ({ content, onChange }) => {
sx={{ sx={{
background: " rgb(200 200 200 / 0.05)", background: " rgb(200 200 200 / 0.05)",
}} }}
disabled={currentSlide == 0} // disabled={currentSlide == 0}
> >
<MdiChevronLeft /> <div className="material-symbols-rounded">arrow_left</div>
</IconButton> </IconButton>
<AnimatePresence> <AnimatePresence mode="sync">
<motion.div <motion.div
key={currentSlide} key={currentSlide}
initial={{ opacity: 0 }} initial={{ opacity: 0 }}
@@ -50,7 +53,7 @@ const Carousel = ({ content, onChange }) => {
exit={{ opacity: 0 }} exit={{ opacity: 0 }}
transition={{ transition={{
duration: 0.25, duration: 0.25,
ease: "easeInOut", ease: "linear",
}} }}
drag={"x"} drag={"x"}
dragConstraints={{ left: 0, right: 0 }} dragConstraints={{ left: 0, right: 0 }}
@@ -58,22 +61,19 @@ const Carousel = ({ content, onChange }) => {
onDragEnd={(e, { offset, velocity }) => { onDragEnd={(e, { offset, velocity }) => {
const swipe = swipePower(offset.x, velocity.x); const swipe = swipePower(offset.x, velocity.x);
if ( if (
currentSlide != content.length - 1 && currentSlide !== content.length - 1 &&
swipe < -swipeConfidenceThreshold swipe < -swipeConfidenceThreshold
) { ) {
setDirection("right"); setDirection("right");
setCurrentSlide((init) => init + 1); setCurrentSlide((init) => init + 1);
} else if ( } else if (currentSlide !== 0 && swipe > swipeConfidenceThreshold) {
currentSlide != 0 &&
swipe > swipeConfidenceThreshold
) {
setDirection("left"); setDirection("left");
setCurrentSlide((init) => init - 1); setCurrentSlide((init) => init - 1);
} }
}} }}
style={{ style={{
height: "100vh", height: "100%",
width: "100vw", width: "100%",
position: "absolute", position: "absolute",
}} }}
> >
@@ -83,57 +83,37 @@ const Carousel = ({ content, onChange }) => {
<IconButton <IconButton
className="carousel-button right" className="carousel-button right"
onClick={() => { onClick={() => {
if (currentSlide < content.length - 1) { if (currentSlide === content.length - 1) {
setDirection("right");
setCurrentSlide(0);
} else if (currentSlide < content.length - 1) {
setDirection("right"); setDirection("right");
setCurrentSlide((init) => init + 1); setCurrentSlide((init) => init + 1);
} }
}} }}
disabled={currentSlide == content.length - 1} // disabled={currentSlide == content.length - 1}
sx={{ sx={{
background: " rgb(200 200 200 / 0.05)", background: " rgb(200 200 200 / 0.05)",
}} }}
> >
<MdiChevronRight /> <div className="material-symbols-rounded">arrow_right</div>
</IconButton> </IconButton>
<div className="carousel-indicator-container"> <div className="carousel-indicator-container">
<div
className={
currentSlide == 0
? "carousel-indicator active"
: "carousel-indicator"
}
style={{
background:
currentSlide == 0
? "white"
: "rgb(255 255 255 / 0.5)",
}}
onClick={() => {
setDirection("left");
setCurrentSlide(0);
}}
/>
{content.map((item, index) => ( {content.map((item, index) => (
<div <div
className={ className={
currentSlide == index + 1 currentSlide === index
? "carousel-indicator active" ? "carousel-indicator active"
: "carousel-indicator" : "carousel-indicator"
} }
key={index} key={item.Id}
style={{
background:
currentSlide == index + 1
? "white"
: "rgb(255 255 255 / 0.5)",
}}
onClick={() => { onClick={() => {
if (currentSlide > index) { if (currentSlide > index) {
setDirection("left"); setDirection("left");
} else if (currentSlide <= index) { } else if (currentSlide <= index) {
setDirection("right"); setDirection("right");
} }
setCurrentSlide(index + 1); setCurrentSlide(index);
}} }}
/> />
))} ))}
+300 -238
View File
@@ -1,32 +1,29 @@
/** @format */
import React, { memo } from "react"; import React, { memo } from "react";
import { Blurhash } from "react-blurhash"; import { Blurhash } from "react-blurhash";
import { motion } from "framer-motion"; import { motion } from "framer-motion";
import Paper from "@mui/material/Paper";
import Typography from "@mui/material/Typography";
import Stack from "@mui/material/Stack";
import Chip from "@mui/material/Chip";
import Button from "@mui/material/Button"; import Button from "@mui/material/Button";
import Chip from "@mui/material/Chip";
import Paper from "@mui/material/Paper";
import Stack from "@mui/material/Stack";
import Typography from "@mui/material/Typography";
import { yellow } from "@mui/material/colors"; import { yellow } from "@mui/material/colors";
import ErrorBoundary from "../errorBoundary";
import CarouselSlideError from "../errors/carousel"; import { green, red } from "@mui/material/colors";
import { MdiStar } from "../icons/mdiStar";
import { endsAt, getRuntime } from "../../utils/date/time";
import { useNavigate } from "react-router-dom";
import { MediaTypeIconCollection } from "../utils/iconsCollection";
import { MdiChevronRight } from "../icons/mdiChevronRight";
import { useQuery } from "@tanstack/react-query"; import { useQuery } from "@tanstack/react-query";
import { useNavigate } from "react-router-dom";
import { endsAt, getRuntime } from "../../utils/date/time";
import { getTypeIcon } from "../utils/iconsCollection";
import { 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 { useCarouselStore } from "../../utils/store/carousel";
import PlayButton from "../buttons/playButton"; import PlayButton from "../buttons/playButton";
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
const availableSpecialRoutes = [ const availableSpecialRoutes = [
BaseItemKind.Series, BaseItemKind.Series,
@@ -45,12 +42,13 @@ const availableSpecialRoutes = [
* @returns {React.Component} * @returns {React.Component}
*/ */
const CarouselSlide = ({ item }) => { const CarouselSlide = ({ item }) => {
const [api] = useApi((state) => [state.api]);
const navigate = useNavigate(); const navigate = useNavigate();
const user = useQuery({ const user = useQuery({
queryKey: ["user"], queryKey: ["user"],
queryFn: async () => { queryFn: async () => {
let usr = await getUserApi(window.api).getCurrentUser(); const usr = await getUserApi(api).getCurrentUser();
return usr.data; return usr.data;
}, },
networkMode: "always", networkMode: "always",
@@ -59,77 +57,77 @@ const CarouselSlide = ({ item }) => {
const handleMoreInfo = () => { const handleMoreInfo = () => {
if (availableSpecialRoutes.includes(item.Type)) { if (availableSpecialRoutes.includes(item.Type)) {
navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`); navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`);
} else if (!!item.Role) { } else if (!!item.Role || item.Type === BaseItemKind.Person) {
navigate(`/person/${item.Id}`); navigate(`/person/${item.Id}`);
} else if (item.Type === BaseItemKind.MusicArtist) {
navigate(`/artist/${item.Id}`);
} else if (item.Type === BaseItemKind.Episode) {
navigate(`/episode/${item.Id}`);
} else { } else {
navigate(`/item/${item.Id}`); navigate(`/item/${item.Id}`);
} }
}; };
const [animationDirection] = useCarouselStore((state) => [ const [animationDirection] = useCarouselStore((state) => [state.direction]);
state.direction,
]);
return ( return (
<ErrorBoundary fallback={<CarouselSlideError itemName={item.Name} />}> <Paper
<Paper className="hero-carousel-slide"
className="hero-carousel-slide" sx={{
sx={{ background: "transparent",
background: "transparent", px: 3,
px: 3, }}
boxShadow: "none !important", elevation={10}
}} >
> <div className="hero-carousel-background-container">
<div className="hero-carousel-background-container"> {!!item.ImageBlurHashes.Backdrop && (
{!!item.ImageBlurHashes.Backdrop && ( <>
<> {Object.keys(item.ImageBlurHashes.Backdrop).length !== 0 && (
{Object.keys(item.ImageBlurHashes.Backdrop) <Blurhash
.length != 0 && ( hash={
<Blurhash item.ImageBlurHashes.Backdrop[
hash={ Object.keys(item.ImageBlurHashes.Backdrop)[0]
item.ImageBlurHashes.Backdrop[ ]
Object.keys(
item.ImageBlurHashes
.Backdrop,
)[0]
]
}
// hash="LEHV6nWB2yk8pyo0adR*.7kCMdnj"
width="1080"
height="720"
resolutionX={64}
resolutionY={96}
className="hero-carousel-background-blurhash"
punch={1}
/>
)}
<img
className="hero-carousel-background-image"
src={
!!item.ParentBackdropItemId
? `${window.api.basePath}/Items/${item.ParentBackdropItemId}/Images/Backdrop`
: `${window.api.basePath}/Items/${item.Id}/Images/Backdrop`
} }
style={{ // hash="LEHV6nWB2yk8pyo0adR*.7kCMdnj"
opacity: 0, width="256"
}} height="179.2"
onLoad={(e) => resolutionX={64}
(e.target.style.opacity = 1) resolutionY={45}
} className="hero-carousel-background-blurhash"
loading="eager" punch={1.2}
/> />
</> )}
)} <img
<div className="hero-carousel-background-icon-container"> alt={item.Name}
{MediaTypeIconCollection[item.Type]} className="hero-carousel-background-image"
</div> src={
item.ParentBackdropItemId
? `${api.basePath}/Items/${item.ParentBackdropItemId}/Images/Backdrop?quality=80`
: `${api.basePath}/Items/${item.Id}/Images/Backdrop?quality=80`
}
style={{
opacity: 0,
}}
onLoad={(e) => {
e.target.style.opacity = 1;
}}
loading="eager"
/>
</>
)}
<div className="hero-carousel-background-icon-container">
{getTypeIcon(item.Type)}
</div> </div>
<motion.div </div>
<div className="hero-carousel-detail">
<Typography
component={motion.div}
initial={{ initial={{
transform: transform:
animationDirection == "right" animationDirection === "right"
? "translateX(40px)" ? "translateX(60px)"
: "translateX(-40px)", : "translateX(-60px)",
opacity: 0, opacity: 0,
}} }}
animate={{ animate={{
@@ -138,9 +136,59 @@ const CarouselSlide = ({ item }) => {
}} }}
exit={{ exit={{
transform: transform:
animationDirection == "right" animationDirection === "right"
? "translateX(-40px)" ? "translateX(-60px)"
: "translateX(40px)", : "translateX(60px)",
opacity: 0,
}}
transition={{
duration: 0.25,
ease: "easeInOut",
}}
key={item.Id}
variant="h2"
className="hero-carousel-text"
sx={{
mb: "5px",
}}
overflow="visible"
>
{!item.ImageTags.Logo ? (
item.Name
) : (
<img
alt={item.Name}
className="hero-carousel-text-logo"
src={`${api.basePath}/Items/${item.Id}/Images/Logo?quality=90&tag=${item.ImageTags.Logo}`}
style={{
opacity: 0,
transition: "opacity 0.2s",
objectFit: "contain",
}}
onLoad={(e) => {
e.target.style.opacity = 1;
}}
/>
)}
</Typography>
<Stack
component={motion.div}
initial={{
transform:
animationDirection === "right"
? "translateX(20px)"
: "translateX(-20px)",
opacity: 0,
}}
animate={{
transform: "translateX(0px)",
opacity: 1,
}}
exit={{
transform:
animationDirection === "right"
? "translateX(-20px)"
: "translateX(20px)",
opacity: 0, opacity: 0,
}} }}
@@ -148,65 +196,19 @@ const CarouselSlide = ({ item }) => {
duration: 0.25, duration: 0.25,
ease: "easeInOut", ease: "easeInOut",
}} }}
className="hero-carousel-detail" direction="row"
gap={2}
className="hero-carousel-info"
mt={1}
justifyItems="flex-start"
alignItems="center"
> >
<Typography <Typography style={{ opacity: "0.8" }} variant="subtitle1">
key={item.Id} {item.ProductionYear ? item.ProductionYear : "Unknown"}
variant="h2"
className="hero-carousel-text"
sx={{
mb: 2.5,
}}
overflow="visible"
>
{!item.ImageTags.Logo ? (
item.Name
) : (
<img
className="hero-carousel-text-logo"
src={
window.api.basePath +
"/Items/" +
item.Id +
"/Images/Logo?quality=80&tag=" +
item.ImageTags.Logo
}
style={{
opacity: 0,
transition: "opacity 0.2s",
}}
onLoad={(e) =>
(e.target.style.opacity = 1)
}
/>
)}
</Typography> </Typography>
<Stack <Chip variant="filled" label={item.OfficialRating ?? "Not Rated"} />
direction="row"
gap={1} {item.CommunityRating && (
divider={
<div
style={{
width: "4px",
height: "4px",
background: "white",
alignSelf: "center",
aspectRatio: 1,
borderRadius: "10px",
}}
></div>
}
className="hero-carousel-info"
>
<Typography variant="subtitle1">
{!!item.ProductionYear
? item.ProductionYear
: "Unknown"}
</Typography>
<Chip
variant="filled"
label={item.OfficialRating ?? "Not Rated"}
/>
<div <div
style={{ style={{
display: "flex", display: "flex",
@@ -215,115 +217,175 @@ const CarouselSlide = ({ item }) => {
}} }}
className="hero-carousel-info-rating" className="hero-carousel-info-rating"
> >
{!!item.CommunityRating ? ( <div
<> className="material-symbols-rounded "
<MdiStar style={{
sx={{ // fontSize: "2.2em",
color: yellow[700], color: yellow[400],
}} fontVariationSettings:
/> '"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
<Typography variant="subtitle1"> }}
{Math.round( >
item.CommunityRating * star
10, </div>
) / 10} <Typography
</Typography> style={{
</> opacity: "0.8",
) : ( }}
<Typography variant="subtitle1"> variant="subtitle1"
No Community Rating >
</Typography> {Math.round(item.CommunityRating * 10) / 10}
)} </Typography>
</div> </div>
{!!item.RunTimeTicks && ( )}
<Typography variant="subtitle1"> {Boolean(item.CriticRating) && (
{getRuntime(item.RunTimeTicks)} <div
</Typography> style={{
)} display: "flex",
{!!item.RunTimeTicks && ( gap: "0.25em",
<Typography variant="subtitle1"> alignItems: "center",
{endsAt(item.RunTimeTicks)}
</Typography>
)}
</Stack>
<Typography
variant="subtitle1"
className="hero-carousel-text"
sx={{
display: "-webkit-box",
maxWidth: "70%",
maxHeight: "50%",
textOverflow: "ellipsis",
overflow: "hidden",
WebkitLineClamp: "4",
WebkitBoxOrient: "vertical",
}}
>
{item.Overview}
</Typography>
{/* TODO Link PLay and More info buttons in carousel */}
<Stack
mt={3}
direction="row"
gap={3}
width="100%"
className="hero-carousel-button-container"
alignItems="center"
>
<PlayButton
itemId={item.Id}
userId={user.data.Id}
itemType={item.Type}
currentAudioTrack={0}
currentSubTrack={0}
currentVideoTrack={0}
buttonProps={{
size: "large",
}} }}
itemUserData={item.UserData} className="hero-carousel-info-rating"
audio={
item.Type == BaseItemKind.MusicAlbum ||
item.Type == BaseItemKind.Audio ||
item.Type == BaseItemKind.AudioBook ||
item.Type == BaseItemKind.Playlist
}
playlistItem={
item.Type == BaseItemKind.Playlist
}
playlistItemId={item.Id}
/>
<Button
size="large"
color="white"
variant="outlined"
endIcon={<MdiChevronRight />}
onClick={handleMoreInfo}
> >
More info <div
</Button> className="material-symbols-rounded "
<Stack direction="row" gap={1}> style={{
<LikeButton color: item.CriticRating > 50 ? green[400] : red[400],
itemId={item.Id} fontVariationSettings:
queryKey={["home", "latestMedia"]} '"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
userId={user.data.Id} }}
isFavorite={item.UserData.IsFavorite} >
itemName={item.Name} {item.CriticRating > 50 ? "thumb_up" : "thumb_down"}
/> </div>
<MarkPlayedButton <Typography
itemId={item.Id} style={{
queryKey={["home", "latestMedia"]} opacity: "0.8",
userId={user.data.Id} }}
isPlayed={item.UserData.Played} variant="subtitle1"
itemName={item.Name} >
/> {item.CriticRating}
</Stack> </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
component={motion.div}
initial={{
transform:
animationDirection === "right"
? "translateX(20px)"
: "translateX(-20px)",
opacity: 0,
}}
animate={{
transform: "translateX(0px)",
opacity: 1,
}}
exit={{
transform:
animationDirection === "right"
? "translateX(-20px)"
: "translateX(20px)",
opacity: 0,
}}
transition={{
duration: 0.25,
ease: "easeInOut",
}}
variant="subtitle1"
className="hero-carousel-text"
sx={{
display: "-webkit-box",
maxWidth: "70%",
maxHeight: "50%",
textOverflow: "ellipsis",
overflow: "hidden",
WebkitLineClamp: "4",
WebkitBoxOrient: "vertical",
}}
>
{item.Overview}
</Typography>
<Stack
mt={3}
direction="row"
gap={3}
width="100%"
className="hero-carousel-button-container"
alignItems="center"
>
<PlayButton
itemId={item.Id}
userId={user.data.Id}
itemType={item.Type}
currentAudioTrack={0}
currentSubTrack={0}
currentVideoTrack={0}
buttonProps={{
size: "large",
}}
itemUserData={item.UserData}
audio={
item.Type === BaseItemKind.MusicAlbum ||
item.Type === BaseItemKind.Audio ||
item.Type === BaseItemKind.AudioBook ||
item.Type === BaseItemKind.Playlist
}
playlistItem={item.Type === BaseItemKind.Playlist}
playlistItemId={item.Id}
/>
<Button
size="large"
color="white"
variant="outlined"
endIcon={
<div
className="material-symbols-rounded"
style={{
fontSize: "2em",
}}
>
chevron_right
</div>
}
onClick={handleMoreInfo}
>
More info
</Button>
<Stack direction="row" gap={1}>
<LikeButton
itemId={item.Id}
queryKey={["home", "latestMedia"]}
userId={user.data.Id}
isFavorite={item.UserData.IsFavorite}
itemName={item.Name}
/>
<MarkPlayedButton
itemId={item.Id}
queryKey={["home", "latestMedia"]}
userId={user.data.Id}
isPlayed={item.UserData.Played}
itemName={item.Name}
/>
</Stack> </Stack>
</motion.div> </Stack>
</Paper> </div>
</ErrorBoundary> </Paper>
); );
}; };
export default memo(CarouselSlide); export default CarouselSlide;
+2 -2
View File
@@ -1,4 +1,3 @@
/** @format */
import React from "react"; import React from "react";
class ErrorBoundary extends React.Component { class ErrorBoundary extends React.Component {
constructor(props) { constructor(props) {
@@ -17,7 +16,8 @@ class ErrorBoundary extends React.Component {
// in ErrorBoundary (created by App) // in ErrorBoundary (created by App)
// in div (created by App) // in div (created by App)
// in App // in App
logErrorToMyService(error, info.componentStack); this.setState;
console.error(`Err in ${info} - ${error}`);
} }
render() { render() {
-48
View File
@@ -1,48 +0,0 @@
/** @format */
import Paper from "@mui/material/Paper";
import Stack from "@mui/material/Stack";
import Typography from "@mui/material/Typography";
import { MdiEmoticonDead } from "../icons/mdiEmoticonDead";
import Divider from "@mui/material/Divider";
import { red } from "@mui/material/colors";
import slideBackground from "../../assets/errorbg.png";
const CarouselSlideError = ({ itemName }) => {
return (
<Paper className="hero-carousel-slide">
<Stack
justifyContent="center"
alignItems="center"
sx={{
width: "100%",
height: "100%",
background: `url(${slideBackground})`,
backgroundSize: "cover",
}}
>
<MdiEmoticonDead
sx={{ fontSize: "10em", opacity: "0.8" }}
/>
<Typography mb={2} variant="h4" sx={{ opacity: "0.5" }}>
Error caused by
</Typography>
<Typography
mt={2}
variant="h3"
sx={{
background: "rgb(255 255 255 /0.1)",
padding: 1,
borderRadius: 3,
}}
>
{itemName}
</Typography>
</Stack>
</Paper>
);
};
export default CarouselSlideError;
+35
View File
@@ -0,0 +1,35 @@
import { Link, Typography } from "@mui/material";
import React from "react";
import imdbIcon from "../../assets/icons/imdb.svg";
import musicBrainzIcon from "../../assets/icons/musicbrainz.svg";
import tvDbIcon from "../../assets/icons/the-tvdb.svg";
import tmdbIcon from "../../assets/icons/themoviedatabase.svg";
import traktIcon from "../../assets/icons/trakt.svg";
const knownIcons = ["imdb", "themoviedb", "trakt", "musicbrainz", "thetvdb"];
const IconLink = ({ name, url }: { name: string; url: string }) => {
return (
<Link target="_blank" href={url} className="item-detail-link">
{name.toLocaleLowerCase() === "imdb" && <img src={imdbIcon} alt="IMDb" />}
{name.toLocaleLowerCase() === "themoviedb" && (
<img src={tmdbIcon} alt="TheMovieDb" />
)}
{name.toLocaleLowerCase() === "trakt" && (
<img src={traktIcon} alt="Trakt" />
)}
{name.toLocaleLowerCase() === "musicbrainz" && (
<img src={musicBrainzIcon} alt="MusicBrainz" />
)}
{name.toLocaleLowerCase() === "thetvdb" && (
<img src={tvDbIcon} alt="THeTVDB" />
)}
{!knownIcons.includes(name.toLocaleLowerCase()) && (
<Typography>{name}</Typography>
)}
</Link>
);
};
export default IconLink;
-15
View File
@@ -1,15 +0,0 @@
/** @format */
import { MdiChevronLeft } from "./mdiChevronLeft";
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiAccount } from "@mdi/js";
export const MdiAccount = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiAccount}></path>
</SvgIcon>
);
};
-12
View File
@@ -1,12 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiAccountMusic } from "@mdi/js";
export const MdiAccountMusic = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiAccountMusic}></path>
</SvgIcon>
);
};
-12
View File
@@ -1,12 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiAccountTie } from "@mdi/js";
export const MdiAccountTie = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiAccountTie}></path>
</SvgIcon>
);
};
-12
View File
@@ -1,12 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiAlbum } from "@mdi/js";
export const MdiAlbum = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiAlbum}></path>
</SvgIcon>
);
};
-12
View File
@@ -1,12 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiAlertDecagram } from "@mdi/js";
export const MdiAlertDecagram = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiAlertDecagram}></path>
</SvgIcon>
);
};
-13
View File
@@ -1,13 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiArrowLeft } from "@mdi/js";
export const MdiArrowLeft = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiArrowLeft}></path>
</SvgIcon>
);
};
-12
View File
@@ -1,12 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiBackburger } from "@mdi/js";
export const MdiBackburger = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiBackburger}></path>
</SvgIcon>
);
};
-13
View File
@@ -1,13 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiBook } from "@mdi/js";
export const MdiBook = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiBook}></path>
</SvgIcon>
);
};
-13
View File
@@ -1,13 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiBookMultiple } from "@mdi/js";
export const MdiBookMultiple = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiBookMultiple}></path>
</SvgIcon>
);
};
-12
View File
@@ -1,12 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiBookMusic } from "@mdi/js";
export const MdiBookMusic = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiBookMusic}></path>
</SvgIcon>
);
};
-13
View File
@@ -1,13 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiCheck } from "@mdi/js";
export const MdiCheck = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiCheck}></path>
</SvgIcon>
);
};
-13
View File
@@ -1,13 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiChevronDown } from "@mdi/js";
export const MdiChevronDown = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiChevronDown}></path>
</SvgIcon>
);
};
-12
View File
@@ -1,12 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiChevronLeft } from "@mdi/js";
export const MdiChevronLeft = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiChevronLeft}></path>
</SvgIcon>
);
};
-13
View File
@@ -1,13 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiChevronRight } from "@mdi/js";
export const MdiChevronRight = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiChevronRight}></path>
</SvgIcon>
);
};
-12
View File
@@ -1,12 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiClockOutline } from "@mdi/js";
export const MdiClockOutline = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiClockOutline}></path>
</SvgIcon>
);
};
-12
View File
@@ -1,12 +0,0 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiClose } from "@mdi/js";
export const MdiClose = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiClose}></path>
</SvgIcon>
);
};
Loaded 100 of 254 files, more files were not shown because too many files have changed in this diff. Show more