@nocobase/plugin-multi-app-share-collection 0.21.0-alpha.7 → 0.21.0-alpha.9
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 +5 -5
- package/dist/server/plugin.js +6 -5
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"@formily/react": "2.3.0",
|
|
3
|
-
"@nocobase/client": "0.21.0-alpha.
|
|
4
|
-
"@nocobase/plugin-multi-app-manager": "0.21.0-alpha.
|
|
3
|
+
"@nocobase/client": "0.21.0-alpha.9",
|
|
4
|
+
"@nocobase/plugin-multi-app-manager": "0.21.0-alpha.9",
|
|
5
5
|
"antd": "5.12.8",
|
|
6
6
|
"react": "18.2.0",
|
|
7
|
-
"@nocobase/utils": "0.21.0-alpha.
|
|
7
|
+
"@nocobase/utils": "0.21.0-alpha.9",
|
|
8
8
|
"react-i18next": "11.18.6",
|
|
9
|
-
"@nocobase/database": "0.21.0-alpha.
|
|
10
|
-
"@nocobase/server": "0.21.0-alpha.
|
|
9
|
+
"@nocobase/database": "0.21.0-alpha.9",
|
|
10
|
+
"@nocobase/server": "0.21.0-alpha.9",
|
|
11
11
|
"lodash": "4.17.21"
|
|
12
12
|
};
|
package/dist/server/plugin.js
CHANGED
|
@@ -34,7 +34,6 @@ module.exports = __toCommonJS(plugin_exports);
|
|
|
34
34
|
var import_plugin_multi_app_manager = __toESM(require("@nocobase/plugin-multi-app-manager"));
|
|
35
35
|
var import_server = require("@nocobase/server");
|
|
36
36
|
var import_lodash = __toESM(require("lodash"));
|
|
37
|
-
var import_path = require("path");
|
|
38
37
|
const subAppFilteredPlugins = ["multi-app-share-collection", "multi-app-manager"];
|
|
39
38
|
const unSyncPlugins = ["localization-management"];
|
|
40
39
|
class SubAppPlugin extends import_server.Plugin {
|
|
@@ -208,7 +207,6 @@ class MultiAppShareCollectionPlugin extends import_server.Plugin {
|
|
|
208
207
|
this.app.log.warn("multi-app-share-collection plugin need multi-app-manager plugin enabled");
|
|
209
208
|
return;
|
|
210
209
|
}
|
|
211
|
-
await this.importCollections((0, import_path.resolve)(__dirname, "collections"));
|
|
212
210
|
this.app.resourcer.registerActionHandlers({
|
|
213
211
|
"applications:shareCollections": async (ctx, next) => {
|
|
214
212
|
const { filterByTk, values } = ctx.action.params;
|
|
@@ -225,9 +223,12 @@ class MultiAppShareCollectionPlugin extends import_server.Plugin {
|
|
|
225
223
|
...mainAppDbConfig,
|
|
226
224
|
schema: appName
|
|
227
225
|
};
|
|
228
|
-
const plugins = [...mainApp.pm.
|
|
229
|
-
(
|
|
230
|
-
|
|
226
|
+
const plugins = [...mainApp.pm.getPlugins().values()].filter(
|
|
227
|
+
(plugin) => {
|
|
228
|
+
var _a, _b;
|
|
229
|
+
return ((_a = plugin == null ? void 0 : plugin.options) == null ? void 0 : _a.packageName) !== "@nocobase/plugin-multi-app-manager" && ((_b = plugin == null ? void 0 : plugin.options) == null ? void 0 : _b.packageName) !== "@nocobase/plugin-multi-app-share-collection";
|
|
230
|
+
}
|
|
231
|
+
).map((plugin) => plugin.name);
|
|
231
232
|
return {
|
|
232
233
|
database: import_lodash.default.merge(databaseOptions, {
|
|
233
234
|
dialectOptions: {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "多应用数据表共享",
|
|
5
5
|
"description": "",
|
|
6
6
|
"description.zh-CN": "",
|
|
7
|
-
"version": "0.21.0-alpha.
|
|
7
|
+
"version": "0.21.0-alpha.9",
|
|
8
8
|
"main": "./dist/server/index.js",
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@formily/react": "2.x",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@nocobase/test": "0.x",
|
|
24
24
|
"@nocobase/utils": "0.x"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "a6fe6c4ee532c04e5a50ec777bf76436ca624cbd",
|
|
27
27
|
"keywords": [
|
|
28
28
|
"System management"
|
|
29
29
|
]
|