Skip to content

Commit 069d184

Browse files
committed
fix #96
1 parent c0aa287 commit 069d184

7 files changed

Lines changed: 103 additions & 108 deletions

File tree

bun.lock

Lines changed: 70 additions & 86 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,40 +12,40 @@
1212
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
1313
},
1414
"devDependencies": {
15-
"@sveltejs/kit": "^2.20.8",
16-
"@sveltejs/vite-plugin-svelte": "^5.0.3",
15+
"@sveltejs/kit": "^2.22.0",
16+
"@sveltejs/vite-plugin-svelte": "^5.1.0",
1717
"consola": "^3.4.2",
1818
"fast-glob": "^3.3.3",
19-
"lightningcss": "^1.29.3",
19+
"lightningcss": "^1.30.1",
2020
"mdsvex": "^0.12.6",
2121
"prettier": "^3.5.3",
22-
"prettier-plugin-svelte": "^3.3.3",
22+
"prettier-plugin-svelte": "^3.4.0",
2323
"remove-markdown": "^0.6.2",
2424
"string-strip-html": "^13.4.12",
2525
"super-sitemap": "^1.0.3",
26-
"svelte": "^5.28.2",
27-
"svelte-check": "^4.1.7",
26+
"svelte": "^5.34.7",
27+
"svelte-check": "^4.2.2",
2828
"tslib": "^2.8.1",
2929
"typescript": "^5.8.3",
3030
"vite": "^6.3.5"
3131
},
3232
"type": "module",
3333
"dependencies": {
3434
"@formkit/auto-animate": "^0.8.2",
35-
"@iconify-json/tabler": "^1.2.17",
36-
"@sveltejs/adapter-auto": "^6.0.0",
35+
"@iconify-json/tabler": "^1.2.19",
36+
"@sveltejs/adapter-auto": "^6.0.1",
3737
"@tailwindcss/typography": "^0.5.16",
38-
"@tailwindcss/vite": "^4.1.6",
39-
"flexsearch": "^0.8.163",
38+
"@tailwindcss/vite": "^4.1.10",
39+
"flexsearch": "^0.8.205",
4040
"gray-matter": "^4.0.3",
4141
"nbtify": "^2.2.0",
4242
"rehype-autolink-headings": "^7.1.0",
4343
"rehype-slug": "^6.0.0",
4444
"remark-admonitions": "^1.2.1",
4545
"remark-code-titles": "^0.1.2",
46-
"shiki": "^3.4.0",
47-
"sk-seo": "^0.5.3",
48-
"tailwindcss": "^4.1.6",
46+
"shiki": "^3.7.0",
47+
"sk-seo": "^0.5.4",
48+
"tailwindcss": "^4.1.10",
4949
"unplugin-icons": "^22.1.0"
5050
}
5151
}

src/lib/Topbar.svelte

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@
2828
let logoFlipped = $state(false);
2929
let logoBonked = $state(false);
3030
31-
export async function handleKeyInput(e: KeyboardEvent) {
31+
export async function handleKeyInput(e: KeyboardEvent & {
32+
currentTarget: EventTarget & Window;
33+
}) {
34+
const doc = e.currentTarget.document;
35+
const notAnInput = !(doc.activeElement instanceof HTMLInputElement) && !(doc.activeElement instanceof HTMLTextAreaElement);
36+
37+
if(!notAnInput) return;
38+
3239
lastFewInputs.push(e.key);
3340
if (lastFewInputs.length > 8) {
3441
lastFewInputs.shift();

src/lib/sidebar/Sidebar.svelte

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@
2424
page = sessionStorage.getItem("page") || "wiki";
2525
});
2626
27-
export async function handleKeyInput(e: KeyboardEvent) {
28-
if (e.key == "ArrowLeft" && windowInfo.isNavOpen) {
27+
export async function handleKeyInput(e: KeyboardEvent & {
28+
currentTarget: EventTarget & Window;
29+
}) {
30+
const doc = e.currentTarget.document;
31+
const notAnInput = !(doc.activeElement instanceof HTMLInputElement) && !(doc.activeElement instanceof HTMLTextAreaElement);
32+
if (e.key == "ArrowLeft" && windowInfo.isNavOpen && notAnInput) {
2933
windowInfo.isNavOpen = false;
3034
}
3135
32-
if (e.key == "ArrowRight" && !windowInfo.isNavOpen) {
36+
if (e.key == "ArrowRight" && !windowInfo.isNavOpen && notAnInput) {
3337
windowInfo.isNavOpen = true;
3438
}
3539
}

src/routes/+layout.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
});
3232
</script>
3333

34-
<div class="font-lexend h-full min-h-screen flex flex-col text-stone-200">
34+
<div class="font-lexend h-full min-h-dvh flex flex-col text-stone-200">
3535
<Navbar />
3636
<div class="flex w-full h-[93%]">
3737
<Sidebar />
38-
<div id="content" class="py-12 w-full min-h-screen text-stone-200 bg-stone-900">
38+
<div id="content" class="py-12 w-full min-h-dvh text-stone-200 bg-stone-900">
3939
{@render children()}
4040
</div>
4141
</div>

src/routes/wiki/nbt-scoreboards/nbt/+page.svx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ string, text, booleans, and more.
9191
Strings can store any text value, or more technically, any sequence of unicode characters.
9292

9393
**Format**: Strings are stored within either double or single quotes. For strings containing standard characters
94-
(`A-Z, a-z, 0-9, -,_,+,.`), the quotes are optional (as long as the text starfts with a letter), but recommended. `"<text>"` or `'<text>'` or `<text>`
94+
(`A-Z, a-z, 0-9, -,_,+,.`), the quotes are optional (as long as the text starts with a letter), but recommended. `"<text>"` or `'<text>'` or `<text>`
9595

9696
**Example**: `name:"Silabear"`, `name:'Cobblestone'`, `name:Aandeel`
9797

@@ -135,7 +135,7 @@ In older versions of Minecraft, booleans were stored as bytes with `0b` represen
135135
### Lists/Arrays
136136
Lists, or number arrays are used to store multiple values. Lists can store different types of values, whereas number arrays can only store the same type of number. In practicality, you often do not need to think about the difference
137137

138-
**Format**: Theyu are defined using square brackets (`[]`), with the values separated by commas. Number arrays can be prefixed with the type of numbr the array is going to store and a semicolon (for instance, a list starting with `[B;` will only store bytes)
138+
**Format**: They are defined using square brackets (`[]`), with the values separated by commas. Number arrays can be prefixed with the type of number the array is going to store and a semicolon (for instance, a list starting with `[B;` will only store bytes)
139139

140140
**Example**: `["Silabear", 15, true, 242]`, `[B;1b,2B,true,false]`, `["Kanokarob", "LadyEternal", "lionlance", "thederdiscohund", "theblackswitch"]`, `[L;1l,2l,3l,4l,5l]`
141141

src/routes/wiki/nbt-scoreboards/nbt/SNBTValidator.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { parse } from "nbtify";
3-
3+
44
let value = $state("");
55
let valid = $state("unset");
66
let error = $state("");

0 commit comments

Comments
 (0)