test to see if the action even works
This commit is contained in:
@@ -18,7 +18,7 @@ export function createSplashWindow(startMinimized = false) {
|
|||||||
show: !startMinimized
|
show: !startMinimized
|
||||||
});
|
});
|
||||||
|
|
||||||
splash.loadFile(join(VIEW_DIR, "splash.html"));
|
splash.loadFile(join(VIEW_DIR, "nx-splash.html"));
|
||||||
|
|
||||||
const { splashBackground, splashColor, splashTheming } = Settings.store;
|
const { splashBackground, splashColor, splashTheming } = Settings.store;
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export async function githubGet(endpoint: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function downloadVencordFiles() {
|
export async function downloadVencordFiles() {
|
||||||
const release = await githubGet("/repos/Vendicated/Vencord/releases/latest");
|
const release = await githubGet("/repos/Nexulien/Nexulien/releases/latest");
|
||||||
|
|
||||||
const { assets }: ReleaseData = await release.json();
|
const { assets }: ReleaseData = await release.json();
|
||||||
|
|
||||||
|
|||||||
2
static/nx-icon.svg
Normal file
2
static/nx-icon.svg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg viewBox="-8 -8 48 48" width="64px" height="64px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:bx="https://boxy-svg.com"><defs><bx:grid x="0" y="0" width="1" height="1"/><bx:export><bx:file format="png" xlink:href="#object-0"/><bx:file format="png" path="Untitled 2.png" xlink:href="#object-1"/><bx:file format="png" path="Untitled 3.png" xlink:href="#object-2"/><bx:file format="png" path="Untitled 4.png" xlink:href="#object-3"/><bx:file format="png" path="Untitled 5.png" xlink:href="#object-4"/><bx:file format="png" path="Untitled 6.png" xlink:href="#object-5"/><bx:file format="png" path="Untitled 7.png" xlink:href="#object-6"/><bx:file format="png" path="Untitled 8.png" xlink:href="#object-7"/><bx:file format="png" path="Untitled 9.png" xlink:href="#object-8"/><bx:file format="png" path="Untitled 10.png" xlink:href="#object-9"/><bx:file format="png" path="Untitled 11.png" xlink:href="#object-10"/><bx:file format="png" path="fornite balls.png" width="4096" height="4096"/><bx:file format="svg"/></bx:export><mask id="mask-0"><g><rect x="-8" y="-8" width="48" height="48" style="" id="object-0"/><polygon style="stroke-miterlimit: 19.73; stroke-linejoin: round; stroke-linecap: round; stroke-width: 12px; fill: none; stroke: rgb(255, 255, 255);" points="5 10 16 3 27 10 27 22 16 29 5 22" id="object-1"/><polygon style="stroke-miterlimit: 19.73; stroke-linejoin: round; stroke-linecap: round; stroke-width: 8px; stroke: rgb(0, 0, 0);" points="5 10 16 3 27 10 27 22 16 29 5 22" id="object-2"/><line style="fill: rgb(216, 216, 216); stroke-width: 2px; stroke-linecap: round; stroke: rgb(255, 255, 255);" x1="5" y1="22" x2="13" y2="27" id="object-3"/><line style="stroke-width: 2px; stroke-linecap: round; fill: rgb(255, 255, 255); stroke: rgb(255, 255, 255);" x1="27" y1="22" x2="19" y2="27" id="object-4"/><line style="fill: rgb(216, 216, 216); stroke-width: 2px; stroke-linecap: round; stroke: rgb(255, 255, 255);" x1="27" y1="8" x2="25" y2="10" id="object-5"/><line style="fill: rgb(216, 216, 216); stroke-width: 2px; stroke-linecap: round; stroke: rgb(255, 255, 255);" x1="5" y1="8" x2="7" y2="10" id="object-6"/><line style="fill: rgb(216, 216, 216); stroke-width: 2px; stroke-linecap: round; stroke: rgb(255, 255, 255);" x1="32" y1="24" x2="34" y2="26" id="object-7"/><line style="fill: rgb(216, 216, 216); stroke-width: 2px; stroke-linecap: round; stroke: rgb(255, 255, 255);" x1="29" y1="27" x2="31" y2="29" id="object-8"/><line style="fill: rgb(216, 216, 216); stroke-width: 2px; stroke-linecap: round; stroke: rgb(255, 255, 255);" x1="0" y1="24" x2="-2" y2="26" id="object-9"/><line style="fill: rgb(216, 216, 216); stroke-width: 2px; stroke-linecap: round; stroke: rgb(255, 255, 255);" x1="3" y1="27" x2="1" y2="29" id="object-10"/></g></mask></defs><rect x="-8" y="-8" width="48" height="48" style="fill: rgb(0, 255, 153); mask: url("#mask-0");" id="rect-1"/></svg>
|
||||||
|
After Width: | Height: | Size: 2.9 KiB |
98
static/views/nx-splash.html
Normal file
98
static/views/nx-splash.html
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
background: none;
|
||||||
|
user-select: none;
|
||||||
|
-webkit-app-region: drag;
|
||||||
|
display: grid;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
align-self: center;
|
||||||
|
justify-self: center;
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
border-radius: 32px;
|
||||||
|
background-color: #222;
|
||||||
|
color: white;
|
||||||
|
font-family: sans-serif;
|
||||||
|
|
||||||
|
width: 256px;
|
||||||
|
height: 256px;
|
||||||
|
|
||||||
|
box-shadow: 0px 16px 32px #0004;
|
||||||
|
padding: 32px;
|
||||||
|
gap: 24px;
|
||||||
|
padding-top: 64px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loadingBar {
|
||||||
|
background-color: #0f9;
|
||||||
|
display: block;
|
||||||
|
height: 8px;
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 8px;
|
||||||
|
animation: loadingBar 1s infinite ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes loadingBar {
|
||||||
|
0% {
|
||||||
|
width: 0px;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
5% {
|
||||||
|
opacity: 0;
|
||||||
|
width: 8px;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
25% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
opacity: 1;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
75% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
95% {
|
||||||
|
opacity: 0;
|
||||||
|
width: 8px;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
width: 0px;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 128px;
|
||||||
|
height: 128px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<img draggable="false" src="../nx-icon.svg" alt="nexulien logo" role="presentation" />
|
||||||
|
<span class="loadingBar"></span>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
Reference in New Issue
Block a user