-
-
-
- {#key mode}
- {#if mode === "clips"}
-
- {:else if mode === "segments"}
-
- {:else if mode === "result"}
-
- {:else if mode === "musics"}
-
- {:else if mode === "effects"}
-
- {/if}
- {/key}
+
+
+
+
+
+
+
+
+ {#if healthy}
+
+
+ {#key mode}
+ {#if mode === "clips"}
+
+ {:else if mode === "segments"}
+
+ {:else if mode === "result"}
+
+ {:else if mode === "musics"}
+
+ {:else if mode === "effects"}
+
+ {/if}
+ {/key}
+
+ {:else}
+
+ {/if}
-
diff --git a/crispy-frontend/src/lib/components/Filters.svelte b/crispy-frontend/src/lib/components/Filters.svelte
index f6825b3..9d85f56 100644
--- a/crispy-frontend/src/lib/components/Filters.svelte
+++ b/crispy-frontend/src/lib/components/Filters.svelte
@@ -3,8 +3,8 @@
background-color: transparent;
}
button {
- margin-top: -60px;
- margin-bottom: 20px;
+ margin-top: -55px;
+ margin-bottom: 10px;
float: right;
text-align: center;
padding: 12px 20px;
diff --git a/crispy-frontend/src/lib/components/Loader.svelte b/crispy-frontend/src/lib/components/Loader.svelte
new file mode 100644
index 0000000..876e725
--- /dev/null
+++ b/crispy-frontend/src/lib/components/Loader.svelte
@@ -0,0 +1,36 @@
+
+
+
+
+{#if !isHealthy}
+
+{/if}
diff --git a/crispy-frontend/src/lib/components/Menubar.svelte b/crispy-frontend/src/lib/components/Menubar.svelte
index f699745..a488dd7 100644
--- a/crispy-frontend/src/lib/components/Menubar.svelte
+++ b/crispy-frontend/src/lib/components/Menubar.svelte
@@ -56,7 +56,7 @@
.selected {
background-color: var(--primary);
}
- @media (max-width: 700px) {
+ @media (max-width: 900px) {
.main {
flex-direction: column;
border-radius: 0% !important;
@@ -105,6 +105,7 @@
export let mode;
export let generating;
+ export let healthy;
const waitForJobs = async (url, id, msg) => {
let count = -1;
@@ -152,6 +153,7 @@
};
async function generateSegments() {
+ if (!healthy) { return }
if (generating) {
globalError("Already generating.");
return;
@@ -215,7 +217,7 @@
await waitForJobs(API_URL + "/results/generate/highlights/status", toastId, "Generating Results!");
toast.pop(0);
globalSuccess("All results generated! Generating final video...");
- globalInfo("Generating Final video! This may take a while...", {
+ globalInfo("Generating the final video! This may take a while...", {
initial: 0,
dismissable: false,
});
@@ -240,6 +242,7 @@
}
function changeMenu(newMode) {
+ if (!healthy) { return }
if (generating) {
globalError("Wait for current job to finish.");
return;
@@ -251,7 +254,7 @@
}
-