hof 22.9.0-beta.v3 → 22.9.0-fix-timeout-back-button-bug-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/.editorconfig +10 -0
- package/.github/workflows/automate-publish.yml +38 -0
- package/.github/workflows/automate-tag.yml +78 -0
- package/.istanbul.yml +20 -0
- package/.nyc_output/3301185d-3a55-4452-9573-92910de66f65.json +1 -0
- package/.nyc_output/processinfo/3301185d-3a55-4452-9573-92910de66f65.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/CHANGELOG.md +3 -15
- package/README.md +0 -30
- package/codeReviewChecklist.md +22 -0
- package/config/hof-defaults.js +1 -7
- package/frontend/template-partials/views/cookies.html +6 -6
- package/frontend/template-partials/views/layout.html +8 -2
- package/frontend/template-partials/views/partials/cookie-banner.html +6 -11
- package/frontend/template-partials/views/session-timeout.html +5 -2
- package/frontend/themes/gov-uk/styles/_cookie-banner.scss +3 -0
- package/lib/settings.js +0 -2
- package/middleware/errors.js +18 -7
- package/middleware/service-unavailable.js +4 -1
- package/package.json +6 -5
- package/pull_request_template.md +16 -0
- package/sandbox/.env +3 -0
- package/sandbox/apps/sandbox/translations/en/default.json +245 -0
- package/sandbox/package.json +1 -1
- package/sandbox/public/css/app.css +9552 -0
- 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 +47603 -0
package/.editorconfig
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
3
|
+
name: Automate_Publish
|
4
|
+
on:
|
5
|
+
workflow_run:
|
6
|
+
workflows: ["Automate_Tag"]
|
7
|
+
types:
|
8
|
+
- completed
|
9
|
+
jobs:
|
10
|
+
auto-publish:
|
11
|
+
runs-on: ubuntu-22.04
|
12
|
+
if: startsWith(github.ref, 'refs/heads/master')
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v4
|
15
|
+
with:
|
16
|
+
fetch-depth: 0
|
17
|
+
- uses: actions/setup-node@v4
|
18
|
+
with:
|
19
|
+
node-version: 20
|
20
|
+
registry-url: https://registry.npmjs.org/
|
21
|
+
- name: 'Get Previous tag'
|
22
|
+
id: previoustag
|
23
|
+
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
24
|
+
- uses: borales/actions-yarn@v3.0.0
|
25
|
+
with:
|
26
|
+
cmd: install --frozen-lockfile
|
27
|
+
- run: |
|
28
|
+
npm_tag="v$(npm dist-tags | cut -d' ' -f 2)"
|
29
|
+
git_tag="$(git describe --tags | cut -d'-' -f 1)"
|
30
|
+
if [ "$npm_tag" != "$git_tag" ] ; then npm publish; fi
|
31
|
+
env:
|
32
|
+
NODE_AUTH_TOKEN: ${{ secrets.npm_bot_token }}
|
33
|
+
- name: 'Publish Release'
|
34
|
+
uses: Roang-zero1/github-create-release-action@master
|
35
|
+
with:
|
36
|
+
created_tag: ${{ steps.previoustag.outputs.tag }}
|
37
|
+
env:
|
38
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
3
|
+
name: Automate_Tag
|
4
|
+
on: [push]
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
runs-on: ubuntu-22.04
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
node-version: [20.x]
|
11
|
+
redis-version: [4, 5, 6]
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v4
|
14
|
+
- uses: actions/setup-node@v4
|
15
|
+
with:
|
16
|
+
node-version: ${{ matrix.node-version }}
|
17
|
+
- name: Start Redis
|
18
|
+
uses: supercharge/redis-github-action@1.2.0
|
19
|
+
with:
|
20
|
+
redis-version: ${{ matrix.redis-version }}
|
21
|
+
- uses: borales/actions-yarn@v3.0.0
|
22
|
+
with:
|
23
|
+
cmd: install --frozen-lockfile
|
24
|
+
- run: npm test
|
25
|
+
|
26
|
+
auto-tag-patch:
|
27
|
+
needs: test
|
28
|
+
runs-on: ubuntu-22.04
|
29
|
+
if: |
|
30
|
+
startsWith(github.ref, 'refs/heads/master') &&
|
31
|
+
!contains(github.event.head_commit.message, '[MAJOR]') &&
|
32
|
+
!contains(github.event.head_commit.message, '[MINOR]')
|
33
|
+
steps:
|
34
|
+
- uses: actions/checkout@v4
|
35
|
+
- uses: actions/setup-node@v4
|
36
|
+
with:
|
37
|
+
node-version: 20
|
38
|
+
registry-url: https://registry.npmjs.org/
|
39
|
+
- run: |
|
40
|
+
git config --local user.email "$(git log --format='%ae' HEAD^!)"
|
41
|
+
git config --local user.name "$(git log --format='%an' HEAD^!)"
|
42
|
+
npm version patch
|
43
|
+
|
44
|
+
auto-tag-minor:
|
45
|
+
needs: test
|
46
|
+
runs-on: ubuntu-22.04
|
47
|
+
if: |
|
48
|
+
startsWith(github.ref, 'refs/heads/master') &&
|
49
|
+
!contains(github.event.head_commit.message, '[MAJOR]') &&
|
50
|
+
contains(github.event.head_commit.message, '[MINOR]')
|
51
|
+
steps:
|
52
|
+
- uses: actions/checkout@v4
|
53
|
+
- uses: actions/setup-node@v4
|
54
|
+
with:
|
55
|
+
node-version: 20
|
56
|
+
registry-url: https://registry.npmjs.org/
|
57
|
+
- run: |
|
58
|
+
git config --local user.email "$(git log --format='%ae' HEAD^!)"
|
59
|
+
git config --local user.name "$(git log --format='%an' HEAD^!)"
|
60
|
+
npm version minor
|
61
|
+
|
62
|
+
auto-tag-major:
|
63
|
+
needs: test
|
64
|
+
runs-on: ubuntu-22.04
|
65
|
+
if: |
|
66
|
+
startsWith(github.ref, 'refs/heads/master') &&
|
67
|
+
contains(github.event.head_commit.message, '[MAJOR]') &&
|
68
|
+
!contains(github.event.head_commit.message, '[MINOR]')
|
69
|
+
steps:
|
70
|
+
- uses: actions/checkout@v4
|
71
|
+
- uses: actions/setup-node@v4
|
72
|
+
with:
|
73
|
+
node-version: 20
|
74
|
+
registry-url: https://registry.npmjs.org/
|
75
|
+
- run: |
|
76
|
+
git config --local user.email "$(git log --format='%ae' HEAD^!)"
|
77
|
+
git config --local user.name "$(git log --format='%an' HEAD^!)"
|
78
|
+
npm version major
|
package/.istanbul.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
instrumentation:
|
2
|
+
root: .
|
3
|
+
extensions:
|
4
|
+
- .js
|
5
|
+
default-excludes: true
|
6
|
+
include-all-sources: true
|
7
|
+
check:
|
8
|
+
global:
|
9
|
+
statements: 80
|
10
|
+
lines: 80
|
11
|
+
branches: 80
|
12
|
+
functions: 80
|
13
|
+
reporting:
|
14
|
+
print: summary
|
15
|
+
reports:
|
16
|
+
- html
|
17
|
+
dir: ./coverage
|
18
|
+
report-config:
|
19
|
+
html:
|
20
|
+
dir: coverage
|