@nocobase/plugin-notification-in-app-message 1.6.1 → 1.6.3
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/dist/client/index.js +1 -1
- package/dist/externalVersion.js +7 -7
- package/dist/locale/de-DE.json +29 -0
- package/dist/locale/en-US.json +2 -1
- package/dist/locale/it-IT.json +2 -1
- package/dist/locale/zh-CN.json +2 -1
- package/dist/server/parseUserSelectionConf.js +4 -0
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
|
-
"@nocobase/client": "1.6.
|
|
13
|
-
"@nocobase/plugin-notification-manager": "1.6.
|
|
14
|
-
"@nocobase/plugin-mobile": "1.6.
|
|
15
|
-
"@nocobase/utils": "1.6.
|
|
12
|
+
"@nocobase/client": "1.6.3",
|
|
13
|
+
"@nocobase/plugin-notification-manager": "1.6.3",
|
|
14
|
+
"@nocobase/plugin-mobile": "1.6.3",
|
|
15
|
+
"@nocobase/utils": "1.6.3",
|
|
16
16
|
"react-i18next": "11.18.6",
|
|
17
|
-
"@nocobase/server": "1.6.
|
|
17
|
+
"@nocobase/server": "1.6.3",
|
|
18
18
|
"sequelize": "6.35.2",
|
|
19
|
-
"@nocobase/database": "1.6.
|
|
19
|
+
"@nocobase/database": "1.6.3",
|
|
20
20
|
"antd": "5.12.8",
|
|
21
21
|
"@formily/reactive-react": "2.3.0",
|
|
22
22
|
"@formily/reactive": "2.3.0",
|
|
@@ -26,6 +26,6 @@ module.exports = {
|
|
|
26
26
|
"@emotion/css": "11.13.0",
|
|
27
27
|
"react-router-dom": "6.28.1",
|
|
28
28
|
"@formily/core": "2.3.0",
|
|
29
|
-
"@nocobase/plugin-workflow": "1.6.
|
|
29
|
+
"@nocobase/plugin-workflow": "1.6.3",
|
|
30
30
|
"@formily/shared": "2.3.2"
|
|
31
31
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Inbox": "Posteingang",
|
|
3
|
+
"Message": "Nachricht",
|
|
4
|
+
"Loading": "Wird geladen",
|
|
5
|
+
"Loading more": "Mehr laden",
|
|
6
|
+
"No more": "Keine weiteren",
|
|
7
|
+
"Loading failed,": "Laden fehlgeschlagen,",
|
|
8
|
+
"please reload": "bitte neu laden",
|
|
9
|
+
"Detail": "Detail",
|
|
10
|
+
"Content": "Inhalt",
|
|
11
|
+
"Datetime": "Datum/Uhrzeit",
|
|
12
|
+
"Status": "Status",
|
|
13
|
+
"All": "Alle",
|
|
14
|
+
"Read": "Gelesen",
|
|
15
|
+
"Unread": "Ungelesen",
|
|
16
|
+
"In-app message": "In-App-Nachricht",
|
|
17
|
+
"Receivers": "Empfänger",
|
|
18
|
+
"Channel name": "Kanalname",
|
|
19
|
+
"Message group name": "Nachrichtengruppenname",
|
|
20
|
+
"Message title": "Nachrichtentitel",
|
|
21
|
+
"Message content": "Nachrichteninhalt",
|
|
22
|
+
"detail URL": "Detail-URL",
|
|
23
|
+
"Details page for desktop": "Detailseite für Desktop",
|
|
24
|
+
"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\".": "Unterstützt zwei Arten von Links: interne Links und externe Links. Bei Verwendung eines internen Links beginnt der Link mit \"/\", zum Beispiel \"/admin\". Bei Verwendung eines externen Links beginnt der Link mit \"http\", zum Beispiel \"https://example.com\".",
|
|
25
|
+
"Mark as read": "Als gelesen markieren",
|
|
26
|
+
"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\".": "Unterstützt zwei Arten von Links: interne Links und externe Links. Bei Verwendung eines internen Links beginnt der Link mit \"/\", zum Beispiel \"/m\". Bei Verwendung eines externen Links beginnt der Link mit \"http\", zum Beispiel \"https://example.com\".",
|
|
27
|
+
"Details page for mobile": "Detailseite für Mobilgeräte",
|
|
28
|
+
"The message page has already been created.": "Die Nachrichtenseite wurde bereits erstellt."
|
|
29
|
+
}
|
package/dist/locale/en-US.json
CHANGED
|
@@ -24,5 +24,6 @@
|
|
|
24
24
|
"Mark as read": "Mark as read",
|
|
25
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\".": "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\".",
|
|
26
26
|
"Details page for mobile": "Details page for mobile",
|
|
27
|
-
"The message page has already been created.": "The message page has already been created."
|
|
27
|
+
"The message page has already been created.": "The message page has already been created.",
|
|
28
|
+
"When select receivers from node result, only support ID of user (or IDs array of users). Others will not match any user.": "When select receivers from node result, only support ID of user (or IDs array of users). Others will not match any user."
|
|
28
29
|
}
|
package/dist/locale/it-IT.json
CHANGED
|
@@ -24,5 +24,6 @@
|
|
|
24
24
|
"Mark as read": "Segna come letto",
|
|
25
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
26
|
"Details page for mobile": "Pagina dettagli per mobile",
|
|
27
|
-
"The message page has already been created.": "La pagina dei messaggi è già stata creata."
|
|
27
|
+
"The message page has already been created.": "La pagina dei messaggi è già stata creata.",
|
|
28
|
+
"When select receivers from node result, only support ID of user (or IDs array of users). Others will not match any user.": "Quando selezioni i destinatari dal risultato del nodo, supporta solo l'ID dell'utente (o l'array di ID degli utenti). Gli altri non corrisponderanno a nessun utente."
|
|
28
29
|
}
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -24,5 +24,6 @@
|
|
|
24
24
|
"Mark as read": "标记为已读",
|
|
25
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\".": "支持两种链接类型:内部链接和外部链接。如果使用内部链接,链接以“/”开头,例如“/m”。如果使用外部链接,链接以“http”开头,例如“https://example.com”。",
|
|
26
26
|
"Details page for mobile": "移动端详情页",
|
|
27
|
-
"The message page has already been created.": "站内信页面已创建。"
|
|
27
|
+
"The message page has already been created.": "站内信页面已创建。",
|
|
28
|
+
"When select receivers from node result, only support ID of user (or IDs array of users). Others will not match any user.": "从节点结果中选择接收者时,仅支持用户ID(或用户ID数组)。其他将不匹配任何用户。"
|
|
28
29
|
}
|
|
@@ -29,11 +29,15 @@ __export(parseUserSelectionConf_exports, {
|
|
|
29
29
|
parseUserSelectionConf: () => parseUserSelectionConf
|
|
30
30
|
});
|
|
31
31
|
module.exports = __toCommonJS(parseUserSelectionConf_exports);
|
|
32
|
+
var import_utils = require("@nocobase/utils");
|
|
32
33
|
async function parseUserSelectionConf(userSelectionConfig, UserRepo) {
|
|
33
34
|
const SelectionConfigs = userSelectionConfig.flat().filter(Boolean);
|
|
34
35
|
const users = /* @__PURE__ */ new Set();
|
|
35
36
|
for (const item of SelectionConfigs) {
|
|
36
37
|
if (typeof item === "object") {
|
|
38
|
+
if (!(0, import_utils.isValidFilter)(item.filter)) {
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
37
41
|
const result = await UserRepo.find({
|
|
38
42
|
...item,
|
|
39
43
|
fields: ["id"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-notification-in-app-message",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
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.",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"@nocobase/test": "1.x",
|
|
27
27
|
"react-router-dom": "^6.x"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "a5236dc36ff3493fee4ced9d99e1889e9de300cf"
|
|
30
30
|
}
|