mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-04 09:02:50 +00:00
gh pages deployment
This commit is contained in:
@@ -1,18 +1,19 @@
|
|||||||
<script>
|
<script>
|
||||||
import {serialPort} from "$lib/serial/connection.js"
|
import {serialPort} from "$lib/serial/connection.js"
|
||||||
import {browser} from "$app/environment"
|
import {browser} from "$app/environment"
|
||||||
|
import {base} from "$app/paths"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
<h1>dot i/o</h1>
|
<h1>dot i/o</h1>
|
||||||
|
|
||||||
<div class="steps">
|
<div class="steps">
|
||||||
<a href="/" title="CPM - characters per minute" class="icon train cpm">music_note</a>
|
<a href={base} title="CPM - characters per minute" class="icon train cpm">music_note</a>
|
||||||
<a href="/" title="ChM - chords mastered" class="icon train chords">piano</a>
|
<a href={base} title="ChM - chords mastered" class="icon train chords">piano</a>
|
||||||
<a href="/" title="aWPM - average words per minute" class="icon test avg">avg_pace</a>
|
<a href={base} title="aWPM - average words per minute" class="icon test avg">avg_pace</a>
|
||||||
<a href="/" title="StM - sentences mastered" class="icon train sentences">lyrics</a>
|
<a href={base} title="StM - sentences mastered" class="icon train sentences">lyrics</a>
|
||||||
<a href="/" title="tWPM - top words per minute" class="icon test top">speed</a>
|
<a href={base} title="tWPM - top words per minute" class="icon test top">speed</a>
|
||||||
<a href="/" title="CM - concepts mastered" class="icon train concepts">cognition</a>
|
<a href={base} title="CM - concepts mastered" class="icon train concepts">cognition</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
@@ -25,12 +26,12 @@
|
|||||||
</abbr>
|
</abbr>
|
||||||
{/if}
|
{/if}
|
||||||
<a
|
<a
|
||||||
href="/device-manager"
|
href="{base}/device-manager"
|
||||||
title="Device Manager"
|
title="Device Manager"
|
||||||
class="icon connect"
|
class="icon connect"
|
||||||
class:error={$serialPort === undefined}>cable</a
|
class:error={$serialPort === undefined}>cable</a
|
||||||
>
|
>
|
||||||
<a href="/" title="Statistics" class="icon account">person</a>
|
<a href={base} title="Statistics" class="icon account">person</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
import adapter from "@sveltejs/adapter-static"
|
import adapter from "@sveltejs/adapter-static"
|
||||||
import preprocess from "svelte-preprocess"
|
import preprocess from "svelte-preprocess"
|
||||||
|
|
||||||
|
const dev = process.argv.includes("dev")
|
||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Config} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
preprocess: [preprocess()],
|
preprocess: [preprocess()],
|
||||||
kit: {
|
kit: {
|
||||||
|
paths: {
|
||||||
|
base: dev ? "" : "/dotio",
|
||||||
|
},
|
||||||
adapter: adapter(),
|
adapter: adapter(),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user