diff --git a/src/lib/components/app-sidebar.svelte b/src/lib/components/app-sidebar.svelte index c7ca5db3..69bad409 100644 --- a/src/lib/components/app-sidebar.svelte +++ b/src/lib/components/app-sidebar.svelte @@ -296,6 +296,12 @@ > Sidebar +
+ + B + diff --git a/src/lib/components/cloak.svelte b/src/lib/components/cloak.svelte new file mode 100644 index 00000000..594908ae --- /dev/null +++ b/src/lib/components/cloak.svelte @@ -0,0 +1,34 @@ + + + + {title} + + diff --git a/src/lib/components/panic-mode.svelte b/src/lib/components/panic-mode.svelte new file mode 100644 index 00000000..8a52274f --- /dev/null +++ b/src/lib/components/panic-mode.svelte @@ -0,0 +1,19 @@ + diff --git a/src/lib/components/play.svelte b/src/lib/components/play.svelte index 5ae00fc5..126eacd6 100644 --- a/src/lib/components/play.svelte +++ b/src/lib/components/play.svelte @@ -20,7 +20,6 @@ // App imports import { getGameById } from '$lib/gmaes'; import { preferencesStore, favoritesStore, historyStore } from '$lib/stores'; - import { onMount } from 'svelte'; import clsx from 'clsx'; function openNewTab(url: string) { @@ -29,7 +28,7 @@ if ($preferencesStore.open === 'tab') { openedTab = window.open('', '_blank'); } else if ($preferencesStore.open === 'window') { - openedTab = window.open('', '_blank'); + openedTab = window.open('', '_blank', 'width=800,height=600'); } else { $preferencesStore.open = 'tab'; openNewTab(url); @@ -48,7 +47,7 @@ const gmaedata = $derived(getGameById(id)); - onMount(() => { + if ($preferencesStore.history) { let history = $historyStore; if (history.includes(id)) { history = history.filter((historyId) => historyId !== id); @@ -57,7 +56,7 @@ history.push(id); historyStore.set(history); - }); + }
@@ -147,7 +146,7 @@ }} > - New tab + New {$preferencesStore.open}
- Panic key + Panic key (requires refresh to apply)
- +
@@ -88,14 +93,45 @@
Privacy -
- - -
+
+ + + +
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 4192da27..3060db32 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -11,6 +11,8 @@ import AppSidebar from '$lib/components/app-sidebar.svelte'; import Settings from '$lib/components/settings.svelte'; import * as Dialog from '$lib/components/ui/dialog/index.js'; + import PanicMode from '$lib/components/panic-mode.svelte'; + import Cloak from '$lib/components/cloak.svelte'; // Third-party utilities import { ModeWatcher } from 'mode-watcher'; @@ -79,6 +81,8 @@
+ +