nodebb-theme-harmony 3.1.0 → 3.1.2
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 +3 -3
- package/templates/account/profile.tpl +1 -1
- package/templates/partials/categories/lastpost.tpl +1 -1
- package/templates/partials/posts_list_item.tpl +1 -1
- package/templates/partials/topic/navigation-post.tpl +1 -1
- package/templates/partials/topic/post.tpl +4 -4
- package/templates/partials/topics_list.tpl +1 -1
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-theme-harmony",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"nbbpm": {
|
|
5
|
-
"compatibility": "^4.
|
|
5
|
+
"compatibility": "^4.14.0"
|
|
6
6
|
},
|
|
7
7
|
"description": "Harmony theme for NodeBB",
|
|
8
8
|
"main": "library.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@fontsource/poppins": "5.2.7"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"eslint": "10.
|
|
48
|
+
"eslint": "10.7.0",
|
|
49
49
|
"eslint-config-nodebb": "^2.0.2"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
<div class="post-content text-xs text-break line-clamp-sm-2 lh-sm position-relative flex-fill">
|
|
10
10
|
<a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./topic.slug}{{{ if ./index }}}/{./index}{{{ end }}}" aria-label="{{tx("global:lastpost")}}"></a>
|
|
11
|
-
{{./content}}
|
|
11
|
+
{{txEscape(./content)}}
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
14
14
|
{{{ end }}}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
16
|
<div component="post/content" class="content text-sm text-break">
|
|
17
|
-
{{{ if ./txContent }}}{{tx(./content)}}{{{ else }}}{{./content}}{{{ end }}}
|
|
17
|
+
{{{ if ./txContent }}}{{tx(./content)}}{{{ else }}}{{txEscape(./content)}}{{{ end }}}
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
20
|
<div class="mb-3 d-flex flex-wrap gap-1 w-100">
|
|
@@ -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 }}}{{post.content}}{{{ end }}}</div>
|
|
11
|
+
<div class="text-sm">{{{ if post.txContent }}}{{tx(posts.content)}}{{{ else }}}{{txEscape(post.content)}}{{{ end }}}</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{{{ if (!./index && widgets.mainpost-header.length) }}}
|
|
2
2
|
<div data-widget-area="mainpost-header">
|
|
3
3
|
{{{ each widgets.mainpost-header }}}
|
|
4
|
-
{widgets.mainpost-header.html}
|
|
4
|
+
{{widgets.mainpost-header.html}}
|
|
5
5
|
{{{ end }}}
|
|
6
6
|
</div>
|
|
7
7
|
{{{ end }}}
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
</div>
|
|
79
79
|
|
|
80
80
|
<div class="content text-break" component="post/content" itemprop="text">
|
|
81
|
-
{{{ if posts.txContent }}}{{tx(posts.content)}}{{{ else }}}{{posts.content}}{{{ end }}}
|
|
81
|
+
{{{ if posts.txContent }}}{{tx(posts.content)}}{{{ else }}}{{txEscape(posts.content)}}{{{ end }}}
|
|
82
82
|
</div>
|
|
83
83
|
|
|
84
84
|
<div component="post/footer" class="post-footer border-bottom pb-2">
|
|
85
85
|
{{{ if posts.user.signature }}}
|
|
86
|
-
<div component="post/signature" data-uid="{posts.user.uid}" class="text-xs text-muted mt-2">{{posts.user.signature}}</div>
|
|
86
|
+
<div component="post/signature" data-uid="{posts.user.uid}" class="text-xs text-muted mt-2">{{txEscape(posts.user.signature)}}</div>
|
|
87
87
|
{{{ end }}}
|
|
88
88
|
|
|
89
89
|
<div class="d-flex flex-wrap-reverse gap-2 {{{ if (hideReplies || !posts.replies.count) }}}justify-content-end{{{ else }}}justify-content-between{{{ end }}}">
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
{{{ if (!./index && widgets.mainpost-footer.length) }}}
|
|
144
144
|
<div data-widget-area="mainpost-footer">
|
|
145
145
|
{{{ each widgets.mainpost-footer }}}
|
|
146
|
-
{widgets.mainpost-footer.html}
|
|
146
|
+
{{widgets.mainpost-footer.html}}
|
|
147
147
|
{{{ end }}}
|
|
148
148
|
</div>
|
|
149
149
|
{{{ end }}}
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
</div>
|
|
121
121
|
<div class="post-content text-xs ps-2 line-clamp-sm-2 lh-sm text-break position-relative flex-fill">
|
|
122
122
|
<a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" aria-label="{{tx("global:lastpost")}}"></a>
|
|
123
|
-
{{./teaser.content}}
|
|
123
|
+
{{txEscape(./teaser.content)}}
|
|
124
124
|
</div>
|
|
125
125
|
{{{ end }}}
|
|
126
126
|
{{{ end }}}
|