nodebb-theme-harmony 3.0.10 → 3.0.12

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": "3.0.10",
3
+ "version": "3.0.12",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.14.0"
6
6
  },
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div class="d-flex justify-content-between align-items-center mb-3">
4
4
  <div class="d-flex gap-1">
5
- <h3 class="fw-semibold fs-5 mb-0">{tx(title)}</h3>
5
+ <h3 class="fw-semibold fs-5 mb-0">{{tx(title)}}</h3>
6
6
  </div>
7
7
 
8
8
  <div class="d-flex gap-1">
@@ -151,7 +151,7 @@
151
151
  {{{ end }}}
152
152
  </div>
153
153
  <p class="mb-1">
154
- <span class="reason">[[user:info.banned-reason-label]]: <strong>{tx(./reason)}</strong></span>
154
+ <span class="reason">[[user:info.banned-reason-label]]: <strong>{{tx(./reason)}}</strong></span>
155
155
  </p>
156
156
  <p>
157
157
  {{{ if ./until }}}
@@ -205,7 +205,7 @@
205
205
  {{{ end }}}
206
206
  </div>
207
207
  <p class="mb-1">
208
- <span class="reason">[[user:info.banned-reason-label]]: <strong>{tx(./reason)}</strong></span>
208
+ <span class="reason">[[user:info.banned-reason-label]]: <strong>{{tx(./reason)}}</strong></span>
209
209
  </p>
210
210
  <p>
211
211
  {{{ if ./until }}}
@@ -21,7 +21,7 @@
21
21
  </div>
22
22
 
23
23
  {{{ if !posts.length }}}
24
- <div class="alert alert-warning text-center">{tx(noItemsFoundKey)}</div>
24
+ <div class="alert alert-warning text-center">{{tx(noItemsFoundKey)}}</div>
25
25
  {{{ end }}}
26
26
 
27
27
  <div>
@@ -76,7 +76,7 @@
76
76
  {{{ if ./value }}}
77
77
  <div class="stat">
78
78
  <div class="align-items-center justify-content-center card card-header p-3 border-0 rounded-1 h-100 gap-2">
79
- <span class="stat-label text-xs fw-semibold"><span><i class="text-muted {./icon}"></i> {tx(./name)}</span></span>
79
+ <span class="stat-label text-xs fw-semibold"><span><i class="text-muted {./icon}"></i> {{tx(./name)}}</span></span>
80
80
  {{{ if (./type == "input-link") }}}
81
81
  <a class="text-center text-break w-100 px-2 ff-secondary text-underline text-reset" href="{./value}" rel="nofollow noreferrer">{./linkValue}</a>
82
82
  {{{ else }}}
@@ -10,7 +10,7 @@
10
10
  <label for="bootswatchSkin" class="form-label fw-bold">[[user:select-skin]]</label>
11
11
  <select class="form-select form-select-sm" id="bootswatchSkin" data-property="bootswatchSkin">
12
12
  {{{each bootswatchSkinOptions}}}
13
- <option value="{bootswatchSkinOptions.value}" {{{ if bootswatchSkinOptions.selected }}}selected{{{ end }}}>{tx(bootswatchSkinOptions.name)}</option>
13
+ <option value="{bootswatchSkinOptions.value}" {{{ if bootswatchSkinOptions.selected }}}selected{{{ end }}}>{{tx(bootswatchSkinOptions.name)}}</option>
14
14
  {{{end}}}
15
15
  </select>
16
16
 
@@ -177,7 +177,7 @@
177
177
  <label class="form-label text-sm" for="dailyDigestFreq">[[user:digest-label]]</label>
178
178
  <select class="form-select form-select-sm" id="dailyDigestFreq" data-property="dailyDigestFreq" autocomplete="off">
179
179
  {{{each dailyDigestFreqOptions}}}
180
- <option value="{./value}" {{{ if ./selected }}}selected="1"{{{ end }}}>{tx(./name)}</option>
180
+ <option value="{./value}" {{{ if ./selected }}}selected="1"{{{ end }}}>{{tx(./name)}}</option>
181
181
  {{{end}}}
182
182
  </select>
183
183
  <p class="form-text text-xs">[[user:digest-description]]</p>
@@ -271,7 +271,7 @@
271
271
  <tr component="notification/setting" class="align-middle">
272
272
  <td style="width:100%;">
273
273
  <div class="align-items-center">
274
- <label class="text-sm tracking-tight" for="{./name}">{tx(./label)}</label>
274
+ <label class="text-sm tracking-tight" for="{./name}">{{tx(./label)}}</label>
275
275
  <input type="hidden" data-property="{./name}" value="{./value}">
276
276
  </div>
277
277
  </td>
@@ -7,7 +7,7 @@
7
7
  </div>
8
8
 
9
9
  {{{ if !topics.length }}}
10
- <div class="alert alert-warning text-center">{tx(noItemsFoundKey)}</div>
10
+ <div class="alert alert-warning text-center">{{tx(noItemsFoundKey)}}</div>
11
11
  {{{ end }}}
