From f8ceec492d720ced359da9001088bf691cb8c28f Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sun, 7 Mar 2021 13:21:43 +0100 Subject: [PATCH 1/7] =?UTF-8?q?=E2=9C=A8=20Profile=20-=20basic=20parsing?= =?UTF-8?q?=20for=20hash=20based=20query=20params?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #10 --- src/components/Profile.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Profile.vue b/src/components/Profile.vue index 0f883f1..9af3209 100644 --- a/src/components/Profile.vue +++ b/src/components/Profile.vue @@ -175,7 +175,7 @@ \ No newline at end of file -- 2.47.2 From ac9f1ba2aca43d38d67604a4f6e77c5b29a670af Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sun, 7 Mar 2021 13:30:05 +0100 Subject: [PATCH 2/7] routing import fix ref #10 --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index bd77f66..188d3ff 100644 --- a/src/main.js +++ b/src/main.js @@ -26,7 +26,7 @@ const Home = import('./components/Home.vue'); const Imprint = import('./components/Imprint.vue'); const Privacy = import('./components/Privacy.vue'); const Register = import('./components/Register.vue'); -const Profile = import('./components/Profile.vue'); +const Profile = () => import('./components/Profile.vue'); // let routes = [ { path: '/', component: EnvError } ]; if (typeof config !== 'undefined') { -- 2.47.2 From 0929f2bbc7037106bc6c9a4c948f51c59148a10b Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sun, 7 Mar 2021 13:30:23 +0100 Subject: [PATCH 3/7] Profile - fetch user profile data from api ref #10 --- src/components/Profile.vue | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/components/Profile.vue b/src/components/Profile.vue index 9af3209..9ee3205 100644 --- a/src/components/Profile.vue +++ b/src/components/Profile.vue @@ -80,6 +80,7 @@ class="w-full dark:bg-gray-800 rounded border border-gray-700 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-900 text-base outline-none dark:text-gray-100 text-gray-600 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out" type="text" :placeholder="[[$t('vorname')]]" + v-model="state.firstname" />
@@ -89,6 +90,7 @@ class="w-full dark:bg-gray-800 rounded border border-gray-700 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-900 text-base outline-none dark:text-gray-100 text-gray-600 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out" type="text" :placeholder="[[$t('mittelname')]]" + v-model="state.middlename" />
@@ -98,6 +100,7 @@ type="text" class="w-full dark:bg-gray-800 rounded border border-gray-700 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-900 text-base outline-none dark:text-gray-100 text-gray-600 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out" :placeholder="[[$t('nachname')]]" + v-model="state.lastname" />
@@ -107,6 +110,7 @@ type="email" class="w-full dark:bg-gray-800 rounded border border-gray-700 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-900 text-base outline-none dark:text-gray-100 text-gray-600 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out" :placeholder="[[$t('e_mail_adress')]]" + v-model="state.email" />
@@ -116,6 +120,7 @@ type="tel" class="w-full dark:bg-gray-800 rounded border border-gray-700 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-900 text-base outline-none dark:text-gray-100 text-gray-600 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out" :placeholder="[[$t('phone_number')]]" + v-model="state.phone" />
@@ -176,13 +181,30 @@ \ No newline at end of file -- 2.47.2 From b30277b617c1329702cb538b7e98d98929ca2346 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sun, 7 Mar 2021 13:46:25 +0100 Subject: [PATCH 4/7] display user name in Profile title ref #10 --- src/components/Profile.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Profile.vue b/src/components/Profile.vue index 9ee3205..ccf280d 100644 --- a/src/components/Profile.vue +++ b/src/components/Profile.vue @@ -5,7 +5,10 @@
-

Max Mustermann

+

Musterfirma > PR

-- 2.47.2 From 8205c11bd9a38c49608b0641dd89df22f492efd0 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sun, 7 Mar 2021 13:49:56 +0100 Subject: [PATCH 5/7] Profile - remove form styling. data is not editable yet ref #10 --- src/components/Profile.vue | 63 +++++++++++++++----------------------- 1 file changed, 24 insertions(+), 39 deletions(-) diff --git a/src/components/Profile.vue b/src/components/Profile.vue index ccf280d..7d60dcf 100644 --- a/src/components/Profile.vue +++ b/src/components/Profile.vue @@ -77,53 +77,38 @@
-
{{ $t('vorname') }}
- {{ $t('vorname') }}
+

-
{{ $t('mittelname') }}
- {{ $t('mittelname') }}
+

-
{{ $t('nachname') }}
- {{ $t('nachname') }}
+

-
{{ $t('e_mail_adress') }}
- {{ $t('e_mail_adress') }}
+

-
{{ $t('phone_number') }}
- {{ $t('phone_number') }}
+

@@ -183,12 +168,12 @@