nodebb-theme-harmony 2.2.6 → 2.2.7
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 +2939 -0
- package/package.json +1 -1
- package/templates/partials/topic-list-bar.tpl +15 -16
- package/templates/world.tpl +24 -2
package/package.json
CHANGED
|
@@ -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/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 }}}
|