nodebb-theme-harmony 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library.js +5 -0
- package/package.json +1 -1
- package/scss/chats.scss +12 -0
- package/scss/skins.scss +1 -1
- package/templates/chats.tpl +1 -1
- package/templates/partials/chats/message-window.tpl +7 -0
- package/templates/partials/chats/message.tpl +1 -1
- package/templates/partials/chats/user-list.tpl +2 -2
package/library.js
CHANGED
|
@@ -129,6 +129,11 @@ library.defineWidgetAreas = async function (areas) {
|
|
|
129
129
|
template: 'account/profile.tpl',
|
|
130
130
|
location: 'profile-aboutme-after',
|
|
131
131
|
},
|
|
132
|
+
{
|
|
133
|
+
name: 'Chat Header',
|
|
134
|
+
template: 'chats.tpl',
|
|
135
|
+
location: 'header',
|
|
136
|
+
},
|
|
132
137
|
]);
|
|
133
138
|
|
|
134
139
|
return areas;
|
package/package.json
CHANGED
package/scss/chats.scss
CHANGED
|
@@ -47,6 +47,18 @@ body.page-user-chats {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
[component="chat/user/list"] [data-uid] {
|
|
51
|
+
[component="chat/user/list/username"] {
|
|
52
|
+
color: $text-muted;
|
|
53
|
+
}
|
|
54
|
+
&.online {
|
|
55
|
+
[component="chat/user/list/username"] {
|
|
56
|
+
color: initial;
|
|
57
|
+
font-weight: $font-weight-semibold;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
50
62
|
.expanded-chat {
|
|
51
63
|
.chat-content {
|
|
52
64
|
@include fix-lists;
|
package/scss/skins.scss
CHANGED
package/templates/chats.tpl
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<div component="chat/public/room" class="btn-ghost-sm ff-sans justify-content-between hover-parent {{{ if ./unread}}}unread{{{ end }}}" data-roomid="{./roomId}">
|
|
21
21
|
<div><i class="fa {./icon} text-muted"></i> {./roomName}</div>
|
|
22
22
|
<div class="d-flex gap-1">
|
|
23
|
-
<div component="chat/public/room/unread/count" data-count="{./unreadCount}" class="badge border text-primary {{{ if !./unreadCount }}}hidden{{{ end }}}">{./unreadCountText}</div>
|
|
23
|
+
<div component="chat/public/room/unread/count" data-count="{./unreadCount}" class="badge border bg-light text-primary {{{ if !./unreadCount }}}hidden{{{ end }}}">{./unreadCountText}</div>
|
|
24
24
|
<div component="chat/public/room/sort/handle" class="text-muted {{{ if isAdmin }}}hover-d-block{{{ else }}}d-none{{{ end }}}" style="cursor:grab;"><i class="fa fa-bars"></i></div>
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
<div class="d-flex flex-column h-100">
|
|
2
|
+
{{{ if widgets.header.length }}}
|
|
3
|
+
<div data-widget-area="header">
|
|
4
|
+
{{{each widgets.header}}}
|
|
5
|
+
{{widgets.header.html}}
|
|
6
|
+
{{{end}}}
|
|
7
|
+
</div>
|
|
8
|
+
{{{ end }}}
|
|
2
9
|
{{{ if !roomId }}}
|
|
3
10
|
<div class="d-flex flex-column align-items-center gap-3 p-5">
|
|
4
11
|
<i class="fa-solid fa-wind fs-2 text-muted"></i>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
{{{ if (isAdminOrGlobalMod || (!config.disableChatMessageEditing && messages.self)) }}}
|
|
22
22
|
<div component="chat/message/controls" class="position-relative">
|
|
23
|
-
<div class="btn-group border shadow-sm controls position-absolute
|
|
23
|
+
<div class="btn-group border shadow-sm controls position-absolute bg-body hover-d-block end-0" style="bottom:1rem;">
|
|
24
24
|
{{{ if (!config.disableChatMessageEditing && messages.self) }}}
|
|
25
25
|
<button class="btn btn-sm btn-link" data-action="edit"><i class="fa fa-pencil"></i></button>
|
|
26
26
|
<button class="btn btn-sm btn-link" data-action="delete"><i class="fa fa-trash"></i></button>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<div component="chat/user/list" class="border-start hidden d-flex flex-column gap-1 p-1 overflow-auto" style="min-width:240px; width: 240px;">
|
|
2
2
|
{{{ each users }}}
|
|
3
|
-
<a data-index="{./index}" class="btn-ghost-sm d-flex justify-content-start align-items-center gap-2" href="{config.relative_path}/uid/{./uid}">
|
|
3
|
+
<a data-index="{./index}" data-uid="{./uid}" class="btn-ghost-sm d-flex justify-content-start align-items-center gap-2 {{{ if ./online }}}online{{{ end}}}" href="{config.relative_path}/uid/{./uid}">
|
|
4
4
|
<div>{buildAvatar(users, "24px", true)}</div>
|
|
5
5
|
<div class="d-flex gap-1 flex-grow-1 text-nowrap text-truncate">
|
|
6
|
-
<span class="text-truncate">{./username}</span>
|
|
6
|
+
<span component="chat/user/list/username" class="text-truncate">{./username}</span>
|
|
7
7
|
{{{ if ./isOwner }}}<span><i class="fa fa-star text-warning" data-bs-toggle="tooltip" title="[[modules:chat.owner]]"></i></span>{{{ end }}}
|
|
8
8
|
</div>
|
|
9
9
|
</a>
|