Compare commits

..
41 Commits
Author SHA1 Message Date
Prayag 6c56bde728 Fix performace issues and more stuff changed 2022-04-17 12:28:53 +05:30
Prayag 261b6bf9b1 more elements converted to MDC 2022-04-16 15:47:18 +05:30
Prayag c628704471 more components moved to MDC 2022-04-16 11:58:43 +05:30
Prayag a83036b0c8 Start moving to material design components 2022-04-16 10:46:09 +05:30
Prayag 0ce709a85f Fix Mac build 2022-04-14 16:53:59 +05:30
Prayag 762999f853 Fix mac build 2022-04-14 16:46:39 +05:30
Prayag 91b7cad1e3 add workflow names 2022-04-14 16:38:36 +05:30
Prayag e24921af29 Fix Build 2022-04-14 16:35:19 +05:30
Prayag a288472c26 Add more build options 2022-04-14 15:54:30 +05:30
Prayag Prajapati 05a54988d6 mac__build 2022-04-14 14:55:01 +05:30
Prayag af527e382a Add icns 2022-04-14 14:50:25 +05:30
Prayag Prajapati 65cea4576e Update build.yml 2022-04-14 14:44:36 +05:30
Prayag Prajapati a72ff6cc96 Update build.yml 2022-04-14 14:43:59 +05:30
Prayag Prajapati ce5992bbd0 only upload .spec 2022-04-14 14:39:16 +05:30
Prayag Prajapati 53c8f44fc5 Update build.yml 2022-04-14 14:33:20 +05:30
Prayag Prajapati 64b1bf4cb5 Update build.yml 2022-04-14 14:24:42 +05:30
Prayag 2f0f474997 Fix requirements.txt install 2022-04-14 14:24:23 +05:30
Prayag Prajapati dc4ade62ab Fix branch 2022-04-14 14:07:22 +05:30
Prayag Prajapati b63e172fb8 Update README.md 2022-04-14 14:06:34 +05:30
Prayag Prajapati 3964f0d2ab Create build.yml 2022-04-14 14:06:11 +05:30
Prayag Prajapati f82626ea6a Merge pull request #2 from prayag17/add-license-1
Create LICENSE
2022-04-14 13:57:43 +05:30
Prayag Prajapati 12d4fea1ec Create LICENSE 2022-04-14 13:57:32 +05:30
Prayag 73c6612ef2 Add Requirements.txt 2022-04-14 13:44:34 +05:30
Prayag 7a9663fe35 Theme cards 2022-04-14 11:25:23 +05:30
Prayag 94f5156b23 Start work on cards 2022-04-12 17:07:08 +05:30
Prayag 0d93e18457 Fix Login and add more things to hero slider 2022-04-11 23:06:35 +05:30
Prayag c64d951df4 Fix Hero Slider 2022-04-11 14:21:51 +05:30
Prayag 4d3d8fa532 Update hero slider 2022-04-11 13:27:07 +05:30
Prayag 08aa2bc2e7 Fix Login Page and Update Hero Slider 2022-04-10 10:38:31 +05:30
Prayag 8c129cda3c Update Slider 2022-04-09 12:34:03 +05:30
Prayag be135f6451 Start work on hero slider 2022-04-08 13:17:54 +05:30
Prayag c9e27524e7 add menu 2022-04-07 15:05:25 +05:30
Prayag 72b4157153 Add auto login 2022-04-07 11:17:39 +05:30
Prayag 5833e2003f Fix Dialog 2022-04-06 14:42:36 +05:30
Prayag 9b546e0404 Update Icon 2022-04-06 09:25:50 +05:30
Prayag fc16817f64 Add page transition 2022-04-05 15:54:44 +05:30
Prayag c18d808010 Get Libraries from user 2022-04-04 16:41:13 +05:30
Prayag 6159247c7e Complete login page 2022-04-03 18:17:36 +05:30
Prayag f232634187 Merge pull request #1 from prayag17/auth
Add authentication
2022-04-02 21:22:11 +05:30
Prayag 06841845f8 Add authentication 2022-04-02 21:21:01 +05:30
Prayag 34c89e2e25 Move to Qt for better video playback support 2022-04-02 14:25:26 +05:30
66 changed files with 122151 additions and 10842 deletions

No files matched your search

