aboutsummaryrefslogtreecommitdiff
path: root/src/routes/+layout.svelte
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-05-06 06:04:52 -0700
committerFuwn <[email protected]>2025-05-06 06:04:52 -0700
commit7771e2618d3bffbcaebc23a21d2e34fe4012d89a (patch)
tree376e4ceec4e50bc8dfb2b0990e0e619366c87b36 /src/routes/+layout.svelte
parentfix(anime): Exclude AiOmoDarkElf from subtitle matching (diff)
downloaddue.moe-7771e2618d3bffbcaebc23a21d2e34fe4012d89a.tar.xz
due.moe-7771e2618d3bffbcaebc23a21d2e34fe4012d89a.zip
feat: Add command palette
Diffstat (limited to 'src/routes/+layout.svelte')
-rw-r--r--src/routes/+layout.svelte5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 12bae07f..f5adcb68 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -30,6 +30,9 @@
import Message from '$lib/Loading/Message.svelte';
import { requestNotifications } from '$lib/Utility/notifications';
import { database as userDatabase } from '$lib/Database/IDB/user';
+ import CommandPalette from '$lib/CommandPalette/CommandPalette.svelte';
+ import { defaultActions } from '$lib/CommandPalette/actions';
+ import { toolsAsCommandPaletteItemSet } from '$lib/Tools/tools';
injectSpeedInsights();
@@ -154,6 +157,8 @@
<HeadTitle />
+<CommandPalette items={defaultActions.concat(toolsAsCommandPaletteItemSet())} />
+
{#if !$locales.includes('en') || !$locale().navigation}
<Message />