hof 22.6.1 → 22.7.0-service-paused-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":38680,"argv":["/Users/rhodine.orleans-lindsay/.nvm/versions/node/v20.19.0/bin/node","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof","time":1744714202039,"ppid":38678,"coverageFilename":"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/.nyc_output/78671554-16e5-423c-952b-a3a7dbe123f7.json","externalId":"","uuid":"78671554-16e5-423c-952b-a3a7dbe123f7","files":["/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/apis/axios-settings.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/address-lookup/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/address-lookup/default-model.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/address-lookup/defaults.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/clear-session/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/combine-and-loop-fields/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/date/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/date/fields.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/email-service.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/emailer.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/smtp.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/ses.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/stub.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/debug.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/homeoffice-countries/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/component-defaults.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/notify/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/notify/notify.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/summary/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/rate-limits.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/rate-limiter.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/hof-defaults.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/session-timeout-warning/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/logger.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/base-controller.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/formatting/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation/validators.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation/email.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation-error.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/autofill/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/autofill/inputs.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/test-data/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/countries.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/helpers/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/reqres/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/sanitisation-rules.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/formatting/formatters.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/behaviour-session.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/behaviour-hooks.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/controller.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/render.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/helpers.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/govuk-template/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/govuk-template/build/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/govuk-template/build/config.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-partials/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-partials/translations/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/themes/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/themes/gov-uk/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/validation.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/cookies.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/errors.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/not-found.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/deep-translate.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/markdown.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/router.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/behaviours/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/behaviours/complete.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/util/constants.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/helpers.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/health.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/serve-static.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/ga-tag.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/deindex.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/sessions.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/settings.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/build/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/builder-defaults.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/compile.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/build.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/expand-dirs.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/aggregate.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/write-files.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/apis/index.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/apis/html-to-pdf-converter.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/model.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/back-links.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/util/helpers.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/check-complete.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/check-progress.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/check-session.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/csrf.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/fields.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/test/helpers/utilities.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/international-number.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/encryption.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/session.js","/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/session-model.js"]}
@@ -0,0 +1 @@
1
+ {"processes":{"78671554-16e5-423c-952b-a3a7dbe123f7":{"parent":null,"children":[]}},"files":{"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/apis/axios-settings.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/address-lookup/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/address-lookup/default-model.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/address-lookup/defaults.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/clear-session/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/combine-and-loop-fields/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/date/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/date/fields.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/email-service.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/emailer.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/smtp.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/ses.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/stub.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/emailer/transports/debug.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/homeoffice-countries/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/component-defaults.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/notify/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/notify/notify.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/summary/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/rate-limits.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/rate-limiter.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/hof-defaults.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/components/session-timeout-warning/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/logger.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/base-controller.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/formatting/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation/validators.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation/email.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/validation-error.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/autofill/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/autofill/inputs.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/test-data/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/countries.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/helpers/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/utilities/reqres/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/sanitisation-rules.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/formatting/formatters.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/behaviour-session.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/behaviour-hooks.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/controller/controller.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/country-select.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/template-mixins.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/render.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-mixins/mixins/helpers.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/govuk-template/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/govuk-template/build/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/govuk-template/build/config.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-partials/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/template-partials/translations/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/themes/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/themes/gov-uk/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/helpers.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/form-focus.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/validation.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/character-count.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/cookies.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/errors.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/not-found.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/middleware/deep-translate.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/markdown.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/router.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/behaviours/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/behaviours/complete.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/util/constants.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/helpers.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/health.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/serve-static.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/ga-tag.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/deindex.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/sessions.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/settings.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/build/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/config/builder-defaults.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/compile.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/build.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/expand-dirs.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/aggregate.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/transpiler/lib/write-files.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/apis/index.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/model/apis/html-to-pdf-converter.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/model.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/back-links.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/util/helpers.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/check-complete.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/check-progress.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/check-session.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/csrf.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/fields.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/test/helpers/utilities.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/international-number.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/lib/encryption.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/session.js":["78671554-16e5-423c-952b-a3a7dbe123f7"],"/Users/rhodine.orleans-lindsay/Documents/HO/HOF/hof/wizard/middleware/session-model.js":["78671554-16e5-423c-952b-a3a7dbe123f7"]},"externalIds":{}}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 2025-05-14, Version 22.7.0 (Stable), @Rhodine-orleans-lindsay
2
+ ### Added
3
+ - Service paused funtionality that allows for services to redirect to a 'Service Unavailable' when there is a need to pause a service.
4
+ - Includes service paused component
5
+ - default service paused html view
6
+ - Flag to set service paused config to true or false in order to run component
7
+ ### Security
8
+ - Updates patch and minor dependencies
9
+
1
10
  ## 2025-05-09, Version 22.6.0 (Stable), @vivekkumar-ho
