Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4dc71b4c8b | ||
|
|
a31a8920e9 | ||
|
|
da524107f0 | ||
|
|
e397d0cf58 | ||
|
|
65db12192f | ||
|
|
b2d1154354 | ||
|
|
99bee007ac | ||
|
|
3740d24cd1 | ||
|
|
960538a9a6 | ||
|
|
afcc8cfd4d | ||
|
|
bccc19981e | ||
|
|
66f63c6d75 | ||
|
|
722630cf37 | ||
|
|
32e439c495 | ||
|
|
eda16f8cc2 | ||
|
|
1b688fe75e | ||
|
|
3134818ca7 | ||
|
|
2268bca663 | ||
|
|
c1e55c0e3f | ||
|
|
c5922d67c4 | ||
|
|
5799031a34 | ||
|
|
dc226da809 | ||
|
|
3db6249f71 | ||
|
|
2926e845d2 | ||
|
|
ec6d5850d0 | ||
|
|
72a9f2cd39 | ||
|
|
874646a6dc | ||
|
|
d84073ee03 | ||
|
|
abca22763c | ||
|
|
2e62d3d2ee | ||
|
|
c477f62f69 | ||
|
|
0af246cff2 | ||
|
|
e095863afa | ||
|
|
a290e83c19 | ||
|
|
f8545d2182 | ||
|
|
2b3c02b261 | ||
|
|
9ce5f84fc5 | ||
|
|
60f1667dc2 | ||
|
|
3add9d9f89 | ||
|
|
50921dbc5f | ||
|
|
faa9e844e1 | ||
|
|
dd03a2dbe9 | ||
|
|
8842cc994c | ||
|
|
fcd92f2760 | ||
|
|
63e6bda233 | ||
|
|
d6d81f2b4d | ||
|
|
81d188ac5a | ||
|
|
537176b77d | ||
|
|
1dddbca3b2 | ||
|
|
16c6a26a2e | ||
|
|
bc3ddc3f24 | ||
|
|
e28917f8d3 | ||
|
|
2482a83698 | ||
|
|
6e22c545b1 | ||
|
|
27e2ee971d | ||
|
|
c58d656449 | ||
|
|
a7b2f2361c | ||
|
|
7361dee0c5 | ||
|
|
255ce91be4 | ||
|
|
a780dd77c8 | ||
|
|
9d4a02c33a | ||
|
|
df8afbf5e1 | ||
|
|
2f95e95e2e | ||
|
|
aa47e2fda5 | ||
|
|
09bcee155c | ||
|
|
cdd1a0a85b | ||
|
|
b76cbd0068 | ||
|
|
27dd21400b | ||
|
|
d44848516a | ||
|
|
f5c6e97355 | ||
|
|
9ca0f529a8 | ||
|
|
339f86517c | ||
|
|
4ba08867ba | ||
|
|
71f3cb6325 | ||
|
|
7e7535edfb | ||
|
|
0e774ebc8c | ||
|
|
268339c410 | ||
|
|
6643b9ea7e | ||
|
|
9706ce0ed7 | ||
|
|
cc8c6e187a | ||
|
|
4302d00bba | ||
|
|
a4ec70d44c | ||
|
|
8c9e5aec18 | ||
|
|
1125ef2539 | ||
|
|
48d0354a3f | ||
|
|
5f394c0d86 | ||
|
|
28954a38ba | ||
|
|
ebd6d49ce9 | ||
|
|
6220696e18 | ||
|
|
7ec4e59821 | ||
|
|
2fb3fb83e9 | ||
|
|
4549547012 | ||
|
|
e0c77fb7c6 | ||
|
|
686d1597af | ||
|
|
92bd2d5b0e | ||
|
|
f238e367ba | ||
|
|
0749b3f59a | ||
|
|
b0fc4f7f51 | ||
|
|
674bde06df | ||
|
|
52faaef201 | ||
|
|
3d75c08979 | ||
|
|
f799aa5e11 | ||
|
|
3a7bb89ea1 | ||
|
|
7254d3a930 | ||
|
|
de33f4ff0b | ||
|
|
d3e0828b3a | ||
|
|
b17f33af96 | ||
|
|
d28d15d89a | ||
|
|
7de4421921 | ||
|
|
c10bfa5578 | ||
|
|
18aef998df | ||
|
|
4e296bcdb8 | ||
|
|
0d1b66c8da | ||
|
|
38884e25d8 | ||
|
|
747f502387 | ||
|
|
17ccd19554 | ||
|
|
5f6316cdc3 | ||
|
|
332fd9b0be | ||
|
|
f0ac132332 | ||
|
|
a0a5c5ed81 | ||
|
|
8443dc4d73 | ||
|
|
80d76d4428 | ||
|
|
cc7799a9ec | ||
|
|
e3b3cb3ab6 | ||
|
|
edf9831a79 | ||
|
|
f7529a38da | ||
|
|
d4a923863d | ||
|
|
1e38aebb83 | ||
|
|
8ba8e6b94a | ||
|
|
fc3694adf4 | ||
|
|
69660b1d10 | ||
|
|
db9a0411d0 | ||
|
|
f31b3f8a30 | ||
|
|
de165270a8 | ||
|
|
10f63ac58d | ||
|
|
0c50c60129 | ||
|
|
7650b49a6b | ||
|
|
3d87404bbf | ||
|
|
8df48c5722 | ||
|
|
e552178b72 | ||
|
|
59e8ceb99c | ||
|
|
f549d6430f | ||
|
|
2c85f67467 | ||
|
|
efa8b958ee | ||
|
|
0233962797 | ||
|
|
34166f9d59 | ||
|
|
c3f18282c4 | ||
|
|
d7a573e8db | ||
|
|
4c783ff8d0 | ||
|
|
15c0437060 | ||
|
|
be3fe48b74 | ||
|
|
46119c1f1d | ||
|
|
a56e2775f3 | ||
|
|
0c94f2994a | ||
|
|
28f6050a97 | ||
|
|
cc73c531fa | ||
|
|
47895ec48e | ||
|
|
5ed543526f | ||
|
|
64d596fb01 | ||
|
|
aae48aced9 | ||
|
|
19fc23a571 | ||
|
|
60bb53a5de | ||
|
|
d7a6fc2dd0 | ||
|
|
fb27c3071f | ||
|
|
7f91fd083c | ||
|
|
d5193044e2 | ||
|
|
6cc2231f55 | ||
|
|
7a74d48738 | ||
|
|
ad1ec9138b | ||
|
|
ee6b976e84 | ||
|
|
316dfae793 | ||
|
|
c05178a901 | ||
|
|
83bc0790a6 | ||
|
|
d6af11b3a4 | ||
|
|
dc26d79ce0 | ||
|
|
1ff5594840 | ||
|
|
04077f197b | ||
|
|
a72c16e7bc | ||
|
|
2876e785ae | ||
|
|
7f99f76130 | ||
|
|
5caa9b084f | ||
|
|
5c425b65c6 | ||
|
|
f711440de3 | ||
|
|
2c08105a50 | ||
|
|
b6962b9ab2 | ||
|
|
2527d429bc | ||
|
|
8bd42c0f2f | ||
|
|
73794711dc | ||
|
|
61adf341eb | ||
|
|
22ee720795 | ||
|
|
56ba3287dc | ||
|
|
d9d0a3b534 | ||
|
|
f1394b7172 | ||
|
|
e36f92e135 | ||
|
|
7dd5fd89f8 | ||
|
|
821090612e | ||
|
|
b8e220cba1 | ||
|
|
0b60962f5d | ||
|
|
c6b7be9fc6 | ||
|
|
f3a4edc03a | ||
|
|
f65e32cd49 | ||
|
|
7df0f3f9d3 | ||
|
|
38a7369650 | ||
|
|
002d92d8ad | ||
|
|
e11056c2ce | ||
|
|
7f8ec6fc98 | ||
|
|
eb44fe1d15 | ||
|
|
2ea1db67d6 | ||
|
|
9ffbd8f627 | ||
|
|
0ceb661705 | ||
|
|
f83d7ba29f | ||
|
|
464a4508e3 | ||
|
|
8bd719ece9 | ||
|
|
1252d8f084 | ||
|
|
710f2228c2 | ||
|
|
ba73569c31 | ||
|
|
b2e0ed01a3 | ||
|
|
94e7ea95c1 | ||
|
|
73085f736f | ||
|
|
c568cf2be4 | ||
|
|
2d78d95ca9 | ||
|
|
e2ebbd4471 | ||
|
|
7a7e5b3751 | ||
|
|
8f8d3f2ec3 | ||
|
|
0bcb7a6cff | ||
|
|
d5daa6d9dc | ||
|
|
791f277ca5 | ||
|
|
08f6993132 | ||
|
|
ed26c7a762 | ||
|
|
2710d472ba | ||
|
|
c0a9d0e088 | ||
|
|
0d0580e60e | ||
|
|
e81f4f6c56 | ||
|
|
fea68f8cab | ||
|
|
ce4b635d78 | ||
|
|
83ebd5de7e | ||
|
|
3f44e5fc96 | ||
|
|
39ad113573 | ||
|
|
9ff7482aea | ||
|
|
36e3d2a7cb | ||
|
|
691d5e0157 | ||
|
|
94986db688 | ||
|
|
9bf0b25662 | ||
|
|
42ca912ca7 | ||
|
|
6ac3383f6e | ||
|
|
922d956565 | ||
|
|
ca527548d1 | ||
|
|
e16a6c2415 | ||
|
|
c60b1e416e | ||
|
|
df7994b4b2 | ||
|
|
03e72d81da | ||
|
|
c8a7f8a632 | ||
|
|
d9644f325c | ||
|
|
38dde2a63d | ||
|
|
8aef2fc22d | ||
|
|
458890ba35 | ||
|
|
8d9d38fa39 | ||
|
|
957f9b53bb | ||
|
|
02d412a9b6 | ||
|
|
e4ade5659c | ||
|
|
19ff2af29b | ||
|
|
3c058928cb | ||
|
|
25ac859efd | ||
|
|
5b2968b5bf | ||
|
|
6cccd12a41 | ||
|
|
3ea75c8308 | ||
|
|
2ce1cd688d | ||
|
|
756d8d7f4b | ||
|
|
3738d81fab | ||
|
|
9f4c2f990a | ||
|
|
027cf93492 | ||
|
|
092a1c74ab | ||
|
|
fb7c86631d | ||
|
|
7137cbc13e | ||
|
|
989542107f | ||
|
|
97981c7d35 | ||
|
|
797c80b8cd | ||
|
|
377f926fea | ||
|
|
dd4f5bab30 | ||
|
|
e47b7afd15 | ||
|
|
a16523118b | ||
|
|
b2aaed792e | ||
|
|
117ddba9b6 | ||
|
|
1a25bb20cb | ||
|
|
8ba41979e2 | ||
|
|
1bd295e0d4 | ||
|
|
479ae161b1 | ||
|
|
6957641999 | ||
|
|
419c76d81c | ||
|
|
bd5313ebf3 | ||
|
|
16dcff113d | ||
|
|
e2d50addc1 | ||
|
|
2ddaf61399 | ||
|
|
2570c96f31 | ||
|
|
fbe31a190a | ||
|
|
7c1df32117 | ||
|
|
b690ff5b3e | ||
|
|
a04e263ad5 | ||
|
|
0e0833876b | ||
|
|
4d92a059d1 | ||
|
|
5c41bfeca1 | ||
|
|
7df95a05ed | ||
|
|
3911459eed | ||
|
|
b1c0704bac | ||
|
|
9022dc16ab | ||
|
|
a08c51a00c | ||
|
|
ccb2a628cf | ||
|
|
d3708bd83b | ||
|
|
41c4c333d1 | ||
|
|
1d31496854 | ||
|
|
9c4c1191d8 | ||
|
|
ddd6485a0b | ||
|
|
53f042a453 | ||
|
|
a507b0a0c9 | ||
|
|
ed1633fb21 | ||
|
|
cf59815089 | ||
|
|
58dfe935c6 | ||
|
|
aef5629343 | ||
|
|
864219c0fe | ||
|
|
d9a12e24e7 | ||
|
|
fa3b2c7e6b | ||
|
|
0035488770 | ||
|
|
ac565b65fe | ||
|
|
464a3ff5a2 | ||
|
|
e9cd7c4e27 | ||
|
|
a6b377208f | ||
|
|
8ef12225c6 | ||
|
|
ca9cb9e7d6 | ||
|
|
201bc0b092 | ||
|
|
3f92769b86 | ||
|
|
b1d1985a80 | ||
|
|
d73eade38a | ||
|
|
9ad438429f | ||
|
|
0d3b7c855c | ||
|
|
45655b7464 | ||
|
|
dbe719744a | ||
|
|
fadc3f7a70 | ||
|
|
3d12d416f7 | ||
|
|
cfe0361224 | ||
|
|
fd8c6431d5 | ||
|
|
b8dc3828e8 | ||
|
|
909aead056 | ||
|
|
88474b494b | ||
|
|
3833f4d626 | ||
|
|
ef55f13d7b | ||
|
|
3db18e22a4 | ||
|
|
1e93fb1c29 | ||
|
|
18df836cf4 | ||
|
|
2bbe846184 | ||
|
|
50f8e1c0f1 | ||
|
|
fdbe279071 | ||
|
|
90094d9103 | ||
|
|
51647cdd0d | ||
|
|
628f90ef57 | ||
|
|
7cba5a39f6 | ||
|
|
ee524b57c7 | ||
|
|
9aea2e4750 | ||
|
|
c49f8d8c76 | ||
|
|
1158c38575 | ||
|
|
f08a3e8337 | ||
|
|
64cc9fa7ff | ||
|
|
fd2d8a1efd | ||
|
|
0febb68047 | ||
|
|
e51c2261c2 | ||
|
|
537cf61df5 | ||
|
|
62f7a6cd48 | ||
|
|
ee48de0f30 | ||
|
|
272f74473a | ||
|
|
b02b3a95d2 | ||
|
|
d6c7c29b46 | ||
|
|
f12d92f42c | ||
|
|
aebea6a3b2 | ||
|
|
7c19efa448 | ||
|
|
cb0fb0eef8 | ||
|
|
e21a12e36f | ||
|
|
dbc2243dd4 | ||
|
|
4372ecbb4e | ||
|
|
69d0b4558f | ||
|
|
fc685414be | ||
|
|
68a97196d2 | ||
|
|
1c55dd77ef | ||
|
|
112b2babc1 | ||
|
|
3d40912b6f | ||
|
|
8d00739199 | ||
|
|
b66130950b | ||
|
|
5212e2c497 | ||
|
|
221cd4722a | ||
|
|
c851201872 | ||
|
|
12d771c6c7 | ||
|
|
275a05a0a3 | ||
|
|
65205e5c4e | ||
|
|
1a59605e17 | ||
|
|
3782c79464 | ||
|
|
cceb97d0d6 | ||
|
|
2df503c48a | ||
|
|
03323d954e | ||
|
|
6cb5130b08 | ||
|
|
b1ab16220c | ||
|
|
8ca01ccc2b | ||
|
|
81afd14b55 | ||
|
|
95f5cdd481 | ||
|
|
e33b8ff266 | ||
|
|
42af75b79d | ||
|
|
4e71297f02 | ||
|
|
eca1bcb995 | ||
|
|
4f7d58fe1d | ||
|
|
23e892f45b | ||
|
|
664293d82b | ||
|
|
1e9438227c | ||
|
|
4604b4f103 | ||
|
|
e62e9384d8 | ||
|
|
301dc3dcc1 | ||
|
|
93b79c5fba | ||
|
|
899fcb0479 | ||
|
|
61230c01bb | ||
|
|
059f391e52 | ||
|
|
c73774a3b2 | ||
|
|
8170c4a2d8 | ||
|
|
29ab3e96c7 | ||
|
|
7388876967 | ||
|
|
e2ae87ef9c | ||
|
|
355bbcdbe3 | ||
|
|
57cc216ae8 | ||
|
|
24c29c8f7e | ||
|
|
a1936e96cd | ||
|
|
13514e99a6 | ||
|
|
860ac47921 | ||
|
|
9c0c6d3379 | ||
|
|
022b247d59 | ||
|
|
e84444bf0e | ||
|
|
dc65938f8c | ||
|
|
5ff4134323 | ||
|
|
df8826f6cd | ||
|
|
397419cf39 | ||
|
|
30d880aaf9 | ||
|
|
6fb9e2ce60 | ||
|
|
be915011be | ||
|
|
8d3c30f4d0 | ||
|
|
7a50c0f167 | ||
|
|
a19b63e319 | ||
|
|
eb9b14e2c5 | ||
|
|
740788ef32 | ||
|
|
725e579576 | ||
|
|
8f0fbd0c19 | ||
|
|
36a6b115ac | ||
|
|
698c559e98 | ||
|
|
f6ccab0907 | ||
|
|
4614e5fe25 | ||
|
|
a06d63d099 | ||
|
|
36786a0d4a | ||
|
|
d4af12ad9e | ||
|
|
b96b11e513 | ||
|
|
b9cb0e200b | ||
|
|
25981f6d00 | ||
|
|
f1560c8f52 | ||
|
|
fc932de731 | ||
|
|
29f1e2ba1a | ||
|
|
fe67056bd1 | ||
|
|
488f3ed163 | ||
|
|
29f697ff08 | ||
|
|
b3ac79cde7 | ||
|
|
15826b0615 | ||
|
|
464be525f1 | ||
|
|
c2317b63f9 | ||
|
|
d8f340ad03 | ||
|
|
1a5fdbf2a1 | ||
|
|
cdd2c01c2a | ||
|
|
68714eef0a | ||
|
|
5e745773a8 | ||
|
|
3c73d58513 | ||
|
|
f5348e430b | ||
|
|
35ad0f39b4 | ||
|
|
d2681cdb23 | ||
|
|
b03993ca01 | ||
|
|
f32dfe04cb | ||
|
|
cbe87e0c05 | ||
|
|
af646276d5 | ||
|
|
2cfba7d097 | ||
|
|
767c594170 | ||
|
|
6c56bde728 | ||
|
|
261b6bf9b1 | ||
|
|
c628704471 | ||
|
|
a83036b0c8 | ||
|
|
0ce709a85f | ||
|
|
762999f853 | ||
|
|
91b7cad1e3 | ||
|
|
e24921af29 | ||
|
|
a288472c26 | ||
|
|
05a54988d6 | ||
|
|
af527e382a | ||
|
|
65cea4576e | ||
|
|
a72ff6cc96 | ||
|
|
ce5992bbd0 | ||
|
|
53c8f44fc5 | ||
|
|
64b1bf4cb5 | ||
|
|
2f0f474997 | ||
|
|
dc4ade62ab | ||
|
|
b63e172fb8 | ||
|
|
3964f0d2ab | ||
|
|
f82626ea6a | ||
|
|
12d4fea1ec | ||
|
|
73c6612ef2 | ||
|
|
7a9663fe35 | ||
|
|
94f5156b23 | ||
|
|
0d93e18457 | ||
|
|
c64d951df4 | ||
|
|
4d3d8fa532 | ||
|
|
08aa2bc2e7 | ||
|
|
8c129cda3c | ||
|
|
be135f6451 | ||
|
|
c9e27524e7 | ||
|
|
72b4157153 | ||
|
|
5833e2003f | ||
|
|
9b546e0404 | ||
|
|
fc16817f64 | ||
|
|
c18d808010 | ||
|
|
6159247c7e | ||
|
|
f232634187 | ||
|
|
06841845f8 | ||
|
|
34c89e2e25 |
No files matched your search
@@ -1,21 +1,23 @@
|
|||||||
{
|
{
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"commonjs": true,
|
"es2021": true
|
||||||
"es2021": true,
|
|
||||||
"node": true
|
|
||||||
},
|
},
|
||||||
"extends": [
|
"extends": [
|
||||||
"prettier",
|
"eslint:recommended",
|
||||||
"google"
|
"plugin:react/recommended"
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
"prettier"
|
|
||||||
],
|
],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": "latest"
|
"ecmaVersion": "latest",
|
||||||
|
"sourceType": "module"
|
||||||
},
|
},
|
||||||
|
"plugins": [
|
||||||
|
"react",
|
||||||
|
"react-refresh"
|
||||||
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"prettier/prettier": "error"
|
"no-mixed-spaces-and-tabs": "off",
|
||||||
|
"react/prop-types": "off",
|
||||||
|
"react-refresh/only-export-components": "warn"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
title: ''
|
||||||
|
labels: ''
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe the bug**
|
||||||
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
|
**To Reproduce**
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
|
||||||
|
**Expected behavior**
|
||||||
|
A clear and concise description of what you expected to happen.
|
||||||
|
|
||||||
|
**Screenshots**
|
||||||
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
|
||||||
|
**Desktop (please complete the following information):**
|
||||||
|
- OS: [e.g. iOS]
|
||||||
|
- Browser [e.g. chrome, safari]
|
||||||
|
- Version [e.g. 22]
|
||||||
|
|
||||||
|
**Smartphone (please complete the following information):**
|
||||||
|
- Device: [e.g. iPhone6]
|
||||||
|
- OS: [e.g. iOS8.1]
|
||||||
|
- Browser [e.g. stock browser, safari]
|
||||||
|
- Version [e.g. 22]
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the problem here.
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: Feature request
|
||||||
|
about: Suggest an idea for this project
|
||||||
|
title: ''
|
||||||
|
labels: ''
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Is your feature request related to a problem? Please describe.**
|
||||||
|
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
|
**Describe alternatives you've considered**
|
||||||
|
A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context or screenshots about the feature request here.
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
# @format
|
||||||
|
|
||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
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@v2
|
||||||
|
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@v3
|
||||||
|
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" # Set this to npm, yarn or pnpm.
|
||||||
|
|
||||||
|
- name: Install app dependencies and build web
|
||||||
|
# Remove `&& yarn build` if you build your frontend in `beforeBuildCommand`
|
||||||
|
run: pnpm install --no-frozen-lockfile && pnpm run build # Change this to npm, yarn or pnpm.
|
||||||
|
|
||||||
|
- name: Build the app
|
||||||
|
uses: tauri-apps/tauri-action@dev
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
|
||||||
|
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
|
||||||
|
with:
|
||||||
|
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.
|
||||||
|
releaseBody: "See the assets to download and install this version."
|
||||||
|
releaseDraft: true
|
||||||
|
prerelease: false
|
||||||
@@ -1,89 +1,40 @@
|
|||||||
# Logs
|
*dist
|
||||||
logs
|
*build
|
||||||
|
__pycache__
|
||||||
|
*.mkv
|
||||||
|
*.mp4
|
||||||
|
*mpv*
|
||||||
|
sh-agent*
|
||||||
|
.pytest_cache
|
||||||
|
|
||||||
|
### react ###
|
||||||
|
.DS_*
|
||||||
*.log
|
*.log
|
||||||
npm-debug.log*
|
logs
|
||||||
yarn-debug.log*
|
**/*.backup.*
|
||||||
yarn-error.log*
|
**/*.back.*
|
||||||
lerna-debug.log*
|
|
||||||
|
|
||||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
node_modules
|
||||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
bower_components
|
||||||
|
|
||||||
# Runtime data
|
*.sublime*
|
||||||
pids
|
|
||||||
*.pid
|
|
||||||
*.seed
|
|
||||||
*.pid.lock
|
|
||||||
.DS_Store
|
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
psd
|
||||||
lib-cov
|
thumb
|
||||||
|
sketch
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
### Rust ###
|
||||||
coverage
|
# Generated by Cargo
|
||||||
*.lcov
|
# will have compiled files and executables
|
||||||
|
debug/
|
||||||
|
target/
|
||||||
|
|
||||||
# nyc test coverage
|
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
||||||
.nyc_output
|
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
||||||
|
Cargo.lock
|
||||||
|
|
||||||
# node-waf configuration
|
# These are backup files generated by rustfmt
|
||||||
.lock-wscript
|
**/*.rs.bk
|
||||||
|
|
||||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
# MSVC Windows builds of rustc generate these, which store debugging information
|
||||||
build/Release
|
*.pdb
|
||||||
|
|
||||||
# Dependency directories
|
|
||||||
node_modules/
|
|
||||||
jspm_packages/
|
|
||||||
|
|
||||||
# TypeScript v1 declaration files
|
|
||||||
typings/
|
|
||||||
|
|
||||||
# TypeScript cache
|
|
||||||
*.tsbuildinfo
|
|
||||||
|
|
||||||
# Optional npm cache directory
|
|
||||||
.npm
|
|
||||||
|
|
||||||
# Optional eslint cache
|
|
||||||
.eslintcache
|
|
||||||
|
|
||||||
# Optional REPL history
|
|
||||||
.node_repl_history
|
|
||||||
|
|
||||||
# Output of 'npm pack'
|
|
||||||
*.tgz
|
|
||||||
|
|
||||||
# Yarn Integrity file
|
|
||||||
.yarn-integrity
|
|
||||||
|
|
||||||
# dotenv environment variables file
|
|
||||||
.env
|
|
||||||
.env.test
|
|
||||||
|
|
||||||
# parcel-bundler cache (https://parceljs.org/)
|
|
||||||
.cache
|
|
||||||
|
|
||||||
# next.js build output
|
|
||||||
.next
|
|
||||||
|
|
||||||
# nuxt.js build output
|
|
||||||
.nuxt
|
|
||||||
|
|
||||||
# vuepress build output
|
|
||||||
.vuepress/dist
|
|
||||||
|
|
||||||
# Serverless directories
|
|
||||||
.serverless/
|
|
||||||
|
|
||||||
# FuseBox cache
|
|
||||||
.fusebox/
|
|
||||||
|
|
||||||
# DynamoDB Local files
|
|
||||||
.dynamodb/
|
|
||||||
|
|
||||||
# Webpack
|
|
||||||
.webpack/
|
|
||||||
|
|
||||||
# Electron-Forge
|
|
||||||
out/
|
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "lldb",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Tauri Development Debug",
|
||||||
|
"cargo": {
|
||||||
|
"args": [
|
||||||
|
"build",
|
||||||
|
"--manifest-path=./src-tauri/Cargo.toml",
|
||||||
|
"--no-default-features"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
// task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json`
|
||||||
|
"preLaunchTask": "ui:dev"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "lldb",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Tauri Production Debug",
|
||||||
|
"cargo": {
|
||||||
|
"args": [
|
||||||
|
"build",
|
||||||
|
"--release",
|
||||||
|
"--manifest-path=./src-tauri/Cargo.toml"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
// task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json`
|
||||||
|
"preLaunchTask": "ui:build"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"nuxt.isNuxtApp": false
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
// for the documentation about the tasks.json format
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "ui:dev",
|
||||||
|
"type": "shell",
|
||||||
|
// `dev` keeps running in the background
|
||||||
|
// ideally you should also configure a `problemMatcher`
|
||||||
|
// see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson
|
||||||
|
"isBackground": true,
|
||||||
|
// change this to your `beforeDevCommand`:
|
||||||
|
"command": "yarn",
|
||||||
|
"args": [
|
||||||
|
"dev"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "ui:build",
|
||||||
|
"type": "shell",
|
||||||
|
// change this to your `beforeBuildCommand`:
|
||||||
|
"command": "yarn",
|
||||||
|
"args": [
|
||||||
|
"build"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,674 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||||
@@ -1,4 +1,51 @@
|
|||||||
# JellyPlayer
|

|
||||||
## THIS IS CURRENTLY IN WORKS AND DOES NOT WORK I WILL CREATE A ALPHA IN FEW MONTHS
|
|
||||||
## Modern Jellyfin Media player
|
# 📝 Prerequisites
|
||||||
# WORK IN PROGRESS
|
|
||||||
|
- Nodejs (≥19.1.0)
|
||||||
|
- Rust (≥1.66.1)
|
||||||
|
- Visual Studio C++ Build tools
|
||||||
|
- [pnpm](https://pnpm.io/)
|
||||||
|
|
||||||
|
# ℹ️ Getting started
|
||||||
|
|
||||||
|
- Install Nodejs, pnpm and Rust.
|
||||||
|
> **Note** : Install Rust from <https://www.rust-lang.org/learn/get-started>
|
||||||
|
- install depencies using pnpm:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pnpm install
|
||||||
|
```
|
||||||
|
|
||||||
|
# 🛠️ Development
|
||||||
|
|
||||||
|
- Running the app:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pnpm run tauri dev
|
||||||
|
```
|
||||||
|
|
||||||
|
- Building the app:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pnpm run tauri build
|
||||||
|
```
|
||||||
|
|
||||||
|
- other commands can be found inside the `"scripts"` inside [package.json](https://github.com/prayag17/JellyPlayer/blob/main/package.json)
|
||||||
|
|
||||||
|
# 💻 Contribution
|
||||||
|
|
||||||
|
- Checkout `issues` to see currently worked on features and bugs
|
||||||
|
- Add features or fix bugs
|
||||||
|
- Create a pull request
|
||||||
|
|
||||||
|
# 📃 Roadmap
|
||||||
|
|
||||||
|
- Checkout [GitHub Project](https://github.com/users/prayag17/projects/3)
|
||||||
|
|
||||||
|
|
||||||
|
# 🎊 Special thanks to
|
||||||
|
|
||||||
|
- [@ferferga](https://github.com/ferferga) for helping in development behind the scenes.
|
||||||
|
- All contributors of [jellyfin/jellyfin-vue](https://github.com/jellyfin/jellyfin-vue).
|
||||||
|
- And also [@jellyfin](https://github.com/jellyfin/) for creating the main service
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Jellyplayer</title>
|
||||||
|
<script src="http://localhost:8097"></script>
|
||||||
|
<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;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-loading-logo {
|
||||||
|
width: 65vw;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="app-loading">
|
||||||
|
<img src="./assetsStatic/LogoBig.svg" class="app-loading-logo" />
|
||||||
|
</div>
|
||||||
|
<div id="root"></div>
|
||||||
|
<svg style="width:0;height:0;position:absolute;" aria-hidden="true" focusable="false">
|
||||||
|
<linearGradient id="clr-gradient-default" x2="1" y2="1">
|
||||||
|
<stop offset="0%" stop-color="hsl(337, 96%, 56%)" />
|
||||||
|
<stop offset="100%" stop-color="hsl(273, 100%, 36%)" />
|
||||||
|
</linearGradient>
|
||||||
|
</svg>
|
||||||
|
<script type="module" src="/src/main.jsx"></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"version": "0.0.3-dev",
|
||||||
|
"notes": "See the assets to download and install this version.",
|
||||||
|
"pub_date": "2023-12-30T13:19:40.566Z",
|
||||||
|
"platforms": {
|
||||||
|
"linux-x86_64": {
|
||||||
|
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVROHVTNk5NMHU2bVUxMlNNMXNqRUJzbTlxQTVSeldOcG1QNnROYUpVbWx1dVJabHFzUFRTVnpSdlhPMnNMWlNZaW1RTFZ1NUhhYmtsNFBVa3cwWDVqWmU0R3JFNnJjVHdNPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzAzOTQyMzI3CWZpbGU6amVsbHktcGxheWVyXzAuMC4zLWRldl9hbWQ2NC5BcHBJbWFnZS50YXIuZ3oKbnpNR2VkeFB4eDZpd25JZDBDVjJFRVNFYndXM0hmeVRtZ3dJdmlRMldHRVpxeDBKL3AyTzZld21rbzYwanJwcUkzenpUQXNPSURETmdZZHBXNCtqREE9PQo=",
|
||||||
|
"url": "https://github.com/prayag17/JellyPlayer/releases/download/v0.0.3-dev/jelly-player_0.0.3-dev_amd64.AppImage.tar.gz"
|
||||||
|
},
|
||||||
|
"darwin-x86_64": {
|
||||||
|
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVROHVTNk5NMHU2bVFSd2o2eGdKZUFuQ09ucXF6amJaYU1TVXRCaDBzTVJZM0xBZDVMNkRnL0N2WDJtclpBYTYwamthTGFVWERaUXVpRzdEZ3oyT2N1azFoamJ2RENZZFFvPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzAzOTQyMzc0CWZpbGU6SmVsbHlQbGF5ZXIuYXBwLnRhci5negpycDN3eWRlR1IyZXo0djlmSjJMVkpHUWNRVUhqbmFsSHFnbzNQM2VGc21uOTRESjJxaUNlbEl6K2hnSU41T0lPQ292VWFjYlVRM2YyM1BNM0NWOTJEUT09Cg==",
|
||||||
|
"url": "https://github.com/prayag17/JellyPlayer/releases/download/v0.0.3-dev/JellyPlayer_x64.app.tar.gz"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,73 +1,60 @@
|
|||||||
{
|
{
|
||||||
"name": "jellyplayer",
|
"name": "jellyplayer",
|
||||||
"productName": "jellyplayer",
|
"private": true,
|
||||||
"version": "1.0.0",
|
"version": "0.0.3-dev",
|
||||||
"description": "Modern Jellyfin Client",
|
"type": "module",
|
||||||
"main": "./src/index.js",
|
"scripts": {
|
||||||
"scripts": {
|
"dev": "vite",
|
||||||
"start": "electron-forge start",
|
"build": "vite build",
|
||||||
"package": "electron-forge package",
|
"preview": "vite preview",
|
||||||
"make": "electron-forge make",
|
"tauri": "tauri",
|
||||||
"publish": "electron-forge publish",
|
"lint": "eslint"
|
||||||
"lint": "echo \"No linting configured\""
|
},
|
||||||
},
|
"dependencies": {
|
||||||
"keywords": [],
|
"@emotion/react": "^11.11.1",
|
||||||
"author": {
|
"@emotion/styled": "^11.11.0",
|
||||||
"name": "Prayag",
|
"@fontsource-variable/jetbrains-mono": "^5.0.19",
|
||||||
"email": "prayagprajapati.17@gmail.com"
|
"@fontsource/noto-sans": "^5.0.18",
|
||||||
},
|
"@jellyfin/sdk": "0.8.2",
|
||||||
"license": "MIT",
|
"@mdi/js": "^7.3.67",
|
||||||
"config": {
|
"@mui/lab": "5.0.0-alpha.158",
|
||||||
"forge": {
|
"@mui/material": "^5.14.20",
|
||||||
"packagerConfig": {
|
"@tanstack/react-query": "^5.13.4",
|
||||||
"icon": "./src/assets/icon.ico"
|
"@tanstack/react-query-devtools": "^5.13.5",
|
||||||
},
|
"@tauri-apps/api": "^1.5.1",
|
||||||
"makers": [
|
"axios": "^1.6.2",
|
||||||
{
|
"axios-tauri-api-adapter": "^0.2.0",
|
||||||
"name": "@electron-forge/maker-squirrel",
|
"blurhash": "^2.0.5",
|
||||||
"config": {
|
"events": "^3.3.0",
|
||||||
"name": "jellyplayer"
|
"framer-motion": "^10.16.16",
|
||||||
}
|
"material-symbols": "^0.14.2",
|
||||||
},
|
"notistack": "^3.0.1",
|
||||||
{
|
"react": "^18.2.0",
|
||||||
"name": "@electron-forge/maker-zip",
|
"react-blurhash": "^0.3.0",
|
||||||
"platforms": [
|
"react-dom": "^18.2.0",
|
||||||
"darwin"
|
"react-error-boundary": "^4.0.11",
|
||||||
]
|
"react-markdown": "^9.0.1",
|
||||||
},
|
"react-multi-carousel": "^2.8.4",
|
||||||
{
|
"react-player": "^2.13.0",
|
||||||
"name": "@electron-forge/maker-deb",
|
"react-router-dom": "^6.20.1",
|
||||||
"config": {}
|
"react-use-konami": "^1.1.0",
|
||||||
},
|
"tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log#v1",
|
||||||
{
|
"tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store",
|
||||||
"name": "@electron-forge/maker-rpm",
|
"uuid": "^9.0.1",
|
||||||
"config": {}
|
"vite-plugin-svgr": "^4.2.0",
|
||||||
}
|
"wavesurfer.js": "^7.5.1",
|
||||||
]
|
"zustand": "^4.4.7"
|
||||||
}
|
},
|
||||||
},
|
"devDependencies": {
|
||||||
"dependencies": {
|
"@tauri-apps/cli": "^1.5.7",
|
||||||
"@rive-app/webgl": "^1.0.23",
|
"@vitejs/plugin-react": "^4.2.1",
|
||||||
"@thornbill/jellyfin-sdk": "^0.4.1",
|
"eslint": "^8.55.0",
|
||||||
"electron-squirrel-startup": "^1.0.0",
|
"eslint-plugin-react": "^7.33.2",
|
||||||
"electron-store": "^8.0.1",
|
"eslint-plugin-react-refresh": "^0.4.5",
|
||||||
"events": "^3.3.0",
|
"prop-types": "^15.8.1",
|
||||||
"got": "^11.8.3",
|
"sass": "^1.69.5",
|
||||||
"got-fetch": "^4.0.3",
|
"vite": "^5.0.7",
|
||||||
"jquery.scrollto": "^2.1.3"
|
"vite-plugin-compression": "^0.5.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"license": "GPL-3.0-only"
|
||||||
"@electron-forge/cli": "^6.0.0-beta.63",
|
|
||||||
"@electron-forge/maker-deb": "^6.0.0-beta.63",
|
|
||||||
"@electron-forge/maker-rpm": "^6.0.0-beta.63",
|
|
||||||
"@electron-forge/maker-squirrel": "^6.0.0-beta.63",
|
|
||||||
"@electron-forge/maker-zip": "^6.0.0-beta.63",
|
|
||||||
"electron": "^17.1.2",
|
|
||||||
"electron-packager": "^15.4.0",
|
|
||||||
"eslint": "^8.11.0",
|
|
||||||
"eslint-config-google": "^0.14.0",
|
|
||||||
"eslint-config-prettier": "^8.5.0",
|
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
|
||||||
"prettier": "^2.5.1"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 30 KiB |
@@ -0,0 +1,20 @@
|
|||||||
|
<svg width="1196" height="246" viewBox="0 0 1196 246" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<rect x="50" y="50.0024" width="145.46" height="145.46" fill="url(#pattern0)"/>
|
||||||
|
<g clip-path="url(#clip0_504_8)">
|
||||||
|
<rect x="235.46" y="50" width="860" height="81.4648" fill="url(#pattern1)"/>
|
||||||
|
<path d="M235.64 186.465L247.232 161.265H249.068L260.66 186.465H258.68L247.736 162.417H248.528L237.62 186.465H235.64ZM239.888 179.373L240.5 177.825H255.584L256.196 179.373H239.888ZM278.081 186.465V161.265H279.629L291.329 181.461H290.501L302.165 161.265H303.677L303.713 186.465H301.913L301.877 164.037H302.381L291.329 183.117H290.429L279.341 164.037H279.881V186.465H278.081ZM324.991 186.645C323.119 186.645 321.379 186.333 319.771 185.709C318.187 185.061 316.795 184.161 315.595 183.009C314.419 181.833 313.507 180.477 312.859 178.941C312.211 177.381 311.887 175.689 311.887 173.865C311.887 172.041 312.211 170.361 312.859 168.825C313.507 167.265 314.419 165.909 315.595 164.757C316.795 163.581 318.187 162.681 319.771 162.057C321.379 161.409 323.119 161.085 324.991 161.085C326.863 161.085 328.591 161.409 330.175 162.057C331.783 162.681 333.175 163.569 334.351 164.721C335.527 165.873 336.439 167.229 337.087 168.789C337.759 170.325 338.095 172.017 338.095 173.865C338.095 175.713 337.759 177.417 337.087 178.977C336.439 180.513 335.527 181.857 334.351 183.009C333.175 184.161 331.783 185.061 330.175 185.709C328.591 186.333 326.863 186.645 324.991 186.645ZM324.991 184.953C326.599 184.953 328.087 184.677 329.455 184.125C330.823 183.573 332.011 182.793 333.019 181.785C334.027 180.777 334.807 179.601 335.359 178.257C335.935 176.913 336.223 175.449 336.223 173.865C336.223 172.257 335.935 170.793 335.359 169.473C334.807 168.129 334.027 166.953 333.019 165.945C332.011 164.937 330.823 164.157 329.455 163.605C328.087 163.053 326.599 162.777 324.991 162.777C323.383 162.777 321.895 163.053 320.527 163.605C319.159 164.157 317.959 164.937 316.927 165.945C315.919 166.953 315.127 168.129 314.551 169.473C313.999 170.793 313.723 172.257 313.723 173.865C313.723 175.449 313.999 176.913 314.551 178.257C315.127 179.601 315.919 180.777 316.927 181.785C317.959 182.793 319.159 183.573 320.527 184.125C321.895 184.677 323.383 184.953 324.991 184.953ZM346.263 186.465V161.265H356.235C358.899 161.265 361.239 161.805 363.255 162.885C365.271 163.965 366.831 165.453 367.935 167.349C369.063 169.245 369.627 171.417 369.627 173.865C369.627 176.313 369.063 178.485 367.935 180.381C366.831 182.277 365.271 183.765 363.255 184.845C361.239 185.925 358.899 186.465 356.235 186.465H346.263ZM348.099 184.809H356.091C358.467 184.809 360.531 184.341 362.283 183.405C364.035 182.469 365.391 181.185 366.351 179.553C367.311 177.897 367.791 176.001 367.791 173.865C367.791 171.729 367.311 169.845 366.351 168.213C365.391 166.557 364.035 165.261 362.283 164.325C360.531 163.389 358.467 162.921 356.091 162.921H348.099V184.809ZM379.425 172.857H393.069V174.477H379.425V172.857ZM379.641 184.809H395.193V186.465H377.805V161.265H394.653V162.921H379.641V184.809ZM403.687 186.465V161.265H412.723C414.835 161.265 416.647 161.601 418.159 162.273C419.671 162.945 420.835 163.917 421.651 165.189C422.467 166.437 422.875 167.961 422.875 169.761C422.875 171.513 422.467 173.025 421.651 174.297C420.835 175.545 419.671 176.517 418.159 177.213C416.647 177.885 414.835 178.221 412.723 178.221H404.695L405.523 177.357V186.465H403.687ZM421.183 186.465L414.631 177.321H416.719L423.271 186.465H421.183ZM405.523 177.465L404.695 176.601H412.723C415.435 176.601 417.487 176.001 418.879 174.801C420.295 173.601 421.003 171.921 421.003 169.761C421.003 167.577 420.295 165.897 418.879 164.721C417.487 163.521 415.435 162.921 412.723 162.921H404.695L405.523 162.021V177.465ZM431.397 186.465V161.265H432.945L450.909 184.197H450.081V161.265H451.917V186.465H450.405L432.405 163.533H433.233V186.465H431.397ZM475.832 186.645C474.464 186.645 473.18 186.333 471.98 185.709C470.804 185.061 469.856 184.173 469.136 183.045L470.252 181.821C470.948 182.853 471.764 183.645 472.7 184.197C473.66 184.725 474.704 184.989 475.832 184.989C479.168 184.989 480.836 183.009 480.836 179.049V162.921H471.548V161.265H482.672V179.049C482.672 181.569 482.096 183.465 480.944 184.737C479.792 186.009 478.088 186.645 475.832 186.645ZM494.667 172.857H508.311V174.477H494.667V172.857ZM494.883 184.809H510.435V186.465H493.047V161.265H509.895V162.921H494.883V184.809ZM518.929 186.465V161.265H520.765V184.809H535.273V186.465H518.929ZM541.788 186.465V161.265H543.624V184.809H558.132V186.465H541.788ZM567.915 186.465V177.321L568.347 178.509L557.763 161.265H559.779L569.391 176.925H568.383L577.995 161.265H579.903L569.319 178.509L569.751 177.321V186.465H567.915ZM587.297 173.685H600.941V175.341H587.297V173.685ZM587.513 186.465H585.677V161.265H602.525V162.921H587.513V186.465ZM610.188 186.465V161.265H612.024V186.465H610.188ZM622.605 186.465V161.265H624.153L642.117 184.197H641.289V161.265H643.125V186.465H641.613L623.613 163.533H624.441V186.465H622.605ZM675.427 186.645C673.555 186.645 671.815 186.333 670.207 185.709C668.623 185.061 667.243 184.161 666.067 183.009C664.891 181.857 663.979 180.513 663.331 178.977C662.683 177.417 662.359 175.713 662.359 173.865C662.359 172.017 662.683 170.325 663.331 168.789C663.979 167.229 664.891 165.873 666.067 164.721C667.267 163.569 668.659 16Line truncated
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||||
|
<use xlink:href="#image0_504_8" transform="scale(0.000661376)"/>
|
||||||
|
</pattern>
|
||||||
|
<pattern id="pattern1" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||||
|
<use xlink:href="#image1_504_8" transform="scale(0.000244141 0.00257732)"/>
|
||||||
|
</pattern>
|
||||||
|
<clipPath id="clip0_504_8">
|
||||||
|
<rect width="910" height="145.465" fill="white" transform="translate(235.46 50)"/>
|
||||||
|
</clipPath>
|
||||||
|
<image id="image0_504_8" width="1512" height="1512" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABegAAAXoCAYAAADGxiudAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUADeKkSURBVHgB7P0/tyXJlR2O7egGuLgWDTSsmXGEpveTQ4DOqAfTPV3w5A0oS9YA/AICfl+AAPQBRMwX4FTTkExi5PzkoVsGFwVg1A04NFEtC2MNYJBrgK5CKPNWRr4dO/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w0a98jPUs59fcJjvTdj9v4a3t+d/+sHyL2Z69UGmzRdbBNNW5I/TbuEP9tLGD49Y3aax9TCPvfLZ/rTvuVuP/4iy+++OVnn332WyQSiUQikUgkTiEJ+kQikUgkEokJ1t3xC0n+YPn6V8u/b+Hp7vgVM7JyICKVTFbyUckwbbMdY5Hl8odR0ROuTDiCCcmt+444PCD9BvLXEfEMQ2p2eouuTECOg58gZ7d6R+8Px0RWJY/buTIhuLvhAfuHTcPvjnwXfSyhDLODmfsmubVuR8qSisMu8mbPJor2h2DuA9tEO9t5nO6BgLPZLqx0afqOdLHvk4c89Line truncated
|
||||||
|
<image id="image1_504_8" width="4096" height="388" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAAAGECAYAAAC2K+WjAAAAAXNSR0IArs4c6QAAIABJREFUeF7svQmcJVdZ9/97emayh+wgAQImYdFX4VUU1D8I+soivqgvEGRfBBISkkBCNiDIyE7YAtkTkrAFkoxECCKIiOAGCqIEBaJhM2HLnsns032f/+fcqrp1qm7d7tvTVfdW3f7W55PMdNU5z/Oc77l9p/vc8/sdExcEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACUydgU6+AAiAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhAQBgC8CCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAi0ggAFACyaBEiAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhgA8Bq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SH0v6NzNbTDdYZ05irYCAu58d9tiuIARdIQCB9hP4d0nP5zPU9k9UXRX6Y9ev3XrTpuMlO0vSusXiDon3+zdKwvo0wDii/yqBfuQD0I9UFScXq6e5IwF81qcs7M8k9YN4aZ9y/PzrChH+iDzl2JkgP65hVJu43th0IENbjJHATcYf1Zc2GhgQRNx6qcK//GyQK+JQEvgnOdKbReOAtIZ+36JBwGBuBuYGHlwBwsaxXvgzfL7a64ftOwf0P3vt9c0C/HaXXdeTftzz3g0y/9qC1v745bdc9N91vdaJMz0CGABMj33tmTEAqB0pAadDAAOA6XBvPCsGAI0jJgEE2kAAA4A2zEJHasAAoCMTRZkQgAAEVkAAA4AVwKMrBCAAgQoC6Qne4VSIukW830kNOYMTPRcEIDBDBNz9MElXSHpUzcMKot2zzeyUmuMSboIEMACYIGxSrYTAjyWFU3LCZuavSfoPScEMNJgYhf+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
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 18 KiB |
@@ -0,0 +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">
|
||||||
|
<rect x="50" y="50" width="146.79" height="146.79" fill="url(#pattern0)"/>
|
||||||
|
<g clip-path="url(#clip0_949_2)">
|
||||||
|
<rect x="236.79" y="50.6626" width="860" height="81.4648" fill="url(#pattern1)"/>
|
||||||
|
<path d="M236.97 187.127L248.562 161.927H250.398L261.99 187.127H260.01L249.066 163.079H249.858L238.95 187.127H236.97ZM241.218 180.035L241.83 178.487H256.914L257.526 180.035H241.218ZM279.411 187.127V161.927H280.959L292.659 182.123H291.831L303.495 161.927H305.007L305.043 187.127H303.243L303.207 164.699H303.711L292.659 183.779H291.759L280.671 164.699H281.211V187.127H279.411ZM326.321 187.307C324.449 187.307 322.709 186.995 321.101 186.371C319.517 185.723 318.125 184.823 316.925 183.671C315.749 182.495 314.837 181.139 314.189 179.603C313.541 178.043 313.217 176.351 313.217 174.527C313.217 172.703 313.541 171.023 314.189 169.487C314.837 167.927 315.749 166.571 316.925 165.419C318.125 164.243 319.517 163.343 321.101 162.719C322.709 162.071 324.449 161.747 326.321 161.747C328.193 161.747 329.921 162.071 331.505 162.719C333.113 163.343 334.505 164.231 335.681 165.383C336.857 166.535 337.769 167.891 338.417 169.451C339.089 170.987 339.425 172.679 339.425 174.527C339.425 176.375 339.089 178.079 338.417 179.639C337.769 181.175 336.857 182.519 335.681 183.671C334.505 184.823 333.113 185.723 331.505 186.371C329.921 186.995 328.193 187.307 326.321 187.307ZM326.321 185.615C327.929 185.615 329.417 185.339 330.785 184.787C332.153 184.235 333.341 183.455 334.349 182.447C335.357 181.439 336.137 180.263 336.689 178.919C337.265 177.575 337.553 176.111 337.553 174.527C337.553 172.919 337.265 171.455 336.689 170.135C336.137 168.791 335.357 167.615 334.349 166.607C333.341 165.599 332.153 164.819 330.785 164.267C329.417 163.715 327.929 163.439 326.321 163.439C324.713 163.439 323.225 163.715 321.857 164.267C320.489 164.819 319.289 165.599 318.257 166.607C317.249 167.615 316.457 168.791 315.881 170.135C315.329 171.455 315.053 172.919 315.053 174.527C315.053 176.111 315.329 177.575 315.881 178.919C316.457 180.263 317.249 181.439 318.257 182.447C319.289 183.455 320.489 184.235 321.857 184.787C323.225 185.339 324.713 185.615 326.321 185.615ZM347.593 187.127V161.927H357.565C360.229 161.927 362.569 162.467 364.585 163.547C366.601 164.627 368.161 166.115 369.265 168.011C370.393 169.907 370.957 172.079 370.957 174.527C370.957 176.975 370.393 179.147 369.265 181.043C368.161 182.939 366.601 184.427 364.585 185.507C362.569 186.587 360.229 187.127 357.565 187.127H347.593ZM349.429 185.471H357.421C359.797 185.471 361.861 185.003 363.613 184.067C365.365 183.131 366.721 181.847 367.681 180.215C368.641 178.559 369.121 176.663 369.121 174.527C369.121 172.391 368.641 170.507 367.681 168.875C366.721 167.219 365.365 165.923 363.613 164.987C361.861 164.051 359.797 163.583 357.421 163.583H349.429V185.471ZM380.755 173.519H394.399V175.139H380.755V173.519ZM380.971 185.471H396.523V187.127H379.135V161.927H395.983V163.583H380.971V185.471ZM405.017 187.127V161.927H414.053C416.165 161.927 417.977 162.263 419.489 162.935C421.001 163.607 422.165 164.579 422.981 165.851C423.797 167.099 424.205 168.623 424.205 170.423C424.205 172.175 423.797 173.687 422.981 174.959C422.165 176.207 421.001 177.179 419.489 177.875C417.977 178.547 416.165 178.883 414.053 178.883H406.025L406.853 178.019V187.127H405.017ZM422.513 187.127L415.961 177.983H418.049L424.601 187.127H422.513ZM406.853 178.127L406.025 177.263H414.053C416.765 177.263 418.817 176.663 420.209 175.463C421.625 174.263 422.333 172.583 422.333 170.423C422.333 168.239 421.625 166.559 420.209 165.383C418.817 164.183 416.765 163.583 414.053 163.583H406.025L406.853 162.683V178.127ZM432.727 187.127V161.927H434.275L452.239 184.859H451.411V161.927H453.247V187.127H451.735L433.735 164.195H434.563V187.127H432.727ZM477.162 187.307C475.794 187.307 474.51 186.995 473.31 186.371C472.134 185.723 471.186 184.835 470.466 183.707L471.582 182.483C472.278 183.515 473.094 184.307 474.03 184.859C474.99 185.387 476.034 185.651 477.162 185.651C480.498 185.651 482.166 183.671 482.166 179.711V163.583H472.878V161.927H484.002V179.711C484.002 182.231 483.426 184.127 482.274 185.399C481.122 186.671 479.418 187.307 477.162 187.307ZM495.997 173.519H509.641V175.139H495.997V173.519ZM496.213 185.471H511.765V187.127H494.377V161.927H511.225V163.583H496.213V185.471ZM520.259 187.127V161.927H522.095V185.471H536.603V187.127H520.259ZM543.118 187.127V161.927H544.954V185.471H559.462V187.127H543.118ZM569.245 187.127V177.983L569.677 179.171L559.093 161.927H561.109L570.721 177.587H569.713L579.325 161.927H581.233L570.649 179.171L571.081 177.983V187.127H569.245ZM588.627 174.347H602.271V176.003H588.627V174.347ZM588.843 187.127H587.007V161.927H603.855V163.583H588.843V187.127ZM611.518 187.127V161.927H613.354V187.127H611.518ZM623.935 187.127V161.927H625.483L643.447 184.859H642.619V161.927H644.455V187.127H642.943L624.943 164.195H625.771V187.127H623.935ZM676.758 187.307C674.886 187.307 673.146 186.995 671.538 186.371C669.954 185.723 668.574 184.823 667.398 183.671C666.222 182.519 665.31 181.175 664.662 179.639C664.014 178.079 663.69 176.375 663.69 174.527C663.69 172.679 664.014 170.987 664.662 169.451C665.31 167.891 666.222 166.535 667.398 165.383C668.598 164.231 669.99 163.34Line truncated
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||||
|
<use xlink:href="#image0_949_2" transform="scale(0.000806452)"/>
|
||||||
|
</pattern>
|
||||||
|
<pattern id="pattern1" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||||
|
<use xlink:href="#image1_949_2" transform="scale(0.000244141 0.00257732)"/>
|
||||||
|
</pattern>
|
||||||
|
<clipPath id="clip0_949_2">
|
||||||
|
<rect width="910" height="145.465" fill="white" transform="translate(236.79 50.6626)"/>
|
||||||
|
</clipPath>
|
||||||
|
<image id="image0_949_2" width="1240" height="1240" xlink:href="data:image/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4IEGzwdUN6DQDuIG4K/dkAAAAAAOB1hh5s8HpwKgAAdwbXp8fzqT+bAAAAAAAAvE6QYIOvC9JrAHAHcyb0ZwMAAAAAgNcBEmzw9fKwAADcmZxMj2en/6PgWfs/CwAAAAAAAL4mSLDB18X0j9KUXjsRAIA7n6enxzP0ZwMAAAAAgK8WEmzwNTPJteuCXAOAu4cnRPuzXRcAAAAAAICvAhJs8DUz/SP0eaFEFADuTs6mx6NN07wgAAAAAAAAXwESbPA1Yf2KHhYAgLuTk+nxOfqzAQAAAADAawHBBl8rpwIAcPdzfXp8fpJsNwQAAAAAAOBVoEQUviYYbgAA9yBn0+OppmluCgAAAAAAQIAEG3zVTHLtg4JcA4B7j5PpkUpGn6dsFAAAAAAAIgg2+Fq4LgAA9y4Pi5aN0p8NAAAAAAAylIjCV4X9Y/LzAgAAiTOhbBQAAAAA4J6HBBt8tTwsAADgnIiWjX7eyucBAAAAAOAeBMEGXy2PCQAALDmZHp+hbBQAAAAA4N6EElF4zVAeCgDwmjmdHs80TfOiAAAAAADAXQ8JNvhqeFgAAOC1cDo9Pjf9HxPXBQAAAAAA7noQbPDVQH8hAIDXzonU/mwnAgAAAAAAdy2UiMJrYvrH4QPTl38mAADwtXJTdOLomQAAAAAAwF0FCTZ4rTwsALine truncated
|
||||||
|
<image id="image1_949_2" width="4096" height="388" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAAAGECAYAAAC2K+WjAAAAAXNSR0IArs4c6QAAIABJREFUeF7snQmcJGV5/381swvIIbcol8rhlQRjjBrz12iMIppojAreCiogt9weGCdeICjIzS4CiqLACioeGKMGNUYTjAloUBIUDSjIsewue+9Mv//P21Vv1ftWV890z1R1V3V/6yPuTtX7Ps/zft/u2Zm339/vjcQFAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAwNAJREOvgAIg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LH4PzUS8MwHXN02t3vJ2HatHGf7rN0mGWVLWmFk7jSt6HYTme+1WtFdE5vN3GamN9uwfuPa9Yu3NOvX/H7vDVOamh7w24Z0fRAoewGij9Q0rYAABgAVQCXkwAlgADBw5ANLiAHAwFCTCAJDI4ABwNDQNzIxBgCNnDaKhgAEINAXAQwA+sJFYwhAAAJzEtg5OcXbngRU9nLine truncated
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 858 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 2.8 MiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 889 KiB |
@@ -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 |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 451 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 25 KiB |
@@ -0,0 +1,99 @@
|
|||||||
|
<!-- @format -->
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Document</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<img src="./assetsStatic/LogoBigBlack.png" alt="" srcset="">
|
||||||
|
</main>
|
||||||
|
<div class="loading">
|
||||||
|
<div class="indicator"></div>
|
||||||
|
</div>
|
||||||
|
<div class="background"></div>
|
||||||
|
<style>
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.background {
|
||||||
|
position: fixed;
|
||||||
|
z-index: 0;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
background-image: url("./assetsStatic/splashBg.png");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
border-radius: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
z-index: 1;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 75%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100vw;
|
||||||
|
background: hsla(255, 100%, 4%, 0.5);
|
||||||
|
z-index: 1;
|
||||||
|
height: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
backdrop-filter: blur(5px);
|
||||||
|
border-radius: 0 0 7px 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.indicator {
|
||||||
|
background: hsl(337, 96%, 56%);
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
transform-origin: left;
|
||||||
|
animation: loading 0.8s infinite ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes loading {
|
||||||
|
0% {
|
||||||
|
transform: scaleX(0) translateX(-100%);
|
||||||
|
transform-origin: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
transform: scaleX(1) translateX(100%);
|
||||||
|
transform-origin: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:base",
|
||||||
|
":disableDependencyDashboard"
|
||||||
|
],
|
||||||
|
"labels": ["dependencies"],
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# Generated by Cargo
|
||||||
|
# will have compiled files and executables
|
||||||
|
/target/
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
[package]
|
||||||
|
name = "jellyplayer"
|
||||||
|
version = "0.0.3-dev"
|
||||||
|
description = "A Modern Jellyfin Client"
|
||||||
|
authors = ["prayag17", "JellyPlayer contributors (https://github.com/prayag17/JellyPlayer/graphs/contributors)"]
|
||||||
|
license = "GPL-3.0-only"
|
||||||
|
repository = "https://github.com/prayag17/JellyPlayer/"
|
||||||
|
default-run = "jellyplayer"
|
||||||
|
edition = "2021"
|
||||||
|
rust-version = "1.59"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[build-dependencies]
|
||||||
|
tauri-build = { version = "1.5.1", features = [] }
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
log = "^0.4.20"
|
||||||
|
serde_json = "1.0"
|
||||||
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
tauri = { version = "1.5.4", features = [ "updater", "http-all", "devtools", "process-exit", "process-relaunch", "shell-all", "window-set-fullscreen", "http-all"] }
|
||||||
|
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-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
|
||||||
|
|
||||||
|
[features]
|
||||||
|
# by default Tauri runs in production mode
|
||||||
|
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
|
||||||
|
default = [ "custom-protocol" ]
|
||||||
|
# this feature is used for production builds where `devPath` points to the filesystem
|
||||||
|
# DO NOT remove this
|
||||||
|
custom-protocol = [ "tauri/custom-protocol" ]
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fn main() {
|
||||||
|
tauri_build::build()
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 88 KiB |
@@ -0,0 +1,45 @@
|
|||||||
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||||
|
|
||||||
|
use tauri::{utils::config::AppUrl, WindowUrl};
|
||||||
|
use tauri_plugin_log::{fern::colors::ColoredLevelConfig, LogTarget};
|
||||||
|
// Tauri by default uses HTTPS, so use the localhost plugin to downgrade back to
|
||||||
|
// HTTP. However, when running tauri dev, we already have a localhost server
|
||||||
|
// provided by vite, so don't enable it
|
||||||
|
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
|
const USE_LOCALHOST_SERVER: bool = false;
|
||||||
|
|
||||||
|
#[cfg(not(debug_assertions))]
|
||||||
|
const USE_LOCALHOST_SERVER: bool = true;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let port = portpicker::pick_unused_port().expect("failed to find unused port");
|
||||||
|
|
||||||
|
let window_url = if USE_LOCALHOST_SERVER {
|
||||||
|
WindowUrl::External(format!("http://localhost:{}", port).parse().unwrap())
|
||||||
|
} else {
|
||||||
|
WindowUrl::App("index.html".into())
|
||||||
|
};
|
||||||
|
|
||||||
|
let mut context = tauri::generate_context!();
|
||||||
|
let mut builder = tauri::Builder::default();
|
||||||
|
|
||||||
|
if USE_LOCALHOST_SERVER {
|
||||||
|
// rewrite the config so the IPC is enabled on this URL
|
||||||
|
context.config_mut().build.dist_dir = AppUrl::Url(window_url.clone());
|
||||||
|
context.config_mut().build.dev_path = AppUrl::Url(window_url.clone());
|
||||||
|
builder = builder.plugin(tauri_plugin_localhost::Builder::new(port).build());
|
||||||
|
}
|
||||||
|
|
||||||
|
builder
|
||||||
|
.plugin(
|
||||||
|
tauri_plugin_log::Builder::default()
|
||||||
|
.targets([LogTarget::LogDir, LogTarget::Stdout, LogTarget::Webview])
|
||||||
|
.with_colors(ColoredLevelConfig::default())
|
||||||
|
.build(),
|
||||||
|
)
|
||||||
|
.plugin(tauri_plugin_store::Builder::default().build())
|
||||||
|
.plugin(tauri_plugin_window_state::Builder::default().build())
|
||||||
|
.run(context)
|
||||||
|
.expect("error while running JellyPlayer");
|
||||||
|
}
|
||||||
@@ -0,0 +1,119 @@
|
|||||||
|
{
|
||||||
|
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
|
||||||
|
"build": {
|
||||||
|
"beforeBuildCommand": "pnpm run build",
|
||||||
|
"beforeDevCommand": "pnpm run dev",
|
||||||
|
"devPath": "http://localhost:5173",
|
||||||
|
"distDir": "../dist"
|
||||||
|
},
|
||||||
|
"package": {
|
||||||
|
"productName": "JellyPlayer",
|
||||||
|
"version": "0.0.3-dev"
|
||||||
|
},
|
||||||
|
"tauri": {
|
||||||
|
"allowlist": {
|
||||||
|
"process": {
|
||||||
|
"all": false,
|
||||||
|
"exit": true,
|
||||||
|
"relaunch": true,
|
||||||
|
"relaunchDangerousAllowSymlinkMacos": false
|
||||||
|
},
|
||||||
|
"window": {
|
||||||
|
"setFullscreen": true
|
||||||
|
},
|
||||||
|
"shell": {
|
||||||
|
"all": true
|
||||||
|
},
|
||||||
|
"http": {
|
||||||
|
"all": true,
|
||||||
|
"request": true,
|
||||||
|
"scope": [
|
||||||
|
"http://**",
|
||||||
|
"http://*",
|
||||||
|
"https://**",
|
||||||
|
"https://*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"bundle": {
|
||||||
|
"active": true,
|
||||||
|
"category": "Video",
|
||||||
|
"copyright": "GPL-3.0-only",
|
||||||
|
"deb": {
|
||||||
|
"depends": []
|
||||||
|
},
|
||||||
|
"externalBin": [],
|
||||||
|
"icon": [
|
||||||
|
"icons/32x32.png",
|
||||||
|
"icons/128x128.png",
|
||||||
|
"icons/128x128@2x.png",
|
||||||
|
"icons/icon.icns",
|
||||||
|
"icons/icon.ico"
|
||||||
|
],
|
||||||
|
"identifier": "com.jellyplayer.prayag17",
|
||||||
|
"longDescription": "A Modern Jellyfin Client for Jellyfin",
|
||||||
|
"macOS": {
|
||||||
|
"entitlements": null,
|
||||||
|
"exceptionDomain": "",
|
||||||
|
"frameworks": [],
|
||||||
|
"providerShortName": null,
|
||||||
|
"signingIdentity": null
|
||||||
|
},
|
||||||
|
"resources": [],
|
||||||
|
"shortDescription": "A Modern Jellyfin Client for Jellyfin",
|
||||||
|
"targets": ["deb", "appimage", "nsis", "app", "dmg", "updater"],
|
||||||
|
"windows": {
|
||||||
|
"certificateThumbprint": null,
|
||||||
|
"digestAlgorithm": "sha256",
|
||||||
|
"timestampUrl": "",
|
||||||
|
"nsis": {
|
||||||
|
"sidebarImage": "../public/installerSideBarImage.bmp",
|
||||||
|
"headerImage": "../public/installerHeaderImage.bmp",
|
||||||
|
"installerIcon": "icons/icon.ico"
|
||||||
|
},
|
||||||
|
"webviewInstallMode": {
|
||||||
|
"silent": true,
|
||||||
|
"type": "offlineInstaller"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"appimage": {
|
||||||
|
"bundleMediaFramework": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"security": {
|
||||||
|
"csp": null,
|
||||||
|
"dangerousRemoteDomainIpcAccess": [
|
||||||
|
{
|
||||||
|
"domain": "**",
|
||||||
|
"windows": ["main"],
|
||||||
|
"enableTauriAPI": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"domain": "*",
|
||||||
|
"windows": ["main"],
|
||||||
|
"enableTauriAPI": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"updater": {
|
||||||
|
"active": true,
|
||||||
|
"endpoints": [
|
||||||
|
"https://raw.githack.com/prayag17/JellyPlayer/main/latest.json"
|
||||||
|
],
|
||||||
|
"dialog": false,
|
||||||
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDk5QkE0QjMzOEQyRUI5M0MKUldROHVTNk5NMHU2bVMvS3VNRWZHRzhuWE1TRlg3WHI1VHBtZjFvVy80alZ2UHc4T3BqcHVGOWwK"
|
||||||
|
},
|
||||||
|
"windows": [
|
||||||
|
{
|
||||||
|
"fullscreen": false,
|
||||||
|
"height": 600,
|
||||||
|
"width": 800,
|
||||||
|
"resizable": true,
|
||||||
|
"title": "JellyPlayer",
|
||||||
|
"visible": true,
|
||||||
|
"center": true,
|
||||||
|
"label": "main"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,630 @@
|
|||||||
|
/** @format */
|
||||||
|
|
||||||
|
import React, { useState, useEffect } from "react";
|
||||||
|
|
||||||
|
import useKonami from "react-use-konami";
|
||||||
|
|
||||||
|
import { ThemeProvider } from "@mui/material/styles";
|
||||||
|
import { SnackbarProvider } from "notistack";
|
||||||
|
import {
|
||||||
|
Routes,
|
||||||
|
Route,
|
||||||
|
useNavigate,
|
||||||
|
useLocation,
|
||||||
|
Outlet,
|
||||||
|
Navigate,
|
||||||
|
} from "react-router-dom";
|
||||||
|
import { AnimatePresence, motion } from "framer-motion";
|
||||||
|
|
||||||
|
import {
|
||||||
|
checkUpdate,
|
||||||
|
installUpdate,
|
||||||
|
onUpdaterEvent,
|
||||||
|
} from "@tauri-apps/api/updater";
|
||||||
|
import { relaunch } from "@tauri-apps/api/process";
|
||||||
|
|
||||||
|
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||||
|
|
||||||
|
// 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";
|
||||||
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
import Typography from "@mui/material/Typography";
|
||||||
|
import LoadingButton from "@mui/lab/LoadingButton";
|
||||||
|
|
||||||
|
// Routes
|
||||||
|
import { ServerSetup } from "./routes/setup/server";
|
||||||
|
import ServerList from "./routes/setup/serverList/index.jsx";
|
||||||
|
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 Markdown from "react-markdown";
|
||||||
|
|
||||||
|
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";
|
||||||
|
import "material-symbols";
|
||||||
|
import "@fontsource-variable/jetbrains-mono";
|
||||||
|
|
||||||
|
import { useBackdropStore } from "./utils/store/backdrop.js";
|
||||||
|
import { usePlaybackDataLoadStore } 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";
|
||||||
|
|
||||||
|
import { useApi } from "./utils/store/api.js";
|
||||||
|
import { useQuery } from "@tanstack/react-query";
|
||||||
|
import { CircularProgress } from "@mui/material";
|
||||||
|
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
||||||
|
import { useCentralStore } from "./utils/store/central.js";
|
||||||
|
import { useSnackbar } from "notistack";
|
||||||
|
import { ErrorBoundary } from "react-error-boundary";
|
||||||
|
import { ErrorNotice } from "./components/notices/errorNotice/errorNotice.jsx";
|
||||||
|
|
||||||
|
const anim = {
|
||||||
|
initial: {
|
||||||
|
transform: "scale(0.98)",
|
||||||
|
opacity: 0,
|
||||||
|
},
|
||||||
|
animate: {
|
||||||
|
transform: "scale(1)",
|
||||||
|
opacity: 1,
|
||||||
|
},
|
||||||
|
exit: {
|
||||||
|
transform: "sscale(1.02)",
|
||||||
|
opacity: 0,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const LoginRoute = () => {
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const [api] = useApi((state) => [state.api]);
|
||||||
|
|
||||||
|
const usersList = useQuery({
|
||||||
|
queryKey: ["public-users"],
|
||||||
|
queryFn: async () => {
|
||||||
|
const result = await getUserApi(api).getPublicUsers();
|
||||||
|
return result.data;
|
||||||
|
},
|
||||||
|
enabled: Boolean(api),
|
||||||
|
});
|
||||||
|
if (usersList.isSuccess && !usersList.isFetching) {
|
||||||
|
if (usersList.data.length > 0) {
|
||||||
|
navigate("/login/users");
|
||||||
|
} else {
|
||||||
|
navigate("/login/manual");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
position: "fixed",
|
||||||
|
top: "50%",
|
||||||
|
left: "50%",
|
||||||
|
transform: "translate(-50%, -50%)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CircularProgress size={72} thickness={1.4} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
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>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
// const unlisten = await onUpdaterEvent(({ error, status }) => {
|
||||||
|
// // This will log all updater events, including status updates and errors.
|
||||||
|
// console.log("Updater event", error, status);
|
||||||
|
// });
|
||||||
|
|
||||||
|
// // you need to call unlisten if your handler goes out of scope, for example if the component is unmounted.
|
||||||
|
// unlisten();
|
||||||
|
|
||||||
|
function App() {
|
||||||
|
const [playbackDataLoading] = usePlaybackDataLoadStore((state) => [
|
||||||
|
state.isPending,
|
||||||
|
]);
|
||||||
|
|
||||||
|
const handleRelaunch = async (event, reason) => {
|
||||||
|
if (reason && reason == "backdropClick") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
await relaunch();
|
||||||
|
};
|
||||||
|
|
||||||
|
const location = useLocation();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
window.scrollTo(0, 0);
|
||||||
|
}, [location.key]);
|
||||||
|
|
||||||
|
const [audioPlayerVisible] = useAudioPlayback((state) => [state.display]);
|
||||||
|
|
||||||
|
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",
|
||||||
|
],
|
||||||
|
});
|
||||||
|
const { enqueueSnackbar } = useSnackbar();
|
||||||
|
|
||||||
|
const [updateDialog, setUpdateDialog] = useState(false);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {[import("@tauri-apps/api/updater.js").UpdateManifest, React.Dispatch<import("@tauri-apps/api/updater.js").UpdateManifest>]}
|
||||||
|
*/
|
||||||
|
const [updateInfo, setUpdateInfo] = useState(null);
|
||||||
|
|
||||||
|
const [updateDialogButton, setUpdateDialogButton] = useState(false);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
async function checkForUpdates() {
|
||||||
|
try {
|
||||||
|
const { shouldUpdate, manifest } = await checkUpdate();
|
||||||
|
|
||||||
|
if (shouldUpdate) {
|
||||||
|
setUpdateInfo(manifest);
|
||||||
|
setUpdateDialog(true);
|
||||||
|
// You could show a dialog asking the user if they want to install the update here.
|
||||||
|
console.log(
|
||||||
|
`Update found : ${manifest?.version}, ${manifest?.date}`,
|
||||||
|
);
|
||||||
|
|
||||||
|
// Install the update. This will also restart the app on Windows!
|
||||||
|
// await installUpdate();
|
||||||
|
|
||||||
|
// On macOS and Linux you will need to restart the app manually.
|
||||||
|
// You could use this step to display another confirmation dialog.
|
||||||
|
// await relaunch();
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
checkForUpdates();
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const [initialRoute] = useCentralStore((state) => [state.initialRoute]);
|
||||||
|
|
||||||
|
const navigate = useNavigate();
|
||||||
|
if (!initialRoute) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
position: "fixed",
|
||||||
|
top: "50%",
|
||||||
|
left: "50%",
|
||||||
|
transform: "translate(-50%, -50%)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CircularProgress size={72} thickness={1.4} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
} else if (initialRoute) {
|
||||||
|
return (
|
||||||
|
<SnackbarProvider maxSnack={5}>
|
||||||
|
<ThemeProvider theme={theme}>
|
||||||
|
{playbackDataLoading && (
|
||||||
|
<LinearProgress
|
||||||
|
sx={{
|
||||||
|
position: "fixed",
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
width: "100vw",
|
||||||
|
zIndex: 100000,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
<Dialog
|
||||||
|
// open={true}
|
||||||
|
open={updateDialog}
|
||||||
|
// onClose={}
|
||||||
|
// maxWidth="md"
|
||||||
|
fullWidth
|
||||||
|
>
|
||||||
|
{Boolean(updateInfo) && (
|
||||||
|
<>
|
||||||
|
<DialogTitle>
|
||||||
|
Update Available!
|
||||||
|
<Typography
|
||||||
|
style={{
|
||||||
|
opacity: "0.5",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
v{updateInfo.version}
|
||||||
|
</Typography>
|
||||||
|
</DialogTitle>
|
||||||
|
<DialogContent dividers>
|
||||||
|
<DialogContentText>
|
||||||
|
<Markdown>
|
||||||
|
{updateInfo.body}
|
||||||
|
</Markdown>
|
||||||
|
</DialogContentText>
|
||||||
|
</DialogContent>
|
||||||
|
<DialogActions
|
||||||
|
style={{
|
||||||
|
padding: "1em",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<IconButton
|
||||||
|
disabled={updateDialogButton}
|
||||||
|
>
|
||||||
|
<SvgIcon>
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
fill="currentColor"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
>
|
||||||
|
<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>
|
||||||
|
<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"
|
||||||
|
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 */}
|
||||||
|
|
||||||
|
<div className="app-backdrop-container">
|
||||||
|
<AnimatePresence>
|
||||||
|
<motion.img
|
||||||
|
key={backdropId}
|
||||||
|
src={backdropUrl}
|
||||||
|
alt=""
|
||||||
|
className="app-backdrop"
|
||||||
|
initial={{
|
||||||
|
opacity: 0,
|
||||||
|
}}
|
||||||
|
animate={{
|
||||||
|
opacity: backdropLoading ? 0 : 0.6,
|
||||||
|
}}
|
||||||
|
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",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CssBaseline />
|
||||||
|
{/* <SideMenu /> */}
|
||||||
|
<AppBar />
|
||||||
|
<AudioPlayer key={audioPlayerVisible} />
|
||||||
|
<ErrorBoundary FallbackComponent={ErrorNotice}>
|
||||||
|
<Routes location={location}>
|
||||||
|
{/* <Route
|
||||||
|
// key={location.key}
|
||||||
|
element={<AnimationWrapper />}
|
||||||
|
> */}
|
||||||
|
<Route
|
||||||
|
path="/"
|
||||||
|
exact
|
||||||
|
element={
|
||||||
|
<Navigate to={initialRoute} />
|
||||||
|
}
|
||||||
|
// element={<></>}
|
||||||
|
/>
|
||||||
|
<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
|
||||||
|
onClick={() =>
|
||||||
|
navigate(
|
||||||
|
"/servers/list",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
>
|
||||||
|
Change Server
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
variant="outlined"
|
||||||
|
onClick={
|
||||||
|
handleRelaunch
|
||||||
|
}
|
||||||
|
>
|
||||||
|
Restart
|
||||||
|
JellyPlayer
|
||||||
|
</Button>
|
||||||
|
</DialogActions>
|
||||||
|
</Dialog>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="/login/index"
|
||||||
|
exact
|
||||||
|
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
|
||||||
|
exact
|
||||||
|
path="/library/:id"
|
||||||
|
element={<LibraryView />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
exact
|
||||||
|
path="/item/:id"
|
||||||
|
element={<ItemDetail />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
exact
|
||||||
|
path="/musicalbum/:id"
|
||||||
|
element={<MusicAlbumTitlePage />}
|
||||||
|
errorElement={<div>Error</div>}
|
||||||
|
/>
|
||||||
|
<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> */}
|
||||||
|
</Routes>
|
||||||
|
</ErrorBoundary>
|
||||||
|
</div>
|
||||||
|
<ReactQueryDevtools buttonPosition="bottom-left" />
|
||||||
|
</ThemeProvider>
|
||||||
|
</SnackbarProvider>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default App;
|
||||||
|
After Width: | Height: | Size: 834 KiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 402 KiB After Width: | Height: | Size: 889 KiB |
@@ -1,14 +1,20 @@
|
|||||||
<svg width="48" height="54" viewBox="0 0 48 54" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="1512" height="1512" viewBox="0 0 1512 1512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M39.3358 27.865C39.9999 27.4796 39.9999 26.5204 39.3358 26.135L7.50174 7.66241C6.83526 7.27567 6.00036 7.75668 6.00036 8.5274V45.4726C6.00036 46.2433 6.83526 46.7243 7.50174 46.3376L39.3358 27.865ZM45.5787 22.8226C46.3144 23.2439 46.9257 23.8521 47.3509 24.5856C47.7761 25.3192 48 26.1521 48 27C48 27.8479 47.7761 28.6808 47.3509 29.4144C46.9257 30.1479 46.3144 30.7561 45.5787 31.1774L7.39845 53.3369C4.27826 55.1495 0 53.0788 0 49.1595V4.84054C0 0.921218 4.27826 -1.14948 7.39845 0.66313L45.5787 22.8226Z" fill="url(#paint0_linear_8_15)"/>
|
<rect width="1512" height="1512" rx="756" fill="url(#paint0_radial_33_14)"/>
|
||||||
<path d="M28.6594 27.5457C29.1135 27.3026 29.1135 26.6974 28.6594 26.4543L13.0268 18.0861C12.571 17.8421 12 18.1456 12 18.6318V35.3682C12 35.8544 12.571 36.1579 13.0268 35.9139L28.6594 27.5457Z" fill="url(#paint1_linear_8_15)"/>
|
<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>
|
<defs>
|
||||||
<linearGradient id="paint0_linear_8_15" x1="0" y1="0" x2="48" y2="54" gradientUnits="userSpaceOnUse">
|
<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-color="#AA5CC3"/>
|
<stop/>
|
||||||
<stop offset="1" stop-color="#00A4DC"/>
|
<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>
|
||||||
<linearGradient id="paint1_linear_8_15" x1="0" y1="0" x2="48" y2="54" gradientUnits="userSpaceOnUse">
|
<linearGradient id="paint2_linear_33_14" x1="485.631" y1="369.315" x2="1173.63" y2="1143.82" gradientUnits="userSpaceOnUse">
|
||||||
<stop stop-color="#AA5CC3"/>
|
<stop stop-color="#FB2576"/>
|
||||||
<stop offset="1" stop-color="#00A4DC"/>
|
<stop offset="0.697961" stop-color="#150050"/>
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
</defs>
|
</defs>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||||
|
- Part of the Jellyfin project (https://jellyfin.media)
|
||||||
|
-
|
||||||
|
- All copyright belongs to the Jellyfin contributors; a full list can
|
||||||
|
- be found in the file CONTRIBUTORS.md
|
||||||
|
-
|
||||||
|
- This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
|
||||||
|
- To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.
|
||||||
|
- ***** END LICENSE BLOCK ***** -->
|
||||||
|
<svg id="banner-dark" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1536 512">
|
||||||
|
<defs>
|
||||||
|
<linearGradient id="linear-gradient" x1="110.25" y1="213.3" x2="496.14" y2="436.09" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop offset="0" stop-color="#aa5cc3"/>
|
||||||
|
<stop offset="1" stop-color="#00a4dc"/>
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
<title>banner-dark</title>
|
||||||
|
<g id="banner-dark">
|
||||||
|
<g id="banner-dark-icon">
|
||||||
|
<path id="inner-shape" d="M261.42,201.62c-20.44,0-86.24,119.29-76.2,139.43s142.48,19.92,152.4,0S281.86,201.63,261.42,201.62Z" fill="url(#linear-gradient)"/>
|
||||||
|
<path id="outer-shape" d="M261.42,23.3C199.83,23.3,1.57,382.73,31.8,443.43s429.34,60,459.24,0S323,23.3,261.42,23.3ZM411.9,390.76c-19.59,39.33-281.08,39.77-300.9,0S221.1,115.48,261.45,115.48,431.49,351.42,411.9,390.76Z" fill="url(#linear-gradient)"/>
|
||||||
|
</g>
|
||||||
|
<g id="jellyfin-light-outlines" style="isolation:isolate" transform="translate(43.8)">
|
||||||
|
<path d="M556.64,350.75a67,67,0,0,1-22.87-27.47,8.91,8.91,0,0,1-1.49-4.75,7.42,7.42,0,0,1,2.83-5.94,9.25,9.25,0,0,1,6.09-2.38c3.16,0,5.94,1.69,8.31,5.05a48.09,48.09,0,0,0,16.34,20.34,40.59,40.59,0,0,0,24,7.58q20.51,0,33.27-12.62t12.77-33.12V159a8.44,8.44,0,0,1,2.67-6.39,9.56,9.56,0,0,1,6.83-2.52,9,9,0,0,1,6.68,2.52,8.7,8.7,0,0,1,2.53,6.39v138.4a64.7,64.7,0,0,1-8.32,32.67,59,59,0,0,1-23,22.72Q608.62,361,589.9,361A57.21,57.21,0,0,1,556.64,350.75Z" fill="#fff"/>
|
||||||
|
<path d="M831.66,279.47a8.77,8.77,0,0,1-6.24,2.53H713.16q0,17.82,7.27,31.92a54.91,54.91,0,0,0,20.79,22.28q13.51,8.18,31.93,8.17a54,54,0,0,0,25.54-5.94,52.7,52.7,0,0,0,18.12-15.15,10,10,0,0,1,6.24-2.67,8.14,8.14,0,0,1,7.72,7.72,8.81,8.81,0,0,1-3,6.24,74.7,74.7,0,0,1-23.91,19A65.56,65.56,0,0,1,773.45,361q-22.87,0-40.4-9.8a69.51,69.51,0,0,1-27.32-27.48q-9.79-17.66-9.8-40.83,0-24.36,9.65-42.62t25.69-27.92a65.2,65.2,0,0,1,34.16-9.65A70,70,0,0,1,798.84,211a65.78,65.78,0,0,1,25.39,24.36q9.81,16,10.1,38A8.07,8.07,0,0,1,831.66,279.47ZM733.5,231.8Q718.8,243.68,714.64,266H815.92v-2.38A46.91,46.91,0,0,0,807,240.27a48.47,48.47,0,0,0-18.56-15.15,54,54,0,0,0-23-5.2Q748.2,219.92,733.5,231.8Z" fill="#fff"/>
|
||||||
|
<path d="M888.24,355.5a8.92,8.92,0,0,1-15.3-6.38v-202a8.91,8.91,0,1,1,17.82,0v202A8.65,8.65,0,0,1,888.24,355.5Z" fill="#fff"/>
|
||||||
|
<path d="M956.55,355.5a8.92,8.92,0,0,1-15.3-6.38v-202a8.91,8.91,0,1,1,17.82,0v202A8.65,8.65,0,0,1,956.55,355.5Z" fill="#fff"/>
|
||||||
|
<path d="M1122.86,206.11a8.7,8.7,0,0,1,2.53,6.39v131q0,23.44-9.21,40.09a61.58,61.58,0,0,1-25.54,25.25q-16.34,8.61-36.83,8.61a96.73,96.73,0,0,1-23.31-2.68,61.72,61.72,0,0,1-18-7.12q-6.24-3.87-6.24-8.62a17.94,17.94,0,0,1,.6-3,8.06,8.06,0,0,1,3-4.45,7.49,7.49,0,0,1,4.45-1.49,7.91,7.91,0,0,1,3.56.89q19,10.39,36.24,10.4,24.65,0,39.06-15.44t14.4-42.18V333.38a54.37,54.37,0,0,1-21.38,20,62.55,62.55,0,0,1-30.3,7.58q-25.83,0-39.2-15.45t-13.37-41.87V212.5a8.91,8.91,0,1,1,17.82,0V301q0,21.39,9.36,32.38t29.25,11a48,48,0,0,0,23.32-6.09,49.88,49.88,0,0,0,17.82-16,37.44,37.44,0,0,0,6.68-21.24V212.5a9,9,0,0,1,15.29-6.39Z" fill="#fff"/>
|
||||||
|
<path d="M1210.18,161.41q-5.21,6.24-5.2,17.23v30.59h33.27a8.19,8.19,0,0,1,5.79,2.38,8.26,8.26,0,0,1,0,11.88,8.22,8.22,0,0,1-5.79,2.37H1205V349.12a8.91,8.91,0,1,1-17.82,0V225.86h-21.68a7.83,7.83,0,0,1-5.94-2.52,8.21,8.21,0,0,1-2.37-5.79,8,8,0,0,1,2.37-6.09,8.33,8.33,0,0,1,5.94-2.23h21.68V178.64q0-18.7,10.84-29t29-10.24a46.1,46.1,0,0,1,15.45,2.52q7.13,2.53,7.12,8.17a8.07,8.07,0,0,1-2.37,5.94,7.37,7.37,0,0,1-5.35,2.37,18.81,18.81,0,0,1-6.53-1.48,42,42,0,0,0-10.4-1.78Q1215.37,155.18,1210.18,161.41ZM1276,180.87c-2.19-1.88-3.27-4.61-3.27-8.17v-3q0-5.34,3.41-8.17t9.36-2.82q11.88,0,11.88,11v3c0,3.56-1,6.29-3.12,8.17s-5.1,2.82-9.06,2.82S1278.14,182.75,1276,180.87Zm15.59,174.63a8.92,8.92,0,0,1-15.3-6.38V212.5a8.91,8.91,0,1,1,17.82,0V349.12A8.65,8.65,0,0,1,1291.56,355.5Z" fill="#fff"/>
|
||||||
|
<path d="M1452.53,218.88q12.92,16.2,12.92,42.92v87.32a8.4,8.4,0,0,1-2.67,6.38,8.8,8.8,0,0,1-6.24,2.53,8.64,8.64,0,0,1-8.91-8.91V262.69q0-19.31-9.65-31.33t-29.85-12a53.28,53.28,0,0,0-42.77,21.83,36.24,36.24,0,0,0-7.13,21.53v86.43a8.91,8.91,0,1,1-17.82,0V216.06a8.91,8.91,0,1,1,17.82,0V232.4q8-12.77,23-21.24A61.84,61.84,0,0,1,1412,202.7Q1439.61,202.7,1452.53,218.88Z" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 113 KiB |
@@ -1,15 +1,25 @@
|
|||||||
<svg width="1536" height="140" viewBox="0 0 1536 140" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<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="M1532.11 134.848H1435.03V134.715V134.413V134.111V133.809V133.508V133.207V132.907V132.607V132.308V132.01V131.712V131.414V131.117V130.82V130.524V130.228V129.933V129.638V129.344V129.05V128.757V128.464V128.172V127.88V127.588V127.297V127.007V126.717V126.427V126.138V125.849V125.561V125.273V124.986V124.699V124.412V124.126V123.841V123.556V123.271V122.987V122.703V122.419V122.136V121.854V121.572V121.29V121.008V120.728V120.447V120.167V119.887V119.608V119.329V119.051V118.773V118.495V118.218V117.941V117.664V117.388V117.113V116.837V116.562V116.288V116.014V115.74V115.466V115.193V114.921V114.648V114.376V114.105V113.834V113.563V113.292V113.022V112.752V112.483V112.214V111.945V111.677V111.409V111.141V110.874V110.607V110.34V110.074V109.808V109.542V109.277V109.012V108.747V108.483V108.219V107.955V107.692V107.428V107.166V106.903V106.641V106.379V106.118V105.856V105.595V105.335V105.074V104.814V104.555V104.295V104.036V103.777V103.518V103.26V103.002V102.744V102.487V102.229V101.972V101.716V101.459V101.203V100.947V100.692V100.436V100.181V99.9263V99.6717V99.4173V99.1632V98.9093V98.6557V98.4023V98.1492V97.8963V97.6436V97.3912V97.139V96.887V96.6352V96.3837V96.1324V95.8814V95.6305V95.3799V95.1295V94.8793V94.6293V94.3795V94.1299V93.8805V93.6314V93.3824V93.1336V92.8851V92.6367V92.3885V92.1405V91.8927V91.6451V91.3977V91.1504V90.9034V90.6565V90.4098V90.1633V89.9169V89.6707V89.4247V89.1788V88.9331V88.6876V88.4422V88.197V87.952V87.7071V87.4623V87.2177V86.9733V86.729V86.4848V86.2408V85.9969V85.7532V85.5096V85.2661V85.0228V84.7795V84.5365V84.2935V84.0507V83.8079V83.5654V83.3229V83.0805V82.8383V82.5961V82.3541V82.1122V81.8704V81.6286V81.387V81.1455V80.9041V80.6628V80.4215V80.1804V79.9393V79.6984V79.4575V79.2167V78.976V78.7353V78.4948V78.2543V78.0138V77.7735V77.5332V77.293V77.0528V76.8128V76.5727V76.3327V76.0928V75.853V75.6131V75.3734V75.1337V74.894V74.6544V74.4148V74.1752V73.9357V73.6962V73.4568V73.2174V72.978V72.7386V72.4993V72.26V72.0207V71.7814V71.5422V71.3029V71.0637V70.8245V70.5853V70.3461V70.1069V69.8677V69.6285V69.3893V69.1501V68.9109V68.6716V68.4324V68.1932V67.9539V67.7146V67.4753V67.236V66.9967V66.7573V66.518V66.2785V66.0391V65.7996V65.5601V65.3206V65.081V64.8414V64.6017V64.362V64.1222V63.8824V63.6425V63.4026V63.1626V62.9226V62.6825V62.4423V62.2021V61.9618V61.7215V61.4811V61.2406V61V60.7594V60.5187V60.2778V60.037V59.796V59.5549V59.3138V59.0726V58.8312V58.5898V58.3483V58.1067V57.865V57.6232V57.3812V57.1392V56.8971V56.6548V56.4125V56.17V55.9274V55.6847V55.4418V55.1989V54.9558V54.7126V54.4692V54.2258V53.9822V53.7384V53.4945V53.2505V53.0064V52.7621V52.5176V52.273V52.0283V51.7834V51.5383V51.2931V51.0477V50.8022V50.5565V50.3107V50.0646V49.8184V49.5721V49.3256V49.0788V48.832V48.5849V48.3376V48.0902V47.8426V47.5948V47.3468V47.0986V46.8503V46.6017V46.3529V46.104V45.8548V45.6054V45.3559V45.1061V44.8561V44.6059V44.3555V44.1048V43.854V43.6029V43.3516V43.1001V42.8483V42.5964V42.3442V42.0917V41.8391V41.5862V41.333V41.0796V40.826V40.5721V40.318V40.0637V39.809V39.5542V39.2991V39.0437V38.788V38.5321V38.276V38.0195V37.7628V37.5059V37.2486V36.9911V36.7334V36.4753V36.2169V35.9583V35.6994V35.4402V35.1807V34.921V34.6609V34.4006V34.1399V33.879V33.6177V33.3562V33.0943V32.8321V32.5697V32.3069V32.0438V31.7804V31.5167V31.2526V30.9883V30.7236V30.4586V30.1932V29.9276V29.6616V29.3952V29.1286V28.8616V28.5942V28.3266V28.0585V27.7902V27.5214V27.2524V26.983V26.7132V26.4431V26.1726V25.9017V25.6305V25.359V25.087V24.8147V24.542V24.269V23.9956V23.7218V23.4476V23.1731V22.8981V22.6228V22.3471V22.071V21.7945V21.5176V21.2404V20.9627V20.6846V20.4062V20.1273V19.848V19.5683V19.2882V19.0077V18.7268V18.4455V18.1638V17.8816V17.599V17.316V17.0326V16.7487V16.4644V16.1797V15.8945V15.6089V15.3229V15.0364V14.7495V14.4621V14.1743V13.8861V13.5974V13.3082V13.0186V12.7286V12.438V12.1471V11.8556V11.5637V11.2713V10.9785V10.6852V10.3914V10.0971V9.80238V9.50717V9.21147V8.91529V8.61862V8.32147V8.02382V7.72569V7.42706V7.12794V6.82832V6.5282V6.22758V5.92646V5.62483V5.3227V5.02005V4.88708H1485.19C1496.13 4.88708 1504.87 6.83915 1511.54 10.5961L1511.55 10.6021C1518.17 14.2808 1523.29 19.287 1526.95 25.636C1530.62 31.9892 1532.46 39.0199 1532.46 46.7709C1532.46 56.3313 1529.53 64.8813 1523.64 72.4869C1517.74 79.9832 1510.34 84.9291 1501.4 87.3785L1498.63 88.1375L1500.31 90.4724L1532.11 134.848ZM1445.15 8.00858H1441.26L1443.53 11.1727L1495.88 84.3124L1496.64 85.3727L1497.91 85.106C1506.96 83.2165 1514.48 78.6763 1520.41 71.5301C1526.35 64.3698 1529.34 56.0904 1529.34 46.7709C1529.34 39.3692 1527.52 32.5949 1523.86 26.4946C1520.19 20.3781 1515.02 15.6924 1508.4 12.4503C1502.38 9.44345 1494.67 8.00858 1485.38 8.00858H1445.15ZM1441.77 13.4637L1438.15 8.39828V14.6279V83.7257V85.7257H1440.15H1489.61H1493.51L1491.24 82.5615L1441.77 13.4637ZM1438.15 129.727V131.727H1440.15H1522.53H1526.43L1524.15 128.559L1496.05 89.487L1495.43 88.6214L1494.36 88.6558L1488.43 88.8472H1440.15H1438.15V90.8472V129.727Z" stroke="url(#paint0_linear_15_5)" stroke-width="4"/>
|
<path d="M184.178 464.934C154.522 464.934 126.954 458.251 101.475 444.885C75.9955 431.101 55.1108 412.305 38.8208 388.496C22.5308 364.688 12.9239 338.373 10 309.552H33.182C36.1058 334.196 44.6685 356.751 58.8701 377.218C73.0716 397.268 91.0324 413.14 112.752 424.835C134.89 436.113 158.699 441.752 184.178 441.752C212.163 441.752 237.852 434.86 261.242 421.076C284.633 407.292 303.22 388.287 317.004 364.061C330.788 339.835 337.68 312.685 337.68 282.611V42.6462H142.2V19.4642H360.236V282.611C360.236 316.862 352.299 347.98 336.427 375.965C320.972 403.533 299.67 425.253 272.52 441.125C245.788 456.998 216.34 464.934 184.178 464.934Z" fill="white"/>
|
||||||
<path d="M999.359 128.89L998.051 131.727H1001.17H1105.11H1108.23L1106.93 128.89L1054.96 16.1007L1053.14 12.1583L1051.33 16.1007L999.359 128.89ZM1053.14 4.77445L1113.15 134.848H993.137L1053.14 4.77445Z" stroke="url(#paint1_linear_15_5)" stroke-width="4"/>
|
<path d="M984.562 455.536V19.4642H1007.74V432.354H1311.62V455.536H984.562Z" fill="white"/>
|
||||||
<path d="M10.5044 115.124C6.10763 108.698 3.36151 101.665 2.2595 94.002H5.37666C6.49452 101.216 9.16209 107.865 13.3698 113.929L13.3753 113.937L13.3809 113.945C17.9226 120.357 23.6746 125.44 30.6174 129.178L30.6375 129.189L30.6578 129.199C37.747 132.811 45.3731 134.614 53.5075 134.614C62.4503 134.614 70.694 132.407 78.1971 127.985C85.692 123.569 91.6478 117.474 96.0501 109.736C100.469 101.969 102.663 93.283 102.663 83.7257V10.0086V8.00858H100.663H42.6118V4.88708H105.592V83.7257C105.592 93.9248 103.233 103.141 98.5388 111.417L98.5339 111.426C93.9594 119.586 87.6684 125.999 79.6368 130.695L79.6251 130.702C71.7329 135.388 63.0414 137.735 53.5075 137.735C44.7152 137.735 36.5706 135.758 29.0424 131.811C21.4984 127.728 15.3261 122.171 10.5044 115.124ZM159.22 131.727H244.41V134.848H154.099V4.88708H244.41V8.00858H159.22H157.22V10.0086V64.2859V66.2859H159.22H233.055V69.4074H159.22H157.22V71.4074V129.727V131.727H159.22ZM306.507 131.727H397.857V134.848H301.386V4.88708H304.507V129.727V131.727H306.507ZM448.982 131.727H540.332V134.848H443.861V4.88708H446.982V129.727V131.727H448.982ZM623.921 80.8897L573.622 4.88708H577.296L624.244 75.5933L625.917 78.1129L627.58 75.5871L674.143 4.88708H677.82L627.705 80.8925L627.374 81.3934V81.9935V134.848H624.253V81.9935V81.3916L623.921 80.8897ZM728.853 96.2365V134.848H725.731V4.88708H777.624C786.309 4.88708 794.273 6.7456 801.546 10.4441L801.558 10.4501C808.943 14.1424 814.76 19.3529 819.05 26.0952C823.316 32.7986 825.474 40.5661 825.474 49.4655C825.474 57.9508 823.266 65.7329 818.846 72.8549L818.839 72.8655L818.833 72.8763C814.537 79.9948 808.659 85.4467 801.162 89.2567L801.16 89.2576C794.701 92.5481 786.879 94.2365 777.624 94.2365H730.853H728.853V96.2365ZM728.853 89.115V91.115H730.853H777.624C786.019 91.115 793.08 89.8068 798.699 87.0685C805.839 83.6978 811.574 78.6326 815.878 71.9081C820.196 65.1613 822.353 57.6638 822.353 49.4655C822.353 41.3888 820.193 33.9567 815.878 27.2154C811.569 20.4832 805.764 15.4188 798.499 12.0512C792.884 9.31721 785.893 8.00858 777.624 8.00858H730.853H728.853V10.0086V89.115ZM876.407 131.727H967.757V134.848H871.286V4.88708H874.407V129.727V131.727H876.407ZM1244.04 4.88708H1247.72L1197.61 80.8925L1197.27 81.3934V81.9935V134.848H1194.15V81.9935V81.3916L1193.82 80.8897L1143.52 4.88708H1147.2L1194.14 75.5933L1195.82 78.1129L1197.48 75.5871L1244.04 4.88708ZM1299.02 131.727H1384.21V134.848H1293.9V4.88708H1384.21V8.00858H1299.02H1297.02V10.0086V64.2859V66.2859H1299.02H1372.86V69.4074H1299.02H1297.02V71.4074V129.727V131.727H1299.02Z" stroke="white" stroke-width="4"/>
|
<path d="M1448.35 455.536V19.4642H1471.53V432.354H1775.4V455.536H1448.35Z" fill="white"/>
|
||||||
|
<path d="M2389.08 455.536H2365.9V19.4642H2541.33C2570.57 19.4642 2597.51 25.7296 2622.15 38.2604C2647.21 50.7912 2667.05 68.5432 2681.67 91.5163C2696.29 114.489 2703.6 141.013 2703.6 171.087C2703.6 199.908 2696.08 226.431 2681.05 250.657C2666.43 274.883 2646.38 293.471 2620.9 306.419C2598.76 317.697 2572.24 323.336 2541.33 323.336H2389.08V455.536ZM2389.08 300.154H2541.33C2568.06 300.154 2589.99 295.977 2607.11 287.623C2629.25 277.181 2647 261.517 2660.37 240.633C2673.74 219.748 2680.42 196.566 2680.42 171.087C2680.42 146.025 2673.74 123.052 2660.37 102.167C2647 81.2828 2629.04 65.6193 2606.49 55.177C2589.36 46.8231 2567.64 42.6462 2541.33 42.6462H2389.08V300.154Z" fill="white"/>
|
||||||
|
<path d="M2839.71 455.536V19.4642H2862.89V432.354H3166.76V455.536H2839.71Z" fill="white"/>
|
||||||
|
<path d="M3747.86 19.4642L3902.61 252.537L4056.11 19.4642H4083.68L3913.89 276.972V455.536H3890.71V276.972L3720.29 19.4642H3747.86Z" fill="white"/>
|
||||||
|
<path d="M4215.4 19.4642H4522.41V42.6462H4238.58V219.33H4485.44V242.512H4238.58V432.354H4522.41V455.536H4215.4V19.4642Z" fill="white"/>
|
||||||
|
<path d="M2200.97 19.4642H2228.54L2058.74 276.972V455.536H2035.56V276.972L1865.14 19.4642H1892.71L2047.47 252.537L2200.97 19.4642Z" fill="white"/>
|
||||||
|
<path d="M505.113 19.4642H812.117V42.6462H528.295V219.33H775.152V242.512H528.295V432.354H812.117V455.536H505.113V19.4642Z" fill="white"/>
|
||||||
|
<mask id="mask0_501_2" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="3232" y="10" width="1778" height="446">
|
||||||
|
<path d="M4924.16 33.8748C4949.23 45.5702 4968.86 62.9044 4983.06 85.8775C4997.68 108.851 5004.99 134.33 5004.99 162.315C5004.99 194.895 4994.96 224.134 4974.91 250.031C4955.28 275.51 4924.58 295.842 4893.67 304.196L4674.8 19.4644H4840.83C4859.21 19.4644 4874.88 20.7174 4887.83 23.2236C4901.19 25.312 4913.3 28.8624 4924.16 33.8748Z" fill="black"/>
|
||||||
|
<path d="M5010 455.536L4893.67 304.196H4674.8V455.536H5010Z" fill="black"/>
|
||||||
|
<path d="M3643.7 455.536H3232.69L3438.2 10.0662L3643.7 455.536Z" fill="black"/>
|
||||||
|
</mask>
|
||||||
|
<g mask="url(#mask0_501_2)">
|
||||||
|
<rect x="3232" y="10" width="1778" height="446" fill="url(#pattern0)"/>
|
||||||
|
</g>
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id="paint0_linear_15_5" x1="1536" y1="21.5" x2="1433" y2="137" gradientUnits="userSpaceOnUse">
|
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||||
<stop stop-color="#AA5CC3"/>
|
<use xlink:href="#image0_501_2" transform="matrix(0 -0.000973278 0.000244141 0 0 2.49327)"/>
|
||||||
<stop offset="1" stop-color="#00A4DC"/>
|
</pattern>
|
||||||
</linearGradient>
|
<image id="image0_501_2" width="4096" height="4096" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEAAAABAACAYAAADyoyQXAAAAAXNSR0IArs4c6QAAIABJREFUeF7sfY2S4zjO5My+1933St+9f8TOhS2RxE8mEpTkquqe3oidLksEkEiAIC0b9N//89f/++evv/766+/Xf87/jb/hv+dFNsbqeo/5u6f7PfSC7mSv8sVgqfydOsF4Kkf9XBKOswtYkK/qmuUfYaexN4NbXIVYK1vuPrCl5FG+1Hl8aIw5xmRQHnfGxjlkc6krD30Pc2NbF8lPijfUAjaPIw6Kq7DPYu10Jfk8r5AvCY81Fn0MtUP5FjmR40ltmrgDtgh1+zWZw7s4Yw5flh+OWh4KjMjOpWu3bPA8i/nJ8u8SZsSVUQTS2K3hu1ggRsFbZePxez8Ji4jDHd9RXE0quD/bY0PtZPrs9bZuUEOV/k/qRjW5wvOfTTB/w1mmPH72/ibkZ40Hbbv8fRTMQ8r/+35HdP9/Xs2+0n/+4jILY9/KGmlk/vmrsBLvQQ2OKIw4e2I1zb/PP6yOKBn12/v53gtawOxsYH/iVaz30J3uBWe8L5YqL7vl1z885scdHid7P2P75y+reozFPiz8KZYhp8ZIFFeE4e0BiNMYi3yA+TT1YK5R7sBrhhSNIUbgjMY/CMMmLsNrh1PHU+Az+uFf+9w+3K/xL/ng/xuzv5Zfr5x1OAxnKL4xPx0G5y/HYGfLxFVyFbg5p/RkZ8Yozw/Gw8QAZK21MmYwvzb8BrkFuZn+nsjMBMbxKPJmO587uZVzyV7x+YVjaXOd1hUb95RrJJ/TPDDjCh4RfnhNxpBxY3idvqA6Rmobqg2hZhj38LpplsZqzX/fS1wdwhGdt+nvl/fCTZsDfnXN+yOsN9TPkC9oJ2H1a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bBk82Q1Wjd5zIfAIB4ELyAX7V3uE7OhhaHHR4AsDLB+xljtsFNxGASbdnocW/rafTJshexz9drIqaDOHIzvz4wgeaSmU84t3yeMB6OtMTc+Jwm8Zjzk88xOu/lL97bTDuC7Phwcb42vw/u2JzyVSty6Pgxh7pUeW0tJV62DhnJ3Ey0ktccK8Ytmuto9coxHsUU7B1A3NbotcRGSWsjR8ysqKZmYb3IA5tfmB8nFWLlNaqDj9TeIa8V2Y/uV/88a5FDxA9kAgjmSygnVzwjR/5O/RX6OBa9Zr51ZHH0+5L3Rm69Q26ayjrvW7mvIYK/91WXrK1Jzhy2PFK+xaeJu7aVJW2/HsHv5ifsiCUsr1AvTdVI5dtLS68JuBqJm9XrJ6jaP4QLzS3mI7JQj1WZ1m+s1o20dW4wdjCnvYrTizPHhdjhMe5h0jwdebf+m2dQN85IS5fPbH+PJ4a/jwlr6M6Hbuy8lXqOdrGzyrGPSc/PXj51a1mde928Y1q6uYdrlvhUzcyYug6ziNv1Rc3lbp689omdGKK1rZv/vj7UlUN9ZVvvkdh6omrWQNlnFu+vFEKWO1Yb92FvT3dPTwfpHh42eg9nb3RvVBe/nU+faOM5cPTftX1iZJeLulGsr8WP7HukLOj4cFv+yRmzVL3bV3HsPINQXCiUtfwdfg7vevgse/XTEKYRcYVsd8et2OgoMMRdW91x+5g0dhYjlLf6KZiKHc54HCc1c+r82sPfsYWZYpJ3cq+XT2Md6GHvxZlXC5ZJ3M9O7nU47eSUz6suJlZ/uLine truncated
|
||||||
<linearGradient id="paint1_linear_15_5" x1="1087.5" y1="72" x2="990" y2="137" gradientUnits="userSpaceOnUse">
|
|
||||||
<stop stop-color="#AA5CC3"/>
|
|
||||||
<stop offset="1" stop-color="#00A4DC"/>
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
</defs>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 6.1 MiB |
|
After Width: | Height: | Size: 110 KiB |
@@ -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"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tE6z2JSYSTbItdcK/1OAsRNE4E80dvAkBEk5ySyY5cFLlW9s7hrSOvm7w+ZkJ3QJ2J5x+7zUit9T7B9XYUZLWhK7K0LQXxwzAzk3WYWcYx611iDWZGljAjc3InYVot6xG/V76zFs8MYlLXKdEnK/eZyH3OMR7Rmo3EG5kX3YeXTbQPEw0SJyX98nw0hlmrEBfplQWJAbQ+wKcmetMGxdIBqV8Z2Deel6CkPNtXG5LPj+VLedpIfhpWpW9wcK62j8QB9aGGm2Rbjf05aK9V93K3eLY3KOikDEzyzRmybxFBuKCeCO1W/QL+0qZkU8enRpM5JdYxWgbt2s038Mi6RP1Yh/gqMnrzhArzdeMQ8cJ/yvVMRT5JG381Wn2Tt/KswbmH/nnEGT81K/+N/K5nHm+PW/4t5vv4p0RyLIl/Od8l/7LeebyscqL/7BZsHTDB2jqK+hkZzWVHXe8q3B3Uct+51l5yrED6nMy+OJ7N5fpa7Iv4yXn1Yl/J7VN1WB13Nd7qmszgMTj2yCOefMvrs0ceuaucJxjuICKXu5BbJGlQ9/tkdefdqZNlGWM4m5fmj4/rDCQNwnflXF2DLine truncated
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.7 MiB |
|
Before Width: | Height: | Size: 44 KiB |
@@ -1,13 +0,0 @@
|
|||||||
<svg width="1536" height="309" viewBox="0 0 1536 309" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M120.66 308.594C100.116 308.594 81.0187 303.965 63.3682 294.705C45.7177 285.157 31.2501 272.136 19.9653 255.643C8.68057 239.15 2.02547 220.921 0 200.955H16.0591C18.0845 218.027 24.0162 233.652 33.8542 247.83C43.6922 261.719 56.1344 272.715 71.1807 280.816C86.5164 288.629 103.009 292.535 120.66 292.535C140.047 292.535 157.842 287.761 174.045 278.212C190.249 268.664 203.125 255.498 212.674 238.716C222.223 221.933 226.997 203.125 226.997 182.292V16.0591H91.58V0H242.622V182.292C242.622 206.019 237.124 227.576 226.129 246.962C215.423 266.06 200.666 281.106 181.858 292.101C163.339 303.097 142.94 308.594 120.66 308.594Z" fill="white"/>
|
|
||||||
<path d="M362.95 302.084H346.891V0H468.419C488.673 0 507.336 4.34029 524.408 13.0209C541.769 21.7014 555.514 33.9989 565.641 49.9133C575.768 65.8277 580.832 84.2016 580.832 105.035C580.832 125 575.624 143.374 565.207 160.157C555.08 176.939 541.191 189.815 523.54 198.785C508.205 206.598 489.831 210.504 468.419 210.504H362.95V302.084ZM362.95 194.445H468.419C486.937 194.445 502.128 191.551 513.992 185.764C529.327 178.53 541.625 167.68 550.884 153.212C560.143 138.744 564.773 122.685 564.773 105.035C564.773 87.6738 560.143 71.7594 550.884 57.2918C541.625 42.8242 529.183 31.9734 513.558 24.7396C501.694 18.9526 486.648 16.0591 468.419 16.0591H362.95V194.445Z" fill="white"/>
|
|
||||||
<path d="M675.118 302.084V0H691.177V286.025H901.681V302.084H675.118Z" fill="white"/>
|
|
||||||
<path d="M982.946 0L1090.15 161.459L1196.49 0H1215.59L1097.96 178.386V302.084H1081.9V178.386L963.849 0H982.946Z" fill="white"/>
|
|
||||||
<path d="M1536 302.084H1303.79V0H1421.42C1446.59 0 1467.13 4.48496 1483.05 13.4549C1498.67 22.1355 1510.83 33.9989 1519.51 49.0452C1528.19 64.0916 1532.53 80.7293 1532.53 98.9585C1532.53 121.528 1525.58 141.783 1511.69 159.723C1497.81 177.373 1480.3 189.092 1459.18 194.879L1536 302.084ZM1331.14 16.0591L1449.19 180.99C1468.58 176.939 1484.64 167.246 1497.37 151.91C1510.1 136.574 1516.47 118.924 1516.47 98.9585C1516.47 83.0441 1512.56 68.5765 1504.75 55.5557C1496.94 42.5348 1485.94 32.5521 1471.76 25.6077C1459.03 19.2419 1442.39 16.0591 1421.85 16.0591H1331.14ZM1319.85 26.4757V182.292H1431.4L1319.85 26.4757ZM1319.85 286.025H1505.62L1442.25 197.917L1428.79 198.351H1319.85V286.025Z" fill="url(#paint0_linear_6_6)"/>
|
|
||||||
<defs>
|
|
||||||
<linearGradient id="paint0_linear_6_6" x1="1536" y1="-0.000138548" x2="1302.5" y2="309" gradientUnits="userSpaceOnUse">
|
|
||||||
<stop stop-color="#00A4DC"/>
|
|
||||||
<stop offset="1" stop-color="#AA5CC3"/>
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 89 KiB |
@@ -1,16 +0,0 @@
|
|||||||
const { Jellyfin } = require('@thornbill/jellyfin-sdk');
|
|
||||||
const config = require('../config');
|
|
||||||
|
|
||||||
var apiclient = new Jellyfin({
|
|
||||||
clientInfo: {
|
|
||||||
name: 'Mordern Jellyfin client in Electron',
|
|
||||||
version: "0.0.1"
|
|
||||||
},
|
|
||||||
deviceInfo: {
|
|
||||||
name: "JellyPlayer",
|
|
||||||
id: "JellyPlayerClient"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
var api = apiclient.createApi(config.get('serverUrl'));
|
|
||||||
|
|
||||||
module.exports = api;
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
const events = require('events');
|
|
||||||
const emitter = new events.EventEmitter();
|
|
||||||
module.exports = emitter;
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
|
|
||||||
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^Line truncated
|
|
||||||
@@ -0,0 +1,374 @@
|
|||||||
|
/** @format */
|
||||||
|
import React, { useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
|
import { relaunch } from "@tauri-apps/api/process";
|
||||||
|
|
||||||
|
import MuiAppBar from "@mui/material/AppBar";
|
||||||
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
import Toolbar from "@mui/material/Toolbar";
|
||||||
|
import Avatar from "@mui/material/Avatar";
|
||||||
|
import ListItemIcon from "@mui/material/ListItemIcon";
|
||||||
|
import Menu from "@mui/material/Menu";
|
||||||
|
import MenuItem from "@mui/material/MenuItem";
|
||||||
|
import useScrollTrigger from "@mui/material/useScrollTrigger";
|
||||||
|
import Typography from "@mui/material/Typography";
|
||||||
|
import Popper from "@mui/material/Popper";
|
||||||
|
|
||||||
|
import { red } from "@mui/material/colors";
|
||||||
|
|
||||||
|
import { useLocation, useNavigate, NavLink } 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 "./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 { MdiLogoutVariant } from "../icons/mdiLogoutVariant";
|
||||||
|
import { EventEmitter as event } from "../../eventEmitter";
|
||||||
|
import { useApi } from "../../utils/store/api";
|
||||||
|
|
||||||
|
import { getTypeIcon } from "../../components/utils/iconsCollection";
|
||||||
|
|
||||||
|
import logo from "../../assets/logo.svg";
|
||||||
|
|
||||||
|
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 () => {
|
||||||
|
let usr = await getUserApi(api).getCurrentUser();
|
||||||
|
return usr.data;
|
||||||
|
},
|
||||||
|
enabled: display,
|
||||||
|
networkMode: "always",
|
||||||
|
});
|
||||||
|
let libraries = useQuery({
|
||||||
|
queryKey: ["libraries"],
|
||||||
|
queryFn: async () => {
|
||||||
|
let libs = await getUserViewsApi(api).getUserViews({
|
||||||
|
userId: user.data.Id,
|
||||||
|
});
|
||||||
|
return libs.data;
|
||||||
|
},
|
||||||
|
enabled: !!user.data,
|
||||||
|
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 [librariesPopover, setLibrariesPopover] = useState(false);
|
||||||
|
const librariesText = useRef(null);
|
||||||
|
const popoverEnter = (event) => {
|
||||||
|
if (anchorEl !== event.currentTarget) {
|
||||||
|
setLibrariesPopover(event.currentTarget);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const popoverLeave = () => {
|
||||||
|
setLibrariesPopover(null);
|
||||||
|
};
|
||||||
|
|
||||||
|
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%",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className="flex flex-row flex-center"
|
||||||
|
style={{
|
||||||
|
gap: "1.2em",
|
||||||
|
justifySelf: "start",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<IconButton
|
||||||
|
onClick={() => navigate(-1)}
|
||||||
|
disabled={!backButtonVisible}
|
||||||
|
style={{
|
||||||
|
justifySelf: "left",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
arrow_back
|
||||||
|
</div>
|
||||||
|
</IconButton>
|
||||||
|
<img src={logo} className="appBar-logo" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
className="flex flex-row flex-center"
|
||||||
|
style={{
|
||||||
|
gap: "2.6em",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<NavLink to="/home" className="appBar-text">
|
||||||
|
<Typography
|
||||||
|
variant="subtitle1"
|
||||||
|
fontWeight={600}
|
||||||
|
>
|
||||||
|
Home
|
||||||
|
</Typography>
|
||||||
|
</NavLink>
|
||||||
|
<Typography
|
||||||
|
ref={librariesText}
|
||||||
|
variant="subtitle1"
|
||||||
|
fontWeight={600}
|
||||||
|
onMouseEnter={popoverEnter}
|
||||||
|
onFocus={popoverEnter}
|
||||||
|
tabIndex={0}
|
||||||
|
className={
|
||||||
|
isBrowsingLibrary
|
||||||
|
? "appBar-text active"
|
||||||
|
: "appBar-text"
|
||||||
|
}
|
||||||
|
// onMouseLeave={popoverLeave}
|
||||||
|
>
|
||||||
|
Libraries
|
||||||
|
</Typography>
|
||||||
|
|
||||||
|
<Menu
|
||||||
|
open={Boolean(librariesPopover)}
|
||||||
|
anchorEl={librariesPopover}
|
||||||
|
anchorOrigin={{
|
||||||
|
horizontal: "center",
|
||||||
|
vertical: "bottom",
|
||||||
|
}}
|
||||||
|
transformOrigin={{
|
||||||
|
horizontal: "center",
|
||||||
|
vertical: "top",
|
||||||
|
}}
|
||||||
|
sx={{
|
||||||
|
mt: 3,
|
||||||
|
maxHeight: "72em",
|
||||||
|
}}
|
||||||
|
onClose={popoverLeave}
|
||||||
|
MenuListProps={{
|
||||||
|
onMouseLeave: popoverLeave,
|
||||||
|
}}
|
||||||
|
disableScrollLock
|
||||||
|
hideBackdrop
|
||||||
|
>
|
||||||
|
{libraries.isPending
|
||||||
|
? "loading..."
|
||||||
|
: libraries.data.Items.map(
|
||||||
|
(library) => (
|
||||||
|
<MenuItem
|
||||||
|
component={NavLink}
|
||||||
|
to={
|
||||||
|
"/library/" +
|
||||||
|
library.Id
|
||||||
|
}
|
||||||
|
key={library.Id}
|
||||||
|
// onClick={() =>
|
||||||
|
// navigate(
|
||||||
|
// `/library/${library.Id}`,
|
||||||
|
// )
|
||||||
|
// }
|
||||||
|
tabIndex={0}
|
||||||
|
className="appBar-library"
|
||||||
|
>
|
||||||
|
<ListItemIcon>
|
||||||
|
{getTypeIcon(
|
||||||
|
library.CollectionType,
|
||||||
|
)}
|
||||||
|
</ListItemIcon>
|
||||||
|
{library.Name}
|
||||||
|
</MenuItem>
|
||||||
|
),
|
||||||
|
)}
|
||||||
|
</Menu>
|
||||||
|
</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}
|
||||||
|
>
|
||||||
|
<MdiAccount className="appBar-avatar-icon" />
|
||||||
|
</Avatar>
|
||||||
|
) : (
|
||||||
|
<Avatar
|
||||||
|
className="appBar-avatar"
|
||||||
|
src={
|
||||||
|
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: 2 }}
|
||||||
|
disableScrollLock
|
||||||
|
>
|
||||||
|
<MenuItem
|
||||||
|
onClick={() => navigate("/settings")}
|
||||||
|
disabled
|
||||||
|
>
|
||||||
|
<ListItemIcon>
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
settings
|
||||||
|
</div>
|
||||||
|
</ListItemIcon>
|
||||||
|
Settings
|
||||||
|
</MenuItem>
|
||||||
|
<MenuItem onClick={() => navigate("/about")}>
|
||||||
|
<ListItemIcon>
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
info
|
||||||
|
</div>
|
||||||
|
</ListItemIcon>
|
||||||
|
About
|
||||||
|
</MenuItem>
|
||||||
|
<MenuItem onClick={handleLogout}>
|
||||||
|
<ListItemIcon>
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
logout
|
||||||
|
</div>
|
||||||
|
</ListItemIcon>
|
||||||
|
Logout
|
||||||
|
</MenuItem>
|
||||||
|
<MenuItem
|
||||||
|
onClick={async () => {
|
||||||
|
navigate("/servers/list");
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<ListItemIcon>
|
||||||
|
<div className="material-symbols-rounded appBar-icon">
|
||||||
|
dns
|
||||||
|
</div>
|
||||||
|
</ListItemIcon>
|
||||||
|
Select Server
|
||||||
|
</MenuItem>
|
||||||
|
</Menu>
|
||||||
|
</div>
|
||||||
|
</Toolbar>
|
||||||
|
</MuiAppBar>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
/** @format */
|
||||||
|
|
||||||
|
.appBar {
|
||||||
|
transition: background-color $transition-time-fast,
|
||||||
|
backdrop-filter $transition-time-fast,
|
||||||
|
box-shadow $transition-time-default !important;
|
||||||
|
&.backdropVisible {
|
||||||
|
background-color: rgb(0 0 0 / 0.6) !important;
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
}
|
||||||
|
&-avatar {
|
||||||
|
background: $clr-gradient-dark;
|
||||||
|
&-icon {
|
||||||
|
fill: url(#clr-gradient-default) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&-logo {
|
||||||
|
height: 1.8em !important;
|
||||||
|
}
|
||||||
|
&-text {
|
||||||
|
cursor: default;
|
||||||
|
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: -2.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.5);
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.active {
|
||||||
|
opacity: 1;
|
||||||
|
color: $clr-accent-default;
|
||||||
|
&::after {
|
||||||
|
transform: scaleX(0.75);
|
||||||
|
opacity: 1;
|
||||||
|
background: $clr-accent-default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&-logo {
|
||||||
|
width: 20em;
|
||||||
|
object-fit: contain;
|
||||||
|
object-position: center;
|
||||||
|
}
|
||||||
|
&-library {
|
||||||
|
transition: all 0.2s;
|
||||||
|
&.active {
|
||||||
|
background: $clr-gradient-default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.appLoading {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
/** @format */
|
||||||
|
|
||||||
|
import AppBar from "@mui/material/AppBar";
|
||||||
|
import Toolbar from "@mui/material/Toolbar";
|
||||||
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
import { MdiArrowLeft } from "../icons/mdiArrowLeft";
|
||||||
|
import { useNavigate } from "react-router-dom";
|
||||||
|
|
||||||
|
export const AppBarBackOnly = () => {
|
||||||
|
const navigate = useNavigate();
|
||||||
|
|
||||||
|
const handleBack = () => {
|
||||||
|
navigate(-1);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<AppBar elevation={0} color="transparent" position="fixed">
|
||||||
|
<Toolbar>
|
||||||
|
<IconButton
|
||||||
|
size="large"
|
||||||
|
edge="start"
|
||||||
|
color="white"
|
||||||
|
aria-label="back"
|
||||||
|
onClick={handleBack}
|
||||||
|
sx={{ mr: 2 }}
|
||||||
|
>
|
||||||
|
<MdiArrowLeft />
|
||||||
|
</IconButton>
|
||||||
|
</Toolbar>
|
||||||
|
</AppBar>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
/** @format */
|
||||||
|
import React from "react";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
|
import Box from "@mui/material/Box";
|
||||||
|
|
||||||
|
import { MdiAccount } from "../icons/mdiAccount";
|
||||||
|
|
||||||
|
import "./avatar.module.scss";
|
||||||
|
|
||||||
|
import { useApi } from "../../utils/store/api";
|
||||||
|
|
||||||
|
export const AvatarImage = ({ userId }) => {
|
||||||
|
const [api] = useApi((state) => [state.api]);
|
||||||
|
return (
|
||||||
|
<Box className="avatar-image-container">
|
||||||
|
<div
|
||||||
|
className="avatar-image"
|
||||||
|
style={{
|
||||||
|
backgroundImage:
|
||||||
|
"url('" +
|
||||||
|
api.basePath +
|
||||||
|
"/Users/" +
|
||||||
|
userId +
|
||||||
|
"/Images/Primary')",
|
||||||
|
}}
|
||||||
|
></div>
|
||||||
|
|
||||||
|
<div className="avatar-image-icon-container">
|
||||||
|
<MdiAccount className="avatar-image-icon" />
|
||||||
|
</div>
|
||||||
|
</Box>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const AvatarSideMenu = ({ userName }) => {
|
||||||
|
return <div></div>;
|
||||||
|
};
|
||||||
|
|
||||||
|
AvatarImage.propType = {
|
||||||
|
userId: PropTypes.string.isRequired,
|
||||||
|
userImageTags: PropTypes.any,
|
||||||
|
};
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
/** @format */
|
||||||
|
|
||||||
|
.avatar-image {
|
||||||
|
aspect-ratio: 1;
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
|
||||||
|
&-container {
|
||||||
|
width: fit-content;
|
||||||
|
aspect-ratio: 1;
|
||||||
|
position: relative;
|
||||||
|
border-radius: 100vh;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
&-icon {
|
||||||
|
height: 100%;
|
||||||
|
padding: 0.2em;
|
||||||
|
background: $clr-gradient-dark;
|
||||||
|
fill: url(#clr-gradient-default) !important;
|
||||||
|
font-size: 7em !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,130 @@
|
|||||||
|
/** @format */
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
|
||||||
|
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 { useApi } from "../../utils/store/api";
|
||||||
|
|
||||||
|
const LikeButton = ({
|
||||||
|
itemId,
|
||||||
|
isFavorite,
|
||||||
|
queryKey,
|
||||||
|
userId,
|
||||||
|
itemName,
|
||||||
|
color = "white",
|
||||||
|
}) => {
|
||||||
|
const [api] = useApi((state) => [state.api]);
|
||||||
|
const queryClient = useQueryClient();
|
||||||
|
const { enqueueSnackbar } = useSnackbar();
|
||||||
|
|
||||||
|
const handleLiking = async () => {
|
||||||
|
if (isFavorite) {
|
||||||
|
await getUserLibraryApi(api).unmarkFavoriteItem({
|
||||||
|
userId: userId,
|
||||||
|
itemId: itemId,
|
||||||
|
});
|
||||||
|
} else if (!isFavorite) {
|
||||||
|
await getUserLibraryApi(api).markFavoriteItem({
|
||||||
|
userId: userId,
|
||||||
|
itemId: itemId,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const mutation = useMutation({
|
||||||
|
mutationFn: handleLiking,
|
||||||
|
onError: (error) => {
|
||||||
|
enqueueSnackbar(`${error}`, {
|
||||||
|
variant: "error",
|
||||||
|
});
|
||||||
|
enqueueSnackbar(
|
||||||
|
`An error occured while updating "${itemName}"`,
|
||||||
|
{
|
||||||
|
variant: "error",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
console.error(error);
|
||||||
|
},
|
||||||
|
onSettled: async () => {
|
||||||
|
return await queryClient.invalidateQueries({
|
||||||
|
queryKey: queryKey,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
mutationKey: ["likeButton", itemId],
|
||||||
|
});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
transition: "opacity 250ms",
|
||||||
|
position: "relative",
|
||||||
|
display: "inline-flex",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CircularProgress
|
||||||
|
style={{
|
||||||
|
opacity: mutation.isPending ? 1 : 0,
|
||||||
|
transition: "opacity 200ms",
|
||||||
|
}}
|
||||||
|
thickness={2}
|
||||||
|
/>
|
||||||
|
<IconButton
|
||||||
|
onClick={(e) => {
|
||||||
|
if (!mutation.isPending) {
|
||||||
|
e.stopPropagation();
|
||||||
|
mutation.mutate();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
style={{
|
||||||
|
position: "absolute",
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
bottom: 0,
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
|
opacity: mutation.isPending ? 0.5 : 1,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className="material-symbols-rounded"
|
||||||
|
style={
|
||||||
|
isFavorite
|
||||||
|
? {
|
||||||
|
fontVariationSettings:
|
||||||
|
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
|
||||||
|
color: pink[700],
|
||||||
|
}
|
||||||
|
: {
|
||||||
|
fontVariationSettings:
|
||||||
|
'"FILL" 0, "wght" 300, "GRAD" 25, "opsz" 40',
|
||||||
|
color: "white",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
>
|
||||||
|
favorite
|
||||||
|
</div>
|
||||||
|
</IconButton>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
LikeButton.propTypes = {
|
||||||
|
itemId: PropTypes.string.isRequired,
|
||||||
|
isFavorite: PropTypes.bool.isRequired,
|
||||||
|
queryKey: PropTypes.any.isRequired,
|
||||||
|
userId: PropTypes.string.isRequired,
|
||||||
|
itemName: PropTypes.string,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default LikeButton;
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
/** @format */
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
import CircularProgress from "@mui/material/CircularProgress";
|
||||||
|
|
||||||
|
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
||||||
|
import { green } from "@mui/material/colors";
|
||||||
|
|
||||||
|
import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api/playstate-api";
|
||||||
|
import { MdiCheck } from "../icons/mdiCheck";
|
||||||
|
import { useSnackbar } from "notistack";
|
||||||
|
import { useApi } from "../../utils/store/api";
|
||||||
|
|
||||||
|
const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => {
|
||||||
|
const [api] = useApi((state) => [state.api]);
|
||||||
|
|
||||||
|
const queryClient = useQueryClient();
|
||||||
|
const { enqueueSnackbar } = useSnackbar();
|
||||||
|
|
||||||
|
const handleMarking = async () => {
|
||||||
|
if (!isPlayed) {
|
||||||
|
await getPlaystateApi(api).markPlayedItem({
|
||||||
|
userId: userId,
|
||||||
|
itemId: itemId,
|
||||||
|
});
|
||||||
|
} else if (isPlayed) {
|
||||||
|
await getPlaystateApi(api).markUnplayedItem({
|
||||||
|
userId: userId,
|
||||||
|
itemId: itemId,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const mutation = useMutation({
|
||||||
|
mutationFn: handleMarking,
|
||||||
|
onError: (error, a, context) => {
|
||||||
|
enqueueSnackbar(`${error}`, {
|
||||||
|
variant: "error",
|
||||||
|
});
|
||||||
|
enqueueSnackbar(
|
||||||
|
`An error occured while updating "${itemName}"`,
|
||||||
|
{
|
||||||
|
variant: "error",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
console.error(error);
|
||||||
|
},
|
||||||
|
onSettled: async () => {
|
||||||
|
return await queryClient.invalidateQueries({
|
||||||
|
queryKey: queryKey,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
mutationKey: ["markPlayedButton", itemId],
|
||||||
|
});
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
transition: "opacity 250ms",
|
||||||
|
position: "relative",
|
||||||
|
display: "inline-flex",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CircularProgress
|
||||||
|
style={{
|
||||||
|
opacity: mutation.isPending ? 1 : 0,
|
||||||
|
transition: "opacity 200ms",
|
||||||
|
}}
|
||||||
|
thickness={2}
|
||||||
|
/>
|
||||||
|
<IconButton
|
||||||
|
onClick={(e) => {
|
||||||
|
if (!mutation.isPending) {
|
||||||
|
e.stopPropagation();
|
||||||
|
mutation.mutate();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
style={{
|
||||||
|
position: "absolute",
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
bottom: 0,
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
|
opacity: mutation.isPending ? 0.5 : 1,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className="material-symbols-rounded"
|
||||||
|
style={{
|
||||||
|
color: isPlayed ? green[400] : "white",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
done
|
||||||
|
</div>
|
||||||
|
</IconButton>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
MarkPlayedButton.propTypes = {
|
||||||
|
itemId: PropTypes.string.isRequired,
|
||||||
|
isPlayed: PropTypes.bool.isRequired,
|
||||||
|
queryKey: PropTypes.any.isRequired,
|
||||||
|
userId: PropTypes.string.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default MarkPlayedButton;
|
||||||
@@ -0,0 +1,407 @@
|
|||||||
|
/** @format */
|
||||||
|
import React from "react";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
|
import Button from "@mui/material/Button";
|
||||||
|
import Fab from "@mui/material/Fab";
|
||||||
|
import LinearProgress from "@mui/material/LinearProgress";
|
||||||
|
import Typography from "@mui/material/Typography";
|
||||||
|
|
||||||
|
import {
|
||||||
|
setItem,
|
||||||
|
usePlaybackDataLoadStore,
|
||||||
|
usePlaybackStore,
|
||||||
|
} from "../../utils/store/playback";
|
||||||
|
import { useNavigate } from "react-router-dom";
|
||||||
|
import { useMutation } from "@tanstack/react-query";
|
||||||
|
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";
|
||||||
|
import { useApi } from "../../utils/store/api";
|
||||||
|
|
||||||
|
const PlayButton = ({
|
||||||
|
itemId,
|
||||||
|
itemUserData,
|
||||||
|
userId,
|
||||||
|
itemType,
|
||||||
|
currentAudioTrack,
|
||||||
|
currentSubTrack,
|
||||||
|
currentVideoTrack,
|
||||||
|
className,
|
||||||
|
sx,
|
||||||
|
iconProps,
|
||||||
|
buttonProps,
|
||||||
|
iconOnly,
|
||||||
|
audio = false,
|
||||||
|
size = "large",
|
||||||
|
playlistItem,
|
||||||
|
playlistItemId = "",
|
||||||
|
trackIndex,
|
||||||
|
}) => {
|
||||||
|
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 item = useMutation({
|
||||||
|
mutationKey: ["playButton", itemId, userId],
|
||||||
|
mutationFn: async () => {
|
||||||
|
setPlaybackDataLoading(true);
|
||||||
|
let result;
|
||||||
|
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,
|
||||||
|
startIndex: 0,
|
||||||
|
fields: [
|
||||||
|
ItemFields.MediaSources,
|
||||||
|
ItemFields.MediaStreams,
|
||||||
|
],
|
||||||
|
enableUserData: true,
|
||||||
|
});
|
||||||
|
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;
|
||||||
|
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: (item) => {
|
||||||
|
console.log(item.Items[0].MediaSources);
|
||||||
|
if (trackIndex) {
|
||||||
|
setPlaylistItemId(playlistItemId);
|
||||||
|
setCurrentTrack(trackIndex);
|
||||||
|
setAudioTracks(item.Items);
|
||||||
|
setAudioUrl(
|
||||||
|
`${api.basePath}/Audio/${item.Items[trackIndex].Id}/universal?deviceId=${api.deviceInfo.id}&userId=${userId}&api_key=${api.accessToken}`,
|
||||||
|
);
|
||||||
|
setAudioItem(item.Items[trackIndex]);
|
||||||
|
setAudioDisplay(true);
|
||||||
|
} else if (audio) {
|
||||||
|
setAudioItem(item.Items[0]);
|
||||||
|
setAudioTracks(item.Items);
|
||||||
|
setAudioUrl(
|
||||||
|
`${api.basePath}/Audio/${item.Items[0].Id}/universal?deviceId=${api.deviceInfo.id}&userId=${userId}&api_key=${api.accessToken}`,
|
||||||
|
);
|
||||||
|
setAudioDisplay(true);
|
||||||
|
} else {
|
||||||
|
setUserId(userId);
|
||||||
|
setItemId(item.Items[0].Id);
|
||||||
|
setDuration(item.Items[0].RunTimeTicks);
|
||||||
|
|
||||||
|
if (item.Items[0].Type == BaseItemKind.Episode) {
|
||||||
|
setSeriesId(item.Items[0].SeriesId);
|
||||||
|
// setEpisodeIndex(item.Ite)
|
||||||
|
}
|
||||||
|
|
||||||
|
setMediaContainer(item.Items[0].MediaSources[0].Container);
|
||||||
|
// Set all required stream index
|
||||||
|
setAudioStreamIndex(currentAudioTrack);
|
||||||
|
setVideoStreamIndex(currentVideoTrack);
|
||||||
|
setSubtitleStreamIndex(currentSubTrack);
|
||||||
|
|
||||||
|
setMediaSourceId(item.Items[0].Id);
|
||||||
|
setItem(item.Items[0]);
|
||||||
|
|
||||||
|
switch (item.Items[0].Type) {
|
||||||
|
case BaseItemKind.Movie:
|
||||||
|
if (item.Items[0].ImageBlurHashes.Logo) {
|
||||||
|
setItemName(
|
||||||
|
<div className="video-osd-name">
|
||||||
|
<img
|
||||||
|
src={`${api.basePath}/Items/${item.Items[0].Id}/Images/Logo`}
|
||||||
|
className="video-osd-name-logo"
|
||||||
|
onLoad={(e) => {
|
||||||
|
e.target.style.opacity = 1;
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
setItemName(
|
||||||
|
<div className="video-osd-name">
|
||||||
|
<Typography variant="h6">
|
||||||
|
{item.Items[0].Name}
|
||||||
|
</Typography>
|
||||||
|
</div>,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case BaseItemKind.Episode:
|
||||||
|
if (item.Items[0].ImageBlurHashes.Logo) {
|
||||||
|
setItemName(
|
||||||
|
<div className="video-osd-name">
|
||||||
|
<img
|
||||||
|
src={`${api.basePath}/Items/${item.Items[0].SeriesId}/Images/Logo`}
|
||||||
|
className="video-osd-name-logo"
|
||||||
|
onLoad={(e) => {
|
||||||
|
e.target.style.opacity = 1;
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<Typography variant="subtitle1">
|
||||||
|
S
|
||||||
|
{
|
||||||
|
item.Items[0]
|
||||||
|
.ParentIndexNumber
|
||||||
|
}
|
||||||
|
:E
|
||||||
|
{
|
||||||
|
item.Items[0].IndexNumber
|
||||||
|
}{" "}
|
||||||
|
{item.Items[0].Name}
|
||||||
|
</Typography>
|
||||||
|
</div>,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
setItemName(
|
||||||
|
<div className="video-osd-name">
|
||||||
|
<Typography variant="h6">
|
||||||
|
{item.Items[0].SeriesName}
|
||||||
|
</Typography>
|
||||||
|
<Typography variant="subtitle1">
|
||||||
|
S
|
||||||
|
{
|
||||||
|
item.Items[0]
|
||||||
|
.ParentIndexNumber
|
||||||
|
}
|
||||||
|
:E
|
||||||
|
{
|
||||||
|
item.Items[0].IndexNumber
|
||||||
|
}{" "}
|
||||||
|
{item.Items[0].Name}
|
||||||
|
</Typography>
|
||||||
|
</div>,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
setItemName(
|
||||||
|
<div className="video-osd-name">
|
||||||
|
<Typography variant="h6">
|
||||||
|
{item.Items[0].Name}
|
||||||
|
</Typography>
|
||||||
|
</div>,
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
setPosition(item.Items[0].UserData?.PlaybackPositionTicks);
|
||||||
|
|
||||||
|
setUrl(
|
||||||
|
`${api.basePath}/Videos/${item.Items[0].Id}/stream.
|
||||||
|
${item.Items[0].MediaSources[0].Container}
|
||||||
|
?Static=true&mediaSourceId=${item.Items[0].Id}&deviceId=${api.deviceInfo.id}&api_key=${api.accessToken}&Tag=${item.Items[0].MediaSources[0].ETag}&videoStreamIndex=${currentVideoTrack}&audioStreamIndex=${currentAudioTrack}`,
|
||||||
|
);
|
||||||
|
|
||||||
|
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}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className="material-symbols-rounded em-4"
|
||||||
|
style={{
|
||||||
|
fontSize: "3em",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
play_arrow
|
||||||
|
</div>
|
||||||
|
</Fab>
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
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,
|
||||||
|
};
|
||||||
@@ -0,0 +1,123 @@
|
|||||||
|
/** @format */
|
||||||
|
import React from "react";
|
||||||
|
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 { Blurhash } from "react-blurhash";
|
||||||
|
|
||||||
|
import { MdiAccountTie } from "../icons/mdiAccountTie";
|
||||||
|
|
||||||
|
import "./card.module.scss";
|
||||||
|
import { useApi } from "../../utils/store/api";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} Props
|
||||||
|
* @property {import("@jellyfin/sdk/lib/generated-client/models").BaseItemDto} item
|
||||||
|
* @property {string} cardTitle
|
||||||
|
* @property {string | number} cardCaption
|
||||||
|
* @property {string} imageBlurhash
|
||||||
|
* @property {string} seriesId
|
||||||
|
* @property {boolean} hideText
|
||||||
|
* @property {() => {}} onClick
|
||||||
|
* @property {boolean} disablePadding
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description Hero section for item pages
|
||||||
|
* @param {Props}
|
||||||
|
* @returns {React.Component}
|
||||||
|
*/
|
||||||
|
|
||||||
|
export const ActorCard = ({
|
||||||
|
item,
|
||||||
|
cardTitle,
|
||||||
|
cardCaption,
|
||||||
|
imageBlurhash,
|
||||||
|
seriesId,
|
||||||
|
hideText,
|
||||||
|
onClick,
|
||||||
|
disablePadding,
|
||||||
|
}) => {
|
||||||
|
const [api] = useApi((state) => [state.api]);
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const defaultOnClick = () => {
|
||||||
|
navigate(`/person/${item.Id}`);
|
||||||
|
};
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className="card card-actor"
|
||||||
|
elevation={0}
|
||||||
|
onClick={onClick ? onClick : defaultOnClick}
|
||||||
|
>
|
||||||
|
<div className="card-box">
|
||||||
|
<div
|
||||||
|
className="card-image-container"
|
||||||
|
style={{
|
||||||
|
aspectRatio: 1,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{!!imageBlurhash && (
|
||||||
|
<Blurhash
|
||||||
|
hash={imageBlurhash}
|
||||||
|
width={128}
|
||||||
|
height={128}
|
||||||
|
resolutionX={24}
|
||||||
|
resolutionY={24}
|
||||||
|
className="card-image-blurhash"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
<div className="card-image-icon-container">
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
person
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<img
|
||||||
|
src={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>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -0,0 +1,260 @@
|
|||||||
|
/** @format */
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
import { useNavigate } from "react-router-dom";
|
||||||
|
|
||||||
|
import Typography from "@mui/material/Typography";
|
||||||
|
import LinearProgress from "@mui/material/LinearProgress";
|
||||||
|
|
||||||
|
import { getTypeIcon } from "../utils/iconsCollection";
|
||||||
|
import "./card.module.scss";
|
||||||
|
|
||||||
|
import LikeButton from "../buttons/likeButton";
|
||||||
|
import MarkPlayedButton from "../buttons/markPlayedButton";
|
||||||
|
import PlayButton from "../buttons/playButton";
|
||||||
|
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
|
||||||
|
import { useApi } from "../../utils/store/api";
|
||||||
|
import ErrorBoundary from "../errorBoundary";
|
||||||
|
|
||||||
|
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",
|
||||||
|
cardType,
|
||||||
|
queryKey,
|
||||||
|
userId,
|
||||||
|
seriesId,
|
||||||
|
hideText,
|
||||||
|
onClick,
|
||||||
|
disableOverlay = false,
|
||||||
|
overrideIcon,
|
||||||
|
}) => {
|
||||||
|
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}
|
||||||
|
tabIndex={0}
|
||||||
|
onClick={onClick ? onClick : defaultOnClick}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className="card-image-container"
|
||||||
|
style={{
|
||||||
|
aspectRatio: cardImageAspectRatios[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
|
||||||
|
src={
|
||||||
|
overrideIcon == "User"
|
||||||
|
? `${api.basePath}/Users/${item.Id}/Images/Primary`
|
||||||
|
: api.getItemImageUrl(
|
||||||
|
seriesId
|
||||||
|
? item.SeriesId
|
||||||
|
: item.AlbumId
|
||||||
|
? item.AlbumId
|
||||||
|
: item.Id,
|
||||||
|
imageType,
|
||||||
|
{
|
||||||
|
quality: 90,
|
||||||
|
fillHeight: 226,
|
||||||
|
fillWidth: Math.floor(
|
||||||
|
226 /
|
||||||
|
cardImageAspectRatios[
|
||||||
|
cardType
|
||||||
|
],
|
||||||
|
),
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
style={{
|
||||||
|
height: "100%",
|
||||||
|
width: "100%",
|
||||||
|
opacity: 0,
|
||||||
|
}}
|
||||||
|
loading="lazy"
|
||||||
|
onLoad={(e) => (e.target.style.opacity = 1)}
|
||||||
|
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 && (
|
||||||
|
<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>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -0,0 +1,135 @@
|
|||||||
|
/** @format */
|
||||||
|
.card {
|
||||||
|
height: 100%;
|
||||||
|
overflow: visible !important;
|
||||||
|
align-items: flex-start;
|
||||||
|
background: transparent !important;
|
||||||
|
padding: 0.4em;
|
||||||
|
&-box {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
overflow: visible;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
&-image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
transition: all $transition-time-fast;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 1;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
&-container {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 4px 8px rgb(0 0 0 / 0.2);
|
||||||
|
overflow: hidden;
|
||||||
|
height: auto;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
&-icon {
|
||||||
|
font-size: 5.4em !important;
|
||||||
|
fill: url(#clr-gradient-default) !important;
|
||||||
|
&-container {
|
||||||
|
background: rgb(255 255 255 / 0.1);
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 0;
|
||||||
|
top: 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 {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 1;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100% !important;
|
||||||
|
height: 100% !important;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&-overlay {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
z-index: 10;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity $transition-time-default;
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-end;
|
||||||
|
justify-content: flex-end;
|
||||||
|
padding: 0.5em;
|
||||||
|
background: rgb(0 0 0 / 0.4);
|
||||||
|
}
|
||||||
|
&:hover,
|
||||||
|
&:focus,
|
||||||
|
&:focus-within {
|
||||||
|
.card-overlay {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
&-play-button {
|
||||||
|
position: absolute !important;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
&-indicator {
|
||||||
|
position: absolute;
|
||||||
|
top: 0.4em;
|
||||||
|
right: 0.4em;
|
||||||
|
z-index: 2;
|
||||||
|
padding: 0.2em 0.75em;
|
||||||
|
background: rgb(20 20 20 / 0.5);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
backdrop-filter: blur(5px);
|
||||||
|
transition: opacity 250ms;
|
||||||
|
border-radius: 100px;
|
||||||
|
box-shadow: 0 0 5px rgb(0 0 0 / 0.2);
|
||||||
|
}
|
||||||
|
&-episode {
|
||||||
|
.card-box {
|
||||||
|
height: unset !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-actor {
|
||||||
|
transition: all $transition-time-default;
|
||||||
|
border-radius: 10px;
|
||||||
|
// padding: 1em !important;
|
||||||
|
&:hover {
|
||||||
|
background: rgb(255 255 255 / 0.1) !important;
|
||||||
|
}
|
||||||
|
.card-image-container {
|
||||||
|
border-radius: 100% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,209 @@
|
|||||||
|
/** @format */
|
||||||
|
import React from "react";
|
||||||
|
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 "./card.module.scss";
|
||||||
|
import { MdiCheck } from "../icons/mdiCheck";
|
||||||
|
|
||||||
|
import LikeButton from "../buttons/likeButton";
|
||||||
|
import MarkPlayedButton from "../buttons/markPlayedButton";
|
||||||
|
import PlayButton from "../buttons/playButton";
|
||||||
|
import { MdiTelevisionClassic } from "../icons/mdiTelevisionClassic";
|
||||||
|
import { getRuntimeCompact } from "../../utils/date/time";
|
||||||
|
import { useApi } from "../../utils/store/api";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} Props
|
||||||
|
* @property {import("@jellyfin/sdk/lib/generated-client/models").BaseItemDto} item
|
||||||
|
* @property {string} cardTitle
|
||||||
|
* @property {string | number} cardCaption
|
||||||
|
* @property {string} imageBlurhash
|
||||||
|
* @property {Array} queryKey
|
||||||
|
* @property {string} userId
|
||||||
|
* @property {() => {}} onClick
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description Hero section for item pages
|
||||||
|
* @param {Props}
|
||||||
|
* @returns {React.Component}
|
||||||
|
*/
|
||||||
|
|
||||||
|
export const EpisodeCard = ({
|
||||||
|
item,
|
||||||
|
cardTitle,
|
||||||
|
cardCaption,
|
||||||
|
imageBlurhash,
|
||||||
|
queryKey,
|
||||||
|
userId,
|
||||||
|
onClick,
|
||||||
|
}) => {
|
||||||
|
const [api] = useApi((state) => [state.api]);
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const defaultOnClick = () => {
|
||||||
|
navigate(`/episode/${item.Id}`);
|
||||||
|
};
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className="card card-episode"
|
||||||
|
elevation={0}
|
||||||
|
onClick={onClick ? onClick : defaultOnClick}
|
||||||
|
>
|
||||||
|
<div className="card-box">
|
||||||
|
<div
|
||||||
|
className="card-image-container"
|
||||||
|
style={{
|
||||||
|
aspectRatio: 1.777,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{!!item.UserData && (
|
||||||
|
<div
|
||||||
|
className="card-indicator check"
|
||||||
|
style={{
|
||||||
|
opacity: item.UserData?.Played ? 1 : 0,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
done
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{!!imageBlurhash && (
|
||||||
|
<Blurhash
|
||||||
|
hash={imageBlurhash}
|
||||||
|
width={128}
|
||||||
|
height={128}
|
||||||
|
resolutionX={24}
|
||||||
|
resolutionY={24}
|
||||||
|
className="card-image-blurhash"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
<div className="card-image-icon-container">
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
tv_gen
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<img
|
||||||
|
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>
|
||||||
|
<Typography
|
||||||
|
variant="subtitle1"
|
||||||
|
fontWeight={500}
|
||||||
|
noWrap
|
||||||
|
textAlign="start"
|
||||||
|
style={{ opacity: 0.8, flexShrink: 0 }}
|
||||||
|
>
|
||||||
|
{getRuntimeCompact(item.RunTimeTicks)}
|
||||||
|
</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>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -0,0 +1,120 @@
|
|||||||
|
/** @format */
|
||||||
|
|
||||||
|
import React, { useState } from "react";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
|
import Carousel from "react-multi-carousel";
|
||||||
|
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 Typography from "@mui/material/Typography";
|
||||||
|
import ButtonGroup from "@mui/material/ButtonGroup";
|
||||||
|
|
||||||
|
import "./cardScroller.module.scss";
|
||||||
|
export const CardScroller = ({
|
||||||
|
children,
|
||||||
|
displayCards,
|
||||||
|
title,
|
||||||
|
headingProps,
|
||||||
|
disableDecoration = false,
|
||||||
|
boxProps,
|
||||||
|
}) => {
|
||||||
|
const responsive = {
|
||||||
|
superLargeDesktop: {
|
||||||
|
// the naming can be any, depends on you.
|
||||||
|
breakpoint: { max: 4000, min: 3000 },
|
||||||
|
items: displayCards + 1,
|
||||||
|
slidesToSlide: displayCards + 1,
|
||||||
|
partialVisibilityGutter: 40,
|
||||||
|
},
|
||||||
|
desktop: {
|
||||||
|
breakpoint: { max: 3000, min: 925 },
|
||||||
|
items: displayCards,
|
||||||
|
slidesToSlide: displayCards, // optional, default to 1.
|
||||||
|
partialVisibilityGutter: 30,
|
||||||
|
},
|
||||||
|
tablet: {
|
||||||
|
breakpoint: { max: 925, min: 600 },
|
||||||
|
items: displayCards - 3,
|
||||||
|
slidesToSlide: displayCards - 3, // optional, default to 1.
|
||||||
|
partialVisibilityGutter: 20,
|
||||||
|
},
|
||||||
|
mobile: {
|
||||||
|
breakpoint: { max: 600, min: 424 },
|
||||||
|
items: displayCards - 5,
|
||||||
|
slidesToSlide: displayCards - 5, // optional, default to 1.
|
||||||
|
partialVisibilityGutter: 10,
|
||||||
|
},
|
||||||
|
smallScreen: {
|
||||||
|
breakpoint: { max: 424, min: 0 },
|
||||||
|
items: 1,
|
||||||
|
slidesToSlide: 1, // optional, default to 1.
|
||||||
|
partialVisibilityGutter: 10,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const [carouselRef, setCarouselRef] = useState();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Box {...boxProps} className="card-scroller-container" mb={1}>
|
||||||
|
<Box
|
||||||
|
sx={{ mb: 1 }}
|
||||||
|
className={
|
||||||
|
disableDecoration
|
||||||
|
? `card-scroller-header-container hidden-decoration`
|
||||||
|
: `card-scroller-header-container`
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<Typography
|
||||||
|
variant="h5"
|
||||||
|
color="textPrimary"
|
||||||
|
className="card-scroller-heading"
|
||||||
|
{...headingProps}
|
||||||
|
>
|
||||||
|
<div className="card-scroller-heading-decoration"></div>{" "}
|
||||||
|
{title}
|
||||||
|
</Typography>
|
||||||
|
<ButtonGroup className="card-scroller-button-group">
|
||||||
|
<IconButton
|
||||||
|
className="card-scroller-button"
|
||||||
|
onClick={() => carouselRef.previous()}
|
||||||
|
>
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
chevron_left
|
||||||
|
</div>
|
||||||
|
</IconButton>
|
||||||
|
<IconButton
|
||||||
|
className="card-scroller-button"
|
||||||
|
onClick={() => carouselRef.next()}
|
||||||
|
>
|
||||||
|
<div className="material-symbols-rounded">
|
||||||
|
chevron_right
|
||||||
|
</div>
|
||||||
|
</IconButton>
|
||||||
|
</ButtonGroup>
|
||||||
|
</Box>
|
||||||
|
<Carousel
|
||||||
|
swipeable={false}
|
||||||
|
draggable={false}
|
||||||
|
responsive={responsive}
|
||||||
|
arrows={false}
|
||||||
|
ref={(el) => setCarouselRef(el)}
|
||||||
|
className="card-scroller"
|
||||||
|
customTransition="all .6s"
|
||||||
|
transitionDuration={600}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</Carousel>
|
||||||
|
</Box>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
CardScroller.propTypes = {
|
||||||
|
displayCards: PropTypes.number.isRequired,
|
||||||
|
title: PropTypes.string.isRequired,
|
||||||
|
headingProps: PropTypes.any,
|
||||||
|
};
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
/** @format */
|
||||||
|
|
||||||
|
.card-scroller {
|
||||||
|
// height: 20em;
|
||||||
|
&-slide {
|
||||||
|
overflow: visible;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
&-button {
|
||||||
|
aspect-ratio: 1;
|
||||||
|
}
|
||||||
|
&-header-container {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
&-heading {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
gap: 0.35em;
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 0.25em !important;
|
||||||
|
&-decoration {
|
||||||
|
width: 0.75em;
|
||||||
|
height: 2px;
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden-decoration {
|
||||||
|
.card-scroller-heading-decoration {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
/** @format */
|
||||||
|
|
||||||
|
.carousel {
|
||||||
|
position: relative;
|
||||||
|
height: 70vh;
|
||||||
|
margin: 4.4em 1.6em 1.6em 1.6em;
|
||||||
|
&-button {
|
||||||
|
position: absolute !important;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
z-index: 100;
|
||||||
|
&.right {
|
||||||
|
right: 0.5em;
|
||||||
|
}
|
||||||
|
&.left {
|
||||||
|
left: 0.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&-indicator {
|
||||||
|
height: 3px;
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 10px;
|
||||||
|
transition: background $transition-time-fast,
|
||||||
|
height $transition-time-fast;
|
||||||
|
background: rgb(255 255 255 / 0.5);
|
||||||
|
&:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
height: 6px;
|
||||||
|
background: rgb(255 255 255 / 0.8) !important;
|
||||||
|
}
|
||||||
|
&-container {
|
||||||
|
display: flex;
|
||||||
|
position: absolute;
|
||||||
|
bottom: -1em;
|
||||||
|
left: 1em;
|
||||||
|
right: 1em;
|
||||||
|
gap: 1em;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
&.active {
|
||||||
|
height: 6px;
|
||||||
|
background: white !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,128 @@
|
|||||||
|
/** @format */
|
||||||
|
import React, { useEffect, useState } from "react";
|
||||||
|
import { AnimatePresence, motion } from "framer-motion";
|
||||||
|
|
||||||
|
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";
|
||||||
|
|
||||||
|
const swipeConfidenceThreshold = 8000;
|
||||||
|
const swipePower = (offset, velocity) => {
|
||||||
|
return Math.abs(offset) * velocity;
|
||||||
|
};
|
||||||
|
|
||||||
|
const Carousel = ({ content, onChange }) => {
|
||||||
|
const [currentSlide, setCurrentSlide] = useState(0);
|
||||||
|
|
||||||
|
const [setDirection, dir] = useCarouselStore((state) => [
|
||||||
|
state.setDirection,
|
||||||
|
state.direction,
|
||||||
|
]);
|
||||||
|
useEffect(() => {
|
||||||
|
onChange(currentSlide);
|
||||||
|
}, [content[currentSlide].key]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="carousel">
|
||||||
|
<IconButton
|
||||||
|
className="carousel-button left"
|
||||||
|
onClick={() => {
|
||||||
|
if (currentSlide == 0) {
|
||||||
|
setDirection("left");
|
||||||
|
setCurrentSlide(content.length - 1);
|
||||||
|
}
|
||||||
|
if (currentSlide > 0) {
|
||||||
|
setDirection("left");
|
||||||
|
setCurrentSlide((init) => init - 1);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
sx={{
|
||||||
|
background: " rgb(200 200 200 / 0.05)",
|
||||||
|
}}
|
||||||
|
// disabled={currentSlide == 0}
|
||||||
|
>
|
||||||
|
<div className="material-symbols-rounded">arrow_left</div>
|
||||||
|
</IconButton>
|
||||||
|
<AnimatePresence>
|
||||||
|
<motion.div
|
||||||
|
key={currentSlide}
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 1 }}
|
||||||
|
exit={{ opacity: 0 }}
|
||||||
|
transition={{
|
||||||
|
duration: 0.25,
|
||||||
|
}}
|
||||||
|
drag={"x"}
|
||||||
|
dragConstraints={{ left: 0, right: 0 }}
|
||||||
|
dragElastic={1}
|
||||||
|
onDragEnd={(e, { offset, velocity }) => {
|
||||||
|
const swipe = swipePower(offset.x, velocity.x);
|
||||||
|
if (
|
||||||
|
currentSlide != content.length - 1 &&
|
||||||
|
swipe < -swipeConfidenceThreshold
|
||||||
|
) {
|
||||||
|
setDirection("right");
|
||||||
|
setCurrentSlide((init) => init + 1);
|
||||||
|
} else if (
|
||||||
|
currentSlide != 0 &&
|
||||||
|
swipe > swipeConfidenceThreshold
|
||||||
|
) {
|
||||||
|
setDirection("left");
|
||||||
|
setCurrentSlide((init) => init - 1);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
style={{
|
||||||
|
height: "100%",
|
||||||
|
width: "100%",
|
||||||
|
position: "absolute",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{content[currentSlide]}
|
||||||
|
</motion.div>
|
||||||
|
</AnimatePresence>
|
||||||
|
<IconButton
|
||||||
|
className="carousel-button right"
|
||||||
|
onClick={() => {
|
||||||
|
if (currentSlide == content.length - 1) {
|
||||||
|
setDirection("right");
|
||||||
|
setCurrentSlide(0);
|
||||||
|
} else if (currentSlide < content.length - 1) {
|
||||||
|
setDirection("right");
|
||||||
|
setCurrentSlide((init) => init + 1);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
// disabled={currentSlide == content.length - 1}
|
||||||
|
sx={{
|
||||||
|
background: " rgb(200 200 200 / 0.05)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div className="material-symbols-rounded">arrow_right</div>
|
||||||
|
</IconButton>
|
||||||
|
<div className="carousel-indicator-container">
|
||||||
|
{content.map((item, index) => (
|
||||||
|
<div
|
||||||
|
className={
|
||||||
|
currentSlide == index
|
||||||
|
? "carousel-indicator active"
|
||||||
|
: "carousel-indicator"
|
||||||
|
}
|
||||||
|
key={index}
|
||||||
|
onClick={() => {
|
||||||
|
if (currentSlide > index) {
|
||||||
|
setDirection("left");
|
||||||
|
} else if (currentSlide <= index) {
|
||||||
|
setDirection("right");
|
||||||
|
}
|
||||||
|
setCurrentSlide(index);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Carousel;
|
||||||
@@ -0,0 +1,447 @@
|
|||||||
|
/** @format */
|
||||||
|
import React, { memo } from "react";
|
||||||
|
import { Blurhash } from "react-blurhash";
|
||||||
|
|
||||||
|
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 { yellow } from "@mui/material/colors";
|
||||||
|
import ErrorBoundary from "../errorBoundary";
|
||||||
|
|
||||||
|
import CarouselSlideError from "../errors/carousel";
|
||||||
|
import { MdiStar } from "../icons/mdiStar";
|
||||||
|
import { endsAt, getRuntime } from "../../utils/date/time";
|
||||||
|
import { useNavigate } from "react-router-dom";
|
||||||
|
import { MediaTypeIconCollection, getTypeIcon } from "../utils/iconsCollection";
|
||||||
|
import { MdiChevronRight } from "../icons/mdiChevronRight";
|
||||||
|
import { useQuery } from "@tanstack/react-query";
|
||||||
|
import { red } from "@mui/material/colors";
|
||||||
|
|
||||||
|
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||||
|
import LikeButton from "../buttons/likeButton";
|
||||||
|
import MarkPlayedButton from "../buttons/markPlayedButton";
|
||||||
|
import { useCarouselStore } from "../../utils/store/carousel";
|
||||||
|
import PlayButton from "../buttons/playButton";
|
||||||
|
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
|
||||||
|
import { useApi } from "../../utils/store/api";
|
||||||
|
|
||||||
|
const availableSpecialRoutes = [
|
||||||
|
BaseItemKind.Series,
|
||||||
|
BaseItemKind.BoxSet,
|
||||||
|
BaseItemKind.MusicAlbum,
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} Props
|
||||||
|
* @property {import("@jellyfin/sdk/lib/generated-client/models").BaseItemDto} item
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description Carousel slide component
|
||||||
|
* @param {Props}
|
||||||
|
* @returns {React.Component}
|
||||||
|
*/
|
||||||
|
const CarouselSlide = ({ item }) => {
|
||||||
|
const [api] = useApi((state) => [state.api]);
|
||||||
|
const navigate = useNavigate();
|
||||||
|
|
||||||
|
const user = useQuery({
|
||||||
|
queryKey: ["user"],
|
||||||
|
queryFn: async () => {
|
||||||
|
let usr = await getUserApi(api).getCurrentUser();
|
||||||
|
return usr.data;
|
||||||
|
},
|
||||||
|
networkMode: "always",
|
||||||
|
});
|
||||||
|
|
||||||
|
const handleMoreInfo = () => {
|
||||||
|
if (availableSpecialRoutes.includes(item.Type)) {
|
||||||
|
navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`);
|
||||||
|
} else if (item.Role) {
|
||||||
|
navigate(`/person/${item.Id}`);
|
||||||
|
} else {
|
||||||
|
navigate(`/item/${item.Id}`);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const [animationDirection] = useCarouselStore((state) => [
|
||||||
|
state.direction,
|
||||||
|
]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<ErrorBoundary fallback={<CarouselSlideError itemName={item.Name} />}>
|
||||||
|
<Paper
|
||||||
|
className="hero-carousel-slide"
|
||||||
|
sx={{
|
||||||
|
background: "transparent",
|
||||||
|
px: 3,
|
||||||
|
}}
|
||||||
|
elevation={6}
|
||||||
|
>
|
||||||
|
<div className="hero-carousel-background-container">
|
||||||
|
{!!item.ImageBlurHashes.Backdrop && (
|
||||||
|
<>
|
||||||
|
{Object.keys(item.ImageBlurHashes.Backdrop)
|
||||||
|
.length != 0 && (
|
||||||
|
<Blurhash
|
||||||
|
hash={
|
||||||
|
item.ImageBlurHashes.Backdrop[
|
||||||
|
Object.keys(
|
||||||
|
item.ImageBlurHashes
|
||||||
|
.Backdrop,
|
||||||
|
)[0]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
// hash="LEHV6nWB2yk8pyo0adR*.7kCMdnj"
|
||||||
|
width="108"
|
||||||
|
height="72"
|
||||||
|
resolutionX={64}
|
||||||
|
resolutionY={96}
|
||||||
|
className="hero-carousel-background-blurhash"
|
||||||
|
punch={1}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
<img
|
||||||
|
className="hero-carousel-background-image"
|
||||||
|
src={
|
||||||
|
item.ParentBackdropItemId
|
||||||
|
? `${api.basePath}/Items/${item.ParentBackdropItemId}/Images/Backdrop`
|
||||||
|
: `${api.basePath}/Items/${item.Id}/Images/Backdrop`
|
||||||
|
}
|
||||||
|
style={{
|
||||||
|
opacity: 0,
|
||||||
|
}}
|
||||||
|
onLoad={(e) =>
|
||||||
|
(e.target.style.opacity = 1)
|
||||||
|
}
|
||||||
|
loading="eager"
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
<div className="hero-carousel-background-icon-container">
|
||||||
|
{getTypeIcon(item.Type)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<motion.div
|
||||||
|
// initial={{
|
||||||
|
// transform:
|
||||||
|
// animationDirection == "right"
|
||||||
|
// ? "translateX(60px)"
|
||||||
|
// : "translateX(-60px)",
|
||||||
|
// opacity: 0,
|
||||||
|
// }}
|
||||||
|
// animate={{
|
||||||
|
// transform: "translateX(0px)",
|
||||||
|
// opacity: 1,
|
||||||
|
// }}
|
||||||
|
// exit={{
|
||||||
|
// transform:
|
||||||
|
// animationDirection == "right"
|
||||||
|
// ? "translateX(-60px)"
|
||||||
|
// : "translateX(60px)",
|
||||||
|
|
||||||
|
// opacity: 0,
|
||||||
|
// }}
|
||||||
|
// transition={{
|
||||||
|
// duration: 0.25,
|
||||||
|
// ease: "easeInOut",
|
||||||
|
// }}
|
||||||
|
className="hero-carousel-detail"
|
||||||
|
>
|
||||||
|
<Typography
|
||||||
|
component={motion.div}
|
||||||
|
initial={{
|
||||||
|
transform:
|
||||||
|
animationDirection == "right"
|
||||||
|
? "translateX(60px)"
|
||||||
|
: "translateX(-60px)",
|
||||||
|
opacity: 0,
|
||||||
|
}}
|
||||||
|
animate={{
|
||||||
|
transform: "translateX(0px)",
|
||||||
|
opacity: 1,
|
||||||
|
}}
|
||||||
|
exit={{
|
||||||
|
transform:
|
||||||
|
animationDirection == "right"
|
||||||
|
? "translateX(-60px)"
|
||||||
|
: "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
|
||||||
|
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,
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 0.25,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
direction="row"
|
||||||
|
gap={2}
|
||||||
|
className="hero-carousel-info"
|
||||||
|
mt={1}
|
||||||
|
justifyItems="flex-start"
|
||||||
|
alignItems="center"
|
||||||
|
>
|
||||||
|
<Typography
|
||||||
|
style={{ opacity: "0.8" }}
|
||||||
|
variant="subtitle1"
|
||||||
|
>
|
||||||
|
{item.ProductionYear
|
||||||
|
? item.ProductionYear
|
||||||
|
: "Unknown"}
|
||||||
|
</Typography>
|
||||||
|
<Chip
|
||||||
|
variant="filled"
|
||||||
|
label={item.OfficialRating ?? "Not Rated"}
|
||||||
|
/>
|
||||||
|
<ErrorBoundary fallback={<></>}>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
display: "flex",
|
||||||
|
gap: "0.25em",
|
||||||
|
alignItems: "center",
|
||||||
|
}}
|
||||||
|
className="hero-carousel-info-rating"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className="material-symbols-rounded "
|
||||||
|
style={{
|
||||||
|
// fontSize: "2.2em",
|
||||||
|
color: yellow[400],
|
||||||
|
fontVariationSettings:
|
||||||
|
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
star
|
||||||
|
</div>
|
||||||
|
<Typography
|
||||||
|
style={{
|
||||||
|
opacity: "0.8",
|
||||||
|
}}
|
||||||
|
variant="subtitle1"
|
||||||
|
>
|
||||||
|
{Math.round(
|
||||||
|
item.CommunityRating * 10,
|
||||||
|
) / 10}
|
||||||
|
</Typography>
|
||||||
|
</div>
|
||||||
|
</ErrorBoundary>
|
||||||
|
{Boolean(item.CriticRating) && (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
display: "flex",
|
||||||
|
gap: "0.25em",
|
||||||
|
alignItems: "center",
|
||||||
|
}}
|
||||||
|
className="hero-carousel-info-rating"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className="material-symbols-rounded "
|
||||||
|
style={{
|
||||||
|
color: red[400],
|
||||||
|
fontVariationSettings:
|
||||||
|
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
thumb_up
|
||||||
|
</div>
|
||||||
|
<Typography
|
||||||
|
style={{
|
||||||
|
opacity: "0.8",
|
||||||
|
}}
|
||||||
|
variant="subtitle1"
|
||||||
|
>
|
||||||
|
{item.CriticRating}
|
||||||
|
</Typography>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{!!item.RunTimeTicks && (
|
||||||
|
<Typography
|
||||||
|
style={{ opacity: "0.8" }}
|
||||||
|
variant="subtitle1"
|
||||||
|
>
|
||||||
|
{getRuntime(item.RunTimeTicks)}
|
||||||
|
</Typography>
|
||||||
|
)}
|
||||||
|
{!!item.RunTimeTicks && (
|
||||||
|
<Typography
|
||||||
|
style={{ opacity: "0.8" }}
|
||||||
|
variant="subtitle1"
|
||||||
|
>
|
||||||
|
{endsAt(item.RunTimeTicks)}
|
||||||
|
</Typography>
|
||||||
|
)}
|
||||||
|
</Stack>
|
||||||
|
<Typography
|
||||||
|
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>
|
||||||
|
</Paper>
|
||||||
|
</ErrorBoundary>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default CarouselSlide;
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
/** @format */
|
||||||
|
import React from "react";
|
||||||
|
class ErrorBoundary extends React.Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state = { hasError: false };
|
||||||
|
}
|
||||||
|
|
||||||
|
static getDerivedStateFromError(error) {
|
||||||
|
// Update state so the next render will show the fallback UI.
|
||||||
|
return { hasError: true };
|
||||||
|
}
|
||||||
|
|
||||||
|
componentDidCatch(error, info) {
|
||||||
|
// Example "componentStack":
|
||||||
|
// in ComponentThatThrows (created by App)
|
||||||
|
// in ErrorBoundary (created by App)
|
||||||
|
// in div (created by App)
|
||||||
|
// in App
|
||||||
|
this.setState;
|
||||||
|
console.error(`Err in ${info} - ${error}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
if (this.state.hasError) {
|
||||||
|
// You can render any custom fallback UI
|
||||||
|
return this.props.fallback;
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.props.children;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export default ErrorBoundary;
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/** @format */
|
||||||
|
import React from "react";
|
||||||
|
import Paper from "@mui/material/Paper";
|
||||||
|
import Stack from "@mui/material/Stack";
|
||||||
|
import Typography from "@mui/material/Typography";
|
||||||
|
import { MdiEmoticonDead } from "../icons/mdiEmoticonDead";
|
||||||
|
|
||||||
|
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;
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
/** @format */
|
||||||
|
|
||||||
|
import React from "react";
|
||||||
|
/** @format */
|
||||||
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
|
const Icon = (icon, extraProps) => {
|
||||||
|
return (
|
||||||
|
<SvgIcon {...extraProps}>
|
||||||
|
<path d={icon}></path>
|
||||||
|
</SvgIcon>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Icon;
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
/** @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>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
/** @format */
|
||||||
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
|
import { mdiAccountMusic } from "@mdi/js";
|
||||||
|
|
||||||
|
export const MdiAccountMusic = (props) => {
|
||||||
|
return (
|
||||||
|
<SvgIcon {...props}>
|
||||||
|
<path d={mdiAccountMusic}></path>
|
||||||
|
</SvgIcon>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
/** @format */
|
||||||
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
|
import { mdiAccountTie } from "@mdi/js";
|
||||||
|
|
||||||
|
export const MdiAccountTie = (props) => {
|
||||||
|
return (
|
||||||
|
<SvgIcon {...props}>
|
||||||
|
<path d={mdiAccountTie}></path>
|
||||||
|
</SvgIcon>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
/** @format */
|
||||||
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
|
import { mdiAlbum } from "@mdi/js";
|
||||||
|
|
||||||
|
export const MdiAlbum = (props) => {
|
||||||
|
return (
|
||||||
|
<SvgIcon {...props}>
|
||||||
|
<path d={mdiAlbum}></path>
|
||||||
|
</SvgIcon>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
/** @format */
|
||||||
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
|
import { mdiAlertDecagram } from "@mdi/js";
|
||||||
|
|
||||||
|
export const MdiAlertDecagram = (props) => {
|
||||||
|
return (
|
||||||
|
<SvgIcon {...props}>
|
||||||
|
<path d={mdiAlertDecagram}></path>
|
||||||
|
</SvgIcon>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
/** @format */
|
||||||
|
|
||||||
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
|
import { mdiArrowLeft } from "@mdi/js";
|
||||||
|
|
||||||
|
export const MdiArrowLeft = (props) => {
|
||||||
|
return (
|
||||||
|
<SvgIcon {...props}>
|
||||||
|
<path d={mdiArrowLeft}></path>
|
||||||
|
</SvgIcon>
|
||||||
|
);
|
||||||
|
};
|
||||||