nodebb-theme-harmony 1.2.29 → 1.2.30

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": "1.2.29",
3
+ "version": "1.2.30",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.5.0"
6
6
  },
@@ -167,8 +167,8 @@
167
167
  [[user:info.moderation-note]]
168
168
  </h5>
169
169
  <div class="card-body">
170
- <textarea component="account/moderation-note" class="form-control"></textarea>
171
- <br/>
170
+ <textarea component="account/moderation-note" class="form-control mb-3" aria-label="[[user:info.moderation-note]]"></textarea>
171
+
172
172
  <button class="btn btn-sm float-end btn-success" component="account/save-moderation-note">[[user:info.moderation-note.add]]</button>
173
173
  <br/>
174
174
  <div component="account/moderation-note/list">
@@ -7,23 +7,23 @@
7
7
  </div>
8
8
 
9
9
  <form id="theme-settings" role="form">
10
- <div class="form-check mb-3">
11
- <input class="form-check-input" type="checkbox" id="enableQuickReply" name="enableQuickReply" {{{ if theme.enableQuickReply }}}checked{{{ end }}}>
10
+ <div class="form-check form-switch mb-3">
11
+ <input class="form-check-input" type="checkbox" role="switch" id="enableQuickReply" name="enableQuickReply" {{{ if theme.enableQuickReply }}}checked{{{ end }}}>
12
12
  <label class="form-check-label" for="enableQuickReply">[[themes/harmony:settings.enableQuickReply]]</label>
13
13
  </div>
14
14
 
15
- <div class="form-check mb-3">
16
- <input class="form-check-input" type="checkbox" id="centerHeaderElements" name="centerHeaderElements" {{{ if theme.centerHeaderElements }}}checked{{{ end }}}>
15
+ <div class="form-check form-switch mb-3">
16
+ <input class="form-check-input" type="checkbox" role="switch" id="centerHeaderElements" name="centerHeaderElements" {{{ if theme.centerHeaderElements }}}checked{{{ end }}}>
17
17
  <label class="form-check-label" for="centerHeaderElements">[[themes/harmony:settings.centerHeaderElements]]</label>
18
18
  </div>
19
19
 
20
- <div class="form-check mb-3">
21
- <input class="form-check-input" type="checkbox" id="mobileTopicTeasers" name="mobileTopicTeasers" {{{ if theme.mobileTopicTeasers }}}checked{{{ end }}}>
20
+ <div class="form-check form-switch mb-3">
21
+ <input class="form-check-input" type="checkbox" role="switch" id="mobileTopicTeasers" name="mobileTopicTeasers" {{{ if theme.mobileTopicTeasers }}}checked{{{ end }}}>
22
22
  <label class="form-check-label" for="mobileTopicTeasers">[[themes/harmony:settings.mobileTopicTeasers]]</label>
23
23
  </div>
24
24
 
25
- <div class="form-check mb-3">
26
- <input class="form-check-input" type="checkbox" id="stickyToolbar" name="stickyToolbar" {{{ if theme.stickyToolbar }}}checked{{{ end }}}>
25
+ <div class="form-check form-switch mb-3">
26
+ <input class="form-check-input" type="checkbox" role="switch" id="stickyToolbar" name="stickyToolbar" {{{ if theme.stickyToolbar }}}checked{{{ end }}}>
27
27
  <label class="form-check-label" for="stickyToolbar">
28
28
  [[themes/harmony:settings.stickyToolbar]]
29
29
  <p class="form-text mb-0">
@@ -32,8 +32,8 @@
32
32
  </label>
33
33
  </div>
34
34
 
35
- <div class="form-check mb-3">
36
- <input class="form-check-input" type="checkbox" id="autohideBottombar" name="autohideBottombar" {{{ if theme.autohideBottombar }}}checked{{{ end }}}>
35
+ <div class="form-check form-switch mb-3">
36
+ <input class="form-check-input" type="checkbox" role="switch" id="autohideBottombar" name="autohideBottombar" {{{ if theme.autohideBottombar }}}checked{{{ end }}}>
37
37
  <label class="form-check-label" for="autohideBottombar">
38
38
  [[themes/harmony:settings.autohideBottombar]]
39
39
  <p class="form-text mb-0">
@@ -42,13 +42,13 @@
42
42
  </label>
43
43
  </div>
44
44
 
45
- <div class="form-check mb-3">
46
- <input class="form-check-input" type="checkbox" id="openSidebars" name="openSidebars" {{{ if theme.openSidebars }}}checked{{{ end }}}>
45
+ <div class="form-check form-switch mb-3">
46
+ <input class="form-check-input" type="checkbox" role="switch" id="openSidebars" name="openSidebars" {{{ if theme.openSidebars }}}checked{{{ end }}}>
47
47
  <label class="form-check-label" for="openSidebars">[[themes/harmony:settings.openSidebars]]</label>
48
48
  </div>
49
49
 
