hof 20.0.0-beta.38 → 20.0.0-beta.39
Sign up to get free protection for your applications and to get access to all the features.
- package/.nyc_output/7c548a7f-5c40-44b2-b9fb-648341a23d6f.json +1 -0
- package/.nyc_output/processinfo/7c548a7f-5c40-44b2-b9fb-648341a23d6f.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/.vscode/settings.json +6 -0
- package/components/notify/notify.js +1 -1
- package/config/sanitisation-rules.js +20 -17
- package/controller/base-controller.js +5 -3
- package/frontend/template-partials/views/layout.html +2 -2
- package/frontend/template-partials/views/partials/maincontent-left.html +2 -2
- package/frontend/template-partials/views/partials/summary-table-row.html +2 -2
- package/frontend/template-partials/views/session-timeout.html +2 -1
- package/index.js +1 -1
- package/middleware/errors.js +2 -0
- package/package.json +3 -2
- package/sandbox/.env +1 -0
- package/sandbox/apps/sandbox/translations/en/default.json +203 -0
- package/sandbox/public/css/app.css +9387 -0
- package/sandbox/public/images/icons/icon-caret-left.png +0 -0
- package/sandbox/public/images/icons/icon-complete.png +0 -0
- package/sandbox/public/images/icons/icon-cross-remove-sign.png +0 -0
- package/sandbox/public/js/bundle.js +35658 -0
- package/wizard/middleware/check-progress.js +36 -1
- package/.nyc_output/6ec5c088-e828-4f32-9115-eefea6cdc69b.json +0 -1
- package/.nyc_output/processinfo/6ec5c088-e828-4f32-9115-eefea6cdc69b.json +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"parent":null,"pid":5683,"argv":["/Users/sulthan/.nvm/versions/node/v16.15.0/bin/node","/Users/sulthan/development/HO/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/sulthan/development/HO/hof","time":1662566958656,"ppid":5682,"coverageFilename":"/Users/sulthan/development/HO/hof/.nyc_output/7c548a7f-5c40-44b2-b9fb-648341a23d6f.json","externalId":"","uuid":"7c548a7f-5c40-44b2-b9fb-648341a23d6f","files":["/Users/sulthan/development/HO/hof/model/index.js","/Users/sulthan/development/HO/hof/components/index.js","/Users/sulthan/development/HO/hof/components/address-lookup/index.js","/Users/sulthan/development/HO/hof/components/address-lookup/default-model.js","/Users/sulthan/development/HO/hof/components/address-lookup/defaults.js","/Users/sulthan/development/HO/hof/components/clear-session/index.js","/Users/sulthan/development/HO/hof/components/date/index.js","/Users/sulthan/development/HO/hof/components/date/fields.js","/Users/sulthan/development/HO/hof/components/emailer/index.js","/Users/sulthan/development/HO/hof/components/emailer/email-service.js","/Users/sulthan/development/HO/hof/components/emailer/emailer.js","/Users/sulthan/development/HO/hof/components/emailer/transports/index.js","/Users/sulthan/development/HO/hof/components/emailer/transports/smtp.js","/Users/sulthan/development/HO/hof/components/emailer/transports/ses.js","/Users/sulthan/development/HO/hof/components/emailer/transports/stub.js","/Users/sulthan/development/HO/hof/components/emailer/transports/debug.js","/Users/sulthan/development/HO/hof/components/notify/index.js","/Users/sulthan/development/HO/hof/components/notify/notify.js","/Users/sulthan/development/HO/hof/components/summary/index.js","/Users/sulthan/development/HO/hof/config/rate-limits.js","/Users/sulthan/development/HO/hof/middleware/rate-limiter.js","/Users/sulthan/development/HO/hof/config/hof-defaults.js","/Users/sulthan/development/HO/hof/controller/base-controller.js","/Users/sulthan/development/HO/hof/controller/formatting/index.js","/Users/sulthan/development/HO/hof/controller/validation/index.js","/Users/sulthan/development/HO/hof/controller/validation/validators.js","/Users/sulthan/development/HO/hof/controller/validation/email.js","/Users/sulthan/development/HO/hof/controller/validation-error.js","/Users/sulthan/development/HO/hof/utilities/index.js","/Users/sulthan/development/HO/hof/utilities/autofill/index.js","/Users/sulthan/development/HO/hof/utilities/autofill/inputs.js","/Users/sulthan/development/HO/hof/utilities/test-data/index.js","/Users/sulthan/development/HO/hof/utilities/countries.js","/Users/sulthan/development/HO/hof/utilities/helpers/index.js","/Users/sulthan/development/HO/hof/utilities/reqres/index.js","/Users/sulthan/development/HO/hof/config/sanitisation-rules.js","/Users/sulthan/development/HO/hof/controller/formatting/formatters.js","/Users/sulthan/development/HO/hof/controller/index.js","/Users/sulthan/development/HO/hof/controller/behaviour-session.js","/Users/sulthan/development/HO/hof/controller/behaviour-hooks.js","/Users/sulthan/development/HO/hof/controller/controller.js","/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/index.js","/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/render.js","/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/helpers.js","/Users/sulthan/development/HO/hof/index.js","/Users/sulthan/development/HO/hof/frontend/index.js","/Users/sulthan/development/HO/hof/frontend/govuk-template/index.js","/Users/sulthan/development/HO/hof/frontend/govuk-template/build/index.js","/Users/sulthan/development/HO/hof/frontend/govuk-template/build/config.js","/Users/sulthan/development/HO/hof/frontend/template-partials/index.js","/Users/sulthan/development/HO/hof/frontend/template-partials/translations/index.js","/Users/sulthan/development/HO/hof/frontend/themes/index.js","/Users/sulthan/development/HO/hof/frontend/themes/gov-uk/index.js","/Users/sulthan/development/HO/hof/frontend/toolkit/index.js","/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/validation.js","/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/sulthan/development/HO/hof/middleware/index.js","/Users/sulthan/development/HO/hof/middleware/cookies.js","/Users/sulthan/development/HO/hof/middleware/errors.js","/Users/sulthan/development/HO/hof/middleware/not-found.js","/Users/sulthan/development/HO/hof/middleware/deep-translate.js","/Users/sulthan/development/HO/hof/lib/markdown.js","/Users/sulthan/development/HO/hof/lib/router.js","/Users/sulthan/development/HO/hof/wizard/index.js","/Users/sulthan/development/HO/hof/wizard/behaviours/index.js","/Users/sulthan/development/HO/hof/wizard/behaviours/complete.js","/Users/sulthan/development/HO/hof/wizard/util/constants.js","/Users/sulthan/development/HO/hof/lib/helpers.js","/Users/sulthan/development/HO/hof/lib/health.js","/Users/sulthan/development/HO/hof/lib/serve-static.js","/Users/sulthan/development/HO/hof/lib/ga-tag.js","/Users/sulthan/development/HO/hof/lib/sessions.js","/Users/sulthan/development/HO/hof/lib/settings.js","/Users/sulthan/development/HO/hof/lib/logger.js","/Users/sulthan/development/HO/hof/build/index.js","/Users/sulthan/development/HO/hof/config/builder-defaults.js","/Users/sulthan/development/HO/hof/transpiler/index.js","/Users/sulthan/development/HO/hof/transpiler/lib/compile.js","/Users/sulthan/development/HO/hof/transpiler/lib/build.js","/Users/sulthan/development/HO/hof/transpiler/lib/expand-dirs.js","/Users/sulthan/development/HO/hof/transpiler/lib/aggregate.js","/Users/sulthan/development/HO/hof/transpiler/lib/write-files.js","/Users/sulthan/development/HO/hof/model/apis/index.js","/Users/sulthan/development/HO/hof/model/apis/html-to-pdf-converter.js","/Users/sulthan/development/HO/hof/wizard/model.js","/Users/sulthan/development/HO/hof/wizard/middleware/back-links.js","/Users/sulthan/development/HO/hof/wizard/util/helpers.js","/Users/sulthan/development/HO/hof/wizard/middleware/check-complete.js","/Users/sulthan/development/HO/hof/wizard/middleware/check-progress.js","/Users/sulthan/development/HO/hof/wizard/middleware/check-session.js","/Users/sulthan/development/HO/hof/wizard/middleware/csrf.js","/Users/sulthan/development/HO/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/fields.js","/Users/sulthan/development/HO/hof/sandbox/test/helpers/utilities.js","/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/behaviours/international-number.js","/Users/sulthan/development/HO/hof/lib/encryption.js","/Users/sulthan/development/HO/hof/wizard/middleware/session.js","/Users/sulthan/development/HO/hof/wizard/middleware/session-model.js"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"processes":{"6ec5c088-e828-4f32-9115-eefea6cdc69b":{"parent":null,"children":[]}},"files":{"/Users/sarah-janeluff/Documents/SAS/hof/model/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/address-lookup/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/address-lookup/default-model.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/address-lookup/defaults.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/clear-session/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/date/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/date/fields.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/emailer/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/emailer/email-service.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/emailer/emailer.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/emailer/transports/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/emailer/transports/smtp.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/emailer/transports/ses.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/emailer/transports/stub.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/emailer/transports/debug.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/summary/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/config/rate-limits.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/middleware/rate-limiter.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/config/hof-defaults.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/notify/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/components/notify/notify.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/controller/base-controller.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/controller/formatting/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/controller/validation/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/controller/validation/validators.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/controller/validation/email.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/controller/validation-error.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/utilities/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/utilities/autofill/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/utilities/autofill/inputs.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/utilities/test-data/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/utilities/countries.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/utilities/helpers/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/utilities/reqres/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/config/sanitisation-rules.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/controller/formatting/formatters.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/controller/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/controller/behaviour-session.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/controller/behaviour-hooks.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/controller/controller.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/sandbox/apps/sandbox/behaviours/country-select.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/template-mixins/mixins/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/template-mixins/mixins/template-mixins.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/template-mixins/mixins/render.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/template-mixins/mixins/helpers.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/govuk-template/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/govuk-template/build/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/govuk-template/build/config.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/template-partials/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/template-partials/translations/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/themes/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/themes/gov-uk/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/toolkit/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/toolkit/assets/javascript/helpers.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/toolkit/assets/javascript/form-focus.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/toolkit/assets/javascript/validation.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/frontend/toolkit/assets/javascript/character-count.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/middleware/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/middleware/cookies.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/middleware/errors.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/middleware/not-found.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/middleware/deep-translate.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/lib/markdown.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/lib/router.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/behaviours/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/behaviours/complete.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/util/constants.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/lib/helpers.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/lib/health.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/lib/serve-static.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/lib/ga-tag.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/lib/sessions.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/lib/settings.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/lib/logger.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/build/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/config/builder-defaults.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/transpiler/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/transpiler/lib/compile.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/transpiler/lib/build.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/transpiler/lib/expand-dirs.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/transpiler/lib/aggregate.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/transpiler/lib/write-files.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/model/apis/index.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/model/apis/html-to-pdf-converter.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/model.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/middleware/back-links.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/util/helpers.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/middleware/check-complete.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/middleware/check-progress.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/middleware/check-session.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/middleware/csrf.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/sandbox/apps/sandbox/fields.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/sandbox/test/helpers/utilities.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/sandbox/apps/sandbox/behaviours/international-number.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/lib/encryption.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/middleware/session.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"],"/Users/sarah-janeluff/Documents/SAS/hof/wizard/middleware/session-model.js":["6ec5c088-e828-4f32-9115-eefea6cdc69b"]},"externalIds":{}}
|
1
|
+
{"processes":{"7c548a7f-5c40-44b2-b9fb-648341a23d6f":{"parent":null,"children":[]}},"files":{"/Users/sulthan/development/HO/hof/model/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/address-lookup/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/address-lookup/default-model.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/address-lookup/defaults.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/clear-session/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/date/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/date/fields.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/emailer/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/emailer/email-service.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/emailer/emailer.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/emailer/transports/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/emailer/transports/smtp.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/emailer/transports/ses.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/emailer/transports/stub.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/emailer/transports/debug.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/notify/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/notify/notify.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/components/summary/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/config/rate-limits.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/middleware/rate-limiter.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/config/hof-defaults.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/controller/base-controller.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/controller/formatting/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/controller/validation/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/controller/validation/validators.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/controller/validation/email.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/controller/validation-error.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/utilities/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/utilities/autofill/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/utilities/autofill/inputs.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/utilities/test-data/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/utilities/countries.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/utilities/helpers/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/utilities/reqres/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/config/sanitisation-rules.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/controller/formatting/formatters.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/controller/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/controller/behaviour-session.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/controller/behaviour-hooks.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/controller/controller.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/behaviours/country-select.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/template-mixins.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/render.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/helpers.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/govuk-template/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/govuk-template/build/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/govuk-template/build/config.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/template-partials/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/template-partials/translations/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/themes/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/themes/gov-uk/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/toolkit/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/helpers.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/form-focus.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/validation.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/character-count.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/middleware/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/middleware/cookies.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/middleware/errors.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/middleware/not-found.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/middleware/deep-translate.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/lib/markdown.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/lib/router.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/behaviours/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/behaviours/complete.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/util/constants.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/lib/helpers.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/lib/health.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/lib/serve-static.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/lib/ga-tag.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/lib/sessions.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/lib/settings.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/lib/logger.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/build/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/config/builder-defaults.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/transpiler/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/transpiler/lib/compile.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/transpiler/lib/build.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/transpiler/lib/expand-dirs.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/transpiler/lib/aggregate.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/transpiler/lib/write-files.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/model/apis/index.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/model/apis/html-to-pdf-converter.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/model.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/middleware/back-links.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/util/helpers.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/middleware/check-complete.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/middleware/check-progress.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/middleware/check-session.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/middleware/csrf.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/fields.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/sandbox/test/helpers/utilities.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/behaviours/international-number.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/lib/encryption.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/middleware/session.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"],"/Users/sulthan/development/HO/hof/wizard/middleware/session-model.js":["7c548a7f-5c40-44b2-b9fb-648341a23d6f"]},"externalIds":{}}
|
@@ -3,27 +3,30 @@
|
|
3
3
|
|
4
4
|
const sanitisationBlacklistArray = {
|
5
5
|
// Input will be sanitised using the below rules
|
6
|
+
// Each one is an array which will run sequentially
|
7
|
+
// Some have multiple steps which allow us to remove dups then append the suffix
|
8
|
+
// Useful for ensuring we're not re-sanitising the same input multiple times (and appending extra hypens each time)
|
6
9
|
// The key is what we're sanitising out
|
7
10
|
// The regex is the rule we used to find them (note some dictate repeating characters)
|
8
11
|
// And the replace is what we're replacing that pattern with. Usually nothing sometimes a
|
9
12
|
// single character or sometimes a single character followed by a "-"
|
10
|
-
'/*': { regex: '\/\\*', replace: '-' },
|
11
|
-
'*/': { regex: '\\*\\/', replace: '-' },
|
12
|
-
'|': { regex: '\\|', replace: '-' },
|
13
|
-
'&&': { regex: '&&+', replace: '&' },
|
14
|
-
'@@': { regex: '@@+', replace: '@' },
|
15
|
-
'/..;/': { regex: '/\\.\\.;/', replace: '-' }, // Purposely input before ".." as they conflict
|
16
|
-
// '..': { regex: '\\.\\.+', replace: '.' }, // Agreed to disable this rule for now unless its specifically required
|
17
|
-
'/etc/passwd': { regex: '\/etc\/passwd', replace: '-' },
|
18
|
-
'c:\\': { regex: 'c:\\\\', replace: '-' },
|
19
|
-
'cmd.exe': { regex: 'cmd\\.exe', replace: '-' },
|
20
|
-
'<': { regex: '<', replace: '<-' },
|
21
|
-
'>': { regex: '>', replace: '>-' },
|
22
|
-
'[': { regex: '\\[+', replace: '[-' },
|
23
|
-
']': { regex: '\\]+', replace: ']-' },
|
24
|
-
'~': { regex: '~', replace: '~-' },
|
25
|
-
'&#': { regex: '&#', replace: '-' },
|
26
|
-
'%U': { regex: '%U', replace: '-' }
|
13
|
+
'/*': [{ regex: '\/\\*', replace: '-' }],
|
14
|
+
'*/': [{ regex: '\\*\\/', replace: '-' }],
|
15
|
+
'|': [{ regex: '\\|', replace: '-' }],
|
16
|
+
'&&': [{ regex: '&&+', replace: '&' }],
|
17
|
+
'@@': [{ regex: '@@+', replace: '@' }],
|
18
|
+
'/..;/': [{ regex: '/\\.\\.;/', replace: '-' }], // Purposely input before ".." as they conflict
|
19
|
+
// '..': [{ regex: '\\.\\.+', replace: '.' }], // Agreed to disable this rule for now unless its specifically required
|
20
|
+
'/etc/passwd': [{ regex: '\/etc\/passwd', replace: '-' }],
|
21
|
+
'c:\\': [{ regex: 'c:\\\\', replace: '-' }],
|
22
|
+
'cmd.exe': [{ regex: 'cmd\\.exe', replace: '-' }],
|
23
|
+
'<': [{ regex: '<+', replace: '<' }, { regex: '<(?!-)', replace: '<-' }],
|
24
|
+
'>': [{ regex: '>+', replace: '>' }, { regex: '>(?!-)', replace: '>-' }],
|
25
|
+
'[': [{ regex: '\\[+', replace: '[' }, { regex: '\\[(?!-)', replace: '[-' }],
|
26
|
+
']': [{ regex: '\\]+', replace: ']-' }, { regex: '\\](?!-)', replace: ']-' }],
|
27
|
+
'~': [{ regex: '~+', replace: '~' }, { regex: '~(?!-)', replace: '~-' }],
|
28
|
+
'&#': [{ regex: '&#', replace: '-' }],
|
29
|
+
'%U': [{ regex: '%U', replace: '-' }]
|
27
30
|
};
|
28
31
|
|
29
32
|
module.exports = sanitisationBlacklistArray;
|
@@ -177,9 +177,11 @@ module.exports = class BaseController extends EventEmitter {
|
|
177
177
|
// For each property in our form data
|
178
178
|
Object.keys(sanitisationBlacklistArray).forEach(function (blacklisted, blacklistedIndex) {
|
179
179
|
const blacklistedDetail = sanitisationBlacklistArray[blacklisted];
|
180
|
-
|
181
|
-
|
182
|
-
|
180
|
+
blacklistedDetail.forEach(step => {
|
181
|
+
const regexQuery = new RegExp(step.regex, 'gi');
|
182
|
+
// Will perform the required replace based on our passed in regex and the replace string
|
183
|
+
req.form.values[property] = req.form.values[property].replace(regexQuery, step.replace);
|
184
|
+
});
|
183
185
|
});
|
184
186
|
}
|
185
187
|
});
|
@@ -44,9 +44,9 @@
|
|
44
44
|
{{/gaTagId}}
|
45
45
|
{{/cookieMessage}}
|
46
46
|
{{$footerSupportLinks}}
|
47
|
-
<ul>
|
47
|
+
<ul class="govuk-footer__inline-list">
|
48
48
|
{{#footerSupportLinks}}
|
49
|
-
<li class="govuk-footer__inline-list-item"><a href="{{path}}">{{#t}}{{property}}{{/t}}</a></li>
|
49
|
+
<li class="govuk-footer__inline-list-item"><a class="govuk-footer__link" href="{{path}}">{{#t}}{{property}}{{/t}}</a></li>
|
50
50
|
{{/footerSupportLinks}}
|
51
51
|
{{^footerSupportLinks}}
|
52
52
|
<li class="govuk-footer__inline-list-item"><a class="govuk-footer__link" href="/cookies">{{#t}}base.cookies{{/t}}</a></li>
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<div class="govuk-grid-column-two-thirds">
|
4
4
|
{{$validationSummary}}{{/validationSummary}}
|
5
5
|
{{#captionHeading}}<span class="govuk-caption-l">{{captionHeading}}</span>{{/captionHeading}}
|
6
|
-
{{#header}}<h1 class="govuk-heading-
|
7
|
-
{{#subHeading}}<div id="page-header" class="govuk-heading-
|
6
|
+
{{#header}}<h1 class="govuk-heading-l">{{header}}</h1>{{/header}}
|
7
|
+
{{#subHeading}}<div id="page-header"><h2 class="govuk-heading-m">{{subHeading}}</h2></div>{{/subHeading}}
|
8
8
|
{{$content}}{{/content}}
|
9
9
|
</div>
|
10
10
|
{{/content-outer}}
|
@@ -5,10 +5,10 @@
|
|
5
5
|
<dt class="confirm-label">{{label}}</dt>
|
6
6
|
<dd class="confirm-value" data-value="{{value}}">{{value}}</dd>
|
7
7
|
{{#changeLink}}
|
8
|
-
<dd><span class="link"
|
8
|
+
<dd><span><a class="govuk-link" href="{{changeLink}}" id="{{field}}-change-{{index}}">{{#t}}buttons.change{{/t}} <span class="visuallyhidden">{{changeLinkDescription}} from {{value}}</span></a></span></dd>
|
9
9
|
{{/changeLink}}
|
10
10
|
{{^changeLink}}
|
11
|
-
<dd><span class="link"
|
11
|
+
<dd><span><a class="govuk-link" href="{{baseUrl}}{{step}}/edit#{{field}}" id="{{field}}-change">{{#t}}buttons.change{{/t}} <span class="visuallyhidden">{{changeLinkDescription}} from {{value}}</span></a></span></dd>
|
12
12
|
{{/changeLink}}
|
13
13
|
{{/isSeparator}}
|
14
14
|
</div>
|
@@ -1,6 +1,7 @@
|
|
1
1
|
{{<error}}
|
2
2
|
{{$content}}
|
3
|
-
<
|
3
|
+
<h1 class="govuk-heading-l">{{{content.title}}}</h1>
|
4
|
+
<h2 class="govuk-heading-m">{{{content.message}}}</h2>
|
4
5
|
<a href="{{startLink}}" class="govuk-button" role="button">{{#t}}buttons.start-again{{/t}}</a>
|
5
6
|
{{/content}}
|
6
7
|
{{/error}}
|
package/index.js
CHANGED
@@ -79,7 +79,7 @@ const getContentSecurityPolicy = (config, res) => {
|
|
79
79
|
fontSrc: ['fonts.gstatic.com '],
|
80
80
|
scriptSrc: ['www.google-analytics.com', 'ssl.google-analytics.com'],
|
81
81
|
imgSrc: ['www.google-analytics.com', 'ssl.gstatic.com'],
|
82
|
-
connectSrc: ['www.google-analytics.com']
|
82
|
+
connectSrc: ['https://www.google-analytics.com', 'https://region1.google-analytics.com']
|
83
83
|
};
|
84
84
|
|
85
85
|
if (config.gaTagId) {
|
package/middleware/errors.js
CHANGED
@@ -12,6 +12,8 @@ const getContent = (err, translate) => {
|
|
12
12
|
if (err.code === 'SESSION_TIMEOUT') {
|
13
13
|
err.status = 401;
|
14
14
|
err.template = 'session-timeout';
|
15
|
+
err.title = (translate && translate('errors.session.title'));
|
16
|
+
err.message = (translate && translate('errors.session.message'));
|
15
17
|
content.title = (translate && translate('errors.session.title'));
|
16
18
|
content.message = (translate && translate('errors.session.message'));
|
17
19
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "hof",
|
3
3
|
"description": "A bootstrap for HOF projects",
|
4
|
-
"version": "20.0.0-beta.
|
4
|
+
"version": "20.0.0-beta.39",
|
5
5
|
"license": "MIT",
|
6
6
|
"main": "index.js",
|
7
7
|
"author": "HomeOffice",
|
@@ -72,7 +72,7 @@
|
|
72
72
|
"minimatch": "^3.0.3",
|
73
73
|
"minimist": "^1.2.6",
|
74
74
|
"mixwith": "^0.1.1",
|
75
|
-
"moment": "^2.29.
|
75
|
+
"moment": "^2.29.4",
|
76
76
|
"morgan": "^1.10.0",
|
77
77
|
"mustache": "^2.3.0",
|
78
78
|
"nodemailer": "^6.6.3",
|
@@ -89,6 +89,7 @@
|
|
89
89
|
"uglify-js": "^3.14.3",
|
90
90
|
"underscore": "^1.12.1",
|
91
91
|
"urijs": "^1.19.11",
|
92
|
+
"uuid": "^8.3.2",
|
92
93
|
"winston": "^3.7.2"
|
93
94
|
},
|
94
95
|
"devDependencies": {
|
package/sandbox/.env
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
// GA_TAG=UA-215558609-1
|
@@ -0,0 +1,203 @@
|
|
1
|
+
{
|
2
|
+
"fields": {
|
3
|
+
"landing-page-radio": {
|
4
|
+
"legend": "Which form would you like to explore?",
|
5
|
+
"hint": "Choose one of the options below and press continue.",
|
6
|
+
"options": {
|
7
|
+
"basic-form": {
|
8
|
+
"label": "Basic form"
|
9
|
+
},
|
10
|
+
"complex-form": {
|
11
|
+
"label": "Complex form"
|
12
|
+
},
|
13
|
+
"build-your-own-form": {
|
14
|
+
"label": "Build your own form"
|
15
|
+
}
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"name": {
|
19
|
+
"label": "What is your full name?"
|
20
|
+
},
|
21
|
+
"dateOfBirth": {
|
22
|
+
"legend": "What is your date of birth?",
|
23
|
+
"hint": "For example, 31 10 1990"
|
24
|
+
},
|
25
|
+
"building": {
|
26
|
+
"label": "Building and street"
|
27
|
+
},
|
28
|
+
"street": {
|
29
|
+
"label": "Address line 2"
|
30
|
+
},
|
31
|
+
"townOrCity": {
|
32
|
+
"label": "Town or city"
|
33
|
+
},
|
34
|
+
"postcode": {
|
35
|
+
"label": "Postcode"
|
36
|
+
},
|
37
|
+
"incomeTypes": {
|
38
|
+
"label": "Sources of income",
|
39
|
+
"legend": "Select the options where you receive income from",
|
40
|
+
"hint": "Select all options that apply to you.",
|
41
|
+
"options": {
|
42
|
+
"salary": {
|
43
|
+
"label": "Salary"
|
44
|
+
},
|
45
|
+
"universal_credit": {
|
46
|
+
"label": "Universal Credit"
|
47
|
+
},
|
48
|
+
"child_benefit": {
|
49
|
+
"label": "Child Benefit"
|
50
|
+
},
|
51
|
+
"housing_benefit": {
|
52
|
+
"label": "Housing Benefit"
|
53
|
+
},
|
54
|
+
"other": {
|
55
|
+
"label": "Other"
|
56
|
+
}
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"countryOfHearing": {
|
60
|
+
"legend": "What country was the appeal lodged?",
|
61
|
+
"options": {
|
62
|
+
"englandAndWales": {
|
63
|
+
"label": "England and Wales"
|
64
|
+
},
|
65
|
+
"scotland": {
|
66
|
+
"label": "Scotland"
|
67
|
+
},
|
68
|
+
"northernIreland": {
|
69
|
+
"label": "Northern Ireland"
|
70
|
+
}
|
71
|
+
}
|
72
|
+
},
|
73
|
+
"email": {
|
74
|
+
"label": "Enter your email address"
|
75
|
+
},
|
76
|
+
"phone": {
|
77
|
+
"label": "Phone number",
|
78
|
+
"hint": "International phone numbers require the international dialling code, for example +33235066182"
|
79
|
+
},
|
80
|
+
"int-phone-number": {
|
81
|
+
"legend": "International phone number"
|
82
|
+
},
|
83
|
+
"complaintDetails": {
|
84
|
+
"label": "Complaint details",
|
85
|
+
"hint": "Briefly summarise your complaint. Include anything that can help our investigation."
|
86
|
+
},
|
87
|
+
"countrySelect": {
|
88
|
+
"label": "Which country are you based in?",
|
89
|
+
"hint": "Start to type the country name and options will appear"
|
90
|
+
},
|
91
|
+
"appealStages": {
|
92
|
+
"label": "Appeal stage",
|
93
|
+
"hint": "Choose an appeal stage from the drop down menu",
|
94
|
+
"options": {
|
95
|
+
"null": "Select..."
|
96
|
+
}
|
97
|
+
}
|
98
|
+
},
|
99
|
+
"journey": {
|
100
|
+
"header": "HOF Bootstrap Sandbox Form",
|
101
|
+
"confirmation": {
|
102
|
+
"details": "Your reference number <br><strong>HDJ2123F</strong>"
|
103
|
+
}
|
104
|
+
},
|
105
|
+
"pages": {
|
106
|
+
"landing-page": {
|
107
|
+
"header": "Landing page"
|
108
|
+
},
|
109
|
+
"build-your-own-form": {
|
110
|
+
"title": "Build your own form",
|
111
|
+
"subheader": "Access the build your own form guidance link"
|
112
|
+
},
|
113
|
+
"address": {
|
114
|
+
"header": "What is your address in the UK?",
|
115
|
+
"intro": "If you have no fixed address, enter an address where we can contact you."
|
116
|
+
},
|
117
|
+
"phone-number": {
|
118
|
+
"header": "Enter your phone number"
|
119
|
+
},
|
120
|
+
"confirm": {
|
121
|
+
"header": "Check your answers before submitting your application.",
|
122
|
+
"sections": {
|
123
|
+
"applicantsDetails": {
|
124
|
+
"header": "Applicant's details"
|
125
|
+
},
|
126
|
+
"address": {
|
127
|
+
"header": "Address"
|
128
|
+
},
|
129
|
+
"income": {
|
130
|
+
"header": "Income"
|
131
|
+
},
|
132
|
+
"appealDetails": {
|
133
|
+
"header": "Appeal details"
|
134
|
+
},
|
135
|
+
"countrySelect": {
|
136
|
+
"header": "Country of residence"
|
137
|
+
},
|
138
|
+
"contactDetails": {
|
139
|
+
"header": "Contact details"
|
140
|
+
},
|
141
|
+
"complaintDetails": {
|
142
|
+
"header": "Complaint details"
|
143
|
+
}
|
144
|
+
}
|
145
|
+
},
|
146
|
+
"confirmation": {
|
147
|
+
"title": "Application sent",
|
148
|
+
"alert": "Application sent",
|
149
|
+
"subheader": "What happens next",
|
150
|
+
"content": "We’ll contact you with the decision of your application or if we need more information from you."
|
151
|
+
}
|
152
|
+
},
|
153
|
+
"validation": {
|
154
|
+
"landing-page-radio": {
|
155
|
+
"required": "Select an option below and press continue"
|
156
|
+
},
|
157
|
+
"name": {
|
158
|
+
"default": "Enter your full name"
|
159
|
+
},
|
160
|
+
"dateOfBirth": {
|
161
|
+
"default": "Enter your date of birth in the correct format; for example, 31 10 1990",
|
162
|
+
"after": "Enter a date after 1 1 1900",
|
163
|
+
"before": "Enter a date that is in the past"
|
164
|
+
},
|
165
|
+
"building": {
|
166
|
+
"default": "Enter details of your building and street"
|
167
|
+
},
|
168
|
+
"townOrCity": {
|
169
|
+
"default": "Enter a town or city",
|
170
|
+
"regex": "Enter a town or city without including digits"
|
171
|
+
},
|
172
|
+
"postcode": {
|
173
|
+
"default": "Enter your postcode"
|
174
|
+
},
|
175
|
+
"incomeTypes": {
|
176
|
+
"default": "Select all options that apply to you."
|
177
|
+
},
|
178
|
+
"countryOfHearing": {
|
179
|
+
"default": "Select where the appeal hearing is to be held"
|
180
|
+
},
|
181
|
+
"countrySelect": {
|
182
|
+
"default": "Enter a valid country of residence",
|
183
|
+
"required": "Enter your country of residence"
|
184
|
+
},
|
185
|
+
"email": {
|
186
|
+
"default": "Enter your email address in the correct format"
|
187
|
+
},
|
188
|
+
"phone": {
|
189
|
+
"default": "Enter your phone number"
|
190
|
+
},
|
191
|
+
"int-phone-number": {
|
192
|
+
"required": "Enter an international phone number",
|
193
|
+
"internationalPhoneNumber": "Enter a valid international phone number"
|
194
|
+
},
|
195
|
+
"complaintDetails": {
|
196
|
+
"default": "Enter details about why you are making a complaint",
|
197
|
+
"maxlength": "Keep to the {{maxlength}} character limit"
|
198
|
+
},
|
199
|
+
"appealStages": {
|
200
|
+
"required": "Select an appeal stage from the list"
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|