From 36f9777e2a953c1d652e882630299c76a407447c Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Fri, 11 Oct 2024 01:08:34 +0200 Subject: [PATCH] Implemented proper configurable kiosk mode --- src/App.vue | 17 +++++++++++++---- src/components/Footer.vue | 4 ++-- src/components/WelcomeReveal.vue | 9 +++++++-- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index 644beea..0270625 100644 --- a/src/App.vue +++ b/src/App.vue @@ -34,7 +34,8 @@ const state = ref({ 'uid': null, 'double_entry': {'artist': null, 'title': null, 'reason': null}, 'waiting_room_policy': null, - 'config': {} + 'config': {}, + 'kiosk': false }) onMounted(() => { @@ -73,6 +74,7 @@ function update_config(config) { state.socket.emit("update_config", {"config": config}) close_config() } +function setKiosk(kiosk) { state.value.kiosk = kiosk } function search() { var yt_checker = /^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/; @@ -278,7 +280,7 @@ function joinRoom() {