From 66bf8fa43016c2f4be7145269bfec0419682c39b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Iv=C3=A1n=20Vieitez=20Parra?= <3857362+corrideat@users.noreply.github.com> Date: Tue, 2 Jul 2024 01:33:08 +0000 Subject: [PATCH] Minor UI improvements --- package-lock.json | 4 +-- package.json | 2 +- src/components/DemoBanner.css | 1 + src/components/Footer.css | 15 +++++++++- src/components/Footer.svelte | 55 ++++++++++++++++++++--------------- src/lib/generateHtml.ts | 6 ++-- src/pages/common.css | 5 ++++ src/pages/encrypt.css | 2 +- 8 files changed, 58 insertions(+), 32 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6e9037b..42a01a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@exact-realty/cms-ep-sfx", - "version": "1.0.11", + "version": "1.0.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@exact-realty/cms-ep-sfx", - "version": "1.0.11", + "version": "1.0.12", "license": "Apache-2.0 WITH LLVM-exception", "devDependencies": { "@exact-realty/asn1-der": "^1.0.1", diff --git a/package.json b/package.json index 684689d..5d5398c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@exact-realty/cms-ep-sfx", - "version": "1.0.11", + "version": "1.0.12", "description": "Secure File Sharing Utility", "type": "module", "main": "-", diff --git a/src/components/DemoBanner.css b/src/components/DemoBanner.css index 28c4bf6..67421f4 100644 --- a/src/components/DemoBanner.css +++ b/src/components/DemoBanner.css @@ -18,6 +18,7 @@ font-size: 1.2em; background-color: #f00; color: #fff; + border: 1px solid #600; font-weight: bold; user-select: none; pointer-events: none; diff --git a/src/components/Footer.css b/src/components/Footer.css index 89a6a67..d332a44 100644 --- a/src/components/Footer.css +++ b/src/components/Footer.css @@ -46,9 +46,22 @@ text-align: center; } -.footer-package-name { +.footer-package-info { display: block; text-align: center; font-size: 0.85em; font-style: italic; } + +.footer-package-info li { + display: inline; +} + +.footer-package-info li + li::before { + content: ' | '; + font-style: normal; +} + +.footer-package-info a { + text-decoration: underline; +} diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte index fe184f0..927a0d6 100644 --- a/src/components/Footer.svelte +++ b/src/components/Footer.svelte @@ -48,34 +48,41 @@ reserved.

{#if packageName} - {/if} diff --git a/src/lib/generateHtml.ts b/src/lib/generateHtml.ts index a9cae48..45868fc 100644 --- a/src/lib/generateHtml.ts +++ b/src/lib/generateHtml.ts @@ -73,7 +73,7 @@ export const tbsPayload_ = async ( ` content="default-src 'none'; script-src 'self' 'unsafe-eval' blob: data:; script-src-elem blob: data: '${fallbackMessage.sri}' '${loader.sri}' '${mainScriptTextSriDigest}'; script-src-attr 'none'; style-src data: '${cssTextSriDigest}'; child-src blob:; connect-src blob: data:; frame-src blob:; worker-src blob:; form-action data:"` + '/>' + `HTML CMS Tool` + - `` + '\r\n' + `` + '\r\n' + - `` + + `` + '\r\n' + - `' + `