Move to Qt for better video playback support
No files matched your search
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 402 KiB |
@@ -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 |
|
Before Width: | Height: | Size: 22 KiB |
@@ -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 |
|
Before Width: | Height: | Size: 44 KiB |
@@ -1,13 +0,0 @@
|
||||
<svg width="1536" height="309" viewBox="0 0 1536 309" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M120.66 308.594C100.116 308.594 81.0187 303.965 63.3682 294.705C45.7177 285.157 31.2501 272.136 19.9653 255.643C8.68057 239.15 2.02547 220.921 0 200.955H16.0591C18.0845 218.027 24.0162 233.652 33.8542 247.83C43.6922 261.719 56.1344 272.715 71.1807 280.816C86.5164 288.629 103.009 292.535 120.66 292.535C140.047 292.535 157.842 287.761 174.045 278.212C190.249 268.664 203.125 255.498 212.674 238.716C222.223 221.933 226.997 203.125 226.997 182.292V16.0591H91.58V0H242.622V182.292C242.622 206.019 237.124 227.576 226.129 246.962C215.423 266.06 200.666 281.106 181.858 292.101C163.339 303.097 142.94 308.594 120.66 308.594Z" fill="white"/>
|
||||
<path d="M362.95 302.084H346.891V0H468.419C488.673 0 507.336 4.34029 524.408 13.0209C541.769 21.7014 555.514 33.9989 565.641 49.9133C575.768 65.8277 580.832 84.2016 580.832 105.035C580.832 125 575.624 143.374 565.207 160.157C555.08 176.939 541.191 189.815 523.54 198.785C508.205 206.598 489.831 210.504 468.419 210.504H362.95V302.084ZM362.95 194.445H468.419C486.937 194.445 502.128 191.551 513.992 185.764C529.327 178.53 541.625 167.68 550.884 153.212C560.143 138.744 564.773 122.685 564.773 105.035C564.773 87.6738 560.143 71.7594 550.884 57.2918C541.625 42.8242 529.183 31.9734 513.558 24.7396C501.694 18.9526 486.648 16.0591 468.419 16.0591H362.95V194.445Z" fill="white"/>
|
||||
<path d="M675.118 302.084V0H691.177V286.025H901.681V302.084H675.118Z" fill="white"/>
|
||||
<path d="M982.946 0L1090.15 161.459L1196.49 0H1215.59L1097.96 178.386V302.084H1081.9V178.386L963.849 0H982.946Z" fill="white"/>
|
||||
<path d="M1536 302.084H1303.79V0H1421.42C1446.59 0 1467.13 4.48496 1483.05 13.4549C1498.67 22.1355 1510.83 33.9989 1519.51 49.0452C1528.19 64.0916 1532.53 80.7293 1532.53 98.9585C1532.53 121.528 1525.58 141.783 1511.69 159.723C1497.81 177.373 1480.3 189.092 1459.18 194.879L1536 302.084ZM1331.14 16.0591L1449.19 180.99C1468.58 176.939 1484.64 167.246 1497.37 151.91C1510.1 136.574 1516.47 118.924 1516.47 98.9585C1516.47 83.0441 1512.56 68.5765 1504.75 55.5557C1496.94 42.5348 1485.94 32.5521 1471.76 25.6077C1459.03 19.2419 1442.39 16.0591 1421.85 16.0591H1331.14ZM1319.85 26.4757V182.292H1431.4L1319.85 26.4757ZM1319.85 286.025H1505.62L1442.25 197.917L1428.79 198.351H1319.85V286.025Z" fill="url(#paint0_linear_6_6)"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_6_6" x1="1536" y1="-0.000138548" x2="1302.5" y2="309" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#00A4DC"/>
|
||||
<stop offset="1" stop-color="#AA5CC3"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.5 KiB |
@@ -1,16 +0,0 @@
|
||||
const { Jellyfin } = require('@thornbill/jellyfin-sdk');
|
||||
const config = require('../config');
|
||||
|
||||
var apiclient = new Jellyfin({
|
||||
clientInfo: {
|
||||
name: 'Mordern Jellyfin client in Electron',
|
||||
version: "0.0.1"
|
||||
},
|
||||
deviceInfo: {
|
||||
name: "JellyPlayer",
|
||||
id: "JellyPlayerClient"
|
||||
}
|
||||
});
|
||||
var api = apiclient.createApi(config.get('serverUrl'));
|
||||
|
||||
module.exports = api;
|
||||
@@ -1,3 +0,0 @@
|
||||
const events = require('events');
|
||||
const emitter = new events.EventEmitter();
|
||||
module.exports = emitter;
|
||||
@@ -1,2 +0,0 @@
|
||||
/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
|
||||
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^Line truncated
|
||||
@@ -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;
|
||||
@@ -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();
|
||||
});
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -1,68 +0,0 @@
|
||||
/** @format */
|
||||
|
||||
:root {
|
||||
--main-bg: #0d0326;
|
||||
--warning-yellow: #f18e06;
|
||||
--warning-bg: rgba(220, 128, 1, 0.16);
|
||||
--error-red: #a94442;
|
||||
--error-red-darker-1: #8b2e2e;
|
||||
--error-red-bg: #240e0ea0;
|
||||
--yes-green: #18be12;
|
||||
--yes-green-darker-1: #15a010;
|
||||
--rounding: 10px;
|
||||
--rounding-1: 5px;
|
||||
--transition-time-fast-2: 100ms;
|
||||
--transition-time-fast-1: 150ms;
|
||||
--transition-time-default: 250ms;
|
||||
--transition-time-slow-1: 350ms;
|
||||
}
|
||||
|
||||
body,
|
||||
html {
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
font-family: "Montserrat", sans-serif;
|
||||
color: white;
|
||||
background: var(--main-bg);
|
||||
}
|
||||
|
||||
input,
|
||||
button {
|
||||
width: 100%;
|
||||
height: 2.65em;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.input {
|
||||
position: relative;
|
||||
font-size: calc(60vw / 20);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ripple__cont {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@-webkit-keyframes btn_click {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
transform: scale(5);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes btn_click {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
transform: scale(1.5);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@@ -1,649 +0,0 @@
|
||||
/** @format */
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgb(255 255 255 / 0.5);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: rgb(255 255 255/1);
|
||||
}
|
||||
|
||||
main {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
contain: strict;
|
||||
width: 100vw;
|
||||
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;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
flex-basis: 100vw;
|
||||
overflow: hidden;
|
||||
flex-flow: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.page > button {
|
||||
width: 60vw;
|
||||
max-width: 32em;
|
||||
}
|
||||
|
||||
.page.manual__login {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.server__cont,
|
||||
.user__cont,
|
||||
.manual__input {
|
||||
position: static;
|
||||
width: -webkit-fit-content;
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
max-width: 30em;
|
||||
}
|
||||
|
||||
.manual__input {
|
||||
width: 60vw;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
align-items: stretch;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.server__cont {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
grid-gap: 3em;
|
||||
}
|
||||
|
||||
button.clicky {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
button.clicky::after {
|
||||
content: "";
|
||||
box-shadow: 0 0 15px 40px var(--clr);
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
border-radius: 100px;
|
||||
opacity: 0;
|
||||
transition: all var(--transition-time-slow-1);
|
||||
}
|
||||
|
||||
button.clicky:active::after {
|
||||
box-shadow: 0 0 0 0 white;
|
||||
opacity: 0.5;
|
||||
transition: 0s;
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="url"],
|
||||
input[type="password"] {
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-bottom: 3px solid white;
|
||||
color: white;
|
||||
}
|
||||
|
||||
button {
|
||||
--clr: currentColor;
|
||||
overflow: hidden;
|
||||
background: #ffffff4b;
|
||||
border: 2px solid white;
|
||||
color: white;
|
||||
border-radius: 100px;
|
||||
width: 100%;
|
||||
transition: background var(--transition-time-default);
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: #ffffff6b;
|
||||
}
|
||||
|
||||
.input__label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
transform: translateY(-50%);
|
||||
font-size: min(1em, 25px);
|
||||
transition: font-size var(--transition-time-default),
|
||||
transform var(--transition-time-default);
|
||||
}
|
||||
|
||||
input:focus + .input__label,
|
||||
.input__label.inputLabelActive {
|
||||
transform: translateY(calc(-100% - 0.85em));
|
||||
font-size: min(0.75em, 15px);
|
||||
}
|
||||
|
||||
.form__cont {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
grid-gap: 1em;
|
||||
}
|
||||
|
||||
.hide {
|
||||
display: none !important;
|
||||
visibility: hidden !important;
|
||||
}
|
||||
|
||||
.info {
|
||||
font-family: "IBM Plex Mono", monospace;
|
||||
opacity: 0.65;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
grid-gap: 10px;
|
||||
font-size: calc(60vw / 20);
|
||||
}
|
||||
|
||||
.info i {
|
||||
color: var(--warning-yellow);
|
||||
font-size: min(1.5em, 30px);
|
||||
height: -webkit-fit-content;
|
||||
height: -moz-fit-content;
|
||||
height: fit-content;
|
||||
}
|
||||
|
||||
.info div {
|
||||
font-size: min(0.65em, 15px);
|
||||
text-align: left;
|
||||
width: -webkit-fit-content;
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.alert {
|
||||
position: absolute;
|
||||
box-sizing: content-box;
|
||||
width: 50vw;
|
||||
max-width: 20em;
|
||||
display: flex;
|
||||
left: 20px;
|
||||
background: var(--background);
|
||||
color: white;
|
||||
border-radius: var(--rounding);
|
||||
font-weight: 600;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
box-shadow: 0 0 30px rgb(0 0 0 / 0.5);
|
||||
overflow: hidden;
|
||||
-webkit-animation: comeIn var(--transition-time-default) forwards;
|
||||
animation: comeIn var(--transition-time-default) forwards;
|
||||
}
|
||||
|
||||
.alert .icon {
|
||||
font-size: 2.5em;
|
||||
background: var(--color);
|
||||
height: 100%;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 1;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.alert .msg {
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
.warning {
|
||||
--background: var(--warning-bg);
|
||||
--color: var(--warning-yellow);
|
||||
}
|
||||
|
||||
.alert.error {
|
||||
--background: var(--main-bg);
|
||||
--color: var(--error-red);
|
||||
}
|
||||
|
||||
.dialog {
|
||||
position: fixed;
|
||||
background: var(--main-bg);
|
||||
z-index: 1;
|
||||
height: -webkit-fit-content;
|
||||
height: -moz-fit-content;
|
||||
height: fit-content;
|
||||
inset: 50% 0 0 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
box-sizing: content-box;
|
||||
padding: 20px;
|
||||
color: black;
|
||||
border-radius: var(--rounding);
|
||||
box-shadow: 0 10px 35px rgba(5, 5, 5, 0.7);
|
||||
max-width: 20em;
|
||||
}
|
||||
|
||||
.dialog .icon {
|
||||
color: var(--color);
|
||||
border-left: 5px solid;
|
||||
padding: 0 0 0 15px;
|
||||
font-size: 3em;
|
||||
margin-left: -20px;
|
||||
}
|
||||
|
||||
.dialog.error {
|
||||
--color: var(--error-red);
|
||||
}
|
||||
|
||||
.dialog.warning {
|
||||
--color: var(--warning-yellow);
|
||||
}
|
||||
|
||||
.dialog .title {
|
||||
font-size: 2em;
|
||||
font-weight: 600;
|
||||
color: rgb(255 255 255 / 90%);
|
||||
}
|
||||
|
||||
.dialog .msg {
|
||||
font-size: 1.25em;
|
||||
font-weight: 400;
|
||||
color: rgb(255 255 255 / 65%);
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.dialog__close {
|
||||
position: fixed;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: rgba(5, 5, 5, 0.5);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.error.active,
|
||||
.dialog.active,
|
||||
.warning.active,
|
||||
.dialog__close.active {
|
||||
-webkit-animation: fadeIn var(--transition-time-fast-1);
|
||||
animation: fadeIn var(--transition-time-fast-1);
|
||||
display: block;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.dialog.fadeOut,
|
||||
.dialog__close.fadeOut {
|
||||
-webkit-animation: fadeOut var(--transition-time-fast-1) forwards;
|
||||
animation: fadeOut var(--transition-time-fast-1) forwards;
|
||||
}
|
||||
|
||||
.alert.goOut {
|
||||
-webkit-animation: goOut var(--transition-time-default) forwards;
|
||||
animation: goOut var(--transition-time-default) forwards;
|
||||
}
|
||||
|
||||
.alert .load {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
height: 5px;
|
||||
background: white;
|
||||
width: 100%;
|
||||
transform: scaleX(0);
|
||||
-webkit-animation: load 3s forwards;
|
||||
animation: load 3s forwards linear;
|
||||
transform-origin: left;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
section.user__cont {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
overflow: auto hidden;
|
||||
gap: 1em;
|
||||
}
|
||||
|
||||
.user__card {
|
||||
width: -webkit-fit-content;
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.user__card .content {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-flow: column;
|
||||
}
|
||||
|
||||
.user__svg,
|
||||
.user__img {
|
||||
width: 10em;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
height: 10em;
|
||||
border-radius: var(--rounding);
|
||||
background: white;
|
||||
mix-blend-mode: multiply;
|
||||
box-shadow: 0 0 20px #00000057;
|
||||
}
|
||||
|
||||
.user__svg {
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
.user {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
grid-gap: 2em;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.user__info {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
grid-gap: 10px;
|
||||
}
|
||||
|
||||
.title__name {
|
||||
-webkit-filter: drop-shadow(0 0 8px #00000057);
|
||||
filter: drop-shadow(0 0 8px #00000057);
|
||||
text-align: center;
|
||||
width: -webkit-fit-content;
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
font-weight: 500;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-size: calc(100vw / 15);
|
||||
position: relative;
|
||||
margin-bottom: 0.5em;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.title__name::after {
|
||||
content: "";
|
||||
width: 70%;
|
||||
height: 2px;
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: white;
|
||||
}
|
||||
|
||||
.user__info .title__name::after,
|
||||
.manual__login .title__name::after {
|
||||
all: unset;
|
||||
}
|
||||
|
||||
.user__info .title__name {
|
||||
font-size: calc(100vw / 20);
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.user__info .user__img {
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
.input.checkbox {
|
||||
display: flex;
|
||||
flex-flow: row;
|
||||
justify-content: flex-start;
|
||||
grid-gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.checkbox label {
|
||||
font-size: min(0.6em, calc(100vw / 25));
|
||||
}
|
||||
|
||||
.tick {
|
||||
display: block;
|
||||
width: 0.6em;
|
||||
border-radius: var(--rounding-1);
|
||||
border: 1px solid white;
|
||||
}
|
||||
|
||||
.tick path {
|
||||
stroke: white;
|
||||
stroke-dasharray: 100%;
|
||||
stroke-dashoffset: -100%;
|
||||
transition: stroke-dashoffset var(--transition-time-fast-2);
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked + .tick > path {
|
||||
stroke-dashoffset: 0%;
|
||||
}
|
||||
|
||||
.remember__user {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
inset: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.manual__form {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
gap: 20px;
|
||||
row-gap: 20px;
|
||||
-moz-column-gap: 20px;
|
||||
column-gap: 20px;
|
||||
}
|
||||
|
||||
.back {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: -webkit-fit-content;
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
z-index: 1;
|
||||
padding: 0.3em 0.5em;
|
||||
font-size: 1.5em;
|
||||
background: rgb(20 20 20 / 0.5);
|
||||
border-radius: 0 0 5px 0;
|
||||
transition: background var(--transition-time-fast-1);
|
||||
}
|
||||
|
||||
.back:hover {
|
||||
background: rgb(20 20 20 / 0.7);
|
||||
}
|
||||
|
||||
/*Animations*/
|
||||
@-webkit-keyframes fadeInBg {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeInBg {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opactiy: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opactiy: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes fadeOut {
|
||||
0% {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
}
|
||||
99% {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
display: none;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeOut {
|
||||
0% {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
}
|
||||
99% {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
display: none;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes comeIn {
|
||||
0% {
|
||||
bottom: -100%;
|
||||
}
|
||||
100% {
|
||||
bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes comeIn {
|
||||
0% {
|
||||
bottom: -100%;
|
||||
}
|
||||
100% {
|
||||
bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes goOut {
|
||||
0% {
|
||||
bottom: 20px;
|
||||
}
|
||||
100% {
|
||||
bottom: -100%;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes goOut {
|
||||
0% {
|
||||
bottom: 20px;
|
||||
}
|
||||
100% {
|
||||
bottom: -100%;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes load {
|
||||
0% {
|
||||
transform: scaleX(0);
|
||||
}
|
||||
100% {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes load {
|
||||
0% {
|
||||
transform: scaleX(0);
|
||||
}
|
||||
100% {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
}
|
||||
|
||||
/*Scaling for other display*/
|
||||
|
||||
@media (min-width: 800px) {
|
||||
.title__name {
|
||||
font-size: 2.7em;
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -1,251 +0,0 @@
|
||||
const { ipcRenderer } = require("electron");
|
||||
const emitter = require('../../common/emitter');
|
||||
const config = require("../../config");
|
||||
const serverForm = document.querySelector('.server__cont');
|
||||
const serverUrl = document.querySelector('.server__url');
|
||||
const saveBtn = document.querySelector('.save__server');
|
||||
const user__cont = document.querySelector('.users');
|
||||
|
||||
let html;
|
||||
|
||||
const createUserList = () => {
|
||||
ipcRenderer.send("waiting-for-userlist");
|
||||
document.querySelector('.loader').classList.remove('hide');
|
||||
ipcRenderer.on('userlist', (event, userlist) => {
|
||||
console.log(userlist);
|
||||
event.sender.send('userlist-recieved');
|
||||
userlist.forEach(user => {
|
||||
if (user.PrimaryImageTag) {
|
||||
html = `<div class="user__card" data-user="${user.Name}" data-userid="${user.Id}" onclick="createEnterPassword(this.dataset.user, true, this.dataset.userid)">
|
||||
<div class="content">
|
||||
<img class="user__img" src="${config.get('serverUrl')}/Users/${user.Id}/Images/Primary">
|
||||
<h1>${user.Name}</h1>
|
||||
</div>
|
||||
</div>`;
|
||||
}
|
||||
else if (!user.PrimaryImageTag) {
|
||||
html = `<div class="user__card" data-user="${user.Name}" onclick="createEnterPassword(this.dataset.user, false)">
|
||||
<div class="content">
|
||||
<img class="user__svg" src="../svg/avatar.svg">
|
||||
<h1>${user.Name}</h1>
|
||||
</div>
|
||||
</div>`;
|
||||
}
|
||||
document.querySelector('.user__cont').insertAdjacentHTML('beforeend', html);
|
||||
});
|
||||
document.querySelector('.users').classList.remove('hide');
|
||||
document.querySelector('.users').scrollIntoView({ behavior: "smooth" });
|
||||
document.querySelector('.loader').classList.add('hide');
|
||||
setTimeout(() => {
|
||||
document.querySelector('.server').classList.add('hide');
|
||||
}, 1000);
|
||||
// $('main').scrollTo('.users', '2s');
|
||||
});
|
||||
ipcRenderer.on('no-public-users', () => {
|
||||
document.querySelector('.loader').classList.add('hide');
|
||||
createManualLogin();
|
||||
setTimeout(() => {
|
||||
document.querySelector('.server').classList.add('hide');
|
||||
}, 1000);
|
||||
});
|
||||
};
|
||||
|
||||
const closeDialog = () => {
|
||||
document.querySelector('.dialog').classList.remove('active');
|
||||
document.querySelector('.dialog__close').classList.remove('active');
|
||||
document.querySelector('.dialog').classList.add('fadeOut');
|
||||
document.querySelector('.dialog__close').classList.add('fadeOut');
|
||||
setTimeout(() => {
|
||||
document.querySelector('.dialog').classList.remove('fadeOut');
|
||||
document.querySelector('.dialog__close').classList.remove('fadeOut');
|
||||
document.querySelector('.dialog').remove();
|
||||
document.querySelector('.dialog__close').remove();
|
||||
}, 305);
|
||||
};
|
||||
|
||||
const createAlert = (type, msg, page) => {
|
||||
html = `<div class="alert ${type}">
|
||||
<div class="icon">
|
||||
<i class="bi bi-exclamation-octagon"></i>
|
||||
</div>
|
||||
<div class="msg">
|
||||
${msg}
|
||||
</div>
|
||||
<div class="load"></div>
|
||||
</div>`;
|
||||
document.querySelector(page).insertAdjacentHTML('beforeend', html);
|
||||
setTimeout(() => {
|
||||
document.querySelector('.alert').classList.add('goOut');
|
||||
setTimeout(() => {
|
||||
document.querySelector('.alert').remove();
|
||||
}, 1000);
|
||||
}, 3000);
|
||||
};
|
||||
|
||||
const createDialog = (title, msg, btn, type) => {
|
||||
html = `<div class="dialog ${type}">
|
||||
<div class="icon">
|
||||
<i class="bi bi-exclamation-octagon"></i>
|
||||
</div>
|
||||
<div class="title">
|
||||
${title}
|
||||
</div>
|
||||
<div class="msg">
|
||||
${msg}
|
||||
</div>
|
||||
</div>
|
||||
<div class="dialog__close"></div>`;
|
||||
document.querySelector('main').insertAdjacentHTML('beforeend', html);
|
||||
if (btn == "yes__no") {
|
||||
html = `<div class="buttons">
|
||||
<button class="clicky yes" onclick="sendClearDataRequest()">
|
||||
<label>Yes</label>
|
||||
</button>
|
||||
<button class="clicky no" onclick="closeDialog()">
|
||||
<label>No</label>
|
||||
</button>
|
||||
</div>`;
|
||||
document.querySelector('.dialog').insertAdjacentHTML('beforeend', html);
|
||||
} else if (btn == "remove__server") {
|
||||
html = `<div class="buttons">
|
||||
<button class="clicky rem__serv" onclick="sendClearDataRequest()">
|
||||
<label>Remove Server</label>
|
||||
</button>
|
||||
<button class="clicky reload" onclick="ipcRenderer.send('reload-page')">
|
||||
<label>Restart JellyPlayer</label>
|
||||
</button>
|
||||
</div>`;
|
||||
document.querySelector('.dialog').insertAdjacentHTML('beforeend', html);
|
||||
}
|
||||
document.querySelector('.dialog').classList.add('active');
|
||||
document.querySelector('.dialog__close').classList.add('active');
|
||||
document.querySelector('.dialog__close').addEventListener('click', () => {
|
||||
closeDialog();
|
||||
});
|
||||
document.querySelector('.loader').classList.add('hide');
|
||||
};
|
||||
|
||||
const sendClearDataRequest = () => {
|
||||
ipcRenderer.send('clear-user-data');
|
||||
};
|
||||
|
||||
const createManualLogin = () => {
|
||||
html = `<h3 class="title__name">Login</h3>
|
||||
<div class="manual__form user">
|
||||
<div class="input">
|
||||
<input type="text" value="" class="user__name" onblur="setLabelPos(this)">
|
||||
<label class="input__label" for="user__name">Username</label>
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="password" value="" class="user__password" onblur="setLabelPos(this)">
|
||||
<label class="input__label" for="user__password">Password</label>
|
||||
</div>
|
||||
<div class="input checkbox">
|
||||
<label>Remember me</label>
|
||||
<input class="remember__user" type="checkbox" value="true" style="-webkit-appearance: none;">
|
||||
<svg class="tick" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M13.854 3.646L6.5 11L2.646 7.146" stroke="black" stroke-linecap="round"/>
|
||||
</svg>
|
||||
</div>
|
||||
<button class="clicky user__login" onclick="sendAuthInfo(document.querySelector('.user__name').value, document.querySelector('.user__password').value, document.querySelector('.remember__user'))">
|
||||
<label>Login</label>
|
||||
</button>
|
||||
<button class="change__server clicky" onclick="changeServer()">
|
||||
<span>Change Server</span>
|
||||
</button>
|
||||
</div>`;
|
||||
document.querySelector('.manual__input').insertAdjacentHTML('beforeend', html);
|
||||
document.querySelector('.manual__login').classList.remove('hide');
|
||||
document.querySelector('.manual__login').scrollIntoView({ behavior: "smooth" });
|
||||
};
|
||||
|
||||
const setLabelPos = (element) => {
|
||||
if (element.value.length < 1) {
|
||||
element.parentNode.querySelector('.input__label').classList.remove('inputLabelActive');
|
||||
} else {
|
||||
element.parentNode.querySelector('.input__label').classList.add('inputLabelActive');
|
||||
}
|
||||
};
|
||||
|
||||
const createEnterPassword = (userName, userImg, userId) => {
|
||||
html = `<div class="user">
|
||||
<div class="user__info">
|
||||
<h3 class="title__name">Hello, ${userName}</h3>
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="password" value="" class="user__password" onblur="setLabelPos(this)">
|
||||
<label for="user__password" class="input__label">Password</label>
|
||||
</div>
|
||||
<div class="input checkbox">
|
||||
<label>Remember me</label>
|
||||
<input class="remember__user" type="checkbox" value="true" style="-webkit-appearance: none;">
|
||||
<svg class="tick" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M13.854 3.646L6.5 11L2.646 7.146" stroke="black" stroke-linecap="round"/>
|
||||
</svg>
|
||||
</div>
|
||||
<button class="user__login clicky" data-user="${userName}" onclick="sendAuthInfo(this.dataset.user, document.querySelector('.user__password').value, document.querySelector('.remember__user'))">
|
||||
<span>Login</span>
|
||||
</button>
|
||||
</div>`;
|
||||
document.querySelector('.manual__input').insertAdjacentHTML('beforeend', html);
|
||||
if (userImg == true) {
|
||||
html = `<img class="user__img" src="${config.get('serverUrl')}/Users/${userId}/Images/Primary"></img>`;
|
||||
document.querySelector('.manual__input').querySelector('.user__info').insertAdjacentHTML('afterbegin', html);
|
||||
} else if (userImg == false) {
|
||||
html = `<img class="user__svg" src="../svg/avatar.svg">`;
|
||||
document.querySelector('.manual__input').querySelector('.user__info').insertAdjacentHTML('afterbegin', html);
|
||||
}
|
||||
document.querySelector('.manual__login').classList.remove('hide');
|
||||
document.querySelector('.manual__login').scrollIntoView({ behavior: "smooth" });
|
||||
};
|
||||
|
||||
const sendAuthInfo = (userName, password, checkbox) => {
|
||||
if (checkbox.checked == true) {
|
||||
ipcRenderer.send('user-auth-details', [userName, password, true]);
|
||||
} else {
|
||||
ipcRenderer.send('user-auth-details', [userName, password, false]);
|
||||
}
|
||||
};
|
||||
|
||||
const changeServer = () => {
|
||||
createDialog('Are you sure?', "You want to remove this server", "yes__no", "warning");
|
||||
};
|
||||
|
||||
const goBack = (from, to, loginForm, button) => {
|
||||
to.scrollIntoView({ behavior: "smooth" });
|
||||
setTimeout(() => {
|
||||
from.classList.add('hide');
|
||||
from.querySelector(`.${loginForm}`).remove();
|
||||
html = `<section class="${loginForm}"></section>`;
|
||||
from.insertAdjacentHTML('beforeend', html);
|
||||
}, 1000);
|
||||
};
|
||||
|
||||
if (config.get('serverGo') == true) {
|
||||
document.querySelector('.loader').classList.remove('hide');
|
||||
ipcRenderer.send('check-server-status');
|
||||
ipcRenderer.on('server-online', () => {
|
||||
document.querySelector('.loader').classList.add('hide');
|
||||
createUserList();
|
||||
});
|
||||
ipcRenderer.on('server-offline', () => {
|
||||
createDialog('Error', "Cant connect to the jellyfin server", "remove__server", "error");
|
||||
});
|
||||
} else if (config.get('serverGo') == false) {
|
||||
saveBtn.addEventListener('click', () => {
|
||||
ipcRenderer.send('setServer', serverUrl.value);
|
||||
document.querySelector('.loader').classList.remove('hide');
|
||||
}, true);
|
||||
ipcRenderer.on('not-jf-server', () => {
|
||||
document.querySelector('.loader').classList.add('hide');
|
||||
createAlert('error', "Can't detrmine if the give server address is a valid Jellyfin server", ".server");
|
||||
});
|
||||
ipcRenderer.on('is-jf-server', () => {
|
||||
createUserList();
|
||||
});
|
||||
}
|
||||
|
||||
ipcRenderer.on('user-auth-failed', () => {
|
||||
console.log(1);
|
||||
createAlert('error', "Unable to login. Please check your password", ".manual__login");
|
||||
});
|
||||
@@ -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');
|
||||
};
|
||||
@@ -1,14 +0,0 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M11 6C11 6.79565 10.6839 7.55871 10.1213 8.12132C9.55871 8.68393 8.79565 9 8 9C7.20435 9 6.44129 8.68393 5.87868 8.12132C5.31607 7.55871 5 6.79565 5 6C5 5.20435 5.31607 4.44129 5.87868 3.87868C6.44129 3.31607 7.20435 3 8 3C8.79565 3 9.55871 3.31607 10.1213 3.87868C10.6839 4.44129 11 5.20435 11 6Z" fill="url(#paint0_linear_2_5)"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 8C0 5.87827 0.842855 3.84344 2.34315 2.34315C3.84344 0.842855 5.87827 0 8 0C10.1217 0 12.1566 0.842855 13.6569 2.34315C15.1571 3.84344 16 5.87827 16 8C16 10.1217 15.1571 12.1566 13.6569 13.6569C12.1566 15.1571 10.1217 16 8 16C5.87827 16 3.84344 15.1571 2.34315 13.6569C0.842855 12.1566 0 10.1217 0 8ZM8 1C6.68178 1.00007 5.39037 1.37236 4.2744 2.07403C3.15844 2.77569 2.26328 3.77821 1.69196 4.96619C1.12065 6.15418 0.896386 7.47934 1.045 8.78916C1.19361 10.099 1.70905 11.3402 2.532 12.37C3.242 11.226 4.805 10 8 10C11.195 10 12.757 11.225 13.468 12.37C14.2909 11.3402 14.8064 10.099 14.955 8.78916C15.1036 7.47934 14.8794 6.15418 14.308 4.96619C13.7367 3.77821 12.8416 2.77569 11.7256 2.07403C10.6096 1.37236 9.31822 1.00007 8 1Z" fill="url(#paint1_linear_2_5)"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_2_5" x1="0" y1="0" x2="16" y2="16" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.249497" stop-color="#3E2247"/>
|
||||
<stop offset="1" stop-color="#003C50"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_2_5" x1="0" y1="0" x2="16" y2="16" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.249497" stop-color="#3E2247"/>
|
||||
<stop offset="1" stop-color="#003C50"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.7 KiB |
@@ -1,11 +0,0 @@
|
||||
<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>
|
||||
|
Before Width: | Height: | Size: 665 B |
@@ -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 |