From 8794b1d10162426d371e06d31ed24a9c737b6901 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Thu, 24 Jan 2019 12:31:20 -0800 Subject: [PATCH] npm run format --- app/ui/download.js | 6 +++--- app/ui/expiryOptions.js | 16 +++++++--------- app/ui/legal.js | 30 +++++++++++++----------------- app/ui/selectbox.js | 18 ++++++++---------- test/frontend/routes.js | 10 ++++------ 5 files changed, 35 insertions(+), 45 deletions(-) diff --git a/app/ui/download.js b/app/ui/download.js index db72708a..295e0b89 100644 --- a/app/ui/download.js +++ b/app/ui/download.js @@ -24,9 +24,9 @@ function password(state, emit) {
- ${ - raw( - state.translate('frontPageExpireInfo', { - downloadCount: - '', - timespan: '' - }) - ) - } + ${raw( + state.translate('frontPageExpireInfo', { + downloadCount: + '', + timespan: '' + }) + )} `; if (el.__encoded) { diff --git a/app/ui/legal.js b/app/ui/legal.js index 0f38c465..a42c3344 100644 --- a/app/ui/legal.js +++ b/app/ui/legal.js @@ -8,23 +8,19 @@ module.exports = function(state) { class="flex flex-col items-center bg-white m-6 px-6 py-8 border border-grey-light md:border-none md:px-12 md:py-16 shadow w-full md:h-full" >

${state.translate('legalHeader')}

- ${ - raw( - replaceLinks(state.translate('legalNoticeTestPilot'), [ - 'https://testpilot.firefox.com/terms', - 'https://testpilot.firefox.com/privacy', - 'https://testpilot.firefox.com/experiments/send' - ]) - ) - } - ${ - raw( - replaceLinks(state.translate('legalNoticeMozilla'), [ - 'https://www.mozilla.org/privacy/websites/', - 'https://www.mozilla.org/about/legal/terms/mozilla/' - ]) - ) - } + ${raw( + replaceLinks(state.translate('legalNoticeTestPilot'), [ + 'https://testpilot.firefox.com/terms', + 'https://testpilot.firefox.com/privacy', + 'https://testpilot.firefox.com/experiments/send' + ]) + )} + ${raw( + replaceLinks(state.translate('legalNoticeMozilla'), [ + 'https://www.mozilla.org/privacy/websites/', + 'https://www.mozilla.org/about/legal/terms/mozilla/' + ]) + )} `; diff --git a/app/ui/selectbox.js b/app/ui/selectbox.js index 3f66496b..a281bf22 100644 --- a/app/ui/selectbox.js +++ b/app/ui/selectbox.js @@ -9,16 +9,14 @@ module.exports = function(selected, options, translate, changed, htmlId) { class="appearance-none cursor-pointer border rounded-sm bg-blue-lightest hover:border-blue focus:border-blue px-2 py-1 my-2 h-8" onchange="${choose}" > - ${ - options.map( - i => - html` - - ` - ) - } + ${options.map( + i => + html` + + ` + )} `; diff --git a/test/frontend/routes.js b/test/frontend/routes.js index 976fbf86..1f4a0a78 100644 --- a/test/frontend/routes.js +++ b/test/frontend/routes.js @@ -30,12 +30,10 @@ module.exports = function(app) { timeout: 5000 }); - ${ - initScript({ - cspNonce: 'test', - locale: 'en-US' - }) - } + ${initScript({ + cspNonce: 'test', + locale: 'en-US' + })}