2
11
  ### Changed
3
12
  - Support for passing `maxlengthAttribute` property for input-text field. The HTML maxlength attribute is applied when `maxlengthAttribute: true` and the `maxlength` validator are specified in the field config
@@ -9,5 +9,6 @@ module.exports = {
9
9
  homeOfficeCountries: require('./homeoffice-countries'),
10
10
  notify: require('./notify'),
11
11
  summary: require('./summary'),
12
- sessionTimeoutWarning: require('./session-timeout-warning')
12
+ sessionTimeoutWarning: require('./session-timeout-warning'),
13
+ servicePaused: require('./service-paused')
13
14
  };
@@ -0,0 +1,26 @@
1
+ # Service Paused Behaviour
2
+
3
+ ## What this does
4
+ Allows a service to be paused when required and then resumed. It ensures that anyone using the service that lands on any part of the form is diverted to a "Service Unavailable" page which will communicate to the user that the service is not available at this time.
5
+
6
+ ## Implementation
7
+ - Add the behaviour to the hof-settings.json file of the service
8
+ - Set the `SERVICE_PAUSED` env to `true`
9
+
10
+ ## Page Content Customisation
11
+ There is default text for this page. Default text can be overridden by setting the `message` and `answers-saved` properties in the pages.json of the service. Note that information relating to who to contact and alternatives to using the form is optional and so there is no default text for these unless the properties `contact` and `alternative` are set in pages.json:
12
+
13
+ ```json
14
+ "message": {
15
+ "message": "This service will be unavailble for a week."
16
+ },
17
+ "answers-saved": {
18
+ "message": "Your information has not been saved."
19
+ },
20
+ "contact": {
21
+ "message": "You can contact test@test.com for more information"
22
+ },
23
+ "alternative": {
24
+ "message": "You can access the www.test.com website instead"
25
+ },
26
+ ```
@@ -0,0 +1,48 @@
1
+ /**
2
+ *
3
+ * @fileOverview
4
+ * Provides custom behavior for rendering a service down template when a service needs to be temporarily paused. This includes
5
+ * - Redirecting the user to a 'service down' page
6
+ * - Setting custom content and titles on the service down page.
7
+ *
8
+ * @module servicePausedBehaviour
9
+ * @requires ../../config/hof-defaults
10
+ * @param {Class} superclass - The class to be extended.
11
+ * @returns {Class} - The extended class with service down handling functionality.
12
+ */
13
+
14
+ 'use strict';
15
+
16
+ const config = require('../../config/hof-defaults');
17
+ const logger = require('../../lib/logger')(config);
18
+
19
+ module.exports = superclass => class extends superclass {
20
+ getValues(req, res, callback) {
21
+ return super.getValues(req, res, (err, values) => {
22
+ if (err) {
23
+ logger.error(`Error getting values: ${err}`);
24
+ return callback(err, values);
25
+ }
26
+ if (config.servicePaused === true || config.servicePaused === 'true') {
27
+ logger.info(`Service is paused. Redirecting...`);
28
+ res.redirect('/service-paused');
29
+ }
30
+
31
+ return callback(null, values);
32
+ });
33
+ }
34
+ locals(req, res) {
35
+ // set default service unavailable message
36
+ const superLocals = super.locals(req, res);
37
+ if (config.servicePaused === true || config.servicePaused === 'true') {
38
+ superLocals.header = req.translate('pages.service-paused.header');
39
+ superLocals.title = req.translate('pages.service-paused.title');
40
+ superLocals.message = req.translate('pages.service-paused.message');
41
+ superLocals['answers-saved'] = req.translate('pages.service-paused.answers-saved');
42
+ superLocals.contact = req.translate('pages.service-paused.contact');
43
+ superLocals.alternative = req.translate('pages.service-paused.alternative');
44
+ return superLocals;
45
+ }
46
+ return superLocals;
47
+ }
48
+ };
@@ -51,7 +51,8 @@ const defaults = {
51
51
  pdfConverter: process.env.PDF_CONVERTER_URL
52
52
  },
