@tachybase/plugin-multi-app-share-collection 1.2.16-alpha.3 → 1.2.16-alpha.5
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/externalVersion.js +6 -6
- package/dist/server/plugin.js +5 -5
- package/package.json +11 -11
package/dist/externalVersion.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"react": "18.3.1",
|
|
3
|
-
"@tachybase/client": "1.2.16-alpha.
|
|
4
|
-
"@tachybase/module-multi-app": "1.2.16-alpha.
|
|
5
|
-
"@tachybase/schema": "1.2.16-alpha.
|
|
3
|
+
"@tachybase/client": "1.2.16-alpha.5",
|
|
4
|
+
"@tachybase/module-multi-app": "1.2.16-alpha.5",
|
|
5
|
+
"@tachybase/schema": "1.2.16-alpha.5",
|
|
6
6
|
"antd": "5.22.5",
|
|
7
|
-
"@tachybase/utils": "1.2.16-alpha.
|
|
7
|
+
"@tachybase/utils": "1.2.16-alpha.5",
|
|
8
8
|
"react-i18next": "15.2.0",
|
|
9
|
-
"@tachybase/database": "1.2.16-alpha.
|
|
10
|
-
"@tachybase/server": "1.2.16-alpha.
|
|
9
|
+
"@tachybase/database": "1.2.16-alpha.5",
|
|
10
|
+
"@tachybase/server": "1.2.16-alpha.5",
|
|
11
11
|
"lodash": "4.17.21"
|
|
12
12
|
};
|
package/dist/server/plugin.js
CHANGED
|
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(plugin_exports);
|
|
|
34
34
|
var import_module_multi_app = __toESM(require("@tachybase/module-multi-app"));
|
|
35
35
|
var import_server = require("@tachybase/server");
|
|
36
36
|
var import_lodash = __toESM(require("lodash"));
|
|
37
|
-
const subAppFilteredPlugins = ["multi-app-share-collection", "multi-app
|
|
37
|
+
const subAppFilteredPlugins = ["multi-app-share-collection", "multi-app"];
|
|
38
38
|
const unSyncPlugins = ["localization-management"];
|
|
39
39
|
class SubAppPlugin extends import_server.Plugin {
|
|
40
40
|
beforeLoad() {
|
|
@@ -200,9 +200,9 @@ class MultiAppShareCollectionPlugin extends import_server.Plugin {
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
async load() {
|
|
203
|
-
const multiAppManager = this.app.getPlugin("multi-app
|
|
203
|
+
const multiAppManager = this.app.getPlugin("multi-app");
|
|
204
204
|
if (!multiAppManager) {
|
|
205
|
-
this.app.logger.warn("multi-app-share-collection plugin need multi-app
|
|
205
|
+
this.app.logger.warn("multi-app-share-collection plugin need multi-app plugin enabled");
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
208
|
this.app.resourcer.registerActionHandlers({
|
|
@@ -222,7 +222,7 @@ class MultiAppShareCollectionPlugin extends import_server.Plugin {
|
|
|
222
222
|
schema: appName
|
|
223
223
|
};
|
|
224
224
|
const plugins = [...mainApp.pm.getAliases()].filter(
|
|
225
|
-
(name) => name !== "multi-app
|
|
225
|
+
(name) => name !== "multi-app" && name !== "multi-app-share-collection"
|
|
226
226
|
);
|
|
227
227
|
return {
|
|
228
228
|
database: import_lodash.default.merge(databaseOptions, {
|
|
@@ -230,7 +230,7 @@ class MultiAppShareCollectionPlugin extends import_server.Plugin {
|
|
|
230
230
|
application_name: `tachybase.${appName}`
|
|
231
231
|
}
|
|
232
232
|
}),
|
|
233
|
-
plugins
|
|
233
|
+
plugins,
|
|
234
234
|
resourcer: {
|
|
235
235
|
prefix: process.env.API_BASE_PATH
|
|
236
236
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/plugin-multi-app-share-collection",
|
|
3
3
|
"displayName": "Multi-app share collection",
|
|
4
|
-
"version": "1.2.16-alpha.
|
|
4
|
+
"version": "1.2.16-alpha.5",
|
|
5
5
|
"description": "Multi-app share collection",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"System management"
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
14
|
"react": "~18.3.1",
|
|
15
15
|
"react-i18next": "^15.2.0",
|
|
16
|
-
"@tachybase/schema": "1.2.16-alpha.
|
|
16
|
+
"@tachybase/schema": "1.2.16-alpha.5"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@tachybase/client": "1.2.16-alpha.
|
|
20
|
-
"@tachybase/database": "1.2.16-alpha.
|
|
21
|
-
"@tachybase/module-
|
|
22
|
-
"@tachybase/module-
|
|
23
|
-
"@tachybase/module-
|
|
24
|
-
"@tachybase/module-user": "1.2.16-alpha.
|
|
25
|
-
"@tachybase/
|
|
26
|
-
"@tachybase/
|
|
27
|
-
"@tachybase/
|
|
19
|
+
"@tachybase/client": "1.2.16-alpha.5",
|
|
20
|
+
"@tachybase/database": "1.2.16-alpha.5",
|
|
21
|
+
"@tachybase/module-error-handler": "1.2.16-alpha.5",
|
|
22
|
+
"@tachybase/module-multi-app": "1.2.16-alpha.5",
|
|
23
|
+
"@tachybase/module-collection": "1.2.16-alpha.5",
|
|
24
|
+
"@tachybase/module-user": "1.2.16-alpha.5",
|
|
25
|
+
"@tachybase/test": "1.2.16-alpha.5",
|
|
26
|
+
"@tachybase/utils": "1.2.16-alpha.5",
|
|
27
|
+
"@tachybase/server": "1.2.16-alpha.5"
|
|
28
28
|
},
|
|
29
29
|
"description.zh-CN": "多应用数据共享",
|
|
30
30
|
"displayName.zh-CN": "多应用数据共享",
|