Wip web app (#36)
This commit is contained in:
1 parent
1cc636b4d6
commit
5be6b68e6a
5 files changed
+24
-8
No files matched your search
@@ -70,7 +70,7 @@
|
||||
and Playlists, if you have any.</li>
|
||||
</ul>
|
||||
<p>
|
||||
This is a barebone page for now, stay tuned for a redesigned page!
|
||||
This is a barebone page for now, <a href="/index.html">click here for the redesigned page!</a>
|
||||
</p>
|
||||
<h5>Feedback is welcome over at: <a id="feedback-url" href="https://github.com/iBicha/playlet"
|
||||
target="_blank">https://github.com/iBicha/playlet</a></h5>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
import ClearSearchHistory from "./lib/ClearSearchHistory.svelte";
|
||||
import { PlayletApi } from "./lib/PlayletApi";
|
||||
import { playletStateStore } from "./lib/Stores";
|
||||
import LegacyUI from "./lib/LegacyUI.svelte";
|
||||
|
||||
onMount(async () => {
|
||||
const playletState = await PlayletApi.getState();
|
||||
@@ -15,7 +16,10 @@
|
||||
|
||||
<main>
|
||||
<NavBar />
|
||||
<InstanceInfo />
|
||||
<PlayVideo />
|
||||
<ClearSearchHistory />
|
||||
<div class="p-6 space-y-2 form-control">
|
||||
<InstanceInfo />
|
||||
<PlayVideo />
|
||||
<ClearSearchHistory />
|
||||
<LegacyUI />
|
||||
</div>
|
||||
</main>
|
||||
@@ -6,5 +6,6 @@
|
||||
};
|
||||
</script>
|
||||
|
||||
<button class="btn" on:click={clearSearchHistory}>Clear search history</button>
|
||||
|
||||
<div>
|
||||
<button class="btn" on:click={clearSearchHistory}>Clear search history</button>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
<script lang="ts">
|
||||
import { getHost } from "./Host";
|
||||
|
||||
const goToLegacyUI = async () => {
|
||||
window.location.href = `http://${getHost()}`
|
||||
};
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<button class="btn" on:click={goToLegacyUI}>Legacy UI</button>
|
||||
</div>
|
||||
@@ -33,8 +33,8 @@
|
||||
|
||||
<div class="navbar bg-base-100">
|
||||
<div class="flex-1">
|
||||
<img src={playletLogo} class="btn" alt="Playlet Logo" />
|
||||
<h4 class="label">{version}</h4>
|
||||
<img src={playletLogo} class="h-12" alt="Playlet Logo" />
|
||||
<h4 class="label brightness-75">{version}</h4>
|
||||
</div>
|
||||
<div class="flex-none">
|
||||
{#if loggedIn}
|
||||
|
||||
Reference in new issue
Block a user