nodebb-theme-harmony 1.2.13 → 1.2.14
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
|
@@ -186,3 +186,8 @@ library.filterMiddlewareRenderHeader = async function (hookData) {
|
|
|
186
186
|
return hookData;
|
|
187
187
|
};
|
|
188
188
|
|
|
189
|
+
library.filterTeasersConfigureStripTags = function (hookData) {
|
|
190
|
+
// teasers have a stretched-link to go to last post, the anchors in them are not clickable
|
|
191
|
+
hookData.tags.push('a');
|
|
192
|
+
return hookData;
|
|
193
|
+
};
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
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" }
|
|
11
|
+
{ "hook": "filter:middleware.renderHeader", "method": "filterMiddlewareRenderHeader" },
|
|
12
|
+
{ "hook": "filter:teasers.configureStripTags", "method": "filterTeasersConfigureStripTags"}
|
|
12
13
|
],
|
|
13
14
|
"scripts": [
|
|
14
15
|
"public/harmony.js"
|
package/scss/common.scss
CHANGED
|
@@ -119,4 +119,11 @@ body:not(.page-user) {
|
|
|
119
119
|
max-height: 500px;
|
|
120
120
|
width: auto;
|
|
121
121
|
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[component="chat/message/body"],
|
|
125
|
+
[component="post/content"],
|
|
126
|
+
[component="topic/teaser"] .post-content,
|
|
127
|
+
[component="category/posts"] .post-content {
|
|
128
|
+
a { text-decoration: underline;}
|
|
122
129
|
}
|
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
<div component="category/posts" class="ps-2 text-xs d-flex flex-column h-100 gap-1">
|
|
5
5
|
<div class="text-nowrap text-truncate">
|
|
6
6
|
<a class="text-decoration-none" href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(posts.user, "18px", true, "avatar-tooltip")}</a>
|
|
7
|
-
<a class="permalink text-muted" href="{config.relative_path}/topic/{./topic.slug}{{{ if ./index }}}/{./index}{{{ end }}}">
|
|
8
|
-
<span class="timeago text-xs" title="{../timestampISO}"></span>
|
|
9
|
-
</a>
|
|
7
|
+
<a class="permalink text-muted timeago text-xs" href="{config.relative_path}/topic/{./topic.slug}{{{ if ./index }}}/{./index}{{{ end }}}" title="{./timestampISO}" aria-label="[[global:lastpost]]"></a>
|
|
10
8
|
</div>
|
|
11
9
|
<div class="post-content text-xs text-break line-clamp-sm-2 lh-sm position-relative flex-fill">
|
|
12
10
|
<a class="stretched-link" href="{config.relative_path}/topic/{./topic.slug}{{{ if ./index }}}/{./index}{{{ end }}}" aria-label="[[global:lastpost]]"></a>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<div class="col-12 d-flex border-bottom pb-3 {{{ if config.theme.centerHeaderElements }}}justify-content-center{{{ end }}}">
|
|
4
4
|
<div component="brand/wrapper" class="d-flex align-items-center gap-3 p-2 rounded-1 align-content-stretch ">
|
|
5
5
|
{{{ if brand:logo }}}
|
|
6
|
-
<a component="brand/anchor" href="{{{ if brand:logo:url }}}{brand:logo:url}{{{ else }}}{relative_path}/{{{ end }}}">
|
|
7
|
-
<img component="brand/logo" alt="{brand:logo:alt}" class="{brand:logo:display}" src="{brand:logo}?{config.cache-buster}" />
|
|
6
|
+
<a component="brand/anchor" href="{{{ if brand:logo:url }}}{brand:logo:url}{{{ else }}}{relative_path}/{{{ end }}}" title="[[global:header.brand-logo]]">
|
|
7
|
+
<img component="brand/logo" alt="{{{ if brand:logo:alt }}}{brand:logo:alt}{{{ else }}}[[global:header.brand-logo]]{{{ end }}}" class="{brand:logo:display}" src="{brand:logo}?{config.cache-buster}" />
|
|
8
8
|
</a>
|
|
9
9
|
{{{ end }}}
|
|
10
10
|
|
|
@@ -111,11 +111,10 @@
|
|
|
111
111
|
{{{ if ./teaser.pid }}}
|
|
112
112
|
<div class="ps-2">
|
|
113
113
|
<a href="{config.relative_path}/user/{./teaser.user.userslug}" class="text-decoration-none">{buildAvatar(./teaser.user, "18px", true, "avatar-tooltip not-responsive")}</a>
|
|
114
|
-
<a class="permalink text-muted timeago text-xs" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" title="{./teaser.timestampISO}">
|
|
115
|
-
</a>
|
|
114
|
+
<a class="permalink text-muted timeago text-xs" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" title="{./teaser.timestampISO}" aria-label="[[global:lastpost]]"></a>
|
|
116
115
|
</div>
|
|
117
116
|
<div class="post-content text-xs ps-2 line-clamp-sm-2 lh-sm text-break position-relative flex-fill">
|
|
118
|
-
<a class="stretched-link" href="{config.relative_path}/topic/{./slug}/{./teaser.index}"></a>
|
|
117
|
+
<a class="stretched-link" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" aria-label="[[global:lastpost]]"></a>
|
|
119
118
|
{./teaser.content}
|
|
120
119
|
</div>
|
|
121
120
|
{{{ end }}}
|