FEAT: Loding screen
Some checks failed
publish / publish-tauri (, ubuntu-22.04) (push) Failing after 4m4s
Some checks failed
publish / publish-tauri (, ubuntu-22.04) (push) Failing after 4m4s
This commit is contained in:
parent
a3bf261682
commit
3fee3fded9
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "smoothie",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"description": "",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user