nodebb-plugin-admin-chats 2.0.0 → 2.1.0
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/.vscode/settings.json +2 -2
- package/README.md +56 -56
- package/client.js +555 -387
- package/library.js +836 -450
- package/package.json +12 -12
- package/plugin.json +68 -64
- package/public/languages/en-GB/admin-chats.json +9 -9
- package/public/languages/he/admin-chats.json +9 -9
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "nodebb-plugin-admin-chats",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "A plugin that allows the administrator to view and manage user chats.",
|
|
5
|
-
"main": "library.js",
|
|
6
|
-
"dependencies": {
|
|
7
|
-
"lodash": "^4.17.0"
|
|
8
|
-
},
|
|
9
|
-
"nbbpm": {
|
|
10
|
-
"compatibility": "^3.0.0 || ^4.0.0"
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "nodebb-plugin-admin-chats",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "A plugin that allows the administrator to view and manage user chats.",
|
|
5
|
+
"main": "library.js",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"lodash": "^4.17.0"
|
|
8
|
+
},
|
|
9
|
+
"nbbpm": {
|
|
10
|
+
"compatibility": "^3.0.0 || ^4.0.0"
|
|
11
|
+
}
|
|
12
|
+
}
|
package/plugin.json
CHANGED
|
@@ -1,64 +1,68 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "nodebb-plugin-admin-chats",
|
|
3
|
-
"name": "Super Admin Chat Control",
|
|
4
|
-
"description": "A plugin that allows the administrator to view and manage user chats",
|
|
5
|
-
"url": "https://github.com/palmoni5/nodebb-plugin-admin-chats",
|
|
6
|
-
"library": "./library.js",
|
|
7
|
-
"scripts": [
|
|
8
|
-
"client.js"
|
|
9
|
-
],
|
|
10
|
-
"hooks": [
|
|
11
|
-
{
|
|
12
|
-
"hook": "filter:user.accountMenu",
|
|
13
|
-
"method": "addProfileLink"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"hook": "filter:messaging.isRoomOwner",
|
|
17
|
-
"method": "isRoomOwner"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"hook": "filter:messaging.isUserInRoom",
|
|
21
|
-
"method": "isUserInRoom"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"hook": "filter:messaging.canReply",
|
|
25
|
-
"method": "canReply"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"hook": "filter:messaging.canGetMessages",
|
|
29
|
-
"method": "canGetMessages"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"hook": "filter:messaging.canGetRecentChats",
|
|
33
|
-
"method": "canGetRecentChats"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"hook": "filter:messaging.canGetPublicChats",
|
|
37
|
-
"method": "canGetPublicChats"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"hook": "filter:messaging.loadRoom",
|
|
41
|
-
"method": "onLoadRoom"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"hook": "filter:messaging.send",
|
|
45
|
-
"method": "filterMessagingSend"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"hook": "static:app.load",
|
|
49
|
-
"method": "init"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"hook": "filter:messaging.addUsersToRoom",
|
|
53
|
-
"method": "filterAddUsersToRoom"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"hook": "filter:messaging.removeUsersFromRoom",
|
|
57
|
-
"method": "filterRemoveUsersFromRoom"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"hook": "filter:chat.renameRoom",
|
|
61
|
-
"method": "filterRenameRoom"
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
1
|
+
{
|
|
2
|
+
"id": "nodebb-plugin-admin-chats",
|
|
3
|
+
"name": "Super Admin Chat Control",
|
|
4
|
+
"description": "A plugin that allows the administrator to view and manage user chats",
|
|
5
|
+
"url": "https://github.com/palmoni5/nodebb-plugin-admin-chats",
|
|
6
|
+
"library": "./library.js",
|
|
7
|
+
"scripts": [
|
|
8
|
+
"client.js"
|
|
9
|
+
],
|
|
10
|
+
"hooks": [
|
|
11
|
+
{
|
|
12
|
+
"hook": "filter:user.accountMenu",
|
|
13
|
+
"method": "addProfileLink"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"hook": "filter:messaging.isRoomOwner",
|
|
17
|
+
"method": "isRoomOwner"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"hook": "filter:messaging.isUserInRoom",
|
|
21
|
+
"method": "isUserInRoom"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"hook": "filter:messaging.canReply",
|
|
25
|
+
"method": "canReply"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"hook": "filter:messaging.canGetMessages",
|
|
29
|
+
"method": "canGetMessages"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"hook": "filter:messaging.canGetRecentChats",
|
|
33
|
+
"method": "canGetRecentChats"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"hook": "filter:messaging.canGetPublicChats",
|
|
37
|
+
"method": "canGetPublicChats"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"hook": "filter:messaging.loadRoom",
|
|
41
|
+
"method": "onLoadRoom"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"hook": "filter:messaging.send",
|
|
45
|
+
"method": "filterMessagingSend"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"hook": "static:app.load",
|
|
49
|
+
"method": "init"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"hook": "filter:messaging.addUsersToRoom",
|
|
53
|
+
"method": "filterAddUsersToRoom"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"hook": "filter:messaging.removeUsersFromRoom",
|
|
57
|
+
"method": "filterRemoveUsersFromRoom"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"hook": "filter:chat.renameRoom",
|
|
61
|
+
"method": "filterRenameRoom"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"hook": "filter:scripts.get",
|
|
65
|
+
"method": "addScripts"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lock.banner": "🔒 This room was locked by the administrators.",
|
|
3
|
-
"menu.lock": "Lock Room",
|
|
4
|
-
"menu.release": "Release Lock",
|
|
5
|
-
"errors.update": "Unable to update room lock.",
|
|
6
|
-
"profile.viewChats": "View Chats",
|
|
7
|
-
"empty.selectChat": "Please select a chat from the sidebar.",
|
|
8
|
-
"errors.lockedAction": "This action cannot be performed in a locked room."
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"lock.banner": "🔒 This room was locked by the administrators.",
|
|
3
|
+
"menu.lock": "Lock Room",
|
|
4
|
+
"menu.release": "Release Lock",
|
|
5
|
+
"errors.update": "Unable to update room lock.",
|
|
6
|
+
"profile.viewChats": "View Chats",
|
|
7
|
+
"empty.selectChat": "Please select a chat from the sidebar.",
|
|
8
|
+
"errors.lockedAction": "This action cannot be performed in a locked room."
|
|
9
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lock.banner": "🔒 חדר זה ננעל ע\"י המנהלים.",
|
|
3
|
-
"menu.lock": "נעילת חדר",
|
|
4
|
-
"menu.release": "שיחרור נעילה",
|
|
5
|
-
"errors.update": "לא ניתן לעדכן את נעילת החדר.",
|
|
6
|
-
"profile.viewChats": "צפיה בצ'אטים",
|
|
7
|
-
"empty.selectChat": "אנא בחר צ'אט מסרגל הצד.",
|
|
8
|
-
"errors.lockedAction": "לא ניתן לבצע פעולה זו בחדר נעול"
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"lock.banner": "🔒 חדר זה ננעל ע\"י המנהלים.",
|
|
3
|
+
"menu.lock": "נעילת חדר",
|
|
4
|
+
"menu.release": "שיחרור נעילה",
|
|
5
|
+
"errors.update": "לא ניתן לעדכן את נעילת החדר.",
|
|
6
|
+
"profile.viewChats": "צפיה בצ'אטים",
|
|
7
|
+
"empty.selectChat": "אנא בחר צ'אט מסרגל הצד.",
|
|
8
|
+
"errors.lockedAction": "לא ניתן לבצע פעולה זו בחדר נעול"
|
|
9
|
+
}
|