12
12
 
13
13
  <div class="category">
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div class="d-flex justify-content-between align-items-center mb-3">
4
4
  <div class="d-flex gap-1">
5
- <h3 class="fw-semibold fs-5 mb-0">{tx(title)}</h3>
5
+ <h3 class="fw-semibold fs-5 mb-0">{{tx(title)}}</h3>
6
6
  </div>
7
7
  </div>
8
8
 
@@ -10,7 +10,7 @@
10
10
  {{{each sortOptions }}}
11
11
  <li>
12
12
  <a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="{config.relative_path}{./url}" role="menuitem">
13
- <div class="flex-grow-1">{./name}</div>
13
+ <div class="flex-grow-1">{{tx(./name)}}</div>
14
14
  <i class="flex-shrink-0 fa fa-fw {{{if ./selected}}}fa-check{{{end}}}"></i>
15
15
  </a>
16
16
  </li>
@@ -32,7 +32,7 @@
32
32
 
33
33
 
34
34
  {{{ if !topics.length }}}
35
- <div class="alert alert-warning text-center">{tx(noItemsFoundKey)}</div>
35
+ <div class="alert alert-warning text-center">{{tx(noItemsFoundKey)}}</div>
36
36
  {{{ end }}}
37
37
 
38
38
  <div class="category">
@@ -1,6 +1,6 @@
1
1
  <!-- IMPORT partials/account/header.tpl -->
2
2
 
3
- <h3 class="fw-semibold fs-5">{tx(title)}</h3>
3
+ <h3 class="fw-semibold fs-5">{{tx(title)}}</h3>
4
4
 
5
5
  <div class="alert alert-info text-center">
6
6
  {{{ if privateUploads }}}[[uploads:private-uploads-info]]{{{ else }}}[[uploads:public-uploads-info]]{{{ end }}}
@@ -10,7 +10,7 @@
10
10
  <hr/>
11
11
  {{{ else }}}
12
12
  <a class="btn btn-ghost d-flex gap-2 text-start align-items-baseline text-sm ff-secondary fw-semibold {{{ if ./selected }}}active{{{ end }}}" href="{config.relative_path}/notifications?filter={./filter}">
13
- <div class="flex-grow-1">{tx(filters.name)}</div>
13
+ <div class="flex-grow-1">{{tx(filters.name)}}</div>
14
14
  {{{ if ./filter }}}
15
15
  <span class="flex-shrink-0 text-xs" title="{./count}">{humanReadableNumber(./count)}</span>
16
16
  {{{ end }}}
@@ -119,7 +119,7 @@
119
119
 
120
120
  {{{ each profile_links }}}
121
121
  <a href="{config.relative_path}/user/{userslug}/{./route}" class="btn btn-ghost btn-sm ff-secondary text-xs text-start plugin-link {{{ if ./public }}}public{{{ else }}}private{{{ end }}} {{{ if (url == ./url) }}}active{{{ end }}}" id="{./id}">
122
- <div class="flex-grow-1">{tx(./name)}</div>
122
+ <div class="flex-grow-1">{{tx(./name)}}</div>
123
123
  </a>
124
124
  {{{end}}}
125
125
  </div>
@@ -1,6 +1,6 @@
1
1
  <div class="position-fixed bottom-0 w-100 px-3 px-md-0 pb-5 mb-5 pb-lg-0 mb-lg-0" style="z-index: 2;">
2
2
  <div class="cookie-consent d-flex flex-column flex-lg-row gap-2 text-bg-info col-12 col-sm-8 col-lg-6 p-3 mx-auto rounded mb-5 mb-md-3 justify-content-between align-items-center">
3
- <span>{tx(message)} <a class="fw-bold" target="_blank" rel="noopener" href="{link_url}">{tx(link)}</a></span>
4
- <button class="btn btn-primary text-nowrap">{tx(dismiss)}</button>
3
+ <span>{{tx(message)}} <a class="fw-bold" target="_blank" rel="noopener" href="{link_url}">{{tx(link)}}</a></span>
4
+ <button class="btn btn-primary text-nowrap">{{tx(dismiss)}}</button>
5
5
  </div>
6
6
  </div>
@@ -17,7 +17,7 @@
17
17
  {{{ if ./iconClass }}}
18
18
  <i class="fa fa-fw {./iconClass}" data-content="{./content}"></i>
19
19
  {{{ end }}}
20
- {{{ if ./text }}}<span class="nav-text px-2 fw-semibold">{tx(./text)}</span>{{{ end }}}
20
+ {{{ if ./text }}}<span class="nav-text px-2 fw-semibold">{{tx(./text)}}</span>{{{ end }}}
21
21
  </span>
22
22
  <span component="navigation/count" class="badge rounded-1 bg-primary {{{ if !./content }}}hidden{{{ end }}}">{./content}</span>
23
23
  </span>
