nodebb-theme-persona 13.2.12 → 13.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/package.json
CHANGED
package/templates/chat.tpl
CHANGED
|
@@ -16,20 +16,24 @@
|
|
|
16
16
|
<button id="chat-close-btn" type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
<div class="modal-body">
|
|
20
|
-
<div
|
|
21
|
-
<div class="
|
|
22
|
-
|
|
19
|
+
<div class="modal-body d-flex flex-column" style="height: 500px;">
|
|
20
|
+
<div class="d-flex flex-grow-1 gap-1 overflow-auto" style="min-width: 0px;">
|
|
21
|
+
<div component="chat/messages" class="expanded-chat d-flex flex-column flex-grow-1" data-roomid="{roomId}" style="min-width: 0px;">
|
|
22
|
+
<!-- IMPORT partials/chats/scroll-up-alert.tpl -->
|
|
23
|
+
<ul component="chat/message/content" class="chat-content p-0 m-0 list-unstyled overflow-auto flex-grow-1">
|
|
24
|
+
<!-- IMPORT partials/chats/messages.tpl -->
|
|
25
|
+
</ul>
|
|
26
|
+
<ul component="chat/message/search/results" class="chat-content p-0 m-0 list-unstyled overflow-auto flex-grow-1 hidden">
|
|
27
|
+
<div component="chat/message/search/no-results" class="text-center p-4 d-flex flex-column">
|
|
28
|
+
<div class="p-4"><i class="fa-solid fa-wind fs-2 text-muted"></i></div>
|
|
29
|
+
<div class="text-xs fw-semibold text-muted">[[search:no-matches]]</div>
|
|
30
|
+
</div>
|
|
31
|
+
</ul>
|
|
32
|
+
<!-- IMPORT partials/chats/composer.tpl -->
|
|
23
33
|
</div>
|
|
24
|
-
|
|
25
|
-
<ul class="chat-content">
|
|
26
|
-
<!-- IMPORT partials/chats/messages.tpl -->
|
|
27
|
-
</ul>
|
|
28
|
-
|
|
29
|
-
<!-- IMPORT partials/chats/composer.tpl -->
|
|
30
34
|
</div>
|
|
31
|
-
<div class="imagedrop"><div>[[topic:composer.drag_and_drop_images]]</div></div>
|
|
32
35
|
</div>
|
|
36
|
+
<div class="imagedrop"><div>[[topic:composer.drag_and_drop_images]]</div></div>
|
|
33
37
|
</div>
|
|
34
38
|
</div>
|
|
35
39
|
</div>
|
package/templates/footer.tpl
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
</main>
|
|
3
3
|
{{{ if !isSpider }}}
|
|
4
4
|
<div component="toaster/tray" class="alert-window">
|
|
5
|
-
|
|
6
|
-
<button type="button" class="btn-close float-end" data-bs-dismiss="alert" aria-hidden="true"></button>
|
|
7
|
-
<p>[[global:reconnecting-message, {config.siteTitle}]]</p>
|
|
8
|
-
</div>
|
|
5
|
+
<!-- IMPORT partials/reconnect-alert.tpl -->
|
|
9
6
|
</div>
|
|
10
7
|
{{{ end }}}
|
|
11
8
|
<!-- IMPORT modules/taskbar.tpl -->
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
<div component="chat/composer" class="d-flex flex-column
|
|
1
|
+
<div component="chat/composer" class="d-flex flex-column gap-2 border-top pt-2 align-items-start">
|
|
2
|
+
<div component="chat/composer/replying-to" data-tomid="" class="text-sm px-2 d-flex gap-2 align-items-center hidden">
|
|
3
|
+
<div component="chat/composer/replying-to-text"></div> <button component="chat/composer/replying-to-cancel" class="btn-ghost-sm px-2 py-1"><i class="fa fa-times"></i></button>
|
|
4
|
+
</div>
|
|
2
5
|
<div class="w-100 flex-grow-1 flex-nowrap position-relative d-flex rounded-2 border border-secondary p-1 align-items-end">
|
|
3
6
|
<button component="chat/upload/button" class="btn btn-light btn-sm px-2 rounded-1" type="button"><i class="fa fa-fw fa-upload"></i></button>
|
|
4
7
|
<div class="flex-grow-1 align-self-center">
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
<li component="chat/message" class="chat-message mx-2 pe-2 fw-light clear<!-- IF ../deleted --> deleted<!-- END -->" data-mid="{messages.messageId}" data-uid="{messages.fromuid}" data-self="{messages.self}" data-break="{messages.newSet}" data-timestamp="{messages.timestamp}">
|
|
1
|
+
<li component="chat/message" class="chat-message mx-2 pe-2 fw-light clear<!-- IF ../deleted --> deleted<!-- END -->" data-mid="{messages.messageId}" data-uid="{messages.fromuid}" data-self="{messages.self}" data-break="{messages.newSet}" data-timestamp="{messages.timestamp}" data-username="{messages.fromUser.username}">
|
|
2
|
+
|
|
3
|
+
{{{ if messages.parent }}}
|
|
4
|
+
<div class="d-flex ms-4 mb-2 align-items-center">
|
|
5
|
+
<div component="chat/message/parent" class="btn btn-sm btn-light align-items-start d-flex flex-row gap-2 text-start">
|
|
6
|
+
<div class="d-flex gap-2 text-sm">
|
|
7
|
+
<div><i class="fa fa-sm fa-reply opacity-50"></i></div>
|
|
8
|
+
<a href="{config.relative_path}/user/{messages.parent.user.userslug}" class="text-decoration-none lh-sm">{buildAvatar(messages.parent.user, "14px", true, "not-responsive")}</a>
|
|
9
|
+
<a class="chat-user fw-semibold" href="{config.relative_path}/user/{messages.parent.user.userslug}">{messages.parent.user.displayname}</a>
|
|
10
|
+
<span class="chat-timestamp text-muted timeago text-nowrap hidden" title="{messages.parent.timestampISO}"></span>
|
|
11
|
+
</div>
|
|
12
|
+
<div component="chat/message/parent/content" class="text-muted line-clamp-1 text-sm">{messages.parent.content}</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
{{{ end }}}
|
|
16
|
+
|
|
2
17
|
<div class="message-header">
|
|
3
18
|
<a href="{config.relative_path}/user/{messages.fromUser.userslug}">{buildAvatar(messages.fromUser, "32px", true, "not-responsive")}</a>
|
|
4
19
|
<span class="chat-user fw-bold"><a href="{config.relative_path}/user/{messages.fromUser.userslug}">{messages.fromUser.displayname}</a></span>
|
|
@@ -18,8 +33,8 @@
|
|
|
18
33
|
{messages.content}
|
|
19
34
|
</div>
|
|
20
35
|
|
|
21
|
-
{{{ if (isAdminOrGlobalMod || (!config.disableChatMessageEditing && messages.self)) }}}
|
|
22
36
|
<div component="chat/message/controls" class="btn-group controls">
|
|
37
|
+
<button class="btn btn-sm btn-link" data-action="reply"><i class="fa fa-reply"></i></button>
|
|
23
38
|
{{{ if (!config.disableChatMessageEditing && messages.self) }}}
|
|
24
39
|
<button class="btn btn-sm btn-link" data-action="edit"><i class="fa fa-pencil"></i></button>
|
|
25
40
|
<button class="btn btn-sm btn-link" data-action="delete"><i class="fa fa-times"></i></button>
|
|
@@ -29,6 +44,5 @@
|
|
|
29
44
|
<button class="btn btn-sm btn-link chat-ip-button" title="[[modules:chat.show-ip]]"><i class="fa fa-info-circle"></i></button>
|
|
30
45
|
{{{ end }}}
|
|
31
46
|
</div>
|
|
32
|
-
{{{ end }}}
|
|
33
47
|
</div>
|
|
34
48
|
</li>
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
13
|
<!-- notification dropdown -->
|
|
14
|
-
<div class="dropdown d-flex" data-manual-tooltip="1" title="[[modules:chat.notification-settings]]">
|
|
14
|
+
<div class="dropdown d-flex" data-manual-tooltip="1" title="[[modules:chat.notification-settings]]" component="chat/notification/setting">
|
|
15
15
|
<button class="btn btn-sm btn-light position-relative" data-bs-toggle="dropdown">
|
|
16
16
|
<i class="fa fa-bell text-muted"></i>
|
|
17
17
|
<span class="position-absolute top-0 end-0 text-xs text-muted opacity-75" style="font-size: 10px!important; padding: 1px; line-height: 10px;">
|
|
18
18
|
<i component="chat/notification/setting/icon" class="fa {notificationOptionsIcon}"></i>
|
|
19
19
|
</span>
|
|
20
20
|
</button>
|
|
21
|
-
<ul class="dropdown-menu dropdown-menu-end p-1 text-sm"
|
|
21
|
+
<ul class="dropdown-menu dropdown-menu-end p-1 text-sm">
|
|
22
22
|
{{{ each notificationOptions }}}
|
|
23
23
|
<li>
|
|
24
24
|
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-value="{./value}" data-icon="{./icon}">
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</button>
|
|
51
51
|
<ul class="dropdown-menu dropdown-menu-end p-1 text-sm" component="chat/controls">
|
|
52
52
|
<li>
|
|
53
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-action="
|
|
53
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-action="manage">
|
|
54
54
|
<i class="fa fa-fw text-muted fa-cog"></i> [[modules:chat.manage-room]]
|
|
55
55
|
</a>
|
|
56
56
|
</li>
|