Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e370042
chore(pyroservers): attempt better error propogation
ferothefox Feb 14, 2025
58e2efb
chore(pyroservers): introduce deferred modules
ferothefox Feb 14, 2025
179166a
Merge branch 'modrinth:main' into evan/performance-improvements-febru…
ferothefox Feb 16, 2025
f4f4da8
fix(pyroservers): synchronize server icon processing
ferothefox Feb 16, 2025
80e40e8
refactor: server action buttons
ferothefox Feb 16, 2025
6d96c3a
chore: bring back skeleton
ferothefox Feb 16, 2025
4135c01
fix(startup): populate values on refresh
ferothefox Feb 16, 2025
d3783e6
chore: properly refresh network
ferothefox Feb 16, 2025
102cbad
fix: do not open backup settings modal if fetch failed
ferothefox Feb 16, 2025
949a2ea
fix(platform): only clear selected loader version if selecting a diff…
ferothefox Feb 16, 2025
d41740e
feat: parse links in console log
ferothefox Feb 16, 2025
3ba5c0b
fix: attempt to mitigate power button state flash
ferothefox Feb 16, 2025
388672f
Revert "fix: attempt to mitigate power button state flash"
ferothefox Feb 16, 2025
f639d3e
refactor: error accumulation builder in PyroServersFetch
ferothefox Feb 16, 2025
e8d9ab3
fix: sentence case
ferothefox Feb 16, 2025
94b822f
fix(files): await deferred fs
ferothefox Feb 16, 2025
f4a0401
fix: startup border
ferothefox Feb 16, 2025
f41d5af
fix: prevent suspended server errors from being overwritten
ferothefox Feb 17, 2025
1416675
Merge branch 'modrinth:main' into evan/performance-improvements-febru…
ferothefox Feb 17, 2025
db9fa0e
fix: add server id copy button to suspended server listing
ferothefox Feb 17, 2025
808600a
fix: refresh behavior
ferothefox Feb 18, 2025
351abba
fix: behavior of server icon in options
ferothefox Feb 18, 2025
b0a460d
chore: clean
ferothefox Feb 18, 2025
7f24bfb
chore: clean
ferothefox Feb 18, 2025
da78054
fix: prevent error inspector failures from destroying the page
ferothefox Feb 18, 2025
3f90d7e
chore: clean
ferothefox Feb 18, 2025
ea4dc4f
chore: remove nexttick wrapper
ferothefox Feb 18, 2025
1d6a056
fix: ensure file edit gets initted due to deferred module
ferothefox Feb 18, 2025
6029d4d
refactor: prevent module errors from breaking the layout
ferothefox Feb 18, 2025
2472943
chore: clean
ferothefox Feb 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const fetchSettings = async () => {
initialSettings.value = settings as { interval: number; enabled: boolean };
autoBackupEnabled.value = settings?.enabled ?? false;
autoBackupInterval.value = settings?.interval || 6;
return true;
} catch (error) {
console.error("Error fetching backup settings:", error);
addNotification({
Expand All @@ -114,6 +115,7 @@ const fetchSettings = async () => {
text: "Failed to load backup settings",
type: "error",
});
return false;
} finally {
isLoadingSettings.value = false;
}
Expand Down Expand Up @@ -155,8 +157,10 @@ const saveSettings = async () => {

defineExpose({
show: async () => {
await fetchSettings();
modal.value?.show();
const success = await fetchSettings();
if (success) {
modal.value?.show();
}
},
});
</script>
Expand Down
80 changes: 80 additions & 0 deletions apps/frontend/src/components/ui/servers/OverviewLoading.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<template>
<div
aria-hidden="true"
style="font-variant-numeric: tabular-nums"
class="pointer-events-none h-full w-full select-none"
>
<div class="flex flex-col gap-6">
<div class="flex flex-row items-center gap-6">
<div
class="relative max-h-[156px] min-h-[156px] w-full overflow-hidden rounded-2xl bg-bg-raised p-8"
>
<div class="relative z-10 -ml-3 w-fit rounded-xl px-3 py-1">
<div class="-mb-0.5 mt-0.5 flex flex-row items-center gap-2">
<h2 class="m-0 -ml-0.5 text-3xl font-extrabold text-contrast">0.00%</h2>
<h3 class="relative z-10 text-sm font-normal text-secondary">/ 100%</h3>
</div>
<h3 class="relative z-10 text-base font-normal text-secondary">CPU usage</h3>
</div>
<CPUIcon class="absolute right-10 top-10" />
</div>
<div
class="relative max-h-[156px] min-h-[156px] w-full overflow-hidden rounded-2xl bg-bg-raised p-8"
>
<div class="relative z-10 -ml-3 w-fit rounded-xl px-3 py-1">
<div class="-mb-0.5 mt-0.5 flex flex-row items-center gap-2">
<h2 class="m-0 -ml-0.5 text-3xl font-extrabold text-contrast">0.00%</h2>
<h3 class="relative z-10 text-sm font-normal text-secondary">/ 100%</h3>
</div>
<h3 class="relative z-10 text-base font-normal text-secondary">Memory usage</h3>
</div>
<DBIcon class="absolute right-10 top-10" />
</div>
<div
class="relative isolate min-h-[156px] w-full overflow-hidden rounded-2xl bg-bg-raised p-8 transition-transform duration-100 hover:scale-105 active:scale-100"
>
<div class="flex flex-row items-center gap-2">
<h2 class="m-0 -ml-0.5 mt-1 text-3xl font-extrabold text-contrast">0 B</h2>
</div>
<h3 class="relative z-10 text-base font-normal text-secondary">Storage usage</h3>
<FolderOpenIcon class="absolute right-10 top-10 size-8" />
</div>
</div>

<div
class="relative flex h-full w-full flex-col gap-3 overflow-hidden rounded-2xl bg-bg-raised p-8"
>
<div class="experimental-styles-within flex flex-row items-center">
<div class="flex flex-row items-center gap-4">
<h2 class="m-0 text-3xl font-extrabold text-contrast">Console</h2>
</div>
</div>
<div class="relative w-full">
<input type="text" placeholder="Search logs" class="h-12 !w-full !pl-10 !pr-48" />
<SearchIcon class="absolute left-4 top-1/2 -translate-y-1/2" />
</div>
<div
class="console relative h-full min-h-[516px] w-full overflow-hidden rounded-xl bg-bg text-sm"
></div>
</div>
</div>
</div>
</template>

<script setup lang="ts">
import { CPUIcon, DBIcon, FolderOpenIcon, SearchIcon } from "@modrinth/assets";
</script>

<style scoped>
html.light-mode .console {
background: var(--color-bg);
}

html.dark-mode .console {
background: black;
}

html.oled-mode .console {
background: black;
}
</style>
Loading
Loading