nodebb-theme-harmony 1.2.34 → 2.0.0-pre.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/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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "1.2.34",
3
+ "version": "2.0.0-pre.2",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.5.0"
6
6
  },
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
 
15
15
  <div class="form-check form-switch mb-3">
16
- <input type="checkbox" class="form-check-input" id="enableBreadcrumbs" name="enableBreadcrumbs" {{{ if theme.enableBreadcrumbs }}}checked{{{ end }}} />
16
+ <input type="checkbox" class="form-check-input" id="enableBreadcrumbs" name="enableBreadcrumbs" />
17
17
  <label for="enableBreadcrumbs" class="form-check-label">[[themes/harmony:settings.enableBreadcrumbs]]</label>
18
18
  </div>
19
19
 
@@ -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="{generatePostUrl(@value)}" class="post-index text-muted d-none d-md-inline">#{increment(./index, "1")}</a>
69
69
  </div>
70
70
  </div>
71
71
 
@@ -42,7 +42,7 @@
42
42
  </span>
43
43
  {{{each ./icons}}}<span class="lh-1">{@value}</span>{{{end}}}
44
44
 
45
- {{{ if !template.category }}}
45
+ {{{ if (!template.category && !template.world) }}}
46
46
  {function.buildCategoryLabel, ./category, "a", "border"}
47
47
  {{{ end }}}
48
48
 
@@ -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>