From 1e4d6646c6a9ef34d83a0e38ea5bf42f81939e50 Mon Sep 17 00:00:00 2001 From: Erica Wright Date: Mon, 23 Oct 2017 10:36:07 -0400 Subject: [PATCH 1/6] style password checkbox --- app/templates/uploadPassword.js | 8 +++--- assets/check-16-blue.svg | 1 + assets/main.css | 44 +++++++++++++++++++++++++++++++++ public/locales/en-US/send.ftl | 4 +-- 4 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 assets/check-16-blue.svg diff --git a/app/templates/uploadPassword.js b/app/templates/uploadPassword.js index fe589aff..a63eb42e 100644 --- a/app/templates/uploadPassword.js +++ b/app/templates/uploadPassword.js @@ -4,11 +4,11 @@ module.exports = function(state, emit) { const file = state.storage.getFileById(state.params.id); const div = html`
-
+
- +
Date: Wed, 25 Oct 2017 15:48:01 -0400 Subject: [PATCH 5/6] display spaces as they were originally in the password --- app/templates/share.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/templates/share.js b/app/templates/share.js index 2fe1a741..249b432a 100644 --- a/app/templates/share.js +++ b/app/templates/share.js @@ -9,10 +9,11 @@ module.exports = function(state, emit) { if (!file) { return notFound(state, emit); } - const passwordComplete = html` -
- Password: ${file.password} -
`; + + file.password = file.password || ''; + const passwordComplete = html`
`; + passwordComplete.innerHTML = file.password.replace(/ /g, ' '); + const passwordSection = file.password ? passwordComplete : uploadPassword(state, emit); From dfb271410c89fd83210d12385e4450cd164d7bbd Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Mon, 30 Oct 2017 12:54:59 -0700 Subject: [PATCH 6/6] use relative path for the url() in css so webpack can substitute the hashed asset name --- assets/main.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/main.css b/assets/main.css index ea7925c4..172ece92 100644 --- a/assets/main.css +++ b/assets/main.css @@ -929,7 +929,7 @@ tbody { } #addPassword:checked + label::before { - background-image: url('/assets/check-16-blue.svg'); + background-image: url('./check-16-blue.svg'); background-position: 2px 1px; }