hof 20.0.0-beta.8 → 20.0.0-redis-beta.32-redis-beta
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/cb764db8-e9f0-43bb-b3b1-7af57bb79bb5.json +1 -0
- package/.nyc_output/processinfo/cb764db8-e9f0-43bb-b3b1-7af57bb79bb5.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/README.md +329 -256
- package/components/index.js +2 -1
- package/components/notify/index.js +60 -0
- package/components/notify/notify.js +25 -0
- package/config/hof-defaults.js +2 -1
- package/controller/controller.js +14 -4
- package/frontend/template-mixins/mixins/template-mixins.js +7 -3
- package/frontend/template-mixins/partials/forms/checkbox-group.html +10 -1
- package/frontend/template-mixins/partials/forms/input-text-date.html +1 -1
- package/frontend/template-mixins/partials/forms/input-text-group.html +5 -3
- package/frontend/template-mixins/partials/forms/option-group.html +9 -0
- package/frontend/template-mixins/partials/forms/select.html +1 -1
- package/frontend/template-mixins/partials/forms/textarea-group.html +2 -2
- package/frontend/template-partials/views/layout.html +10 -3
- package/frontend/template-partials/views/partials/cookie-banner.html +1 -1
- package/frontend/template-partials/views/partials/form.html +2 -1
- package/frontend/template-partials/views/partials/warn.html +7 -0
- package/frontend/themes/gov-uk/client-js/index.js +3 -5
- package/frontend/themes/gov-uk/styles/govuk.scss +4 -0
- package/frontend/themes/gov-uk/styles/modules/_validation.scss +2 -2
- package/frontend/toolkit/assets/javascript/form-focus.js +10 -1
- package/frontend/toolkit/assets/javascript/progressive-reveal.js +3 -1
- package/frontend/toolkit/assets/javascript/validation.js +6 -1
- package/lib/health.js +1 -1
- package/lib/sessions.js +1 -1
- package/middleware/rate-limiter.js +3 -1
- package/package.json +4 -3
- package/sandbox/apps/sandbox/fields.js +1 -0
- package/sandbox/apps/sandbox/index.js +1 -5
- package/sandbox/apps/sandbox/translations/en/default.json +36 -15
- package/sandbox/assets/scss/app.scss +0 -52
- package/sandbox/package.json +2 -0
- package/sandbox/public/css/app.css +21 -6666
- package/sandbox/public/js/bundle.js +37 -2793
- package/sandbox/server.js +2 -1
- package/sandbox/yarn.lock +39 -564
- 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/govuk_template_generated.html +0 -104
- package/sandbox/.env +0 -1
@@ -2,7 +2,6 @@
|
|
2
2
|
"fields": {
|
3
3
|
"landing-page-radio": {
|
4
4
|
"legend": "Which form would you like to explore?",
|
5
|
-
"hint": "Choose one of the options below and press continue.",
|
6
5
|
"options": {
|
7
6
|
"basic-form": {
|
8
7
|
"label": "Basic form"
|
@@ -16,10 +15,10 @@
|
|
16
15
|
}
|
17
16
|
},
|
18
17
|
"name": {
|
19
|
-
"label": "
|
18
|
+
"label": "Full name"
|
20
19
|
},
|
21
20
|
"dateOfBirth": {
|
22
|
-
"legend": "
|
21
|
+
"legend": "Date of birth",
|
23
22
|
"hint": "For example, 31 10 1990"
|
24
23
|
},
|
25
24
|
"building": {
|
@@ -57,7 +56,7 @@
|
|
57
56
|
}
|
58
57
|
},
|
59
58
|
"countryOfHearing": {
|
60
|
-
"
|
59
|
+
"label": "Country of hearing",
|
61
60
|
"options": {
|
62
61
|
"englandAndWales": {
|
63
62
|
"label": "England and Wales"
|
@@ -71,7 +70,7 @@
|
|
71
70
|
}
|
72
71
|
},
|
73
72
|
"email": {
|
74
|
-
"label": "
|
73
|
+
"label": "Email address"
|
75
74
|
},
|
76
75
|
"phone": {
|
77
76
|
"label": "Phone number",
|
@@ -81,42 +80,64 @@
|
|
81
80
|
"legend": "International phone number"
|
82
81
|
},
|
83
82
|
"complaintDetails": {
|
84
|
-
"label": "Complaint details"
|
85
|
-
"hint": "Briefly summarise your complaint. Include anything that can help our investigation."
|
83
|
+
"label": "Complaint details"
|
86
84
|
},
|
87
85
|
"countrySelect": {
|
88
|
-
"label": "
|
86
|
+
"label": "Select a country",
|
89
87
|
"hint": "Start to type the country name and options will appear"
|
90
88
|
},
|
91
89
|
"appealStages": {
|
92
90
|
"label": "Appeal stage",
|
93
|
-
"hint": "Choose an appeal stage from the drop down menu",
|
94
91
|
"options": {
|
95
92
|
"null": "Select..."
|
96
93
|
}
|
97
94
|
}
|
98
95
|
},
|
99
96
|
"journey": {
|
100
|
-
"header": "HOF Bootstrap Sandbox Form"
|
101
|
-
"confirmation": {
|
102
|
-
"details": "Your reference number <br><strong>HDJ2123F</strong>"
|
103
|
-
}
|
97
|
+
"header": "HOF Bootstrap Sandbox Form"
|
104
98
|
},
|
105
99
|
"pages": {
|
106
100
|
"landing-page": {
|
107
|
-
"header": "Landing page"
|
101
|
+
"header": "Landing page",
|
102
|
+
"intro": "Choose one of the options below and press continue."
|
108
103
|
},
|
109
104
|
"build-your-own-form": {
|
110
105
|
"title": "Build your own form",
|
111
106
|
"subheader": "Access the build your own form guidance link"
|
112
107
|
},
|
108
|
+
"name": {
|
109
|
+
"header": "What is your full name?"
|
110
|
+
},
|
111
|
+
"dob": {
|
112
|
+
"header": "What is your date of birth?"
|
113
|
+
},
|
113
114
|
"address": {
|
114
115
|
"header": "What is your address in the UK?",
|
115
116
|
"intro": "If you have no fixed address, enter an address where we can contact you."
|
116
117
|
},
|
118
|
+
"checkboxes": {
|
119
|
+
"header": "Where does your money come from each month?"
|
120
|
+
},
|
121
|
+
"radio": {
|
122
|
+
"header": "What country was the appeal lodged?"
|
123
|
+
},
|
124
|
+
"country-select": {
|
125
|
+
"header": "What country is your address located?"
|
126
|
+
},
|
127
|
+
"email": {
|
128
|
+
"header": "Enter your email address"
|
129
|
+
},
|
117
130
|
"phone-number": {
|
118
131
|
"header": "Enter your phone number"
|
119
132
|
},
|
133
|
+
"text-input-area": {
|
134
|
+
"header": "What are the details of your complaint?",
|
135
|
+
"intro": "Briefly summarise your complaint. Include anything that can help our investigation."
|
136
|
+
},
|
137
|
+
"select": {
|
138
|
+
"header": "What is the appeal stage?",
|
139
|
+
"intro": "Choose an appeal stage from the drop down menu"
|
140
|
+
},
|
120
141
|
"confirm": {
|
121
142
|
"header": "Check your answers before submitting your application.",
|
122
143
|
"sections": {
|
@@ -194,7 +215,7 @@
|
|
194
215
|
},
|
195
216
|
"complaintDetails": {
|
196
217
|
"default": "Enter details about why you are making a complaint",
|
197
|
-
"maxlength": "Keep to the
|
218
|
+
"maxlength": "Keep to the 5000 character limit"
|
198
219
|
},
|
199
220
|
"appealStages": {
|
200
221
|
"required": "Select an appeal stage from the list"
|
@@ -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 {
|
@@ -26,54 +25,3 @@
|
|
26
25
|
.twitter-typeahead {
|
27
26
|
width: 100%;
|
28
27
|
}
|
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;
|
71
|
-
}
|
72
|
-
|
73
|
-
.cookie-table-holder > table > tbody > tr > td:first-child{
|
74
|
-
font-weight:bold;
|
75
|
-
}
|
76
|
-
|
77
|
-
.js-enabled #global-cookie-message {
|
78
|
-
display: none;
|
79
|
-
}
|