Skip to content

Commit dbe9a5d

Browse files
authored
Merge pull request #18 from shaunwarman/cleanup-views
chore: clean up views
2 parents 6f4987a + 45660dc commit dbe9a5d

File tree

4 files changed

+10
-18
lines changed

4 files changed

+10
-18
lines changed

app/views/layout.pug

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,19 +126,11 @@ html(lang=locale).h-100
126126
script(src=`https://polyfill.io/v3/polyfill${config.env === 'production' ? '.min' : ''}.js?features=${polyfills.join(',')}`)
127127

128128
//- factor bundle (common shared assets across all files)
129-
if config.env === 'production'
130-
script(src=manifest('factor-bundle.js') integrity=manifest('factor-bundle.js', 'integrity'))
131-
else
132-
script(src=manifest('factor-bundle.js'))
129+
script(src=manifest('factor-bundle.js') integrity=manifest('factor-bundle.js', 'integrity'))
133130

134131
//- uncaught (handles errors, similar to TraceKit but with CabinJS + StackTrace.JS)
135-
if config.env === 'production'
136-
script(src=manifest('uncaught.js') integrity=manifest('uncaught.js', 'integrity'))
137-
else
138-
script(src=manifest('uncaught.js'))
132+
script(src=manifest('uncaught.js') integrity=manifest('uncaught.js', 'integrity'))
139133

140134
//- scripts
141135
if config.env === 'production'
142-
script(src=manifest('core.js') integrity=manifest('core.js', 'integrity'))
143-
else
144-
script(src=manifest('core.js'))
136+
script(src=manifest('core.js') integrity=manifest('core.js', 'integrity'))

app/views/my-account/security.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ block body
3535
= t('Copy')
3636
.modal-footer
3737
.form-check
38-
input#recovery-keys-stored(type='checkbox', name="recovery-keys-stored", value='true' data-toggle='collapse' data-target='#recovery-key-submit')
39-
label(for='recovery-keys-stored')= t('I have stored these recovery keys in a safe place')
38+
input#recovery-keys-stored(type='checkbox', name="recovery-keys-stored", value='true' data-toggle='collapse' data-target='#recovery-key-submit').form-check-input
39+
label(for='recovery-keys-stored').form-check-label= t('I have stored these recovery keys in a safe place')
4040
#recovery-key-submit.collapse
4141
button(data-toggle='modal', data-target='#modal-enable-2fa-verify', data-dismiss='modal', type='button').btn.btn-primary.btn-lg.float-right= t('Continue')
4242
#modal-enable-2fa-verify(tabindex='-1', role='dialog').modal.fade

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"koa-views-render": "^0.0.1",
8484
"lodash": "^4.17.15",
8585
"mandarin": "^2.0.3",
86-
"manifest-rev": "^1.0.0",
86+
"manifest-rev": "^1.0.2",
8787
"markdown-it": "^10.0.0",
8888
"markdown-it-emoji": "^1.4.0",
8989
"markdown-it-github-headings": "^2.0.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10568,10 +10568,10 @@ mandarin@^2.0.3:
1056810568
remark-textr "^3.0.4"
1056910569
rev-hash "^3.0.0"
1057010570

10571-
manifest-rev@^1.0.0:
10572-
version "1.0.0"
10573-
resolved "https://registry.yarnpkg.com/manifest-rev/-/manifest-rev-1.0.0.tgz#8556b527db0c663f308c04fbb6a46d35ef35148e"
10574-
integrity sha512-yQVITfe4FIaOVpVvdOlrAojeNygJrxEOb8yEAOsAY5JASsmLfvwQMFKdF9kBVLWgD05sUViB9gAlPTBTO30Z9A==
10571+
manifest-rev@^1.0.2:
10572+
version "1.0.2"
10573+
resolved "https://registry.yarnpkg.com/manifest-rev/-/manifest-rev-1.0.2.tgz#b0bfa8c6f3d4ff881d9a19f7e08cd17c090d2abf"
10574+
integrity sha512-bZIXwhhK59+u9gXtfYzxQpyte14bWf3YIhC1PDY5N+bM0Tfh0XkTx3cFR/9d2BsYHi/aRPSmVTOoytHOYBKEvQ==
1057510575

1057610576
map-age-cleaner@^0.1.3:
1057710577
version "0.1.3"

0 commit comments

Comments
 (0)