nodebb-theme-harmony 2.2.7 → 2.2.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "2.2.7",
3
+ "version": "2.2.9",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -46,6 +46,6 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "eslint": "10.0.0",
49
- "eslint-config-nodebb": "^1.1.4"
49
+ "eslint-config-nodebb": "^2.0.0"
50
50
  }
51
51
  }
@@ -6,7 +6,7 @@
6
6
  </div>
7
7
 
8
8
  <div class="d-flex gap-1">
9
- <div class="btn-group bottom-sheet" component="category/watch/all">
9
+ <div class="dropdown bottom-sheet" component="category/watch/all">
10
10
  <button class="btn btn-ghost btn-sm ff-secondary fw-semibold dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" type="button">
11
11
  <span>[[user:change-all]]</span>
12
12
  </button>
@@ -4,7 +4,7 @@
4
4
  <div class="d-flex gap-1">
5
5
  <h3 class="fw-semibold fs-5 mb-0 align-self-center">[[global:topics]]</h3>
6
6
  {{{ if showSort }}}
7
- <div class="btn-group bottom-sheet" component="thread/sort">
7
+ <div class="dropdown bottom-sheet" component="thread/sort">
8
8
  <button title="[[global:sort]]" class="btn btn-ghost btn-sm dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" type="button"><i class="fa-solid fa-arrow-up-wide-short"></i></button>
9
9
  <ul class="dropdown-menu p-1 text-sm" role="menu">
10
10
  {{{each sortOptions }}}
@@ -10,28 +10,28 @@
10
10
  <div class="alert alert-warning text-center">[[uploads:no-uploads-found]]</div>
11
11
  {{{ end }}}
12
12
 
13
- <table class="table table-striped table-responsive">
14
- <thead>
15
- <tr>
16
- <th></th>
17
- <th></th>
18
- </tr>
19
- </thead>
20
- <tbody>
21
- {{{ each uploads }}}
22
- <tr data-name="{./name}">
23
- <td>
24
- <a class="text-break" href="{config.relative_path}{./url}">{./url}</a>
25
- </td>
26
- <td>
27
- <div class="btn-group ">
13
+ <div class="table-responsive">
14
+ <table class="table table-striped w-100">
15
+ <thead>
16
+ <tr>
17
+ <th></th>
18
+ <th></th>
19
+ </tr>
20
+ </thead>
21
+ <tbody>
22
+ {{{ each uploads }}}
23
+ <tr data-name="{./name}">
24
+ <td>
25
+ <a class="text-break" href="{config.relative_path}{./url}">{./url}</a>
26
+ </td>
27
+ <td style="width: 1%; white-space: nowrap;">
28
28
  <button class="btn btn-danger btn-sm" data-action="delete" aria-label="[[aria:delete-upload-button]]"><i class="fa fa-trash"></i></button>
29
- </div>
30
- </td>
31
- </tr>
32
- {{{ end }}}
33
- </tbody>
34
- </table>
29
+ </td>
30
+ </tr>
31
+ {{{ end }}}
32
+ </tbody>
33
+ </table>
34
+ </div>
35
35
 
36
36
  <!-- IMPORT partials/paginator.tpl -->
37
37
  <!-- IMPORT partials/account/footer.tpl -->
@@ -1,4 +1,4 @@
1
- <div class="btn-group bottom-sheet">
1
+ <div class="dropdown bottom-sheet">
2
2
  <button type="button" class="btn btn-light dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
3
3
  <i class="fa fa-gear fa-fw"></i>
4
4
  </button>
@@ -1,5 +1,5 @@
1
- <div class="btn-group bottom-sheet" component="thread/sort">
2
- <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle text-truncate" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="[[aria:post-sort-option, {sortOptionLabel}]]">
1
+ <div class="dropdown bottom-sheet" component="thread/sort">
2
+ <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle text-truncate w-100" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="[[aria:post-sort-option, {sortOptionLabel}]]">
3
3
  <i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
