hof 20.0.0-beta.8 → 21.0.0-instrumentation-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.nyc_output/4d5a4574-78fc-4fcb-9412-3658f6ce33ff.json +1 -0
- package/.nyc_output/processinfo/4d5a4574-78fc-4fcb-9412-3658f6ce33ff.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/components/date/index.js +1 -3
- package/components/date/templates/date.html +12 -15
- package/components/index.js +1 -0
- package/components/notify/index.js +60 -0
- package/components/notify/notify.js +25 -0
- package/config/sanitisation-rules.js +20 -17
- package/controller/base-controller.js +5 -3
- package/controller/controller.js +0 -39
- package/frontend/govuk-template/build/config.js +2 -2
- package/frontend/govuk-template/build/index.js +2 -2
- package/frontend/govuk-template/govuk_template.html +109 -0
- package/frontend/govuk-template/index.js +4 -4
- package/frontend/template-mixins/mixins/template-mixins.js +9 -20
- package/frontend/template-mixins/partials/forms/checkbox.html +4 -4
- package/frontend/template-mixins/partials/forms/input-submit.html +1 -1
- package/frontend/template-mixins/partials/forms/input-text-group.html +9 -12
- package/frontend/template-mixins/partials/forms/option-group.html +26 -33
- package/frontend/template-mixins/partials/forms/select.html +5 -10
- package/frontend/template-mixins/partials/forms/textarea-group.html +6 -15
- package/frontend/template-mixins/partials/mixins/panel.html +4 -3
- 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 +22 -22
- 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 +3 -4
- package/frontend/template-partials/views/partials/continue.html +1 -1
- package/frontend/template-partials/views/partials/cookie-banner.html +24 -27
- 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 +1 -1
- package/frontend/template-partials/views/partials/maincontent-left.html +4 -4
- package/frontend/template-partials/views/partials/navigation.html +6 -7
- package/frontend/template-partials/views/partials/session-cookies-table.html +6 -6
- 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 +13 -14
- package/frontend/template-partials/views/session-timeout.html +1 -1
- package/frontend/themes/gov-uk/client-js/cookieSettings.js +1 -1
- package/frontend/themes/gov-uk/client-js/index.js +0 -7
- package/frontend/themes/gov-uk/styles/_cookie-banner.scss +1 -51
- package/frontend/themes/gov-uk/styles/modules/_validation.scss +3 -3
- package/frontend/themes/gov-uk/views/partials/form.html +9 -0
- package/frontend/themes/gov-uk/views/partials/forms/option-group.html +28 -0
- package/frontend/themes/gov-uk/views/partials/mixins/panel.html +3 -0
- package/frontend/themes/gov-uk/views/partials/validation-summary.html +24 -0
- package/frontend/toolkit/assets/javascript/character-count.js +4 -4
- package/frontend/toolkit/assets/javascript/form-focus.js +10 -1
- package/frontend/toolkit/assets/javascript/validation.js +6 -1
- package/frontend/toolkit/assets/stylesheets/modules/_validation.scss +3 -3
- package/index.js +1 -6
- package/lib/settings.js +2 -18
- package/middleware/errors.js +3 -0
- package/middleware/monitor.js +20 -0
- package/middleware/not-found.js +3 -0
- package/middleware/rate-limiter.js +0 -1
- package/package.json +5 -4
- package/sandbox/apps/sandbox/fields.js +11 -23
- package/sandbox/apps/sandbox/index.js +1 -5
- package/sandbox/apps/sandbox/translations/src/en/fields.json +6 -9
- package/sandbox/apps/sandbox/translations/src/en/journey.json +1 -4
- package/sandbox/apps/sandbox/translations/src/en/pages.json +29 -2
- package/sandbox/apps/sandbox/translations/src/en/validation.json +1 -1
- package/sandbox/apps/sandbox/views/confirmation.html +15 -0
- package/sandbox/assets/js/index.js +1 -1
- package/sandbox/assets/scss/app.scss +16 -68
- package/sandbox/package.json +1 -4
- package/sandbox/yarn.lock +0 -767
- package/wizard/index.js +13 -0
- package/.nyc_output/e2fdc3eb-4fd2-47e0-a392-fe5f665776a4.json +0 -1
- package/.nyc_output/processinfo/e2fdc3eb-4fd2-47e0-a392-fe5f665776a4.json +0 -1
- package/.vscode/settings.json +0 -6
- package/frontend/govuk-template/build/govuk_template.html +0 -104
- package/frontend/govuk-template/govuk_template_generated.html +0 -104
- package/frontend/template-mixins/partials/forms/checkbox-group.html +0 -38
- package/frontend/template-mixins/partials/forms/input-text-date.html +0 -37
- package/frontend/themes/gov-uk/client-js/govuk-cookies.js +0 -121
- package/frontend/themes/gov-uk/client-js/skip-to-main.js +0 -19
- package/sandbox/.env +0 -1
- package/sandbox/apps/sandbox/translations/en/default.json +0 -203
- package/sandbox/public/css/app.css +0 -9439
- 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 +0 -35644
@@ -1,18 +1,45 @@
|
|
1
1
|
{
|
2
2
|
"landing-page": {
|
3
|
-
"header": "Landing page"
|
3
|
+
"header": "Landing page",
|
4
|
+
"intro": "Choose one of the options below and press continue."
|
4
5
|
},
|
5
6
|
"build-your-own-form": {
|
6
7
|
"title": "Build your own form",
|
7
8
|
"subheader": "Access the build your own form guidance link"
|
8
9
|
},
|
10
|
+
"name": {
|
11
|
+
"header": "What is your full name?"
|
12
|
+
},
|
13
|
+
"dob": {
|
14
|
+
"header": "What is your date of birth?"
|
15
|
+
},
|
9
16
|
"address": {
|
10
17
|
"header": "What is your address in the UK?",
|
11
18
|
"intro": "If you have no fixed address, enter an address where we can contact you."
|
12
19
|
},
|
20
|
+
"checkboxes": {
|
21
|
+
"header": "Where does your money come from each month?"
|
22
|
+
},
|
23
|
+
"radio": {
|
24
|
+
"header": "What country was the appeal lodged?"
|
25
|
+
},
|
26
|
+
"country-select": {
|
27
|
+
"header": "What country is your address located?"
|
28
|
+
},
|
29
|
+
"email": {
|
30
|
+
"header": "Enter your email address"
|
31
|
+
},
|
13
32
|
"phone-number": {
|
14
33
|
"header": "Enter your phone number"
|
15
34
|
},
|
35
|
+
"text-input-area": {
|
36
|
+
"header": "What are the details of your complaint?",
|
37
|
+
"intro": "Briefly summarise your complaint. Include anything that can help our investigation."
|
38
|
+
},
|
39
|
+
"select":{
|
40
|
+
"header": "What is the appeal stage?",
|
41
|
+
"intro": "Choose an appeal stage from the drop down menu"
|
42
|
+
},
|
16
43
|
"confirm": {
|
17
44
|
"header": "Check your answers before submitting your application.",
|
18
45
|
"sections": {
|
@@ -45,4 +72,4 @@
|
|
45
72
|
"subheader": "What happens next",
|
46
73
|
"content": "We’ll contact you with the decision of your application or if we need more information from you."
|
47
74
|
}
|
48
|
-
}
|
75
|
+
}
|
@@ -42,7 +42,7 @@
|
|
42
42
|
},
|
43
43
|
"complaintDetails": {
|
44
44
|
"default": "Enter details about why you are making a complaint",
|
45
|
-
"maxlength": "Keep to the
|
45
|
+
"maxlength": "Keep to the 5000 character limit"
|
46
46
|
},
|
47
47
|
"appealStages": {
|
48
48
|
"required": "Select an appeal stage from the list"
|
@@ -0,0 +1,15 @@
|
|
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}}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
|
2
2
|
@import "../../../frontend/themes/gov-uk/styles/govuk";
|
3
|
-
@import "../../../node_modules/govuk-frontend/govuk/all";
|
4
3
|
|
5
4
|
//autocomplete styling
|
6
5
|
.tt-menu {
|
@@ -9,71 +8,20 @@
|
|
9
8
|
width: 65%;
|
10
9
|
}
|
11
10
|
|
12
|
-
.tt-suggestion {
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
|
26
|
-
.twitter-typeahead {
|
27
|
-
width: 100%;
|
28
|
-
}
|
29
|
-
|
30
|
-
// govuk cookie banner styling
|
31
|
-
.govuk-banner--success {
|
32
|
-
border-color: #00703c;
|
33
|
-
color: #00703c;
|
34
|
-
}
|
35
|
-
|
36
|
-
.govuk-banner {
|
37
|
-
border: 5px solid #1d70b8;
|
38
|
-
font-size: 0;
|
39
|
-
margin-bottom: 30px;
|
40
|
-
padding: 10px;
|
41
|
-
}
|
42
|
-
|
43
|
-
.govuk-banner__icon{
|
44
|
-
display: inline-block;
|
45
|
-
}
|
46
|
-
|
47
|
-
.govuk-banner__message {
|
48
|
-
font-family: "GDS Transport", Arial, sans-serif;
|
49
|
-
-webkit-font-smoothing: antialiased;
|
50
|
-
font-weight: 400;
|
51
|
-
font-size: 1rem;
|
52
|
-
line-height: 1.25;
|
53
|
-
color: #0b0c0c;
|
54
|
-
display: block;
|
55
|
-
overflow: hidden;
|
56
|
-
display: inline-block;
|
57
|
-
margin-left: 10px;
|
58
|
-
}
|
59
|
-
|
60
|
-
.govuk-banner__assistive {
|
61
|
-
position: absolute !important;
|
62
|
-
width: 1px !important;
|
63
|
-
height: 1px !important;
|
64
|
-
margin: 0 !important;
|
65
|
-
padding: 0 !important;
|
66
|
-
overflow: hidden !important;
|
67
|
-
clip: rect(0 0 0 0) !important;
|
68
|
-
clip-path: inset(50%) !important;
|
69
|
-
border: 0 !important;
|
70
|
-
white-space: nowrap !important;
|
11
|
+
.tt-suggestion {
|
12
|
+
padding: 0.5em;
|
13
|
+
|
14
|
+
&:hover,
|
15
|
+
&.tt-cursor {
|
16
|
+
color: #fff;
|
17
|
+
background-color: #0097cf;
|
18
|
+
}
|
19
|
+
|
20
|
+
&:hover {
|
21
|
+
cursor: pointer;
|
22
|
+
}
|
71
23
|
}
|
72
|
-
|
73
|
-
.
|
74
|
-
|
75
|
-
}
|
76
|
-
|
77
|
-
.js-enabled #global-cookie-message {
|
78
|
-
display: none;
|
79
|
-
}
|
24
|
+
|
25
|
+
.twitter-typeahead {
|
26
|
+
width: 100%;
|
27
|
+
}
|
package/sandbox/package.json
CHANGED
@@ -9,7 +9,6 @@
|
|
9
9
|
"scripts": {
|
10
10
|
"start": "node server.js",
|
11
11
|
"start:dev": "HOF_SANDBOX=true ../bin/hof-build watch",
|
12
|
-
"dev": "yarn && GA_TAG=test nodemon server",
|
13
12
|
"build": "HOF_SANDBOX=true ../bin/hof-build",
|
14
13
|
"postinstall": "yarn run build"
|
15
14
|
},
|
@@ -18,7 +17,5 @@
|
|
18
17
|
"jquery": "^3.6.0",
|
19
18
|
"typeahead-aria": "^1.0.4"
|
20
19
|
},
|
21
|
-
"devDependencies": {
|
22
|
-
"nodemon": "^2.0.15"
|
23
|
-
}
|
20
|
+
"devDependencies": {}
|
24
21
|
}
|