diff options
author | Martin Fischer <martin@push-f.com> | 2021-06-24 21:07:45 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-06-24 23:14:15 +0200 |
commit | d43543440e5d3f0e93ed1cf197601d778541c3ae (patch) | |
tree | d966b40936d7ef8cb559e2b556d3b9e01a5f824b /src/static | |
parent | b019d39957bd644d9b6b856738b57eb87e0506de (diff) |
generate <script> tags and CSP from Page vectors
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/edit_script.js.sha | 1 | ||||
-rw-r--r-- | src/static/edit_script.js.sha256 | 1 | ||||
-rw-r--r-- | src/static/style.css.sha | 1 | ||||
-rw-r--r-- | src/static/style.css.sha256 | 1 | ||||
-rwxr-xr-x | src/static/update_hashes.sh | 2 |
5 files changed, 3 insertions, 3 deletions
diff --git a/src/static/edit_script.js.sha b/src/static/edit_script.js.sha new file mode 100644 index 0000000..055c251 --- /dev/null +++ b/src/static/edit_script.js.sha @@ -0,0 +1 @@ +'sha256-O/Q67ZO/c2t0OEnZQIJtx/2VGvvdDEBTB8ol44aaUIo='
\ No newline at end of file diff --git a/src/static/edit_script.js.sha256 b/src/static/edit_script.js.sha256 deleted file mode 100644 index c03887e..0000000 --- a/src/static/edit_script.js.sha256 +++ /dev/null @@ -1 +0,0 @@ -O/Q67ZO/c2t0OEnZQIJtx/2VGvvdDEBTB8ol44aaUIo=
\ No newline at end of file diff --git a/src/static/style.css.sha b/src/static/style.css.sha new file mode 100644 index 0000000..774a743 --- /dev/null +++ b/src/static/style.css.sha @@ -0,0 +1 @@ +'sha256-9xIJ8fFnUyBYBKBAR6JWlmi39sUqyIqzUt1PnrkDE/c='
\ No newline at end of file diff --git a/src/static/style.css.sha256 b/src/static/style.css.sha256 deleted file mode 100644 index cb45c3f..0000000 --- a/src/static/style.css.sha256 +++ /dev/null @@ -1 +0,0 @@ -9xIJ8fFnUyBYBKBAR6JWlmi39sUqyIqzUt1PnrkDE/c=
\ No newline at end of file diff --git a/src/static/update_hashes.sh b/src/static/update_hashes.sh index 31f63bd..ac6c6a1 100755 --- a/src/static/update_hashes.sh +++ b/src/static/update_hashes.sh @@ -1,5 +1,5 @@ #/bin/sh cd "$(dirname "$0")" for script in *.css *.js; do - shasum -a 256 < $script | cut -d' ' -f1 | xxd -r -p | base64 -w 0 > $script.sha256 + printf "'sha256-%s'" $(shasum -a 256 < $script | cut -d' ' -f1 | xxd -r -p | base64 -w 0) > $script.sha done |