nodebb-theme-harmony 2.1.9 → 2.1.11
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/eslint.config.mjs +10 -0
- package/package-lock.json +3062 -0
- package/package.json +3 -4
- package/templates/account/settings.tpl +35 -3
- package/templates/category.tpl +1 -1
- package/templates/topic.tpl +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-theme-harmony",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.11",
|
|
4
4
|
"nbbpm": {
|
|
5
5
|
"compatibility": "^4.0.0"
|
|
6
6
|
},
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
"@fontsource/poppins": "5.0.8"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"eslint": "
|
|
45
|
-
"eslint-config-nodebb": "^1.
|
|
46
|
-
"eslint-plugin-import": "^2.24.2"
|
|
44
|
+
"eslint": "9.25.1",
|
|
45
|
+
"eslint-config-nodebb": "^1.1.3"
|
|
47
46
|
}
|
|
48
47
|
}
|
|
@@ -55,10 +55,42 @@
|
|
|
55
55
|
{{{ end }}}
|
|
56
56
|
|
|
57
57
|
{{{ if !config.disableChat }}}
|
|
58
|
-
<div class="form-check form-switch">
|
|
59
|
-
<input class="form-check-input" type="checkbox" role="switch" id="
|
|
60
|
-
<label class="form-check-label text-sm" for="
|
|
58
|
+
<div class="form-check form-switch mb-3">
|
|
59
|
+
<input class="form-check-input" type="checkbox" role="switch" id="disableIncomingChats" data-property="disableIncomingChats" {{{ if settings.disableIncomingChats }}}checked{{{ end }}}/>
|
|
60
|
+
<label class="form-check-label text-sm" for="disableIncomingChats">[[user:disable-incoming-chats]]</label>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
<div class="d-flex flex-column mb-3">
|
|
65
|
+
<label class="form-label text-sm" for="chatAllowListAdd">[[user:chat-allow-list]]</label>
|
|
66
|
+
|
|
67
|
+
<div component="chat/allow/list" class="d-flex flex-wrap gap-2 mb-2">
|
|
68
|
+
{{{ each settings.chatAllowListUsers }}}
|
|
69
|
+
<div component="chat/allow/list/user" data-uid="{./uid}" class="d-flex px-2 py-1 rounded-1 text-bg-light gap-2 align-items-center text-sm">
|
|
70
|
+
{buildAvatar(@value, "16px", true)} {./username}
|
|
71
|
+
<button component="chat/allow/delete" data-uid="{./uid}" class="btn btn-light btn-sm py-0"><i class="fa fa-times fa-xs text-danger"></i></button>
|
|
72
|
+
</div>
|
|
73
|
+
{{{ end }}}
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<input type="text" class="form-control form-control-sm" id="chatAllowListAdd" placeholder="[[user:chat-list-add-user]]"/>
|
|
61
77
|
</div>
|
|
78
|
+
|
|
79
|
+
<div class="d-flex flex-column mb-3">
|
|
80
|
+
<label class="form-label text-sm" for="chatAllowListAdd">[[user:chat-deny-list]]</label>
|
|
81
|
+
|
|
82
|
+
<div component="chat/deny/list" class="d-flex flex-wrap gap-2 mb-2">
|
|
83
|
+
{{{ each settings.chatDenyListUsers }}}
|
|
84
|
+
<div component="chat/deny/list/user" data-uid="{./uid}" class="d-flex px-2 py-1 rounded-1 text-bg-light gap-2 align-items-center text-sm">
|
|
85
|
+
{buildAvatar(@value, "16px", true)} {./username}
|
|
86
|
+
<button component="chat/deny/delete" data-uid="{./uid}" class="btn btn-light btn-sm py-0"><i class="fa fa-times fa-xs text-danger"></i></button>
|
|
87
|
+
</div>
|
|
88
|
+
{{{ end }}}
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<input type="text" class="form-control form-control-sm" id="chatDenyListAdd" placeholder="[[user:chat-list-add-user]]"/>
|
|
92
|
+
</div>
|
|
93
|
+
|
|
62
94
|
{{{ end }}}
|
|
63
95
|
|
|
64
96
|
<hr/>
|
package/templates/category.tpl
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<h1 class="tracking-tight fs-2 fw-semibold mb-0">{./name}</h1>
|
|
10
10
|
</div>
|
|
11
11
|
{{{ if ./descriptionParsed }}}
|
|
12
|
-
<div class="description text-secondary text-sm w-100 {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}">
|
|
12
|
+
<div class="description text-secondary text-sm w-100 {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}} line-clamp-4 clamp-fade-4">
|
|
13
13
|
{./descriptionParsed}
|
|
14
14
|
</div>
|
|
15
15
|
{{{ end }}}
|
package/templates/topic.tpl
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
</span>
|
|
47
47
|
{buildCategoryLabel(category, "a", "border")}
|
|
48
48
|
<div data-tid="{./tid}" component="topic/tags" class="lh-1 tags tag-list d-flex flex-wrap hidden-xs hidden-empty gap-2"><!-- IMPORT partials/topic/tags.tpl --></div>
|
|
49
|
-
<div class="d-flex
|
|
49
|
+
<div class="d-flex gap-2"><!-- IMPORT partials/topic/stats.tpl --></div>
|
|
50
50
|
</div>
|
|
51
51
|
</div>
|
|
52
52
|
<div class="d-flex flex-wrap flex-lg-nowrap gap-2 align-items-center mt-2 hidden-empty" component="topic/thumb/list"><!-- IMPORT partials/topic/thumbs.tpl --></div>
|