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", "name": "smoothie",
"version": "0.1.0", "version": "0.1.1",
"description": "", "description": "",
"type": "module", "type": "module",
"scripts": { "scripts": {

View File

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

View File

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