-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.svelte
More file actions
47 lines (40 loc) · 1.33 KB
/
App.svelte
File metadata and controls
47 lines (40 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<script lang="ts">
import { StartCoreProcesses } from "$ts/process/startup";
import { UserDataStore as uds } from "$ts/stores/user";
import { onMount } from "svelte";
import ActionCenter from "./Components/ActionCenter.svelte";
import PushNotification from "./Components/PushNotification.svelte";
import Shade from "./Components/Shade.svelte";
import StartMenu from "./Components/StartMenu.svelte";
import Taskbar from "./Components/Taskbar.svelte";
import Watermark from "./Components/Watermark.svelte";
import "./css/main.css";
import { ShellRuntime } from "./ts/runtime";
export let runtime: ShellRuntime;
const { UserStyle } = runtime;
let render = false;
onMount(async () => {
const args = runtime.process.args;
if (args.length > 0 && args[0] === true) await StartCoreProcesses(true);
render = true;
});
</script>
{#if $uds && render}
{@html $UserStyle}
<Shade />
<div
class="shell taskbar-bounds tb-{$uds.sh.taskbar.pos} fullscreen"
class:vertical={$uds.sh.taskbar.pos.includes("vertical")}
class:docked={$uds.sh.taskbar.docked}
>
<div class="primary">
<StartMenu />
<Watermark />
<PushNotification />
<ActionCenter />
</div>
<div class="secondary">
<Taskbar vertical={$uds.sh.taskbar.pos.includes("vertical")} />
</div>
</div>
{/if}