hof 21.0.0-instrumentation-beta.0 → 21.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/automate-publish.yml +1 -1
- package/.github/workflows/automate-tag.yml +4 -4
- package/.nyc_output/39365c14-40b7-4634-b733-940b72a11984.json +1 -0
- package/.nyc_output/processinfo/39365c14-40b7-4634-b733-940b72a11984.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +21 -0
- package/README.md +340 -256
- package/build/tasks/sass/index.js +3 -1
- package/build/tasks/watch/index.js +1 -1
- package/codeReviewChecklist.md +22 -0
- package/components/combine-and-loop-fields/Readme.md +42 -0
- package/components/combine-and-loop-fields/index.js +156 -0
- package/components/date/index.js +3 -1
- package/components/date/templates/date.html +15 -12
- package/components/homeoffice-countries/index.js +22 -0
- package/components/index.js +2 -0
- package/components/notify/notify.js +2 -2
- package/components/summary/index.js +3 -2
- package/config/builder-defaults.js +3 -1
- package/config/component-defaults.js +13 -0
- package/config/hof-defaults.js +8 -0
- package/controller/controller.js +57 -1
- package/controller/formatting/formatters.js +12 -0
- package/controller/validation/index.js +2 -1
- package/controller/validation/validators.js +4 -0
- package/frontend/govuk-template/build/config.js +2 -2
- package/frontend/govuk-template/build/govuk_template.html +102 -0
- package/frontend/govuk-template/build/index.js +2 -2
- package/frontend/govuk-template/govuk_template_generated.html +102 -0
- package/frontend/govuk-template/index.js +4 -4
- package/frontend/template-mixins/mixins/template-mixins.js +40 -11
- package/frontend/template-mixins/partials/forms/checkbox-group.html +47 -0
- package/frontend/template-mixins/partials/forms/checkbox.html +9 -4
- package/frontend/template-mixins/partials/forms/input-submit.html +1 -1
- package/frontend/template-mixins/partials/forms/input-text-date.html +37 -0
- package/frontend/template-mixins/partials/forms/input-text-group.html +15 -10
- package/frontend/template-mixins/partials/forms/option-group.html +42 -26
- package/frontend/template-mixins/partials/forms/select.html +10 -5
- package/frontend/template-mixins/partials/forms/textarea-group.html +37 -23
- package/frontend/template-mixins/partials/mixins/panel.html +3 -4
- package/frontend/template-partials/views/accessibility.html +4 -4
- package/frontend/template-partials/views/cookies.html +1 -1
- package/frontend/template-partials/views/layout.html +24 -17
- package/frontend/template-partials/views/partials/back.html +1 -1
- package/frontend/template-partials/views/partials/bullet-list.html +1 -1
- package/frontend/template-partials/views/partials/confirmation-alert.html +4 -3
- package/frontend/template-partials/views/partials/continue.html +1 -1
- package/frontend/template-partials/views/partials/cookie-banner.html +27 -24
- package/frontend/template-partials/views/partials/cookie-settings-radio.html +6 -6
- package/frontend/template-partials/views/partials/external-link.html +1 -1
- package/frontend/template-partials/views/partials/form.html +2 -1
- package/frontend/template-partials/views/partials/gatag.html +0 -1
- package/frontend/template-partials/views/partials/head.html +23 -0
- package/frontend/template-partials/views/partials/maincontent-left.html +4 -4
- package/frontend/template-partials/views/partials/navigation.html +7 -6
- package/frontend/template-partials/views/partials/session-cookies-table.html +6 -6
- package/frontend/template-partials/views/partials/summary-table-row.html +2 -2
- package/frontend/template-partials/views/partials/table.html +7 -7
- package/frontend/template-partials/views/partials/validation-list.html +2 -2
- package/frontend/template-partials/views/partials/validation-summary.html +14 -13
- package/frontend/template-partials/views/partials/warn.html +7 -0
- package/frontend/template-partials/views/session-timeout.html +3 -2
- package/frontend/themes/gov-uk/client-js/cookieSettings.js +1 -1
- package/frontend/themes/gov-uk/client-js/govuk-cookies.js +121 -0
- package/frontend/themes/gov-uk/client-js/index.js +6 -1
- package/frontend/themes/gov-uk/client-js/skip-to-main.js +19 -0
- package/frontend/themes/gov-uk/styles/_cookie-banner.scss +51 -1
- package/frontend/themes/gov-uk/styles/govuk.scss +4 -0
- package/frontend/themes/gov-uk/styles/modules/_validation.scss +5 -5
- package/frontend/toolkit/assets/javascript/character-count.js +4 -4
- package/frontend/toolkit/assets/javascript/progressive-reveal.js +3 -1
- package/frontend/toolkit/assets/javascript/validation.js +5 -1
- package/frontend/toolkit/assets/stylesheets/modules/_validation.scss +3 -3
- package/index.js +15 -2
- package/lib/ga-tag.js +33 -7
- package/lib/settings.js +18 -2
- package/middleware/cookies.js +2 -0
- package/middleware/errors.js +2 -3
- package/middleware/not-found.js +0 -3
- package/middleware/rate-limiter.js +1 -0
- package/model/apis/axios-settings.js +21 -0
- package/model/apis/html-to-pdf-converter.js +10 -8
- package/model/index.js +102 -87
- package/package.json +18 -17
- package/pull_request.md +16 -0
- package/sandbox/README.md +3 -3
- package/sandbox/apps/sandbox/fields.js +33 -11
- package/sandbox/apps/sandbox/index.js +4 -0
- package/sandbox/apps/sandbox/sections/summary-data-sections.js +3 -0
- package/sandbox/apps/sandbox/translations/en/default.json +220 -0
- package/sandbox/apps/sandbox/translations/src/en/fields.json +11 -4
- package/sandbox/apps/sandbox/translations/src/en/journey.json +4 -1
- package/sandbox/apps/sandbox/translations/src/en/pages.json +7 -25
- package/sandbox/apps/sandbox/translations/src/en/validation.json +5 -1
- package/sandbox/assets/js/index.js +1 -1
- package/sandbox/assets/scss/app.scss +16 -16
- package/sandbox/package.json +7 -2
- package/sandbox/public/css/app.css +9632 -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 +46721 -0
- package/sandbox/server.js +2 -1
- package/sandbox/yarn.lock +249 -2
- package/wizard/index.js +0 -13
- package/wizard/middleware/check-progress.js +36 -1
- package/.nyc_output/4d5a4574-78fc-4fcb-9412-3658f6ce33ff.json +0 -1
- package/.nyc_output/processinfo/4d5a4574-78fc-4fcb-9412-3658f6ce33ff.json +0 -1
- package/frontend/govuk-template/govuk_template.html +0 -109
- package/frontend/themes/gov-uk/views/partials/form.html +0 -9
- package/frontend/themes/gov-uk/views/partials/forms/option-group.html +0 -28
- package/frontend/themes/gov-uk/views/partials/mixins/panel.html +0 -3
- package/frontend/themes/gov-uk/views/partials/validation-summary.html +0 -24
- package/middleware/monitor.js +0 -20
- package/sandbox/apps/sandbox/views/confirmation.html +0 -15
@@ -1 +0,0 @@
|
|
1
|
-
{"parent":null,"pid":46392,"argv":["/usr/local/bin/node","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/mohameduwais/UKHomeOffice/instrumentation/hof","time":1661337293068,"ppid":46390,"coverageFilename":"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/.nyc_output/4d5a4574-78fc-4fcb-9412-3658f6ce33ff.json","externalId":"","uuid":"4d5a4574-78fc-4fcb-9412-3658f6ce33ff","files":["/Users/mohameduwais/UKHomeOffice/instrumentation/hof/model/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/address-lookup/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/address-lookup/default-model.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/address-lookup/defaults.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/clear-session/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/date/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/date/fields.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/email-service.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/emailer.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/smtp.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/ses.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/stub.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/debug.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/notify/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/notify/notify.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/summary/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/config/rate-limits.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/rate-limiter.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/config/hof-defaults.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/base-controller.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/formatting/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/validation/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/validation/validators.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/validation/email.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/validation-error.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/autofill/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/autofill/inputs.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/test-data/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/countries.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/helpers/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/reqres/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/config/sanitisation-rules.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/formatting/formatters.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/behaviour-session.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/behaviour-hooks.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/controller.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-mixins/mixins/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-mixins/mixins/render.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-mixins/mixins/helpers.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/govuk-template/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/govuk-template/build/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/govuk-template/build/config.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-partials/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-partials/translations/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/themes/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/themes/gov-uk/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/validation.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/cookies.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/errors.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/monitor.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/not-found.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/deep-translate.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/markdown.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/router.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/behaviours/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/behaviours/complete.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/util/constants.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/helpers.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/health.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/serve-static.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/ga-tag.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/sessions.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/settings.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/logger.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/build/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/config/builder-defaults.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/compile.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/build.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/expand-dirs.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/aggregate.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/write-files.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/model/apis/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/model/apis/html-to-pdf-converter.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/model.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/back-links.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/util/helpers.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/check-complete.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/check-progress.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/check-session.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/csrf.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/fields.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/test/helpers/utilities.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/behaviours/international-number.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/encryption.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/session.js"]}
|
@@ -1,109 +0,0 @@
|
|
1
|
-
|
2
|
-
<!DOCTYPE html>
|
3
|
-
<!--[if lt IE 9]><html class="lte-ie8" lang="{{htmlLang}}"><![endif]-->
|
4
|
-
<!--[if gt IE 8]><!--><html lang="{{htmlLang}}"><!--<![endif]-->
|
5
|
-
<head>
|
6
|
-
<meta charset="utf-8" />
|
7
|
-
<title>{{$pageTitle}}{{/pageTitle}}</title>
|
8
|
-
|
9
|
-
<!--[if gt IE 8]><!--><link rel="stylesheet" media="screen" href="{{govukAssetPath}}stylesheets/govuk-template.css?0.26.0"/><!--<![endif]-->
|
10
|
-
<!--[if IE 6]><link rel="stylesheet" media="screen" href="{{govukAssetPath}}stylesheets/govuk-template-ie6.css?0.26.0"/><![endif]-->
|
11
|
-
<!--[if IE 7]><link rel="stylesheet" media="screen" href="{{govukAssetPath}}stylesheets/govuk-template-ie7.css?0.26.0"/><![endif]-->
|
12
|
-
<!--[if IE 8]><link rel="stylesheet" media="screen" href="{{govukAssetPath}}stylesheets/govuk-template-ie8.css?0.26.0"/><![endif]-->
|
13
|
-
<link rel="stylesheet" media="print" href="{{govukAssetPath}}stylesheets/govuk-template-print.css?0.26.0"/>
|
14
|
-
|
15
|
-
<link rel="stylesheet" media="all" href="{{govukAssetPath}}stylesheets/fonts.css?0.26.0"/>
|
16
|
-
<!--[if lt IE 9]><script src="{{govukAssetPath}}javascripts/ie.js?0.26.0"></script><![endif]-->
|
17
|
-
|
18
|
-
<link rel="shortcut icon" href="{{govukAssetPath}}images/favicon.ico?0.26.0" type="image/x-icon" />
|
19
|
-
|
20
|
-
<link rel="mask-icon" href="{{govukAssetPath}}images/gov.uk_logotype_crown.svg?0.26.0" color="#0b0c0c">
|
21
|
-
<link rel="apple-touch-icon" sizes="180x180" href="{{govukAssetPath}}images/apple-touch-icon-180x180.png?0.26.0">
|
22
|
-
<link rel="apple-touch-icon" sizes="167x167" href="{{govukAssetPath}}images/apple-touch-icon-167x167.png?0.26.0">
|
23
|
-
<link rel="apple-touch-icon" sizes="152x152" href="{{govukAssetPath}}images/apple-touch-icon-152x152.png?0.26.0">
|
24
|
-
<link rel="apple-touch-icon" href="{{govukAssetPath}}images/apple-touch-icon.png?0.26.0">
|
25
|
-
|
26
|
-
|
27
|
-
<meta name="theme-color" content="#0b0c0c" />
|
28
|
-
|
29
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
30
|
-
|
31
|
-
{{$head}}{{/head}}
|
32
|
-
|
33
|
-
|
34
|
-
<meta property="og:image" content="{{govukAssetPath}}images/opengraph-image.png?0.26.0">
|
35
|
-
</head>
|
36
|
-
|
37
|
-
<body class="{{$bodyClasses}}{{/bodyClasses}}">
|
38
|
-
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
<div id="skiplink-container">
|
43
|
-
<div>
|
44
|
-
<a href="#content" class="skiplink">{{$skipLinkMessage}}Skip to main content{{/skipLinkMessage}}</a>
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
|
48
|
-
<div id="global-cookie-message">
|
49
|
-
|
50
|
-
{{$cookieMessage}}{{/cookieMessage}}
|
51
|
-
|
52
|
-
</div>
|
53
|
-
|
54
|
-
|
55
|
-
<header role="banner" id="global-header" class="{{$headerClass}}{{/headerClass}}">
|
56
|
-
<div class="header-wrapper">
|
57
|
-
<div class="header-global">
|
58
|
-
<div class="header-logo">
|
59
|
-
<a href="{{$homepageUrl}}https://www.gov.uk{{/homepageUrl}}" title="{{$logoLinkTitle}}Go to the GOV.UK homepage{{/logoLinkTitle}}" id="logo" class="content" data-module="track-click" data-track-category="homeLinkClicked" data-track-action="homeHeader">
|
60
|
-
<img src="{{govukAssetPath}}images/gov.uk_logotype_crown_invert_trans.png?0.26.0" width="36" height="32" alt=""> {{$globalHeaderText}}GOV.UK{{/globalHeaderText}}
|
61
|
-
</a>
|
62
|
-
</div>
|
63
|
-
{{$insideHeader}}{{/insideHeader}}
|
64
|
-
</div>
|
65
|
-
{{$propositionHeader}}{{/propositionHeader}}
|
66
|
-
</div>
|
67
|
-
</header>
|
68
|
-
|
69
|
-
|
70
|
-
{{$afterHeader}}{{/afterHeader}}
|
71
|
-
|
72
|
-
<div id="global-header-bar"></div>
|
73
|
-
|
74
|
-
{{$main}}{{/main}}
|
75
|
-
|
76
|
-
<footer class="group js-footer" id="footer" role="contentinfo">
|
77
|
-
|
78
|
-
<div class="footer-wrapper">
|
79
|
-
{{$footerTop}}{{/footerTop}}
|
80
|
-
|
81
|
-
<div class="footer-meta">
|
82
|
-
<div class="footer-meta-inner">
|
83
|
-
{{$footerSupportLinks}}{{/footerSupportLinks}}
|
84
|
-
|
85
|
-
<div class="open-government-licence">
|
86
|
-
<p class="logo"><a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence</a></p>
|
87
|
-
|
88
|
-
{{$licenceMessage}}<p>All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated</p>{{/licenceMessage}}
|
89
|
-
|
90
|
-
</div>
|
91
|
-
</div>
|
92
|
-
|
93
|
-
<div class="copyright">
|
94
|
-
<a href="https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/">{{$crownCopyrightMessage}}© Crown copyright{{/crownCopyrightMessage}}</a>
|
95
|
-
</div>
|
96
|
-
</div>
|
97
|
-
</div>
|
98
|
-
</footer>
|
99
|
-
|
100
|
-
<div id="global-app-error" class="app-error hidden"></div>
|
101
|
-
|
102
|
-
<script src="{{govukAssetPath}}javascripts/govuk-template.js?0.26.0"></script>
|
103
|
-
|
104
|
-
{{$bodyEnd}}{{/bodyEnd}}
|
105
|
-
|
106
|
-
|
107
|
-
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>if (typeof window.GOVUK === 'undefined') document.body.className = document.body.className.replace('js-enabled', '');</script>
|
108
|
-
</body>
|
109
|
-
</html>
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<form action="" method="POST" {{$encoding}}{{/encoding}} autocomplete="off" novalidate="true" spellcheck="false">
|
2
|
-
{{$intro}}
|
3
|
-
{{#intro}}<p>{{intro}}</p>{{/intro}}
|
4
|
-
{{/intro}}
|
5
|
-
{{$form}}{{/form}}
|
6
|
-
{{#csrf-token}}
|
7
|
-
<input type="hidden" name="x-csrf-token" value="{{csrf-token}}" />
|
8
|
-
{{/csrf-token}}
|
9
|
-
</form>
|
@@ -1,28 +0,0 @@
|
|
1
|
-
<div id="{{key}}-group" class="form-group{{#className}} {{className}} {{/className}}{{#formGroupClassName}} {{formGroupClassName}}{{/formGroupClassName}}{{#error}} validation-error{{/error}}">
|
2
|
-
<fieldset role="{{role}}"{{#ariaRequired}} aria-required="true"{{/ariaRequired}}{{#hint}} aria-describedby="{{key}}-hint"{{/hint}}>
|
3
|
-
<legend>
|
4
|
-
<span{{#legendClassName}} class="{{legendClassName}}"{{/legendClassName}}>{{legend}}</span>
|
5
|
-
{{#hint}}<span id="{{key}}-hint" class="form-hint">{{hint}}</span>{{/hint}}
|
6
|
-
{{#error}}<span id="{{key}}-error" class="error-message">{{error.message}}</span>{{/error}}
|
7
|
-
</legend>
|
8
|
-
{{#options}}
|
9
|
-
<div class="multiple-choice">
|
10
|
-
<input
|
11
|
-
type="{{type}}"
|
12
|
-
name="{{key}}"
|
13
|
-
id="{{key}}-{{value}}"
|
14
|
-
value="{{value}}"
|
15
|
-
{{#toggle}} data-toggle="{{toggle}}"{{/toggle}}
|
16
|
-
{{#selected}} checked="checked"{{/selected}}
|
17
|
-
{{^error}}{{#optionHint}} aria-describedby="{{key}}-{{value}}-hint"{{/optionHint}}{{^optionHint}}{{#hint}} aria-describedby="{{key}}-hint"{{/hint}}{{/optionHint}}{{/error}}
|
18
|
-
{{#error}} aria-describedby="{{key}}-error" aria-invalid="true"{{/error}}
|
19
|
-
>
|
20
|
-
<label class="block-label" for="{{key}}-{{value}}">
|
21
|
-
{{{label}}}
|
22
|
-
{{#optionHint}}<span id="{{key}}-{{value}}-hint" class="form-hint">{{optionHint}}</span>{{/optionHint}}
|
23
|
-
</label>
|
24
|
-
</div>
|
25
|
-
{{#renderChild}}{{/renderChild}}
|
26
|
-
{{/options}}
|
27
|
-
</fieldset>
|
28
|
-
</div>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
{{#errorlist.length}}
|
2
|
-
<div class="validation-summary error-summary" tabindex="-1">
|
3
|
-
{{$errorlist-title}}
|
4
|
-
|
5
|
-
{{#errorLength.single}}
|
6
|
-
<h2>{{#t}}errorlist.title.single{{/t}}</h2>
|
7
|
-
{{/errorLength.single}}
|
8
|
-
{{#errorLength.multiple}}
|
9
|
-
<h2>{{#t}}errorlist.title.multiple{{/t}}</h2>
|
10
|
-
{{/errorLength.multiple}}
|
11
|
-
|
12
|
-
{{/errorlist-title}}
|
13
|
-
|
14
|
-
{{<partials-validation-list}}
|
15
|
-
{{$validation-list}}
|
16
|
-
{{#errorlist}}
|
17
|
-
{{#message}}
|
18
|
-
<li><a href="#{{key}}">{{ message }}</a></li>
|
19
|
-
{{/message}}
|
20
|
-
{{/errorlist}}
|
21
|
-
{{/validation-list}}
|
22
|
-
{{/partials-validation-list}}
|
23
|
-
</div>
|
24
|
-
{{/errorlist.length}}
|
package/middleware/monitor.js
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
const Prometheus = require('prom-client');
|
3
|
-
|
4
|
-
let responseTimeInMs = 0;
|
5
|
-
|
6
|
-
const httpRequestDurationMicroseconds = new Prometheus.Histogram({
|
7
|
-
name: 'http_request_duration_ms',
|
8
|
-
help: 'Duration of HTTP requests in ms',
|
9
|
-
labelNames: ['method', 'route', 'code'],
|
10
|
-
buckets: [0.10, 5, 15, 50, 100, 200, 300, 400, 500] // buckets for response time from 0.1ms to 500ms
|
11
|
-
});
|
12
|
-
|
13
|
-
module.exports = function (req, res, status) {
|
14
|
-
const startTime = Date.now();
|
15
|
-
httpRequestDurationMicroseconds
|
16
|
-
.labels(req.method, req.url, status)
|
17
|
-
.observe(responseTimeInMs);
|
18
|
-
const endTime = Date.now();
|
19
|
-
responseTimeInMs = endTime - startTime;
|
20
|
-
};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<title>{{#t}}pages.confirmation.title{{/t}} – GOV.UK</title>
|
2
|
-
|
3
|
-
{{<partials-page}}
|
4
|
-
{{$page-content}}
|
5
|
-
<div class="alert-complete" role="alert">
|
6
|
-
<span class="icon icon-complete" role="presentation"></span>
|
7
|
-
<div class="alert-message">
|
8
|
-
<h1>{{#t}}pages.confirmation.alert{{/t}}</h1>
|
9
|
-
</div>
|
10
|
-
</div>
|
11
|
-
<h2>{{#t}}pages.confirmation.subheader{{/t}}</h2>
|
12
|
-
<p>{{#t}}pages.confirmation.content{{/t}}</p>
|
13
|
-
<a href="/landing-page" class="button" role="button">{{#t}}buttons.start-again{{/t}}</a>
|
14
|
-
{{/page-content}}
|
15
|
-
{{/partials-page}}
|