From e0b48ebe4016123b8b290be9c283b6ffc474647c Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 15 Apr 2021 11:36:21 +0200 Subject: [PATCH] Add user table with basic editor --- src/api.ts | 9 +++++- src/components/InlineEditor.vue | 30 +++++++++++++++++++ src/components/UserTable.vue | 53 +++++++++++++++++++++++++++++++++ src/views/Home.vue | 10 ++++--- 4 files changed, 97 insertions(+), 5 deletions(-) create mode 100644 src/components/InlineEditor.vue create mode 100644 src/components/UserTable.vue diff --git a/src/api.ts b/src/api.ts index a90f107..5e33d75 100644 --- a/src/api.ts +++ b/src/api.ts @@ -57,13 +57,20 @@ class Model { interface UserData { email: string; password: string; + username: string | undefined; + confidant_email: string | undefined; } export class User extends Model implements UserData { public isAuthenticated = false; private token = ""; - constructor(public email: string, public password: string) { + constructor( + public email: string, + public password: string, + public username: string | undefined, + public confidant_email: string | undefined + ) { super(); } diff --git a/src/components/InlineEditor.vue b/src/components/InlineEditor.vue new file mode 100644 index 0000000..a2a5eab --- /dev/null +++ b/src/components/InlineEditor.vue @@ -0,0 +1,30 @@ + + + diff --git a/src/components/UserTable.vue b/src/components/UserTable.vue new file mode 100644 index 0000000..a96367d --- /dev/null +++ b/src/components/UserTable.vue @@ -0,0 +1,53 @@ + + + diff --git a/src/views/Home.vue b/src/views/Home.vue index 7236291..b1788e3 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,7 +1,7 @@