nodebb-theme-harmony 1.0.0-beta.73 → 1.0.0-beta.75

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
@@ -138,25 +138,6 @@ library.saveUserSettings = async function (hookData) {
138
138
  return hookData;
139
139
  };
140
140
 
141
- library.addUserToTopic = async function (hookData) {
142
- const { enableQuickReply } = await loadThemeConfig(hookData.req.uid);
143
- if (enableQuickReply) {
144
- if (hookData.req.user) {
145
- const userData = await user.getUserData(hookData.req.uid);
146
- hookData.templateData.loggedInUser = userData;
147
- } else {
148
- hookData.templateData.loggedInUser = {
149
- uid: 0,
150
- username: '[[global:guest]]',
151
- picture: user.getDefaultAvatar(),
152
- 'icon:text': '?',
153
- 'icon:bgColor': '#aaa',
154
- };
155
- }
156
- }
157
- return hookData;
158
- };
159
-
160
141
  library.filterMiddlewareRenderHeader = async function (hookData) {
161
142
  const userSettings = await user.getSettings(hookData.req.uid);
162
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "1.0.0-beta.73",
3
+ "version": "1.0.0-beta.75",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
package/plugin.json CHANGED
@@ -8,7 +8,6 @@
8
8
  { "hook": "filter:settings.get", "method": "getAdminSettings"},
9
9
  { "hook": "filter:user.saveSettings", "method": "saveUserSettings" },
10
10
  { "hook": "filter:user.profileMenu", "method": "addProfileItem" },
11
- { "hook": "filter:topic.build", "method": "addUserToTopic" },
12
11
  { "hook": "filter:middleware.renderHeader", "method": "filterMiddlewareRenderHeader" },
13
12
  { "hook": "filter:middleware.render", "method": "removeFinalBreadcrumb" }
14
13
  ],
@@ -5,24 +5,25 @@
5
5
  <div class="dropdown">
6
6
  <div class="input-group">
7
7
  <input class="form-control form-control-sm" type="text" id="user-search" placeholder="[[users:enter_username]]" data-bs-toggle="dropdown" autocomplete="off"/>
8
+
9
+ <ul component="blocks/search/list" class="dropdown-menu dropdown-menu-end block-edit overflow-auto" style="max-height:300px;">
10
+ <li><a href="#" class="dropdown-item">[[admin/menu:search.start-typing]]</a></li>
11
+ {{{ each edit }}}
12
+ <li class="">
13
+ <div class="dropdown-item d-flex flex-nowrap gap-2 justify-content-between">
14
+ <div class="text-truncate">
15
+ <a href="{config.relative_path}/uid/{./uid}" class="text-decoration-none">{buildAvatar(edit, "24px", true)} {./username}</a>
16
+ </div>
17
+ <button class="btn btn-sm btn-primary text-nowrap" data-uid="{./uid}" data-action="toggle">[[user:block_toggle]]</button>
18
+ </div>
19
+ </li>
20
+ {{{ end }}}
21
+ </ul>
22
+
8
23
  <button class="btn btn-primary btn-sm" type="button">
9
24
  <i class="fa fa-search"></i>
10
25
  </button>
11
26
  </div>
12
-
13
- <ul component="blocks/search/list" class="dropdown-menu dropdown-menu-end block-edit overflow-auto" style="max-height:300px;">
14
- <li><a href="#" class="dropdown-item">[[admin/menu:search.start-typing]]</a></li>
15
- {{{ each edit }}}
16
- <li class="">
17
- <div class="dropdown-item d-flex flex-nowrap gap-2 justify-content-between">
18
- <div class="text-truncate">
19
- <a href="{config.relative_path}/uid/{./uid}" class="text-decoration-none">{buildAvatar(edit, "24px", true)} {./username}</a>
20
- </div>
21
- <button class="btn btn-sm btn-primary text-nowrap" data-uid="{./uid}" data-action="toggle">[[user:block_toggle]]</button>
22
- </div>
23
- </li>
24
- {{{ end }}}
25
- </ul>
26
27
  </div>
27
28
  </div>
28
29
  </div>