mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-16 15:17:21 -05:00
potentially fixed auto updater, made sdk also up to date
This commit is contained in:
@@ -87,6 +87,21 @@
|
||||
}
|
||||
}
|
||||
|
||||
.file-line {
|
||||
width: 100%;
|
||||
min-height: 16px;
|
||||
margin-top: -12px;
|
||||
margin-bottom: 14px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
font-size: 11px;
|
||||
color: rgba(255, 255, 255, 0.45);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
direction: rtl;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.progress-track {
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
@@ -198,6 +213,7 @@
|
||||
<div id="debug-log-box"
|
||||
style="display: none; width: 100%; max-height: 180px; overflow-y: auto; background: rgba(255, 50, 50, 0.12); border-radius: 15px; padding: 12px; font-family: monospace; font-size: 12px; color: #fca5a5; text-align: left; white-space: pre-wrap; word-break: break-all; margin-bottom: 20px; user-select: text;">
|
||||
</div>
|
||||
<div class="file-line" id="file-line"></div>
|
||||
<div class="progress-track" id="progress-track" style="display: none;">
|
||||
<div class="progress-fill" id="progress-fill"></div>
|
||||
</div>
|
||||
@@ -515,6 +531,8 @@ void main() {
|
||||
const actionsEl = document.getElementById("update-actions");
|
||||
const btnYes = document.getElementById("btn-update-yes");
|
||||
const btnNo = document.getElementById("btn-update-no");
|
||||
const fileLine = document.getElementById("file-line");
|
||||
let currentService = "";
|
||||
|
||||
if (actionsEl) actionsEl.style.display = "none";
|
||||
if (progressTrack) progressTrack.style.display = "none";
|
||||
@@ -562,10 +580,28 @@ void main() {
|
||||
eventApi.listen("status", (e) => {
|
||||
const data = e.payload || e;
|
||||
if (data && data.message) {
|
||||
if (fileLine) fileLine.textContent = "";
|
||||
currentService = "";
|
||||
setStatus(data.message);
|
||||
}
|
||||
});
|
||||
|
||||
eventApi.listen("extract-progress", (e) => {
|
||||
const data = e.payload || e;
|
||||
if (!data || !data.file) return;
|
||||
if (progressTrack) progressTrack.style.display = "block";
|
||||
if (actionsEl) actionsEl.style.display = "none";
|
||||
if (progressFill) progressFill.style.width = `${data.percent}%`;
|
||||
|
||||
const parts = String(data.file).split("/");
|
||||
const service = parts.length > 1 ? parts[0] : "core files";
|
||||
if (service !== currentService) {
|
||||
currentService = service;
|
||||
setStatus(`Installing ${service}...`);
|
||||
}
|
||||
if (fileLine) fileLine.textContent = `${data.file} (${data.done}/${data.total})`;
|
||||
});
|
||||
|
||||
eventApi.listen("download-progress", (e) => {
|
||||
const data = e.payload || e;
|
||||
if (data) {
|
||||
@@ -592,6 +628,7 @@ void main() {
|
||||
if (data && data.url) {
|
||||
if (progressTrack) progressTrack.style.display = "none";
|
||||
if (actionsEl) actionsEl.style.display = "none";
|
||||
if (fileLine) fileLine.textContent = "";
|
||||
setStatus("Launching...");
|
||||
}
|
||||
});
|
||||
@@ -599,6 +636,7 @@ void main() {
|
||||
eventApi.listen("error", (e) => {
|
||||
const data = e.payload || e;
|
||||
const msg = data && data.message ? data.message : JSON.stringify(data);
|
||||
if (fileLine) fileLine.textContent = "";
|
||||
setStatus("Runtime Error", "#fca5a5");
|
||||
showDebug(msg);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user