Skip to content

Commit 8b0a60d

Browse files
authored
fix: cleanup views (#382)
1 parent 6f0793f commit 8b0a60d

File tree

4 files changed

+10
-19
lines changed

4 files changed

+10
-19
lines changed

template/app/views/layout.pug

+3-12
Original file line numberDiff line numberDiff line change
@@ -126,19 +126,10 @@ 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
141-
if config.env === 'production'
142-
script(src=manifest('core.js') integrity=manifest('core.js', 'integrity'))
143-
else
144-
script(src=manifest('core.js'))
135+
script(src=manifest('core.js') integrity=manifest('core.js', 'integrity'))

template/app/views/my-account/security.pug

+2-2
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

template/package.json

+1-1
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",

template/yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -10564,10 +10564,10 @@ mandarin@^2.0.3:
1056410564
remark-textr "^3.0.4"
1056510565
rev-hash "^3.0.0"
1056610566

10567-
manifest-rev@^1.0.0:
10568-
version "1.0.0"
10569-
resolved "https://registry.yarnpkg.com/manifest-rev/-/manifest-rev-1.0.0.tgz#8556b527db0c663f308c04fbb6a46d35ef35148e"
10570-
integrity sha512-yQVITfe4FIaOVpVvdOlrAojeNygJrxEOb8yEAOsAY5JASsmLfvwQMFKdF9kBVLWgD05sUViB9gAlPTBTO30Z9A==
10567+
manifest-rev@^1.0.2:
10568+
version "1.0.2"
10569+
resolved "https://registry.yarnpkg.com/manifest-rev/-/manifest-rev-1.0.2.tgz#b0bfa8c6f3d4ff881d9a19f7e08cd17c090d2abf"
10570+
integrity sha512-bZIXwhhK59+u9gXtfYzxQpyte14bWf3YIhC1PDY5N+bM0Tfh0XkTx3cFR/9d2BsYHi/aRPSmVTOoytHOYBKEvQ==
1057110571

1057210572
map-cache@^0.2.0, map-cache@^0.2.2:
1057310573
version "0.2.2"

0 commit comments

Comments
 (0)