4
4
  <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">{sortOptionLabel}</span>
5
5
  </button>
@@ -1,6 +1,6 @@
1
1
  {{{ if privileges.view_thread_tools }}}
2
- <div class="btn-group thread-tools bottom-sheet">
3
- <button class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2 dropdown-toggle text-truncate" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
2
+ <div class="dropdown thread-tools bottom-sheet">
3
+ <button class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2 dropdown-toggle text-truncate w-100" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
4
4
  <i class="fa fa-fw fa-gear text-primary"></i>
5
5
  <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:thread-tools.title]]</span>
6
6
  </button>
@@ -1,6 +1,6 @@
1
1
  {{{ if config.loggedIn }}}
2
- <div class="btn-group bottom-sheet" component="topic/watch">
3
- <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 dropdown-toggle text-truncate" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
2
+ <div class="dropdown bottom-sheet" component="topic/watch">
3
+ <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 dropdown-toggle text-truncate w-100" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
4
4
  <span component="topic/following/menu" class="d-flex gap-2 align-items-center{{{ if !isFollowing }}} hidden{{{ end }}}">
5
5
  <i class="flex-shrink-0 fa fa-fw fa-bell-o text-primary"></i>
6
6
  <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:watching]]</span>
@@ -1,4 +1,4 @@
1
- <div class="btn-group bottom-sheet{{{ if !filters.length }}} hidden{{{ end }}}">
1
+ <div class="dropdown bottom-sheet{{{ if !filters.length }}} hidden{{{ end }}}">
2
2
  <button type="button" class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
3
3
  <i class="fa fa-fw fa-filter text-primary"></i>
4
4
  <span class="visible-md-inline visible-lg-inline fw-semibold">{selectedFilter.name}</span>
@@ -16,7 +16,7 @@
16
16
  <!-- IMPORT partials/tags/filter-dropdown-left.tpl -->
17
17
  {{{ end }}}
18
18
  {{{ if template.unread }}}
19
- <div class="markread btn-group {{{ if !topics.length }}}hidden{{{ end }}}">
19
+ <div class="markread {{{ if !topics.length }}}hidden{{{ end }}}">
20
20
  <!-- IMPORT partials/category/selector-dropdown-left.tpl -->
21
21
  </div>
22
22
  {{{ end }}}
@@ -26,7 +26,7 @@
26
26
  {{{ end }}}
27
27
 
28
28
  {{{ if template.world }}}
29
- <div class="btn-group bottom-sheet">
29
+ <div class="dropdown bottom-sheet">
30
30
  <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown">
31
31
  <i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
32
32
  <span id="sort-label" class="visible-md-inline visible-lg-inline fw-semibold"></span>
@@ -1,4 +1,4 @@
1
- <div class="btn-group bottom-sheet {{{ if !terms.length }}}hidden{{{ end }}}">
1
+ <div class="dropdown bottom-sheet {{{ if !terms.length }}}hidden{{{ end }}}">
2
2
  <button type="button" class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2 dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
3
3
  <i class="fa fa-fw fa-clock text-primary"></i>
4
4
  <span class="visible-md-inline visible-lg-inline fw-semibold">{selectedTerm.name}</span>
@@ -100,6 +100,9 @@
100
100
  {{{ if config.theme.enableQuickReply }}}
101
101
  <!-- IMPORT partials/topic/quickreply.tpl -->
102
102
  {{{ end }}}
103
+ {{{ if !config.loggedIn }}}
104
+ <!-- IMPORT partials/topic/guest-cta.tpl -->
105
+ {{{ end }}}
103
106
  </div>
104
107
  <div class="d-flex d-none d-lg-block flex-grow-1 mt-2">
105
108
  <div class="sticky-top" style="{{{ if config.theme.topicSidebarTools }}}top:2rem;{{{ else }}}top:6rem; {{{ end }}} z-index:1;">