{#if type === PopoverTypes.Copy}
{$t('components.popover.copied_to_clipboard')}
{:else if type === PopoverTypes.GameInLobby}A game is currently in the lobby. Click here to join as a remote.
+ class='underline'
+ href='/remote?game_pin={data.game_pin}&game_id={data.game_id}'>here to join as a remote.
+ {:else if type === PopoverTypes.Generic}
+ {@html data}
{:else}
Error!!!
{/if}
diff --git a/frontend/src/lib/components/popover/smalltop.ts b/frontend/src/lib/components/popover/smalltop.ts
index dace44e..bde6b75 100644
--- a/frontend/src/lib/components/popover/smalltop.ts
+++ b/frontend/src/lib/components/popover/smalltop.ts
@@ -5,5 +5,6 @@
/* eslint-disable no-unused-vars */
export enum PopoverTypes {
Copy,
- GameInLobby
+ GameInLobby,
+ Generic
}
diff --git a/frontend/src/lib/i18n/locales/de.json b/frontend/src/lib/i18n/locales/de.json
index cdc11cf..71135ae 100644
--- a/frontend/src/lib/i18n/locales/de.json
+++ b/frontend/src/lib/i18n/locales/de.json
@@ -308,7 +308,8 @@
"dashboard": {
"search_for_own_quizzes": "Suche nach eigenen Quiz",
"views_n_plays": "Aufrufe und Startversuche",
- "info_analytics": "Die \"Startversuche\" zeigen nur wie oft das Quiz gestartet wurde (auch von dir), wobei die \"Aufrufe\" zählen, wie oft das Quiz aufgerufen wurde (Bots werden auch gezählt)."
+ "info_analytics": "Die \"Startversuche\" zeigen nur wie oft das Quiz gestartet wurde (auch von dir), wobei die \"Aufrufe\" zählen, wie oft das Quiz aufgerufen wurde (Bots werden auch gezählt).",
+ "commandpalette_notice": "Drücke Ctr+k oder Meta+k um die Befehlspalette zu öffnen"
},
"footer": {
"more_details_here": "Mehr Details hier",
diff --git a/frontend/src/lib/i18n/locales/en.json b/frontend/src/lib/i18n/locales/en.json
index 4548f8e..22520aa 100644
--- a/frontend/src/lib/i18n/locales/en.json
+++ b/frontend/src/lib/i18n/locales/en.json
@@ -294,7 +294,8 @@
"dashboard": {
"search_for_own_quizzes": "Search for your own quizzes",
"views_n_plays": "Views & Plays",
- "info_analytics": "The \"Plays\" only show how often the quiz was started (you included), whereas the \"Views\" count how often the \"View\"-page was visited, so it also counts bots (sorry for that)."
+ "info_analytics": "The \"Plays\" only show how often the quiz was started (you included), whereas the \"Views\" count how often the \"View\"-page was visited, so it also counts bots (sorry for that).",
+ "commandpalette_notice": "Press Ctr+k or Meta+k to open the command palette"
},
"footer": {
"self_ads": "Made with ❤️ by {{mawoka_link}} and with the help of {{others_link}}.",
diff --git a/frontend/src/routes/dashboard/+page.svelte b/frontend/src/routes/dashboard/+page.svelte
index f5ff06f..48093b7 100644
--- a/frontend/src/routes/dashboard/+page.svelte
+++ b/frontend/src/routes/dashboard/+page.svelte
@@ -9,6 +9,7 @@ SPDX-License-Identifier: MPL-2.0
import { getLocalization } from '$lib/i18n';
import Footer from '$lib/footer.svelte';
import { navbarVisible, signedIn } from '$lib/stores';
+ import CommandpaletteNotice from "$lib/components/popover/commandpalettenotice.svelte"
// import Spinner from "$lib/Spinner.svelte";
import Fuse from 'fuse.js';
import BrownButton from '$lib/components/buttons/brown.svelte';
@@ -94,6 +95,7 @@ SPDX-License-Identifier: MPL-2.0
ClassQuiz - Dashboard
+