hof 20.3.6-timeout-beta → 20.3.6
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +12 -12
- package/frontend/template-partials/translations/src/en/buttons.json +0 -1
- package/frontend/template-partials/translations/src/en/errors.json +0 -4
- package/frontend/template-partials/views/layout.html +1 -2
- package/frontend/template-partials/views/partials/warn.html +7 -0
- package/frontend/themes/gov-uk/client-js/index.js +0 -1
- package/package.json +1 -1
- package/sandbox/assets/scss/app.scss +1 -115
- package/sandbox/package.json +1 -1
- package/sandbox/yarn.lock +1 -6
- package/.nyc_output/2194bc4f-7454-4356-80e2-e52a7dc798aa.json +0 -1
- package/.nyc_output/processinfo/2194bc4f-7454-4356-80e2-e52a7dc798aa.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/frontend/govuk-template/govuk_template_generated.html +0 -103
- package/frontend/template-partials/views/partials/session-timeout-warning.html +0 -27
- package/frontend/themes/gov-uk/client-js/dialog/index.js +0 -359
- package/frontend/themes/gov-uk/client-js/dialog/utils.js +0 -114
- package/middleware/session-timeout.js +0 -23
- package/sandbox/apps/sandbox/behaviours/extend-session.js +0 -9
- package/sandbox/apps/sandbox/translations/en/default.json +0 -220
- package/sandbox/public/css/app.css +0 -9496
- 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 -46864
@@ -1,23 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
module.exports = (options, timers) => {
|
4
|
-
return (req, res, next) => {
|
5
|
-
// eslint-disable-next-line no-console
|
6
|
-
console.log(req.url, 'SESSION TIMOUT:', options.session);
|
7
|
-
if (timers.length >= 2) {
|
8
|
-
// eslint-disable-next-line no-console
|
9
|
-
console.log(timers);
|
10
|
-
for (const t of timers) {
|
11
|
-
clearTimeout(t);
|
12
|
-
}
|
13
|
-
}
|
14
|
-
timers.push(setTimeout(() => {
|
15
|
-
// eslint-disable-next-line no-console,no-alert
|
16
|
-
console.log(req.originalUrl);
|
17
|
-
const err = new Error('Session will expire soon');
|
18
|
-
err.code = 'SESSION_TIMEOUT_WARNING';
|
19
|
-
return next(err);
|
20
|
-
}, 1000 * 10));
|
21
|
-
next();
|
22
|
-
};
|
23
|
-
};
|
@@ -1,220 +0,0 @@
|
|
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": "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": "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
|
-
}
|