nodebb-theme-harmony 2.0.0-pre.32 → 2.0.0-pre.33
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
|
@@ -181,10 +181,4 @@ library.saveUserSettings = async function (hookData) {
|
|
|
181
181
|
library.filterMiddlewareRenderHeader = async function (hookData) {
|
|
182
182
|
hookData.templateData.bootswatchSkinOptions = await meta.css.getSkinSwitcherOptions(hookData.req.uid);
|
|
183
183
|
return hookData;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
library.filterTeasersConfigureStripTags = function (hookData) {
|
|
187
|
-
// teasers have a stretched-link to go to last post, the anchors in them are not clickable
|
|
188
|
-
hookData.tags.push('a');
|
|
189
|
-
return hookData;
|
|
190
|
-
};
|
|
184
|
+
};
|
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-theme-harmony",
|
|
3
|
-
"version": "2.0.0-pre.
|
|
3
|
+
"version": "2.0.0-pre.33",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "nodebb-theme-harmony",
|
|
9
|
-
"version": "2.0.0-pre.
|
|
9
|
+
"version": "2.0.0-pre.33",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@fontsource/inter": "5.0.15",
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
{ "hook": "filter:settings.get", "method": "getAdminSettings"},
|
|
9
9
|
{ "hook": "filter:user.saveSettings", "method": "saveUserSettings" },
|
|
10
10
|
{ "hook": "filter:user.profileMenu", "method": "addProfileItem" },
|
|
11
|
-
{ "hook": "filter:middleware.renderHeader", "method": "filterMiddlewareRenderHeader" }
|
|
12
|
-
{ "hook": "filter:teasers.configureStripTags", "method": "filterTeasersConfigureStripTags"}
|
|
11
|
+
{ "hook": "filter:middleware.renderHeader", "method": "filterMiddlewareRenderHeader" }
|
|
13
12
|
],
|
|
14
13
|
"scripts": [
|
|
15
14
|
"public/harmony.js"
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
<div class="account w-100 mx-auto">
|
|
2
|
-
<div data-widget-area="header">
|
|
3
|
-
{{{each widgets.header}}}
|
|
4
|
-
{{widgets.header.html}}
|
|
5
|
-
{{{end}}}
|
|
6
|
-
</div>
|
|
7
|
-
|
|
8
2
|
<div class="cover position-absolute start-0 top-0 w-100" component="account/cover" style="background-image: url({cover:url}); background-position: {cover:position};">
|
|
9
3
|
<div class="container">
|
|
10
4
|
{{{ if allowCoverPicture }}}
|
|
@@ -92,6 +86,12 @@
|
|
|
92
86
|
</div>
|
|
93
87
|
</div>
|
|
94
88
|
|
|
89
|
+
<div data-widget-area="header">
|
|
90
|
+
{{{each widgets.header}}}
|
|
91
|
+
{{widgets.header.html}}
|
|
92
|
+
{{{end}}}
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
95
|
<div class="d-flex flex-column flex-md-row">
|
|
96
96
|
<!-- IMPORT partials/account/sidebar-left.tpl -->
|
|
97
97
|
<div class="account-content flex-grow-1 ps-md-2 ps-lg-3 ps-xl-4" style="min-width: 0;">
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<li role="separator" class="dropdown-divider d-none d-md-block"></li>
|
|
14
14
|
{{{ each posts }}}
|
|
15
15
|
<li data-tid="{posts.topic.tid}" data-pid="{posts.pid}" class="d-flex flex-column gap-1">
|
|
16
|
-
<a href="{config.relative_path}/post/{posts.pid}"
|
|
16
|
+
<a href="{config.relative_path}/post/{encodeURIComponent(posts.pid)}"
|
|
17
17
|
class="btn-ghost-sm ff-secondary rounded-1 text-reset d-block text-truncate px-2 py-1">
|
|
18
18
|
<span class="quick-search-title fw-semibold text-sm">{posts.topic.title}</span>
|
|
19
19
|
<br/>
|