@@ -11,7 +11,7 @@
11
11
  <span component="navigation/count" class="visible-closed position-absolute top-0 start-100 translate-middle badge rounded-1 bg-primary {{{ if !./content }}}hidden{{{ end }}}">{./content}</span>
12
12
  {{{ end }}}
13
13
  </span>
14
- {{{ if ./text }}}<span class="nav-text small visible-open fw-semibold text-truncate">{tx(./text)}</span>{{{ end }}}
14
+ {{{ if ./text }}}<span class="nav-text small visible-open fw-semibold text-truncate">{{tx(./text)}}</span>{{{ end }}}
15
15
  </span>
16
16
  <span component="navigation/count" class="visible-open badge rounded-1 bg-primary {{{ if !./content }}}hidden{{{ end }}}">{./content}</span>
17
17
  </a>
@@ -37,12 +37,12 @@
37
37
  <div class="d-grid" style="grid-template-columns: 1fr 1fr;">
38
38
  {{{ each bootswatchSkinOptions.default }}}
39
39
  <li>
40
- <a href="#" class="dropdown-item rounded-1" data-value="{./value}" role="menuitem">{tx(./name)} <i class="fa fa-fw fa-check {{{ if !./selected }}} invisible {{{ end }}}"></i></a>
40
+ <a href="#" class="dropdown-item rounded-1" data-value="{./value}" role="menuitem">{{tx(./name)}} <i class="fa fa-fw fa-check {{{ if !./selected }}} invisible {{{ end }}}"></i></a>
41
41
  </li>
42
42
  {{{ end }}}
43
43
  {{{ each bootswatchSkinOptions.custom }}}
44
44
  <li>
45
- <a href="#" class="dropdown-item rounded-1" data-value="{./value}" role="menuitem">{tx(./name)} <i class="fa fa-fw fa-check {{{ if !./selected }}} invisible {{{ end }}}"></i></a>
45
+ <a href="#" class="dropdown-item rounded-1" data-value="{./value}" role="menuitem">{{tx(./name)}} <i class="fa fa-fw fa-check {{{ if !./selected }}} invisible {{{ end }}}"></i></a>
46
46
  </li>
47
47
  {{{ end }}}
48
48
  </div>
@@ -2,7 +2,7 @@
2
2
  <div>
3
3
  <a href="{config.relative_path}/tags/{./valueEncoded}" data-tag="{./value}" class="btn btn-ghost ff-base d-flex flex-column gap-1 align-items-start justify-content-start text-truncate p-2">
4
4
  <div class="fw-semibold text-nowrap tag-item w-100 text-start text-truncate">{./value}</div>
5
- <div class="text-xs text-muted text-nowrap tag-topic-count">{tx("global:x-topics", formattedNumber(./score))}</div>
5
+ <div class="text-xs text-muted text-nowrap tag-topic-count">{{tx("global:x-topics", formattedNumber(./score))}}</div>
6
6
  </a>
7
7
  </div>
8
8
  {{{end}}}
@@ -8,4 +8,4 @@
8
8
  <span class="timeago text-nowrap text-muted" title="{post.timestampISO}"></span>
9
9
  </div>
10
10
 
11
- <div class="text-sm">{{{ if post.txContent }}}{{tx(posts.content)}}{{{ else }}}{{txEscape(post.content))}}{{{ end }}}</div>
11
+ <div class="text-sm">{{{ if post.txContent }}}{{tx(posts.content)}}{{{ else }}}{{txEscape(post.content)}}{{{ end }}}</div>
@@ -2,5 +2,5 @@
2
2
  <div class="timeline-badge">
3
3
  <i class="fa fa-clock small"></i>
4
4
  </div>
5
- <span class="timeline-text small fw-semibold">{tx(text)}</span>
5
+ <span class="timeline-text small fw-semibold">{{tx(text)}}</span>
6
6
  </li>
@@ -98,7 +98,7 @@
98
98
  {{{ end }}}
99
99
  </span>
100
100
 
101
- <span class="ms-2 replies-count fw-semibold text-nowrap" component="post/reply-count/text" data-replies="{posts.replies.count}">{tx(posts.replies.text)}</span>
101
+ <span class="ms-2 replies-count fw-semibold text-nowrap" component="post/reply-count/text" data-replies="{posts.replies.count}">{{tx(posts.replies.text)}}</span>
102
102
  <span class="ms-2 replies-last hidden-xs fw-semibold">[[topic:last-reply-time]] <span class="timeago" title="{posts.replies.timestampISO}"></span></span>
103
103
 
104
104
  <i class="fa fa-fw fa-chevron-down" component="post/replies/open"></i>
@@ -1,7 +1,7 @@
1
1
  <div class="dropdown bottom-sheet" component="thread/sort">
2
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
- <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">{tx(sortOptionLabel)}</span>
4
+ <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">{{tx(sortOptionLabel)}}</span>
5
5
  </button>
6
6
 
7
7
  <ul class="dropdown-menu dropdown-menu-end p-1 text-sm" role="menu">