hof 20.2.28 → 20.2.29

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":74231,"argv":["/usr/local/bin/node","/Users/mohameduwais/UKHomeOffice/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/mohameduwais/UKHomeOffice/hof","time":1698674578874,"ppid":74228,"coverageFilename":"/Users/mohameduwais/UKHomeOffice/hof/.nyc_output/3236df45-44d7-4750-aaa8-804e8c80bf33.json","externalId":"","uuid":"3236df45-44d7-4750-aaa8-804e8c80bf33","files":["/Users/mohameduwais/UKHomeOffice/hof/model/index.js","/Users/mohameduwais/UKHomeOffice/hof/components/index.js","/Users/mohameduwais/UKHomeOffice/hof/components/address-lookup/index.js","/Users/mohameduwais/UKHomeOffice/hof/components/address-lookup/default-model.js","/Users/mohameduwais/UKHomeOffice/hof/components/address-lookup/defaults.js","/Users/mohameduwais/UKHomeOffice/hof/components/clear-session/index.js","/Users/mohameduwais/UKHomeOffice/hof/components/combine-and-loop-fields/index.js","/Users/mohameduwais/UKHomeOffice/hof/components/date/index.js","/Users/mohameduwais/UKHomeOffice/hof/components/date/fields.js","/Users/mohameduwais/UKHomeOffice/hof/components/emailer/index.js","/Users/mohameduwais/UKHomeOffice/hof/components/emailer/email-service.js","/Users/mohameduwais/UKHomeOffice/hof/components/emailer/emailer.js","/Users/mohameduwais/UKHomeOffice/hof/components/emailer/transports/index.js","/Users/mohameduwais/UKHomeOffice/hof/components/emailer/transports/smtp.js","/Users/mohameduwais/UKHomeOffice/hof/components/emailer/transports/ses.js","/Users/mohameduwais/UKHomeOffice/hof/components/emailer/transports/stub.js","/Users/mohameduwais/UKHomeOffice/hof/components/emailer/transports/debug.js","/Users/mohameduwais/UKHomeOffice/hof/components/homeoffice-countries/index.js","/Users/mohameduwais/UKHomeOffice/hof/config/component-defaults.js","/Users/mohameduwais/UKHomeOffice/hof/components/notify/index.js","/Users/mohameduwais/UKHomeOffice/hof/components/notify/notify.js"]}
@@ -1 +1 @@
1
- {"processes":{"846243c6-ebe3-4c75-9b7a-aa3bbc684b87":{"parent":null,"children":[]}},"files":{"/Users/chisomoguibe/Projects/hof/model/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/default-model.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/defaults.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/clear-session/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/combine-and-loop-fields/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/date/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/date/fields.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/emailer/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/emailer/email-service.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/emailer/emailer.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/smtp.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/ses.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/stub.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/debug.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/homeoffice-countries/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/config/component-defaults.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/notify/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/notify/notify.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/components/summary/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/config/rate-limits.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/middleware/rate-limiter.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/config/hof-defaults.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/controller/base-controller.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/controller/formatting/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/controller/validation/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/controller/validation/validators.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/controller/validation/email.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/controller/validation-error.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/utilities/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/utilities/autofill/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/utilities/autofill/inputs.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/utilities/test-data/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/utilities/countries.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/utilities/helpers/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/utilities/reqres/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/config/sanitisation-rules.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/controller/formatting/formatters.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/controller/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/controller/behaviour-session.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/controller/behaviour-hooks.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/controller/controller.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/country-select.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/template-mixins.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/render.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/helpers.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/config.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/template-partials/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/template-partials/translations/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/themes/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/themes/gov-uk/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/helpers.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/form-focus.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/validation.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/character-count.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/middleware/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/middleware/cookies.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/middleware/errors.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/middleware/not-found.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/middleware/deep-translate.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/lib/markdown.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/lib/router.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/behaviours/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/behaviours/complete.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/util/constants.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/lib/helpers.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/lib/health.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/lib/serve-static.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/lib/ga-tag.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/lib/sessions.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/lib/settings.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/lib/logger.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/build/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/config/builder-defaults.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/transpiler/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/compile.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/build.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/expand-dirs.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/aggregate.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/write-files.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/model/apis/index.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/model/apis/html-to-pdf-converter.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/model.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/back-links.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/util/helpers.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-complete.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-progress.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-session.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/csrf.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/fields.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/sandbox/test/helpers/utilities.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/international-number.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/lib/encryption.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/session.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/session-model.js":["846243c6-ebe3-4c75-9b7a-aa3bbc684b87"]},"externalIds":{}}
1
+ {"processes":{"3236df45-44d7-4750-aaa8-804e8c80bf33":{"parent":null,"children":[]}},"files":{"/Users/mohameduwais/UKHomeOffice/hof/model/index.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/index.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/address-lookup/index.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/address-lookup/default-model.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/address-lookup/defaults.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/clear-session/index.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/combine-and-loop-fields/index.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/date/index.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/date/fields.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/emailer/index.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/emailer/email-service.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/emailer/emailer.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/emailer/transports/index.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/emailer/transports/smtp.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/emailer/transports/ses.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/emailer/transports/stub.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/emailer/transports/debug.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/homeoffice-countries/index.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/config/component-defaults.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/notify/index.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"],"/Users/mohameduwais/UKHomeOffice/hof/components/notify/notify.js":["3236df45-44d7-4750-aaa8-804e8c80bf33"]},"externalIds":{}}
@@ -22,7 +22,6 @@ const defaults = {
22
22
  env: process.env.NODE_ENV || 'development',
23
23
  gaTagId: process.env.GA_TAG || 'Test-GA-Tag',
24
24
  ga4TagId: process.env.GA_4_TAG,
25
- gtmTagId: process.env.GTM_TAG || false,
26
25
  gaCrossDomainTrackingTagId: process.env.GDS_CROSS_DOMAIN_GA_TAG,
27
26
  loglevel: process.env.LOG_LEVEL || 'info',
28
27
  ignoreMiddlewareLogs: ['/healthz'],
@@ -5,38 +5,39 @@
5
5
  <head>
6
6
  <meta charset="utf-8" />
7
7
  <title>{{ pageTitle }}</title>
8
- {{{ head }}}
9
8
 
10
9
  <link rel="shortcut icon" sizes="16x16 32x32 48x48" href="{{assetPath}}images/favicon.ico" type="image/x-icon">
11
- <link rel="mask-icon" href="{{assetPath}}images/govuk-mask-icon.svg" color="#0b0c0c">
10
+ <link rel="mask-icon" href="{{assetPath}}images/govuk-mask-icon.svg" color="#0b0c0c">
12
11
  <link rel="apple-touch-icon" sizes="180x180" href="{{assetPath}}images/govuk-apple-touch-icon-180x180.png">
13
12
  <link rel="apple-touch-icon" sizes="167x167" href="{{assetPath}}images/govuk-apple-touch-icon-167x167.png">
14
13
  <link rel="apple-touch-icon" sizes="152x152" href="{{assetPath}}images/govuk-apple-touch-icon-152x152.png">
15
14
  <link rel="apple-touch-icon" href="{{assetPath}}images/govuk-apple-touch-icon.png">
16
-
17
-
15
+
16
+
18
17
  <meta name="theme-color" content="#0b0c0c" />
19
18
 
20
19
  <meta name="viewport" content="width=device-width, initial-scale=1">
21
20
 
22
-
21
+ {{{ head }}}
22
+
23
+
23
24
  <meta property="og:image" content="{{assetPath}}images/opengraph-image.png">
24
25
  </head>
25
26
 
26
27
  <body class="{{ bodyClasses }} govuk-template__body js-enabled" >
27
28
  <script>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
28
29
 
29
-
30
+
30
31
 
31
32
  <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
33
  {{{ cookieMessage }}}
33
34
  </div>
34
-
35
- {{{ bodyStart }}}
36
-
35
+
36
+ {{{ bodyStart }}}
37
+
37
38
  <header role="banner" id="govuk-header" class="{{{ headerClass }}}">
38
39
  <div class="govuk-header__container govuk-width-container">
39
-
40
+
40
41
  <div class="govuk-header__logo">
41
42
  <a href="{{{ homepageUrl }}}" title="{{ 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
43
  <span class="govuk-header__logotype">
@@ -56,11 +57,11 @@
56
57
  </a>
57
58
  </div>
58
59
  {{{ insideHeader }}}
59
-
60
+
60
61
  {{{ propositionHeader }}}
61
62
  </div>
62
63
  </header>
63
-
64
+
64
65
 
65
66
  {{{ afterHeader }}}
66
67
 
@@ -80,7 +81,7 @@
80
81
  <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">
81
82
  <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>
82
83
  </svg>
83
-
84
+
84
85
  <span class="govuk-footer__licence-description">{{{ licenceMessage }}}</span>
85
86
  </div>
86
87
 
@@ -92,12 +93,12 @@
92
93
  </footer>
93
94
 
94
95
  <div id="global-app-error" class="app-error hidden"></div>
95
-
96
+
96
97
 
97
98
  {{{ bodyEnd }}}
98
-
99
-
99
+
100
+
100
101
  <script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>if (typeof window.GOVUK === 'undefined') document.body.className = document.body.className.replace('js-enabled', '');</script>
101
-
102
+
102
103
  </body>
103
104
  </html>
@@ -18,10 +18,10 @@
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
20
  {{#isMaxlengthOrMaxword}}
21
- aria-describedby="{{id}}-info"
21
+ aria-describedby="{{id}}-hint {{id}}-info"
22
22
  {{/isMaxlengthOrMaxword}}
23
- {{#attributes}}
24
- {{attribute}}="{{value}}"
23
+ {{#attributes}}
24
+ {{attribute}}="{{value}}"
25
25
  {{/attributes}}
26
26
  {{^error}}{{#hintId}}{{#maxlength}} aria-describedby="{{id}}-maxlength-hint {{hintId}}"{{/maxlength}}{{/hintId}}{{/error}}
27
27
  {{^error}}{{#hintId}}{{^maxlength}} aria-describedby="{{hintId}}"{{/maxlength}}{{/hintId}}{{/error}}
@@ -34,6 +34,7 @@
34
34
  ga('govuk_shared.send', 'pageview')
35
35
  {{/gaCrossDomainTrackingTagId}}
36
36
  }
37
+
37
38
  </script>
38
39
  {{/gaTagId}}
39
40
 
@@ -1,28 +1,2 @@
1
- {{#gtmTagId}}
2
- {{#cookiesAccepted}}
3
- <!-- Google Tag Manager Data Layer for ETA -->
4
- <script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>
5
- var dataLayer = window.dataLayer || [];
6
- dataLayer.push({
7
- 'event': 'pageLoad',
8
- 'pageName': 'ETA | Customer Contact Webform | {{gtm-page}}',
9
- 'applicationType': 'ETA | Customer Contact',
10
- 'environmentType': '{{environmentType}}'
11
- });
12
- </script>
13
- <!-- End Google Tag Manager Data Layer for ETA -->
14
-
15
- <!-- Google Tag Manager for ETA -->
16
- <script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>
17
- (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
18
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
19
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
20
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
21
- })(window,document,'script','dataLayer','{{gtmTagId}}');
22
- </script>
23
- <!-- End Google Tag Manager for ETA -->
24
- {{/cookiesAccepted}}
25
- {{/gtmTagId}}
26
-
27
1
  <meta name="format-detection" content="telephone=no">
28
2
  <link rel="stylesheet" href="{{assetPath}}/css/app.css">
package/lib/ga-tag.js CHANGED
@@ -2,16 +2,6 @@
2
2
 
3
3
  const _ = require('lodash');
4
4
 
5
- const convertToGTMPage = text => {
6
- // Remove leading and trailing slashes
7
- let str = text.replace(/^\/|\/$/g, '');
8
- // Replace hyphens with spaces and capitalize each word
9
- str = str.replace(/-+/g, ' ').replace(/(^|\s)\S/g, function (match) {
10
- return match.toUpperCase();
11
- });
12
- return str;
13
- };
14
-
15
5
  const pageView = (path, pageMap) => pageMap.get(path) || path;
16
6
 
17
7
  const createUris = routes => {
@@ -52,8 +42,6 @@ const setupPageMap = routes => {
52
42
  module.exports = (app, config) => {
53
43
  const gaTagId = config.gaTagId;
54
44
  const ga4TagId = config.ga4TagId;
55
- const gtmTagId = config.gtmTagId;
56
- const environmentType = config.environmentType ? config.environmentType : 'dev';
57
45
  const gaCrossDomainTrackingTagId = config.gaCrossDomainTrackingTagId;
58
46
  const routes = config.routes;
59
47
 
@@ -61,16 +49,12 @@ module.exports = (app, config) => {
61
49
  const pageMap = setupPageMap(routes);
62
50
 
63
51
  app.use((req, res, next) => {
64
- const page = pageView(req.path, pageMap);
65
52
  res.locals.gaAllowDebug = config.env === 'development';
66
53
  res.locals.gaTagId = gaTagId;
67
54
  res.locals.ga4TagId = ga4TagId;
68
- res.locals.gtmTagId = gtmTagId;
69
- res.locals.environmentType = environmentType;
70
55
  res.locals.gaCrossDomainTrackingTagId = gaCrossDomainTrackingTagId;
71
56
  res.locals['ga-id'] = gaTagId;
72
- res.locals['ga-page'] = page;
73
- res.locals['gtm-page'] = convertToGTMPage(page);
57
+ res.locals['ga-page'] = pageView(req.path, pageMap);
74
58
  next();
75
59
  });
76
60
  }
@@ -22,8 +22,6 @@ module.exports = options => {
22
22
  const reqIsCookieCheckRedirect = req.query[paramName] !== undefined;
23
23
 
24
24
  if (reqIncludesCookies || isHealthcheckUrl(req.path, healthcheckUrls)) {
25
- const prefs = 'cookie_preferences' in req.cookies ? JSON.parse(req.cookies.cookie_preferences) : {};
26
- res.locals.cookiesAccepted = Boolean(prefs.usage);
27
25
  next();
28
26
  } else if (req.cookies === undefined || (!Object.keys(req.cookies).length && reqIsCookieCheckRedirect)) {
29
27
  const err = new Error('Cookies required');
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.28",
4
+ "version": "20.2.29",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",