Add transition between server page and user card page
No files matched your search
|
After Width: | Height: | Size: 2.7 KiB |
@@ -0,0 +1,14 @@
|
||||
<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>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 22 KiB |
@@ -1,13 +1,23 @@
|
||||
<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>
|
||||
<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.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.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: 2.5 KiB After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 44 KiB |
@@ -0,0 +1,13 @@
|
||||
<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>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
@@ -1,15 +1,19 @@
|
||||
const { app, BrowserWindow, ipcMain } = require('electron');
|
||||
const { app, BrowserWindow, ipcMain, nativeImage } = require('electron');
|
||||
const got = require('got');
|
||||
const emitter = require('../common/emitter');
|
||||
const config = require('../config');
|
||||
const { Jellyfin } = require('@thornbill/jellyfin-sdk');
|
||||
|
||||
var icon = nativeImage.createFromPath('../assets/icon.png');
|
||||
console.log(icon.getAspectRatio);
|
||||
|
||||
class LoginPage {
|
||||
constructor() {
|
||||
this.createWindow();
|
||||
this.setConfig();
|
||||
this.authUser();
|
||||
this.logoutUser();
|
||||
this.getUserlist();
|
||||
}
|
||||
createWindow() {
|
||||
this.window = new BrowserWindow({
|
||||
@@ -22,11 +26,12 @@ class LoginPage {
|
||||
webPreferences: {
|
||||
nodeIntegration: true
|
||||
},
|
||||
icon: '../assets/logo.png'
|
||||
icon: icon
|
||||
});
|
||||
this.window.loadFile("./src/render/html/login.html");
|
||||
this.window.webContents.openDevTools();
|
||||
// this.window.webContents.openDevTools();
|
||||
this.window.setMenu(null);
|
||||
this.window.maximize();
|
||||
}
|
||||
setConfig() {
|
||||
if (config.get('serverGo') == false) {
|
||||
@@ -34,6 +39,7 @@ class LoginPage {
|
||||
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();
|
||||
@@ -72,6 +78,7 @@ class LoginPage {
|
||||
ipcMain.on('waiting-for-userlist', async (event) => {
|
||||
let users = await this.api.userApi.getPublicUsers();
|
||||
event.sender.send('userlist', users.data);
|
||||
console.log('sending');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
--main-bg: #0d0326;
|
||||
--warning-yellow: #e5df30;
|
||||
--error-red: #b33a3a;
|
||||
--error-red-darker-1: #8b2e2e;
|
||||
--rounding: 10px;
|
||||
--transition-time-default: 0.25s;
|
||||
--transition-time-slow-1: 0.35s;
|
||||
@@ -15,6 +16,7 @@ body,
|
||||
html {
|
||||
font-family: "Montserrat", sans-serif;
|
||||
color: white;
|
||||
background: var(--main-bg);
|
||||
}
|
||||
|
||||
input,
|
||||
|
||||
@@ -11,7 +11,10 @@ main {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: 1;
|
||||
background: var(--main-bg);
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#background {
|
||||
@@ -19,20 +22,30 @@ main {
|
||||
inset: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: 0;
|
||||
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;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
flex-basis: 100vw;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.server__cont,
|
||||
.user__cont,
|
||||
.manual__input {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
position: static;
|
||||
width: 60vw;
|
||||
max-width: 30em;
|
||||
}
|
||||
@@ -158,6 +171,11 @@ input:focus + .input__label,
|
||||
border: none;
|
||||
background: var(--error-red);
|
||||
color: white;
|
||||
transition: background var(--transition-time-default);
|
||||
}
|
||||
|
||||
.popup__exit__btn:hover {
|
||||
background: var(--error-red-darker-1);
|
||||
}
|
||||
|
||||
.error.active,
|
||||
@@ -169,6 +187,7 @@ input:focus + .input__label,
|
||||
}
|
||||
|
||||
.popup__exit {
|
||||
position: fixed;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
@@ -177,10 +196,40 @@ input:focus + .input__label,
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.popup__exit.fadeOut {
|
||||
.popup__exit.fadeOut,
|
||||
.popup.error.fadeOut {
|
||||
-webkit-animation: fadeOut var(--transition-time-slow-1) forwards;
|
||||
animation: fadeOut var(--transition-time-slow-1) forwards;
|
||||
}
|
||||
|
||||
.loader {
|
||||
position: fixed;
|
||||
overflow: visible;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.loader::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: 0;
|
||||
transition: var(--transition-time-slow-1);
|
||||
-webkit-backdrop-filter: blur(5px);
|
||||
backdrop-filter: blur(5px);
|
||||
}
|
||||
|
||||
.loader svg {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/*Animations*/
|
||||
@-webkit-keyframes fadeInBg {
|
||||
0% {
|
||||
|
||||
@@ -9,56 +9,62 @@
|
||||
<title>Jellyfin</title>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="background"></canvas>
|
||||
<main>
|
||||
<canvas id="background"></canvas>
|
||||
<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()">
|
||||
<label for="serverUrl" class="input__label">Server Address</label>
|
||||
</div>
|
||||
<button class="input__btn save__server">
|
||||
<span class="btn__label">Save</span>
|
||||
</button>
|
||||
<div class="info">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-square" viewBox="0 0 16 16">
|
||||
<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
|
||||
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
|
||||
<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>
|
||||
Enter your Jellyfin server address above<br>
|
||||
Example: https://jellyfin.mydomain.com or http://192.168.25.35:8096
|
||||
</div>
|
||||
<div class="form__cont">
|
||||
<div class="input">
|
||||
<input id="serverUrl" type="url" class="input__text server__url" onblur="setLabelPos()">
|
||||
<label for="serverUrl" class="input__label">Server Address</label>
|
||||
</div>
|
||||
<button class="input__btn save__server">
|
||||
<span class="btn__label">Save</span>
|
||||
</button>
|
||||
<div class="info">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-square" viewBox="0 0 16 16">
|
||||
<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
|
||||
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
|
||||
</svg>
|
||||
<div>
|
||||
Enter your Jellyfin server address above<br>
|
||||
Example: https://jellyfin.mydomain.com or http://192.168.25.35:8096
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section class="page users hide">
|
||||
<section class="user__cont"></section>
|
||||
</section>
|
||||
<section class="page manual__login hide">
|
||||
<section class="manual__input"></section>
|
||||
</section>
|
||||
<section class="user__cont"></section>
|
||||
<section class="manual__input"></section>
|
||||
<div class="popup__exit hide"></div>
|
||||
<div class="popup error hide">
|
||||
<div class="icon">
|
||||
@@ -67,18 +73,33 @@
|
||||
<path d="M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h2 class="text">The url given is not a valid JF server Url </h2>
|
||||
<h2 class="text">Can't determine if the entered Server address is a valid Jellyfin Server</h2>
|
||||
<button class="popup__exit__btn">
|
||||
<span class="btn__label">Go Back</span>
|
||||
<span class="btn__label">Try Again</span>
|
||||
</button>
|
||||
</div>
|
||||
<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="../../common/jquery.js"></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>
|
||||
|
||||
@@ -4,12 +4,13 @@ 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;
|
||||
|
||||
if (config.get('serverGo') == true) {
|
||||
const createUserList = () => {
|
||||
ipcRenderer.send("waiting-for-userlist");
|
||||
serverForm.classList.add("hide");
|
||||
document.querySelector('.loader').classList.remove('hide');
|
||||
ipcRenderer.on('userlist', (event, userlist) => {
|
||||
userlist.forEach(user => {
|
||||
if (user.PrimaryImageTag) {
|
||||
@@ -20,18 +21,34 @@ if (config.get('serverGo') == true) {
|
||||
}
|
||||
document.querySelector('.user__cont').insertAdjacentHTML('beforeend', html);
|
||||
});
|
||||
emitter.emit('user_card_created');
|
||||
document.querySelector('.loader').classList.add('hide');
|
||||
document.querySelector('.users').classList.remove('hide');
|
||||
document.querySelector('.users').scrollIntoView({ behavior: "smooth" });
|
||||
setInterval(() => {
|
||||
document.querySelector('.server').classList.add('hide');
|
||||
}, 1000);
|
||||
// $('main').scrollTo('.users', '2s');
|
||||
});
|
||||
};
|
||||
|
||||
if (config.get('serverGo') == true) {
|
||||
createUserList();
|
||||
} else if (config.get('serverGo') == false) {
|
||||
saveBtn.onclick = () => {
|
||||
ipcRenderer.send('setServer', serverUrl.value);
|
||||
document.querySelector('.loader').classList.remove('hide');
|
||||
ipcRenderer.on('not-jf-server', () => {
|
||||
console.log('not a jf server');
|
||||
document.querySelector('.loader').classList.add('hide');
|
||||
createServerErr();
|
||||
});
|
||||
ipcRenderer.on('is-jf-server', () => {
|
||||
createUserList();
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
const createServerErr = () => {
|
||||
document.querySelector('.error').classList.remove('hide');
|
||||
document.querySelector('.error').classList.add('active');
|
||||
@@ -51,7 +68,7 @@ const closePopup = () => {
|
||||
document.querySelector('.popup__exit').classList.remove('fadeOut');
|
||||
document.querySelector('.error').classList.add('hide');
|
||||
document.querySelector('.popup__exit').classList.add('hide');
|
||||
}, 300);
|
||||
}, 305);
|
||||
});
|
||||
|
||||
document.querySelector('.popup__exit__btn').addEventListener('click', () => {
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<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>
|
||||
|
After Width: | Height: | Size: 665 B |