hof 20.2.10 → 20.2.11-upgrade-redis-beta
Sign up to get free protection for your applications and to get access to all the features.
- package/.nyc_output/4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5.json +1 -0
- package/.nyc_output/processinfo/4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/config/hof-defaults.js +5 -2
- package/frontend/template-mixins/partials/forms/checkbox-group.html +1 -1
- package/frontend/template-mixins/partials/forms/textarea-group.html +3 -3
- package/frontend/template-partials/views/layout.html +1 -1
- package/frontend/template-partials/views/partials/cookie-banner.html +2 -2
- package/lib/health.js +1 -1
- package/lib/sessions.js +2 -0
- package/middleware/rate-limiter.js +3 -1
- package/package.json +2 -2
- package/sandbox/apps/sandbox/fields.js +6 -0
- package/sandbox/apps/sandbox/translations/en/default.json +224 -0
- package/sandbox/apps/sandbox/translations/src/en/fields.json +5 -5
- package/sandbox/apps/sandbox/translations/src/en/pages.json +1 -1
- package/sandbox/config.js +2 -1
- package/sandbox/public/css/app.css +2793 -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 +32888 -0
- package/sandbox/server.js +4 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"parent":null,"pid":28672,"argv":["/Users/robertmccann/.nvm/versions/node/v14.15.0/bin/node","/Users/robertmccann/Projects/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/robertmccann/Projects/hof","time":1686146117418,"ppid":28670,"coverageFilename":"/Users/robertmccann/Projects/hof/.nyc_output/4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5.json","externalId":"","uuid":"4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5","files":["/Users/robertmccann/Projects/hof/model/index.js","/Users/robertmccann/Projects/hof/components/index.js","/Users/robertmccann/Projects/hof/components/address-lookup/index.js","/Users/robertmccann/Projects/hof/components/address-lookup/default-model.js","/Users/robertmccann/Projects/hof/components/address-lookup/defaults.js","/Users/robertmccann/Projects/hof/components/clear-session/index.js","/Users/robertmccann/Projects/hof/components/combine-and-loop-fields/index.js","/Users/robertmccann/Projects/hof/components/date/index.js","/Users/robertmccann/Projects/hof/components/date/fields.js","/Users/robertmccann/Projects/hof/components/emailer/index.js","/Users/robertmccann/Projects/hof/components/emailer/email-service.js","/Users/robertmccann/Projects/hof/components/emailer/emailer.js","/Users/robertmccann/Projects/hof/components/emailer/transports/index.js","/Users/robertmccann/Projects/hof/components/emailer/transports/smtp.js","/Users/robertmccann/Projects/hof/components/emailer/transports/ses.js","/Users/robertmccann/Projects/hof/components/emailer/transports/stub.js","/Users/robertmccann/Projects/hof/components/emailer/transports/debug.js","/Users/robertmccann/Projects/hof/components/homeoffice-countries/index.js","/Users/robertmccann/Projects/hof/config/component-defaults.js","/Users/robertmccann/Projects/hof/components/notify/index.js","/Users/robertmccann/Projects/hof/components/notify/notify.js","/Users/robertmccann/Projects/hof/components/summary/index.js","/Users/robertmccann/Projects/hof/config/rate-limits.js","/Users/robertmccann/Projects/hof/middleware/rate-limiter.js","/Users/robertmccann/Projects/hof/config/hof-defaults.js","/Users/robertmccann/Projects/hof/controller/base-controller.js","/Users/robertmccann/Projects/hof/controller/formatting/index.js","/Users/robertmccann/Projects/hof/controller/validation/index.js","/Users/robertmccann/Projects/hof/controller/validation/validators.js","/Users/robertmccann/Projects/hof/controller/validation/email.js","/Users/robertmccann/Projects/hof/controller/validation-error.js","/Users/robertmccann/Projects/hof/utilities/index.js","/Users/robertmccann/Projects/hof/utilities/autofill/index.js","/Users/robertmccann/Projects/hof/utilities/autofill/inputs.js","/Users/robertmccann/Projects/hof/utilities/test-data/index.js","/Users/robertmccann/Projects/hof/utilities/countries.js","/Users/robertmccann/Projects/hof/utilities/helpers/index.js","/Users/robertmccann/Projects/hof/utilities/reqres/index.js","/Users/robertmccann/Projects/hof/config/sanitisation-rules.js","/Users/robertmccann/Projects/hof/controller/formatting/formatters.js","/Users/robertmccann/Projects/hof/controller/index.js","/Users/robertmccann/Projects/hof/controller/behaviour-session.js","/Users/robertmccann/Projects/hof/controller/behaviour-hooks.js","/Users/robertmccann/Projects/hof/controller/controller.js","/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/robertmccann/Projects/hof/frontend/template-mixins/mixins/index.js","/Users/robertmccann/Projects/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/robertmccann/Projects/hof/frontend/template-mixins/mixins/render.js","/Users/robertmccann/Projects/hof/frontend/template-mixins/mixins/helpers.js","/Users/robertmccann/Projects/hof/index.js","/Users/robertmccann/Projects/hof/frontend/index.js","/Users/robertmccann/Projects/hof/frontend/govuk-template/index.js","/Users/robertmccann/Projects/hof/frontend/govuk-template/build/index.js","/Users/robertmccann/Projects/hof/frontend/govuk-template/build/config.js","/Users/robertmccann/Projects/hof/frontend/template-partials/index.js","/Users/robertmccann/Projects/hof/frontend/template-partials/translations/index.js","/Users/robertmccann/Projects/hof/frontend/themes/index.js","/Users/robertmccann/Projects/hof/frontend/themes/gov-uk/index.js","/Users/robertmccann/Projects/hof/frontend/toolkit/index.js","/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/validation.js","/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/robertmccann/Projects/hof/middleware/index.js","/Users/robertmccann/Projects/hof/middleware/cookies.js","/Users/robertmccann/Projects/hof/middleware/errors.js","/Users/robertmccann/Projects/hof/middleware/not-found.js","/Users/robertmccann/Projects/hof/middleware/deep-translate.js","/Users/robertmccann/Projects/hof/lib/markdown.js","/Users/robertmccann/Projects/hof/lib/router.js","/Users/robertmccann/Projects/hof/wizard/index.js","/Users/robertmccann/Projects/hof/wizard/behaviours/index.js","/Users/robertmccann/Projects/hof/wizard/behaviours/complete.js","/Users/robertmccann/Projects/hof/wizard/util/constants.js","/Users/robertmccann/Projects/hof/lib/helpers.js","/Users/robertmccann/Projects/hof/lib/health.js","/Users/robertmccann/Projects/hof/lib/serve-static.js","/Users/robertmccann/Projects/hof/lib/ga-tag.js","/Users/robertmccann/Projects/hof/lib/sessions.js","/Users/robertmccann/Projects/hof/lib/settings.js","/Users/robertmccann/Projects/hof/lib/logger.js","/Users/robertmccann/Projects/hof/build/index.js","/Users/robertmccann/Projects/hof/config/builder-defaults.js","/Users/robertmccann/Projects/hof/transpiler/index.js","/Users/robertmccann/Projects/hof/transpiler/lib/compile.js","/Users/robertmccann/Projects/hof/transpiler/lib/build.js","/Users/robertmccann/Projects/hof/transpiler/lib/expand-dirs.js","/Users/robertmccann/Projects/hof/transpiler/lib/aggregate.js","/Users/robertmccann/Projects/hof/transpiler/lib/write-files.js","/Users/robertmccann/Projects/hof/model/apis/index.js","/Users/robertmccann/Projects/hof/model/apis/html-to-pdf-converter.js","/Users/robertmccann/Projects/hof/wizard/model.js","/Users/robertmccann/Projects/hof/wizard/middleware/back-links.js","/Users/robertmccann/Projects/hof/wizard/util/helpers.js","/Users/robertmccann/Projects/hof/wizard/middleware/check-complete.js","/Users/robertmccann/Projects/hof/wizard/middleware/check-progress.js","/Users/robertmccann/Projects/hof/wizard/middleware/check-session.js","/Users/robertmccann/Projects/hof/wizard/middleware/csrf.js","/Users/robertmccann/Projects/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/fields.js","/Users/robertmccann/Projects/hof/sandbox/test/helpers/utilities.js","/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/behaviours/international-number.js"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"processes":{"4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5":{"parent":null,"children":[]}},"files":{"/Users/robertmccann/Projects/hof/model/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/address-lookup/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/address-lookup/default-model.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/address-lookup/defaults.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/clear-session/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/combine-and-loop-fields/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/date/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/date/fields.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/emailer/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/emailer/email-service.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/emailer/emailer.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/emailer/transports/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/emailer/transports/smtp.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/emailer/transports/ses.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/emailer/transports/stub.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/emailer/transports/debug.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/homeoffice-countries/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/config/component-defaults.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/notify/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/notify/notify.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/components/summary/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/config/rate-limits.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/middleware/rate-limiter.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/config/hof-defaults.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/controller/base-controller.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/controller/formatting/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/controller/validation/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/controller/validation/validators.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/controller/validation/email.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/controller/validation-error.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/utilities/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/utilities/autofill/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/utilities/autofill/inputs.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/utilities/test-data/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/utilities/countries.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/utilities/helpers/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/utilities/reqres/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/config/sanitisation-rules.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/controller/formatting/formatters.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/controller/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/controller/behaviour-session.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/controller/behaviour-hooks.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/controller/controller.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/behaviours/country-select.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/template-mixins/mixins/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/template-mixins/mixins/template-mixins.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/template-mixins/mixins/render.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/template-mixins/mixins/helpers.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/govuk-template/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/govuk-template/build/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/govuk-template/build/config.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/template-partials/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/template-partials/translations/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/themes/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/themes/gov-uk/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/toolkit/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/helpers.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/form-focus.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/validation.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/character-count.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/middleware/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/middleware/cookies.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/middleware/errors.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/middleware/not-found.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/middleware/deep-translate.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/lib/markdown.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/lib/router.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/wizard/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/wizard/behaviours/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/wizard/behaviours/complete.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/wizard/util/constants.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/lib/helpers.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/lib/health.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/lib/serve-static.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/lib/ga-tag.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/lib/sessions.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/lib/settings.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/lib/logger.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/build/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/config/builder-defaults.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/transpiler/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/transpiler/lib/compile.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/transpiler/lib/build.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/transpiler/lib/expand-dirs.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/transpiler/lib/aggregate.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/transpiler/lib/write-files.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/model/apis/index.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/model/apis/html-to-pdf-converter.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/wizard/model.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/wizard/middleware/back-links.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/wizard/util/helpers.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/wizard/middleware/check-complete.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/wizard/middleware/check-progress.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/wizard/middleware/check-session.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/wizard/middleware/csrf.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/fields.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/sandbox/test/helpers/utilities.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"],"/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/behaviours/international-number.js":["4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5"]},"externalIds":{}}
|
package/config/hof-defaults.js
CHANGED
@@ -26,8 +26,11 @@ const defaults = {
|
|
26
26
|
loglevel: process.env.LOG_LEVEL || 'info',
|
27
27
|
ignoreMiddlewareLogs: ['/healthz'],
|
28
28
|
redis: {
|
29
|
-
|
30
|
-
|
29
|
+
socket: {
|
30
|
+
port: process.env.REDIS_PORT || '6379',
|
31
|
+
host: process.env.REDIS_HOST || '127.0.0.1'
|
32
|
+
},
|
33
|
+
legacyMode: true
|
31
34
|
},
|
32
35
|
session: {
|
33
36
|
ttl: process.env.SESSION_TTL || 1800,
|
@@ -29,7 +29,7 @@
|
|
29
29
|
type="{{type}}"
|
30
30
|
name="{{key}}"
|
31
31
|
id="{{key}}-{{value}}"
|
32
|
-
value="{{value}}"
|
32
|
+
value="{{value}}"
|
33
33
|
{{#toggle}} data-toggle="{{toggle}}"{{/toggle}}
|
34
34
|
{{#selected}} checked="checked"{{/selected}}
|
35
35
|
{{^error}}{{#optionHint}} aria-describedby="{{key}}-{{value}}-hint"{{/optionHint}}{{^optionHint}}{{#hint}} aria-describedby="{{key}}-hint"{{/hint}}{{/optionHint}}{{/error}}
|
@@ -17,9 +17,9 @@
|
|
17
17
|
{{#renderChild}}{{/renderChild}}
|
18
18
|
<textarea name="{{id}}" id="{{id}}"
|
19
19
|
class="govuk-textarea {{#isMaxlengthOrMaxword}}govuk-js-character-count{{/isMaxlengthOrMaxword}} {{#className}}{{className}}{{/className}} {{#error}}govuk-input--error{{/error}}"
|
20
|
-
aria-describedby="{{id}}-info"
|
21
|
-
{{#attributes}}
|
22
|
-
{{attribute}}="{{value}}"
|
20
|
+
aria-describedby="{{id}}-info"
|
21
|
+
{{#attributes}}
|
22
|
+
{{attribute}}="{{value}}"
|
23
23
|
{{/attributes}}
|
24
24
|
{{^error}}{{#hintId}}{{#maxlength}} aria-describedby="{{id}}-maxlength-hint {{hintId}}"{{/maxlength}}{{/hintId}}{{/error}}
|
25
25
|
{{^error}}{{#hintId}}{{^maxlength}} aria-describedby="{{hintId}}"{{/maxlength}}{{/hintId}}{{/error}}
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<span class="govuk-phase-banner__text">This is a new service – your <a href="{{feedbackUrl}}{{^feedbackUrl}}https://eforms.homeoffice.gov.uk/outreach/feedback.ofml{{/feedbackUrl}}" class="govuk-link" id="feedback-link" target="_blank">feedback</a> will help us to improve it.</span>
|
20
20
|
</p>
|
21
21
|
</div>
|
22
|
-
{{/feedbackUrl}}
|
22
|
+
{{/feedbackUrl}}
|
23
23
|
<span id="step">
|
24
24
|
{{> partials-back}} <span>{{$step}}{{/step}}</span>
|
25
25
|
</span>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
</div>
|
11
11
|
</div>
|
12
12
|
</div>
|
13
|
-
<div id="cookie-banner-actions" class="govuk-button-group">
|
13
|
+
<div id="cookie-banner-actions" class="govuk-button-group">
|
14
14
|
<button id="accept-cookies-button" class="gem-c-button govuk-button" type="submit" data-module="gem-track-click" data-accept-cookies="true" data-track-category="cookieBanner" data-track-action="Cookie banner accepted" data-cookie-types="all">Accept additional cookies</button>
|
15
|
-
|
15
|
+
|
16
16
|
<button id="reject-cookies-button" class="gem-c-button govuk-button" type="submit" data-module="gem-track-click" data-reject-cookies="true" data-track-category="cookieBanner" data-track-action="Cookie banner rejected">Reject additional cookies</button>
|
17
17
|
|
18
18
|
<a class="govuk-link" href="/cookies">View cookies</a>
|
package/lib/health.js
CHANGED
package/lib/sessions.js
CHANGED
@@ -25,9 +25,11 @@ module.exports = (options, rateLimitType) => {
|
|
25
25
|
}
|
26
26
|
|
27
27
|
const closeConnection = async err => {
|
28
|
-
await redisClient.
|
28
|
+
await redisClient.v4.QUIT();
|
29
29
|
return next(err);
|
30
30
|
};
|
31
|
+
redisClient.on('error', err => logger.log('error', err));
|
32
|
+
await redisClient.connect();
|
31
33
|
|
32
34
|
try {
|
33
35
|
// fetch records of current user using IP address, returns null when no record is found
|
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.2.
|
4
|
+
"version": "20.2.11-upgrade-redis-beta",
|
5
5
|
"license": "MIT",
|
6
6
|
"main": "index.js",
|
7
7
|
"author": "HomeOffice",
|
@@ -80,7 +80,7 @@
|
|
80
80
|
"nodemailer-smtp-transport": "^2.7.4",
|
81
81
|
"nodemailer-stub-transport": "^1.1.0",
|
82
82
|
"notifications-node-client": "^6.0.0",
|
83
|
-
"redis": "^
|
83
|
+
"redis": "^4.6.6",
|
84
84
|
"reqres": "^3.0.1",
|
85
85
|
"request": "^2.79.0",
|
86
86
|
"rimraf": "^3.0.2",
|
@@ -16,6 +16,9 @@ module.exports = {
|
|
16
16
|
},
|
17
17
|
name: {
|
18
18
|
validate: ['required', 'notUrl', { type: 'maxlength', arguments: 200 }],
|
19
|
+
// need to remove this for the heading to go
|
20
|
+
labelClassName: ['govuk-label--l'],
|
21
|
+
isPageHeading: 'true'
|
19
22
|
},
|
20
23
|
'dateOfBirth': dateComponent('dateOfBirth', {
|
21
24
|
mixin: 'input-date',
|
@@ -67,6 +70,8 @@ module.exports = {
|
|
67
70
|
]
|
68
71
|
},
|
69
72
|
email: {
|
73
|
+
isPageHeading: 'true',
|
74
|
+
labelClassName: ['govuk-label--l'],
|
70
75
|
validate: ['required', 'email']
|
71
76
|
},
|
72
77
|
phone: {
|
@@ -109,6 +114,7 @@ module.exports = {
|
|
109
114
|
// apply the other default formatters
|
110
115
|
formatter: ['trim', 'hyphens'],
|
111
116
|
isPageHeading: 'true',
|
117
|
+
labelClassName: ['govuk-label--l'],
|
112
118
|
// attributes here are passed to the field element
|
113
119
|
validate: ['required', { type: 'maxword', arguments: 10 }],
|
114
120
|
attributes: [{
|
@@ -0,0 +1,224 @@
|
|
1
|
+
{
|
2
|
+
"fields": {
|
3
|
+
"landing-page-radio": {
|
4
|
+
"legend": "Which form would you like to explore?",
|
5
|
+
"options": {
|
6
|
+
"basic-form": {
|
7
|
+
"label": "Basic form"
|
8
|
+
},
|
9
|
+
"complex-form": {
|
10
|
+
"label": "Complex form"
|
11
|
+
},
|
12
|
+
"build-your-own-form": {
|
13
|
+
"label": "Build your own form"
|
14
|
+
}
|
15
|
+
}
|
16
|
+
},
|
17
|
+
"name": {
|
18
|
+
"label": "Full name"
|
19
|
+
},
|
20
|
+
"dateOfBirth": {
|
21
|
+
"legend": "Date of birth",
|
22
|
+
"hint": "For example, 31 10 1990"
|
23
|
+
},
|
24
|
+
"building": {
|
25
|
+
"label": "Building and street"
|
26
|
+
},
|
27
|
+
"street": {
|
28
|
+
"label": "Address line 2"
|
29
|
+
},
|
30
|
+
"townOrCity": {
|
31
|
+
"label": "Town or city"
|
32
|
+
},
|
33
|
+
"postcode": {
|
34
|
+
"label": "Postcode"
|
35
|
+
},
|
36
|
+
"incomeTypes": {
|
37
|
+
"label": "Sources of income",
|
38
|
+
"legend": "Select the options where you receive income from",
|
39
|
+
"hint": "Select all options that apply to you.",
|
40
|
+
"options": {
|
41
|
+
"salary": {
|
42
|
+
"label": "Salary"
|
43
|
+
},
|
44
|
+
"universal_credit": {
|
45
|
+
"label": "Universal Credit"
|
46
|
+
},
|
47
|
+
"child_benefit": {
|
48
|
+
"label": "Child Benefit"
|
49
|
+
},
|
50
|
+
"housing_benefit": {
|
51
|
+
"label": "Housing Benefit"
|
52
|
+
},
|
53
|
+
"other": {
|
54
|
+
"label": "Other"
|
55
|
+
}
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"countryOfHearing": {
|
59
|
+
"label": "Country of hearing",
|
60
|
+
"options": {
|
61
|
+
"englandAndWales": {
|
62
|
+
"label": "England and Wales"
|
63
|
+
},
|
64
|
+
"scotland": {
|
65
|
+
"label": "Scotland"
|
66
|
+
},
|
67
|
+
"northernIreland": {
|
68
|
+
"label": "Northern Ireland"
|
69
|
+
}
|
70
|
+
}
|
71
|
+
},
|
72
|
+
"email": {
|
73
|
+
"label": "Email address"
|
74
|
+
},
|
75
|
+
"phone": {
|
76
|
+
"label": "Phone number",
|
77
|
+
"hint": "International phone numbers require the international dialling code, for example +33235066182"
|
78
|
+
},
|
79
|
+
"int-phone-number": {
|
80
|
+
"legend": "International phone number"
|
81
|
+
},
|
82
|
+
"complaintDetails": {
|
83
|
+
"label": "Complaint details"
|
84
|
+
},
|
85
|
+
"countrySelect": {
|
86
|
+
"label": "Select a country",
|
87
|
+
"hint": "Start to type the country name and options will appear"
|
88
|
+
},
|
89
|
+
"appealStages": {
|
90
|
+
"label": "Appeal stage",
|
91
|
+
"options": {
|
92
|
+
"null": "Select..."
|
93
|
+
}
|
94
|
+
}
|
95
|
+
},
|
96
|
+
"journey": {
|
97
|
+
"header": "HOF Bootstrap Sandbox Form"
|
98
|
+
},
|
99
|
+
"pages": {
|
100
|
+
"landing-page": {
|
101
|
+
"header": "Landing page",
|
102
|
+
"intro": "Choose one of the options below and press continue."
|
103
|
+
},
|
104
|
+
"build-your-own-form": {
|
105
|
+
"title": "Build your own form",
|
106
|
+
"subheader": "Access the build your own form guidance link"
|
107
|
+
},
|
108
|
+
"name": {
|
109
|
+
"header": "What is your full name?"
|
110
|
+
},
|
111
|
+
"dob": {
|
112
|
+
"header": "What is your date of birth?"
|
113
|
+
},
|
114
|
+
"address": {
|
115
|
+
"header": "What is your address in the UK?",
|
116
|
+
"intro": "If you have no fixed address, enter an address where we can contact you."
|
117
|
+
},
|
118
|
+
"checkboxes": {
|
119
|
+
"header": "Where does your money come from each month?"
|
120
|
+
},
|
121
|
+
"radio": {
|
122
|
+
"header": "What country was the appeal lodged?"
|
123
|
+
},
|
124
|
+
"country-select": {
|
125
|
+
"header": "What country is your address located?"
|
126
|
+
},
|
127
|
+
"email": {
|
128
|
+
"header": "Enter your email address"
|
129
|
+
},
|
130
|
+
"phone-number": {
|
131
|
+
"header": "Enter your phone number"
|
132
|
+
},
|
133
|
+
"text-input-area": {
|
134
|
+
"header": "What are the details of your complaint?",
|
135
|
+
"intro": "Briefly summarise your complaint. Include anything that can help our investigation."
|
136
|
+
},
|
137
|
+
"select": {
|
138
|
+
"header": "What is the appeal stage?",
|
139
|
+
"intro": "Choose an appeal stage from the drop down menu"
|
140
|
+
},
|
141
|
+
"confirm": {
|
142
|
+
"header": "Check your answers before submitting your application.",
|
143
|
+
"sections": {
|
144
|
+
"applicantsDetails": {
|
145
|
+
"header": "Applicant's details"
|
146
|
+
},
|
147
|
+
"address": {
|
148
|
+
"header": "Address"
|
149
|
+
},
|
150
|
+
"income": {
|
151
|
+
"header": "Income"
|
152
|
+
},
|
153
|
+
"appealDetails": {
|
154
|
+
"header": "Appeal details"
|
155
|
+
},
|
156
|
+
"countrySelect": {
|
157
|
+
"header": "Country of residence"
|
158
|
+
},
|
159
|
+
"contactDetails": {
|
160
|
+
"header": "Contact details"
|
161
|
+
},
|
162
|
+
"complaintDetails": {
|
163
|
+
"header": "Complaint details"
|
164
|
+
}
|
165
|
+
}
|
166
|
+
},
|
167
|
+
"confirmation": {
|
168
|
+
"title": "Application sent",
|
169
|
+
"alert": "Application sent",
|
170
|
+
"subheader": "What happens next",
|
171
|
+
"content": "We’ll contact you with the decision of your application or if we need more information from you."
|
172
|
+
}
|
173
|
+
},
|
174
|
+
"validation": {
|
175
|
+
"landing-page-radio": {
|
176
|
+
"required": "Select an option below and press continue"
|
177
|
+
},
|
178
|
+
"name": {
|
179
|
+
"default": "Enter your full name"
|
180
|
+
},
|
181
|
+
"dateOfBirth": {
|
182
|
+
"default": "Enter your date of birth in the correct format; for example, 31 10 1990",
|
183
|
+
"after": "Enter a date after 1 1 1900",
|
184
|
+
"before": "Enter a date that is in the past"
|
185
|
+
},
|
186
|
+
"building": {
|
187
|
+
"default": "Enter details of your building and street"
|
188
|
+
},
|
189
|
+
"townOrCity": {
|
190
|
+
"default": "Enter a town or city",
|
191
|
+
"regex": "Enter a town or city without including digits"
|
192
|
+
},
|
193
|
+
"postcode": {
|
194
|
+
"default": "Enter your postcode"
|
195
|
+
},
|
196
|
+
"incomeTypes": {
|
197
|
+
"default": "Select all options that apply to you."
|
198
|
+
},
|
199
|
+
"countryOfHearing": {
|
200
|
+
"default": "Select where the appeal hearing is to be held"
|
201
|
+
},
|
202
|
+
"countrySelect": {
|
203
|
+
"default": "Enter a valid country of residence",
|
204
|
+
"required": "Enter your country of residence"
|
205
|
+
},
|
206
|
+
"email": {
|
207
|
+
"default": "Enter your email address in the correct format"
|
208
|
+
},
|
209
|
+
"phone": {
|
210
|
+
"default": "Enter your phone number"
|
211
|
+
},
|
212
|
+
"int-phone-number": {
|
213
|
+
"required": "Enter an international phone number",
|
214
|
+
"internationalPhoneNumber": "Enter a valid international phone number"
|
215
|
+
},
|
216
|
+
"complaintDetails": {
|
217
|
+
"default": "Enter details about why you are making a complaint",
|
218
|
+
"maxlength": "Keep to the 5000 character limit"
|
219
|
+
},
|
220
|
+
"appealStages": {
|
221
|
+
"required": "Select an appeal stage from the list"
|
222
|
+
}
|
223
|
+
}
|
224
|
+
}
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"label": "Full name"
|
19
19
|
},
|
20
20
|
"dateOfBirth": {
|
21
|
-
"legend": "
|
21
|
+
"legend": "Date of birth",
|
22
22
|
"hint": "For example, 31 10 1990"
|
23
23
|
},
|
24
24
|
"building": {
|
@@ -29,8 +29,8 @@
|
|
29
29
|
},
|
30
30
|
"townOrCity": {
|
31
31
|
"label": "Town or city"
|
32
|
-
},
|
33
|
-
"postcode": {
|
32
|
+
},
|
33
|
+
"postcode": {
|
34
34
|
"label": "Postcode"
|
35
35
|
},
|
36
36
|
"incomeTypes" : {
|
@@ -66,8 +66,8 @@
|
|
66
66
|
},
|
67
67
|
"northernIreland": {
|
68
68
|
"label": "Northern Ireland"
|
69
|
-
}
|
70
|
-
}
|
69
|
+
}
|
70
|
+
}
|
71
71
|
},
|
72
72
|
"email" : {
|
73
73
|
"label": "Email address"
|
@@ -50,7 +50,7 @@
|
|
50
50
|
},
|
51
51
|
"confirmation": {
|
52
52
|
"title": "Application sent",
|
53
|
-
"alert": "Application sent",
|
53
|
+
"alert": "Application sent",
|
54
54
|
"subheader": "What happens next",
|
55
55
|
"content": "We’ll contact you with the decision of your application or if we need more information from you."
|
56
56
|
}
|
package/sandbox/config.js
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
/* eslint no-process-env: 0 */
|
4
4
|
module.exports = {
|
5
|
+
port: 8082,
|
5
6
|
email: {
|
6
7
|
caseworker: process.env.CASEWORKER_EMAIL || '',
|
7
8
|
from: process.env.FROM_ADDRESS || '',
|
@@ -12,6 +13,6 @@ module.exports = {
|
|
12
13
|
region: process.env.EMAIL_REGION || ''
|
13
14
|
},
|
14
15
|
hosts: {
|
15
|
-
acceptanceTests: process.env.ACCEPTANCE_HOST_NAME || `http://localhost:${process.env.PORT ||
|
16
|
+
acceptanceTests: process.env.ACCEPTANCE_HOST_NAME || `http://localhost:${process.env.PORT || 8082}`
|
16
17
|
}
|
17
18
|
};
|