nodebb-theme-harmony 2.2.6 → 2.2.8
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 +2 -2
- package/templates/partials/topic-list-bar.tpl +15 -16
- package/templates/topic.tpl +3 -0
- package/templates/world.tpl +24 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-theme-harmony",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8",
|
|
4
4
|
"nbbpm": {
|
|
5
5
|
"compatibility": "^4.0.0"
|
|
6
6
|
},
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"eslint": "10.0.0",
|
|
49
|
-
"eslint-config-nodebb": "^
|
|
49
|
+
"eslint-config-nodebb": "^2.0.0"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -26,24 +26,23 @@
|
|
|
26
26
|
{{{ end }}}
|
|
27
27
|
|
|
28
28
|
{{{ if template.world }}}
|
|
29
|
-
<
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</ul>
|
|
29
|
+
<div class="btn-group bottom-sheet">
|
|
30
|
+
<button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown">
|
|
31
|
+
<i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
|
|
32
|
+
<span id="sort-label" class="visible-md-inline visible-lg-inline fw-semibold"></span>
|
|
33
|
+
</button>
|
|
34
|
+
<ul class="dropdown-menu" id="sort-options">
|
|
35
|
+
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/world">[[world:latest]]</a></li>
|
|
36
|
+
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=day">[[world:popular-day]]</a></li>
|
|
37
|
+
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=week">[[world:popular-week]]</a></li>
|
|
38
|
+
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=month">[[world:popular-month]]</a></li>
|
|
39
|
+
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=year">[[world:popular-year]]</a></li>
|
|
40
|
+
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=alltime">[[world:popular-alltime]]</a></li>
|
|
41
|
+
</ul>
|
|
42
|
+
</div>
|
|
44
43
|
<a class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center fw-semibold" href="#" id="world-help">
|
|
45
44
|
<i class="fa fa-question text-primary"></i>
|
|
46
|
-
[[world:help]]
|
|
45
|
+
<span class="visible-md-inline visible-lg-inline">[[world:help]]</span>
|
|
47
46
|
</a>
|
|
48
47
|
{{{ end }}}
|
|
49
48
|
|
package/templates/topic.tpl
CHANGED
|
@@ -100,6 +100,9 @@
|
|
|
100
100
|
{{{ if config.theme.enableQuickReply }}}
|
|
101
101
|
<!-- IMPORT partials/topic/quickreply.tpl -->
|
|
102
102
|
{{{ end }}}
|
|
103
|
+
{{{ if !config.loggedIn }}}
|
|
104
|
+
<!-- IMPORT partials/topic/guest-cta.tpl -->
|
|
105
|
+
{{{ end }}}
|
|
103
106
|
</div>
|
|
104
107
|
<div class="d-flex d-none d-lg-block flex-grow-1 mt-2">
|
|
105
108
|
<div class="sticky-top" style="{{{ if config.theme.topicSidebarTools }}}top:2rem;{{{ else }}}top:6rem; {{{ end }}} z-index:1;">
|
package/templates/world.tpl
CHANGED
|
@@ -30,14 +30,36 @@
|
|
|
30
30
|
<div class="col-lg-4 col-sm-12 mt-2 pt-1">
|
|
31
31
|
<form class="mb-3" role="search" method="GET" action="{config.relative_path}/search">
|
|
32
32
|
<input type="hidden" name="in" value="categories" />
|
|
33
|
-
<
|
|
33
|
+
<div class="input-group bottom-sheet">
|
|
34
|
+
<input class="form-control form-control-lg" component="category-search" name="term" type="text" autocomplete="off" placeholder="[[world:category-search]]" />
|
|
35
|
+
<button class="btn btn-outline-secondary dropdown-toggle d-md-none" type="button" data-bs-toggle="dropdown">
|
|
36
|
+
<i class="fa fa-fw fa-list"></i>
|
|
37
|
+
</button>
|
|
38
|
+
<ul class="dropdown-menu">
|
|
39
|
+
{{{ each categories }}}
|
|
40
|
+
<li class="flex-grow-1 align-items-start d-flex gap-2 p-1 mb-2 position-relative">
|
|
41
|
+
<div>
|
|
42
|
+
{buildCategoryIcon(@value, "24px", "rounded-1")}
|
|
43
|
+
</div>
|
|
44
|
+
<div class="d-grid gap-0">
|
|
45
|
+
<div class="title fw-semibold">
|
|
46
|
+
<a class="text-reset stretched-link" href="{{{ if ./link }}}{./link}{{{ else }}}{config.relative_path}/category/{./slug}{{{ end }}}" itemprop="url">{../name}</a>
|
|
47
|
+
</div>
|
|
48
|
+
{{{ if ./descriptionParsed }}}
|
|
49
|
+
<div class="description text-muted text-xs w-100 line-clamp-sm-5">{./descriptionParsed}</div>
|
|
50
|
+
{{{ end }}}
|
|
51
|
+
</div>
|
|
52
|
+
</li>
|
|
53
|
+
{{{ end }}}
|
|
54
|
+
</ul>
|
|
55
|
+
</div>
|
|
34
56
|
</form>
|
|
35
57
|
<div class="quick-search-container dropdown-menu d-block p-2 hidden">
|
|
36
58
|
<div class="text-center loading-indicator"><i class="fa fa-spinner fa-spin"></i></div>
|
|
37
59
|
<div class="quick-search-results-container"></div>
|
|
38
60
|
</div>
|
|
39
61
|
|
|
40
|
-
<ul class="categories-list ps-0 list-unstyled pt-3">
|
|
62
|
+
<ul class="categories-list ps-0 list-unstyled pt-3 d-none d-md-block">
|
|
41
63
|
{{{ each categories }}}
|
|
42
64
|
<!-- IMPORT partials/account/category-item.tpl -->
|
|
43
65
|
{{{ end }}}
|