50
- <div class="form-check mb-3">
51
- <input class="form-check-input" type="checkbox" id="chatModals" name="chatModals" {{{ if theme.chatModals }}}checked{{{ end }}}>
50
+ <div class="form-check form-switch mb-3">
51
+ <input class="form-check-input" type="checkbox" role="switch" id="chatModals" name="chatModals" {{{ if theme.chatModals }}}checked{{{ end }}}>
52
52
  <label class="form-check-label" for="chatModals">
53
53
  [[themes/harmony:settings.chatModals]]
54
54
  </label>
@@ -25,7 +25,7 @@
25
25
  </td>
26
26
  <td>
27
27
  <div class="btn-group ">
28
- <button class="btn btn-danger btn-sm" data-action="delete"><i class="fa fa-trash"></i></button>
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
29
  </div>
30
30
  </td>
31
31
  </tr>
@@ -31,7 +31,7 @@
31
31
  <div class="">
32
32
  <div class="input-group">
33
33
  <input type="text" class="form-control form-control-sm" placeholder="[[global:search]]" name="query" id="search-text">
34
- <button id="search-button" class="btn btn-primary btn-sm">
34
+ <button id="search-button" class="btn btn-primary btn-sm" aria-label="[[global:search]]">
35
35
  <i class="fa fa-search"></i>
36
36
  </button>
37
37
  </div>
@@ -1,7 +1,7 @@
1
1
  {{{ each groups }}}
2
2
  <div class="col-xl-4 col-lg-6 col-sm-12 mb-3" component="groups/summary" data-slug="{./slug}">
3
3
  <div class="card h-100 group-hover-bg border-0">
4
- <a href="{config.relative_path}/groups/{./slug}" class="card-header border-bottom-0 pointer d-block list-cover" style="{{{ if ./cover:thumb:url }}}background-image: url({./cover:thumb:url});background-size: cover; min-height: 125px; background-position: {./cover:position}{{{ end }}}"></a>
4
+ <a href="{config.relative_path}/groups/{./slug}" class="card-header border-bottom-0 pointer d-block list-cover" style="{{{ if ./cover:thumb:url }}}background-image: url({./cover:thumb:url});background-size: cover; min-height: 125px; background-position: {./cover:position}{{{ end }}}" aria-label="[[aria:group-page-link-for, {./displayName}]]"></a>
5
5
  <a href="{config.relative_path}/groups/{./slug}" class="d-block h-100 text-reset text-decoration-none">
6
6
  <div class="card-body d-flex flex-column gap-1 border border-top-0 rounded-bottom h-100">
7
7
  <div class="d-flex">
@@ -1,7 +1,7 @@
1
1
  <ul component="posts" class="posts-list list-unstyled" data-nextstart="{nextStart}">
2
- {{{each posts}}}
2
+ {{{ each posts }}}
3
3
  <!-- IMPORT partials/posts_list_item.tpl -->
4
- {{{end}}}
4
+ {{{ end }}}
5
5
  </ul>
6
6
  <div component="posts/loading" class="loading-indicator text-center hidden">
7
7
  <i class="fa fa-refresh fa-spin"></i>
@@ -1,8 +1,9 @@
1
- <hr/>
2
- <a class="topic-title fw-semibold fs-5 mb-3 text-reset text-break" href="{config.relative_path}/post/{./pid}">
3
- {{{ if ./isMainPost }}}<i class="fa fa-book text-muted" title="[[topic:topic]]"></i> {{{ end }}}{./topic.title}
4
- </a>
5
1
  <li component="post" class="posts-list-item {{{ if ./deleted }}} deleted{{{ else }}}{{{ if ./topic.deleted }}} deleted{{{ end }}}{{{ end }}}{{{ if ./topic.scheduled }}} scheduled{{{ end }}}" data-pid="{./pid}" data-uid="{./uid}">
2
+ <hr/>
3
+ <a class="topic-title fw-semibold fs-5 mb-2 text-reset text-break d-block" href="{config.relative_path}/post/{./pid}">
4
+ {{{ if ./isMainPost }}}<i class="fa fa-book text-muted" title="[[topic:topic]]"></i> {{{ end }}}{./topic.title}
5
+ </a>
6
+
6
7
  <div class="post-body d-flex flex-column gap-1">
7
8
  <div class="d-flex gap-3 post-info text-sm align-items-center">
8
9
  <div class="post-author d-flex align-items-center gap-1">
@@ -18,7 +18,7 @@
18
18
  <div class="search">
19
19
  <div class="input-group">
20
20
  <input class="form-control form-control-sm" id="search-user" type="text" placeholder="[[global:search]]"/>
21
- <button class="btn btn-primary btn-sm" type="button">
21
+ <button class="btn btn-primary btn-sm" type="button" aria-label="[[global:search]]">
22
22
  <i component="user/search/icon" class="fa fa-search"></i>
23
23
  </button>
24
24
  </div>