Move to Qt for better video playback support

This commit is contained in:
Prayag committed 2022-04-02 14:25:26 +05:30
1 parent c862011e7b
commit 34c89e2e25
45 files changed
+75160 -10376

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"
}
}
+3 -89
View File
@@ -1,89 +1,3 @@
# Logs
logs
*.log
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/
dist
build
__pycache__
-3
View File
@@ -1,3 +0,0 @@
{
"editor.formatOnSave": true,
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

+22
View File
@@ -0,0 +1,22 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_d_33_20)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M145 0H367C447.081 0 512 64.9187 512 145V367C512 447.081 447.081 512 367 512H145C64.9187 512 0 447.081 0 367V145C0 64.9187 64.9187 0 145 0ZM358.16 245.533C356.3 242.324 353.625 239.664 350.407 237.821L183.368 140.9C169.717 132.972 151 142.029 151 159.172V353.013C151 370.156 169.717 379.212 183.368 371.284L350.407 274.363C353.625 272.521 356.3 269.861 358.16 266.652C360.02 263.444 361 259.801 361 256.092C361 252.384 360.02 248.741 358.16 245.533Z" fill="url(#paint0_linear_33_20)"/>
<path d="M350.407 237.821C353.625 239.664 356.3 242.324 358.16 245.533C360.02 248.741 361 252.384 361 256.092C361 259.801 360.02 263.444 358.16 266.652C356.3 269.861 353.625 272.521 350.407 274.363L183.368 371.284C169.717 379.212 151 370.156 151 353.013V159.172C151 142.029 169.717 132.972 183.368 140.9L350.407 237.821Z" fill="white"/>
</g>
<defs>
<filter id="filter0_d_33_20" x="-6" y="-2" width="524" height="524" 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="3"/>
<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.25 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_33_20"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_33_20" result="shape"/>
</filter>
<linearGradient id="paint0_linear_33_20" x1="256" y1="0" x2="256" y2="512" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

+28
View File
@@ -0,0 +1,28 @@
<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.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="url(#paint0_linear_22_4)"/>
<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="url(#paint1_linear_22_4)"/>
<path d="M1433.03 136.848H1536L1500.5 90.5H1433.03V136.848Z" fill="url(#paint2_linear_22_4)"/>
<defs>
<linearGradient id="paint0_linear_22_4" x1="1092.5" y1="84.5001" x2="989.5" y2="136.5" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<linearGradient id="paint1_linear_22_4" x1="1520.5" y1="21.5" x2="1433" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<linearGradient id="paint2_linear_22_4" x1="1520.5" y1="21.5" x2="1433" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.3 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

+86
View File
@@ -0,0 +1,86 @@
import sys,os,requests
from localStoragePy import localStoragePy
from PySide6.QtWidgets import QApplication, QMainWindow
from PySide6.QtCore import QUrl, Slot, QObject
from PySide6.QtGui import QIcon, QPixmap
from PySide6.QtWebEngineWidgets import QWebEngineView
from PySide6.QtWebEngineCore import QWebEngineSettings
from PySide6.QtWebChannel import QWebChannel
import main_imp
app = QApplication(["--enable-smooth-scrolling"])
os.environ['QTWEBENGINE_REMOTE_DEBUGGING'] = "9000"
try:
from ctypes import windll # Only exists on Windows.
myappid = 'prayag17.jellyplayer.0.1.0'
windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
except ImportError:
pass
storage = localStoragePy('prayag.jellyplayer.app', 'sqlite')
print(f"Server Url:{storage.getItem('server')}")
class Backend(QObject):
@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)
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
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.inspector.load(QUrl("http://127.0.0.1:9000"))
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())
+14
View File
@@ -0,0 +1,14 @@
<!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/js/login.js</file>
<file>renderer/svg/avatar.svg</file>
<file>renderer/svg/loader.svg</file>
<file>assets/logo.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')
+12407
View File
File diff suppressed because it is too large. Load diff
-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"
}
}
@@ -1,7 +1,7 @@
/** @format */
:root {
--main-bg: #0d0326;
--main-bg: #0a1827;
--warning-yellow: #f18e06;
--warning-bg: rgba(220, 128, 1, 0.16);
--error-red: #a94442;
@@ -27,23 +27,10 @@ main {
height: 100vh;
z-index: 1;
display: flex;
/* justify-content: flex-start; */
align-items: center;
overflow: hidden;
}
#background {
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
z-index: -1;
-webkit-animation: fadeInBg var(--transition-time-slow-1);
animation: fadeInBg var(--transition-time-slow-1);
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}
.page {
position: static;
width: 100vw;
@@ -78,6 +65,11 @@ main {
max-width: 30em;
}
.logo object {
width: 100%;
height: 100%;
}
.manual__input {
width: 60vw;
display: flex;
@@ -359,7 +351,6 @@ section.user__cont {
display: flex;
justify-content: space-between;
overflow: auto hidden;
gap: 1em;
}
.user__card {
@@ -368,6 +359,7 @@ section.user__cont {
width: fit-content;
overflow: hidden;
flex-shrink: 0;
padding: 1em;
}
.user__card .content {
@@ -378,6 +370,10 @@ section.user__cont {
flex-flow: column;
}
.user__card h1 {
margin: 0.5em 0;
}
.user__svg,
.user__img {
width: 10em;
@@ -421,7 +417,7 @@ section.user__cont {
font-weight: 500;
padding: 0;
margin: 0;
font-size: calc(100vw / 15);
font-size: min(calc(100vw / 15), 10em);
position: relative;
margin-bottom: 0.5em;
align-self: center;
@@ -444,11 +440,11 @@ section.user__cont {
}
.user__info .title__name {
font-size: calc(100vw / 20);
margin-bottom: 0;
}
.user__info .user__img {
.user__info .user__img,
.user__info .user__svg {
border-radius: 100%;
}
File renamed without changes.
+84
View File
@@ -0,0 +1,84 @@
<!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/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" crossorigin>
<title>JellyPlayer</title>
<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
</script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script type="module">
import { UserApi } from 'https://cdn.jsdelivr.net/npm/@jellyfin/client-axios/+esm';
window.UserApi = UserApi
console.log(UserApi);
</script>
</head>
<body>
<canvas id="background"></canvas>
<main>
<section class="page server">
<section class="server__cont">
<div class="logo">
<object data="../../assets/logo.svg" type="image/svg+xml"></object>
</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 src="qrc:///qtwebchannel/qwebchannel.js"></script>
<script src="qrc:/renderer/js/login.js" defer></script>
</body>
</html>
File diff suppressed because it is too large. Load diff
File renamed without changes.
+97 -35
View File
@@ -1,24 +1,94 @@
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');
const emitter = new EventEmitter();
let html;
var server;
const createUserList = () => {
ipcRenderer.send("waiting-for-userlist");
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 () => {
let value = await window.backend.getValuesFromDatabaseStr("server", (data) => {
window.server = data;
console.log(`Server:${data}`);
emitter.emit('server-url', data);
return data;
});
return value;
};
getServerStat = async () => {
await window.backend.getValuesFromDatabaseBool("serverGo", (data) => {
if (data == true) {
emitter.emit("serverGo-true");
} else if (data == false) {
emitter.emit('serverGo-false');
}
console.log(`Server Status = ${data}`);
return Boolean(data);
});
};
getServerStat();
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');
getServerStat();
window.getServer();
} else if (dat == false) {
emitter.emit('not-jf-server');
}
});
});
emitter.on("get-server", async () => {
window.getServer();
console.log('dsk')
});
});
};
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) => {
console.log(`from userlist ${server}`)
const ax = axios.create({
headers: {
Authorization: vanilla_token
}
});
window.userApi = new window.UserApi(undefined, server, ax);
document.querySelector('.loader').classList.remove('hide');
ipcRenderer.on('userlist', (event, userlist) => {
console.log(userlist);
event.sender.send('userlist-recieved');
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="${config.get('serverUrl')}/Users/${user.Id}/Images/Primary">
<img class="user__img" src="${server}/Users/${user.Id}/Images/Primary">
<h1>${user.Name}</h1>
</div>
</div>`;
@@ -39,15 +109,13 @@ const createUserList = () => {
setTimeout(() => {
document.querySelector('.server').classList.add('hide');
}, 1000);
// $('main').scrollTo('.users', '2s');
});
ipcRenderer.on('no-public-users', () => {
}else if (this.userlist.length == 0) {
document.querySelector('.loader').classList.add('hide');
createManualLogin();
setTimeout(() => {
document.querySelector('.server').classList.add('hide');
}, 1000);
});
}
};
const closeDialog = () => {
@@ -79,7 +147,7 @@ const createAlert = (type, msg, page) => {
setTimeout(() => {
document.querySelector('.alert').remove();
}, 1000);
}, 3000);
}, 3005);
};
const createDialog = (title, msg, btn, type) => {
@@ -189,7 +257,7 @@ const createEnterPassword = (userName, userImg, userId) => {
</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>`;
html = `<img class="user__img" src="${window.server}/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">`;
@@ -220,32 +288,26 @@ const goBack = (from, to, loginForm, button) => {
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', () => {
emitter.on("serverGo-true", () => {
emitter.emit('get-server');
emitter.on("server-url", (server) => {
document.querySelector('.loader').classList.remove('hide');
document.querySelector('.loader').classList.add('hide');
createUserList();
createUserList(server);
});
ipcRenderer.on('server-offline', () => {
createDialog('Error', "Cant connect to the jellyfin server", "remove__server", "error");
});
} else if (config.get('serverGo') == false) {
});
emitter.on("serverGo-false", () => {
console.log("hello2");
saveBtn.addEventListener('click', () => {
ipcRenderer.send('setServer', serverUrl.value);
emitter.emit("send-jf-server-info", serverUrl.value);
document.querySelector('.loader').classList.remove('hide');
}, true);
ipcRenderer.on('not-jf-server', () => {
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");
});
ipcRenderer.on('is-jf-server', () => {
createUserList();
emitter.on('is-jf-server', () => {
createUserList(serverUrl.value);
});
}
ipcRenderer.on('user-auth-failed', () => {
console.log(1);
createAlert('error', "Unable to login. Please check your password", ".manual__login");
});
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 665 B

After

Width:  |  Height:  |  Size: 665 B

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;
-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>
-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