From b22b5dee53f74a2690ac66235dcedb82379321b7 Mon Sep 17 00:00:00 2001 From: mabasian <54101509+mabasian@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:34:43 +0200 Subject: [PATCH] Alert Box Improvements (#1986) --- .../NOTIFICATION-GR\303\234N.png" | Bin 0 -> 3495 bytes .../node-alert-icons/alert-settings-mute.png | Bin 0 -> 6030 bytes launcher/public/output.css | 4 + .../UI/language-page/components/MenuBody.vue | 15 +- .../node-page/components/alert/NodeAlert.vue | 186 ++++++++---------- .../setting-page/components/VolumeSlider.vue | 15 +- .../UI/the-control/ControlAlert.vue | 90 ++++++--- launcher/src/store/theFooter.js | 1 + 8 files changed, 172 insertions(+), 139 deletions(-) create mode 100644 "launcher/public/img/icon/node-alert-icons/NOTIFICATION-GR\303\234N.png" create mode 100644 launcher/public/img/icon/node-alert-icons/alert-settings-mute.png diff --git "a/launcher/public/img/icon/node-alert-icons/NOTIFICATION-GR\303\234N.png" "b/launcher/public/img/icon/node-alert-icons/NOTIFICATION-GR\303\234N.png" new file mode 100644 index 0000000000000000000000000000000000000000..759e2b06091c9c6a014c65b2ee74a140e16d9a1d GIT binary patch literal 3495 zcmV;Y4OsGtP)Fs12fFsz12O=a5%u|vb*0F z^!H77*Q@%gUcIV%uNk;OYtlByOMsDJ(2EB`7%(l}81_UgJoo|zxCb65c?q+5V()|# zjR_!r*EE;sCE>@mj^TLzF9bHaF+olJo{Y(17<_i;g@lcB8HRHu-zE4p>AN(H)wG>J z_it)YPb!b+`2%v5der!ygDdKeeGL5SjBR18h1*Yz?VnW9e~O=GAzR8|=$pMq-Kwdh z7WnVe(v&7LfmYx0n>dSzonYQ4ARGhj#WMYC=@F?y6g0{wj4 z9lvElpM+75f&b~~_GlYty+q*Ih9vPEkBrP~kne~s|YgiL?IH z1IkrDgOOO_8@Cd#ysAX2pyrJm!1FdnCh79~_>orxW~aurN4Bh^oAHeSKa+JErd|Gs z%GBD*%!Ax;WVcj745|uwla# zSQMNHzJB7t9`}cL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Pi^~T96 zD=XvLfr=bEe;FUORU|xF-_2}yfMH=K2HECzUx5C}oDd@GktIu-tTtO_qOGI*Zv}bo zj3;h3dhlM`py5_5#*Q6JNl6I~hl7TO2CAy62LGM_)-?6R&4n}tUN3TTE^~;ERZ9Fm zpZiEv)nqBFIL@?!mc64i?L8u6;)M-?B(Ik$BKrg zg&G?htD0L{O5?Venwp!B1p|TZ*f5&l)p-6)yz@0g;Jg%Dzj zu>JQZ_QJI^4-^)5g91W3^(FPx6wp}Co&@MKC`b@la@Cg7)-kvDjo zRZ1!MSqt)Gop0^m?D#I62k@)rrpDE@Xx}v2Z}8eJM=tQD98l&51%y+mt3$|}0BthV z{X%x|Yp)UVEB!G@`0s9`|Gq*>{3>iOvO^Cku` zK3p2OaOr~4hr{7;xU#Y`$BY_vZ(3?Mke7o=hC!~}gB=89sA%T8_(ZGGc ztp3k2K;l{7{~vw8O`ruh30#rV4CMs=0Czy(ZyDcGR{!qse|ueY{84?nK>z>%07*qo IM6N<$f@>R_5dZ)H literal 0 HcmV?d00001 diff --git a/launcher/public/output.css b/launcher/public/output.css index 457ed640b..bb5a96944 100755 --- a/launcher/public/output.css +++ b/launcher/public/output.css @@ -1846,6 +1846,10 @@ video { height: 100vh; } +.h-\[8\%\]{ + height: 8%; +} + .max-h-10{ max-height: 2.5rem; } diff --git a/launcher/src/components/UI/language-page/components/MenuBody.vue b/launcher/src/components/UI/language-page/components/MenuBody.vue index 81ebb873b..b57c3a348 100644 --- a/launcher/src/components/UI/language-page/components/MenuBody.vue +++ b/launcher/src/components/UI/language-page/components/MenuBody.vue @@ -29,11 +29,7 @@ }" @click="handleClick(lang, index)" > - + { const checkSettings = async () => { try { const savedConfig = await ControlService.readConfig(); - if (savedConfig?.savedLanguage.flag && savedConfig?.savedLanguage.label) { + + // Handle language settings and routing + const { savedLanguage, savedVolume } = savedConfig || {}; + + if (savedLanguage?.flag && savedLanguage?.label) { router.push("/login"); } else { router.push("/"); } + + // Handle volume settings + langStore.currentVolume = savedVolume?.volume ?? 0.95; } catch (error) { console.error("Failed to load saved settings:", error); } diff --git a/launcher/src/components/UI/node-page/components/alert/NodeAlert.vue b/launcher/src/components/UI/node-page/components/alert/NodeAlert.vue index 844b89c13..bfd131a21 100755 --- a/launcher/src/components/UI/node-page/components/alert/NodeAlert.vue +++ b/launcher/src/components/UI/node-page/components/alert/NodeAlert.vue @@ -1,46 +1,41 @@