-21
View File
@@ -1,21 +0,0 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
"extends": [
"prettier",
"google"
],
"plugins": [
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"prettier/prettier": "error"
}
}
+25
View File
@@ -0,0 +1,25 @@
name: Build_Linux
on:
push:
branches: [ build ]
pull_request:
branches: [ build ]
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install -r requirements.txt pyinstaller
- run: pyinstaller -y --distpath dist/linux main_linux.spec
- uses: actions/upload-artifact@v3
with:
name: JellyPlayer_Linux
path: |
dist/*
+25
View File
@@ -0,0 +1,25 @@
name: Build_Mac
on:
push:
branches: [ build ]
pull_request:
branches: [ build ]
jobs:
build:
runs-on: 'macos-latest'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install -r requirements.txt pyinstaller
- run: pyinstaller -y --distpath dist/mac main_macos.spec
- uses: actions/upload-artifact@v3
with:
name: JellyPlayer_MacOS
path: |
dist/*
+26
View File
@@ -0,0 +1,26 @@
name: Build_Win
on:
push:
branches: [ build ]
pull_request:
branches: [ build ]
jobs:
build:
runs-on: 'windows-latest'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install -r requirements.txt pyinstaller
- run: pyinstaller -y --distpath dist/win main_win.spec
- uses: actions/upload-artifact@v3
with:
name: JellyPlayer_Win
path: |
dist/*
+3 -89
View File
@@ -1,89 +1,3 @@
# Logs dist
logs build
*.log __pycache__
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
.DS_Store
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# 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/
-3
View File
@@ -1,3 +0,0 @@
{
"editor.formatOnSave": true,
}
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 Prayag Prajapati
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+35 -5
View File
@@ -1,5 +1,35 @@
# This is the older version of JP that was made with electron but then moved to Qt for better media playback integretion # JellyPlayer
## JellyPlayer
### THIS IS CURRENTLY IN WORKS AND DOES NOT WORK I WILL CREATE A ALPHA IN FEW MONTHS ## Modern Jellyfin Client
### Modern Jellyfin Media player
### WORK IN PROGRESS ## Installation
- Install Requirements:
- Install Python 3
- Install dependencies
```console
pip3 install -r requirements.txt --default-timeout=1000
```
- Run App:
- Complie Renderer Files(html,js,css):
```console
pyside6-rcc main.qrc -o renderer.py
```
- Run JellyPlayer:
```console
python main.py
```
- Build EXE:
```console
pyinstaller --clean main.spec
```
The .exe file will generate at dist/JellyPlayer
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 505 KiB

+26
View File
@@ -0,0 +1,26 @@
<svg width="1095" height="1204" viewBox="0 0 1095 1204" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g filter="url(#filter0_d_33_14)">
<path d="M242.816 118.084C185.959 85.0539 108 122.787 108 194.205V598L590.681 319.981L242.816 118.084Z" fill="url(#pattern0)" shape-rendering="crispEdges"/>
<path d="M970.839 554.005C963.091 540.638 951.951 529.555 938.546 521.878L590.681 319.981L108 598V1001.79C108 1073.21 185.959 1110.95 242.816 1077.92L938.546 674.122C951.951 666.445 963.091 655.362 970.839 641.995C978.586 628.628 982.667 613.451 982.667 598C982.667 582.549 978.586 567.372 970.839 554.005Z" fill="url(#pattern1)" shape-rendering="crispEdges"/>
<path d="M108 598V1001.79C108 1073.21 185.959 1110.95 242.816 1077.92L938.546 674.122C951.951 666.445 963.091 655.362 970.839 641.995C978.586 628.628 982.667 613.451 982.667 598C982.667 582.549 978.586 567.372 970.839 554.005C963.091 540.638 951.951 529.555 938.546 521.878L590.681 319.981M108 598V194.205C108 122.787 185.959 85.0539 242.816 118.084L590.681 319.981M108 598L590.681 319.981" stroke="white" stroke-width="40" shape-rendering="crispEdges"/>
</g>
<defs>
<filter id="filter0_d_33_14" x="0" y="0.0953369" width="1094.67" height="1203.81" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="2" dy="4"/>
<feGaussianBlur stdDeviation="45"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_33_14"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_33_14" result="shape"/>
</filter>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_33_14" transform="translate(-0.0625001) scale(0.000439453)"/>
</pattern>
<pattern id="pattern1" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_33_14" transform="translate(-0.0625001) scale(0.000439453)"/>
</pattern>
<image id="image0_33_14" width="2560" height="2560" xlink:href="data:image/png;base64,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 truncated
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

+49
View File
@@ -0,0 +1,49 @@
<svg width="1536" height="140" viewBox="0 0 1536 140" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_103_17" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="1536" height="140">
<path d="M53.5075 139.735C44.3971 139.735 35.9283 137.682 28.101 133.576C20.2738 129.342 13.858 123.568 8.85375 116.254C3.84946 108.94 0.898207 100.856 0 92.0021H7.1215C8.0197 99.5727 10.6502 106.502 15.0129 112.789C19.3756 118.948 24.8932 123.824 31.5656 127.417C38.3663 130.882 45.6802 132.614 53.5075 132.614C62.1046 132.614 69.996 130.497 77.1816 126.262C84.3673 122.028 90.0773 116.19 94.3117 108.747C98.5461 101.305 100.663 92.9644 100.663 83.7257V10.0086H40.6118V2.88709H107.592V83.7257C107.592 94.2476 105.154 103.807 100.278 112.404C95.5307 120.873 88.9866 127.545 80.6461 132.421C72.434 137.297 63.3877 139.735 53.5075 139.735Z" fill="white"/>
<path d="M152.099 2.88709H246.41V10.0086H159.22V64.286H235.055V71.4075H159.22V129.727H246.41V136.848H152.099V2.88709Z" fill="white"/>
<path d="M299.386 136.848V2.88709H306.507V129.727H399.856V136.848H299.386Z" fill="white"/>
<path d="M441.861 136.848V2.88709H448.982V129.727H542.332V136.848H441.861Z" fill="white"/>
<path d="M578.369 2.88709L625.91 74.487L673.066 2.88709H681.535L629.374 81.9935V136.848H622.253V81.9935L569.9 2.88709H578.369Z" fill="white"/>
<path d="M730.853 136.848H723.731V2.88709H777.624C786.606 2.88709 794.882 4.81182 802.453 8.66128C810.152 12.5107 816.247 17.9641 820.738 25.0215C825.229 32.0788 827.474 40.2268 827.474 49.4655C827.474 58.3193 825.164 66.4673 820.545 73.9096C816.054 81.3519 809.895 87.0619 802.068 91.0397C795.267 94.5042 787.119 96.2365 777.624 96.2365H730.853V136.848ZM730.853 89.115H777.624C785.836 89.115 792.572 87.8318 797.833 85.2655C804.634 82.0576 810.087 77.2458 814.193 70.83C818.3 64.4143 820.353 57.2928 820.353 49.4655C820.353 41.7666 818.3 34.7093 814.193 28.2935C810.087 21.8778 804.57 17.0659 797.641 13.858C792.38 11.2917 785.708 10.0086 777.624 10.0086H730.853V89.115Z" fill="white"/>
<path d="M869.286 136.848V2.88709H876.407V129.727H969.757V136.848H869.286Z" fill="white"/>
<path d="M1148.27 2.88709L1195.81 74.487L1242.97 2.88709H1251.43L1199.27 81.9935V136.848H1192.15V81.9935L1139.8 2.88709H1148.27Z" fill="white"/>
<path d="M1291.9 2.88709H1386.21V10.0086H1299.02V64.286H1374.86V71.4075H1299.02V129.727H1386.21V136.848H1291.9V2.88709Z" fill="white"/>
<path d="M1116.27 136.848H990.011L1053.14 0L1116.27 136.848Z" fill="white"/>
<path d="M1485.19 2.88709H1433.03L1500.5 90.5C1509.87 87.9337 1519.06 81.5444 1525.22 73.7171C1531.38 65.7616 1534.46 56.7795 1534.46 46.7709C1534.46 38.687 1532.54 31.3089 1528.69 24.6365C1524.84 17.9641 1519.45 12.7032 1512.52 8.85375C1505.46 4.87598 1496.35 2.88709 1485.19 2.88709Z" fill="white"/>
<path d="M1433.03 136.848H1536L1500.5 90.5H1433.03V136.848Z" fill="white"/>
</mask>
<style>
path {
stroke-linecap: square;
}
</style>
<g mask="url(#mask0_103_17)">
<path d="M1485.19 2.88708H1433.03L1500.5 90.5C1509.87 87.9337 1519.06 81.5444 1525.22 73.7171C1531.38 65.7616 1534.46 56.7795 1534.46 46.7709C1534.46 38.687 1532.54 31.3089 1528.69 24.6365C1524.84 17.9641 1519.45 12.7032 1512.52 8.85375C1505.46 4.87597 1496.35 2.88708 1485.19 2.88708Z" fill="url(#paint0_linear_103_17)"/>
<path d="M1433.03 136.848H1536L1500.5 90.5H1433.03V136.848Z" fill="url(#paint1_linear_103_17)"/>
<path d="M1386.21 6.44785H1295.46V67.8467M1295.46 67.8467H1374.85M1295.46 67.8467V133.287H1386.21" stroke="white" stroke-width="8"/>
<path d="M1144.03 2.88708L1195.81 81.9935M1195.81 81.9935L1247.2 2.88708M1195.81 81.9935L1195.71 136.848" stroke="white" stroke-width="8"/>
<path d="M1116.27 136.848H990.011L1053.14 0L1116.27 136.848Z" fill="url(#paint2_linear_103_17)"/>
<path d="M872.847 2.88708V133.287H969.757" stroke="white" stroke-width="8"/>
<path d="M727.292 92.6757H777.624C785.836 92.6757 794.69 90.7189 799.95 88.1526C806.751 84.9447 813.263 78.7856 817.369 72.3698C821.475 65.9541 823.913 57.2928 823.913 49.4655C823.913 41.7666 821.572 33.0733 817.465 26.6575C813.359 20.2417 806.976 14.4676 800.047 11.2597C794.786 8.69337 785.707 6.44785 777.624 6.44785H727.292V92.6757ZM727.292 92.6757V136.848" stroke="white" stroke-width="8"/>
<path d="M574.135 2.88708L625.91 81.9935M625.91 81.9935L677.3 2.88708M625.91 81.9935L625.814 136.848" stroke="white" stroke-width="8" stroke-miterlimit="3.99933"/>
<path d="M445.421 2.88708V133.287H542.332" stroke="white" stroke-width="8"/>
<path d="M302.946 2.88708V133.287H399.856" stroke="white" stroke-width="8"/>
<path d="M246.41 6.44785H155.659V67.8467M155.659 67.8467H235.055M155.659 67.8467V133.287H246.41" stroke="white" stroke-width="8"/>
<path d="M3.56075 92.0021C4.45895 99.5727 7.5706 108.234 11.9333 114.521C16.296 120.681 23.1609 126.904 29.8333 130.497C36.634 133.961 45.6802 136.175 53.5075 136.175C62.1046 136.175 71.7282 133.576 78.9139 129.342C86.0995 125.107 93.0606 118.018 97.2951 110.576C101.529 103.133 104.128 92.9644 104.128 83.7257V6.44785H40.6118" stroke="white" stroke-width="8"/>
</g>
<defs>
<linearGradient id="paint0_linear_103_17" x1="1525" y1="20" x2="1433" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<linearGradient id="paint1_linear_103_17" x1="1525" y1="20" x2="1433" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<linearGradient id="paint2_linear_103_17" x1="1093.5" y1="89.5" x2="990" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 KiB

+29
View File
@@ -0,0 +1,29 @@
<svg width="1168" height="1324" viewBox="0 0 1168 1324" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_d_31_4)">
<path d="M268.523 614.23C230.295 614.23 194.759 605.615 161.915 588.386C129.071 570.618 102.15 546.388 81.1513 515.698C60.1527 485.008 47.769 451.087 44 413.936H73.8826C77.6515 445.703 88.6892 474.778 106.996 501.161C125.302 527.005 148.454 547.465 176.452 562.541C204.989 577.079 235.679 584.347 268.523 584.347C304.598 584.347 337.711 575.463 367.862 557.695C398.014 539.927 421.974 515.429 439.742 484.2C457.51 452.972 466.394 417.974 466.394 379.208V69.8826H214.411V40H495.469V379.208C495.469 423.358 485.239 463.471 464.779 499.546C444.857 535.082 417.398 563.08 382.4 583.54C347.941 604 309.982 614.23 268.523 614.23Z" fill="white"/>
<path d="M702.413 602.115V40H732.296V572.233H1124V602.115H702.413Z" fill="white"/>
<path d="M73.8826 1275.15H44V713.031H270.138C307.828 713.031 342.556 721.107 374.324 737.26C406.629 753.413 432.204 776.296 451.049 805.909C469.894 835.522 479.316 869.712 479.316 908.479C479.316 945.63 469.625 979.82 450.241 1011.05C431.397 1042.28 405.552 1066.24 372.708 1082.93C344.172 1097.47 309.982 1104.73 270.138 1104.73H73.8826V1275.15ZM73.8826 1074.85H270.138C304.598 1074.85 332.865 1069.47 354.94 1058.7C383.477 1045.24 406.36 1025.05 423.589 998.127C440.819 971.206 449.434 941.323 449.434 908.479C449.434 876.174 440.819 846.56 423.589 819.639C406.36 792.718 383.208 772.527 354.133 759.066C332.057 748.298 304.059 742.913 270.138 742.913H73.8826V1074.85Z" fill="white"/>
<path d="M895.439 713.031H676.569L965.703 1075.66C1005.01 1064.89 1037.58 1043.09 1063.43 1010.24C1089.27 976.859 1102.19 939.169 1102.19 897.172C1102.19 863.251 1094.12 832.292 1077.96 804.294C1061.81 776.296 1039.2 754.22 1010.12 738.068C980.51 721.376 942.282 713.031 895.439 713.031Z" fill="url(#paint0_linear_31_4)"/>
<path d="M676.569 1275.15H1108.65L965.703 1075.66L676.569 1082.93V1275.15Z" fill="url(#paint1_linear_31_4)"/>
</g>
<defs>
<filter id="filter0_d_31_4" x="0" y="0" width="1168" height="1323.15" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="4"/>
<feGaussianBlur stdDeviation="22"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.26 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_31_4"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_31_4" result="shape"/>
</filter>
<linearGradient id="paint0_linear_31_4" x1="1074" y1="798" x2="674" y2="1275" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<linearGradient id="paint1_linear_31_4" x1="1074" y1="798" x2="674" y2="1275" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 941 KiB

+9
View File
@@ -0,0 +1,9 @@
<svg width="2560" height="2560" viewBox="0 0 2560 2560" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="2560" height="2560" fill="url(#pattern0)"/>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_41_10" transform="scale(0.000434783)"/>
</pattern>
<image id="image0_41_10" width="2300" height="2300" xlink:href="data:image/png;base64,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 truncated
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.6 MiB

+127
View File
@@ -0,0 +1,127 @@
import sys,os,requests
from localStoragePy import localStoragePy
from PySide6.QtWidgets import QApplication, QMainWindow
from PySide6.QtCore import QUrl, Slot, QObject, QProcess
from PySide6.QtGui import QIcon, QPixmap
from PySide6.QtWebEngineWidgets import QWebEngineView
from PySide6.QtWebEngineCore import QWebEngineSettings
from PySide6.QtWebChannel import QWebChannel
import renderer
app = QApplication(["--disable-gpu-driver-bug-workarounds", "--enable-gpu-rasterization"])
# os.environ['QTWEBENGINE_REMOTE_DEBUGGING'] = "9000"
try:
from ctypes import windll
myappid = 'prayag17.jellyplayer.0.1.0'
windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
except ImportError:
pass
storage = localStoragePy('prayag.jellyplayer.app', 'sqlite')
def restart():
QApplication.quit()
status = QProcess.startDetached(sys.executable, sys.argv)
class Backend(QObject):
@Slot(result=str)
def onStartup(self):
if storage.getItem("serverGo") == "True":
try:
ping = requests.get(f"{storage.getItem('server')}/System/Ping")
if ping.content == b'"Jellyfin Server"':
if storage.getItem("openHome") == "True":
return "openHomeTrue"
else:
return "serverGoTrue"
except:
return "serverOffline"
else:
return "serverGoFalse"
@Slot(result=list)
def getAuthinfo(self):
return [storage.getItem("UserName"), storage.getItem("UserPw")]
@Slot(str, result=bool)
def saveServer(self, data):
ping = requests.get(f"{data}/System/Ping")
if ping.content == b'"Jellyfin Server"':
storage.setItem('server', data)
storage.setItem("serverGo", True)
return True
else:
storage.setItem("serverGo", False)
return False
@Slot(str, result=bool)
def getValuesFromDatabaseBool(self, object):
print(f"Object: {object}")
item = storage.getItem(object)
print(item)
if item == "True":
return True
elif item == "False":
return False
@Slot(str, result=str)
def getValuesFromDatabaseStr(self, object):
print(f"Object: {object}")
item = storage.getItem(object)
print(item)
return item
@Slot(str, str)
def setAuthInfoDatabase(self, userName, Pw):
print(f"User: {userName}, Password: {Pw}")
storage.setItem("UserName", userName)
storage.setItem("UserPw", Pw)
storage.setItem("openHome", True)
@Slot()
def clearStorage(self):
storage.clear()
restart()
@Slot()
def restart(self):
QApplication.quit()
status = QProcess.startDetached(sys.executable, sys.argv)
class LoginWin(QMainWindow):
def __init__(self):
super().__init__()
self.dir = os.path.dirname(os.path.abspath(__file__))
self.view= QWebEngineView(self)
self.setCentralWidget(self.view)
# self.setWindowIcon()
self.view.settings().setAttribute(QWebEngineSettings.JavascriptEnabled, True)
self.view.settings().setAttribute(QWebEngineSettings.PluginsEnabled, True)
self.view.settings().setAttribute(QWebEngineSettings.LocalContentCanAccessRemoteUrls, True)
self.view.settings().setAttribute(QWebEngineSettings.ScrollAnimatorEnabled, True)
self.setWindowTitle('JellyPlayer')
self.setWindowIcon(QIcon(QPixmap(":/assets/icon.png")))
self.view.load(QUrl("qrc:/renderer/html/main.html"))
self.view.loadFinished.connect(self.handleLoaded)
self.inspector = QWebEngineView()
self.inspector.setWindowTitle("Inspector")
self.backend = Backend()
self.channel = QWebChannel()
self.channel.registerObject('backend', self.backend)
self.view.page().setWebChannel(self.channel)
def handleLoaded(self, ok):
if ok:
self.view.page().setDevToolsPage(self.inspector.page())
self.inspector.show()
window = LoginWin()
window.showMaximized()
sys.exit(app.exec())
+23
View File
@@ -0,0 +1,23 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>renderer/html/main.html</file>
<file>renderer/css/login.css</file>
<file>renderer/css/global.css</file>
<file>renderer/css/main.css</file>
<file>renderer/js/login.js</file>
<file>renderer/js/main.js</file>
<file>renderer/svg/avatar.svg</file>
<file>renderer/svg/loader.svg</file>
<file>renderer/svg/books.svg</file>
<file>renderer/svg/boxsets.svg</file>
<file>renderer/svg/movies.svg</file>
<file>renderer/svg/music.svg</file>
<file>renderer/svg/playlists.svg</file>
<file>renderer/svg/tvshows.svg</file>
<file>assets/logo.svg</file>
<file>assets/logo_small.svg</file>
<file>assets/logo.png</file>
<file>assets/icon.svg</file>
<file>assets/icon.png</file>
</qresource>
</RCC>
+45
View File
@@ -0,0 +1,45 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=False,
name='JellyPlayer',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets/icon.ico' )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='JellyPlayer')
+45
View File
@@ -0,0 +1,45 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=False,
name='JellyPlayer',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets/icon.png' )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='JellyPlayer')
+45
View File
@@ -0,0 +1,45 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=False,
name='JellyPlayer',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets/icon.icns' )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='JellyPlayer')
+45
View File
@@ -0,0 +1,45 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=False,
name='JellyPlayer',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets/icon.ico' )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='JellyPlayer')
-5293
View File
File diff suppressed because it is too large. Load diff
-73
View File
@@ -1,73 +0,0 @@
{
"name": "jellyplayer",
"productName": "jellyplayer",
"version": "1.0.0",
"description": "Modern Jellyfin Client",
"main": "./src/index.js",
"scripts": {
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make",
"publish": "electron-forge publish",
"lint": "echo \"No linting configured\""
},
"keywords": [],
"author": {
"name": "Prayag",
"email": "prayagprajapati.17@gmail.com"
},
"license": "MIT",
"config": {
"forge": {
"packagerConfig": {
"icon": "./src/assets/icon.ico"
},
"makers": [
{
"name": "@electron-forge/maker-squirrel",
"config": {
"name": "jellyplayer"
}
},
{
"name": "@electron-forge/maker-zip",
"platforms": [
"darwin"
]
},
{
"name": "@electron-forge/maker-deb",
"config": {}
},
{
"name": "@electron-forge/maker-rpm",
"config": {}
}
]
}
},
"dependencies": {
"@rive-app/webgl": "^1.0.23",
"@thornbill/jellyfin-sdk": "^0.4.1",
"electron-squirrel-startup": "^1.0.0",
"electron-store": "^8.0.1",
"events": "^3.3.0",
"got": "^11.8.3",
"got-fetch": "^4.0.3",
"jquery.scrollto": "^2.1.3"
},
"devDependencies": {
"@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"
}
}
+119587
View File
File diff suppressed because it is too large. Load diff
+341
View File
@@ -0,0 +1,341 @@
/** @format */
:root {
--main-bg: #0a1827;
--accent-solid: #e82a5f;
--accent-translucent-1: rgb(232 42 95 / 40%);
--jf-purple-light: #aa5cc3;
--jf-purple-dark: #3e2247;
--jf-blue-light: #00a4dc;
--jf-blue-dark: #003c50;
--warning-yellow: #f18e06;
--warning-bg: rgba(220, 128, 1, 0.16);
--error-red: #a94442;
--error-red-darker-1: #8b2e2e;
--error-red-bg: #240e0ea0;
--yes-green: #18be12;
--yes-green-darker-1: #15a010;
--main-brd-clr: rgb(255 255 255/ 0.1);
--rounding: 10px;
--rounding-1: 5px;
--transition-time-fast-2: 100ms;
--transition-time-fast-1: 150ms;
--transition-time-default: 250ms;
--transition-time-slow-1: 350ms;
--transition-time-slow-2: 550ms;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
body,
html {
margin: 0 !important;
padding: 0 !important;
font-family: "Montserrat", sans-serif;
color: white;
background: var(--main-bg);
}
.input {
position: relative;
font-size: calc(60vw / 20);
width: 100%;
}
.ripple__cont {
width: 100%;
height: 100%;
overflow: hidden;
}
main,
.main__page {
position: fixed;
inset: 0;
contain: strict;
width: 100vw;
height: 100vh;
z-index: 1;
overflow: hidden;
}
.main__page {
display: flex;
align-items: center;
}
span.mdc-notched-outline__notch {
border-top: none;
position: relative;
border-bottom-width: 0.1px;
}
span.mdc-notched-outline__notch::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 0.1px;
background: var(--border-clr) !important;
transition: transform var(--transition-time-default);
transform-origin: right;
transform: scaleX(1);
}
.mdc-notched-outline--notched .mdc-notched-outline__notch::before {
height: 2px;
background: white !important;
transform: scaleX(0);
}
.mdc-floating-label {
transition-duration: var(--transition-time-default) !important;
}
@-webkit-keyframes btn_click {
0% {
transform: scale(1);
opacity: 0;
}
100% {
transform: scale(5);
opacity: 1;
}
}
@keyframes btn_click {
0% {
transform: scale(1);
opacity: 0;
}
100% {
transform: scale(1.5);
opacity: 1;
}
}
/*Animations*/
@-webkit-keyframes fadeIn {
0% {
opacity: 0;
margin-bottom: -150px;
}
100% {
opactiy: 1;
margin-bottom: 0;
}
}
@keyframes fadeIn {
0% {
opacity: 0;
margin-bottom: -150px;
}
100% {
opactiy: 1;
margin-bottom: 0;
}
}
@-webkit-keyframes fadeOut {
0% {
display: block;
opacity: 1;
inset: 0 0 0 0;
}
99% {
display: block;
opacity: 0;
inset: 150px 0 0 0;
}
100% {
display: none;
opacity: 0;
}
}
@keyframes fadeOut {
0% {
display: block;
opacity: 1;
inset: 0 0 0 0;
}
99% {
display: block;
opacity: 0;
inset: 150px 0 0 0;
}
100% {
display: none;
opacity: 0;
}
}
@-webkit-keyframes fadeInOpac {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes fadeInOpac {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-webkit-keyframes fadeOutOpac {
0% {
display: block;
opacity: 1;
}
99% {
display: block;
opacity: 0;
}
100% {
display: none;
opacity: 0;
}
}
@keyframes fadeOutOpac {
0% {
display: block;
opacity: 1;
}
99% {
display: block;
opacity: 0;
}
100% {
display: none;
opacity: 0;
}
}
@-webkit-keyframes comeIn {
0% {
bottom: -100%;
}
100% {
bottom: 20px;
}
}
@keyframes comeIn {
0% {
bottom: -100%;
}
100% {
bottom: 20px;
}
}
@-webkit-keyframes goOut {
0% {
bottom: 20px;
}
100% {
bottom: -100%;
}
}
@keyframes goOut {
0% {
bottom: 20px;
}
100% {
bottom: -100%;
}
}
@-webkit-keyframes load {
0% {
transform: scaleX(0);
}
100% {
transform: scaleX(1);
}
}
@keyframes load {
0% {
transform: scaleX(0);
}
100% {
transform: scaleX(1);
}
}
@-webkit-keyframes moveFadeOut {
0% {
inset: 0;
opacity: 1;
}
100% {
inset: 0 0 0 -100px;
opacity: 0;
}
}
@keyframes moveFadeOut {
0% {
inset: 0;
opacity: 1;
}
100% {
inset: 0 0 0 -100px;
opacity: 0;
}
}
@-webkit-keyframes moveFadeIn {
0% {
inset: 0 0 0 100px;
opacity: 0;
}
100% {
inset: 0;
opacity: 1;
}
}
@keyframes moveFadeIn {
0% {
inset: 0 0 0 100px;
opacity: 0;
}
100% {
inset: 0;
opacity: 1;
}
}
@-webkit-keyframes skeletonLoader {
0% {
left: -5em;
}
100% {
left: calc(100% + 5em);
}
}
@keyframes skeletonLoader {
0% {
left: -5em;
}
100% {
left: calc(100% + 5em);
}
}
@@ -1,11 +1,5 @@
/** @format */ /** @format */
*,
*::before,
*::after {
box-sizing: border-box;
}
::-webkit-scrollbar { ::-webkit-scrollbar {
height: 10px; height: 10px;
} }
@@ -19,29 +13,138 @@
background: rgb(255 255 255/1); background: rgb(255 255 255/1);
} }
main { .login {
position: fixed; --mdc-theme--primary: white !important;
inset: 0; --mdc-theme--primary-bg: var(--main-bg) !important;
contain: strict; }
width: 100vw;
height: 100vh; .login .mdc-button {
z-index: 1; font-family: "Montserrat" !important;
display: flex; background-color: rgb(255 255 255 / 0.3) !important;
/* justify-content: flex-start; */ border: 2px solid white !important;
align-items: center;
overflow: hidden; overflow: hidden;
} }
.login .mdc-button__ripple > * {
background-color: rgb(0 0 0 / 0.3) !important;
}
.login .mdc-text-field--outlined {
font-family: "Montserrat" !important;
}
.login .mdc-text-field--outlined {
--border-clr: rgb(255 255 255 / 0.4);
}
.login .mdc-text-field--outlined:hover {
--border-clr: rgb(255 255 255 / 0.8);
}
.login .mdc-text-field--outlined .mdc-notched-outline__leading {
transition: background var(--transition-time-default);
}
.login
.mdc-text-field--outlined:not(.mdc-text-field--disabled)
.mdc-notched-outline__leading,
.login
.mdc-text-field--outlined:not(.mdc-text-field--disabled)
.mdc-notched-outline__notch,
.login
.mdc-text-field--outlined:not(.mdc-text-field--disabled)
.mdc-notched-outline__trailing {
border-color: var(--border-clr) !important;
}
.login
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
.mdc-notched-outline__leading,
.login
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
.mdc-notched-outline__notch,
.login
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
.mdc-notched-outline__trailing {
border-color: rgb(255, 255, 255) !important;
}
.login .mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label {
color: rgb(255 255 255 / 0.6);
font-family: "Montserrat" !important;
}
.login
.mdc-text-field--focused:not(.mdc-text-field--disabled)
.mdc-floating-label {
color: white !important;
}
.login .mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input {
color: rgb(255 255 255 / 0.87);
caret-color: white;
font-family: "Montserrat" !important;
}
.mdc-form-field > label {
font-family: "Montserrat" !important;
}
.login
.mdc-checkbox
.mdc-checkbox__native-control:enabled:checked
~ .mdc-checkbox__background,
.login
.mdc-checkbox
.mdc-checkbox__native-control:enabled:indeterminate
~ .mdc-checkbox__background,
.login
.mdc-checkbox
.mdc-checkbox__native-control[data-indeterminate="true"]:enabled
~ .mdc-checkbox__background {
border-color: transparent !important;
}
.login .mdc-checkbox {
--mdc-ripple-color: white;
--mdc-checkbox-unchecked-color: white;
--mdc-checkbox-checked-color: rgb(255 255 255 / 0.3) !important;
}
.login .mdc-form-field {
--mdc-theme-text-primary-on-background: rgb(255 255 255 / 0.87);
}
.login .mdc-text-field__icon::before {
font-size: 26px;
color: var(--border-clr);
}
#background { #background {
background: transparent;
position: fixed; position: fixed;
inset: 0; z-index: 0;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
z-index: -1; }
-webkit-animation: fadeInBg var(--transition-time-slow-1);
animation: fadeInBg var(--transition-time-slow-1); #background > * {
-webkit-animation-fill-mode: forwards; width: inherit;
animation-fill-mode: forwards; height: inherit;
position: absolute;
opacity: 0;
transition: opacity var(--transition-time-slow-2);
}
#background .purple {
background: linear-gradient(140deg, var(--jf-purple-light), transparent);
}
#background .blue {
background: linear-gradient(140deg, transparent, var(--jf-blue-light));
z-index: -2;
}
#background .purple.active,
#background .blue.active {
opacity: 1;
} }
.page { .page {
@@ -78,6 +181,14 @@ main {
max-width: 30em; max-width: 30em;
} }
.logo {
width: 120%;
}
.logo img {
width: 100%;
}
.manual__input { .manual__input {
width: 60vw; width: 60vw;
display: flex; display: flex;
@@ -90,6 +201,7 @@ main {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
grid-gap: 3em; grid-gap: 3em;
align-items: center;
} }
button.clicky { button.clicky {
@@ -116,30 +228,6 @@ button.clicky:active::after {
transition: 0s; transition: 0s;
} }
input[type="text"],
input[type="url"],
input[type="password"] {
background: transparent;
border: none;
border-bottom: 3px solid white;
color: white;
}
button {
--clr: currentColor;
overflow: hidden;
background: #ffffff4b;
border: 2px solid white;
color: white;
border-radius: 100px;
width: 100%;
transition: background var(--transition-time-default);
}
button:hover {
background: #ffffff6b;
}
.input__label { .input__label {
position: absolute; position: absolute;
top: 50%; top: 50%;
@@ -177,7 +265,7 @@ input:focus + .input__label,
font-size: calc(60vw / 20); font-size: calc(60vw / 20);
} }
.info i { .info span {
color: var(--warning-yellow); color: var(--warning-yellow);
font-size: min(1.5em, 30px); font-size: min(1.5em, 30px);
height: -webkit-fit-content; height: -webkit-fit-content;
@@ -235,15 +323,26 @@ input:focus + .input__label,
--color: var(--error-red); --color: var(--error-red);
} }
.dialog__cont {
position: absolute;
left: 0;
top: 0;
display: flex;
flex-wrap: nowrap;
align-content: center;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
z-index: 5;
}
.dialog { .dialog {
position: fixed;
background: var(--main-bg); background: var(--main-bg);
z-index: 1; z-index: 5;
height: -webkit-fit-content; height: -webkit-fit-content;
height: -moz-fit-content; height: -moz-fit-content;
height: fit-content; height: fit-content;
inset: 50% 0 0 50%;
transform: translate(-50%, -50%);
box-sizing: content-box; box-sizing: content-box;
padding: 20px; padding: 20px;
color: black; color: black;
@@ -287,7 +386,7 @@ input:focus + .input__label,
} }
.dialog__close { .dialog__close {
position: fixed; position: absolute;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background: rgba(5, 5, 5, 0.5); background: rgba(5, 5, 5, 0.5);
@@ -296,18 +395,26 @@ input:focus + .input__label,
.error.active, .error.active,
.dialog.active, .dialog.active,
.warning.active, .warning.active {
.dialog__close.active { -webkit-animation: fadeIn var(--transition-time-fast-2);
-webkit-animation: fadeIn var(--transition-time-fast-1); animation: fadeIn var(--transition-time-fast-2);
animation: fadeIn var(--transition-time-fast-1);
display: block; display: block;
visibility: visible; visibility: visible;
} }
.dialog.fadeOut, .dialog__cont.fadeOut {
-webkit-animation: fadeOut var(--transition-time-fast-2) forwards;
animation: fadeOut var(--transition-time-fast-2) forwards;
}
.dialog__close.fadeOut { .dialog__close.fadeOut {
-webkit-animation: fadeOut var(--transition-time-fast-1) forwards; -webkit-animation: fadeOutOpac var(--transition-time-fast-2) forwards;
animation: fadeOut var(--transition-time-fast-1) forwards; animation: fadeOutOpac var(--transition-time-fast-2) forwards;
}
.dialog__close.active {
-webkit-animation: fadeInOpac var(--transition-time-fast-2) forwards;
animation: fadeInOpac var(--transition-time-fast-2) forwards;
} }
.alert.goOut { .alert.goOut {
@@ -335,6 +442,7 @@ input:focus + .input__label,
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
z-index: 20;
} }
.loader::before { .loader::before {
@@ -359,7 +467,7 @@ section.user__cont {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
overflow: auto hidden; overflow: auto hidden;
gap: 1em; z-index: 2;
} }
.user__card { .user__card {
@@ -368,6 +476,7 @@ section.user__cont {
width: fit-content; width: fit-content;
overflow: hidden; overflow: hidden;
flex-shrink: 0; flex-shrink: 0;
padding: 1em;
} }
.user__card .content { .user__card .content {
@@ -376,6 +485,11 @@ section.user__cont {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
flex-flow: column; flex-flow: column;
padding: 0 !important;
}
.user__card h1 {
margin: 0.5em 0;
} }
.user__svg, .user__svg,
@@ -399,7 +513,7 @@ section.user__cont {
flex-flow: column; flex-flow: column;
grid-gap: 2em; grid-gap: 2em;
justify-content: center; justify-content: center;
align-items: center; align-items: stretch;
} }
.user__info { .user__info {
@@ -421,7 +535,7 @@ section.user__cont {
font-weight: 500; font-weight: 500;
padding: 0; padding: 0;
margin: 0; margin: 0;
font-size: calc(100vw / 15); font-size: min(calc(100vw / 15), 10em);
position: relative; position: relative;
margin-bottom: 0.5em; margin-bottom: 0.5em;
align-self: center; align-self: center;
@@ -444,11 +558,11 @@ section.user__cont {
} }
.user__info .title__name { .user__info .title__name {
font-size: calc(100vw / 20);
margin-bottom: 0; margin-bottom: 0;
} }
.user__info .user__img { .user__info .user__img,
.user__info .user__svg {
border-radius: 100%; border-radius: 100%;
} }
@@ -468,7 +582,7 @@ section.user__cont {
display: block; display: block;
width: 0.6em; width: 0.6em;
border-radius: var(--rounding-1); border-radius: var(--rounding-1);
border: 1px solid white; border: 1.5px solid white;
} }
.tick path { .tick path {
@@ -498,6 +612,7 @@ input[type="checkbox"]:checked + .tick > path {
row-gap: 20px; row-gap: 20px;
-moz-column-gap: 20px; -moz-column-gap: 20px;
column-gap: 20px; column-gap: 20px;
align-items: stretch;
} }
.back { .back {
@@ -518,128 +633,6 @@ input[type="checkbox"]:checked + .tick > path {
.back:hover { .back:hover {
background: rgb(20 20 20 / 0.7); background: rgb(20 20 20 / 0.7);
} }
/*Animations*/
@-webkit-keyframes fadeInBg {
0% {
opacity: 0;
}
100% {
opacity: 0.6;
}
}
@keyframes fadeInBg {
0% {
opacity: 0;
}
100% {
opacity: 0.6;
}
}
@-webkit-keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opactiy: 1;
}
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opactiy: 1;
}
}
@-webkit-keyframes fadeOut {
0% {
display: block;
opacity: 1;
}
99% {
display: block;
opacity: 0;
}
100% {
display: none;
opacity: 0;
}
}
@keyframes fadeOut {
0% {
display: block;
opacity: 1;
}
99% {
display: block;
opacity: 0;
}
100% {
display: none;
opacity: 0;
}
}
@-webkit-keyframes comeIn {
0% {
bottom: -100%;
}
100% {
bottom: 20px;
}
}
@keyframes comeIn {
0% {
bottom: -100%;
}
100% {
bottom: 20px;
}
}
@-webkit-keyframes goOut {
0% {
bottom: 20px;
}
100% {
bottom: -100%;
}
}
@keyframes goOut {
0% {
bottom: 20px;
}
100% {
bottom: -100%;
}
}
@-webkit-keyframes load {
0% {
transform: scaleX(0);
}
100% {
transform: scaleX(1);
}
}
@keyframes load {
0% {
transform: scaleX(0);
}
100% {
transform: scaleX(1);
}
}
/*Scaling for other display*/ /*Scaling for other display*/
@media (min-width: 800px) { @media (min-width: 800px) {
+503
View File
@@ -0,0 +1,503 @@
/** @format */
.library__page::-webkit-scrollbar {
width: 5px;
}
.library__page::-webkit-scrollbar-thumb {
border-radius: 0;
}
.moveFadeOut {
-webkit-animation: moveFadeOut var(--transition-time-slow-2) forwards;
animation: moveFadeOut var(--transition-time-slow-2) forwards;
}
.moveFadeIn {
-webkit-animation: moveFadeIn var(--transition-time-slow-2) forwards;
animation: moveFadeIn var(--transition-time-slow-2) forwards;
}
.main {
opacity: 0;
right: -300px;
}
.main.active {
opacity: 1;
right: 0;
}
.menu.side__menu {
width: 40vw;
height: 100vh;
max-width: 20em;
overflow: auto;
display: flex;
flex-wrap: nowrap;
flex-direction: column;
align-items: center;
justify-content: flex-start;
border-right: 1px solid var(--main-brd-clr);
position: relative;
}
.user__menu {
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
font-weight: 200;
font-size: 1.9rem;
gap: 0.5em;
padding: 2em 1em;
border-bottom: 1px solid var(--main-brd-clr);
position: relative;
}
.user__menu .image {
width: 15vh;
border-radius: 100%;
overflow: hidden;
aspect-ratio: 1/1;
}
img {
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center;
object-position: center;
}
.user__menu .image > img {
width: 100%;
aspect-ratio: 1/1;
}
.submenu {
width: 100%;
padding: 0 1em;
position: relative;
overflow-x: hidden;
height: 100%;
}
.menu__button {
font-size: 1.3rem;
padding: 0.5em;
position: relative;
}
.main__animated__page {
width: 100%;
height: 100vh;
position: relative;
background: linear-gradient(
45deg,
rgba(10, 24, 39, 1) 0%,
rgba(10, 26, 51, 1) 32%,
rgba(8, 144, 149, 1) 100%
);
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
z-index: 1;
flex-grow: 0;
flex-shrink: 1;
overflow-x: hidden;
}
.main__animated__page > * {
height: 100vh;
width: 100%;
overflow-y: scroll;
overflow-x: hidden;
}
.latestMediaSlider {
width: 100%;
position: relative;
overflow: visible;
aspect-ratio: 16/9;
z-index: -1;
}
.slide {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 0;
opacity: 0;
transition: opacity var(--transition-time-default);
}
.slide .info__cont {
left: -5em;
transition: left var(--transition-time-default);
}
.slide.active .info__cont {
left: 2em;
}
.slide.active ~ .slide > .info__cont {
left: 9em;
}
.slide.active {
display: block;
z-index: 10;
opacity: 1;
}
.slide__background {
width: 100%;
height: 100vh;
position: absolute;
z-index: -1;
right: 0;
-webkit-mask-composite: destination-in;
background-size: cover !important;
opacity: 0;
transition: opacity var(--transition-time-default);
-webkit-mask-image: linear-gradient(to top, transparent, black 75%);
}
.slide__background::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(to right, rgb(0 0 0 / 0.5) 50%, transparent);
}
.slide.active .slide__background {
opacity: 1;
}
canvas.placeholder {
opacity: 1;
transition: opacity var(--transition-time-default);
position: absolute;
top: 0;
right: 0;
z-index: 2;
width: 100%;
height: 100%;
}
.slide img {
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
}
.info__cont {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-items: flex-start;
justify-content: center;
align-content: center;
width: 70%;
height: 100%;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 2em;
}
.title {
width: 100%;
font-size: 2.9em;
font-weight: 500;
overflow: hidden;
max-height: 40%;
text-overflow: ellipsis;
}
.title div {
width: 100%;
height: -webkit-fit-content;
height: -moz-fit-content;
height: fit-content;
position: static;
background-size: contain !important;
background-position: left !important;
background-repeat: no-repeat !important;
}
.title div span {
display: inline-block;
vertical-align: middle;
line-height: normal;
}
.logo div {
position: absolute;
height: 100%;
}
.title.logo {
height: 40%;
position: relative;
}
.overview {
width: 100%;
display: flex;
gap: 1em;
font-size: 0.9em;
font-weight: 600;
}
.overview div {
display: flex;
gap: 0.2em;
}
button.filled {
--clr: var(--accent-solid);
background: var(--accent-solid);
color: white;
border: 2px solid var(--clr);
}
button.outlined {
--clr: white;
background: transparent;
color: white;
border: 2px solid var(--clr);
}
.main .buttons {
width: 100%;
margin-top: 1em;
}
.info__cont button {
max-width: 15em;
padding: 0;
}
.info__cont button span {
font-size: 1.5em;
}
.icon__image {
width: 100%;
height: 100%;
font-size: 30vw;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: center;
align-items: center;
color: black;
}
.track__cont {
position: absolute;
bottom: 1em;
left: 2em;
right: 2em;
height: 1em;
display: flex;
gap: 0.5em;
align-items: center;
}
.track {
height: 5px;
width: 100%;
background: var(--main-brd-clr);
border-radius: var(--rounding-1);
transition: background var(--transition-time-default),
height var(--transition-time-default);
z-index: 30;
}
.track.active {
background: white;
}
.track:hover {
height: 10px;
background: rgb(255 255 255 / 0.5);
}
.skeleton__loader {
height: 100%;
width: 100%;
position: absolute;
background: var(--main-bg);
z-index: 100;
overflow: hidden;
}
.skeleton__loader::after {
content: "";
height: 100%;
width: 5em;
background: linear-gradient(
to right,
transparent,
rgb(255 255 255 / 0.2),
transparent
);
position: absolute;
-webkit-animation: skeletonLoader 1.5s infinite;
animation: skeletonLoader 1.5s infinite;
}
.primary__image {
width: 100%;
}
.primay__image img {
width: 0;
}
.card {
width: 16.4vw !important;
height: -webkit-fit-content;
height: -moz-fit-content;
height: fit-content;
aspect-ratio: 1.6;
flex-shrink: 0;
border-radius: var(--rounding);
display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
padding: 0;
gap: 0.5em;
}
.image__cont {
position: relative;
width: 100%;
flex: 0 0 100%;
border-radius: var(--rounding);
overflow: hidden;
box-shadow: 0px 0px 15px rgb(0 0 0 /0.3);
}
.image__cont > * {
position: absolute;
inset: 0;
}
.image__cont object {
width: 100%;
height: 100%;
}
.primary__image img {
width: 100%;
height: 100%;
}
.image__cont .icon__image {
padding: 0.07em;
border-radius: inherit;
border: 2px solid var(--main-brd-clr);
}
.card__text {
font-size: 1.2em;
font-weight: 300;
color: white;
text-align: center !important;
}
.content .grid {
display: flex;
flex-wrap: wrap;
gap: 1em;
justify-content: flex-start;
}
.content {
padding: 0 2em;
}
.content h2 {
font-size: 2em;
font-weight: 300;
display: flex;
align-items: center;
gap: 0.5em;
}
.content h2::before {
content: "";
width: 1em;
height: 2px;
display: block;
background: white;
}
.card .icon__image span {
font-size: 0.2em;
color: var(--accent-solid);
}
.primary .image__cont {
flex: 1 0 16.5vw !important;
height: 16.5vw !important;
}
.card.primary {
width: 10.5vw !important;
flex-shrink: 1;
flex-grow: 0;
flex-basis: 10.5vw !important;
height: 16.5vw !important;
gap: 0;
border-radius: var(--rounding);
background: var(--main-bg);
overflow: hidden;
}
.primary .card__text {
font-size: 1em;
white-space: nowrap;
text-overflow: ellipsis;
width: 100%;
overflow: hidden;
padding: 0 0.2em;
}
.card__text__cont {
width: 100%;
text-align: center;
height: 2.4em;
}
.primary .card__text__cont {
opacity: 0;
transition: opacity var(--transition-time-default),
transform var(--transition-time-default);
background: rgb(0 0 0 / 0.5);
transform: translateY(0);
}
.card__text.secondary {
font-size: 0.9em;
opacity: 0.7;
font-weight: 300;
}
.card.primary:hover {
z-index: 100;
}
.card.primary:hover .card__text__cont {
opacity: 1;
transform: translateY(-2.3em);
}
+120
View File
@@ -0,0 +1,120 @@
<!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">
<link rel="stylesheet" href="qrc:/renderer/css/login.css">
<link rel="stylesheet" href="qrc:/renderer/css/main.css">
<link rel="stylesheet" href="qrc:/renderer/css/global.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@6.6.96/css/materialdesignicons.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet" crossorigin>
<script src="https://cdn.jsdelivr.net/npm/simple-parallax-js@5.5.1/dist/simpleParallax.min.js"></script>
<title>JellyPlayer</title>
<script src="qrc:///qtwebchannel/qwebchannel.js"></script>
<script>
"use strict";var ReflectOwnKeys,R="object"==typeof Reflect?Reflect:null,ReflectApply=R&&"function"==typeof R.apply?R.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function ProcessEmitWarning(e){console&&console.warn&&console.warn(e)}ReflectOwnKeys=R&&"function"==typeof R.ownKeys?R.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var NumberIsNaN=Number.isNaN||function(e){return e!=e};function EventEmitter(){EventEmitter.init.call(this)}EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _getMaxListeners(e){return void 0===e._maxListeners?EventEmitter.defaultMaxListeners:e._maxListeners}function _addListener(e,t,n,r){var i,o,s;if(checkListener(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=_getMaxListeners(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,ProcessEmitWarning(u)}return e}function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=onceWrapper.bind(r);return i.listener=n,r.wrapFn=i,i}function _listeners(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?unwrapListeners(i):arrayClone(i,i.length)}function listenerCount(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function arrayClone(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function spliceOne(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function unwrapListeners(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function once(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}eventTargetAgnosticAddListener(e,t,o,{once:!0}),"error"!==t&&addErrorHandlerIfEventEmitter(e,i,{once:!0})}))}function addErrorHandlerIfEventEmitter(e,t,n){"function"==typeof e.on&&eventTargetAgnosticAddListener(e,"error",t,n)}function eventTargetAgnosticAddListener(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(e){if("number"!=typeof e||e<0||NumberIsNaN(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");defaultMaxListeners=e}}),EventEmitter.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||NumberIsNaN(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)ReflectApply(u,this,t);else{var f=u.length,v=arrayClone(u,f);for(n=0;n<f;++n)ReflectApply(v[n],this,t)}return!0},EventEmitter.prototype.addListener=function(e,t){return _addListener(this,e,t,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function(e,t){return _addListener(this,e,t,!0)},EventEmitter.prototype.onLine truncated
window.emitter = new EventEmitter();
</script>
<script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script type="module">
import { decode } from "https://cdn.jsdelivr.net/npm/blurhash@1.1.5/+esm"
import { UserApi, Configuration, LibraryApi, ItemsApi, UserLibraryApi } from 'https://cdn.jsdelivr.net/npm/@jellyfin/client-axios/+esm';
window.decode = decode;
window.UserApi = UserApi;
window.Configuration = Configuration;
window.LibraryApi = LibraryApi;
window.UserLibraryApi = UserLibraryApi;
window.ItemsApi = ItemsApi;
</script>
<link href="https://unpkg.com/material-components-web@13.0.0/dist/material-components-web.min.css" rel="stylesheet">
<script src="https://unpkg.com/material-components-web@13.0.0/dist/material-components-web.min.js"></script>
</head>
<body>
<main>
<div id="background">
<div class="purple"></div>
<div class="blue"></div>
</div>
<div class="loader">
<svg width="52" height="12" viewBox="0 0 52 12" fill="none" xmlns="http://www.w3.org/2000/svg" xml:space="preserve">
<circle cx="6" cy="6" r="6" fill="white">
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1"></animate>
</circle>
<circle cx="26" cy="6" r="6" fill="white">
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.2"></animate>
</circle>
<circle cx="46" cy="6" r="6" fill="white">
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3"></animate>
</circle>
</svg>
</div>
<div class="main__page login">
<section class="page server">
<section class="server__cont">
<div class="logo">
<img src="qrc:/assets/logo.svg" />
</div>
<div class="form__cont">
<div class="mdc-text-field mdc-text-field--outlined">
<input type="text" class="mdc-text-field__input first-name-input server__url">
<span class="mdc-notched-outline">
<span class="mdc-notched-outline__leading"></span>
<span class="mdc-notched-outline__notch">
<span class="mdc-floating-label" id="my-label-id">Server Address</span>
</span>
<span class="mdc-notched-outline__trailing"></span>
</span>
</div>
<button class="mdc-button mdc-button--raised save__server">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Save</span>
</button>
<div class="info">
<span class="mdi mdi-information-outline"></span>
<div>
Enter your Jellyfin server address above<br>
Example: https://jellyfin.mydomain.com or http://192.168.25.35:8096
</div>
</div>
</div>
</section>
</section>
<section class="page users hide">
<h3 class="title__name">Users</h3>
<section class="user__cont"></section>
<button class="mdc-button mdc-button--raised" onclick="createManualLogin(true);document.querySelector('.manual__login').classList.remove('hide');document.querySelector('.manual__login').scrollIntoView({ behavior: 'smooth' });setInterval(() => {document.querySelector('.server').classList.add('hide');}, 1000);">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Manual login</span>
</button>
<button class="mdc-button mdc-button--raised" onclick="changeServer('.users')">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Change Server</span>
</button>
</section>
<section class="page manual__login hide">
<div class="back" onclick="goBack(document.querySelector('.manual__login'), document.querySelector('.users'), 'manual__input')">
<span class="mdi mdi-keyboard-backspace"></span>
</div>
<section class="manual__input"></section>
</section>
</div>
<script defer>
document.querySelectorAll(".mdc-button").forEach(button => {
mdc.ripple.MDCRipple.attachTo(button);
});
document.querySelectorAll(".mdc-text-field").forEach(textField => {
mdc.textField.MDCTextField.attachTo(textField);
});
</script>
<script src="qrc:/renderer/js/login.js" defer></script>
<script src="qrc:/renderer/js/main.js" defer></script>
</main>
</body>
</html>
+462
View File
@@ -0,0 +1,462 @@
const serverForm = document.querySelector('.server__cont');
const serverUrl = document.querySelector('.server__url');
const saveBtn = document.querySelector('.save__server');
const user__cont = document.querySelector('.users');
let html;
var server;
function generateUUID() { // Public Domain/MIT
var d = new Date().getTime();//Timestamp
var d2 = ((typeof performance !== 'undefined') && performance.now && (performance.now()*1000)) || 0;//Time in microseconds since page-load or 0 if unsupported
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random() * 16;//random number between 0 and 16
if(d > 0){//Use timestamp until depleted
r = (d + r)%16 | 0;
d = Math.floor(d/16);
} else {//Use microseconds since page-load if supported
r = (d2 + r)%16 | 0;
d2 = Math.floor(d2/16);
}
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16);
});
}
window.onload = () => {
new QWebChannel(qt.webChannelTransport, async (channel) => {
window.backend = await channel.objects.backend;
window.getServer = async () => {
await window.backend.getValuesFromDatabaseStr("server", (data) => {
window.server = data;
console.log(`Server:${data}`);
emitter.emit('server-url', data);
return data;
});
};
window.setAuthInfoDatabase = async (userName, Pw) => {
await window.backend.setAuthInfoDatabase(userName, Pw);
};
window.getAuthinfo = async () => {
await window.backend.getAuthinfo(async (data) => {
console.log(data);
window.getServer();
emitter.on('server-url', (server) => {
emitter.emit("user-saved", [data[0], data[1], server]);
});
});
};
emitter.on("send-jf-server-info", (server) => {
window.backend.saveServer(server, (dat) => {
console.log(`Is Jf Server = ${dat}`);
if (dat == true) {
emitter.emit('is-jf-server');
} else if (dat == false) {
emitter.emit('not-jf-server');
}
});
});
window.serverOnline = await window.backend.onStartup();
console.log(window.serverOnline);
if (window.serverOnline == "serverGoTrue") {
emitter.emit("serverGo-true");
} else if (window.serverOnline == "serverGoFalse") {
emitter.emit("serverGo-false");
} else if(window.serverOnline == "openHomeTrue") {
window.getAuthinfo();
} else if (window.serverOnline == "serverOffline") {
emitter.emit("server-url", "offline");
}
});
emitter.on("get-server", async () => {
window.getServer();
});
document.querySelector(".loader").classList.add("hide");
};
const base_token = `MediaBrowser Client="JellyPlayer", Device="${window.navigator.userAgent}", DeviceId="${generateUUID()}", Version="1.0.0"`;
const vanilla_token = `${base_token}, Token=""`;
const createUserList = async (server) => {
document.querySelector('.loader').classList.remove('hide');
let users = await window.userApi.getPublicUsers();
let userlist = users.data;
console.log(userlist);
if (userlist.length != 0) {
userlist.forEach(user => {
if (user.PrimaryImageTag) {
html = `<div class="user__card" data-user="${user.Name}" data-userid="${user.Id}" onclick="createEnterPassword(this.dataset.user, true, this.dataset.userid)">
<div class="content">
<img class="user__img" src="${server}/Users/${user.Id}/Images/Primary">
<h1>${user.Name}</h1>
</div>
</div>`;
}
else if (!user.PrimaryImageTag) {
html = `<div class="user__card" data-user="${user.Name}" onclick="createEnterPassword(this.dataset.user, false)">
<div class="content">
<img class="user__svg" src="../svg/avatar.svg">
<h1>${user.Name}</h1>
</div>
</div>`;
}
document.querySelector('.user__cont').insertAdjacentHTML('beforeend', html);
});
document.querySelector('.users').classList.remove('hide');
document.querySelector(".purple").classList.add("active");
document.querySelector('.users').scrollIntoView({ behavior: "smooth" });
document.querySelector('.loader').classList.add('hide');
setTimeout(() => {
document.querySelector('.server').classList.add('hide');
}, 1000);
}else if (userlist.length == 0) {
document.querySelector('.loader').classList.add('hide');
createManualLogin(false);
setTimeout(() => {
document.querySelector('.server').classList.add('hide');
}, 1000);
}
};
const closeDialog = () => {
document.querySelector('.dialog__cont').classList.remove('active');
document.querySelector('.dialog__close').classList.remove('active');
document.querySelector('.dialog__cont').classList.add('fadeOut');
document.querySelector('.dialog__close').classList.add('fadeOut');
setTimeout(() => {
document.querySelector('.dialog__cont').classList.remove('fadeOut');
document.querySelector('.dialog__close').classList.remove('fadeOut');
document.querySelector('.dialog__cont').remove();
}, 305);
};
const createAlert = (type, msg, page) => {
html = `<div class="alert ${type}">
<div class="icon">
<span class="mdi mdi-alert-octagram-outline"></span>
</div>
<div class="msg">
${msg}
</div>
<div class="load"></div>
</div>`;
document.querySelector(page).insertAdjacentHTML('beforeend', html);
setTimeout(() => {
document.querySelector('.alert').classList.add('goOut');
setTimeout(() => {
document.querySelector('.alert').remove();
}, 1000);
}, 3005);
};
const createDialog = (title, msg, btn, type, page, exitBg) => {
html = `<div class="dialog__cont">
<div class="dialog ${type}">
<div class="icon">
<span class="mdi mdi-alert-octagram-outline"></span>
</div>
<div class="title">
${title}
</div>
<div class="msg">
${msg}
</div>
</div>
<div class="dialog__close"></div>
</div>`;
document.querySelector(page).insertAdjacentHTML('beforeend', html);
if (btn == "yes__no") {
html = `<div class="buttons">
<button class="mdc-button mdc-button--raised" onclick="sendClearDataRequest()">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Yes</span>
</button>
<button class="mdc-button mdc-button--raised" onclick="closeDialog()">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">No</span>
</button>
</div>`;
document.querySelector('.dialog').insertAdjacentHTML('beforeend', html);
} else if (btn == "remove__server") {
html = `<div class="buttons">
<button class="mdc-button mdc-button--raised" onclick="sendClearDataRequest()">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Remove Server</span>
</button>
<button class="mdc-button mdc-button--raised" onclick="window.backend.restart()">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Restart JellyPlayer</span>
</button>
</div>`;
document.querySelector('.dialog').insertAdjacentHTML('beforeend', html);
}
document.querySelectorAll(".mdc-button").forEach(button => {
mdc.ripple.MDCRipple.attachTo(button);
});
document.querySelector('.dialog').classList.add('active');
document.querySelector('.dialog__close').classList.add('active');
if (!exitBg) {
document.querySelector('.dialog__close').addEventListener('click', () => {
closeDialog();
});
}
document.querySelector('.loader').classList.add('hide');
};
const sendClearDataRequest = () => {
window.backend.clearStorage();
};
const createManualLogin = (from_users) => {
html = `<h3 class="title__name">Login</h3>
<div class="manual__form user">
<div class="mdc-text-field mdc-text-field--outlined">
<input type="text" class="mdc-text-field__input first-name-input" id="user__name">
<span class="mdc-notched-outline">
<span class="mdc-notched-outline__leading"></span>
<span class="mdc-notched-outline__notch">
<span class="mdc-floating-label" id="my-label-id">Username</span>
</span>
<span class="mdc-notched-outline__trailing"></span>
</span>
</div>
<div class="mdc-text-field mdc-text-field--outlined mdc-text-field--with-trailing-icon">
<input type="password" class="mdc-text-field__input first-name-input" id="user__password">
<span class="mdc-notched-outline">
<span class="mdc-notched-outline__leading"></span>
<span class="mdc-notched-outline__notch">
<span class="mdc-floating-label" id="my-label-id">Password</span>
</span>
<span class="mdc-notched-outline__trailing"></span>
</span>
<i class="mdi mdi-eye-outline mdc-text-field__icon mdc-text-field__icon--trailing" tabindex="0" data-passvisible="false" role="button" onclick="if(this.dataset.passvisible=='false'){document.querySelector('#user__password').setAttribute('type', 'text');this.dataset.passvisible='true';this.classList.add('mdi-eye-off-outline');this.classList.remove('mdi-eye-outline')} else if(this.dataset.passvisible=='true'){document.querySelector('#user__password').setAttribute('type', 'password');this.dataset.passvisible='false';this.classList.add('mdi-eye-outline');this.classList.remove('mdi-eye-off-outline')}"></i>
</div>
<div class="mdc-form-field">
<div class="mdc-checkbox">
<input type="checkbox"
class="mdc-checkbox__native-control"
id="remember__user"/>
<div class="mdc-checkbox__background">
<svg class="mdc-checkbox__checkmark"
viewBox="0 0 24 24">
<path class="mdc-checkbox__checkmark-path"
fill="none"
d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
</svg>
<div class="mdc-checkbox__mixedmark"></div>
</div>
<div class="mdc-checkbox__ripple"></div>
</div>
<label for="remember__user">Remember me</label>
</div>
<button class="mdc-button mdc-button--raised" onclick="sendAuthInfo(document.querySelector('#user__name').value, document.querySelector('#user__password').value, document.querySelector('#remember__user'))">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Login</span>
</button>
<button class="mdc-button mdc-button--raised" onclick="changeServer('.manual__login')">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Change Server</span>
</button>
</div>`;
if (from_users == false) {
document.querySelector('.back').classList.add("hide");
}
document.querySelector('.manual__input').insertAdjacentHTML('beforeend', html);
document.querySelectorAll(".mdc-button").forEach(button => {
mdc.ripple.MDCRipple.attachTo(button);
});
document.querySelectorAll(".mdc-text-field").forEach(textField => {
mdc.textField.MDCTextField.attachTo(textField);
});
mdc.checkbox.MDCCheckbox.attachTo(document.querySelector(".mdc-checkbox"));
document.querySelector('.manual__login').classList.remove('hide');
document.querySelector(".purple").classList.add("active");
document.querySelector(".blue").classList.add("active");
document.querySelector('.manual__login').scrollIntoView({ behavior: "smooth" });
};
const createEnterPassword = (userName, userImg, userId) => {
html = `<div class="user">
<div class="user__info">
<h3 class="title__name">Hello, ${userName}</h3>
</div>
<div class="mdc-text-field mdc-text-field--outlined mdc-text-field--with-trailing-icon">
<input type="password" class="mdc-text-field__input first-name-input" id="user__password">
<span class="mdc-notched-outline">
<span class="mdc-notched-outline__leading"></span>
<span class="mdc-notched-outline__notch">
<span class="mdc-floating-label" id="my-label-id">Password</span>
</span>
<span class="mdc-notched-outline__trailing"></span>
</span>
<i class="mdi mdi-eye-outline mdc-text-field__icon mdc-text-field__icon--trailing" tabindex="0" data-passvisible="false" role="button" onclick="if(this.dataset.passvisible=='false'){document.querySelector('#user__password').setAttribute('type', 'text');this.dataset.passvisible='true';this.classList.add('mdi-eye-off-outline');this.classList.remove('mdi-eye-outline')} else if(this.dataset.passvisible=='true'){document.querySelector('#user__password').setAttribute('type', 'password');this.dataset.passvisible='false';this.classList.add('mdi-eye-outline');this.classList.remove('mdi-eye-off-outline')}"></i>
</div>
<div class="mdc-form-field">
<div class="mdc-checkbox">
<input type="checkbox"
class="mdc-checkbox__native-control"
id="remember__user"/>
<div class="mdc-checkbox__background">
<svg class="mdc-checkbox__checkmark"
viewBox="0 0 24 24">
<path class="mdc-checkbox__checkmark-path"
fill="none"
d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
</svg>
<div class="mdc-checkbox__mixedmark"></div>
</div>
<div class="mdc-checkbox__ripple"></div>
</div>
<label for="remember__user">Remember me</label>
</div>
<button class="mdc-button mdc-button--raised" data-user="${userName}" onclick="sendAuthInfo(this.dataset.user, document.querySelector('#user__password').value, document.querySelector('#remember__user'))">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Login</span>
</button>
<button class="mdc-button mdc-button--raised" onclick="changeServer('.manual__login')">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Change Server</span>
</button>
</div>`;
document.querySelector('.manual__input').insertAdjacentHTML('beforeend', html);
if (userImg == true) {
html = `<img class="user__img" src="${window.server}/Users/${userId}/Images/Primary"></img>`;
document.querySelector('.user__info').insertAdjacentHTML('afterbegin', html);
} else if (userImg == false) {
html = `<img class="user__svg" data-tp src="../svg/avatar.svg">`;
document.querySelector('.user__info').insertAdjacentHTML('afterbegin', html);
}
document.querySelectorAll(".mdc-button").forEach(button => {
mdc.ripple.MDCRipple.attachTo(button);
});
document.querySelectorAll(".mdc-text-field").forEach(textField => {
mdc.textField.MDCTextField.attachTo(textField);
});
mdc.checkbox.MDCCheckbox.attachTo(document.querySelector(".mdc-checkbox"));
document.querySelector('.manual__login').classList.remove('hide');
document.querySelector(".blue").classList.add("active");
document.querySelector('.manual__login').scrollIntoView({ behavior: "smooth" });
};
const sendAuthInfo = (userName, password, checkbox) => {
document.querySelector(".loader").classList.remove("hide");
var authUser;
const auth = async () => {
try {
authUser = await window.userApi.authenticateUserByName({
authenticateUserByName: {
Username: userName,
Pw: password
}
});
emitter.emit("logged-in", [window.server, userName, password ,authUser.data.AccessToken, `${base_token}, Token=${authUser.data.AccessToken}`, authUser.data.User.Id, authUser.data.User.Name, authUser.data]);
} catch (error) {
document.querySelector(".loader").classList.add("hide");
console.log(`[Err]Can't login, Reason: ${error}`);
createAlert("error", "Invalid Username or Password entered try again", ".manual__login");
return "err";
}
};
if (auth() != "err") {
console.log(checkbox.checked);
if (checkbox.checked == true) {
window.setAuthInfoDatabase(userName, password);
}
}
};
const changeServer = (page) => {
createDialog('Are you sure?', "You want to remove this server", "yes__no", "warning", page);
};
const goBack = (from, to, loginForm) => {
to.classList.remove("hide");
to.scrollIntoView({ behavior: "smooth" });
document.querySelector(".blue").classList.remove("active");
setTimeout(() => {
from.classList.add('hide');
from.querySelector(`.${loginForm}`).remove();
html = `<section class="${loginForm}"></section>`;
from.insertAdjacentHTML('beforeend', html);
}, 1000);
};
emitter.on("serverGo-true", () => {
emitter.emit("get-server");
emitter.on("server-url", (server) => {
window.ax = axios.create({
headers: {
Authorization: vanilla_token
}
});
window.userApi = new window.UserApi(undefined, server, window.ax);
document.querySelector('.loader').classList.remove('hide');
document.querySelector('.loader').classList.add('hide');
createUserList(server);
});
});
emitter.on("server-url", (server) => {
if (server == "offline") {
createDialog("Error", "Can't connect to Jellyfin server", "remove__server", "error", ".server", true);
}
});
emitter.on("user-saved", (user) => {
document.querySelector(".loader").classList.remove("hide");
window.ax = axios.create({
headers: {
Authorization: vanilla_token
}
});
window.userApi = new window.UserApi(undefined, user[2], window.ax);
var authUser;
const auth = async () => {
try {
authUser = await window.userApi.authenticateUserByName({
authenticateUserByName: {
Username: user[0],
Pw: user[1]
}
});
emitter.emit("logged-in", [window.server, user[0], user[1], authUser.data.AccessToken, `${base_token}, Token=${authUser.data.AccessToken}`, authUser.data.User.Id, authUser.data.User.Name, authUser.data]);
} catch (error) {
console.log(`[Err]Can't login, Reason: ${error}`);
document.querySelector('.loader').classList.add('hide');
createDialog("Error", "Invalid Username or Password", "remove__server", "error", ".server", true);
}
};
auth();
});
emitter.on("serverGo-false", () => {
saveBtn.addEventListener('click', () => {
emitter.emit("send-jf-server-info", serverUrl.value);
document.querySelector('.loader').classList.remove('hide');
}, true);
emitter.on('not-jf-server', () => {
document.querySelector('.loader').classList.add('hide');
createAlert('error', "Can't detrmine if the give server address is a valid Jellyfin server", ".server");
});
emitter.on('is-jf-server', () => {
emitter.emit('get-server');
emitter.on("server-url", (server) => {
window.ax = axios.create({
headers: {
Authorization: vanilla_token
}
});
window.userApi = new window.UserApi(undefined, server, window.ax);
document.querySelector('.loader').classList.remove('hide');
document.querySelector('.loader').classList.add('hide');
createUserList(server);
});
});
});
+299
View File
@@ -0,0 +1,299 @@
const mainPageCont = document.querySelector("main");
const loginPage = document.querySelector(".login");
const bg = document.querySelector("#background");
let blurhashval;
let blurhasdpix;
let backdrop;
let itemInfo;
const pageTransition = (from, to, background) => {
document.querySelector(from).classList.add("moveFadeOut");
document.querySelector(to).classList.add("moveFadeIn");
setTimeout(() => {
document.querySelector(to).classList.remove("moveFadeIn");
document.querySelector(to).classList.add("active");
document.querySelector(from).classList.remove("moveFadeOut");
document.querySelector(from).classList.add("hide");
}, 5000);
if (background == false) {
bg.querySelector(".purple").classList.remove("active");
bg.querySelector(".blue").classList.remove("active");
}
};
const ticksToMin = (ticks) => {
return Math.round(ticks / 600000000);
};
const showSlide = (index) => {
index = Number(index);
let slide = document.querySelectorAll(".slide")[index + 1];
let track = document.querySelectorAll(".track")[index + 1];
document.querySelector(".slide.active").classList.remove("active");
document.querySelector(".track.active").classList.remove("active");
slide.classList.add("active");
track.classList.add("active");
};
const sliderAnim = (slider) => {
var slides = document.querySelectorAll(slider);
sliderAnim.timer = setInterval(() => {
sliderAnim.index = Array.prototype.indexOf.call(slides, document.querySelector(".slide.active"));
if (sliderAnim.index + 1 >= slides.length) {
sliderAnim.index = 0;
}
showSlide(sliderAnim.index);
}, 5000);
document.querySelectorAll(".track").forEach(track => {
track.addEventListener("click", () => {
showSlide(track.dataset.index - 1);
clearInterval(sliderAnim.timer);
sliderAnim.timer = setInterval(() => {
sliderAnim.index = Array.prototype.indexOf.call(slides, document.querySelector(".slide.active"));
if (sliderAnim.index + 1 >= slides.length) {
sliderAnim.index = -1;
}
showSlide(sliderAnim.index);
sliderAnim.index += 1;
}, 5000);
});
});
};
const createCardGrid = (type, data) => {
let typeClass = type.replace(/\s+/g, '');
if (data.length != 0) {
document.querySelector(".library__page").insertAdjacentHTML("beforeend", `<div class="content ${typeClass.toLowerCase()}"><div class="grid"></div></div>`);
setTimeout(() => {
document.querySelector(`.content.${typeClass.toLowerCase()}`).insertAdjacentHTML("afterbegin", `<h2>${type}</h2>`);
}, 1);
setTimeout(() => {
for (let item of data) {
html = `<div class="card" data-index="${data.indexOf(item)}">
<div class="image__cont">
<canvas class="placeholder"></canvas>
<div class="icon__image">
<span class="mdi">
</div>
<div class="primary__image hide">
<img>
</div>
</div>
<div class="card__text__cont">
<div class="card__text primary">${item.Name}</div>
</div>
</div>`;
document.querySelector(`.content.${typeClass.toLowerCase()} .grid`).insertAdjacentHTML("beforeend", html);
if (item.CollectionType) {
if (item.ImageTags.Primary) {
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .primary__image img`).setAttribute("src", `${window.server}/Items/${item.Id}/Images/Primary?imgTag=${item.ImageTags.Primary[0]}`);
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .primary__image`).classList.remove("hide");
}
switch (item.CollectionType) {
case "books":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-book-multiple-outline");
break;
case "boxsets":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-folder-outline");
break;
case "movies":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-play-box-multiple-outline");
break;
case "music":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-music-box-multiple-outline");
break;
case "playlists":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-playlist-music");
break;
case "tvshows":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-youtube-tv");
break;
}
} else if (item.Type) {
if (item.ImageTags.Primary) {
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .primary__image img`).setAttribute("src", `${window.server}/Items/${item.Id}/Images/Primary?imgTag=${item.ImageTags.Primary[0]}`);
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .primary__image`).classList.remove("hide");
}
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .card__text__cont`).insertAdjacentHTML("beforeend", `<div class="card__text secondary">${item.ProductionYear}</div>`);
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"]`).classList.add("primary");
switch (item.Type) {
case "books":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-book-multiple-outline");
break;
case "boxsets":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-folder-outline");
break;
case "Movie":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-play-box-multiple-outline");
break;
case "music":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-music-box-multiple-outline");
break;
case "playlists":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-playlist-music");
break;
case "tvshows":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-youtube-tv");
break;
}
}
}
}, 0);
}
};
emitter.on("logged-in", async (user) => {
html = `<div class="main__page main">
<section class="menu side__menu">
<div class="user__menu">
<div class="skeleton__loader"></div>
<div class="image"></div>
<div class="text">Hello, ${user[6]}</div>
</div>
<div class="submenu">
<div class="skeleton__loader"></div>
<div class="sub">
<div class="menu__button" data-page="home">Home</div>
</div>
</div>
</section>
<section class="main__animated__page">
<div class="library__page current" data-page="home">
<div class="skeleton__loader"></div>
<div class="latestMediaSlider">
<div class="track__cont"></div>
</div>
</div>
</section>
</div>`;
mainPageCont.insertAdjacentHTML("beforeend", html);
pageTransition(".login", ".main", false);
document.querySelector(".loader").classList.add("hide");
const UserConf = new Configuration({
apiKey: user[4],
basePath: user[0],
username: user[1],
password: user[2],
accessToken: user[3]
});
const libApi = new LibraryApi(UserConf);
const itemsApi = new ItemsApi(UserConf);
const userLibApi = new UserLibraryApi(UserConf);
const libsRaw = await libApi.getMediaFolders();
const libs = libsRaw.data.Items;
const latestMedia = await userLibApi.getLatestMedia({
userId: user[5]
});
if (!user[7].User.PrimaryImageTag) {
html = `<img src="../svg/avatar.svg">`;
document.querySelector(".user__menu .image").insertAdjacentHTML("afterbegin", html);
} else if (user[7].User.PrimaryImageTag) {
html = `<img src="${window.server}/Users/${user[5]}/Images/Primary">`;
document.querySelector(".user__menu .image").insertAdjacentHTML("afterbegin", html);
}
setTimeout(() => {
for (let item of libs) {
html = `<div class="menu__button" data-page="${item.Name.toLowerCase()}">${item.Name}</div>`;
document.querySelector(".submenu .sub").insertAdjacentHTML("beforeend", html);
}
}, 0);
document.querySelectorAll(".menu__button").forEach(btn => {
if (btn.dataset.page == document.querySelector(".library__page.current").dataset.page) {
btn.classList.add("active");
}
});
document.querySelectorAll(".menu .skeleton__loader").forEach(sk => {
sk.classList.add("hide");
});
for (let item of latestMedia.data) {
document.querySelector(".latestMediaSlider .track__cont").insertAdjacentHTML("beforeend", `<div class="track" data-index=${latestMedia.data.indexOf(item)}></div>`);
if (item.ImageBlurHashes.Backdrop) {
html = `<div class="slide" data-index=${latestMedia.data.indexOf(item)}>
<div class="slide__background" data-depth="0.8">
<img src="${window.server}/Items/${item.Id}/Images/Backdrop?imgTag=${item.BackdropImageTags[0]}">
</div>
<div class="info__cont" data-depth="0.2">
<div class="title"></div>
<div class="overview">
<div>${item.ProductionYear}</div>
<div><span class="mdi mdi-star-half-full"></span>${item.CommunityRating}</div>
<div>${ticksToMin(item.RunTimeTicks)}min</div>
</div>
<div class="buttons">
<button class="filled clicky">
<span>Play</span>
</button>
<button class="outlined clicky">
<span>More Info</span>
</button>
</div>
</div>
</div>`;
document.querySelector(".latestMediaSlider").insertAdjacentHTML("beforeend", html);
if (item.ImageTags.Logo) {
html = `<div style="background: url('${window.server}/Items/${item.Id}/Images/Logo?imgTag=${item.ImageTags.Logo[0]}');">`;
document.querySelector(`[data-index='${latestMedia.data.indexOf(item)}'] .info__cont .title`).insertAdjacentHTML("beforeend", html);
document.querySelector(`[data-index='${latestMedia.data.indexOf(item)}'] .info__cont .title`).classList.add("logo");
} else {
document.querySelector(".info__cont .title").insertAdjacentHTML("beforeend", item.Name);
}
} else {
if (item.Type == "AudioBook") {
html = `<div class="slide" data-index="${latestMedia.data.indexOf(item)}">
<div class="slide__background" data-depth="0.8">
<div class="icon__image">
<span class="mdi mdi-book-music"></span>
</div>
</div>
<div class="info__cont" data-depth="0.2">
<div class="title"></div>
<div class="overview">
<div>${item.ProductionYear}</div>
<div><span class="mdi mdi-star-half-full"></span>${item.CommunityRating}</div>
<div>${ticksToMin(item.RunTimeTicks)}min</div>
</div>
<div class="buttons">
<button class="filled clicky">
<span>Play</span>
</button>
<button class="outlined clicky">
<span>More Info</span>
</button>
</div>
</div>
</div>`;
document.querySelector(".latestMediaSlider").insertAdjacentHTML("beforeend", html);
if (item.ImageTags.Logo) {
html = `<div style="background: url('${window.server}/Items/${item.Id}/Images/Logo?imgTag=${item.ImageTags.Logo[0]}');">`;
document.querySelector(`[data-index='${latestMedia.data.indexOf(item)}'] .info__cont .title`).insertAdjacentHTML("beforeend", html);
document.querySelector(`[data-index='${latestMedia.data.indexOf(item)}'] .info__cont .title`).classList.add("logo");
} else {
document.querySelector(`[data-index="${latestMedia.data.indexOf(item)}"] .title`).insertAdjacentHTML("beforeend", `<div>${item.Name}</div>`);
}
}
// } else if (!item) { }
}
if (latestMedia.data.indexOf(item) == 0) {
document.querySelector(".slide").classList.add("active");
document.querySelector(`.track[data-index="${Array.prototype.indexOf.call(document.querySelectorAll(".slide"), document.querySelector(".slide.active"))}"]`).classList.add("active");
}
}
if (latestMedia.data.length > 1) {
sliderAnim(".slide");
} else {
document.querySelector(".track__cont").classList.add("hide");
}
createCardGrid("Library", libs);
let latest;
setTimeout(async () => {
for (let library of libs){
latest = await userLibApi.getLatestMedia({
userId: user[5],
parentId: library.Id
});
createCardGrid(library.Name, latest.data);
}
}, 0);
document.querySelectorAll(".main__animated__page .skeleton__loader").forEach(sk => {
sk.classList.add("hide");
});
});
@@ -1,14 +1,14 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 6C11 6.79565 10.6839 7.55871 10.1213 8.12132C9.55871 8.68393 8.79565 9 8 9C7.20435 9 6.44129 8.68393 5.87868 8.12132C5.31607 7.55871 5 6.79565 5 6C5 5.20435 5.31607 4.44129 5.87868 3.87868C6.44129 3.31607 7.20435 3 8 3C8.79565 3 9.55871 3.31607 10.1213 3.87868C10.6839 4.44129 11 5.20435 11 6Z" fill="url(#paint0_linear_2_5)"/> <path d="M11 6C11 6.79565 10.6839 7.55871 10.1213 8.12132C9.55871 8.68393 8.79565 9 8 9C7.20435 9 6.44129 8.68393 5.87868 8.12132C5.31607 7.55871 5 6.79565 5 6C5 5.20435 5.31607 4.44129 5.87868 3.87868C6.44129 3.31607 7.20435 3 8 3C8.79565 3 9.55871 3.31607 10.1213 3.87868C10.6839 4.44129 11 5.20435 11 6Z" fill="url(#paint0_linear_102_2)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 8C0 5.87827 0.842855 3.84344 2.34315 2.34315C3.84344 0.842855 5.87827 0 8 0C10.1217 0 12.1566 0.842855 13.6569 2.34315C15.1571 3.84344 16 5.87827 16 8C16 10.1217 15.1571 12.1566 13.6569 13.6569C12.1566 15.1571 10.1217 16 8 16C5.87827 16 3.84344 15.1571 2.34315 13.6569C0.842855 12.1566 0 10.1217 0 8ZM8 1C6.68178 1.00007 5.39037 1.37236 4.2744 2.07403C3.15844 2.77569 2.26328 3.77821 1.69196 4.96619C1.12065 6.15418 0.896386 7.47934 1.045 8.78916C1.19361 10.099 1.70905 11.3402 2.532 12.37C3.242 11.226 4.805 10 8 10C11.195 10 12.757 11.225 13.468 12.37C14.2909 11.3402 14.8064 10.099 14.955 8.78916C15.1036 7.47934 14.8794 6.15418 14.308 4.96619C13.7367 3.77821 12.8416 2.77569 11.7256 2.07403C10.6096 1.37236 9.31822 1.00007 8 1Z" fill="url(#paint1_linear_2_5)"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M0 8C0 5.87827 0.842855 3.84344 2.34315 2.34315C3.84344 0.842855 5.87827 0 8 0C10.1217 0 12.1566 0.842855 13.6569 2.34315C15.1571 3.84344 16 5.87827 16 8C16 10.1217 15.1571 12.1566 13.6569 13.6569C12.1566 15.1571 10.1217 16 8 16C5.87827 16 3.84344 15.1571 2.34315 13.6569C0.842855 12.1566 0 10.1217 0 8ZM8 1C6.68178 1.00007 5.39037 1.37236 4.2744 2.07403C3.15844 2.77569 2.26328 3.77821 1.69196 4.96619C1.12065 6.15418 0.896386 7.47934 1.045 8.78916C1.19361 10.099 1.70905 11.3402 2.532 12.37C3.242 11.226 4.805 10 8 10C11.195 10 12.757 11.225 13.468 12.37C14.2909 11.3402 14.8064 10.099 14.955 8.78916C15.1036 7.47934 14.8794 6.15418 14.308 4.96619C13.7367 3.77821 12.8416 2.77569 11.7256 2.07403C10.6096 1.37236 9.31822 1.00007 8 1Z" fill="url(#paint1_linear_102_2)"/>
<defs> <defs>
<linearGradient id="paint0_linear_2_5" x1="0" y1="0" x2="16" y2="16" gradientUnits="userSpaceOnUse"> <linearGradient id="paint0_linear_102_2" x1="3" y1="2.5" x2="14" y2="13.5" gradientUnits="userSpaceOnUse">
<stop offset="0.249497" stop-color="#3E2247"/> <stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#003C50"/> <stop offset="1" stop-color="#00A4DC"/>
</linearGradient> </linearGradient>
<linearGradient id="paint1_linear_2_5" x1="0" y1="0" x2="16" y2="16" gradientUnits="userSpaceOnUse"> <linearGradient id="paint1_linear_102_2" x1="3" y1="2.5" x2="14" y2="13.5" gradientUnits="userSpaceOnUse">
<stop offset="0.249497" stop-color="#3E2247"/> <stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#003C50"/> <stop offset="1" stop-color="#00A4DC"/>
</linearGradient> </linearGradient>
</defs> </defs>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

+11
View File
@@ -0,0 +1,11 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M32 160V144C32 139.757 33.6857 135.687 36.6863 132.686C39.6869 129.686 43.7565 128 48 128C52.2435 128 56.3131 129.686 59.3137 132.686C62.3143 135.687 64 139.757 64 144V160H80C84.2435 160 88.3131 161.686 91.3137 164.686C94.3143 167.687 96 171.757 96 176C96 180.243 94.3143 184.313 91.3137 187.314C88.3131 190.314 84.2435 192 80 192H16C11.7565 192 7.68687 190.314 4.68629 187.314C1.68571 184.313 0 180.243 0 176C0 171.757 1.68571 167.687 4.68629 164.686C7.68687 161.686 11.7565 160 16 160H32ZM32 256V240C32 235.757 33.6857 231.687 36.6863 228.686C39.6869 225.686 43.7565 224 48 224C52.2435 224 56.3131 225.686 59.3137 228.686C62.3143 231.687 64 235.757 64 240V256H80C84.2435 256 88.3131 257.686 91.3137 260.686C94.3143 263.687 96 267.757 96 272C96 276.243 94.3143 280.313 91.3137 283.314C88.3131 286.314 84.2435 288 80 288H16C11.7565 288 7.68687 286.314 4.68629 283.314C1.68571 280.313 0 276.243 0 272C0 267.757 1.68571 263.687 4.68629 260.686C7.68687 257.686 11.7565 256 16 256H32ZM32 352V336C32 331.757 33.6857 327.687 36.6863 324.686C39.6869 321.686 43.7565 320 48 320C52.2435 320 56.3131 321.686 59.3137 324.686C62.3143 327.687 64 331.757 64 336V352H80C84.2435 352 88.3131 353.686 91.3137 356.686C94.3143 359.687 96 363.757 96 368C96 372.243 94.3143 376.313 91.3137 379.314C88.3131 382.314 84.2435 384 80 384H16C11.7565 384 7.68687 382.314 4.68629 379.314C1.68571 376.313 0 372.243 0 368C0 363.757 1.68571 359.687 4.68629 356.686C7.68687 353.686 11.7565 352 16 352H32Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M192 0H96C79.0261 0 62.7475 6.74284 50.7452 18.7452C38.7428 30.7475 32 47.0261 32 64V96H64V64C64 55.5131 67.3714 47.3737 73.3726 41.3726C79.3737 35.3714 87.5131 32 96 32H192V0ZM384 32H416C424.487 32 432.626 35.3714 438.627 41.3726C444.629 47.3737 448 55.5131 448 64V448C448 456.487 444.629 464.626 438.627 470.627C432.626 476.629 424.487 480 416 480H96C87.5131 480 79.3737 476.629 73.3726 470.627C67.3714 464.626 64 456.487 64 448V416H32V448C32 464.974 38.7428 481.253 50.7452 493.255C62.7475 505.257 79.0261 512 96 512H416C432.974 512 449.253 505.257 461.255 493.255C473.257 481.253 480 464.974 480 448V64C480 47.0261 473.257 30.7475 461.255 18.7452C449.253 6.74284 432.974 0 416 0H384V32Z" fill="white"/>
<path d="M384 256V32V0H192V32V256C191.994 258.834 192.74 261.618 194.163 264.069C195.586 266.519 197.634 268.548 200.097 269.948C202.561 271.347 205.353 272.067 208.186 272.034C211.019 272.001 213.793 271.216 216.224 269.76L288 226.656L359.776 269.728C362.204 271.183 364.975 271.968 367.806 272.002C370.637 272.036 373.426 271.319 375.889 269.923C378.352 268.528 380.4 266.503 381.825 264.057C383.25 261.611 384.001 258.831 384 256Z" fill="url(#paint0_radial_101_14)"/>
<defs>
<radialGradient id="paint0_radial_101_14" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(374 256) rotate(-125.927) scale(316.143 296.384)">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</radialGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

+10
View File
@@ -0,0 +1,10 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M80 128C75.7565 128 71.6869 126.314 68.6863 123.314C65.6857 120.313 64 116.243 64 112C64 107.757 65.6857 103.687 68.6863 100.686C71.6869 97.6857 75.7565 96 80 96H432C436.243 96 440.313 97.6857 443.314 100.686C446.314 103.687 448 107.757 448 112C448 116.243 446.314 120.313 443.314 123.314C440.313 126.314 436.243 128 432 128H80ZM144 64C139.757 64 135.687 62.3143 132.686 59.3137C129.686 56.3131 128 52.2435 128 48C128 43.7565 129.686 39.6869 132.686 36.6863C135.687 33.6857 139.757 32 144 32H368C372.243 32 376.313 33.6857 379.314 36.6863C382.314 39.6869 384 43.7565 384 48C384 52.2435 382.314 56.3131 379.314 59.3137C376.313 62.3143 372.243 64 368 64H144ZM0 432C0 444.73 5.05713 456.939 14.0589 465.941C23.0606 474.943 35.2696 480 48 480H464C476.73 480 488.939 474.943 497.941 465.941C506.943 456.939 512 444.73 512 432V208C512 195.27 506.943 183.061 497.941 174.059C488.939 165.057 476.73 160 464 160H48C35.2696 160 23.0606 165.057 14.0589 174.059C5.05713 183.061 0 195.27 0 208L0 432ZM200.256 226.016C202.752 224.632 205.572 223.941 208.425 224.014C211.277 224.087 214.059 224.922 216.48 226.432L344.48 306.432C346.781 307.87 348.679 309.87 349.994 312.244C351.31 314.617 352 317.286 352 320C352 322.714 351.31 325.383 349.994 327.756C348.679 330.13 346.781 332.13 344.48 333.568L216.48 413.568C214.058 415.082 211.275 415.92 208.42 415.995C205.565 416.07 202.742 415.379 200.244 413.994C197.746 412.61 195.664 410.582 194.214 408.121C192.764 405.66 192 402.856 192 400V240C192.003 237.144 192.77 234.342 194.222 231.883C195.674 229.424 197.757 227.398 200.256 226.016Z" fill="white"/>
<path d="M200.256 226.016C202.752 224.632 205.572 223.941 208.425 224.014C211.277 224.087 214.059 224.922 216.48 226.432L344.48 306.432C346.781 307.87 348.679 309.87 349.994 312.244C351.31 314.617 352 317.286 352 320C352 322.714 351.31 325.383 349.994 327.756C348.679 330.13 346.781 332.13 344.48 333.568L216.48 413.568C214.058 415.082 211.275 415.92 208.42 415.995C205.565 416.07 202.742 415.379 200.244 413.994C197.746 412.61 195.664 410.582 194.214 408.121C192.764 405.66 192 402.856 192 400V240C192.003 237.144 192.77 234.342 194.222 231.883C195.674 229.424 197.757 227.398 200.256 226.016Z" fill="url(#paint0_linear_101_11)"/>
<defs>
<linearGradient id="paint0_linear_101_11" x1="201" y1="226" x2="293" y2="366" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 665 B

After

Width:  |  Height:  |  Size: 665 B

+15
View File
@@ -0,0 +1,15 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 32C0 23.5131 3.37142 15.3737 9.37258 9.37258C15.3737 3.37142 23.5131 0 32 0L480 0C488.487 0 496.626 3.37142 502.627 9.37258C508.629 15.3737 512 23.5131 512 32V480C512 488.487 508.629 496.626 502.627 502.627C496.626 508.629 488.487 512 480 512H32C23.5131 512 15.3737 508.629 9.37258 502.627C3.37142 496.626 0 488.487 0 480V32ZM133 32C130.239 32 128 34.2386 128 37V219C128 221.761 130.239 224 133 224H379C381.761 224 384 221.761 384 219V37C384 34.2386 381.761 32 379 32H133ZM384 293C384 290.239 381.761 288 379 288H133C130.239 288 128 290.239 128 293V475C128 477.761 130.239 480 133 480H379C381.761 480 384 477.761 384 475V293ZM37 32C34.2386 32 32 34.2386 32 37V91C32 93.7614 34.2386 96 37 96H91C93.7614 96 96 93.7614 96 91V37C96 34.2386 93.7614 32 91 32H37ZM96 133C96 130.239 93.7614 128 91 128H37C34.2386 128 32 130.239 32 133V187C32 189.761 34.2386 192 37 192H91C93.7614 192 96 189.761 96 187V133ZM37 224C34.2386 224 32 226.239 32 229V283C32 285.761 34.2386 288 37 288H91C93.7614 288 96 285.761 96 283V229C96 226.239 93.7614 224 91 224H37ZM96 325C96 322.239 93.7614 320 91 320H37C34.2386 320 32 322.239 32 325V379C32 381.761 34.2386 384 37 384H91C93.7614 384 96 381.761 96 379V325ZM37 416C34.2386 416 32 418.239 32 421V475C32 477.761 34.2386 480 37 480H91C93.7614 480 96 477.761 96 475V421C96 418.239 93.7614 416 91 416H37ZM480 37C480 34.2386 477.761 32 475 32H421C418.239 32 416 34.2386 416 37V91C416 93.7614 418.239 96 421 96H475C477.761 96 480 93.7614 480 91V37ZM421 128C418.239 128 416 130.239 416 133V187C416 189.761 418.239 192 421 192H475C477.761 192 480 189.761 480 187V133C480 130.239 477.761 128 475 128H421ZM480 229C480 226.239 477.761 224 475 224H421C418.239 224 416 226.239 416 229V283C416 285.761 418.239 288 421 288H475C477.761 288 480 285.761 480 283V229ZM421 320C418.239 320 416 322.239 416 325V379C416 381.761 418.239 384 421 384H475C477.761 384 480 381.761 480 379V325C480 322.239 477.761 320 475 320H421ZM480 421C480 418.239 477.761 416 475 416H421C418.239 416 416 418.239 416 421V475C416 477.761 418.239 480 421 480H475C477.761 480 480 477.761 480 475V421Z" fill="white"/>
<path d="M133 32C130.239 32 128 34.2386 128 37V219C128 221.761 130.239 224 133 224H379C381.761 224 384 221.761 384 219V37C384 34.2386 381.761 32 379 32H133Z" fill="url(#paint0_linear_101_3)"/>
<path d="M384 293C384 290.239 381.761 288 379 288H133C130.239 288 128 290.239 128 293V475C128 477.761 130.239 480 133 480H379C381.761 480 384 477.761 384 475V293Z" fill="url(#paint1_linear_101_3)"/>
<defs>
<linearGradient id="paint0_linear_101_3" x1="128" y1="32" x2="384" y2="480" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<linearGradient id="paint1_linear_101_3" x1="128" y1="32" x2="384" y2="480" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

+10
View File
@@ -0,0 +1,10 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M384 0H128C111.026 0 94.7475 6.74284 82.7452 18.7452C70.7428 30.7475 64 47.0261 64 64V448C64 464.974 70.7428 481.252 82.7452 493.255C94.7475 505.257 111.026 512 128 512H384C400.974 512 417.252 505.257 429.255 493.255C441.257 481.252 448 464.974 448 448V64C448 47.0261 441.257 30.7475 429.255 18.7452C417.252 6.74284 400.974 0 384 0ZM368 131.52V189.12L288 205.12V368C288 383.84 278.368 396.256 266.816 403.936C255.168 411.712 239.968 416 224 416C208 416 192.832 411.712 181.184 403.936C169.664 396.256 160 383.84 160 368C160 352.16 169.632 339.744 181.184 332.064C192.832 324.288 208.032 320 224 320C235.392 320 246.4 322.176 256 326.272V141.12C256.004 133.725 258.57 126.56 263.26 120.843C267.951 115.126 274.476 111.209 281.728 109.76L329.728 100.16C334.369 99.2324 339.157 99.3457 343.749 100.492C348.341 101.638 352.621 103.788 356.282 106.787C359.942 109.787 362.892 113.561 364.918 117.838C366.945 122.115 367.997 126.787 368 131.52Z" fill="white"/>
<path d="M368 131.52V189.12L288 205.12V368C288 383.84 278.368 396.256 266.816 403.936C255.168 411.712 239.968 416 224 416C208 416 192.832 411.712 181.184 403.936C169.664 396.256 160 383.84 160 368C160 352.16 169.632 339.744 181.184 332.064C192.832 324.288 208.032 320 224 320C235.392 320 246.4 322.176 256 326.272V141.12C256.004 133.725 258.57 126.56 263.26 120.843C267.951 115.126 274.476 111.209 281.728 109.76L329.728 100.16C334.369 99.2324 339.157 99.3457 343.749 100.492C348.341 101.638 352.621 103.788 356.282 106.787C359.942 109.787 362.892 113.561 364.918 117.838C366.945 122.115 367.997 126.787 368 131.52Z" fill="url(#paint0_radial_114_8)"/>
<defs>
<radialGradient id="paint0_radial_114_8" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(197.5 374) rotate(-61.0462) scale(193.141 277.759)">
<stop offset="0.0923678" stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</radialGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

+12
View File
@@ -0,0 +1,12 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M384 416C384 451.36 348.16 480 304 480C259.84 480 224 451.36 224 416C224 380.64 259.84 352 304 352C348.16 352 384 380.64 384 416Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M384 96V416H352V96H384Z" fill="white"/>
<path d="M352 90.24C352.004 82.845 354.57 75.6799 359.26 69.9627C363.951 64.2456 370.476 60.3294 377.728 58.88L473.728 39.68C478.369 38.7524 483.157 38.8657 487.749 40.0117C492.341 41.1578 496.621 43.308 500.282 46.3074C503.942 49.3069 506.892 53.081 508.918 57.3578C510.945 61.6345 511.997 66.3075 512 71.04V128L352 160V90.24Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 368C0 363.757 1.68571 359.687 4.68629 356.686C7.68687 353.686 11.7565 352 16 352H128C132.243 352 136.313 353.686 139.314 356.686C142.314 359.687 144 363.757 144 368C144 372.243 142.314 376.313 139.314 379.314C136.313 382.314 132.243 384 128 384H16C11.7565 384 7.68687 382.314 4.68629 379.314C1.68571 376.313 0 372.243 0 368ZM0 240C0 235.757 1.68571 231.687 4.68629 228.686C7.68687 225.686 11.7565 224 16 224H256C260.243 224 264.313 225.686 267.314 228.686C270.314 231.687 272 235.757 272 240C272 244.243 270.314 248.313 267.314 251.314C264.313 254.314 260.243 256 256 256H16C11.7565 256 7.68687 254.314 4.68629 251.314C1.68571 248.313 0 244.243 0 240ZM0 112C0 107.757 1.68571 103.687 4.68629 100.686C7.68687 97.6857 11.7565 96 16 96H256C260.243 96 264.313 97.6857 267.314 100.686C270.314 103.687 272 107.757 272 112C272 116.243 270.314 120.313 267.314 123.314C264.313 126.314 260.243 128 256 128H16C11.7565 128 7.68687 126.314 4.68629 123.314C1.68571 120.313 0 116.243 0 112Z" fill="url(#paint0_radial_114_10)"/>
<defs>
<radialGradient id="paint0_radial_114_10" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1.0621e-05 240) scale(365 660.59)">
<stop offset="0.215844" stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</radialGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

+10
View File
@@ -0,0 +1,10 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M84.6863 420.686C81.6857 423.687 80 427.757 80 432C80 436.243 81.6857 440.313 84.6863 443.314C87.6869 446.314 91.7565 448 96 448H416C420.243 448 424.313 446.314 427.314 443.314C430.314 440.313 432 436.243 432 432C432 427.757 430.314 423.687 427.314 420.686C424.313 417.686 420.243 416 416 416H96C91.7565 416 87.6869 417.686 84.6863 420.686Z" fill="white"/>
<path d="M64 64H448C448 64 512 64 512 128V320C512 320 512 384 448 384H64C64 384 0 384 0 320V128C0 128 0 64 64 64Z" fill="url(#paint0_linear_101_5)"/>
<defs>
<linearGradient id="paint0_linear_101_5" x1="0" y1="64" x2="512" y2="383" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 871 B

+5
View File
@@ -0,0 +1,5 @@
--extra-index-url https://download.qt.io/official_releases/QtForPython/split-wheels/
localStoragePy==0.2.3
requests==2.27.1
pyinstaller==4.10
pyside6
Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 402 KiB

-14
View File
@@ -1,14 +0,0 @@
<svg width="48" height="54" viewBox="0 0 48 54" 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)"/>
<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)"/>
<defs>
<linearGradient id="paint0_linear_8_15" x1="0" y1="0" x2="48" y2="54" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<linearGradient id="paint1_linear_8_15" x1="0" y1="0" x2="48" y2="54" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

-15
View File
@@ -1,15 +0,0 @@
<svg width="1536" height="140" viewBox="0 0 1536 140" fill="none" xmlns="http://www.w3.org/2000/svg">
<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="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="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"/>
<defs>
<linearGradient id="paint0_linear_15_5" x1="1536" y1="21.5" x2="1433" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<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>
</svg>

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

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

-16
View File
@@ -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;
-3
View File
@@ -1,3 +0,0 @@
const events = require('events');
const emitter = new events.EventEmitter();
module.exports = emitter;
-2
View File
@@ -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
-33
View File
@@ -1,33 +0,0 @@
const Store = require('electron-store');
const schema = {
serverUrl: {
type: 'string',
default: ""
},
serverGo: {
type: 'boolean',
default: false
},
openHome: {
type: 'boolean',
default: false
},
// user: {
// name: {
// type: 'string',
// default: ""
// },
// pass: {
// type: 'string',
// default: ""
// }
// }
};
const config = new Store({ schema });
module.exports = config;
-42
View File
@@ -1,42 +0,0 @@
const { app, BrowserWindow } = require('electron');
const config = require("./config");
const emitter = require("./common/emitter");
const LoginPage = require("./pages/login");
const MainPage = require("./pages/main");
async function createWindow() {
var splash = new BrowserWindow({
width: 810,
height: 610,
frame: false,
alwaysOnTop: true,
webPreferences: {
nodeIntegration: true,
contextIsolation: false
}
});
splash.loadFile('./src/render/html/splash.html');
var mainPage = new MainPage();
var loginPage = new LoginPage();
loginPage.window.on('ready-to-show', () => {
splash.destroy();
if (config.get('openHome') == false) {
loginPage.showLogin();
} else if (config.get('openHome') == true) {
loginPage.hideLogin();
mainPage.showMain();
}
emitter.on('logged-in', () => {
loginPage.hideLogin();
mainPage.showMain();
});
});
}
app.whenReady().then(() => {
createWindow();
});
emitter.on('close-app', () => {
app.quit();
});
-151
View File
@@ -1,151 +0,0 @@
const { app, BrowserWindow, ipcMain } = require('electron');
const got = require('got');
const emitter = require('../common/emitter');
const config = require('../config');
const api = require('../common/apiclient');
class LoginPage {
constructor() {
this.createWindow();
this.setConfig();
this.onstartUp();
this.authUser();
this.clearData();
this.apiclient = api;
}
createWindow() {
this.window = new BrowserWindow({
width: 800,
height: 700,
center: true,
resizable: true,
maximizable: true,
webPreferences: {
nodeIntegration: true,
contextIsolation: false
},
show: false,
icon: "../assets/icon.ico"
});
this.window.loadFile("./src/render/html/login.html");
this.window.setMenu(null);
this.window.maximize();
this.window.webContents.openDevTools();
this.window.on('closed', () => {
emitter.emit('close-app');
});
}
onstartUp() {
ipcMain.on('check-server-status', (event) => {
got.post(`${config.get('serverUrl')}/System/Ping`).then(async (response) => {
if (response.body == '"Jellyfin Server"') {
event.sender.send('server-online');
this.serverOnline = true;
this.getUserlist();
}
else {
event.sender.send('server-offline');
this.serverOnline = true;
}
}).catch((er) => {
let error;
event.sender.send('server-offline');
if (typeof er == 'string') {
error = er;
} else {
error = "Can't connect to Jellyfin server";
}
console.log(error);
});
});
ipcMain.on('reload-page', () => {
app.relaunch();
app.quit();
});
}
setConfig() {
ipcMain.on('setServer', (event, serverUrl) => {
serverUrl = serverUrl.replace(/\/+$/, '');
got.post(`${serverUrl}/System/Ping`).then(async (response) => {
if (response.body == '"Jellyfin Server"') {
event.sender.send('is-jf-server');
config.set('serverUrl', serverUrl);
config.set('serverGo', true);
this.getUserlist();
} else {
event.sender.send('not-jf-server');
}
}).catch((er) => {
let error;
event.sender.send('not-jf-server');
if (typeof er == 'string') {
error = e;
} else {
error = "The given server url is not a Jellyfin server url";
}
});
});
}
getUserlist() {
this.window.once('ready-to-show', async () => {
if (this.getUsers != false) {
ipcMain.on('waiting-for-userlist', async (event) => {
this.users = await this.apiclient.userApi.getPublicUsers();
if (await this.users.length == 0) {
event.sender.send('no-public-users');
} else {
event.sender.send('userlist', this.users.data);
}
});
}
ipcMain.on('userlist-recieved', () => {
this.getUsers = false;
});
});
}
async authUser() {
let auth;
if (config.get('openHome') == true) {
if (this.serverOnline == true) {
try {
auth = await this.apiclient.authenticateUserByName(config.get('user.name'), config.get('user.pass'));
emitter.emit('logged-in');
} catch (err) {
console.log(err);
}
}
} else {
this.window.once('ready-to-show', () => {
ipcMain.on('user-auth-details', async (event, user) => {
try {
auth = await this.apiclient.authenticateUserByName(user[0], user[1]);
if (user[2] == true) {
config.set('user.name', user[0]);
config.set('user.pass', user[1]);
config.set('openHome', true);
}
emitter.emit('logged-in');
} catch (err) {
console.log(err);
event.sender.send('user-auth-failed');
}
});
});
}
}
clearData() {
ipcMain.on('clear-user-data', async () => {
config.clear();
app.relaunch();
app.quit();
});
}
showLogin() {
this.window.show();
}
hideLogin() {
this.window.hide();
}
}
module.exports = LoginPage;
-45
View File
@@ -1,45 +0,0 @@
const { app, BrowserWindow, ipcMain } = require('electron');
const got = require('got');
const emitter = require('../common/emitter');
const config = require('../config');
const { Jellyfin } = require('@thornbill/jellyfin-sdk');
class MainPage {
constructor() {
this.createWindow();
this.logoutRequest();
}
createWindow() {
this.window = new BrowserWindow({
width: 800,
height: 700,
center: true,
resizable: true,
maximizable: true,
show: false,
webPreferences: {
nodeIntegration: true
}
});
this.window.loadFile("./src/render/html/main.html");
this.window.webContents.openDevTools();
this.window.setMenu(null);
this.window.maximize();
this.window.on('closed', () => {
emitter.emit('close-app');
});
}
logoutRequest() {
ipcMain.on('logout-user', () => {
emitter.emit('logout-user');
});
}
showMain() {
this.window.show();
}
hideMain() {
this.window.hide();
}
}
module.exports = MainPage;
-68
View File
@@ -1,68 +0,0 @@
/** @format */
:root {
--main-bg: #0d0326;
--warning-yellow: #f18e06;
--warning-bg: rgba(220, 128, 1, 0.16);
--error-red: #a94442;
--error-red-darker-1: #8b2e2e;
--error-red-bg: #240e0ea0;
--yes-green: #18be12;
--yes-green-darker-1: #15a010;
--rounding: 10px;
--rounding-1: 5px;
--transition-time-fast-2: 100ms;
--transition-time-fast-1: 150ms;
--transition-time-default: 250ms;
--transition-time-slow-1: 350ms;
}
body,
html {
margin: 0 !important;
padding: 0 !important;
font-family: "Montserrat", sans-serif;
color: white;
background: var(--main-bg);
}
input,
button {
width: 100%;
height: 2.65em;
outline: none;
}
.input {
position: relative;
font-size: calc(60vw / 20);
width: 100%;
}
.ripple__cont {
width: 100%;
height: 100%;
overflow: hidden;
}
@-webkit-keyframes btn_click {
0% {
transform: scale(1);
opacity: 0;
}
100% {
transform: scale(5);
opacity: 1;
}
}
@keyframes btn_click {
0% {
transform: scale(1);
opacity: 0;
}
100% {
transform: scale(1.5);
opacity: 1;
}
}
View File
Whitespace-only changes.
-111
View File
@@ -1,111 +0,0 @@
<!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">
<link rel="stylesheet" href="../css/login.css">
<link rel="stylesheet" href="../css/global.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<title>Jellyfin</title>
</head>
<body>
<canvas id="background"></canvas>
<main>
<section class="page server">
<section class="server__cont">
<div class="logo">
<svg width="100%" height="100%" viewBox="0 0 1536 140" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M53.5075 139.735C44.3971 139.735 35.9283 137.682 28.1011 133.576C20.2739 129.342 13.8581 123.568 8.85381 116.254C3.84952 108.94 0.898268 100.856 6.10352e-05 92.0021H7.12156C8.01977 99.5727 10.6502 106.502 15.0129 112.789C19.3757 118.948 24.8932 123.824 31.5656 127.417C38.3663 130.882 45.6803 132.614 53.5075 132.614C62.1047 132.614 69.996 130.497 77.1817 126.262C84.3674 122.028 90.0774 116.189 94.3118 108.747C98.5462 101.305 100.663 92.9644 100.663 83.7257V10.0086H40.6118V2.88709H107.592V83.7257C107.592 94.2476 105.154 103.807 100.278 112.404C95.5308 120.873 88.9867 127.545 80.6462 132.421C72.434 137.297 63.3878 139.735 53.5075 139.735Z" fill="white"/>
<path d="M152.099 2.88709H246.41V10.0086H159.22V64.286H235.055V71.4075H159.22V129.727H246.41V136.848H152.099V2.88709Z" fill="white"/>
<path d="M299.386 136.848V2.88709H306.507V129.727H399.857V136.848H299.386Z" fill="white"/>
<path d="M441.861 136.848V2.88709H448.982V129.727H542.332V136.848H441.861Z" fill="white"/>
<path d="M578.369 2.88709L625.91 74.487L673.066 2.88709H681.535L629.374 81.9935V136.848H622.253V81.9935L569.9 2.88709H578.369Z" fill="white"/>
<path d="M730.853 136.848H723.731V2.88709H777.624C786.606 2.88709 794.882 4.81182 802.453 8.66128C810.152 12.5107 816.247 17.9641 820.738 25.0215C825.229 32.0788 827.474 40.2268 827.474 49.4655C827.474 58.3193 825.165 66.4673 820.545 73.9096C816.054 81.3519 809.895 87.0619 802.068 91.0397C795.267 94.5042 787.119 96.2365 777.624 96.2365H730.853V136.848ZM730.853 89.115H777.624C785.836 89.115 792.572 87.8318 797.833 85.2655C804.634 82.0576 810.087 77.2458 814.194 70.83C818.3 64.4143 820.353 57.2928 820.353 49.4655C820.353 41.7666 818.3 34.7093 814.194 28.2935C810.087 21.8778 804.57 17.0659 797.641 13.858C792.38 11.2917 785.708 10.0086 777.624 10.0086H730.853V89.115Z" fill="white"/>
<path d="M869.286 136.848V2.88709H876.407V129.727H969.757V136.848H869.286Z" fill="white"/>
<path d="M1116.27 136.848H990.012L1053.14 0L1116.27 136.848ZM1001.18 129.727H1105.11L1053.14 16.9376L1001.18 129.727Z" fill="url(#paint0_linear_4_2)"/>
<path d="M1148.27 2.88709L1195.81 74.487L1242.97 2.88709H1251.43L1199.27 81.9935V136.848H1192.15V81.9935L1139.8 2.88709H1148.27Z" fill="white"/>
<path d="M1291.9 2.88709H1386.21V10.0086H1299.02V64.286H1374.86V71.4075H1299.02V129.727H1386.21V136.848H1291.9V2.88709Z" fill="white"/>
<path d="M1536 136.848H1433.03C1433.03 84.5332 1433.03 55.2022 1433.03 2.88709H1485.19C1496.35 2.88709 1505.46 4.87598 1512.52 8.85375C1519.45 12.7032 1524.84 17.9641 1528.69 24.6365C1532.54 31.3089 1534.46 38.6871 1534.46 46.7709C1534.46 56.7795 1531.38 65.7616 1525.22 73.7171C1519.06 81.5444 1511.3 86.7411 1501.93 89.3074L1536 136.848ZM1445.15 10.0086L1497.51 83.1483C1506.1 81.3519 1513.22 77.0533 1518.87 70.2526C1524.52 63.4519 1527.34 55.6247 1527.34 46.7709C1527.34 39.7136 1525.61 33.2978 1522.14 27.5236C1518.68 21.7494 1513.8 17.3226 1507.51 14.243C1501.87 11.4201 1494.49 10.0086 1485.38 10.0086H1445.15ZM1440.15 14.6279V83.7257H1489.61L1440.15 14.6279ZM1440.15 129.727H1522.53L1494.43 90.6547L1488.46 90.8472H1440.15V129.727Z" fill="url(#paint1_linear_4_2)"/>
<defs>
<linearGradient id="paint0_linear_4_2" x1="1087" y1="72.9999" x2="990" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#00A4DC"/>
<stop offset="1" stop-color="#AA5CC3"/>
</linearGradient>
<linearGradient id="paint1_linear_4_2" x1="1536" y1="6.74843e-05" x2="1433" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#00A4DC"/>
<stop offset="1" stop-color="#AA5CC3"/>
</linearGradient>
</defs>
</svg>
</div>
<div class="form__cont">
<div class="input">
<input id="serverUrl" type="url" class="input__text server__url" onblur="setLabelPos(this)">
<label for="serverUrl" class="input__label">Server Address</label>
</div>
<button class="input__btn save__server clicky">
<span class="btn__label">Save</span>
</button>
<div class="info">
<i class="bi bi-info-square"></i>
<div>
Enter your Jellyfin server address above<br>
Example: https://jellyfin.mydomain.com or http://192.168.25.35:8096
</div>
</div>
</div>
</section>
</section>
<section class="page users hide">
<h3 class="title__name">Users</h3>
<section class="user__cont"></section>
<button class="change__server clicky" onclick="createManualLogin();document.querySelector('.manual__login').classList.remove('hide');document.querySelector('.manual__login').scrollIntoView({ behavior: 'smooth' });setInterval(() => {document.querySelector('.server').classList.add('hide');}, 1000);">
<span>Manual Login</span>
</button>
<button class="change__server clicky" onclick="changeServer()">
<span>Change Server</span>
</button>
</section>
<section class="page manual__login hide">
<div class="back" onclick="goBack(document.querySelector('.manual__login'), document.querySelector('.users'), 'manual__input')">
<i class="bi bi-arrow-left"></i>
</div>
<section class="manual__input"></section>
</section>
<div class="loader hide">
<svg width="52" height="12" viewBox="0 0 52 12" fill="none" xmlns="http://www.w3.org/2000/svg" xml:space="preserve">
<circle cx="6" cy="6" r="6" fill="white">
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1"></animate>
</circle>
<circle cx="26" cy="6" r="6" fill="white">
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.2"></animate>
</circle>
<circle cx="46" cy="6" r="6" fill="white">
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3"></animate>
</circle>
</svg>
</div>
</main>
<script>if (typeof module === 'object') {
window.module = module;
module = undefined;
};
</script>
<script src="https://cdn.jsdelivr.net/gh/jquery/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery.scrollto@2.1.3/jquery.scrollTo.min.js"></script>
<script src="../js/login.js"></script>
<script>if (window.module) module = window.module;</script>
<script>
function normalizeColor(e){return[(e>>16&255)/255,(e>>8&255)/255,(255&e)/255]}["SCREEN","LINEAR_LIGHT"].reduce(((e,n,t)=>Object.assign(e,{[n]:t})),{});class MiniGl{constructor(e,n,t,i=!1){const s=this,o=-1!==document.location.search.toLowerCase().indexOf("debug=webgl");s.canvas=e,s.gl=s.canvas.getContext("webgl",{antialias:!0}),s.meshes=[];const r=s.gl;n&&t&&this.setSize(n,t),s.lastDebugMsg,s.debug=i&&o?function(e){const n=new Date;n-s.lastDebugMsg>1e3&&console.log("---"),console.log(n.toLocaleTimeString()+Array(Math.max(0,32-e.length)).join(" ")+e+": ",...Array.from(arguments).slice(1)),s.lastDebugMsg=n}:()=>{},Object.defineProperties(s,{Material:{enumerable:!1,value:class{constructor(e,n,t={}){const i=this;function o(e,n){const t=r.createShader(e);return r.shaderSource(t,n),r.compileShader(t),r.getShaderParameter(t,r.COMPILE_STATUS)||console.error(r.getShaderInfoLog(t)),s.debug("Material.compileShaderSource",{source:n}),t}function a(e,n){return Object.entries(e).map((([e,t])=>t.getDeclaration(e,n))).join("\n")}i.uniforms=t,i.uniformInstances=[];const l="\n precision highp float;\n ";i.vertexSource=`\n ${l}\n attribute vec4 position;\n attribute vec2 uv;\n attribute vec2 uvNorm;\n ${a(s.commonUniforms,"vertex")}\n ${a(t,"vertex")}\n ${e}\n `,i.Source=`\n ${l}\n ${a(s.commonUniforms,"fragment")}\n ${a(t,"fragment")}\n ${n}\n `,i.vertexShader=o(r.VERTEX_SHADER,i.vertexSource),i.fragmentShader=o(r.FRAGMENT_SHADER,i.Source),i.program=r.createProgram(),r.attachShader(i.program,i.vertexShader),r.attachShader(i.program,i.fragmentShader),r.linkProgram(i.program),r.getProgramParameter(i.program,r.LINK_STATUS)||console.error(r.getProgramInfoLog(i.program)),r.useProgram(i.program),i.attachUniforms(void 0,s.commonUniforms),i.attachUniforms(void 0,i.uniforms)}attachUniforms(e,n){const t=this;void 0===e?Object.entries(n).forEach((([e,n])=>{t.attachUniforms(e,n)})):"array"==n.type?n.value.forEach(((n,i)=>t.attachUniforms(`${e}[${i}]`,n))):"struct"==n.type?Object.entries(n.value).forEach((([n,i])=>t.attachUniforms(`${e}.${n}`,i))):(s.debug("Material.attachUniforms",{name:e,uniform:n}),t.uniformInstances.push({uniform:n,location:r.getUniformLocation(t.program,e)}))}}},Uniform:{enumerable:!1,value:class{constructor(e){this.type="float",Object.assign(this,e),this.typeFn={float:"1f",int:"1i",vec2:"2fv",vec3:"3fv",vec4:"4fv",mat4:"Matrix4fv"}[this.type]||"1f",this.update()}update(e){void 0!==this.value&&r[`uniform${this.typeFn}`](e,0===this.typeFn.indexOf("Matrix")?this.transpose:this.value,0===this.typeFn.indexOf("Matrix")?this.value:null)}getDeclaration(e,n,t){const i=this;if(i.excludeFrom!==n){if("array"===i.type)return i.value[0].getDeclaration(e,n,i.value.length)+`\nconst int ${e}_length = ${i.value.length};`;if("struct"===i.type){let s=e.replace("u_","");return s=s.charAt(0).toUpperCase()+s.slice(1),`uniform struct ${s} \n {\n`+Object.entries(i.value).map((([e,t])=>t.getDeclaration(e,n).replace(/^uniform/,""))).join("")+`\n} ${e}${t>0?`[${t}]`:""};`}return`uniform ${i.type} ${e}${t>0?`[${t}]`:""};`}}}},PlaneGeometry:{enumerable:!1,value:class{constructor(e,n,t,i,o){r.createBuffer(),this.attributes={position:new s.Attribute({target:r.ARRAY_BUFFER,size:3}),uv:new s.Attribute({target:r.ARRAY_BUFFER,size:2}),uvNorm:new s.Attribute({target:r.ARRAY_BUFFER,size:2}),index:new s.Attribute({target:r.ELEMENT_ARRAY_BUFFER,size:3,type:r.UNSIGNED_SHORT})},this.setTopology(t,i),this.setSize(e,n,o)}setTopology(e=1,n=1){const t=this;t.xSegCount=e,t.ySegCount=n,t.vertexCount=(t.xSegCount+1)*(t.ySegCount+1),t.quadCount=t.xSegCount*t.ySegCount*2,t.attributes.uv.values=new Float32Array(2*t.vertexCount),t.attributes.uvNorm.values=new Float32Array(2*t.vertexCount),t.attributes.index.values=new Uint16Array(3*t.quadCount);for(let e=0;e<=t.ySegCount;e++)for(let n=0;n<=t.xSegCount;n++){const i=e*(t.xSegCount+1)+n;if(t.attributes.uv.values[2*i]=n/t.xSegCount,t.attributes.uv.values[2*i+1]=1-e/t.ySegCount,t.attributes.uvNorm.values[2*i]=n/t.xSegCount*2-1,t.attributes.uvNorm.values[2*i+1]=1-e/t.ySegCount*2,n<t.xSegCount&&e<t.ySegCount){const s=e*t.xSegCount+n;t.attributes.index.values[6*s]=i,t.attributes.index.values[6*s+1]=i+1+t.xSegCount,t.attributes.index.values[6*s+2]=i+1,t.attributes.index.values[6*s+3]=i+1,t.attributes.index.values[6*s+4]=i+1+t.xSegCount,t.attributes.index.values[6*s+5]=i+2+t.xSegCount}}t.attributes.uv.update(),t.attributes.uvNorm.update(),t.attributes.index.update(),s.debug("Geometry.setTopology",{uv:t.attributes.uv,uvNorm:t.attributes.uvNorm,index:t.attributes.index})}setSize(e=1,n=1,t="xz"){const i=this;i.width=e,i.height=n,i.orientation=t,i.attributes.position.values&&i.attributes.position.values.length===3*i.vertexCount||(i.attributes.position.values=new Float32Array(3*i.vertexCount));const o=e/-2Line truncated
let gradient = new Gradient();
gradient.initGradient("#background", "#aa5cc3","#00a4dc", "#003C50", "#3E2247");
</script>
</body>
</html>
-23
View File
@@ -1,23 +0,0 @@
<!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">
<link rel="alternate" href="../css/main.css" type="application/atom+xml" title="Atom">
<title>Document</title>
</head>
<body>
Hello there
<input type="button" value="Logout" class="user__logout" onclick="sendLogoutRequest()">
<script>if (typeof module === 'object') {
window.module = module;
module = undefined;
};
</script>
<script src="../js/main.js"></script>
<script>if (window.module) module = window.module;</script>
</body>
</html>
-38
View File
@@ -1,38 +0,0 @@
<!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>JellyPlayer</title>
</head>
<body>
<style>
html,body{margin: 0 !important;padding: 0 !important;background: #0d0326;}svg {position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);width: 80%;}
path{stroke-dasharray:100%;animation: drawIN 5s forwards;}
@keyframes drawIN {
0%{
stroke-dashoffset: 100%;
}
100%{
stroke-dashoffset: 0%;
}
}
</style>
<svg width="1536" height="140" viewBox="0 0 1536 140" fill="none" xmlns="http://www.w3.org/2000/svg">
<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="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="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"/>
<defs>
<linearGradient id="paint0_linear_15_5" x1="1536" y1="21.5" x2="1433" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<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>
</svg>
</body>
</html>
View File
Whitespace-only changes.
-251
View File
@@ -1,251 +0,0 @@
const { ipcRenderer } = require("electron");
const emitter = require('../../common/emitter');
const config = require("../../config");
const serverForm = document.querySelector('.server__cont');
const serverUrl = document.querySelector('.server__url');
const saveBtn = document.querySelector('.save__server');
const user__cont = document.querySelector('.users');
let html;
const createUserList = () => {
ipcRenderer.send("waiting-for-userlist");
document.querySelector('.loader').classList.remove('hide');
ipcRenderer.on('userlist', (event, userlist) => {
console.log(userlist);
event.sender.send('userlist-recieved');
userlist.forEach(user => {
if (user.PrimaryImageTag) {
html = `<div class="user__card" data-user="${user.Name}" data-userid="${user.Id}" onclick="createEnterPassword(this.dataset.user, true, this.dataset.userid)">
<div class="content">
<img class="user__img" src="${config.get('serverUrl')}/Users/${user.Id}/Images/Primary">
<h1>${user.Name}</h1>
</div>
</div>`;
}
else if (!user.PrimaryImageTag) {
html = `<div class="user__card" data-user="${user.Name}" onclick="createEnterPassword(this.dataset.user, false)">
<div class="content">
<img class="user__svg" src="../svg/avatar.svg">
<h1>${user.Name}</h1>
</div>
</div>`;
}
document.querySelector('.user__cont').insertAdjacentHTML('beforeend', html);
});
document.querySelector('.users').classList.remove('hide');
document.querySelector('.users').scrollIntoView({ behavior: "smooth" });
document.querySelector('.loader').classList.add('hide');
setTimeout(() => {
document.querySelector('.server').classList.add('hide');
}, 1000);
// $('main').scrollTo('.users', '2s');
});
ipcRenderer.on('no-public-users', () => {
document.querySelector('.loader').classList.add('hide');
createManualLogin();
setTimeout(() => {
document.querySelector('.server').classList.add('hide');
}, 1000);
});
};
const closeDialog = () => {
document.querySelector('.dialog').classList.remove('active');
document.querySelector('.dialog__close').classList.remove('active');
document.querySelector('.dialog').classList.add('fadeOut');
document.querySelector('.dialog__close').classList.add('fadeOut');
setTimeout(() => {
document.querySelector('.dialog').classList.remove('fadeOut');
document.querySelector('.dialog__close').classList.remove('fadeOut');
document.querySelector('.dialog').remove();
document.querySelector('.dialog__close').remove();
}, 305);
};
const createAlert = (type, msg, page) => {
html = `<div class="alert ${type}">
<div class="icon">
<i class="bi bi-exclamation-octagon"></i>
</div>
<div class="msg">
${msg}
</div>
<div class="load"></div>
</div>`;
document.querySelector(page).insertAdjacentHTML('beforeend', html);
setTimeout(() => {
document.querySelector('.alert').classList.add('goOut');
setTimeout(() => {
document.querySelector('.alert').remove();
}, 1000);
}, 3000);
};
const createDialog = (title, msg, btn, type) => {
html = `<div class="dialog ${type}">
<div class="icon">
<i class="bi bi-exclamation-octagon"></i>
</div>
<div class="title">
${title}
</div>
<div class="msg">
${msg}
</div>
</div>
<div class="dialog__close"></div>`;
document.querySelector('main').insertAdjacentHTML('beforeend', html);
if (btn == "yes__no") {
html = `<div class="buttons">
<button class="clicky yes" onclick="sendClearDataRequest()">
<label>Yes</label>
</button>
<button class="clicky no" onclick="closeDialog()">
<label>No</label>
</button>
</div>`;
document.querySelector('.dialog').insertAdjacentHTML('beforeend', html);
} else if (btn == "remove__server") {
html = `<div class="buttons">
<button class="clicky rem__serv" onclick="sendClearDataRequest()">
<label>Remove Server</label>
</button>
<button class="clicky reload" onclick="ipcRenderer.send('reload-page')">
<label>Restart JellyPlayer</label>
</button>
</div>`;
document.querySelector('.dialog').insertAdjacentHTML('beforeend', html);
}
document.querySelector('.dialog').classList.add('active');
document.querySelector('.dialog__close').classList.add('active');
document.querySelector('.dialog__close').addEventListener('click', () => {
closeDialog();
});
document.querySelector('.loader').classList.add('hide');
};
const sendClearDataRequest = () => {
ipcRenderer.send('clear-user-data');
};
const createManualLogin = () => {
html = `<h3 class="title__name">Login</h3>
<div class="manual__form user">
<div class="input">
<input type="text" value="" class="user__name" onblur="setLabelPos(this)">
<label class="input__label" for="user__name">Username</label>
</div>
<div class="input">
<input type="password" value="" class="user__password" onblur="setLabelPos(this)">
<label class="input__label" for="user__password">Password</label>
</div>
<div class="input checkbox">
<label>Remember me</label>
<input class="remember__user" type="checkbox" value="true" style="-webkit-appearance: none;">
<svg class="tick" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.854 3.646L6.5 11L2.646 7.146" stroke="black" stroke-linecap="round"/>
</svg>
</div>
<button class="clicky user__login" onclick="sendAuthInfo(document.querySelector('.user__name').value, document.querySelector('.user__password').value, document.querySelector('.remember__user'))">
<label>Login</label>
</button>
<button class="change__server clicky" onclick="changeServer()">
<span>Change Server</span>
</button>
</div>`;
document.querySelector('.manual__input').insertAdjacentHTML('beforeend', html);
document.querySelector('.manual__login').classList.remove('hide');
document.querySelector('.manual__login').scrollIntoView({ behavior: "smooth" });
};
const setLabelPos = (element) => {
if (element.value.length < 1) {
element.parentNode.querySelector('.input__label').classList.remove('inputLabelActive');
} else {
element.parentNode.querySelector('.input__label').classList.add('inputLabelActive');
}
};
const createEnterPassword = (userName, userImg, userId) => {
html = `<div class="user">
<div class="user__info">
<h3 class="title__name">Hello, ${userName}</h3>
</div>
<div class="input">
<input type="password" value="" class="user__password" onblur="setLabelPos(this)">
<label for="user__password" class="input__label">Password</label>
</div>
<div class="input checkbox">
<label>Remember me</label>
<input class="remember__user" type="checkbox" value="true" style="-webkit-appearance: none;">
<svg class="tick" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.854 3.646L6.5 11L2.646 7.146" stroke="black" stroke-linecap="round"/>
</svg>
</div>
<button class="user__login clicky" data-user="${userName}" onclick="sendAuthInfo(this.dataset.user, document.querySelector('.user__password').value, document.querySelector('.remember__user'))">
<span>Login</span>
</button>
</div>`;
document.querySelector('.manual__input').insertAdjacentHTML('beforeend', html);
if (userImg == true) {
html = `<img class="user__img" src="${config.get('serverUrl')}/Users/${userId}/Images/Primary"></img>`;
document.querySelector('.manual__input').querySelector('.user__info').insertAdjacentHTML('afterbegin', html);
} else if (userImg == false) {
html = `<img class="user__svg" src="../svg/avatar.svg">`;
document.querySelector('.manual__input').querySelector('.user__info').insertAdjacentHTML('afterbegin', html);
}
document.querySelector('.manual__login').classList.remove('hide');
document.querySelector('.manual__login').scrollIntoView({ behavior: "smooth" });
};
const sendAuthInfo = (userName, password, checkbox) => {
if (checkbox.checked == true) {
ipcRenderer.send('user-auth-details', [userName, password, true]);
} else {
ipcRenderer.send('user-auth-details', [userName, password, false]);
}
};
const changeServer = () => {
createDialog('Are you sure?', "You want to remove this server", "yes__no", "warning");
};
const goBack = (from, to, loginForm, button) => {
to.scrollIntoView({ behavior: "smooth" });
setTimeout(() => {
from.classList.add('hide');
from.querySelector(`.${loginForm}`).remove();
html = `<section class="${loginForm}"></section>`;
from.insertAdjacentHTML('beforeend', html);
}, 1000);
};
if (config.get('serverGo') == true) {
document.querySelector('.loader').classList.remove('hide');
ipcRenderer.send('check-server-status');
ipcRenderer.on('server-online', () => {
document.querySelector('.loader').classList.add('hide');
createUserList();
});
ipcRenderer.on('server-offline', () => {
createDialog('Error', "Cant connect to the jellyfin server", "remove__server", "error");
});
} else if (config.get('serverGo') == false) {
saveBtn.addEventListener('click', () => {
ipcRenderer.send('setServer', serverUrl.value);
document.querySelector('.loader').classList.remove('hide');
}, true);
ipcRenderer.on('not-jf-server', () => {
document.querySelector('.loader').classList.add('hide');
createAlert('error', "Can't detrmine if the give server address is a valid Jellyfin server", ".server");
});
ipcRenderer.on('is-jf-server', () => {
createUserList();
});
}
ipcRenderer.on('user-auth-failed', () => {
console.log(1);
createAlert('error', "Unable to login. Please check your password", ".manual__login");
});
-8
View File
@@ -1,8 +0,0 @@
const { ipcRenderer } = require("electron");
const emitter = require('../../common/emitter');
const config = require("../../config");
const logoutBtn = document.querySelector('.user__logout');
const sendLogoutRequest = () => {
ipcRenderer.send('logout-user');
};
-23
View File
@@ -1,23 +0,0 @@
<svg width="1536" height="140" viewBox="0 0 1536 140" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M53.5075 139.735C44.3971 139.735 35.9283 137.682 28.1011 133.576C20.2739 129.342 13.8581 123.568 8.85381 116.254C3.84952 108.94 0.898268 100.856 6.10352e-05 92.0021H7.12156C8.01977 99.5727 10.6502 106.502 15.0129 112.789C19.3757 118.948 24.8932 123.824 31.5656 127.417C38.3663 130.882 45.6803 132.614 53.5075 132.614C62.1047 132.614 69.996 130.497 77.1817 126.262C84.3674 122.028 90.0774 116.189 94.3118 108.747C98.5462 101.305 100.663 92.9644 100.663 83.7257V10.0086H40.6118V2.88709H107.592V83.7257C107.592 94.2476 105.154 103.807 100.278 112.404C95.5308 120.873 88.9867 127.545 80.6462 132.421C72.434 137.297 63.3878 139.735 53.5075 139.735Z" fill="white"/>
<path d="M152.099 2.88709H246.41V10.0086H159.22V64.286H235.055V71.4075H159.22V129.727H246.41V136.848H152.099V2.88709Z" fill="white"/>
<path d="M299.386 136.848V2.88709H306.507V129.727H399.857V136.848H299.386Z" fill="white"/>
<path d="M441.861 136.848V2.88709H448.982V129.727H542.332V136.848H441.861Z" fill="white"/>
<path d="M578.369 2.88709L625.91 74.487L673.066 2.88709H681.535L629.374 81.9935V136.848H622.253V81.9935L569.9 2.88709H578.369Z" fill="white"/>
<path d="M730.853 136.848H723.731V2.88709H777.624C786.606 2.88709 794.882 4.81182 802.453 8.66128C810.152 12.5107 816.247 17.9641 820.738 25.0215C825.229 32.0788 827.474 40.2268 827.474 49.4655C827.474 58.3193 825.165 66.4673 820.545 73.9096C816.054 81.3519 809.895 87.0619 802.068 91.0397C795.267 94.5042 787.119 96.2365 777.624 96.2365H730.853V136.848ZM730.853 89.115H777.624C785.836 89.115 792.572 87.8318 797.833 85.2655C804.634 82.0576 810.087 77.2458 814.194 70.83C818.3 64.4143 820.353 57.2928 820.353 49.4655C820.353 41.7666 818.3 34.7093 814.194 28.2935C810.087 21.8778 804.57 17.0659 797.641 13.858C792.38 11.2917 785.708 10.0086 777.624 10.0086H730.853V89.115Z" fill="white"/>
<path d="M869.286 136.848V2.88709H876.407V129.727H969.757V136.848H869.286Z" fill="white"/>
<path d="M1116.27 136.848H990.012L1053.14 0L1116.27 136.848ZM1001.18 129.727H1105.11L1053.14 16.9376L1001.18 129.727Z" fill="url(#paint0_linear_4_2)"/>
<path d="M1148.27 2.88709L1195.81 74.487L1242.97 2.88709H1251.43L1199.27 81.9935V136.848H1192.15V81.9935L1139.8 2.88709H1148.27Z" fill="white"/>
<path d="M1291.9 2.88709H1386.21V10.0086H1299.02V64.286H1374.86V71.4075H1299.02V129.727H1386.21V136.848H1291.9V2.88709Z" fill="white"/>
<path d="M1536 136.848H1433.03C1433.03 84.5332 1433.03 55.2022 1433.03 2.88709H1485.19C1496.35 2.88709 1505.46 4.87598 1512.52 8.85375C1519.45 12.7032 1524.84 17.9641 1528.69 24.6365C1532.54 31.3089 1534.46 38.6871 1534.46 46.7709C1534.46 56.7795 1531.38 65.7616 1525.22 73.7171C1519.06 81.5444 1511.3 86.7411 1501.93 89.3074L1536 136.848ZM1445.15 10.0086L1497.51 83.1483C1506.1 81.3519 1513.22 77.0533 1518.87 70.2526C1524.52 63.4519 1527.34 55.6247 1527.34 46.7709C1527.34 39.7136 1525.61 33.2978 1522.14 27.5236C1518.68 21.7494 1513.8 17.3226 1507.51 14.243C1501.87 11.4201 1494.49 10.0086 1485.38 10.0086H1445.15ZM1440.15 14.6279V83.7257H1489.61L1440.15 14.6279ZM1440.15 129.727H1522.53L1494.43 90.6547L1488.46 90.8472H1440.15V129.727Z" fill="url(#paint1_linear_4_2)"/>
<defs>
<linearGradient id="paint0_linear_4_2" x1="1087" y1="72.9999" x2="990" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#00A4DC"/>
<stop offset="1" stop-color="#AA5CC3"/>
</linearGradient>
<linearGradient id="paint1_linear_4_2" x1="1536" y1="6.74843e-05" x2="1433" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#00A4DC"/>
<stop offset="1" stop-color="#AA5CC3"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 3.6 KiB

-4307
View File
File diff suppressed because it is too large. Load diff