This repository has been archived by the owner on Sep 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from maotovisk/dev
0.0.6
- Loading branch information
Showing
10 changed files
with
78 additions
and
104 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,20 +1,24 @@ | ||
<script lang="ts"> | ||
import { Route, Router } from "svelte-routing"; | ||
import HeaderBar from "./lib/HeaderBar.svelte"; | ||
import SideBar from "./lib/SideBar.svelte"; | ||
import HitsoundCopier from "./tabs/HitsoundCopier.svelte"; | ||
import Changelog from "./tabs/Changelog.svelte"; | ||
import { onMount, setContext, tick } from "svelte"; | ||
onMount(async () => { | ||
await ui("theme", "#c43b80"); | ||
}); | ||
</script> | ||
|
||
<HeaderBar /> | ||
<SideBar /> | ||
<main class="surface responsive max"> | ||
<Router> | ||
<Route path="/"> | ||
<Router> | ||
<SideBar /> | ||
<main class="surface responsive max"> | ||
<Route path="/home"> | ||
<Changelog /> | ||
</Route> | ||
<Route path="/hs-copier"> | ||
<HitsoundCopier /> | ||
</Route> | ||
</Router> | ||
</main> | ||
<Route path="/settings" /> | ||
</main> | ||
</Router> |
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
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,31 +1,37 @@ | ||
<script> | ||
import { link } from "svelte-routing"; | ||
<script lang="ts"> | ||
import { Link } from "svelte-routing"; | ||
const closeNav = () => { | ||
ui("#nav-main"); | ||
let currentUrl = ""; | ||
const updateUrl = (toRoute: string) => { | ||
currentUrl = toRoute; | ||
}; | ||
</script> | ||
|
||
<dialog class="left surface" id="nav-main"> | ||
<header class="fixed"> | ||
<nav> | ||
<button class="transparent circle large" on:click={closeNav}> | ||
<i>close</i> | ||
</button> | ||
</nav> | ||
</header> | ||
<a use:link let:active class="row round" href="/" on:click={closeNav}> | ||
<nav class="m l left secondary"> | ||
<header class="fixed" /> | ||
<Link | ||
class="row round {currentUrl.includes('/home') ? 'active' : ''}" | ||
to="/home" | ||
on:click={() => updateUrl("/home")} | ||
> | ||
<i>home</i> | ||
<span>Start</span> | ||
</a> | ||
<a use:link class="row round" href="/hs-copier" on:click={closeNav}> | ||
</Link> | ||
<Link | ||
class="row round {currentUrl.includes('/hs-copier') ? 'active' : ''}" | ||
to="/hs-copier" | ||
on:click={() => updateUrl("/hs-copier")} | ||
> | ||
<i>file_copy</i> | ||
<span>Hitsound Copier</span> | ||
</a> | ||
<div class="small-divider" /> | ||
<div class="row">Settings</div> | ||
<a a use:link class="row round" href="/settings" on:click={closeNav}> | ||
</Link> | ||
<Link | ||
class="row round {currentUrl.includes('/settings') ? 'active' : ''}" | ||
to="/settings" | ||
on:click={() => updateUrl("/settings")} | ||
> | ||
<i>settings</i> | ||
<span>Settings</span> | ||
</a> | ||
</dialog> | ||
</Link> | ||
</nav> |
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