diff --git a/assets/vpu-signature.topic.metadata.json b/assets/vpu-signature.topic.metadata.json index 346c614f6179d8836b99e1dea9cd6e62d3419a2b..b31df5b7f77a3ea3764b92bab81aa3ddb7a3e206 100644 --- a/assets/vpu-signature.topic.metadata.json +++ b/assets/vpu-signature.topic.metadata.json @@ -8,12 +8,11 @@ "en": "Signatureservice" }, "description": { - "de": "", - "en": "" + "de": "Mit dieser Applikation können Sie, sofern Sie dazu berechtigt sind, PDF Dateien im Namen der TU Graz signieren", + "en": "With this application you can, provided you are authorized to do so, sign PDF files in the name of the TU Graz" }, "routing_name": "signature", "activities": [ - {"path": "vpu-welcome.metadata.json"}, {"path": "vpu-signature-pdf-upload.metadata.json"} ], "attributes": [] diff --git a/assets/vpu-welcome.metadata.json b/assets/vpu-welcome.metadata.json deleted file mode 100644 index da6fff882ba271c0c5d457960ede76602cbfbe66..0000000000000000000000000000000000000000 --- a/assets/vpu-welcome.metadata.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "element": "vpu-welcome", - "module_src": "vpu-welcome.js", - "routing_name": "welcome", - "name": { - "de": "Willkommen", - "en": "Welcome" - }, - "short_name": { - "de": "Willkommen", - "en": "Welcome" - }, - "description": { - "de": "", - "en": "" - } -} \ No newline at end of file diff --git a/rollup.config.js b/rollup.config.js index 937e621dd4b878296e278c74d9c968a8593dd499..33ffc03eed1aaf9ba5ad8a77aea44c3b869eff28 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -143,7 +143,6 @@ export default { input: (build != 'test') ? [ 'src/vpu-signature.js', 'src/vpu-signature-pdf-upload.js', - 'src/vpu-welcome.js', ] : glob.sync('test/**/*.js'), output: { dir: 'dist', diff --git a/src/i18n/de/translation.json b/src/i18n/de/translation.json index df1513fb4999b63c9aff6cfe782206de72431eaf..d1feb9b978592684a5d349b3aa5c1a73ad38a5b2 100644 --- a/src/i18n/de/translation.json +++ b/src/i18n/de/translation.json @@ -13,10 +13,6 @@ "re-upload-all-button": "Alle erneut hochladen", "re-upload-all-button-title": "Alle fehlgeschlagen Uploads erneut hochladen" }, - "welcome": { - "headline": "Willkommen beim Signaturservice der TU Graz", - "description": "Mit dieser Applikation können Sie, sofern Sie dazu berechtigt sind, PDF Dateien im Namen der TU Graz signieren" - }, "error-summary": "Ein Fehler ist aufgetreten", "error-permission-message": "Sie müssen das Recht auf Amtssignaturen besitzen um diese Funktion nutzen zu können!", "error-login-message": "Sie müssen eingeloggt sein um diese Funktion nutzen zu können!" diff --git a/src/i18n/en/translation.json b/src/i18n/en/translation.json index ba9d45350df947103128eb678f8dae89a9896ae3..1552c6f32780825667f05caec25cae7b4a030d82 100644 --- a/src/i18n/en/translation.json +++ b/src/i18n/en/translation.json @@ -13,10 +13,6 @@ "re-upload-all-button": "Upload all", "re-upload-all-button-title": "Upload all failed uploads again" }, - "welcome": { - "headline": "Welcome to the signature service of the TU Graz", - "description": "With this application you can, provided you are authorized to do so, sign PDF files in the name of the TU Graz" - }, "error-summary": "An error occurred", "error-permission-message": "You need have permissions to use the official signature to use this function!", "error-login-message": "You need to be logged in to use this function!" diff --git a/src/vpu-welcome.js b/src/vpu-welcome.js deleted file mode 100644 index da9ef8ea7ae5e543f907c1aa805ec6c729641ac2..0000000000000000000000000000000000000000 --- a/src/vpu-welcome.js +++ /dev/null @@ -1,74 +0,0 @@ -import {createI18nInstance} from './i18n.js'; -import {css, html, LitElement} from 'lit-element'; -import * as commonUtils from 'vpu-common/utils'; -import * as commonStyles from 'vpu-common/styles'; -import 'vpu-person-profile'; - -const i18n = createI18nInstance(); - -class SignatureWelcome extends LitElement { - - constructor() { - super(); - this.lang = i18n.language; - this.metadata = {}; - } - - static get properties() { - return { - lang: { type: String }, - metadata: { type: Object, attribute: false }, - }; - } - - setMetaData(metaData, headline, subHeadline) { - this.headline = headline || "Welcome"; - this.subHeadline = subHeadline || ""; - this.metadata = metaData; - } - - update(changedProperties) { - changedProperties.forEach((oldValue, propName) => { - if (propName === "lang") { - i18n.changeLanguage(this.lang); - } - }); - - super.update(changedProperties); - } - - static get styles() { - // language=css - return css` - ${commonStyles.getThemeCSS()} - ${commonStyles.getGeneralCSS()} - - h2 { margin: inherit; } - p { margin: 0 0 10px 0; } - div.item { margin: 30px 0; } - `; - } - - render() { - let itemTemplates = []; - - for (let [key, data] of Object.entries(this.metadata)) { - - if (data['visible'] && (key !== "welcome")) { - itemTemplates.push(html` - <div class="item"> - <h2>${data.name[this.lang]}</h2> - ${data.description[this.lang]} - </div>`); - } - } - - return html` - <p>${this.headline}</p> - <p>${this.subHeadline}</p> - ${itemTemplates} - `; - } -} - -commonUtils.defineCustomElement('vpu-welcome', SignatureWelcome); diff --git a/vendor/app-shell b/vendor/app-shell index 800e83039641262a503dac6596925ce6200b4776..0419a6e56f66bce5c19d7c844979d40c7f675550 160000 --- a/vendor/app-shell +++ b/vendor/app-shell @@ -1 +1 @@ -Subproject commit 800e83039641262a503dac6596925ce6200b4776 +Subproject commit 0419a6e56f66bce5c19d7c844979d40c7f675550