File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 15
15
uses : actions/setup-node@v4
16
16
with :
17
17
node-version : ' 20'
18
+ cache : npm
18
19
- name : Install
19
20
run : npm ci
20
21
- name : Lint
Original file line number Diff line number Diff line change 11
11
"test" : " npx vitest run" ,
12
12
"test:watch" : " npx vitest watch" ,
13
13
"lint" : " npx prettier --check . && npx eslint ." ,
14
- "format" : " npx prettier --write" ,
14
+ "format" : " npx prettier --write . " ,
15
15
"prepare" : " husky"
16
16
},
17
17
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ If you wanted to display a header menu titled "My Application" with an anchor ca
21
21
<script lang =" ts" >
22
22
import { fly } from ' svelte/transition'
23
23
import { Hamburger } from ' svelte-hamburgers'
24
+ import { base } from ' $app/paths'
24
25
25
26
export let title: string
26
27
@@ -29,7 +30,7 @@ If you wanted to display a header menu titled "My Application" with an anchor ca
29
30
30
31
<header >
31
32
<Hamburger --color =" var(--font-color)" bind:open />
32
- <a href ="/" ><h1 >{title }</h1 ></a >
33
+ <a href =" { base } /" ><h1 >{title }</h1 ></a >
33
34
</header >
34
35
35
36
{#if open }
Original file line number Diff line number Diff line change 5
5
import { Circle2 } from ' svelte-loading-spinners'
6
6
import { SpritePreference } from ' $lib/menu/SpritePreference'
7
7
import SliderToggle from ' $lib/menu/controls/SliderToggle.svelte'
8
+ import { base } from ' $app/paths'
8
9
9
10
export let data
10
11
const { spritePreference , showNormal } = data
11
12
</script >
12
13
13
14
<HeaderMenu title =" Shiny Hunter" >
14
15
<ul >
15
- <li ><span ><a href =" /" >Trackers</a ></span ></li >
16
- <li ><span ><a href =" /history" >History</a ></span ></li >
17
- <li ><span ><a href =" /about" >About</a ></span ></li >
18
- <li ><span ><a href =" /credits" >Credits</a ></span ></li >
16
+ <li ><span ><a href =" { base } /" >Trackers</a ></span ></li >
17
+ <li ><span ><a href =" { base } /history" >History</a ></span ></li >
18
+ <li ><span ><a href =" { base } /about" >About</a ></span ></li >
19
+ <li ><span ><a href =" { base } /credits" >Credits</a ></span ></li >
19
20
<li >
20
21
<label for =" sprite-preference" >Sprite Preference</label >
21
22
<select id ="sprite-preference" bind:value ={$spritePreference }>
You can’t perform that action at this time.
0 commit comments