@nocobase/plugin-notification-in-app-message 1.6.0-alpha.3 → 1.6.0-alpha.31
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/LICENSE.txt +11 -9
- package/dist/client/components/hooks/useChat.d.ts +3 -1
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +10 -10
- package/dist/locale/it-IT.json +28 -0
- package/dist/server/defineMyInAppChannels.js +3 -0
- package/dist/types/messages.js +1 -0
- package/package.json +4 -2
package/dist/externalVersion.js
CHANGED
|
@@ -9,23 +9,23 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
|
-
"@nocobase/client": "1.6.0-alpha.
|
|
13
|
-
"@nocobase/plugin-notification-manager": "1.6.0-alpha.
|
|
14
|
-
"@nocobase/plugin-mobile": "1.6.0-alpha.
|
|
15
|
-
"@nocobase/utils": "1.6.0-alpha.
|
|
12
|
+
"@nocobase/client": "1.6.0-alpha.31",
|
|
13
|
+
"@nocobase/plugin-notification-manager": "1.6.0-alpha.31",
|
|
14
|
+
"@nocobase/plugin-mobile": "1.6.0-alpha.31",
|
|
15
|
+
"@nocobase/utils": "1.6.0-alpha.31",
|
|
16
16
|
"react-i18next": "11.18.6",
|
|
17
|
-
"@nocobase/server": "1.6.0-alpha.
|
|
17
|
+
"@nocobase/server": "1.6.0-alpha.31",
|
|
18
18
|
"sequelize": "6.35.2",
|
|
19
|
-
"@nocobase/database": "1.6.0-alpha.
|
|
19
|
+
"@nocobase/database": "1.6.0-alpha.31",
|
|
20
20
|
"antd": "5.12.8",
|
|
21
21
|
"@formily/reactive-react": "2.3.0",
|
|
22
22
|
"@formily/reactive": "2.3.0",
|
|
23
|
-
"@ant-design/icons": "5.
|
|
23
|
+
"@ant-design/icons": "5.6.1",
|
|
24
24
|
"antd-style": "3.7.1",
|
|
25
|
-
"@emotion/css": "11.13.0",
|
|
26
|
-
"react-router-dom": "6.21.0",
|
|
27
25
|
"@formily/react": "2.3.0",
|
|
26
|
+
"@emotion/css": "11.13.0",
|
|
27
|
+
"react-router-dom": "6.28.1",
|
|
28
28
|
"@formily/core": "2.3.0",
|
|
29
|
-
"@nocobase/plugin-workflow": "1.6.0-alpha.
|
|
29
|
+
"@nocobase/plugin-workflow": "1.6.0-alpha.31",
|
|
30
30
|
"@formily/shared": "2.3.2"
|
|
31
31
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Inbox": "Posta in arrivo",
|
|
3
|
+
"Message": "Messaggio",
|
|
4
|
+
"Loading": "Caricamento",
|
|
5
|
+
"Loading more": "Caricamento altro",
|
|
6
|
+
"No more": "Non c'è altro",
|
|
7
|
+
"Loading failed,": "Caricamento fallito,",
|
|
8
|
+
"please reload": "ricarica",
|
|
9
|
+
"Detail": "Dettaglio",
|
|
10
|
+
"Content": "Contenuto",
|
|
11
|
+
"Datetime": "Data e ora",
|
|
12
|
+
"Status": "Stato",
|
|
13
|
+
"All": "Tutti",
|
|
14
|
+
"Read": "Letto",
|
|
15
|
+
"Unread": "Non letto",
|
|
16
|
+
"In-app message": "Messaggio in-app",
|
|
17
|
+
"Receivers": "Destinatari",
|
|
18
|
+
"Channel name": "Nome canale",
|
|
19
|
+
"Message group name": "Nome gruppo messaggi",
|
|
20
|
+
"Message title": "Titolo messaggio",
|
|
21
|
+
"Message content": "Contenuto messaggio",
|
|
22
|
+
"Details page for desktop": "Pagina dettagli per desktop",
|
|
23
|
+
"Support two types of links: internal links and external links. If using an internal link, the link starts with\"/\", for example, \"/admin\". If using an external link, the link starts with \"http\", for example, \"https://example.com\".": "Supporta due tipi di link: link interni e link esterni. Se si utilizza un link interno, il link inizia con \"/\", ad esempio, \"/admin\". Se si utilizza un link esterno, il link inizia con \"http\", ad esempio, \"https://example.com\".",
|
|
24
|
+
"Mark as read": "Segna come letto",
|
|
25
|
+
"Support two types of links: internal links and external links. If using an internal link, the link starts with\"/\", for example, \"/m\". If using an external link, the link starts with \"http\", for example, \"https://example.com\".": "Supporta due tipi di link: link interni e link esterni. Se si utilizza un link interno, il link inizia con \"/\", ad esempio, \"/m\". Se si utilizza un link esterno, il link inizia con \"http\", ad esempio, \"https://example.com\".",
|
|
26
|
+
"Details page for mobile": "Pagina dettagli per mobile",
|
|
27
|
+
"The message page has already been created.": "La pagina dei messaggi è già stata creata."
|
|
28
|
+
}
|
|
@@ -73,6 +73,7 @@ function defineMyInAppChannels({ app }) {
|
|
|
73
73
|
FROM ${messagesTableName} AS messages
|
|
74
74
|
WHERE
|
|
75
75
|
messages.${messagesFieldName.channelName} = ${channelsTableAliasName}.${channelsFieldName.name}
|
|
76
|
+
AND messages.${messagesFieldName.userId} = ${userId}
|
|
76
77
|
ORDER BY messages.${messagesFieldName.receiveTimestamp} DESC
|
|
77
78
|
LIMIT 1
|
|
78
79
|
)`;
|
|
@@ -88,6 +89,7 @@ function defineMyInAppChannels({ app }) {
|
|
|
88
89
|
SELECT messages.${messagesFieldName.channelName}
|
|
89
90
|
FROM ${messagesTableName} AS messages
|
|
90
91
|
WHERE messages.${messagesFieldName.status} = '${status}'
|
|
92
|
+
AND messages.${messagesFieldName.userId} = ${userId}
|
|
91
93
|
)`);
|
|
92
94
|
return { name: { [import_sequelize.Op.in]: sql } };
|
|
93
95
|
};
|
|
@@ -128,6 +130,7 @@ function defineMyInAppChannels({ app }) {
|
|
|
128
130
|
FROM ${messagesTableName} AS messages
|
|
129
131
|
WHERE
|
|
130
132
|
messages.${messagesFieldName.channelName} = ${channelsTableAliasName}.${channelsFieldName.name}
|
|
133
|
+
AND messages.${messagesFieldName.userId} = ${userId}
|
|
131
134
|
ORDER BY messages.${messagesFieldName.receiveTimestamp} DESC
|
|
132
135
|
LIMIT 1
|
|
133
136
|
)`),
|
package/dist/types/messages.js
CHANGED
|
@@ -33,6 +33,7 @@ var import_index = require("./index");
|
|
|
33
33
|
const messageCollection = {
|
|
34
34
|
name: import_index.InAppMessagesDefinition.name,
|
|
35
35
|
title: "in-app messages",
|
|
36
|
+
migrationRules: ["schema-only"],
|
|
36
37
|
fields: [
|
|
37
38
|
{
|
|
38
39
|
name: import_index.InAppMessagesDefinition.fieldNameMap.id,
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-notification-in-app-message",
|
|
3
|
-
"version": "1.6.0-alpha.
|
|
3
|
+
"version": "1.6.0-alpha.31",
|
|
4
4
|
"displayName": "Notification: In-app message",
|
|
5
5
|
"displayName.zh-CN": "通知:站内信",
|
|
6
6
|
"description": "It supports users in receiving real-time message notifications within the NocoBase application.",
|
|
7
7
|
"description.zh-CN": "支持用户在 NocoBase 应用内实时接收消息通知。",
|
|
8
|
+
"homepage": "https://docs.nocobase.com/handbook/notification-in-app-message",
|
|
9
|
+
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/notification-in-app-message",
|
|
8
10
|
"keywords": [
|
|
9
11
|
"Notification"
|
|
10
12
|
],
|
|
@@ -24,5 +26,5 @@
|
|
|
24
26
|
"@nocobase/test": "1.x",
|
|
25
27
|
"react-router-dom": "^6.x"
|
|
26
28
|
},
|
|
27
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "2f118f0a0691dd51c437f208b1166258a615b6a8"
|
|
28
30
|
}
|