From f4a91046e744943c50fdbebe897fc9c2d41b8913 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Thu, 9 Apr 2020 14:07:05 +0200
Subject: [PATCH] The user profile is now handled by the app shell

---
 assets/vpu-signature-profile.metadata.json | 17 --------
 assets/vpu-signature.topic.metadata.json   |  4 +-
 rollup.config.js                           |  1 -
 src/vpu-signature-profile.js               | 51 ----------------------
 vendor/app-shell                           |  2 +-
 5 files changed, 2 insertions(+), 73 deletions(-)
 delete mode 100644 assets/vpu-signature-profile.metadata.json
 delete mode 100644 src/vpu-signature-profile.js

diff --git a/assets/vpu-signature-profile.metadata.json b/assets/vpu-signature-profile.metadata.json
deleted file mode 100644
index 603c6b5..0000000
--- a/assets/vpu-signature-profile.metadata.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
-  "element": "vpu-signature-profile",
-  "module_src": "vpu-signature-profile.js",
-  "routing_name": "person-profile",
-  "name": {
-    "de": "Benutzerprofil",
-    "en": "User profile"
-  },
-  "short_name": {
-    "de": "Profil",
-    "en": "Profile"
-  },
-  "description": {
-    "de": "Zeigt informationen über den Benutzer an",
-    "en": "Shows information about the user"
-  }
-}
\ No newline at end of file
diff --git a/assets/vpu-signature.topic.metadata.json b/assets/vpu-signature.topic.metadata.json
index 10ce724..346c614 100644
--- a/assets/vpu-signature.topic.metadata.json
+++ b/assets/vpu-signature.topic.metadata.json
@@ -14,9 +14,7 @@
   "routing_name": "signature",
   "activities": [
     {"path": "vpu-welcome.metadata.json"},
-    {"path": "vpu-signature-pdf-upload.metadata.json"},
-    {"path": "vpu-signature-profile.metadata.json",
-     "visible": false}
+    {"path": "vpu-signature-pdf-upload.metadata.json"}
   ],
   "attributes": []
 }
\ No newline at end of file
diff --git a/rollup.config.js b/rollup.config.js
index 1c560a0..937e621 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-signature-profile.js',
       'src/vpu-welcome.js',
     ] : glob.sync('test/**/*.js'),
     output: {
diff --git a/src/vpu-signature-profile.js b/src/vpu-signature-profile.js
deleted file mode 100644
index a6bcacf..0000000
--- a/src/vpu-signature-profile.js
+++ /dev/null
@@ -1,51 +0,0 @@
-import {createI18nInstance} from './i18n.js';
-import {css, html} from 'lit-element';
-import VPUSignatureLitElement from "./vpu-signature-lit-element";
-import * as commonUtils from 'vpu-common/utils';
-import * as commonStyles from 'vpu-common/styles';
-import 'vpu-person-profile';
-
-const i18n = createI18nInstance();
-
-class SignatureProfile extends VPUSignatureLitElement {
-
-    constructor() {
-        super();
-        this.lang = i18n.language;
-        this._personId = window.VPUPersonId;
-        this.entryPointUrl = commonUtils.getAPiUrl();
-
-    }
-
-    static get properties() {
-        return {
-            lang: { type: String },
-            entryPointUrl: { type: String, attribute: 'entry-point-url' },
-            _personId: {type: String, attribute: false},
-        };
-    }
-
-    connectedCallback() {
-        super.connectedCallback();
-
-        window.addEventListener("vpu-auth-person-init", () => {
-            this._personId = window.VPUPersonId;
-        });
-    }
-
-    static get styles() {
-        // language=css
-        return css`
-            ${commonStyles.getThemeCSS()}
-            ${commonStyles.getGeneralCSS()}
-        `;
-    }
-
-    render() {
-        return html`
-            <vpu-person-profile value="${this._personId}" entry-point-url="${this.entryPointUrl}"" lang="${this.lang}"></vpu-person-profile>
-        `;
-    }
-}
-
-commonUtils.defineCustomElement('vpu-signature-profile', SignatureProfile);
diff --git a/vendor/app-shell b/vendor/app-shell
index 0fdb2d6..800e830 160000
--- a/vendor/app-shell
+++ b/vendor/app-shell
@@ -1 +1 @@
-Subproject commit 0fdb2d6ba4f06ae9bc5bd45915698bd608e06fab
+Subproject commit 800e83039641262a503dac6596925ce6200b4776
-- 
GitLab