diff --git a/cshub-client/.env.production b/cshub-client/.env.production index 50df19ce..128253c2 100644 --- a/cshub-client/.env.production +++ b/cshub-client/.env.production @@ -1,2 +1,2 @@ -VUE_APP_API_URL=https://api-dev.cshub.nl +VUE_APP_API_URL=https://api.cshub.nl VUE_APP_DEBUG=false diff --git a/cshub-client/package-lock.json b/cshub-client/package-lock.json index da9a34b0..bc6d07a1 100644 --- a/cshub-client/package-lock.json +++ b/cshub-client/package-lock.json @@ -4301,14 +4301,12 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -4323,20 +4321,17 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -4453,8 +4448,7 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "ini": { "version": "1.3.5", @@ -4466,7 +4460,6 @@ "version": "1.0.0", "bundled": true, "dev": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -4481,7 +4474,6 @@ "version": "3.0.4", "bundled": true, "dev": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -4489,14 +4481,12 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, - "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -4515,7 +4505,6 @@ "version": "0.5.1", "bundled": true, "dev": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -4596,8 +4585,7 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "object-assign": { "version": "4.1.1", @@ -4609,7 +4597,6 @@ "version": "1.4.0", "bundled": true, "dev": true, - "optional": true, "requires": { "wrappy": "1" } @@ -4731,7 +4718,6 @@ "version": "1.0.2", "bundled": true, "dev": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", diff --git a/cshub-client/public/assets/defaultAvatar.png b/cshub-client/public/assets/defaultAvatar.png new file mode 100644 index 00000000..62ede756 Binary files /dev/null and b/cshub-client/public/assets/defaultAvatar.png differ diff --git a/cshub-client/src/App.vue b/cshub-client/src/App.vue index 52cdc4c3..aa309bac 100644 --- a/cshub-client/src/App.vue +++ b/cshub-client/src/App.vue @@ -124,6 +124,10 @@ background: white; } + .postTile .v-list__tile { + height: auto !important; + } + .v-icon { font-size: 17px !important; } diff --git a/cshub-client/src/components/admin/UserTable.vue b/cshub-client/src/components/admin/UserTable.vue index 64185e3c..0160cc6c 100644 --- a/cshub-client/src/components/admin/UserTable.vue +++ b/cshub-client/src/components/admin/UserTable.vue @@ -14,7 +14,6 @@ {{ props.item.lastname }} {{ props.item.email }} {{ props.item.admin }} - {{ props.item.avatar }} {{ props.item.blocked }} {{ props.item.verified }} @@ -47,7 +46,6 @@ {text: "Last name", value: "lastname"}, {text: "Email", value: "email"}, {text: "Admin", value: "admin"}, - {text: "Avatar", value: "avatar"}, {text: "Blocked", value: "blocked"}, {text: "Verified", value: "verified"} ]; diff --git a/cshub-client/src/components/global/NavDrawer.vue b/cshub-client/src/components/global/NavDrawer.vue index 7fa3db39..903f5a3b 100644 --- a/cshub-client/src/components/global/NavDrawer.vue +++ b/cshub-client/src/components/global/NavDrawer.vue @@ -21,6 +21,7 @@ + @@ -191,6 +193,17 @@ }); }); } + + /** + * Methods + */ + private logout() { + logStringConsole("Logging user out"); + document.cookie = "token="; + userState.clearUserModel(); + uiState.setDrawerState(false); + this.$router.push(Routes.INDEX); + } } diff --git a/cshub-client/src/components/posts/Post.vue b/cshub-client/src/components/posts/Post.vue index 6da7b464..b1056c83 100644 --- a/cshub-client/src/components/posts/Post.vue +++ b/cshub-client/src/components/posts/Post.vue @@ -5,107 +5,93 @@
- - - -
- - fas fa-angle-down + + +
+ + fas fa-chevron-left -
-
- - - - - fas fa-chevron-left - - - {{item.name}} - - - {{post.title}} - - - fas fa-check - - - fas fa-edit - - - fas fa-save + + fas fa-angle-down - - fas fa-list-ol - - - fas fa-angle-up - - - - - {{post.upvotes}} - - avatar - - -
-

{{post.title}}

(unverified)

-
{{post.author.firstname}} {{post.author.lastname}} - {{post.datetime | formatDate}}
-
-
-
- - - - - -
-
-
-
-
-
- -
- - - View - - - + + + + + + fas fa-chevron-left + + + {{item.name}} + + {{post.title}} + + fas fa-check + + + fas fa-edit + + + fas fa-save + + + fas fa-list-ol + + + fas fa-angle-up + + + + + + + + + + {{post.title}} + {{post.author.firstname}} {{post.author.lastname}} - {{post.datetime | formatDate}} + + + + + + + + + +
+
+
+
+
+
+
+ +
+
+ style="width: 100%; margin: 10% auto;" />
- + + clearTimeout(timeOut); + this.loadingIcon = false; - \ No newline at end of file diff --git a/cshub-client/src/components/posts/PostEditsDialog.vue b/cshub-client/src/components/posts/PostEditsDialog.vue index b40f3f9d..4a1c6c62 100644 --- a/cshub-client/src/components/posts/PostEditsDialog.vue +++ b/cshub-client/src/components/posts/PostEditsDialog.vue @@ -1,5 +1,5 @@