nodebb-theme-persona 15.1.5 → 15.1.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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "15.1.5",
3
+ "version": "15.1.7",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.14.0"
6
6
  },
@@ -7,7 +7,7 @@
7
7
 
8
8
  <ul component="blocks/search/list" class="dropdown-menu p-1 block-edit list-unstyled" role="menu">
9
9
  <li component="blocks/start-typing">
10
- <a href="#" class="dropdown-item rounded-1" role="menuitem">{{tx("admin/menu:search.start-typing")}}</a>
10
+ <a href="#" class="dropdown-item rounded-1" role="menuitem">{{tx("search:type-to-search")}}</a>
11
11
  </li>
12
12
  <li component="blocks/no-users" class="hidden">
13
13
  <a href="#" class="dropdown-item rounded-1" role="menuitem">{{tx("users:no-users-found")}}</a>
@@ -13,7 +13,7 @@
13
13
  <div class="imagedrop"><div>{{tx("topic:composer.drag-and-drop-images")}}</div></div>
14
14
  </div>
15
15
  <div>
16
- <div class="d-flex justify-content-end gap-2">
16
+ <div class="d-flex justify-content-end align-items-center gap-2">
17
17
  <div class="me-auto hidden" component="topic/quickreply/category-selector">
18
18
  <!-- IMPORT partials/category/selector-dropdown-left.tpl -->
19
19
  </div>
@@ -11,27 +11,28 @@
11
11
  </div>
12
12
  {{{ end }}}
13
13
 
14
- <div class="category-header d-flex flex-column gap-2">
15
- <div class="d-flex gap-2 align-items-center mb-1 {{{ if config.theme.centerHeaderElements }}}justify-content-center{{{ end }}}">
16
- {{buildCategoryIcon(@value, "40px", "rounded-1 flex-shrink-0")}}
17
- <h1 class="tracking-tight fs-2 fw-semibold mb-0 text-center">{{tx("world:name")}}</h1>
18
- </div>
19
- {{{ if ./descriptionParsed }}}
20
- <p class="description text-secondary text-sm w-100 {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}">
21
- {{{ if (cid == "-1") }}}{{tx(./descriptionParsed)}}{{{ else }}}{{./descriptionParsed}}{{{ end }}}
22
- </p>
23
- {{{ end }}}
24
- </div>
14
+ <div class="world flex-fill">
15
+ <div class="category">
16
+ <div class="row">
17
+ <div class="col-lg-3 col-sm-12 mt-2 pt-1 ">
18
+ <div class="category-header d-flex flex-column gap-2">
19
+ <div class="d-flex gap-2 align-items-center mb-1 {{{ if config.theme.centerHeaderElements }}}justify-content-center{{{ end }}}">
20
+ {{buildCategoryIcon(@value, "40px", "rounded-1 flex-shrink-0")}}
21
+ <h1 class="tracking-tight fs-2 fw-semibold mb-0 text-center">{{tx("world:name")}}</h1>
22
+ </div>
23
+ {{{ if ./descriptionParsed }}}
24
+ <p class="description text-secondary text-sm w-100 {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}">
25
+ {{{ if (cid == "-1") }}}{{tx(./descriptionParsed)}}{{{ else }}}{{./descriptionParsed}}{{{ end }}}
26
+ </p>
27
+ {{{ end }}}
28
+ </div>
25
29
 
26
- <div class="row flex-fill">
27
- <div class="world {{{if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
28
- <div class="category">
29
- <div class="row flex-row-reverse">
30
- <div class="col-lg-4 col-sm-12 mt-2 pt-1 {{{ if !config.loggedIn }}}invisible{{{ end }}}">
30
+ <div class="{{{ if !config.loggedIn }}}invisible{{{ end }}}">
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="{{tx("world:category-search")}}" />
34
+ <input class="form-control" component="category-search" name="term" type="text" autocomplete="off" placeholder="{{tx("world:category-search")}}" />
35
+ {{{ if categories.length }}}
35
36
  <button class="btn btn-outline-secondary dropdown-toggle d-md-none" type="button" data-bs-toggle="dropdown">
36
37
  <i class="fa fa-fw fa-list"></i>
37
38
  </button>
@@ -52,6 +53,7 @@
52
53
  </li>
53
54
  {{{ end }}}
54
55
  </ul>
56
+ {{{ end }}}
55
57
  </div>
56
58
  </form>
57
59
  <div class="quick-search-container dropdown-menu d-block p-2 hidden">
@@ -65,70 +67,44 @@
65
67
  {{{ end }}}
66
68
  </ul>
67
69
  </div>
70
+ </div>
68
71
 
