hof 22.13.0-frontend-v4-beta.1 → 22.13.0-frontend-v4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/build/tasks/images/index.js +2 -3
- package/build/tasks/watch/index.js +0 -1
- package/frontend/govuk-template/build/config.js +1 -0
- package/frontend/govuk-template/build/govuk_template.html +9 -9
- package/frontend/govuk-template/govuk_template_generated.html +9 -9
- package/frontend/template-mixins/mixins/template-mixins.js +1 -1
- package/frontend/template-mixins/partials/forms/checkbox.html +1 -1
- package/package.json +1 -1
- package/sandbox/server.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## 2025-12-09, Version
|
|
1
|
+
## 2025-12-09, Version 22.13.0 (Stable), @Rhodine-orleans-lindsay
|
|
2
2
|
### Changed
|
|
3
3
|
- Updated cookie banner view to follow GOV.UK design system. Updated cookieSettings.js to allow for different confirmation text based on whether cookies were accepted or rejected
|
|
4
4
|
- Added inputmode='numeric' to date component
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const chalk = require('chalk');
|
|
6
6
|
const spawn = require('../../lib/spawn');
|
|
7
|
-
const mkdir = require('../../lib/mkdir');
|
|
8
7
|
|
|
9
8
|
module.exports = config => {
|
|
10
9
|
if (!config.images) {
|
|
@@ -28,11 +27,11 @@ module.exports = config => {
|
|
|
28
27
|
console.log(`${chalk.yellow('warning')}: Skipping missing images folder: ${src}`);
|
|
29
28
|
return Promise.resolve();
|
|
30
29
|
}
|
|
31
|
-
return
|
|
32
|
-
.then(() => spawn('cp', ['-r', `${src}/.`, imagesOutput]));
|
|
30
|
+
return spawn('cp', ['-r', `${src}/.`, imagesOutput]);
|
|
33
31
|
}))
|
|
34
32
|
.catch(e => {
|
|
35
33
|
if (e.code !== 'ENOENT') {
|
|
34
|
+
console.error(`${chalk.red('error')}: Failed to copy images - ${e.message}`);
|
|
36
35
|
throw e;
|
|
37
36
|
} else {
|
|
38
37
|
console.log(`${chalk.yellow('warning')}: no images directory found at ${config.images.src}`);
|
|
@@ -125,7 +125,6 @@ module.exports = config => {
|
|
|
125
125
|
const rootDir = require('path').resolve(__dirname, '../../../');
|
|
126
126
|
ignored.push(`${rootDir}/frontend/govuk-template/govuk_template_generated.html`);
|
|
127
127
|
watchLocation = [rootDir, '.'];
|
|
128
|
-
process.env.SESSION_SECRET = require('crypto').randomBytes(16).toString('hex');
|
|
129
128
|
}
|
|
130
129
|
|
|
131
130
|
const watcher = chokidar.watch(watchLocation, { ignored });
|
|
@@ -4,6 +4,7 @@ module.exports = {
|
|
|
4
4
|
htmlLang: '{{htmlLang}}',
|
|
5
5
|
assetPath: '{{govukAssetPath}}',
|
|
6
6
|
assetRebrandPath: '{{govukAssetPath}}rebrand/',
|
|
7
|
+
themeColour: '#1d70b8',
|
|
7
8
|
afterHeader: '{{$afterHeader}}{{/afterHeader}}',
|
|
8
9
|
bodyClasses: '{{$bodyClasses}}{{/bodyClasses}}',
|
|
9
10
|
bodyStart: '{{$bodyStart}}{{/bodyStart}}',
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
<meta charset="utf-8" />
|
|
7
7
|
<title>{{ pageTitle }}</title>
|
|
8
8
|
{{{ head }}}
|
|
9
|
-
|
|
10
|
-
<meta name="theme-color" content="
|
|
11
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
12
|
-
<link rel="icon" sizes="48x48" href="{{assetRebrandPath}}images/favicon.ico">
|
|
13
|
-
<link rel="icon" sizes="any" href="{{assetRebrandPath}}images/favicon.svg" type="image/svg+xml">
|
|
14
|
-
<link rel="mask-icon" href="{{assetRebrandPath}}images/govuk-icon-mask.svg" color="
|
|
15
|
-
<link rel="apple-touch-icon" href="{{assetRebrandPath}}images/govuk-icon-180.png">
|
|
16
|
-
<link rel="manifest" href="{{assetRebrandPath}}manifest.json">
|
|
17
|
-
<meta property="og:image" content="{{assetRebrandPath}}images/govuk-opengraph-image.png">
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
10
|
+
<meta name="theme-color" content="{{themeColour}}">
|
|
11
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
12
|
+
<link rel="icon" sizes="48x48" href="{{assetRebrandPath}}images/favicon.ico">
|
|
13
|
+
<link rel="icon" sizes="any" href="{{assetRebrandPath}}images/favicon.svg" type="image/svg+xml">
|
|
14
|
+
<link rel="mask-icon" href="{{assetRebrandPath}}images/govuk-icon-mask.svg" color="{{themeColour}}">
|
|
15
|
+
<link rel="apple-touch-icon" href="{{assetRebrandPath}}images/govuk-icon-180.png">
|
|
16
|
+
<link rel="manifest" href="{{assetRebrandPath}}manifest.json">
|
|
17
|
+
<meta property="og:image" content="{{assetRebrandPath}}images/govuk-opengraph-image.png">
|
|
18
18
|
</head>
|
|
19
19
|
|
|
20
20
|
<body class="{{ bodyClasses }} govuk-template__body js-enabled" >
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
<meta charset="utf-8" />
|
|
7
7
|
<title>{{$pageTitle}}{{/pageTitle}}</title>
|
|
8
8
|
{{$head}}{{/head}}
|
|
9
|
-
|
|
10
|
-
<meta name="theme-color" content="#1d70b8">
|
|
11
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
12
|
-
<link rel="icon" sizes="48x48" href="{{govukAssetPath}}rebrand/images/favicon.ico">
|
|
13
|
-
<link rel="icon" sizes="any" href="{{govukAssetPath}}rebrand/images/favicon.svg" type="image/svg+xml">
|
|
14
|
-
<link rel="mask-icon" href="{{govukAssetPath}}rebrand/images/govuk-icon-mask.svg" color="#1d70b8">
|
|
15
|
-
<link rel="apple-touch-icon" href="{{govukAssetPath}}rebrand/images/govuk-icon-180.png">
|
|
16
|
-
<link rel="manifest" href="{{govukAssetPath}}rebrand/manifest.json">
|
|
17
|
-
<meta property="og:image" content="{{govukAssetPath}}rebrand/images/govuk-opengraph-image.png">
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
10
|
+
<meta name="theme-color" content="#1d70b8">
|
|
11
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
12
|
+
<link rel="icon" sizes="48x48" href="{{govukAssetPath}}rebrand/images/favicon.ico">
|
|
13
|
+
<link rel="icon" sizes="any" href="{{govukAssetPath}}rebrand/images/favicon.svg" type="image/svg+xml">
|
|
14
|
+
<link rel="mask-icon" href="{{govukAssetPath}}rebrand/images/govuk-icon-mask.svg" color="#1d70b8">
|
|
15
|
+
<link rel="apple-touch-icon" href="{{govukAssetPath}}rebrand/images/govuk-icon-180.png">
|
|
16
|
+
<link rel="manifest" href="{{govukAssetPath}}rebrand/manifest.json">
|
|
17
|
+
<meta property="og:image" content="{{govukAssetPath}}rebrand/images/govuk-opengraph-image.png">
|
|
18
18
|
</head>
|
|
19
19
|
|
|
20
20
|
<body class="{{$bodyClasses}}{{/bodyClasses}} govuk-template__body js-enabled" >
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div id="{{key}}-group" class="govuk-form-group {{#compound}} form-group-compound{{/compound}}{{#formGroupClassName}} {{formGroupClassName}}{{/formGroupClassName}}{{#error}} govuk-form-group--error{{/error}}">
|
|
2
2
|
{{#error}}
|
|
3
|
-
<p class="govuk-error-message" aria-hidden="true">
|
|
3
|
+
<p id="{{key}}-error" class="govuk-error-message" aria-hidden="true">
|
|
4
4
|
<span class="govuk-visually-hidden">Error:</span> {{error.message}}
|
|
5
5
|
</p>
|
|
6
6
|
{{/error}}
|
package/package.json
CHANGED