From c78a14fc6da39e293e4f62fb82bbb2e9168bace3 Mon Sep 17 00:00:00 2001 From: rob Date: Mon, 26 Sep 2022 00:44:04 -0400 Subject: [PATCH 1/2] small fixes & touch-ups --- app/services/comment.js | 1 + app/views/chat/room/view.pug | 2 +- app/views/comment/components/comment.pug | 2 +- app/views/user/profile.pug | 6 +++++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/services/comment.js b/app/services/comment.js index 79bb539..99ea171 100644 --- a/app/services/comment.js +++ b/app/services/comment.js @@ -42,6 +42,7 @@ class CommentService extends SiteService { { path: 'author', select: '_id username username_lc displayName picture', + strictPopulate: false, }, ], }, diff --git a/app/views/chat/room/view.pug b/app/views/chat/room/view.pug index 738f5ea..c7364bc 100644 --- a/app/views/chat/room/view.pug +++ b/app/views/chat/room/view.pug @@ -23,7 +23,7 @@ block content .uk-width-auto .uk-inline button(type="button").uk-button.uk-button-link.uk-button-small - i.fas.fa-ellipsis-h + i.fas.fa-ellipsis-v #chat-room-menu(uk-dropdown={ pos: 'bottom-right', mode: 'click' }) ul.uk-nav.uk-nav-default.uk-dropdown-nav li diff --git a/app/views/comment/components/comment.pug b/app/views/comment/components/comment.pug index f2a6798..5e387d5 100644 --- a/app/views/comment/components/comment.pug +++ b/app/views/comment/components/comment.pug @@ -19,7 +19,7 @@ mixin renderComment (comment, options) .uk-width-auto button(type="button").uk-button.uk-button-link span - i.fas.fa-ellipsis-h + i.fas.fa-ellipsis-v div(data-comment-id= comment._id, uk-dropdown={ mode: 'click', pos: 'bottom-right' }) ul.uk-nav.uk-dropdown-nav if user && user._id.equals(comment.author._id) diff --git a/app/views/user/profile.pug b/app/views/user/profile.pug index 034e4ab..cc5b5b0 100644 --- a/app/views/user/profile.pug +++ b/app/views/user/profile.pug @@ -24,4 +24,8 @@ block content .uk-width-auto alert.uk-label= badge - p Welcome to #[+renderSiteLink()]. This app/site really doesn't do anything at all other than provide everything needed for building distributed communities of web applications that all talk to each other and share information in new and easy ways. \ No newline at end of file + h2 Recent Comments + ul.uk-list + each comment in commentHistory + li + +renderComment(comment, { }) \ No newline at end of file From 2e808015e58ce2afe675dbefd3df54f3bae00f95 Mon Sep 17 00:00:00 2001 From: rob Date: Mon, 26 Sep 2022 00:44:10 -0400 Subject: [PATCH 2/2] v0.2.8 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a3c6f82..627f9b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dtp-base", - "version": "0.2.7", + "version": "0.2.8", "description": "Open source web app engine for the Digital Telepresence Platform.", "main": "dtp-webapp.js", "author": "DTP Technologies, LLC",