hof 20.3.3 → 20.3.4-redis-beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/.nyc_output/9651d42a-59d8-48e6-949c-655d9fa6db21.json +1 -0
  2. package/.nyc_output/processinfo/9651d42a-59d8-48e6-949c-655d9fa6db21.json +1 -0
  3. package/.nyc_output/processinfo/index.json +1 -1
  4. package/config/hof-defaults.js +13 -3
  5. package/frontend/govuk-template/build/govuk_template.html +0 -3
  6. package/frontend/govuk-template/govuk_template_generated.html +100 -0
  7. package/frontend/template-mixins/partials/forms/checkbox-group.html +1 -1
  8. package/frontend/template-partials/views/layout.html +1 -1
  9. package/frontend/template-partials/views/partials/cookie-banner.html +2 -2
  10. package/frontend/template-partials/views/partials/head.html +5 -10
  11. package/lib/ga-tag.js +22 -13
  12. package/lib/health.js +1 -1
  13. package/lib/sessions.js +2 -0
  14. package/middleware/rate-limiter.js +3 -1
  15. package/package.json +2 -2
  16. package/sandbox/apps/sandbox/fields.js +7 -0
  17. package/sandbox/apps/sandbox/translations/en/default.json +220 -0
  18. package/sandbox/apps/sandbox/translations/src/en/fields.json +6 -6
  19. package/sandbox/apps/sandbox/translations/src/en/pages.json +1 -1
  20. package/sandbox/config.js +2 -1
  21. package/sandbox/public/css/app.css +9387 -0
  22. package/sandbox/public/images/icons/icon-caret-left.png +0 -0
  23. package/sandbox/public/images/icons/icon-complete.png +0 -0
  24. package/sandbox/public/images/icons/icon-cross-remove-sign.png +0 -0
  25. package/sandbox/public/js/bundle.js +35664 -0
  26. package/sandbox/server.js +4 -1
  27. package/sandbox/yarn.lock +3 -3
  28. package/.nyc_output/ba61bb97-548e-44b6-b2f7-282f850cee4a.json +0 -1
  29. package/.nyc_output/processinfo/ba61bb97-548e-44b6-b2f7-282f850cee4a.json +0 -1
