Skip to content

Commit

Permalink
fix(about): Added a dedicated page for license and legal information
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Oct 16, 2023
1 parent 58130c7 commit 077b38f
Show file tree
Hide file tree
Showing 7 changed files with 2,181 additions and 1 deletion.
6 changes: 6 additions & 0 deletions copy-static-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ cp node_modules/ace-builds/src-min/ext-searchbox.js static/js/ace/ext-searchbox.

wget https://developers.google.com/static/search/apis/ipranges/special-crawlers.json -O data/google-crawlers.json
node -e 'console.log("Google crawlers updated: "+require("./data/google-crawlers.json").creationTime);'

curl -Ls \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_SBOM_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/postalsys/emailengine/dependency-graph/sbom -o sbom.json
16 changes: 16 additions & 0 deletions lib/routes-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,22 @@ function applyRoutes(server, call) {
}
});

server.route({
method: 'GET',
path: '/admin/legal',
async handler(request, h) {
return h.view(
'legal',
{
menuLegal: true
},
{
layout: 'app'
}
);
}
});

server.route({
method: 'GET',
path: '/admin/upgrade',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@
"translations/**/*",
"LICENSE_EMAILENGINE.txt",
"help.txt",
"version-info.json"
"version-info.json",
"sbom.json"
],
"targets": [
"latest-linux-x64",
Expand Down
Loading

0 comments on commit 077b38f

Please sign in to comment.