nodebb-theme-harmony 2.1.25 → 2.1.27
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-lock.json +10 -10
- package/package.json +2 -2
- package/templates/partials/topic/stats.tpl +8 -0
- package/templates/topic.tpl +9 -1
package/package-lock.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-theme-harmony",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.27",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "nodebb-theme-harmony",
|
|
9
|
-
"version": "2.1.
|
|
9
|
+
"version": "2.1.27",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@fontsource/inter": "5.2.8",
|
|
13
13
|
"@fontsource/poppins": "5.2.7"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"eslint": "9.39.
|
|
16
|
+
"eslint": "9.39.2",
|
|
17
17
|
"eslint-config-nodebb": "^1.1.4"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
@@ -121,9 +121,9 @@
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
"node_modules/@eslint/js": {
|
|
124
|
-
"version": "9.39.
|
|
125
|
-
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.
|
|
126
|
-
"integrity": "sha512-
|
|
124
|
+
"version": "9.39.2",
|
|
125
|
+
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz",
|
|
126
|
+
"integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==",
|
|
127
127
|
"dev": true,
|
|
128
128
|
"license": "MIT",
|
|
129
129
|
"peer": true,
|
|
@@ -963,9 +963,9 @@
|
|
|
963
963
|
}
|
|
964
964
|
},
|
|
965
965
|
"node_modules/eslint": {
|
|
966
|
-
"version": "9.39.
|
|
967
|
-
"resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.
|
|
968
|
-
"integrity": "sha512-
|
|
966
|
+
"version": "9.39.2",
|
|
967
|
+
"resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz",
|
|
968
|
+
"integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==",
|
|
969
969
|
"dev": true,
|
|
970
970
|
"license": "MIT",
|
|
971
971
|
"peer": true,
|
|
@@ -976,7 +976,7 @@
|
|
|
976
976
|
"@eslint/config-helpers": "^0.4.2",
|
|
977
977
|
"@eslint/core": "^0.17.0",
|
|
978
978
|
"@eslint/eslintrc": "^3.3.1",
|
|
979
|
-
"@eslint/js": "9.39.
|
|
979
|
+
"@eslint/js": "9.39.2",
|
|
980
980
|
"@eslint/plugin-kit": "^0.4.1",
|
|
981
981
|
"@humanfs/node": "^0.16.6",
|
|
982
982
|
"@humanwhocodes/module-importer": "^1.0.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-theme-harmony",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.27",
|
|
4
4
|
"nbbpm": {
|
|
5
5
|
"compatibility": "^4.0.0"
|
|
6
6
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@fontsource/poppins": "5.2.7"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"eslint": "9.39.
|
|
44
|
+
"eslint": "9.39.2",
|
|
45
45
|
"eslint-config-nodebb": "^1.1.4"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
{{{ if ./crossposts.length }}}
|
|
2
|
+
<span class="badge text-body border border-gray-300 stats text-xs position-relative">
|
|
3
|
+
<i class="fa-regular fa-fw fa-clone visible-xs-inline" title="[[global:crossposts]]"></i>
|
|
4
|
+
<span component="topic/crosspost-count" title="{crossposts.length}" class="fw-bold">{humanReadableNumber(crossposts.length)}</span>
|
|
5
|
+
<span class="hidden-xs text-lowercase fw-normal">[[global:crossposts]]</span>
|
|
6
|
+
<a href="#" aria-label="[[aria:show-crossposts]]" id="show-crossposts" class="stretched-link"></a>
|
|
7
|
+
</span>
|
|
8
|
+
{{{ end }}}
|
|
1
9
|
<span class="badge text-body border border-gray-300 stats text-xs">
|
|
2
10
|
<i class="fa-regular fa-fw fa-message visible-xs-inline" title="[[global:posts]]"></i>
|
|
3
11
|
<span component="topic/post-count" title="{postcount}" class="fw-bold">{humanReadableNumber(postcount)}</span>
|
package/templates/topic.tpl
CHANGED
|
@@ -20,6 +20,14 @@
|
|
|
20
20
|
<meta itemprop="name" content="{author.username}">
|
|
21
21
|
{{{ if author.userslug }}}<meta itemprop="url" content="{config.relative_path}/user/{author.userslug}">{{{ end }}}
|
|
22
22
|
</div>
|
|
23
|
+
<div itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter">
|
|
24
|
+
<meta itemprop="interactionType" content="https://schema.org/CommentAction">
|
|
25
|
+
<meta itemprop="userInteractionCount" content="{increment(postcount, "-1")}">
|
|
26
|
+
</div>
|
|
27
|
+
<div itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter">
|
|
28
|
+
<meta itemprop="interactionType" content="https://schema.org/LikeAction">
|
|
29
|
+
<meta itemprop="userInteractionCount" content="{upvotes}">
|
|
30
|
+
</div>
|
|
23
31
|
|
|
24
32
|
<div class="d-flex flex-column gap-3">
|
|
25
33
|
<div class="d-flex gap-2 flex-wrap flex-column flex-md-row justify-content-between">
|
|
@@ -46,7 +54,7 @@
|
|
|
46
54
|
</span>
|
|
47
55
|
{buildCategoryLabel(category, "a", "border")}
|
|
48
56
|
<div data-tid="{./tid}" component="topic/tags" class="lh-1 tags tag-list d-flex flex-wrap hidden-xs hidden-empty gap-2"><!-- IMPORT partials/topic/tags.tpl --></div>
|
|
49
|
-
<div class="d-flex gap-2"><!-- IMPORT partials/topic/stats.tpl --></div>
|
|
57
|
+
<div class="d-flex gap-2" component="topic/stats"><!-- IMPORT partials/topic/stats.tpl --></div>
|
|
50
58
|
</div>
|
|
51
59
|
</div>
|
|
52
60
|
<div class="d-flex flex-wrap gap-2 align-items-start mt-2 hidden-empty {{{ if greaterthan(thumbs.length, "4") }}}thumbs-collapsed{{{ end }}}" component="topic/thumb/list"><!-- IMPORT partials/topic/thumbs.tpl --></div>
|