@@ -0,0 +1,220 @@
1
+ {
2
+ "fields": {
3
+ "landing-page-radio": {
4
+ "legend": "Which form would you like to explore?",
5
+ "hint": "Choose one of the options below and press continue.",
6
+ "options": {
7
+ "basic-form": {
8
+ "label": "Basic form"
9
+ },
10
+ "complex-form": {
11
+ "label": "Complex form"
12
+ },
13
+ "build-your-own-form": {
14
+ "label": "Build your own form"
15
+ }
16
+ }
17
+ },
18
+ "name": {
19
+ "label": "What is your full name?"
20
+ },
21
+ "dateOfBirth": {
22
+ "legend": "What is your date of birth?",
23
+ "hint": "For example, 31 10 1990"
24
+ },
25
+ "building": {
26
+ "label": "Building and street"
27
+ },
28
+ "street": {
29
+ "label": "Address line 2"
30
+ },
31
+ "townOrCity": {
32
+ "label": "Town or city"
33
+ },
34
+ "postcode": {
35
+ "label": "Postcode"
36
+ },
37
+ "incomeTypes": {
38
+ "label": "Sources of income",
39
+ "legend": "Select the options where you receive income from",
40
+ "hint": "Select all options that apply to you.",
41
+ "options": {
42
+ "salary": {
43
+ "label": "Salary"
44
+ },
45
+ "universal_credit": {
46
+ "label": "Universal Credit"
47
+ },
48
+ "child_benefit": {
49
+ "label": "Child Benefit"
50
+ },
51
+ "housing_benefit": {
52
+ "label": "Housing Benefit"
53
+ },
54
+ "other": {
55
+ "label": "Other"
56
+ }
57
+ }
58
+ },
59
+ "countryOfHearing": {
60
+ "legend": "What country was the appeal lodged?",
61
+ "options": {
62
+ "englandAndWales": {
63
+ "label": "England and Wales"
64
+ },
65
+ "scotland": {
66
+ "label": "Scotland"
67
+ },
68
+ "northernIreland": {
69
+ "label": "Northern Ireland"
70
+ }
71
+ }
72
+ },
73
+ "email": {
74
+ "label": "Enter your email address"
75
+ },
76
+ "phone": {
77
+ "label": "Phone number",
78
+ "hint": "International phone numbers require the international dialling code, for example +33235066182"
79
+ },
80
+ "int-phone-number": {
81
+ "legend": "International phone number"
82
+ },
83
+ "complaintDetails": {
84
+ "label": "Complaint details",
85
+ "hint": "Briefly summarise your complaint. Include anything that can help our investigation."
86
+ },
87
+ "whatHappened": {
88
+ "label": "What happened",
89
+ "hint": "Briefly summarise what happened."
90
+ },
91
+ "countrySelect": {
92
+ "label": "Which country are you based in?",
93
+ "hint": "Start to type the country name and options will appear"
94
+ },
95
+ "appealStages": {
96
+ "label": "Appeal stage",
97
+ "hint": "Choose an appeal stage from the drop down menu",
98
+ "options": {
99
+ "null": "Select..."
100
+ }
101
+ }
102
+ },
103
+ "journey": {
104
+ "header": "HOF Bootstrap Sandbox Form",
105
+ "confirmation": {
106
+ "details": "Your reference number <br><strong>HDJ2123F</strong>"
107
+ }
108
+ },
109
+ "pages": {
110
+ "landing-page": {
111
+ "header": "Landing page"
112
+ },
113
+ "build-your-own-form": {
114
+ "title": "Build your own form",
115
+ "subheader": "Access the build your own form guidance link"
116
+ },
117
+ "address": {
118
+ "header": "What is your address in the UK?",
119
+ "intro": "If you have no fixed address, enter an address where we can contact you."
120
+ },
121
+ "name": {
122
+ "header": "What is your full name?"
123
+ },
124
+ "email": {
125
+ "header": "Enter your email address"
126
+ },
127
+ "phone-number": {
128
+ "header": "Enter your phone number"
129
+ },
130
+ "confirm": {
131
+ "header": "Check your answers before submitting your application.",
132
+ "sections": {
133
+ "applicantsDetails": {
134
+ "header": "Applicant's details"
135
+ },
136
+ "address": {
137
+ "header": "Address"
138
+ },
139
+ "income": {
140
+ "header": "Income"
141
+ },
142
+ "appealDetails": {
143
+ "header": "Appeal details"
144
+ },
145
+ "countrySelect": {
146
+ "header": "Country of residence"
147
+ },
148
+ "contactDetails": {
149
+ "header": "Contact details"
150
+ },
151
+ "complaintDetails": {
152
+ "header": "Complaint details"
153
+ },
154
+ "whatHappened": {
155
+ "header": "What happened"
156
+ }
157
+ }
158
+ },
159
+ "confirmation": {
160
+ "title": "Application sent",
161
+ "alert": "Application sent",
162
+ "subheader": "What happens next",
163
+ "content": "We’ll contact you with the decision of your application or if we need more information from you."
164
+ }
165
+ },
166
+ "validation": {
167
+ "landing-page-radio": {
168
+ "required": "Select an option below and press continue"
169
+ },
170
+ "name": {
171
+ "default": "Enter your full name"
172
+ },
173
+ "dateOfBirth": {
174
+ "default": "Enter your date of birth in the correct format; for example, 31 10 1990",
175
+ "after": "Enter a date after 1 1 1900",
176
+ "before": "Enter a date that is in the past"
177
+ },
178
+ "building": {
179
+ "default": "Enter details of your building and street"
180
+ },
181
+ "townOrCity": {
182
+ "default": "Enter a town or city",
183
+ "regex": "Enter a town or city without including digits"
184
+ },
185
+ "postcode": {
186
+ "default": "Enter your postcode"
187
+ },
188
+ "incomeTypes": {
189
+ "default": "Select all options that apply to you."
190
+ },
191
+ "countryOfHearing": {
192
+ "default": "Select where the appeal hearing is to be held"
193
+ },
194
+ "countrySelect": {
195
+ "default": "Enter a valid country of residence",
196
+ "required": "Enter your country of residence"
197
+ },
198
+ "email": {
199
+ "default": "Enter your email address in the correct format"
200
+ },
201
+ "phone": {
202
+ "default": "Enter your phone number"
203
+ },
204
+ "int-phone-number": {
205
+ "required": "Enter an international phone number",
206
+ "internationalPhoneNumber": "Enter a valid international phone number"
207
+ },
208
+ "complaintDetails": {
209
+ "default": "Enter details about why you are making a complaint",
210
+ "maxlength": "Keep to the {{maxlength}} character limit"
211
+ },
212
+ "whatHappened": {
213
+ "default": "Enter details about what happened",
214
+ "maxword": "Keep to the {{maxword}} word limit"
215
+ },
216
+ "appealStages": {
217
+ "required": "Select an appeal stage from the list"
218
+ }
219
+ }
220
+ }
@@ -15,7 +15,7 @@
15
15
  }
16
16
  },
17
17
  "name": {
18
- "label": "Full name"
18
+ "label": "What is your full name?"
19
19
  },
20
20
  "dateOfBirth": {
21
21
  "legend": "What is your date of birth?",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "townOrCity": {
31
31
  "label": "Town or city"
32
- },
33
- "postcode": {
32
+ },
33
+ "postcode": {
34
34
  "label": "Postcode"
35
35
  },
36
36
  "incomeTypes" : {
@@ -66,11 +66,11 @@
66
66
  },
67
67
  "northernIreland": {
68
68
  "label": "Northern Ireland"
69
- }
70
- }
69
+ }
70
+ }
71
71
  },
72
72
  "email" : {
73
- "label": "Email address"
73
+ "label": "Enter your email address"
74
74
  },
75
75
  "phone": {
76
76
  "label": "Phone number",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "confirmation": {
52
52
  "title": "Application sent",
53
- "alert": "Application sent",
53
+ "alert": "Application sent",
54
54
  "subheader": "What happens next",
55
55
  "content": "We’ll contact you with the decision of your application or if we need more information from you."
56
56
  }
package/sandbox/config.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  /* eslint no-process-env: 0 */
4
4
  module.exports = {
5
+ port: 8082,
5
6
  email: {
6
7
  caseworker: process.env.CASEWORKER_EMAIL || '',
7
8
  from: process.env.FROM_ADDRESS || '',
@@ -12,6 +13,6 @@ module.exports = {
12
13
  region: process.env.EMAIL_REGION || ''
13
14
  },
14
15
  hosts: {
15
- acceptanceTests: process.env.ACCEPTANCE_HOST_NAME || `http://localhost:${process.env.PORT || 8080}`
16
+ acceptanceTests: process.env.ACCEPTANCE_HOST_NAME || `http://localhost:${process.env.PORT || 8082}`
16
17
  }
17
18
  };