diff --git a/Dockerfile b/Dockerfile index a963507..7215a4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,8 +28,8 @@ USER node # Can be a tag, release, but prefer a commit hash because it's not changeable # https://github.com/bitwarden/clients/commit/${VAULT_VERSION} # -# Using https://github.com/bitwarden/clients/releases/tag/web-v2022.6.2 -ARG VAULT_VERSION=c0cb88a733c677fae84e517fbc63d7d16cb912c2 +# Using https://github.com/bitwarden/clients/releases/tag/web-v2022.8.1 +ARG VAULT_VERSION=b49091b4209903d074bfc68b8f1514c15af861ab RUN git clone https://github.com/bitwarden/clients.git /vault WORKDIR /vault diff --git a/patches/v2022.8.0.patch b/patches/v2022.8.0.patch new file mode 100644 index 0000000..c6a4869 --- /dev/null +++ b/patches/v2022.8.0.patch @@ -0,0 +1,314 @@ +diff --git a/apps/web/src/404.html b/apps/web/src/404.html +index 6cf5e363d..54d11495c 100644 +--- a/apps/web/src/404.html ++++ b/apps/web/src/404.html +@@ -42,11 +42,10 @@ + +

+

+- You can return to the web vault, check our +- status page or +- contact us. ++ You can return to the web vault, or ++ contact us. +

+ +- ++ + + +diff --git a/apps/web/src/app/app.component.ts b/apps/web/src/app/app.component.ts +index fc9f44dcf..bcfa17b85 100644 +--- a/apps/web/src/app/app.component.ts ++++ b/apps/web/src/app/app.component.ts +@@ -171,6 +171,10 @@ export class AppComponent implements OnDestroy, OnInit { + break; + } + case "showToast": ++ if (typeof message.text === "string" && typeof crypto.subtle === 'undefined') { ++ message.title="This browser requires HTTPS to use the web vault"; ++ message.text="Check the Vaultwarden wiki for details on how to enable it"; ++ } + this.showToast(message); + break; + case "setFullWidth": +diff --git a/apps/web/src/app/layouts/footer.component.html b/apps/web/src/app/layouts/footer.component.html +index 98836bfd5..a5356be72 100644 +--- a/apps/web/src/app/layouts/footer.component.html ++++ b/apps/web/src/app/layouts/footer.component.html +@@ -1,6 +1,6 @@ +