From d6d5b84057f05b0e90655087963beb68f9d94ca4 Mon Sep 17 00:00:00 2001 From: Danilo Jakob Date: Fri, 30 Aug 2024 19:25:59 +0200 Subject: [PATCH 01/10] fix(client): fixed issue where switching pages would cause to let the dark theme flare up for a few ms before switching to light theme. feat(client): minor code cleanup --- client/app.vue | 6 +++--- client/common/types.ts | 13 +++++++++++++ client/components/Experiences.vue | 6 ------ client/components/Technologies.vue | 6 ------ client/nuxt.config.ts | 5 ++++- 5 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 client/common/types.ts diff --git a/client/app.vue b/client/app.vue index 61a4eb2..41cacea 100644 --- a/client/app.vue +++ b/client/app.vue @@ -36,7 +36,7 @@ const toggleTheme = function() { onMounted(() => { window.addEventListener('keydown', (e) => { - if (e.ctrlKey && e.altKey && e.key === 'l') { + if (e.ctrlKey && e.altKey && e.shiftKey && e.key === 'L') { document.getElementById('loginModal').showModal(); } }); @@ -50,8 +50,8 @@ onMounted(() => {