nodebb-theme-harmony 1.2.41 → 2.0.0-pre.10
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/library.js
CHANGED
|
@@ -84,7 +84,7 @@ library.defineWidgetAreas = async function (areas) {
|
|
|
84
84
|
const templates = [
|
|
85
85
|
'categories.tpl', 'category.tpl', 'topic.tpl', 'users.tpl',
|
|
86
86
|
'unread.tpl', 'recent.tpl', 'popular.tpl', 'top.tpl', 'tags.tpl', 'tag.tpl',
|
|
87
|
-
'login.tpl', 'register.tpl',
|
|
87
|
+
'login.tpl', 'register.tpl', 'world.tpl',
|
|
88
88
|
];
|
|
89
89
|
function capitalizeFirst(str) {
|
|
90
90
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-theme-harmony",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-pre.10",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "nodebb-theme-harmony",
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "2.0.0-pre.10",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@fontsource/inter": "5.0.15",
|
package/package.json
CHANGED
|
@@ -90,6 +90,14 @@
|
|
|
90
90
|
</a>
|
|
91
91
|
</li>
|
|
92
92
|
|
|
93
|
+
{{{ if posts.display_original_url }}}
|
|
94
|
+
<li>
|
|
95
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{posts.pid}">
|
|
96
|
+
<i class="fa fa-fw text-secondary fa-external-link"></i> [[topic:go-to-original]]
|
|
97
|
+
</a>
|
|
98
|
+
</li>
|
|
99
|
+
{{{ end }}}
|
|
100
|
+
|
|
93
101
|
{{{ if postSharing.length }}}
|
|
94
102
|
{{{ if config.loggedIn }}}<li class="dropdown-divider"></li>{{{ end }}}
|
|
95
103
|
<li class="dropdown-header">[[topic:share-this-post]]</li>
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
</div>
|
|
66
66
|
<div class="d-flex align-items-center gap-1 flex-grow-1 justify-content-end">
|
|
67
67
|
<span class="bookmarked opacity-0 text-primary"><i class="fa fa-bookmark-o"></i></span>
|
|
68
|
-
<a href="{config.relative_path}/post/{./pid}" class="post-index text-muted d-none d-md-inline">#{increment(./index, "1")}</a>
|
|
68
|
+
<a href="{config.relative_path}/post/{encodeURIComponent(./pid)}" class="post-index text-muted d-none d-md-inline">#{increment(./index, "1")}</a>
|
|
69
69
|
</div>
|
|
70
70
|
</div>
|
|
71
71
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{{{ if widgets.header.length }}}
|
|
2
|
+
<div data-widget-area="header">
|
|
3
|
+
{{{each widgets.header}}}
|
|
4
|
+
{{widgets.header.html}}
|
|
5
|
+
{{{end}}}
|
|
6
|
+
</div>
|
|
7
|
+
{{{ end }}}
|
|
8
|
+
|
|
9
|
+
<div class="row">
|
|
10
|
+
<div class="world {{{if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
|
|
11
|
+
<!-- IMPORT partials/topic-list-bar.tpl -->
|
|
12
|
+
|
|
13
|
+
<div class="category">
|
|
14
|
+
{{{ if !topics.length }}}
|
|
15
|
+
<div class="alert alert-info" id="category-no-topics">[[activitypub:no-topics]]</div>
|
|
16
|
+
{{{ end }}}
|
|
17
|
+
|
|
18
|
+
<!-- IMPORT partials/topics_list.tpl -->
|
|
19
|
+
|
|
20
|
+
{{{ if config.usePagination }}}
|
|
21
|
+
<!-- IMPORT partials/paginator.tpl -->
|
|
22
|
+
{{{ end }}}
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
|
|
26
|
+
{{{ each widgets.sidebar }}}
|
|
27
|
+
{{widgets.sidebar.html}}
|
|
28
|
+
{{{ end }}}
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div data-widget-area="footer">
|
|
33
|
+
{{{each widgets.footer}}}
|
|
34
|
+
{{widgets.footer.html}}
|
|
35
|
+
{{{end}}}
|
|
36
|
+
</div>
|