nodebb-theme-persona 14.0.14 → 14.0.16
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/.eslintrc +2 -2
- package/README.md +20 -20
- package/lib/controllers.js +24 -24
- package/package.json +1 -1
- package/plugin.json +20 -20
- package/public/.eslintrc +2 -2
- package/public/admin.js +15 -15
- package/public/modules/autohidingnavbar.js +220 -220
- package/public/modules/mobile-menu.js +2 -2
- package/public/modules/taskbar.js +65 -65
- package/public/persona.js +9 -14
- package/public/settings.js +53 -53
- package/scss/footer.scss +16 -16
- package/scss/keyframes.scss +152 -152
- package/scss/modules/composer.scss +20 -20
- package/scss/modules/cookie-consent.scss +12 -12
- package/scss/modules/fab.scss +32 -32
- package/scss/modules/morph.scss +268 -268
- package/scss/modules/necro-post.scss +8 -8
- package/scss/modules/nprogress.scss +80 -80
- package/scss/modules/taskbar.scss +160 -160
- package/scss/modules/user-menu.scss +7 -7
- package/scss/modules/usercard.scss +64 -64
- package/scss/noscript.scss +80 -80
- package/scss/overrides.scss +39 -39
- package/scss/posts_list.scss +127 -127
- package/scss/tags.scss +10 -10
- package/scss/topics_list.scss +16 -16
- package/scss/variables.scss +6 -6
- package/templates/account/info.tpl +291 -291
- package/templates/account/sessions.tpl +31 -31
- package/templates/account/theme.tpl +25 -25
- package/templates/admin/plugins/persona.tpl +24 -24
- package/templates/footer.tpl +11 -11
- package/templates/groups/members.tpl +5 -5
- package/templates/modules/taskbar.tpl +2 -2
- package/templates/modules/usercard.tpl +36 -36
- package/templates/partials/breadcrumbs.tpl +18 -18
- package/templates/partials/category/tags.tpl +3 -3
- package/templates/partials/cookie-consent.tpl +4 -4
- package/templates/partials/groups/memberlist.tpl +42 -42
- package/templates/partials/header/search.tpl +24 -24
- package/templates/partials/paginator.tpl +44 -44
- package/templates/partials/posts_list.tpl +7 -7
- package/templates/partials/toast.tpl +19 -19
- package/templates/partials/topic/event.tpl +12 -12
- package/templates/partials/topic/navigation-post.tpl +11 -11
- package/templates/partials/topic/necro-post.tpl +2 -2
- package/templates/partials/topic/quickreply.tpl +2 -1
- package/templates/partials/topic/reply-button.tpl +26 -26
- package/templates/partials/topic/selection-tooltip.tpl +2 -2
- package/templates/partials/topics_list.tpl +1 -1
- package/templates/partials/users_list.tpl +14 -14
- package/templates/search.tpl +47 -47
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<li component="topic/necro-post" class="necro-post text-muted timeline-event">
|
|
2
|
-
<span class="timeline-text">{text}</span>
|
|
1
|
+
<li component="topic/necro-post" class="necro-post text-muted timeline-event">
|
|
2
|
+
<span class="timeline-text">{text}</span>
|
|
3
3
|
</li>
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
</div>
|
|
15
15
|
<div>
|
|
16
16
|
<div class="d-flex justify-content-end gap-2">
|
|
17
|
-
<button type="
|
|
17
|
+
<button type="button" component="topic/quickreply/upload/button" class="btn btn-ghost btn-sm border"><i class="fa fa-upload"></i></button>
|
|
18
|
+
<button type="button" component="topic/quickreply/expand" class="btn btn-ghost btn-sm border" title="[[topic:open-composer]]"><i class="fa fa-expand"></i></button>
|
|
18
19
|
<button type="submit" component="topic/quickreply/button" class="btn btn-sm btn-primary">[[topic:post-quick-reply]]</button>
|
|
19
20
|
</div>
|
|
20
21
|
</div>
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<div component="topic/reply/container" class="btn-group bottom-sheet <!-- IF !privileges.topics:reply -->hidden<!-- ENDIF !privileges.topics:reply -->">
|
|
2
|
-
<a href="{config.relative_path}/compose?tid={tid}" class="btn btn-sm btn-primary" component="topic/reply" data-ajaxify="false" role="button"><i class="fa fa-reply visible-xs-inline"></i><span class="visible-sm-inline visible-md-inline visible-lg-inline"> [[topic:reply]]</span></a>
|
|
3
|
-
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
4
|
-
<span class="caret"></span>
|
|
5
|
-
</button>
|
|
6
|
-
<ul class="dropdown-menu dropdown-menu-end" role="menu">
|
|
7
|
-
<li><a class="dropdown-item" href="#" component="topic/reply-as-topic" role="menuitem">[[topic:reply-as-topic]]</a></li>
|
|
8
|
-
</ul>
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
<!-- IF loggedIn -->
|
|
12
|
-
<!-- IF !privileges.topics:reply -->
|
|
13
|
-
<!-- IF locked -->
|
|
14
|
-
<a component="topic/reply/locked" class="btn btn-sm btn-primary" disabled><i class="fa fa-lock"></i> [[topic:locked]]</a>
|
|
15
|
-
<!-- ENDIF locked -->
|
|
16
|
-
<!-- ENDIF !privileges.topics:reply -->
|
|
17
|
-
|
|
18
|
-
<!-- IF !locked -->
|
|
19
|
-
<a component="topic/reply/locked" class="btn btn-sm btn-primary hidden" disabled><i class="fa fa-lock"></i> [[topic:locked]]</a>
|
|
20
|
-
<!-- ENDIF !locked -->
|
|
21
|
-
|
|
22
|
-
<!-- ELSE -->
|
|
23
|
-
|
|
24
|
-
<!-- IF !privileges.topics:reply -->
|
|
25
|
-
<a component="topic/reply/guest" href="{config.relative_path}/login" class="btn btn-sm btn-primary">[[topic:guest-login-reply]]</a>
|
|
26
|
-
<!-- ENDIF !privileges.topics:reply -->
|
|
1
|
+
<div component="topic/reply/container" class="btn-group bottom-sheet <!-- IF !privileges.topics:reply -->hidden<!-- ENDIF !privileges.topics:reply -->">
|
|
2
|
+
<a href="{config.relative_path}/compose?tid={tid}" class="btn btn-sm btn-primary" component="topic/reply" data-ajaxify="false" role="button"><i class="fa fa-reply visible-xs-inline"></i><span class="visible-sm-inline visible-md-inline visible-lg-inline"> [[topic:reply]]</span></a>
|
|
3
|
+
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
4
|
+
<span class="caret"></span>
|
|
5
|
+
</button>
|
|
6
|
+
<ul class="dropdown-menu dropdown-menu-end" role="menu">
|
|
7
|
+
<li><a class="dropdown-item" href="#" component="topic/reply-as-topic" role="menuitem">[[topic:reply-as-topic]]</a></li>
|
|
8
|
+
</ul>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<!-- IF loggedIn -->
|
|
12
|
+
<!-- IF !privileges.topics:reply -->
|
|
13
|
+
<!-- IF locked -->
|
|
14
|
+
<a component="topic/reply/locked" class="btn btn-sm btn-primary" disabled><i class="fa fa-lock"></i> [[topic:locked]]</a>
|
|
15
|
+
<!-- ENDIF locked -->
|
|
16
|
+
<!-- ENDIF !privileges.topics:reply -->
|
|
17
|
+
|
|
18
|
+
<!-- IF !locked -->
|
|
19
|
+
<a component="topic/reply/locked" class="btn btn-sm btn-primary hidden" disabled><i class="fa fa-lock"></i> [[topic:locked]]</a>
|
|
20
|
+
<!-- ENDIF !locked -->
|
|
21
|
+
|
|
22
|
+
<!-- ELSE -->
|
|
23
|
+
|
|
24
|
+
<!-- IF !privileges.topics:reply -->
|
|
25
|
+
<a component="topic/reply/guest" href="{config.relative_path}/login" class="btn btn-sm btn-primary">[[topic:guest-login-reply]]</a>
|
|
26
|
+
<!-- ENDIF !privileges.topics:reply -->
|
|
27
27
|
<!-- ENDIF loggedIn -->
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<div component="selection/tooltip" class="selection-tooltip-container position-absolute card card-body p-1 rounded-1 mt-2" style="z-index: 1;">
|
|
2
|
-
<button component="selection/tooltip/quote" class="btn btn-sm btn-primary quote-tooltip-btn">[[topic:quote]]</button>
|
|
1
|
+
<div component="selection/tooltip" class="selection-tooltip-container position-absolute card card-body p-1 rounded-1 mt-2" style="z-index: 1;">
|
|
2
|
+
<button component="selection/tooltip/quote" class="btn btn-sm btn-primary quote-tooltip-btn">[[topic:quote]]</button>
|
|
3
3
|
</div>
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
{function.buildCategoryLabel, ./category, "a", "border"}
|
|
55
55
|
{{{ end }}}
|
|
56
56
|
|
|
57
|
-
<span data-tid="{./tid}" component="topic/tags" class="lh-1 tag-list
|
|
57
|
+
<span data-tid="{./tid}" component="topic/tags" class="lh-1 tag-list d-flex flex-wrap gap-1 {{{ if !./tags.length }}}hidden{{{ end }}}">
|
|
58
58
|
{{{ each ./tags }}}
|
|
59
59
|
<a href="{config.relative_path}/tags/{./valueEncoded}"><span class="badge border border-gray-300 fw-normal tag tag-class-{./class}" data-tag="{./value}">{./valueEscaped}</span></a>
|
|
60
60
|
{{{ end }}}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<ul id="users-container" class="users-container list-unstyled d-flex flex-wrap gap-2">
|
|
2
|
-
{{{each users}}}
|
|
3
|
-
<!-- IMPORT partials/users/item.tpl -->
|
|
4
|
-
{{{end}}}
|
|
5
|
-
<!-- IF anonymousUserCount -->
|
|
6
|
-
<li class="users-box anon-user text-center pb-3" style="width: 102px;">
|
|
7
|
-
<span class="avatar avatar-rounded text-bg-secondary" component="avatar/icon" style="--avatar-size: 64px;">G</span>
|
|
8
|
-
<br/>
|
|
9
|
-
<div class="user-info">
|
|
10
|
-
<span id="online_anon_count">{anonymousUserCount}</span>
|
|
11
|
-
<span>[[global:guests]]</span>
|
|
12
|
-
</div>
|
|
13
|
-
</li>
|
|
14
|
-
<!-- ENDIF anonymousUserCount -->
|
|
1
|
+
<ul id="users-container" class="users-container list-unstyled d-flex flex-wrap gap-2">
|
|
2
|
+
{{{each users}}}
|
|
3
|
+
<!-- IMPORT partials/users/item.tpl -->
|
|
4
|
+
{{{end}}}
|
|
5
|
+
<!-- IF anonymousUserCount -->
|
|
6
|
+
<li class="users-box anon-user text-center pb-3" style="width: 102px;">
|
|
7
|
+
<span class="avatar avatar-rounded text-bg-secondary" component="avatar/icon" style="--avatar-size: 64px;">G</span>
|
|
8
|
+
<br/>
|
|
9
|
+
<div class="user-info">
|
|
10
|
+
<span id="online_anon_count">{anonymousUserCount}</span>
|
|
11
|
+
<span>[[global:guests]]</span>
|
|
12
|
+
</div>
|
|
13
|
+
</li>
|
|
14
|
+
<!-- ENDIF anonymousUserCount -->
|
|
15
15
|
</ul>
|
package/templates/search.tpl
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
<!-- IMPORT partials/breadcrumbs.tpl -->
|
|
2
|
-
<div class="search">
|
|
3
|
-
<div id="advanced-search" class="d-flex flex-column flex-md-row">
|
|
4
|
-
<!-- sidebar -->
|
|
5
|
-
<div class="flex-0 pe-2 border-end-md text-sm mb-3" style="flex-basis: 240px!important;">
|
|
6
|
-
<form action="{config.relative_path}/search" method="get" class="nav sticky-md-top d-flex flex-row flex-md-column flex-wrap gap-3 pe-md-3" style="top: 1rem; z-index: 1;">
|
|
7
|
-
<h2 class="fw-semibold tracking-tight mb-0">[[global:search]]</h2>
|
|
8
|
-
|
|
9
|
-
<input id="search-input" name="term" type="text" class="form-control fw-semibold py-2 ps-2 pe-3" id="search-input" placeholder="[[search:type-to-search]]">
|
|
10
|
-
|
|
11
|
-
<select id="search-in" name="in" class="form-select text-sm py-2 ps-2 pe-3">
|
|
12
|
-
<option value="titlesposts">[[search:in-titles-posts]]</option>
|
|
13
|
-
<option value="titles">[[search:in-titles]]</option>
|
|
14
|
-
<option value="posts">[[search:in-posts]]</option>
|
|
15
|
-
<option value="bookmarks">[[search:in-bookmarks]]</option>
|
|
16
|
-
<option value="categories">[[search:in-categories]]</option>
|
|
17
|
-
{{{if privileges.search:users}}}
|
|
18
|
-
<option value="users">[[search:in-users]]</option>
|
|
19
|
-
{{{end}}}
|
|
20
|
-
{{{if privileges.search:tags}}}
|
|
21
|
-
<option value="tags">[[search:in-tags]]</option>
|
|
22
|
-
{{{end}}}
|
|
23
|
-
</select>
|
|
24
|
-
|
|
25
|
-
<select id="match-words-filter" name="matchWords" class="post-search-item form-select text-sm py-2 ps-2 pe-3">
|
|
26
|
-
<option value="all">[[search:match-all-words]]</option>
|
|
27
|
-
<option value="any">[[search:match-any-word]]</option>
|
|
28
|
-
</select>
|
|
29
|
-
|
|
30
|
-
<select id="show-results-as" name="showAs" class="post-search-item form-select text-sm py-2 ps-2 pe-3">
|
|
31
|
-
<option value="posts" selected>[[search:show-results-as-posts]]</option>
|
|
32
|
-
<option value="topics">[[search:show-results-as-topics]]</option>
|
|
33
|
-
</select>
|
|
34
|
-
|
|
35
|
-
<button type="submit" class="btn btn-primary fw-semibold form-control py-2 px-3">[[global:search]]</button>
|
|
36
|
-
</form>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
<!-- filters and search results -->
|
|
40
|
-
<div class="flex-1 ps-md-2 ps-lg-5" style="min-width:0;">
|
|
41
|
-
<div class="d-flex flex-column gap-3">
|
|
42
|
-
<!-- IMPORT partials/search-filters.tpl -->
|
|
43
|
-
<!-- IMPORT partials/search-results.tpl -->
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
1
|
+
<!-- IMPORT partials/breadcrumbs.tpl -->
|
|
2
|
+
<div class="search">
|
|
3
|
+
<div id="advanced-search" class="d-flex flex-column flex-md-row">
|
|
4
|
+
<!-- sidebar -->
|
|
5
|
+
<div class="flex-0 pe-2 border-end-md text-sm mb-3" style="flex-basis: 240px!important;">
|
|
6
|
+
<form action="{config.relative_path}/search" method="get" class="nav sticky-md-top d-flex flex-row flex-md-column flex-wrap gap-3 pe-md-3" style="top: 1rem; z-index: 1;">
|
|
7
|
+
<h2 class="fw-semibold tracking-tight mb-0">[[global:search]]</h2>
|
|
8
|
+
|
|
9
|
+
<input id="search-input" name="term" type="text" class="form-control fw-semibold py-2 ps-2 pe-3" id="search-input" placeholder="[[search:type-to-search]]">
|
|
10
|
+
|
|
11
|
+
<select id="search-in" name="in" class="form-select text-sm py-2 ps-2 pe-3">
|
|
12
|
+
<option value="titlesposts">[[search:in-titles-posts]]</option>
|
|
13
|
+
<option value="titles">[[search:in-titles]]</option>
|
|
14
|
+
<option value="posts">[[search:in-posts]]</option>
|
|
15
|
+
<option value="bookmarks">[[search:in-bookmarks]]</option>
|
|
16
|
+
<option value="categories">[[search:in-categories]]</option>
|
|
17
|
+
{{{if privileges.search:users}}}
|
|
18
|
+
<option value="users">[[search:in-users]]</option>
|
|
19
|
+
{{{end}}}
|
|
20
|
+
{{{if privileges.search:tags}}}
|
|
21
|
+
<option value="tags">[[search:in-tags]]</option>
|
|
22
|
+
{{{end}}}
|
|
23
|
+
</select>
|
|
24
|
+
|
|
25
|
+
<select id="match-words-filter" name="matchWords" class="post-search-item form-select text-sm py-2 ps-2 pe-3">
|
|
26
|
+
<option value="all">[[search:match-all-words]]</option>
|
|
27
|
+
<option value="any">[[search:match-any-word]]</option>
|
|
28
|
+
</select>
|
|
29
|
+
|
|
30
|
+
<select id="show-results-as" name="showAs" class="post-search-item form-select text-sm py-2 ps-2 pe-3">
|
|
31
|
+
<option value="posts" selected>[[search:show-results-as-posts]]</option>
|
|
32
|
+
<option value="topics">[[search:show-results-as-topics]]</option>
|
|
33
|
+
</select>
|
|
34
|
+
|
|
35
|
+
<button type="submit" class="btn btn-primary fw-semibold form-control py-2 px-3">[[global:search]]</button>
|
|
36
|
+
</form>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<!-- filters and search results -->
|
|
40
|
+
<div class="flex-1 ps-md-2 ps-lg-5" style="min-width:0;">
|
|
41
|
+
<div class="d-flex flex-column gap-3">
|
|
42
|
+
<!-- IMPORT partials/search-filters.tpl -->
|
|
43
|
+
<!-- IMPORT partials/search-results.tpl -->
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|