hof 23.0.0-frontend-v4-beta.1 → 23.0.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.
@@ -5,7 +5,7 @@ module.exports = {
5
5
  requests: {
6
6
  active: false,
7
7
  windowSizeInMinutes: 5,
8
- maxWindowRequestCount: 100,
8
+ maxWindowRequestCount: 1000,
9
9
  windowLogIntervalInMinutes: 1,
10
10
  errCode: 'DDOS_RATE_LIMIT'
11
11
  },
@@ -10,7 +10,7 @@ const basedir = path.dirname(require.resolve('govuk-frontend/package.json'));
10
10
  const setup = (opts, router) => {
11
11
  buildTemplateLayout();
12
12
  const options = opts || {};
13
- options.path = options.path || '/assets/rebrand';
13
+ options.path = options.path || '/assets';
14
14
 
15
15
  router.use(options.path, servestatic(path.join(basedir, './govuk/assets/rebrand'), options));
16
16
  router.use((req, res, next) => {
package/index.js CHANGED
@@ -239,7 +239,7 @@ function bootstrap(options) {
239
239
  }
240
240
 
241
241
  // Set up routing so <YOUR-SITE-URL>/assets are served from /node_modules/govuk-frontend/govuk/assets
242
- app.use('/assets', express.static(path.join(__dirname, '/node_modules/govuk-frontend/govuk/assets')));
242
+ app.use('/assets', express.static(path.join(__dirname, '/node_modules/govuk-frontend/govuk/assets/rebrand')));
243
243
  // Check if service has been paused and redirect accordingly
244
244
  const bypassPaths = ['/assets', '/healthcheck', '/service-unavailable'];
245
245
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "23.0.0-frontend-v4-beta.1",
4
+ "version": "23.0.0-frontend-v4-beta.2",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "scripts": {
10
10
  "start": "node server.js",
11
- "start:dev": "HOF_SANDBOX=true ../bin/hof-build watch --env",
11
+ "start:dev": "HOF_SANDBOX=true ../bin/hof-build watch",
12
12
  "dev": "yarn && GA_TAG=test nodemon server",
13
13
  "build": "HOF_SANDBOX=true ../bin/hof-build",
14
14
  "postinstall": "yarn run build"
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="162" height="30" fill="currentcolor" aria-label="GOV.UK" class="govuk-header__logotype" viewBox="0 0 324 60"><title>GOV.UK</title><circle cx="20" cy="17.6" r="3.7"/><circle cx="10.2" cy="23.5" r="3.7"/><circle cx="3.7" cy="33.2" r="3.7"/><circle cx="31.7" cy="30.6" r="3.7"/><circle cx="43.3" cy="17.6" r="3.7"/><circle cx="53.2" cy="23.5" r="3.7"/><circle cx="59.7" cy="33.2" r="3.7"/><circle cx="31.7" cy="30.6" r="3.7"/><path d="M33.1 9.8c.2-.1.3-.3.5-.5l4.6 2.4V4.9l-4.6 1.5c-.1-.2-.3-.3-.5-.5L35 0h-6.7l1.9 5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6 8c-.9 2.8 1.2 5.7 4.1 5.7 3 0 5.1-2.9 4.1-5.7l-2.6-8ZM37 37.9s-3.4 3.8-4.1 6.1c2.2 0 4.2-.5 6.4-2.8l-.7 8.5c-2-2.8-4.4-4.1-5.7-3.8.1 3.1.5 6.7 5.8 7.2 3.7.3 6.7-1.5 7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5 2.4-6.1 4.9-3.2-1.9-4.5-1.8-7.7 2.4-10.9 3 4 2.6 7.3-1.2 11.1 2.4-1.3 6.2 0 4 4.6-1.2-2.8-3.7-2.2-4.2.2-.3 1.7.7 3.7 3 4.2 1.9.3 4.7-.9 7-5.9-1.3 0-2.4.7-3.9 1.7l2.4-8c.6 2.3 1.4 3.7 2.2 4.5.6-1.6.5-2.8 0-5.3l5 1.8c-2.6 3.6-5.2 8.7-7.3 17.5-7.4-1.1-15.7-1.7-24.5-1.7s-17.1.6-24.5 1.7C5.2 51.1 2.6 46.1 0 42.5l5-1.8c-.5 2.5-.6 3.7 0 5.3.8-.8 1.6-2.3 2.2-4.5l2.4 8c-1.5-1-2.6-1.7-3.9-1.7 2.3 5 5.2 6.2 7 5.9 2.3-.4 3.3-2.4 3-4.2-.5-2.4-3-3.1-4.2-.2-2.2-4.6 1.6-6 4-4.6-3.7-3.7-4.2-7.1-1.2-11.1 4.2 3.2 4.3 6.4 2.4 10.9 2.5-2.8 6.3-1.3 4.9 3.2-1.8-2.7-4.1-1-3.7 1.6.3 2.3 3.3 4.1 7 3.8 5.4-.5 5.7-4.2 5.8-7.2-1.3-.2-3.7 1-5.7 3.8l-.7-8.5c2.2 2.3 4.2 2.7 6.4 2.8-.7-2.3-4.1-6.1-4.1-6.1h10.6Z"/><circle cx="226" cy="36" r="7.3" class="govuk-logo-dot"/><path d="M93.94 41.25c.4 1.81 1.2 3.21 2.21 4.62 1 1.4 2.21 2.41 3.61 3.21s3.21 1.2 5.22 1.2 3.61-.4 4.82-1c1.4-.6 2.41-1.4 3.21-2.41.8-1 1.4-2.01 1.61-3.01s.4-2.01.4-3.01v.14h-10.86v-7.02h20.07v24.08h-8.03v-5.56c-.6.8-1.38 1.61-2.19 2.41-.8.8-1.81 1.2-2.81 1.81-1 .4-2.21.8-3.41 1.2s-2.41.4-3.81.4a18.56 18.56 0 0 1-14.65-6.63c-1.6-2.01-3.01-4.41-3.81-7.02s-1.4-5.62-1.4-8.83.4-6.02 1.4-8.83a20.45 20.45 0 0 1 19.46-13.65c3.21 0 4.01.2 5.82.8 1.81.4 3.61 1.2 5.02 2.01 1.61.8 2.81 2.01 4.01 3.21s2.21 2.61 2.81 4.21l-7.63 4.41c-.4-1-1-1.81-1.61-2.61-.6-.8-1.4-1.4-2.21-2.01-.8-.6-1.81-1-2.81-1.4s-2.21-.4-3.61-.4c-2.01 0-3.81.4-5.22 1.2-1.4.8-2.61 1.81-3.61 3.21s-1.61 2.81-2.21 4.62c-.4 1.81-.6 3.71-.6 5.42s.8 5.22.8 5.22Zm57.8-27.9c3.21 0 6.22.6 8.63 1.81 2.41 1.2 4.82 2.81 6.62 4.82S170.2 24.39 171 27s1.4 5.62 1.4 8.83-.4 6.02-1.4 8.83-2.41 5.02-4.01 7.02-4.01 3.61-6.62 4.82-5.42 1.81-8.63 1.81-6.22-.6-8.63-1.81-4.82-2.81-6.42-4.82-3.21-4.41-4.01-7.02-1.4-5.62-1.4-8.83.4-6.02 1.4-8.83 2.41-5.02 4.01-7.02 4.01-3.61 6.42-4.82 5.42-1.81 8.63-1.81m0 36.73c1.81 0 3.61-.4 5.02-1s2.61-1.81 3.61-3.01 1.81-2.81 2.21-4.41c.4-1.81.8-3.61.8-5.62 0-2.21-.2-4.21-.8-6.02s-1.2-3.21-2.21-4.62c-1-1.2-2.21-2.21-3.61-3.01s-3.21-1-5.02-1-3.61.4-5.02 1c-1.4.8-2.61 1.81-3.61 3.01s-1.81 2.81-2.21 4.62-.8 3.61-.8 5.62c0 2.41.2 4.21.8 6.02.4 1.81 1.2 3.21 2.21 4.41s2.21 2.21 3.61 3.01 3.21 1 5.02 1m36.32 7.96-12.24-44.15h9.83l8.43 32.77h.4l8.23-32.77h9.83L200.3 58.04zm74.14-7.96c2.18 0 3.51-.6 3.51-.6 1.2-.6 2.01-1 2.81-1.81s1.4-1.81 1.81-2.81a13 13 0 0 0 .8-4.01V13.9h8.63v28.15c0 2.41-.4 4.62-1.4 6.62-.8 2.01-2.21 3.61-3.61 5.02s-3.41 2.41-5.62 3.21-4.62 1.2-7.02 1.2-5.02-.4-7.02-1.2c-2.21-.8-4.01-1.81-5.62-3.21s-2.81-3.01-3.61-5.02-1.4-4.21-1.4-6.62V13.9h8.63v26.95c0 1.61.2 3.01.8 4.01.4 1.2 1.2 2.21 2.01 2.81.8.8 1.81 1.4 2.81 1.81 0 0 1.34.6 3.51.6Zm34.22-36.18v18.92l15.65-18.92h10.82l-15.03 17.32 16.03 26.83h-10.21l-11.44-20.21-5.62 6.22v13.99h-8.83V13.9"/></svg>
@@ -1,25 +0,0 @@
1
- <svg
2
- focusable="false"
3
- role="img"
4
- xmlns="http://www.w3.org/2000/svg"
5
- viewBox="0 0 324 60"
6
- height="30"
7
- width="162"
8
- fill="currentcolor"
9
- class="govuk-header__logotype"
10
- aria-label="GOV.UK">
11
- <title>GOV.UK</title>
12
- <g>
13
- <circle cx="20" cy="17.6" r="3.7"></circle>
14
- <circle cx="10.2" cy="23.5" r="3.7"></circle>
15
- <circle cx="3.7" cy="33.2" r="3.7"></circle>
16
- <circle cx="31.7" cy="30.6" r="3.7"></circle>
17
- <circle cx="43.3" cy="17.6" r="3.7"></circle>
18
- <circle cx="53.2" cy="23.5" r="3.7"></circle>
19
- <circle cx="59.7" cy="33.2" r="3.7"></circle>
20
- <circle cx="31.7" cy="30.6" r="3.7"></circle>
21
- <path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6.5-2.8,0-5.3l5,1.8c-2.6,3.6-5.2,8.7-7.3,17.5-7.4-1.1-15.7-1.7-24.5-1.7h0c-8.8,0-17.1.6-24.5,1.7-2.1-8.9-4.7-13.9-7.3-17.5l5-1.8c-.5,2.5-.6,3.7,0,5.3.8-.8,1.6-2.3,2.2-4.5l2.4,8c-1.5-1-2.6-1.7-3.9-1.7,2.3,5,5.2,6.2,7,5.9,2.3-.4,3.3-2.4,3-4.2-.5-2.4-3-3.1-4.2-.2-2.2-4.6,1.6-6,4-4.6-3.7-3.7-4.2-7.1-1.2-11.1,4.2,3.2,4.3,6.4,2.4,10.9,2.5-2.8,6.3-1.3,4.9,3.2-1.8-2.7-4.1-1-3.7,1.6.3,2.3,3.3,4.1,7,3.8,5.4-.5,5.7-4.2,5.8-7.2-1.3-.2-3.7,1-5.7,3.8l-.7-8.5c2.2,2.3,4.2,2.7,6.4,2.8-.7-2.3-4.1-6.1-4.1-6.1h10.6,0Z"></path>
22
- </g>
23
- <circle class="govuk-logo-dot" cx="226" cy="36" r="7.3"></circle>
24
- <path d="M93.94 41.25c.4 1.81 1.2 3.21 2.21 4.62 1 1.4 2.21 2.41 3.61 3.21s3.21 1.2 5.22 1.2 3.61-.4 4.82-1c1.4-.6 2.41-1.4 3.21-2.41.8-1 1.4-2.01 1.61-3.01s.4-2.01.4-3.01v.14h-10.86v-7.02h20.07v24.08h-8.03v-5.56c-.6.8-1.38 1.61-2.19 2.41-.8.8-1.81 1.2-2.81 1.81-1 .4-2.21.8-3.41 1.2s-2.41.4-3.81.4a18.56 18.56 0 0 1-14.65-6.63c-1.6-2.01-3.01-4.41-3.81-7.02s-1.4-5.62-1.4-8.83.4-6.02 1.4-8.83a20.45 20.45 0 0 1 19.46-13.65c3.21 0 4.01.2 5.82.8 1.81.4 3.61 1.2 5.02 2.01 1.61.8 2.81 2.01 4.01 3.21s2.21 2.61 2.81 4.21l-7.63 4.41c-.4-1-1-1.81-1.61-2.61-.6-.8-1.4-1.4-2.21-2.01-.8-.6-1.81-1-2.81-1.4-1-.4-2.21-.4-3.61-.4-2.01 0-3.81.4-5.22 1.2-1.4.8-2.61 1.81-3.61 3.21s-1.61 2.81-2.21 4.62c-.4 1.81-.6 3.71-.6 5.42s.8 5.22.8 5.22Zm57.8-27.9c3.21 0 6.22.6 8.63 1.81 2.41 1.2 4.82 2.81 6.62 4.82S170.2 24.39 171 27s1.4 5.62 1.4 8.83-.4 6.02-1.4 8.83-2.41 5.02-4.01 7.02-4.01 3.61-6.62 4.82-5.42 1.81-8.63 1.81-6.22-.6-8.63-1.81-4.82-2.81-6.42-4.82-3.21-4.41-4.01-7.02-1.4-5.62-1.4-8.83.4-6.02 1.4-8.83 2.41-5.02 4.01-7.02 4.01-3.61 6.42-4.82 5.42-1.81 8.63-1.81Zm0 36.73c1.81 0 3.61-.4 5.02-1s2.61-1.81 3.61-3.01 1.81-2.81 2.21-4.41c.4-1.81.8-3.61.8-5.62 0-2.21-.2-4.21-.8-6.02s-1.2-3.21-2.21-4.62c-1-1.2-2.21-2.21-3.61-3.01s-3.21-1-5.02-1-3.61.4-5.02 1c-1.4.8-2.61 1.81-3.61 3.01s-1.81 2.81-2.21 4.62c-.4 1.81-.8 3.61-.8 5.62 0 2.41.2 4.21.8 6.02.4 1.81 1.2 3.21 2.21 4.41s2.21 2.21 3.61 3.01c1.4.8 3.21 1 5.02 1Zm36.32 7.96-12.24-44.15h9.83l8.43 32.77h.4l8.23-32.77h9.83L200.3 58.04h-12.24Zm74.14-7.96c2.18 0 3.51-.6 3.51-.6 1.2-.6 2.01-1 2.81-1.81s1.4-1.81 1.81-2.81a13 13 0 0 0 .8-4.01V13.9h8.63v28.15c0 2.41-.4 4.62-1.4 6.62-.8 2.01-2.21 3.61-3.61 5.02s-3.41 2.41-5.62 3.21-4.62 1.2-7.02 1.2-5.02-.4-7.02-1.2c-2.21-.8-4.01-1.81-5.62-3.21s-2.81-3.01-3.61-5.02-1.4-4.21-1.4-6.62V13.9h8.63v26.95c0 1.61.2 3.01.8 4.01.4 1.2 1.2 2.21 2.01 2.81.8.8 1.81 1.4 2.81 1.81 0 0 1.34.6 3.51.6Zm34.22-36.18v18.92l15.65-18.92h10.82l-15.03 17.32 16.03 26.83h-10.21l-11.44-20.21-5.62 6.22v13.99h-8.83V13.9"></path>
25
- </svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="162" height="30" fill="currentcolor" aria-label="GOV.UK" class="govuk-header__logotype" viewBox="0 0 324 60"><title>GOV.UK</title><circle cx="20" cy="17.6" r="3.7"/><circle cx="10.2" cy="23.5" r="3.7"/><circle cx="3.7" cy="33.2" r="3.7"/><circle cx="31.7" cy="30.6" r="3.7"/><circle cx="43.3" cy="17.6" r="3.7"/><circle cx="53.2" cy="23.5" r="3.7"/><circle cx="59.7" cy="33.2" r="3.7"/><circle cx="31.7" cy="30.6" r="3.7"/><path d="M33.1 9.8c.2-.1.3-.3.5-.5l4.6 2.4V4.9l-4.6 1.5c-.1-.2-.3-.3-.5-.5L35 0h-6.7l1.9 5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6 8c-.9 2.8 1.2 5.7 4.1 5.7 3 0 5.1-2.9 4.1-5.7l-2.6-8ZM37 37.9s-3.4 3.8-4.1 6.1c2.2 0 4.2-.5 6.4-2.8l-.7 8.5c-2-2.8-4.4-4.1-5.7-3.8.1 3.1.5 6.7 5.8 7.2 3.7.3 6.7-1.5 7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5 2.4-6.1 4.9-3.2-1.9-4.5-1.8-7.7 2.4-10.9 3 4 2.6 7.3-1.2 11.1 2.4-1.3 6.2 0 4 4.6-1.2-2.8-3.7-2.2-4.2.2-.3 1.7.7 3.7 3 4.2 1.9.3 4.7-.9 7-5.9-1.3 0-2.4.7-3.9 1.7l2.4-8c.6 2.3 1.4 3.7 2.2 4.5.6-1.6.5-2.8 0-5.3l5 1.8c-2.6 3.6-5.2 8.7-7.3 17.5-7.4-1.1-15.7-1.7-24.5-1.7s-17.1.6-24.5 1.7C5.2 51.1 2.6 46.1 0 42.5l5-1.8c-.5 2.5-.6 3.7 0 5.3.8-.8 1.6-2.3 2.2-4.5l2.4 8c-1.5-1-2.6-1.7-3.9-1.7 2.3 5 5.2 6.2 7 5.9 2.3-.4 3.3-2.4 3-4.2-.5-2.4-3-3.1-4.2-.2-2.2-4.6 1.6-6 4-4.6-3.7-3.7-4.2-7.1-1.2-11.1 4.2 3.2 4.3 6.4 2.4 10.9 2.5-2.8 6.3-1.3 4.9 3.2-1.8-2.7-4.1-1-3.7 1.6.3 2.3 3.3 4.1 7 3.8 5.4-.5 5.7-4.2 5.8-7.2-1.3-.2-3.7 1-5.7 3.8l-.7-8.5c2.2 2.3 4.2 2.7 6.4 2.8-.7-2.3-4.1-6.1-4.1-6.1h10.6Z"/><circle cx="226" cy="36" r="7.3" class="govuk-logo-dot"/><path d="M93.94 41.25c.4 1.81 1.2 3.21 2.21 4.62 1 1.4 2.21 2.41 3.61 3.21s3.21 1.2 5.22 1.2 3.61-.4 4.82-1c1.4-.6 2.41-1.4 3.21-2.41.8-1 1.4-2.01 1.61-3.01s.4-2.01.4-3.01v.14h-10.86v-7.02h20.07v24.08h-8.03v-5.56c-.6.8-1.38 1.61-2.19 2.41-.8.8-1.81 1.2-2.81 1.81-1 .4-2.21.8-3.41 1.2s-2.41.4-3.81.4a18.56 18.56 0 0 1-14.65-6.63c-1.6-2.01-3.01-4.41-3.81-7.02s-1.4-5.62-1.4-8.83.4-6.02 1.4-8.83a20.45 20.45 0 0 1 19.46-13.65c3.21 0 4.01.2 5.82.8 1.81.4 3.61 1.2 5.02 2.01 1.61.8 2.81 2.01 4.01 3.21s2.21 2.61 2.81 4.21l-7.63 4.41c-.4-1-1-1.81-1.61-2.61-.6-.8-1.4-1.4-2.21-2.01-.8-.6-1.81-1-2.81-1.4s-2.21-.4-3.61-.4c-2.01 0-3.81.4-5.22 1.2-1.4.8-2.61 1.81-3.61 3.21s-1.61 2.81-2.21 4.62c-.4 1.81-.6 3.71-.6 5.42s.8 5.22.8 5.22Zm57.8-27.9c3.21 0 6.22.6 8.63 1.81 2.41 1.2 4.82 2.81 6.62 4.82S170.2 24.39 171 27s1.4 5.62 1.4 8.83-.4 6.02-1.4 8.83-2.41 5.02-4.01 7.02-4.01 3.61-6.62 4.82-5.42 1.81-8.63 1.81-6.22-.6-8.63-1.81-4.82-2.81-6.42-4.82-3.21-4.41-4.01-7.02-1.4-5.62-1.4-8.83.4-6.02 1.4-8.83 2.41-5.02 4.01-7.02 4.01-3.61 6.42-4.82 5.42-1.81 8.63-1.81m0 36.73c1.81 0 3.61-.4 5.02-1s2.61-1.81 3.61-3.01 1.81-2.81 2.21-4.41c.4-1.81.8-3.61.8-5.62 0-2.21-.2-4.21-.8-6.02s-1.2-3.21-2.21-4.62c-1-1.2-2.21-2.21-3.61-3.01s-3.21-1-5.02-1-3.61.4-5.02 1c-1.4.8-2.61 1.81-3.61 3.01s-1.81 2.81-2.21 4.62-.8 3.61-.8 5.62c0 2.41.2 4.21.8 6.02.4 1.81 1.2 3.21 2.21 4.41s2.21 2.21 3.61 3.01 3.21 1 5.02 1m36.32 7.96-12.24-44.15h9.83l8.43 32.77h.4l8.23-32.77h9.83L200.3 58.04zm74.14-7.96c2.18 0 3.51-.6 3.51-.6 1.2-.6 2.01-1 2.81-1.81s1.4-1.81 1.81-2.81a13 13 0 0 0 .8-4.01V13.9h8.63v28.15c0 2.41-.4 4.62-1.4 6.62-.8 2.01-2.21 3.61-3.61 5.02s-3.41 2.41-5.62 3.21-4.62 1.2-7.02 1.2-5.02-.4-7.02-1.2c-2.21-.8-4.01-1.81-5.62-3.21s-2.81-3.01-3.61-5.02-1.4-4.21-1.4-6.62V13.9h8.63v26.95c0 1.61.2 3.01.8 4.01.4 1.2 1.2 2.21 2.01 2.81.8.8 1.81 1.4 2.81 1.81 0 0 1.34.6 3.51.6Zm34.22-36.18v18.92l15.65-18.92h10.82l-15.03 17.32 16.03 26.83h-10.21l-11.44-20.21-5.62 6.22v13.99h-8.83V13.9"/></svg>
File without changes
File without changes