53
53
  serveStatic: process.env.SERVE_STATIC_FILES !== 'false',
54
- sessionTimeOutWarning: process.env.SESSION_TIMEOUT_WARNING || 300
54
+ sessionTimeOutWarning: process.env.SESSION_TIMEOUT_WARNING || 300,
55
+ servicePaused: process.env.SERVICE_PAUSED || false
55
56
  };
56
57
 
57
58
  module.exports = Object.assign({}, defaults, rateLimits);
@@ -0,0 +1,102 @@
1
+
2
+ <!DOCTYPE html>
3
+ <!--[if lt IE 9]><html class="lte-ie8" lang="{{htmlLang}}"><![endif]-->
4
+ <!--[if gt IE 8]><!--><html lang="{{htmlLang}}" class="govuk-template"><!--<![endif]-->
5
+ <head>
6
+ <meta charset="utf-8" />
7
+ <title>{{$pageTitle}}{{/pageTitle}}</title>
8
+ {{$head}}{{/head}}
9
+
10
+ <link rel="shortcut icon" sizes="16x16 32x32 48x48" href="{{govukAssetPath}}images/favicon.ico" type="image/x-icon">
11
+ <link rel="mask-icon" href="{{govukAssetPath}}images/govuk-mask-icon.svg" color="#0b0c0c">
12
+ <link rel="apple-touch-icon" sizes="180x180" href="{{govukAssetPath}}images/govuk-apple-touch-icon-180x180.png">
13
+ <link rel="apple-touch-icon" sizes="167x167" href="{{govukAssetPath}}images/govuk-apple-touch-icon-167x167.png">
14
+ <link rel="apple-touch-icon" sizes="152x152" href="{{govukAssetPath}}images/govuk-apple-touch-icon-152x152.png">
15
+ <link rel="apple-touch-icon" href="{{govukAssetPath}}images/govuk-apple-touch-icon.png">
16
+
17
+
18
+ <meta name="theme-color" content="#0b0c0c" />
19
+
20
+ <meta name="viewport" content="width=device-width, initial-scale=1">
21
+
22
+
23
+ <meta property="og:image" content="{{govukAssetPath}}images/opengraph-image.png">
24
+ </head>
25
+
26
+ <body class="{{$bodyClasses}}{{/bodyClasses}} govuk-template__body js-enabled" >
27
+ <script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
28
+
29
+
30
+
31
+ <div id="global-cookie-message" class="gem-c-cookie-banner govuk-clearfix" data-module="cookie-banner" role="region" aria-label="cookie banner" data-nosnippet="">
32
+ {{$cookieMessage}}{{/cookieMessage}}
33
+ </div>
34
+
35
+ {{$bodyStart}}{{/bodyStart}}
36
+
37
+ <header role="banner" id="govuk-header" class="{{$headerClass}}{{/headerClass}}">
38
+ <div class="govuk-header__container govuk-width-container">
39
+
40
+ <div class="govuk-header__logo">
41
+ <a href="{{$homepageUrl}}https://www.gov.uk{{/homepageUrl}}" title="{{$logoLinkTitle}}Go to the GOV.UK homepage{{/logoLinkTitle}}" id="logo" class="govuk-header__link govuk-header__link--homepage" target="_blank" data-module="track-click" data-track-category="homeLinkClicked" data-track-action="homeHeader">
42
+ <span class="govuk-header__logotype">
43
+ <!--[if gt IE 8]><!-->
44
+ <svg aria-hidden="true" focusable="false" class="govuk-header__logotype-crown" xmlns="http://www.w3.org/2000/svg\" viewBox="0 0 32 30" height="30" width="32">
45
+ <path fill="currentColor" fill-rule="evenodd" d="M22.6 10.4c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4m-5.9 6.7c-.9.4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4m10.8-3.7c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s0 2-1 2.4m3.3 4.8c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4M17 4.7l2.3 1.2V2.5l-2.3.7-.2-.2.9-3h-3.4l.9 3-.2.2c-.1.1-2.3-.7-2.3-.7v3.4L15 4.7c.1.1.1.2.2.2l-1.3 4c-.1.2-.1.4-.1.6 0 1.1.8 2 1.9 2.2h.7c1-.2 1.9-1.1 1.9-2.1 0-.2 0-.4-.1-.6l-1.3-4c-.1-.2 0-.2.1-.3m-7.6 5.7c.9.4 2-.1 2.4-1 .4-.9-.1-2-1-2.4-.9-.4-2 .1-2.4 1s0 2 1 2.4m-5 3c.9.4 2-.1 2.4-1 .4-.9-.1-2-1-2.4-.9-.4-2 .1-2.4 1s.1 2 1 2.4m-3.2 4.8c.9.4 2-.1 2.4-1 .4-.9-.1-2-1-2.4-.9-.4-2 .1-2.4 1s0 2 1 2.4m14.8 11c4.4 0 8.6.3 12.3.8 1.1-4.5 2.4-7 3.7-8.8l-2.5-.9c.2 1.3.3 1.9 0 2.7-.4-.4-.8-1.1-1.1-2.3l-1.2 4c.7-.5 1.3-.8 2-.9-1.1 2.5-2.6 3.1-3.5 3-1.1-.2-1.7-1.2-1.5-2.1.3-1.2 1.5-1.5 2.1-.1 1.1-2.3-.8-3-2-2.3 1.9-1.9 2.1-3.5.6-5.6-2.1 1.6-2.1 3.2-1.2 5.5-1.2-1.4-3.2-.6-2.5 1.6.9-1.4 2.1-.5 1.9.8-.2 1.1-1.7 2.1-3.5 1.9-2.7-.2-2.9-2.1-2.9-3.6.7-.1 1.9.5 2.9 1.9l.4-4.3c-1.1 1.1-2.1 1.4-3.2 1.4.4-1.2 2.1-3 2.1-3h-5.4s1.7 1.9 2.1 3c-1.1 0-2.1-.2-3.2-1.4l.4 4.3c1-1.4 2.2-2 2.9-1.9-.1 1.5-.2 3.4-2.9 3.6-1.9.2-3.4-.8-3.5-1.9-.2-1.3 1-2.2 1.9-.8.7-2.3-1.2-3-2.5-1.6.9-2.2.9-3.9-1.2-5.5-1.5 2-1.3 3.7.6 5.6-1.2-.7-3.1 0-2 2.3.6-1.4 1.8-1.1 2.1.1.2.9-.3 1.9-1.5 2.1-.9.2-2.4-.5-3.5-3 .6 0 1.2.3 2 .9l-1.2-4c-.3 1.1-.7 1.9-1.1 2.3-.3-.8-.2-1.4 0-2.7l-2.9.9C1.3 23 2.6 25.5 3.7 30c3.7-.5 7.9-.8 12.3-.8\"></path>
46
+ </svg>
47
+ <!--<![endif]-->
48
+ <!--[if IE 8]>
49
+ <img src="{{govukAssetPath}}images/govuk-logotype-tudor-crown.png" class="govuk-header__logotype-crown-fallback-image" width="32" height="30" alt="">
50
+ <![endif]-->
51
+ </span>
52
+ <span class="govuk-header__logotype-text">
53
+ {{$globalHeaderText}}GOV.UK{{/globalHeaderText}}
54
+ </span>
55
+ </a>
56
+ </div>
57
+ {{$insideHeader}}{{/insideHeader}}
58
+
59
+ {{$propositionHeader}}{{/propositionHeader}}
60
+ </div>
61
+ </header>
62
+
63
+
64
+ {{$afterHeader}}{{/afterHeader}}
65
+
66
+
67
+ {{$main}}{{/main}}
68
+
69
+ <footer class="govuk-footer" id="footer" role="contentinfo">
70
+
71
+ <div class="govuk-width-container">
72
+ {{$footerTop}}{{/footerTop}}
73
+
74
+ <div class="govuk-footer__meta">
75
+ <div class="govuk-footer__meta-item govuk-footer__meta-item--grow">
76
+ <h2 class="govuk-visually-hidden">Support links</h2>
77
+ {{$footerSupportLinks}}{{/footerSupportLinks}}
78
+
79
+ <svg aria-hidden="true" focusable="false" class="govuk-footer__licence-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 483.2 195.7" height="17" width="41">
80
+ <path fill="currentColor" d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145"></path>
81
+ </svg>
82
+
83
+ <span class="govuk-footer__licence-description">{{$licenceMessage}}All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" id="open-government-licence" class="govuk-footer__link" target="_blank" rel="license">Open Government Licence v3.0</a>, except where otherwise stated{{/licenceMessage}}</span>
84
+ </div>
85
+
86
+ <div class="govuk-footer__meta-item">
87
+ <a class="govuk-footer__link govuk-footer__copyright-logo" id="copyright-logo" target="_blank" href="https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/">{{$crownCopyrightMessage}}© Crown copyright{{/crownCopyrightMessage}}</a>
88
+ </div>
89
+ </div>
90
+ </div>
91
+ </footer>
92
+
93
+ <div id="global-app-error" class="app-error hidden"></div>
94
+
95
+
96
+ {{$bodyEnd}}{{/bodyEnd}}
97
+
98
+
99
+ <script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>if (typeof window.GOVUK === 'undefined') document.body.className = document.body.className.replace('js-enabled', '');</script>
100
+
101
+ </body>
102
+ </html>
@@ -0,0 +1,8 @@
1
+ {
2
+ "service-paused": {
3
+ "title": "Sorry, the service is unavailable",
4
+ "header": "Sorry, the service is unavailable",
5
+ "message": "This service is temporarily unavailable",
6
+ "answers-saved": "Your answers have not been saved"
7
+ }
8
+ }
@@ -0,0 +1,24 @@
1
+ {{<layout}}
2
+ {{$journeyHeader}}
3
+ {{#t}}journey.header{{/t}}
4
+ {{/journeyHeader}}
5
+
6
+ {{$propositionHeader}}
7
+ {{> partials-navigation}}
8
+ {{/propositionHeader}}
9
+
10
+ {{$header}}
11
+ {{header}}
12
+ {{/header}}
13
+
14
+ {{$content}}
15
+ <p>{{message}}</p>
16
+ <p>{{answers-saved}}</p>
17
+ {{#contact}}
18
+ <p>{{contact}}</p>
19
+ {{/contact}}
20
+ {{#alternative}}
21
+ <p>{{alternative}}</p>
22
+ {{/alternative}}
23
+ {{/content}}
24
+ {{/layout}}
package/index.js CHANGED
@@ -231,6 +231,13 @@ function bootstrap(options) {
231
231
  // Set up routing so <YOUR-SITE-URL>/assets are served from /node_modules/govuk-frontend/govuk/assets
232
232
  app.use('/assets', express.static(path.join(__dirname, '/node_modules/govuk-frontend/govuk/assets')));
233
233
 
234
+ if (config.servicePaused === true || config.servicePaused === 'true') {
235
+ app.use('/service-paused', (req, res) => {
236
+ const locals = Object.assign({}, req.translate('pages.service-paused'));
237
+ res.render('service-paused', locals);
238
+ });
239
+ }
240
+
234
241
  if (config.getAccessibility === true) {
235
242
  deprecate(
236
243
  '`getAccessibility` option is deprecated and may be removed in future versions.',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "22.6.1",
4
+ "version": "22.7.0-service-paused-beta",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
package/sandbox/.env ADDED
@@ -0,0 +1 @@
1
+ SERVICE_DOWN=true
@@ -0,0 +1,239 @@
1
+ {
2
+ "exit": {
3
+ "header": "You have left this form",
4
+ "title": "You have left this form"
5
+ },
6
+ "fields": {
7
+ "landing-page-radio": {
8
+ "legend": "Which form would you like to explore?",
9
+ "hint": "Choose one of the options below and press continue.",
10
+ "options": {
11
+ "basic-form": {
12
+ "label": "Basic form"
13
+ },
14
+ "complex-form": {
15
+ "label": "Complex form"
16
+ },
17
+ "build-your-own-form": {
18
+ "label": "Build your own form"
19
+ }
20
+ }
21
+ },
22
+ "name": {
23
+ "label": "Full name"
24
+ },
25
+ "dateOfBirth": {
26
+ "legend": "What is your date of birth?",
27
+ "hint": "For example, 31 10 1990"
28
+ },
29
+ "building": {
30
+ "label": "Building and street"
31
+ },
32
+ "street": {
33
+ "label": "Address line 2"
34
+ },
35
+ "townOrCity": {
36
+ "label": "Town or city"
37
+ },
38
+ "postcode": {
39
+ "label": "Postcode"
40
+ },
41
+ "incomeTypes": {
42
+ "label": "Sources of income",
43
+ "legend": "Select the options where you receive income from",
44
+ "hint": "Select all options that apply to you.",
45
+ "options": {
46
+ "salary": {
47
+ "label": "Salary"
48
+ },
49
+ "universal_credit": {
50
+ "label": "Universal Credit"
51
+ },
52
+ "child_benefit": {
53
+ "label": "Child Benefit"
54
+ },
55
+ "housing_benefit": {
56
+ "label": "Housing Benefit"
57
+ },
58
+ "other": {
59
+ "label": "Other"
60
+ }
61
+ }
62
+ },
63
+ "countryOfHearing": {
64
+ "legend": "What country was the appeal lodged?",
65
+ "options": {
66
+ "englandAndWales": {
67
+ "label": "England and Wales"
68
+ },
69
+ "scotland": {
70
+ "label": "Scotland"
71
+ },
72
+ "northernIreland": {
73
+ "label": "Northern Ireland"
74
+ }
75
+ }
76
+ },
77
+ "email": {
78
+ "label": "Email address"
79
+ },
80
+ "phone": {
81
+ "label": "Phone number",
82
+ "hint": "International phone numbers require the international dialling code, for example +33235066182"
83
+ },
84
+ "int-phone-number": {
85
+ "legend": "International phone number"
86
+ },
87
+ "complaintDetails": {
88
+ "label": "Complaint details",
89
+ "hint": "Briefly summarise your complaint. Include anything that can help our investigation."
90
+ },
91
+ "whatHappened": {
92
+ "label": "What happened",
93
+ "hint": "Briefly summarise what happened."
94
+ },
95
+ "countrySelect": {
96
+ "label": "Which country are you based in?",
97
+ "hint": "Start to type the country name and options will appear"
98
+ },
99
+ "appealStages": {
100
+ "label": "Appeal stage",
101
+ "hint": "Choose an appeal stage from the drop down menu",
102
+ "options": {
103
+ "null": "Select..."
104
+ }
105
+ }
106
+ },
107
+ "journey": {
108
+ "header": "HOF Bootstrap Sandbox Form",
109
+ "confirmation": {
110
+ "details": "Your reference number <br><strong>HDJ2123F</strong>"
111
+ }
112
+ },
113
+ "pages": {
114
+ "landing-page": {
115
+ "header": "Landing page"
116
+ },
117
+ "build-your-own-form": {
118
+ "title": "Build your own form",
119
+ "subheader": "Access the build your own form guidance link"
120
+ },
121
+ "address": {
122
+ "header": "What is your address in the UK?",
123
+ "intro": "If you have no fixed address, enter an address where we can contact you."
124
+ },
125
+ "name": {
126
+ "header": "What is your full name?"
127
+ },
128
+ "email": {
129
+ "header": "Enter your email address"
130
+ },
131
+ "phone-number": {
132
+ "header": "Enter your phone number"
133
+ },
134
+ "confirm": {
135
+ "header": "Check your answers before submitting your application.",
136
+ "sections": {
137
+ "applicantsDetails": {
138
+ "header": "Applicant's details"
139
+ },
140
+ "address": {
141
+ "header": "Address"
142
+ },
143
+ "income": {
144
+ "header": "Income"
145
+ },
146
+ "appealDetails": {
147
+ "header": "Appeal details"
148
+ },
149
+ "countrySelect": {
150
+ "header": "Country of residence"
151
+ },
152
+ "contactDetails": {
153
+ "header": "Contact details"
154
+ },
155
+ "complaintDetails": {
156
+ "header": "Complaint details"
157
+ },
158
+ "whatHappened": {
159
+ "header": "What happened"
160
+ }
161
+ }
162
+ },
163
+ "confirmation": {
164
+ "title": "Application sent",
165
+ "alert": "Application sent",
166
+ "subheader": "What happens next",
167
+ "content": "We’ll contact you with the decision of your application or if we need more information from you."
168
+ },
169
+ "exit": {
170
+ "message": "We have cleared your information to keep it secure. Your information has not been saved."
171
+ },
172
+ "session-timeout-warning": {
173
+ "dialog-title": "{{^showSaveAndExit}}Your application will close soon{{/showSaveAndExit}}{{#showSaveAndExit}}You will be signed out soon{{/showSaveAndExit}}",
174
+ "dialog-text": "{{^showSaveAndExit}}If that happens, your progress will not be saved.{{/showSaveAndExit}}{{#showSaveAndExit}}Any answers you have saved will not be affected, but your progress on this page will not be saved.{{/showSaveAndExit}}",
175
+ "timeout-continue-button": "{{^showSaveAndExit}}Stay on this page{{/showSaveAndExit}}{{#showSaveAndExit}}Stay signed in{{/showSaveAndExit}}",
176
+ "dialog-exit-link": "{{^showSaveAndExit}}Exit this form{{/showSaveAndExit}}{{#showSaveAndExit}}Sign out{{/showSaveAndExit}}"
177
+ },
178
+ "save-and-exit": {
179
+ "header": "You have been signed out",
180
+ "paragraph-1": "Your form doesn't appear to have been worked on for 30 minutes so we closed it for security.",
181
+ "paragraph-2": "Any answers you saved have not been affected.",
182
+ "paragraph-3": "You can sign back in to your application at any time by returning to the <a href='/' class='govuk-link'>start page</a>."
183
+ }
184
+ },
185
+ "validation": {
186
+ "landing-page-radio": {
187
+ "required": "Select an option below and press continue"
188
+ },
189
+ "name": {
190
+ "default": "Enter your full name"
191
+ },
192
+ "dateOfBirth": {
193
+ "default": "Enter your date of birth in the correct format; for example, 31 10 1990",
194
+ "after": "Enter a date after 1 1 1900",
195
+ "before": "Enter a date that is in the past"
196
+ },
197
+ "building": {
198
+ "default": "Enter details of your building and street"
199
+ },
200
+ "townOrCity": {
201
+ "default": "Enter a town or city",
202
+ "regex": "Enter a town or city without including digits"
203
+ },
204
+ "postcode": {
205
+ "default": "Enter your postcode"
206
+ },
207
+ "incomeTypes": {
208
+ "default": "Select all options that apply to you."
209
+ },
210
+ "countryOfHearing": {
211
+ "default": "Select where the appeal hearing is to be held"
212
+ },
213
+ "countrySelect": {
214
+ "default": "Enter a valid country of residence",
215
+ "required": "Enter your country of residence"
216
+ },
217
+ "email": {
218
+ "default": "Enter your email address in the correct format"
219
+ },
220
+ "phone": {
221
+ "default": "Enter your phone number"
222
+ },
223
+ "int-phone-number": {
224
+ "required": "Enter an international phone number",
225
+ "internationalPhoneNumber": "Enter a valid international phone number"
226
+ },
227
+ "complaintDetails": {
228
+ "default": "Enter details about why you are making a complaint",
229
+ "maxlength": "Keep to the {{maxlength}} character limit"
230
+ },
231
+ "whatHappened": {
232
+ "default": "Enter details about what happened",
233
+ "maxword": "Keep to the {{maxword}} word limit"
234
+ },
235
+ "appealStages": {
236
+ "required": "Select an appeal stage from the list"
237
+ }
238
+ }
239
+ }