-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
59 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
{#if $hardwareInfo.cpu !== undefined} | ||
{#if $state.state === "connected"} | ||
<CPU /> | ||
{:else if $state.state === "loading"} | ||
<Loading /> | ||
{:else} | ||
<Connect /> | ||
{/if} | ||
|
||
<script> | ||
import { goto } from "$app/navigation" | ||
import { onMount } from "svelte" | ||
import CPU from "ui/pages/cpu.svelte" | ||
import { hardwareInfo } from "ui/stores/hardwareInfo.ts" | ||
onMount(() => { | ||
if ($hardwareInfo.cpu === undefined) { | ||
goto("/connect") | ||
} | ||
}) | ||
import { state } from "../../../stores/state" | ||
import Loading from "ui/navigation/loading.svelte" | ||
import Connect from "../../../components/connect.svelte" | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
{#if $hardwareInfo.cpu !== undefined} | ||
{#if $state.state === "connected"} | ||
<GPU /> | ||
{:else if $state.state === "loading"} | ||
<Loading /> | ||
{:else} | ||
<Connect /> | ||
{/if} | ||
|
||
<script> | ||
import { goto } from "$app/navigation" | ||
import { onMount } from "svelte" | ||
import GPU from "ui/pages/gpu.svelte" | ||
import { hardwareInfo } from "ui/stores/hardwareInfo.ts" | ||
onMount(() => { | ||
if ($hardwareInfo.cpu === undefined) { | ||
goto("/connect") | ||
} | ||
}) | ||
import { state } from "../../../stores/state" | ||
import Loading from "ui/navigation/loading.svelte" | ||
import Connect from "../../../components/connect.svelte" | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
{#if $hardwareInfo.cpu !== undefined} | ||
{#if $state.state === "connected"} | ||
<Home /> | ||
{:else if $state.state === "loading"} | ||
<Loading /> | ||
{:else} | ||
<Connect /> | ||
{/if} | ||
|
||
<script> | ||
import { goto } from "$app/navigation" | ||
import { onMount } from "svelte" | ||
import Home from "ui/pages/home.svelte" | ||
import { hardwareInfo } from "ui/stores/hardwareInfo.ts" | ||
onMount(() => { | ||
if ($hardwareInfo.cpu === undefined) { | ||
goto("/connect") | ||
} | ||
}) | ||
import { state } from "../../../stores/state" | ||
import Loading from "ui/navigation/loading.svelte" | ||
import Connect from "../../../components/connect.svelte" | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
{#if $hardwareInfo.cpu !== undefined} | ||
{#if $state.state === "connected"} | ||
<Network /> | ||
{:else if $state.state === "loading"} | ||
<Loading /> | ||
{:else} | ||
<Connect /> | ||
{/if} | ||
|
||
<script> | ||
import { goto } from "$app/navigation" | ||
import { onMount } from "svelte" | ||
import Network from "ui/pages/network.svelte" | ||
import { hardwareInfo } from "ui/stores/hardwareInfo.ts" | ||
onMount(() => { | ||
if ($hardwareInfo.cpu === undefined) { | ||
goto("/connect") | ||
} | ||
}) | ||
import { state } from "../../../stores/state" | ||
import Loading from "ui/navigation/loading.svelte" | ||
import Connect from "../../../components/connect.svelte" | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
{#if $hardwareInfo.cpu !== undefined} | ||
<RAM/> | ||
{#if $state.state === "connected"} | ||
<RAM /> | ||
{:else if $state.state === "loading"} | ||
<Loading /> | ||
{:else} | ||
<Connect /> | ||
{/if} | ||
|
||
<script> | ||
import { goto } from "$app/navigation" | ||
import { onMount } from "svelte" | ||
import RAM from "ui/pages/ram.svelte" | ||
import { hardwareInfo } from "ui/stores/hardwareInfo.ts" | ||
onMount(() => { | ||
if ($hardwareInfo.cpu === undefined) { | ||
goto("/connect") | ||
} | ||
}) | ||
import { state } from "../../../stores/state" | ||
import Loading from "ui/navigation/loading.svelte" | ||
import Connect from "../../../components/connect.svelte" | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
{#if $hardwareInfo.cpu !== undefined} | ||
{#if $state.state === "connected"} | ||
<Storage /> | ||
{:else if $state.state === "loading"} | ||
<Loading /> | ||
{:else} | ||
<Connect /> | ||
{/if} | ||
|
||
<script> | ||
import { goto } from "$app/navigation" | ||
import { onMount } from "svelte" | ||
import Storage from "ui/pages/storage.svelte" | ||
import { hardwareInfo } from "ui/stores/hardwareInfo.ts" | ||
onMount(() => { | ||
if ($hardwareInfo.cpu === undefined) { | ||
goto("/connect") | ||
} | ||
}) | ||
import { state } from "../../../stores/state" | ||
import Loading from "ui/navigation/loading.svelte" | ||
import Connect from "../../../components/connect.svelte" | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
{#if $hardwareInfo.cpu !== undefined} | ||
{#if $state.state === "connected"} | ||
<System /> | ||
{:else if $state.state === "loading"} | ||
<Loading /> | ||
{:else} | ||
<Connect /> | ||
{/if} | ||
|
||
<script> | ||
import { goto } from "$app/navigation" | ||
import { onMount } from "svelte" | ||
import System from "ui/pages/system.svelte" | ||
import { hardwareInfo } from "ui/stores/hardwareInfo.ts" | ||
onMount(() => { | ||
if ($hardwareInfo.cpu === undefined) { | ||
goto("/connect") | ||
} | ||
}) | ||
import { state } from "../../../stores/state" | ||
import Loading from "ui/navigation/loading.svelte" | ||
import Connect from "../../../components/connect.svelte" | ||
</script> |