nodebb-theme-harmony 1.1.2 → 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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.3.0"
6
6
  },
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
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  :root {
23
- .skin-darkly {
23
+ .skin-darkly, .skin-slate, .skin-cyborg {
24
24
  --bs-border-color: #929292;
25
25
  }
26
26
  }
@@ -15,15 +15,17 @@
15
15
  <label class="text-sm text-muted lh-1">[[modules:chat.public-rooms, {publicRooms.length}]]</label>
16
16
  </div>
17
17
  <div id="public-rooms" component="chat/public" class="collapse show">
18
- {{{ each publicRooms }}}
19
- <div component="chat/public/room" class="btn-ghost-sm ff-sans justify-content-between hover-parent {{{ if ./unread}}}unread{{{ end }}}" data-roomid="{./roomId}">
20
- <div><i class="fa {./icon} text-muted"></i> {./roomName}</div>
21
- <div class="d-flex gap-1">
22
- <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/sort/handle" class="text-muted {{{ if isAdmin }}}hover-d-block{{{ else }}}d-none{{{ end }}}" style="cursor:grab;"><i class="fa fa-bars"></i></div>
18
+ <div class="d-flex gap-1 flex-column">
19
+ {{{ each publicRooms }}}
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
+ <div><i class="fa {./icon} text-muted"></i> {./roomName}</div>
22
+ <div class="d-flex gap-1">
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
+ <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
+ </div>
24
26
  </div>
27
+ {{{ end }}}
25
28
  </div>
26
- {{{ end }}}
27
29
  </div>
28
30
  </div>
29
31
  {{{ end }}}
@@ -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 small hover-d-block end-0" style="bottom:1rem;">
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>