From 9e03473208e2f127d40df7d1775f7bae1712e3c2 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Sun, 15 Dec 2024 16:28:41 +0100 Subject: [PATCH 1/3] Show error message when client does not support WebAssembly (#469) --- src/AliasVault.Client/wwwroot/index.template.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AliasVault.Client/wwwroot/index.template.html b/src/AliasVault.Client/wwwroot/index.template.html index 612ad5ca9..2ea1e7b01 100644 --- a/src/AliasVault.Client/wwwroot/index.template.html +++ b/src/AliasVault.Client/wwwroot/index.template.html @@ -53,6 +53,7 @@

+ @@ -144,7 +145,7 @@ clearInterval(intervalId); } else if (elapsedTime % 1000 < checkInterval) { if (!('WebAssembly' in window)) { - showError("AliasVault requires WebAssembly, which this browser does not support. Please use a modern browser that supports WebAssembly."); + showError("AliasVault requires WebAssembly, which this browser does not support. Try using a more modern browser that supports WebAssembly."); clearInterval(intervalId); } } @@ -157,7 +158,6 @@ const errorMessageElement = document.getElementById('error-message'); const showError = (message) => { - loadingScreen.querySelector('.inner').classList.add('hidden'); errorMessageElement.textContent = message; errorMessageElement.classList.remove('hidden'); document.querySelector('.loading-progress-text').classList.add('hidden'); @@ -167,14 +167,14 @@ // Listen for unhandled errors window.addEventListener('error', function(event) { if (event.error && event.error.message && event.error.message.includes('WebAssembly')) { - showError("AliasVault requires WebAssembly, which this browser does not support. Please use a modern browser that supports WebAssembly."); + showError("AliasVault requires WebAssembly, which this browser does not support. Try using a more modern browser that supports WebAssembly."); } }); // Listen for unhandled promise rejections window.addEventListener('unhandledrejection', function(event) { if (event.reason && event.reason.message && event.reason.message.includes('WebAssembly')) { - showError("AliasVault requires WebAssembly, which this browser does not support. Please use a modern browser that supports WebAssembly."); + showError("AliasVault requires WebAssembly, which this browser does not support. Try using a more modern browser that supports WebAssembly."); } }); From e94201acdaaec0a0d2f2ee4b702849715866fba7 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Sun, 15 Dec 2024 16:28:57 +0100 Subject: [PATCH 2/3] Tweak logo on mobile view auth area (#469) --- src/AliasVault.Client/Auth/Components/Logo.razor | 4 ++-- .../Main/Components/Widgets/SearchWidget.razor | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AliasVault.Client/Auth/Components/Logo.razor b/src/AliasVault.Client/Auth/Components/Logo.razor index 0575df549..6fdb2456f 100644 --- a/src/AliasVault.Client/Auth/Components/Logo.razor +++ b/src/AliasVault.Client/Auth/Components/Logo.razor @@ -1,9 +1,9 @@
AliasVault - + AliasVault - BETA + BETA
diff --git a/src/AliasVault.Client/Main/Components/Widgets/SearchWidget.razor b/src/AliasVault.Client/Main/Components/Widgets/SearchWidget.razor index f91835954..b67f7bbbb 100644 --- a/src/AliasVault.Client/Main/Components/Widgets/SearchWidget.razor +++ b/src/AliasVault.Client/Main/Components/Widgets/SearchWidget.razor @@ -8,7 +8,7 @@ Date: Sun, 15 Dec 2024 16:43:48 +0100 Subject: [PATCH 3/3] Update install.sh URL comment (#469) --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 9aaa1d09d..ad088d3e6 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,5 @@ #!/bin/bash -# @version 0.9.3 +# @version 0.9.4 # Repository information used for downloading files and images from GitHub REPO_OWNER="lanedirt" @@ -253,7 +253,7 @@ handle_docker_compose() { fi printf "\n ${CYAN}> docker-compose.yml downloaded successfully.${NC}\n" else - printf "\n ${YELLOW}> Failed to download docker-compose.yml, please check your internet connection and try again. Alternatively, you can download it manually from ${GITHUB_RAW_URL_REPO}/blob/${version_tag}/docker-compose.yml and place it in the root directory of AliasVault.${NC}\n" + printf "\n ${YELLOW}> Failed to download docker-compose.yml, please check your internet connection and try again. Alternatively, you can download it manually from ${GITHUB_RAW_URL_REPO}/${version_tag}/docker-compose.yml and place it in the root directory of AliasVault.${NC}\n" exit 1 fi @@ -262,7 +262,7 @@ handle_docker_compose() { if curl -sSf "${GITHUB_RAW_URL_REPO}/${version_tag}/docker-compose.letsencrypt.yml" -o "docker-compose.letsencrypt.yml" > /dev/null 2>&1; then printf "\n ${CYAN}> docker-compose.letsencrypt.yml downloaded successfully.${NC}\n" else - printf "\n ${YELLOW}> Failed to download docker-compose.letsencrypt.yml, please check your internet connection and try again. Alternatively, you can download it manually from ${GITHUB_RAW_URL_REPO}/blob/${version_tag}/docker-compose.letsencrypt.yml and place it in the root directory of AliasVault.${NC}\n" + printf "\n ${YELLOW}> Failed to download docker-compose.letsencrypt.yml, please check your internet connection and try again. Alternatively, you can download it manually from ${GITHUB_RAW_URL_REPO}/${version_tag}/docker-compose.letsencrypt.yml and place it in the root directory of AliasVault.${NC}\n" exit 1 fi