nodebb-theme-harmony 1.0.0-beta.65 → 1.0.0-beta.66

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "1.0.0-beta.65",
3
+ "version": "1.0.0-beta.66",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
package/scss/account.scss CHANGED
@@ -1,4 +1,4 @@
1
- .page-user #panel {
1
+ .page-user.page-status-200 #panel {
2
2
  margin-top: 0px!important;
3
3
  }
4
4
  .account {
@@ -1,21 +1,25 @@
1
1
  <!-- IMPORT partials/account/header.tpl -->
2
2
 
3
- <h3 class="fw-semibold fs-5">{title}</h3>
3
+ <div class="d-flex justify-content-between align-items-center mb-3">
4
+ <div class="d-flex gap-1">
5
+ <h3 class="fw-semibold fs-5 mb-0">{title}</h3>
6
+ </div>
4
7
 
5
- <div class="row">
6
- <div class="col-lg-12 mb-2">
7
- <div class="btn-group bottom-sheet" component="category/watch/all">
8
- <button class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" type="button">
9
- <span>[[user:change_all]]</span>
10
- </button>
11
- <ul class="dropdown-menu">
12
- <li><a class="dropdown-item" href="#" component="category/watching" data-state="watching"><i class="fa fa-fw fa-inbox"></i> [[category:watching]]<p class="help-text"><small>[[category:watching.description]]</small></p></a></li>
13
- <li><a class="dropdown-item" href="#" component="category/notwatching" data-state="notwatching"><i class="fa fa-fw fa-clock-o"></i> [[category:not-watching]]<p class="help-text"><small>[[category:not-watching.description]]</small></p></a></li>
14
- <li><a class="dropdown-item" href="#" component="category/ignoring" data-state="ignoring"><i class="fa fa-fw fa-eye-slash"></i> [[category:ignoring]]<p class="help-text"><small>[[category:ignoring.description]]</small></p></a></li>
15
- </ul>
8
+ <div class="d-flex gap-1">
9
+ <div class="btn-group bottom-sheet" component="category/watch/all">
10
+ <button class="btn-ghost-sm fw-semibold dropdown-toggle" data-bs-toggle="dropdown" type="button">
11
+ <span>[[user:change_all]]</span>
12
+ </button>
13
+ <ul class="dropdown-menu dropdown-menu-end">
14
+ <li><a class="dropdown-item" href="#" component="category/watching" data-state="watching"><i class="fa fa-fw fa-inbox"></i> [[category:watching]]<p class="help-text"><small>[[category:watching.description]]</small></p></a></li>
15
+ <li><a class="dropdown-item" href="#" component="category/notwatching" data-state="notwatching"><i class="fa fa-fw fa-clock-o"></i> [[category:not-watching]]<p class="help-text"><small>[[category:not-watching.description]]</small></p></a></li>
16
+ <li><a class="dropdown-item" href="#" component="category/ignoring" data-state="ignoring"><i class="fa fa-fw fa-eye-slash"></i> [[category:ignoring]]<p class="help-text"><small>[[category:ignoring.description]]</small></p></a></li>
17
+ </ul>
18
+ </div>
16
19
  </div>
17
20
  </div>
18
- <div class="col-lg-12">
21
+
22
+ <div>
19
23
  <ul class="categories list-unstyled" itemscope itemtype="http://www.schema.org/ItemList">
20
24
  {{{each categories}}}
21
25
  <!-- IMPORT partials/account/category-item.tpl -->
@@ -33,7 +33,7 @@
33
33
 
34
34
  {{{ if !topics.length }}}
35
35
  {{{ if privileges.topics:create }}}
36
- <div class="alert alert-info mt-3" id="category-no-topics">
36
+ <div class="alert alert-info" id="category-no-topics">
37
37
  [[category:no_topics]]
38
38
  </div>
39
39
  {{{ end }}}
@@ -1,6 +1,6 @@
1
- <li component="categories/category" data-cid="{./cid}" class="row category-{./cid} mb-4">
1
+ <li component="categories/category" data-cid="{./cid}" data-parent-cid="{../parentCid}" class="row category-{./cid} mb-4">
2
2
  <meta itemprop="name" content="{./name}">
3
- <div class="content col-10 depth-{../depth}">
3
+ <div class="content col-10 depth-{./depth}">
4
4
  <div class="d-flex">
5
5
  <div class="fs-3">
6
6
  {buildCategoryIcon(@value, "40px", "rounded-1")}
@@ -12,8 +12,8 @@
12
12
  </h3>
13
13
  <!-- description -->
14
14
  <div class="mb-2">
15
- {{{ if ../descriptionParsed }}}
16
- <div class="description text-muted">{../descriptionParsed}</div>
15
+ {{{ if ./descriptionParsed }}}
16
+ <div class="description text-muted">{./descriptionParsed}</div>
17
17
  {{{ end }}}
18
18
  </div>
19
19
  </div>
@@ -39,6 +39,12 @@
39
39
  </a>
40
40
 
41
41
  {{{ if canEdit }}}
42
+ <a href="{config.relative_path}/user/{userslug}/categories" class="btn-ghost fw-semibold
43
+ {{{ if template.account/categories }}}active{{{ end }}}">
44
+ <div class="flex-1">[[user:watched_categories]]</div>
45
+ <span class="text-xs human-readable-number" title="{counts.categoriesWatched}">{counts.categoriesWatched}</span>
46
+ </a>
47
+
42
48
  <a href="{config.relative_path}/user/{userslug}/blocks" class="btn-ghost fw-semibold
43
49
  {{{ if template.account/blocks }}}active{{{ end }}}">
44
50
  <div class="flex-1">[[user:blocked-users]]</div>
@@ -1,5 +1,5 @@
1
- <div class="{{{ if config.theme.stickyToolbar }}}sticky-tools{{{ end }}}">
2
- <nav class="topic-list-header navbar navbar-expand p-0 border-0 rounded my-2">
1
+ <div class="{{{ if config.theme.stickyToolbar }}}sticky-tools{{{ end }}} mb-3">
2
+ <nav class="topic-list-header navbar navbar-expand p-0 border-0 rounded">
3
3
  <div class="card card-header flex-row p-2 gap-1 border rounded w-100">
4
4
  <ul component="category/controls" class="navbar-nav me-auto gap-2 align-items-center">
5
5
  {{{ if template.category }}}
@@ -1,13 +1,15 @@
1
+ {{{ if widgets.header.length }}}
1
2
  <div data-widget-area="header">
2
3
  {{{each widgets.header}}}
3
4
  {{widgets.header.html}}
4
5
  {{{end}}}
5
6
  </div>
7
+ {{{ end }}}
6
8
  <div class="popular">
7
9
  <!-- IMPORT partials/topic-list-bar.tpl -->
8
10
  <div class="category">
9
11
  {{{ if !topics.length }}}
10
- <div class="alert alert-info mt-3" id="category-no-topics">[[recent:no_popular_topics]]</div>
12
+ <div class="alert alert-info" id="category-no-topics">[[recent:no_popular_topics]]</div>
11
13
  {{{ end }}}
12
14
 
13
15
  <!-- IMPORT partials/topics_list.tpl -->
@@ -1,15 +1,16 @@
1
+ {{{ if widgets.header.length }}}
1
2
  <div data-widget-area="header">
2
3
  {{{each widgets.header}}}
3
4
  {{widgets.header.html}}
4
5
  {{{end}}}
5
6
  </div>
6
-
7
+ {{{ end }}}
7
8
  <div class="recent">
8
9
  <!-- IMPORT partials/topic-list-bar.tpl -->
9
10
 
10
11
  <div class="category">
11
12
  {{{ if !topics.length }}}
12
- <div class="alert alert-info mt-3" id="category-no-topics">[[recent:no_recent_topics]]</div>
13
+ <div class="alert alert-info" id="category-no-topics">[[recent:no_recent_topics]]</div>
13
14
  {{{ end }}}
14
15
 
15
16
  <!-- IMPORT partials/topics_list.tpl -->
package/templates/top.tpl CHANGED
@@ -1,13 +1,15 @@
1
+ {{{ if widgets.header.length }}}
1
2
  <div data-widget-area="header">
2
3
  {{{each widgets.header}}}
3
4
  {{widgets.header.html}}
4
5
  {{{end}}}
5
6
  </div>
7
+ {{{ end }}}
6
8
  <div class="top">
7
9
  <!-- IMPORT partials/topic-list-bar.tpl -->
8
10
  <div class="category">
9
11
  {{{ if !topics.length }}}
10
- <div class="alert alert-info mt-3" id="category-no-topics">[[top:no_top_topics]]</div>
12
+ <div class="alert alert-info" id="category-no-topics">[[top:no_top_topics]]</div>
11
13
  {{{ end }}}
12
14
 
13
15
  <!-- IMPORT partials/topics_list.tpl -->
@@ -1,12 +1,14 @@
1
+ {{{ if widgets.header.length }}}
1
2
  <div data-widget-area="header">
2
3
  {{{each widgets.header}}}
3
4
  {{widgets.header.html}}
4
5
  {{{end}}}
5
6
  </div>
7
+ {{{ end }}}
6
8
  <div class="unread">
7
9
  <!-- IMPORT partials/topic-list-bar.tpl -->
8
10
  <div class="category">
9
- <div id="category-no-topics" class="alert alert-info mt-3 {{{ if topics.length }}}hidden{{{ end }}}">[[unread:no_unread_topics]]</div>
11
+ <div id="category-no-topics" class="alert alert-info {{{ if topics.length }}}hidden{{{ end }}}">[[unread:no_unread_topics]]</div>
10
12
 
11
13
  <!-- IMPORT partials/topics_list.tpl -->
12
14
  <button id="load-more-btn" class="btn btn-primary hide">[[unread:load_more]]</button>