Fix Dialog
This commit is contained in:
11 files changed
+113438
-9510
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 156 KiB After Width: | Height: | Size: 336 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 511 KiB After Width: | Height: | Size: 505 KiB |
+5
-5
@@ -1,11 +1,11 @@
|
||||
<svg width="1075" height="1184" viewBox="0 0 1075 1184" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="1095" height="1204" viewBox="0 0 1095 1204" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g filter="url(#filter0_d_33_14)">
|
||||
<path d="M232.816 108.084C175.959 75.0539 98 112.787 98 184.205V588L580.681 309.981L232.816 108.084Z" fill="url(#pattern0)" shape-rendering="crispEdges"/>
|
||||
<path d="M960.839 544.005C953.091 530.638 941.951 519.555 928.546 511.878L580.681 309.981L98 588V991.795C98 1063.21 175.959 1100.95 232.816 1067.92L928.546 664.122C941.951 656.445 953.091 645.362 960.839 631.995C968.586 618.628 972.667 603.451 972.667 588C972.667 572.549 968.586 557.372 960.839 544.005Z" fill="url(#pattern1)" shape-rendering="crispEdges"/>
|
||||
<path d="M98 588V991.795C98 1063.21 175.959 1100.95 232.816 1067.92L928.546 664.122C941.951 656.445 953.091 645.362 960.839 631.995C968.586 618.628 972.667 603.451 972.667 588C972.667 572.549 968.586 557.372 960.839 544.005C953.091 530.638 941.951 519.555 928.546 511.878L580.681 309.981M98 588V184.205C98 112.787 175.959 75.0539 232.816 108.084L580.681 309.981M98 588L580.681 309.981" stroke="white" stroke-width="20" shape-rendering="crispEdges"/>
|
||||
<path d="M242.816 118.084C185.959 85.0539 108 122.787 108 194.205V598L590.681 319.981L242.816 118.084Z" fill="url(#pattern0)" shape-rendering="crispEdges"/>
|
||||
<path d="M970.839 554.005C963.091 540.638 951.951 529.555 938.546 521.878L590.681 319.981L108 598V1001.79C108 1073.21 185.959 1110.95 242.816 1077.92L938.546 674.122C951.951 666.445 963.091 655.362 970.839 641.995C978.586 628.628 982.667 613.451 982.667 598C982.667 582.549 978.586 567.372 970.839 554.005Z" fill="url(#pattern1)" shape-rendering="crispEdges"/>
|
||||
<path d="M108 598V1001.79C108 1073.21 185.959 1110.95 242.816 1077.92L938.546 674.122C951.951 666.445 963.091 655.362 970.839 641.995C978.586 628.628 982.667 613.451 982.667 598C982.667 582.549 978.586 567.372 970.839 554.005C963.091 540.638 951.951 529.555 938.546 521.878L590.681 319.981M108 598V194.205C108 122.787 185.959 85.0539 242.816 118.084L590.681 319.981M108 598L590.681 319.981" stroke="white" stroke-width="40" shape-rendering="crispEdges"/>
|
||||
</g>
|
||||
<defs>
|
||||
<filter id="filter0_d_33_14" x="0" y="0.0477295" width="1074.67" height="1183.9" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<filter id="filter0_d_33_14" x="0" y="0.0953369" width="1094.67" height="1203.81" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
||||
<feOffset dx="2" dy="4"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
@@ -11,7 +11,7 @@ app = QApplication(["--enable-smooth-scrolling"])
|
||||
os.environ['QTWEBENGINE_REMOTE_DEBUGGING'] = "9000"
|
||||
|
||||
try:
|
||||
from ctypes import windll # Only exists on Windows.
|
||||
from ctypes import windll
|
||||
myappid = 'prayag17.jellyplayer.0.1.0'
|
||||
windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
|
||||
except ImportError:
|
||||
@@ -20,6 +20,7 @@ except ImportError:
|
||||
storage = localStoragePy('prayag.jellyplayer.app', 'sqlite')
|
||||
print(f"Server Url:{storage.getItem('server')}")
|
||||
|
||||
|
||||
def restart():
|
||||
QApplication.quit()
|
||||
status = QProcess.startDetached(sys.executable, sys.argv)
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
|
||||
|
||||
block_cipher = None
|
||||
|
||||
|
||||
a = Analysis(['main.py'],
|
||||
pathex=[],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=[],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
win_no_prefer_redirects=False,
|
||||
win_private_assemblies=False,
|
||||
cipher=block_cipher,
|
||||
noarchive=False)
|
||||
pyz = PYZ(a.pure, a.zipped_data,
|
||||
cipher=block_cipher)
|
||||
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
[],
|
||||
exclude_binaries=False,
|
||||
name='JellyPlayer',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
console=False,
|
||||
disable_windowed_traceback=False,
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
icon='assets/icon.ico' )
|
||||
coll = COLLECT(exe,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx_exclude=[],
|
||||
name='JellyPlayer')
|
||||
+113350
-9462
File diff suppressed because it is too large.
Load diff
+8
-26
@@ -95,43 +95,25 @@ main,
|
||||
}
|
||||
|
||||
/*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;
|
||||
top: calc(50% + 150px);
|
||||
margin-bottom: -150px;
|
||||
}
|
||||
100% {
|
||||
opactiy: 1;
|
||||
top: 50%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
top: calc(50% + 150px);
|
||||
margin-bottom: -150px;
|
||||
}
|
||||
100% {
|
||||
opactiy: 1;
|
||||
top: 50%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,12 +121,12 @@ main,
|
||||
0% {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
top: 50%;
|
||||
inset: 0 0 0 0;
|
||||
}
|
||||
99% {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
top: calc(50% + 150px);
|
||||
inset: 150px 0 0 0;
|
||||
}
|
||||
100% {
|
||||
display: none;
|
||||
@@ -156,12 +138,12 @@ main,
|
||||
0% {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
top: 50%;
|
||||
inset: 0 0 0 0;
|
||||
}
|
||||
99% {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
top: calc(50% + 150px);
|
||||
inset: 150px 0 0 0;
|
||||
}
|
||||
100% {
|
||||
display: none;
|
||||
|
||||
+17
-6
@@ -239,15 +239,26 @@ input:focus + .input__label,
|
||||
--color: var(--error-red);
|
||||
}
|
||||
|
||||
.dialog__cont {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.dialog {
|
||||
position: fixed;
|
||||
background: var(--main-bg);
|
||||
z-index: 1;
|
||||
z-index: 5;
|
||||
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;
|
||||
@@ -291,7 +302,7 @@ input:focus + .input__label,
|
||||
}
|
||||
|
||||
.dialog__close {
|
||||
position: fixed;
|
||||
position: absolute;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: rgba(5, 5, 5, 0.5);
|
||||
@@ -307,7 +318,7 @@ input:focus + .input__label,
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.dialog.fadeOut {
|
||||
.dialog__cont.fadeOut {
|
||||
-webkit-animation: fadeOut var(--transition-time-fast-2) forwards;
|
||||
animation: fadeOut var(--transition-time-fast-2) forwards;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
</div>
|
||||
<section class="manual__input"></section>
|
||||
</section>
|
||||
<div class="loader hide">
|
||||
<div class="loader">
|
||||
<svg width="52" height="12" viewBox="0 0 52 12" fill="none" xmlns="http://www.w3.org/2000/svg" xml:space="preserve">
|
||||
<circle cx="6" cy="6" r="6" fill="white">
|
||||
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1"></animate>
|
||||
|
||||
+10
-7
@@ -73,6 +73,7 @@ window.onload = () => {
|
||||
window.getServer();
|
||||
});
|
||||
});
|
||||
document.querySelector(".loader").classList.add("hide");
|
||||
};
|
||||
|
||||
const base_token = `MediaBrowser Client="JellyPlayer", Device="${window.navigator.userAgent}", DeviceId="${generateUUID()}", Version="1.0.0"`;
|
||||
@@ -121,15 +122,14 @@ const createUserList = async (server) => {
|
||||
};
|
||||
|
||||
const closeDialog = () => {
|
||||
document.querySelector('.dialog').classList.remove('active');
|
||||
document.querySelector('.dialog__cont').classList.remove('active');
|
||||
document.querySelector('.dialog__close').classList.remove('active');
|
||||
document.querySelector('.dialog').classList.add('fadeOut');
|
||||
document.querySelector('.dialog__cont').classList.add('fadeOut');
|
||||
document.querySelector('.dialog__close').classList.add('fadeOut');
|
||||
setTimeout(() => {
|
||||
document.querySelector('.dialog').classList.remove('fadeOut');
|
||||
document.querySelector('.dialog__cont').classList.remove('fadeOut');
|
||||
document.querySelector('.dialog__close').classList.remove('fadeOut');
|
||||
document.querySelector('.dialog').remove();
|
||||
document.querySelector('.dialog__close').remove();
|
||||
document.querySelector('.dialog__cont').remove();
|
||||
}, 305);
|
||||
};
|
||||
|
||||
@@ -153,7 +153,8 @@ const createAlert = (type, msg, page) => {
|
||||
};
|
||||
|
||||
const createDialog = (title, msg, btn, type, page) => {
|
||||
html = `<div class="dialog ${type}">
|
||||
html = `<div class="dialog__cont">
|
||||
<div class="dialog ${type}">
|
||||
<div class="icon">
|
||||
<i class="bi bi-exclamation-octagon"></i>
|
||||
</div>
|
||||
@@ -164,7 +165,8 @@ const createDialog = (title, msg, btn, type, page) => {
|
||||
${msg}
|
||||
</div>
|
||||
</div>
|
||||
<div class="dialog__close"></div>`;
|
||||
<div class="dialog__close"></div>
|
||||
</div>`;
|
||||
document.querySelector(page).insertAdjacentHTML('beforeend', html);
|
||||
if (btn == "yes__no") {
|
||||
html = `<div class="buttons">
|
||||
@@ -304,6 +306,7 @@ const changeServer = (page) => {
|
||||
};
|
||||
|
||||
const goBack = (from, to, loginForm) => {
|
||||
to.classList.remove("hide");
|
||||
to.scrollIntoView({ behavior: "smooth" });
|
||||
document.querySelector(".blue").classList.remove("active");
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -39,6 +39,4 @@ emitter.on("logged-in", async (user) => {
|
||||
console.log(item);
|
||||
mainPage.innerHTML += item.Name;
|
||||
});
|
||||
// mainPage.scrollIntoView({ behavior: "smooth" });
|
||||
// loginPage.classList.add("hide");
|
||||
});
|
||||
Reference in new issue
Block a user