69
- <div class="col-lg-8 col-sm-12">
70
- {{{ if posts.length }}}
71
- <div class="topic-list-header sticky-top btn-toolbar justify-content-end align-items-center px-1 py-2 mb-2 flex-nowrap">
72
- {{{ if config.loggedIn }}}
73
- <div class="dropdown bottom-sheet">
74
- <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown">
75
- <i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
76
- <span id="sort-label" class="visible-md-inline visible-lg-inline fw-semibold"></span>
77
- </button>
78
- <ul class="dropdown-menu" id="sort-options">
79
- <li><a class="dropdown-item" href="{config.relative_path}/world">{{tx("world:latest")}}</a></li>
80
- <li><a class="dropdown-item" href="{config.relative_path}/world?local=1">{{tx("world:latest-local")}}</a></li>
81
- <li><a class="dropdown-item" href="{config.relative_path}/world?all=1">{{tx("world:latest-all")}}</a></li>
82
- <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=day">{{tx("world:popular-day")}}</a></li>
83
- <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=week">{{tx("world:popular-week")}}</a></li>
84
- <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=month">{{tx("world:popular-month")}}</a></li>
85
- <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=year">{{tx("world:popular-year")}}</a></li>
86
- <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=alltime">{{tx("world:popular-alltime")}}</a></li>
87
- </ul>
88
- </div>
89
- {{{ end }}}
90
- <a class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center fw-semibold" id="world-help" href="#">
91
- <i class="fa fa-question text-primary"></i>
92
- <span class="visible-md-inline visible-lg-inline">{{tx("world:help")}}</span>
93
- </a>
94
- <!-- IMPORT partials/category/tools-dropdown-left.tpl -->
95
- </div>
96
- {{{ end }}}
72
+ <div class="col-lg-6 col-sm-12">
73
+ <!-- IMPORT partials/topic-list-bar.tpl -->
74
+ <!-- IMPORT partials/topic/quickreply.tpl -->
97
75
 
98
- <!-- IMPORT partials/topic/quickreply.tpl -->
76
+ {{{ if !config.loggedIn }}}
77
+ <div class="alert alert-info alert-dismissible fade show">
78
+ <p class="fw-semibold">
79
+ {{tx("world:onboard.title")}}
80
+ </p>
81
+ <p>{{tx("world:onboard.what")}}</p>
82
+ <p>{{tx("world:onboard.why")}}</p>
83
+ <p>{{tx("world:onboard.how")}}</p>
84
+ <a href="{config.relative_path}/register" class="fw-semibold btn btn-sm btn-warning">{{tx("global:register")}}</a>
85
+ <a href="{config.relative_path}/login" class="fw-semibold btn btn-sm btn-info">{{tx("global:login")}}</a>
86
+ <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="{{tx("global:close")}}"></button>
87
+ </div>
88
+ {{{ end }}}
99
89
 
100
- {{{ if !config.loggedIn }}}
101
- <div class="alert alert-info alert-dismissible fade show">
102
- <p class="fw-semibold">
103
- {{tx("world:onboard.title")}}
104
- </p>
105
- <p>{{tx("world:onboard.what")}}</p>
106
- <p>{{tx("world:onboard.why")}}</p>
107
- <p>{{tx("world:onboard.how")}}</p>
108
- <a href="{config.relative_path}/register" class="fw-semibold btn btn-sm btn-warning">{{tx("global:register")}}</a>
109
- <a href="{config.relative_path}/login" class="fw-semibold btn btn-sm btn-info">{{tx("global:login")}}</a>
110
- <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
111
- </div>
90
+ <ul class="list-unstyled" id="world-feed">
91
+ {{{ each posts }}}
92
+ <!-- IMPORT partials/feed/item.tpl -->
112
93
  {{{ end }}}
94
+ </ul>
113
95
 
114
- <ul class="list-unstyled" id="world-feed">
115
- {{{ each posts }}}
116
- <!-- IMPORT partials/feed/item.tpl -->
117
- {{{ end }}}
118
- </ul>
96
+ {{{ if config.usePagination }}}
97
+ <!-- IMPORT partials/paginator.tpl -->
98
+ {{{ end }}}
99
+ </div>
119
100
 
120
- {{{ if config.usePagination }}}
121
- <!-- IMPORT partials/paginator.tpl -->
122
- {{{ end }}}
123
- </div>
101
+ <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
102
+ {{{ each widgets.sidebar }}}
103
+ {{widgets.sidebar.html}}
104
+ {{{ end }}}
124
105
  </div>
125
106
  </div>
126
107
  </div>
127
- <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
128
- {{{ each widgets.sidebar }}}
129
- {{widgets.sidebar.html}}
130
- {{{ end }}}
131
- </div>
132
108
  </div>
133
109
 
134
110
  <div data-widget-area="footer">