hof 21.0.6-axios-beta → 21.0.6-notify-attachments-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/.nyc_output/f7c3554e-03db-4e02-95bd-a63f544efd23.json +1 -0
- package/.nyc_output/processinfo/f7c3554e-03db-4e02-95bd-a63f544efd23.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +21 -0
- package/codeReviewChecklist.md +22 -0
- package/components/notify/index.js +3 -1
- package/components/notify/notify.js +33 -7
- package/config/hof-defaults.js +8 -0
- package/frontend/govuk-template/build/govuk_template.html +20 -22
- package/frontend/govuk-template/govuk_template_generated.html +102 -0
- package/frontend/template-mixins/mixins/template-mixins.js +1 -0
- package/frontend/template-mixins/partials/forms/checkbox.html +5 -0
- package/frontend/template-mixins/partials/forms/input-text-group.html +1 -1
- package/frontend/template-mixins/partials/forms/select.html +6 -6
- package/frontend/template-mixins/partials/forms/textarea-group.html +4 -4
- package/frontend/template-partials/views/partials/gatag.html +0 -1
- package/frontend/template-partials/views/partials/head.html +23 -0
- package/lib/ga-tag.js +33 -7
- package/middleware/cookies.js +2 -0
- package/model/apis/axios-settings.js +18 -6
- package/model/apis/html-to-pdf-converter.js +0 -1
- package/model/index.js +95 -92
- package/package.json +9 -11
- package/pull_request.md +16 -0
- package/sandbox/package.json +1 -1
- package/sandbox/yarn.lock +14 -9
- package/.nyc_output/4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5.json +0 -1
- package/.nyc_output/processinfo/4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5.json +0 -1
- package/sandbox/apps/sandbox/translations/en/default.json +0 -224
- package/sandbox/public/css/app.css +0 -2793
- 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 -32888
@@ -1 +0,0 @@
|
|
1
|
-
{"parent":null,"pid":28672,"argv":["/Users/robertmccann/.nvm/versions/node/v14.15.0/bin/node","/Users/robertmccann/Projects/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/robertmccann/Projects/hof","time":1686146117418,"ppid":28670,"coverageFilename":"/Users/robertmccann/Projects/hof/.nyc_output/4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5.json","externalId":"","uuid":"4fc007c9-d6c8-4614-89ce-04c7d6ce9fe5","files":["/Users/robertmccann/Projects/hof/model/index.js","/Users/robertmccann/Projects/hof/components/index.js","/Users/robertmccann/Projects/hof/components/address-lookup/index.js","/Users/robertmccann/Projects/hof/components/address-lookup/default-model.js","/Users/robertmccann/Projects/hof/components/address-lookup/defaults.js","/Users/robertmccann/Projects/hof/components/clear-session/index.js","/Users/robertmccann/Projects/hof/components/combine-and-loop-fields/index.js","/Users/robertmccann/Projects/hof/components/date/index.js","/Users/robertmccann/Projects/hof/components/date/fields.js","/Users/robertmccann/Projects/hof/components/emailer/index.js","/Users/robertmccann/Projects/hof/components/emailer/email-service.js","/Users/robertmccann/Projects/hof/components/emailer/emailer.js","/Users/robertmccann/Projects/hof/components/emailer/transports/index.js","/Users/robertmccann/Projects/hof/components/emailer/transports/smtp.js","/Users/robertmccann/Projects/hof/components/emailer/transports/ses.js","/Users/robertmccann/Projects/hof/components/emailer/transports/stub.js","/Users/robertmccann/Projects/hof/components/emailer/transports/debug.js","/Users/robertmccann/Projects/hof/components/homeoffice-countries/index.js","/Users/robertmccann/Projects/hof/config/component-defaults.js","/Users/robertmccann/Projects/hof/components/notify/index.js","/Users/robertmccann/Projects/hof/components/notify/notify.js","/Users/robertmccann/Projects/hof/components/summary/index.js","/Users/robertmccann/Projects/hof/config/rate-limits.js","/Users/robertmccann/Projects/hof/middleware/rate-limiter.js","/Users/robertmccann/Projects/hof/config/hof-defaults.js","/Users/robertmccann/Projects/hof/controller/base-controller.js","/Users/robertmccann/Projects/hof/controller/formatting/index.js","/Users/robertmccann/Projects/hof/controller/validation/index.js","/Users/robertmccann/Projects/hof/controller/validation/validators.js","/Users/robertmccann/Projects/hof/controller/validation/email.js","/Users/robertmccann/Projects/hof/controller/validation-error.js","/Users/robertmccann/Projects/hof/utilities/index.js","/Users/robertmccann/Projects/hof/utilities/autofill/index.js","/Users/robertmccann/Projects/hof/utilities/autofill/inputs.js","/Users/robertmccann/Projects/hof/utilities/test-data/index.js","/Users/robertmccann/Projects/hof/utilities/countries.js","/Users/robertmccann/Projects/hof/utilities/helpers/index.js","/Users/robertmccann/Projects/hof/utilities/reqres/index.js","/Users/robertmccann/Projects/hof/config/sanitisation-rules.js","/Users/robertmccann/Projects/hof/controller/formatting/formatters.js","/Users/robertmccann/Projects/hof/controller/index.js","/Users/robertmccann/Projects/hof/controller/behaviour-session.js","/Users/robertmccann/Projects/hof/controller/behaviour-hooks.js","/Users/robertmccann/Projects/hof/controller/controller.js","/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/robertmccann/Projects/hof/frontend/template-mixins/mixins/index.js","/Users/robertmccann/Projects/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/robertmccann/Projects/hof/frontend/template-mixins/mixins/render.js","/Users/robertmccann/Projects/hof/frontend/template-mixins/mixins/helpers.js","/Users/robertmccann/Projects/hof/index.js","/Users/robertmccann/Projects/hof/frontend/index.js","/Users/robertmccann/Projects/hof/frontend/govuk-template/index.js","/Users/robertmccann/Projects/hof/frontend/govuk-template/build/index.js","/Users/robertmccann/Projects/hof/frontend/govuk-template/build/config.js","/Users/robertmccann/Projects/hof/frontend/template-partials/index.js","/Users/robertmccann/Projects/hof/frontend/template-partials/translations/index.js","/Users/robertmccann/Projects/hof/frontend/themes/index.js","/Users/robertmccann/Projects/hof/frontend/themes/gov-uk/index.js","/Users/robertmccann/Projects/hof/frontend/toolkit/index.js","/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/validation.js","/Users/robertmccann/Projects/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/robertmccann/Projects/hof/middleware/index.js","/Users/robertmccann/Projects/hof/middleware/cookies.js","/Users/robertmccann/Projects/hof/middleware/errors.js","/Users/robertmccann/Projects/hof/middleware/not-found.js","/Users/robertmccann/Projects/hof/middleware/deep-translate.js","/Users/robertmccann/Projects/hof/lib/markdown.js","/Users/robertmccann/Projects/hof/lib/router.js","/Users/robertmccann/Projects/hof/wizard/index.js","/Users/robertmccann/Projects/hof/wizard/behaviours/index.js","/Users/robertmccann/Projects/hof/wizard/behaviours/complete.js","/Users/robertmccann/Projects/hof/wizard/util/constants.js","/Users/robertmccann/Projects/hof/lib/helpers.js","/Users/robertmccann/Projects/hof/lib/health.js","/Users/robertmccann/Projects/hof/lib/serve-static.js","/Users/robertmccann/Projects/hof/lib/ga-tag.js","/Users/robertmccann/Projects/hof/lib/sessions.js","/Users/robertmccann/Projects/hof/lib/settings.js","/Users/robertmccann/Projects/hof/lib/logger.js","/Users/robertmccann/Projects/hof/build/index.js","/Users/robertmccann/Projects/hof/config/builder-defaults.js","/Users/robertmccann/Projects/hof/transpiler/index.js","/Users/robertmccann/Projects/hof/transpiler/lib/compile.js","/Users/robertmccann/Projects/hof/transpiler/lib/build.js","/Users/robertmccann/Projects/hof/transpiler/lib/expand-dirs.js","/Users/robertmccann/Projects/hof/transpiler/lib/aggregate.js","/Users/robertmccann/Projects/hof/transpiler/lib/write-files.js","/Users/robertmccann/Projects/hof/model/apis/index.js","/Users/robertmccann/Projects/hof/model/apis/html-to-pdf-converter.js","/Users/robertmccann/Projects/hof/wizard/model.js","/Users/robertmccann/Projects/hof/wizard/middleware/back-links.js","/Users/robertmccann/Projects/hof/wizard/util/helpers.js","/Users/robertmccann/Projects/hof/wizard/middleware/check-complete.js","/Users/robertmccann/Projects/hof/wizard/middleware/check-progress.js","/Users/robertmccann/Projects/hof/wizard/middleware/check-session.js","/Users/robertmccann/Projects/hof/wizard/middleware/csrf.js","/Users/robertmccann/Projects/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/fields.js","/Users/robertmccann/Projects/hof/sandbox/test/helpers/utilities.js","/Users/robertmccann/Projects/hof/sandbox/apps/sandbox/behaviours/international-number.js"]}
|
@@ -1,224 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"fields": {
|
3
|
-
"landing-page-radio": {
|
4
|
-
"legend": "Which form would you like to explore?",
|
5
|
-
"options": {
|
6
|
-
"basic-form": {
|
7
|
-
"label": "Basic form"
|
8
|
-
},
|
9
|
-
"complex-form": {
|
10
|
-
"label": "Complex form"
|
11
|
-
},
|
12
|
-
"build-your-own-form": {
|
13
|
-
"label": "Build your own form"
|
14
|
-
}
|
15
|
-
}
|
16
|
-
},
|
17
|
-
"name": {
|
18
|
-
"label": "Full name"
|
19
|
-
},
|
20
|
-
"dateOfBirth": {
|
21
|
-
"legend": "Date of birth",
|
22
|
-
"hint": "For example, 31 10 1990"
|
23
|
-
},
|
24
|
-
"building": {
|
25
|
-
"label": "Building and street"
|
26
|
-
},
|
27
|
-
"street": {
|
28
|
-
"label": "Address line 2"
|
29
|
-
},
|
30
|
-
"townOrCity": {
|
31
|
-
"label": "Town or city"
|
32
|
-
},
|
33
|
-
"postcode": {
|
34
|
-
"label": "Postcode"
|
35
|
-
},
|
36
|
-
"incomeTypes": {
|
37
|
-
"label": "Sources of income",
|
38
|
-
"legend": "Select the options where you receive income from",
|
39
|
-
"hint": "Select all options that apply to you.",
|
40
|
-
"options": {
|
41
|
-
"salary": {
|
42
|
-
"label": "Salary"
|
43
|
-
},
|
44
|
-
"universal_credit": {
|
45
|
-
"label": "Universal Credit"
|
46
|
-
},
|
47
|
-
"child_benefit": {
|
48
|
-
"label": "Child Benefit"
|
49
|
-
},
|
50
|
-
"housing_benefit": {
|
51
|
-
"label": "Housing Benefit"
|
52
|
-
},
|
53
|
-
"other": {
|
54
|
-
"label": "Other"
|
55
|
-
}
|
56
|
-
}
|
57
|
-
},
|
58
|
-
"countryOfHearing": {
|
59
|
-
"label": "Country of hearing",
|
60
|
-
"options": {
|
61
|
-
"englandAndWales": {
|
62
|
-
"label": "England and Wales"
|
63
|
-
},
|
64
|
-
"scotland": {
|
65
|
-
"label": "Scotland"
|
66
|
-
},
|
67
|
-
"northernIreland": {
|
68
|
-
"label": "Northern Ireland"
|
69
|
-
}
|
70
|
-
}
|
71
|
-
},
|
72
|
-
"email": {
|
73
|
-
"label": "Email address"
|
74
|
-
},
|
75
|
-
"phone": {
|
76
|
-
"label": "Phone number",
|
77
|
-
"hint": "International phone numbers require the international dialling code, for example +33235066182"
|
78
|
-
},
|
79
|
-
"int-phone-number": {
|
80
|
-
"legend": "International phone number"
|
81
|
-
},
|
82
|
-
"complaintDetails": {
|
83
|
-
"label": "Complaint details"
|
84
|
-
},
|
85
|
-
"countrySelect": {
|
86
|
-
"label": "Select a country",
|
87
|
-
"hint": "Start to type the country name and options will appear"
|
88
|
-
},
|
89
|
-
"appealStages": {
|
90
|
-
"label": "Appeal stage",
|
91
|
-
"options": {
|
92
|
-
"null": "Select..."
|
93
|
-
}
|
94
|
-
}
|
95
|
-
},
|
96
|
-
"journey": {
|
97
|
-
"header": "HOF Bootstrap Sandbox Form"
|
98
|
-
},
|
99
|
-
"pages": {
|
100
|
-
"landing-page": {
|
101
|
-
"header": "Landing page",
|
102
|
-
"intro": "Choose one of the options below and press continue."
|
103
|
-
},
|
104
|
-
"build-your-own-form": {
|
105
|
-
"title": "Build your own form",
|
106
|
-
"subheader": "Access the build your own form guidance link"
|
107
|
-
},
|
108
|
-
"name": {
|
109
|
-
"header": "What is your full name?"
|
110
|
-
},
|
111
|
-
"dob": {
|
112
|
-
"header": "What is your date of birth?"
|
113
|
-
},
|
114
|
-
"address": {
|
115
|
-
"header": "What is your address in the UK?",
|
116
|
-
"intro": "If you have no fixed address, enter an address where we can contact you."
|
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
|
-
},
|
130
|
-
"phone-number": {
|
131
|
-
"header": "Enter your phone number"
|
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
|
-
},
|
141
|
-
"confirm": {
|
142
|
-
"header": "Check your answers before submitting your application.",
|
143
|
-
"sections": {
|
144
|
-
"applicantsDetails": {
|
145
|
-
"header": "Applicant's details"
|
146
|
-
},
|
147
|
-
"address": {
|
148
|
-
"header": "Address"
|
149
|
-
},
|
150
|
-
"income": {
|
151
|
-
"header": "Income"
|
152
|
-
},
|
153
|
-
"appealDetails": {
|
154
|
-
"header": "Appeal details"
|
155
|
-
},
|
156
|
-
"countrySelect": {
|
157
|
-
"header": "Country of residence"
|
158
|
-
},
|
159
|
-
"contactDetails": {
|
160
|
-
"header": "Contact details"
|
161
|
-
},
|
162
|
-
"complaintDetails": {
|
163
|
-
"header": "Complaint details"
|
164
|
-
}
|
165
|
-
}
|
166
|
-
},
|
167
|
-
"confirmation": {
|
168
|
-
"title": "Application sent",
|
169
|
-
"alert": "Application sent",
|
170
|
-
"subheader": "What happens next",
|
171
|
-
"content": "We’ll contact you with the decision of your application or if we need more information from you."
|
172
|
-
}
|
173
|
-
},
|
174
|
-
"validation": {
|
175
|
-
"landing-page-radio": {
|
176
|
-
"required": "Select an option below and press continue"
|
177
|
-
},
|
178
|
-
"name": {
|
179
|
-
"default": "Enter your full name"
|
180
|
-
},
|
181
|
-
"dateOfBirth": {
|
182
|
-
"default": "Enter your date of birth in the correct format; for example, 31 10 1990",
|
183
|
-
"after": "Enter a date after 1 1 1900",
|
184
|
-
"before": "Enter a date that is in the past"
|
185
|
-
},
|
186
|
-
"building": {
|
187
|
-
"default": "Enter details of your building and street"
|
188
|
-
},
|
189
|
-
"townOrCity": {
|
190
|
-
"default": "Enter a town or city",
|
191
|
-
"regex": "Enter a town or city without including digits"
|
192
|
-
},
|
193
|
-
"postcode": {
|
194
|
-
"default": "Enter your postcode"
|
195
|
-
},
|
196
|
-
"incomeTypes": {
|
197
|
-
"default": "Select all options that apply to you."
|
198
|
-
},
|
199
|
-
"countryOfHearing": {
|
200
|
-
"default": "Select where the appeal hearing is to be held"
|
201
|
-
},
|
202
|
-
"countrySelect": {
|
203
|
-
"default": "Enter a valid country of residence",
|
204
|
-
"required": "Enter your country of residence"
|
205
|
-
},
|
206
|
-
"email": {
|
207
|
-
"default": "Enter your email address in the correct format"
|
208
|
-
},
|
209
|
-
"phone": {
|
210
|
-
"default": "Enter your phone number"
|
211
|
-
},
|
212
|
-
"int-phone-number": {
|
213
|
-
"required": "Enter an international phone number",
|
214
|
-
"internationalPhoneNumber": "Enter a valid international phone number"
|
215
|
-
},
|
216
|
-
"complaintDetails": {
|
217
|
-
"default": "Enter details about why you are making a complaint",
|
218
|
-
"maxlength": "Keep to the 5000 character limit"
|
219
|
-
},
|
220
|
-
"appealStages": {
|
221
|
-
"required": "Select an appeal stage from the list"
|
222
|
-
}
|
223
|
-
}
|
224
|
-
}
|