FEAT: Loding screen
Some checks failed
publish / publish-tauri (, ubuntu-22.04) (push) Failing after 4m4s

This commit is contained in:
valerio 2026-03-30 17:08:04 +02:00
parent a3bf261682
commit 3fee3fded9
3 changed files with 16 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "smoothie",
"version": "0.1.0",
"version": "0.1.1",
"description": "",
"type": "module",
"scripts": {

View File

@ -1,11 +1,12 @@
<script>
import { load } from '@tauri-apps/plugin-store';
let { loadingState } = $props();
</script>
<div class="splash">
{#if loadingState == 'loading'}
<div class="spinner">
<pre class="monospace">
<div class="spinner">
<pre class="monospace">
▄▄▄▄▄
██▀▀▀▀█▄ █▄ █▄
▀██▄ ▄▀ ▄ ▄██▄██ ▀▀
@ -13,14 +14,15 @@
▄ ▀██▄ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▄█▀
▀██████▀▄██ ██ ▀█▄▀███▀▄▀███▀▄██▄██ ██▄██▄▀█▄▄▄
</pre>
</div>
{/if}
</div>
<p>{loadingState}</p>
</div>
<style>
.splash {
align-items: center;
justify-content: center;
flex-direction: column;
display: flex;
width: 100%;
height: 100%;
@ -30,5 +32,6 @@
.monospace {
font-family: monospace;
color: var(--black);
letter-spacing: 1px;
}
</style>

View File

@ -52,12 +52,19 @@
}
onMount(async () => {
loadingState = 'Checking for Updates';
version = await getVersion();
loadingState = 'Loading Settings';
await getSettings();
loadingState = 'Fetching Blender Releases';
await getBlenderReleases();
loadingState = 'Loading your installs';
await getInstalledVersions();
loadingState = 'Setting up Tray';
await setupTrayIcon();
loadingState = 'initializing';
await initStoresListeners();
await setTimeout(() => {}, 1000);
loadingState = 'initialized';
});
</script>