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",
|
"name": "smoothie",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
<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">
|
|
||||||
▄▄▄▄▄
|
▄▄▄▄▄
|
||||||
██▀▀▀▀█▄ █▄ █▄
|
██▀▀▀▀█▄ █▄ █▄
|
||||||
▀██▄ ▄▀ ▄ ▄██▄██ ▀▀
|
▀██▄ ▄▀ ▄ ▄██▄██ ▀▀
|
||||||
@ -13,14 +14,15 @@
|
|||||||
▄ ▀██▄ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▄█▀
|
▄ ▀██▄ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▄█▀
|
||||||
▀██████▀▄██ ██ ▀█▄▀███▀▄▀███▀▄██▄██ ██▄██▄▀█▄▄▄
|
▀██████▀▄██ ██ ▀█▄▀███▀▄▀███▀▄██▄██ ██▄██▄▀█▄▄▄
|
||||||
</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>
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user