nodebb-theme-harmony 1.0.0-beta.111 → 1.0.0-beta.113
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 +11 -1
- package/package.json +1 -1
- package/scss/topic.scss +3 -0
- package/templates/account/profile.tpl +17 -0
- package/templates/chats.tpl +1 -1
- package/templates/partials/groups/invited.tpl +1 -1
- package/templates/partials/groups/memberlist.tpl +1 -1
- package/templates/partials/notifications_list.tpl +4 -4
- package/templates/partials/sidebar/notifications.tpl +1 -1
package/library.js
CHANGED
|
@@ -118,6 +118,16 @@ library.defineWidgetAreas = async function (areas) {
|
|
|
118
118
|
template: 'global',
|
|
119
119
|
location: 'brand-header',
|
|
120
120
|
},
|
|
121
|
+
{
|
|
122
|
+
name: 'About me (before)',
|
|
123
|
+
template: 'account/profile.tpl',
|
|
124
|
+
location: 'profile-aboutme-before',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: 'About me (after)',
|
|
128
|
+
template: 'account/profile.tpl',
|
|
129
|
+
location: 'profile-aboutme-after',
|
|
130
|
+
},
|
|
121
131
|
]);
|
|
122
132
|
|
|
123
133
|
return areas;
|
|
@@ -140,7 +150,7 @@ async function loadThemeConfig(uid) {
|
|
|
140
150
|
}
|
|
141
151
|
|
|
142
152
|
library.getThemeConfig = async function (config) {
|
|
143
|
-
config.theme = await loadThemeConfig(config.uid)
|
|
153
|
+
config.theme = await loadThemeConfig(config.uid);
|
|
144
154
|
config.openDraftsOnPageLoad = false;
|
|
145
155
|
return config;
|
|
146
156
|
};
|
package/package.json
CHANGED
package/scss/topic.scss
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
<!-- IMPORT partials/account/header.tpl -->
|
|
2
|
+
|
|
3
|
+
{{{ if widgets.profile-aboutme-before.length }}}
|
|
4
|
+
<div data-widget-area="profile-aboutme-before">
|
|
5
|
+
{{{each widgets.profile-aboutme-before}}}
|
|
6
|
+
{./html}
|
|
7
|
+
{{{end}}}
|
|
8
|
+
</div>
|
|
9
|
+
{{{ end }}}
|
|
10
|
+
|
|
2
11
|
{{{ if aboutme }}}
|
|
3
12
|
<div component="aboutme" class="text-sm text-break">
|
|
4
13
|
{aboutmeParsed}
|
|
5
14
|
</div>
|
|
6
15
|
{{{ end }}}
|
|
7
16
|
|
|
17
|
+
{{{ if widgets.profile-aboutme-after.length }}}
|
|
18
|
+
<div data-widget-area="profile-aboutme-after">
|
|
19
|
+
{{{each widgets.profile-aboutme-after}}}
|
|
20
|
+
{./html}
|
|
21
|
+
{{{end}}}
|
|
22
|
+
</div>
|
|
23
|
+
{{{ end }}}
|
|
24
|
+
|
|
8
25
|
<div class="account-stats container">
|
|
9
26
|
<div class="row row-cols-2 row-cols-xl-3 row-cols-xxl-4 g-2">
|
|
10
27
|
{{{ if !reputation:disabled }}}
|
package/templates/chats.tpl
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
{{{end}}}
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
|
-
<div class="flex-grow-1 ms-md-2 ps-md-2 border-1 border-start-md h-100" component="chat/main-wrapper">
|
|
23
|
+
<div class="flex-grow-1 ms-md-2 ps-md-2 border-1 border-start-md h-100" component="chat/main-wrapper" style="min-width: 0;">
|
|
24
24
|
<!-- IMPORT partials/chats/message-window.tpl -->
|
|
25
25
|
</div>
|
|
26
26
|
<div class="imagedrop"><div>[[topic:composer.drag_and_drop_images]]</div></div>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<div class="mb-2 clearfix">
|
|
13
|
-
<button class="btn btn-primary btn-sm float-end" component="groups/members/bulk-invite-button">[[groups:bulk-invite]]</button>
|
|
13
|
+
<button type="button" class="btn btn-primary btn-sm float-end" component="groups/members/bulk-invite-button">[[groups:bulk-invite]]</button>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
16
|
<table component="groups/invited" class="table table-hover">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="d-flex {{{ if group.isOwner }}}justify-content-between{{{ else }}}justify-content-end{{{ end }}} mb-3">
|
|
2
|
-
{{{ if
|
|
2
|
+
{{{ if isAdmin }}}
|
|
3
3
|
<div class="flex-shrink-0">
|
|
4
4
|
<button component="groups/members/add" type="button" class="btn btn-primary btn-sm me-3" title="[[groups:details.add-member]]"><i class="fa fa-user-plus"></i> [[groups:details.add-member]]</button>
|
|
5
5
|
</div>
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
{{{ each notifications }}}
|
|
9
9
|
<li class="{./readClass} mb-2 p-1" data-nid="{./nid}" data-path="{./path}" {{{ if ./pid }}}data-pid="{./pid}"{{{ end }}}{{{ if ./tid }}}data-tid="{./tid}"{{{ end }}}>
|
|
10
10
|
<div class="d-flex gap-1 justify-content-between">
|
|
11
|
-
<div class="d-flex gap-
|
|
11
|
+
<div class="btn-ghost-sm d-flex gap-2 flex-grow-1 align-items-start">
|
|
12
12
|
{{{ if ./image }}}
|
|
13
13
|
{{{ if ./from }}}
|
|
14
|
-
<a class="
|
|
14
|
+
<a class="flex-grow-0 flex-shrink-0" href="{config.relative_path}/user/{./user.userslug}"><img class="avatar avatar-rounded" style="--avatar-size: 32px;" src="{./image}" /></a>
|
|
15
15
|
{{{ end }}}
|
|
16
16
|
{{{ else }}}
|
|
17
|
-
<a class="
|
|
17
|
+
<a class="flex-grow-0 flex-shrink-0" href="{config.relative_path}/user/{./user.userslug}"><div class="avatar avatar-rounded" style="--avatar-size: 32px; background-color: {./user.icon:bgColor};">{./user.icon:text}</div></a>
|
|
18
18
|
{{{ end }}}
|
|
19
19
|
<div class="d-flex flex-grow-1 flex-column align-items-start position-relative">
|
|
20
|
-
<a href="{./path}" class="
|
|
20
|
+
<a href="{./path}" class="text-decoration-none d-inline-block text-reset text-break text-sm ff-sans stretched-link">
|
|
21
21
|
{./bodyShort}
|
|
22
22
|
</a>
|
|
23
23
|
<div class="text-xs text-muted">{{{ if ./timeagoLong }}}{./timeagoLong}{{{ else }}}<span class="timeago" title="{./datetimeISO}"></span>{{{ end }}}</div>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</a>
|
|
11
11
|
<ul class="notifications-dropdown dropdown-menu p-1 shadow">
|
|
12
12
|
<li>
|
|
13
|
-
<ul component="notifications/list" class="list-container notification-list list-unstyled overscroll-behavior-contain ff-base">
|
|
13
|
+
<ul component="notifications/list" class="list-container notification-list list-unstyled overscroll-behavior-contain pe-1 ff-base">
|
|
14
14
|
<li class="mb-2 p-1">
|
|
15
15
|
<div class="d-flex gap-1 justify-content-between">
|
|
16
16
|
<div class="d-flex gap-2 flex-grow-1 placeholder-wave">
|