@tachybase/module-multi-app 0.23.40 → 0.23.41
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
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"react": "18.3.1",
|
|
3
|
-
"@tachybase/client": "0.23.
|
|
3
|
+
"@tachybase/client": "0.23.41",
|
|
4
4
|
"@ant-design/icons": "5.5.2",
|
|
5
5
|
"antd": "5.22.5",
|
|
6
|
-
"@tachybase/schema": "0.23.
|
|
6
|
+
"@tachybase/schema": "0.23.41",
|
|
7
7
|
"react-router-dom": "6.28.1",
|
|
8
8
|
"react-i18next": "15.2.0",
|
|
9
|
-
"@tachybase/server": "0.23.
|
|
10
|
-
"@tachybase/database": "0.23.
|
|
9
|
+
"@tachybase/server": "0.23.41",
|
|
10
|
+
"@tachybase/database": "0.23.41",
|
|
11
11
|
"lodash": "4.17.21",
|
|
12
12
|
"mysql2": "3.11.5",
|
|
13
13
|
"pg": "8.13.1",
|
|
14
|
-
"@tachybase/actions": "0.23.
|
|
15
|
-
"@tachybase/utils": "0.23.
|
|
14
|
+
"@tachybase/actions": "0.23.41",
|
|
15
|
+
"@tachybase/utils": "0.23.41"
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"mariadb","version":"2.5.6","description":"fast mariadb/mysql connector.","main":"promise.js","types":"types/index.d.ts","directories":{"lib":"lib","test":"test"},"private":false,"scripts":{"test":"npm run test:types-prettier && npm run test:prettier && npm run test:types && npm run test:lint && npm run test:base","test:base":"mocha --no-parallel --timeout 5000 \"test/**/*.js\" ","test:lint":"eslint \"{lib,test}/**/*.js\" ","test:types":"eslint \"types/*.ts\" ","test:types-prettier":"prettier --write \"types/*.ts\"","test:prettier":"prettier --write \"{tools,lib,test,benchmarks}/**/*.js\"","coverage":"npm run coverage:test && npm run coverage:report","coverage:test":"nyc mocha --no-parallel --timeout 5000 \"test/**/*.js\"","coverage:report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","benchmark":"node ./benchmarks/benchmarks.js","generate":"node ./tools/generate-mariadb.js"},"repository":{"type":"git","url":"git+https://github.com/mariadb-corporation/mariadb-connector-nodejs.git"},"keywords":["mariadb","mysql","client","driver","connector"],"files":["lib","types/index.d.ts","promise.js","callback.js"],"engines":{"node":">= 10.13"},"author":"Diego Dupin <diego.dupin@mariadb.com>","license":"LGPL-2.1-or-later","dependencies":{"@types/geojson":"^7946.0.8","@types/node":"^17.0.10","denque":"^2.0.1","iconv-lite":"^0.6.3","long":"^5.2.0","moment-timezone":"^0.5.34","please-upgrade-node":"^3.2.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^5.10.0","@typescript-eslint/parser":"^5.10.0","benchmark":"^2.1.4","chai":"^4.3.4","codecov":"^3.8.2","chalk":"^4.1.2","dom-parser":"^0.1.6","error-stack-parser":"^2.0.6","eslint":"^8.7.0","eslint-config-prettier":"^8.3.0","eslint-plugin-markdown":"^2.2.1","eslint-plugin-prettier":"^4.0.0","mocha":"^9.2.0","mocha-lcov-reporter":"^1.3.0","nyc":"^15.1.0","prettier":"^2.5.1","typescript":"^4.5.5"},"bugs":{"url":"https://jira.mariadb.org/projects/CONJS/"},"homepage":"https://github.com/mariadb-corporation/mariadb-connector-nodejs#readme","_lastModified":"2025-
|
|
1
|
+
{"name":"mariadb","version":"2.5.6","description":"fast mariadb/mysql connector.","main":"promise.js","types":"types/index.d.ts","directories":{"lib":"lib","test":"test"},"private":false,"scripts":{"test":"npm run test:types-prettier && npm run test:prettier && npm run test:types && npm run test:lint && npm run test:base","test:base":"mocha --no-parallel --timeout 5000 \"test/**/*.js\" ","test:lint":"eslint \"{lib,test}/**/*.js\" ","test:types":"eslint \"types/*.ts\" ","test:types-prettier":"prettier --write \"types/*.ts\"","test:prettier":"prettier --write \"{tools,lib,test,benchmarks}/**/*.js\"","coverage":"npm run coverage:test && npm run coverage:report","coverage:test":"nyc mocha --no-parallel --timeout 5000 \"test/**/*.js\"","coverage:report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","benchmark":"node ./benchmarks/benchmarks.js","generate":"node ./tools/generate-mariadb.js"},"repository":{"type":"git","url":"git+https://github.com/mariadb-corporation/mariadb-connector-nodejs.git"},"keywords":["mariadb","mysql","client","driver","connector"],"files":["lib","types/index.d.ts","promise.js","callback.js"],"engines":{"node":">= 10.13"},"author":"Diego Dupin <diego.dupin@mariadb.com>","license":"LGPL-2.1-or-later","dependencies":{"@types/geojson":"^7946.0.8","@types/node":"^17.0.10","denque":"^2.0.1","iconv-lite":"^0.6.3","long":"^5.2.0","moment-timezone":"^0.5.34","please-upgrade-node":"^3.2.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^5.10.0","@typescript-eslint/parser":"^5.10.0","benchmark":"^2.1.4","chai":"^4.3.4","codecov":"^3.8.2","chalk":"^4.1.2","dom-parser":"^0.1.6","error-stack-parser":"^2.0.6","eslint":"^8.7.0","eslint-config-prettier":"^8.3.0","eslint-plugin-markdown":"^2.2.1","eslint-plugin-prettier":"^4.0.0","mocha":"^9.2.0","mocha-lcov-reporter":"^1.3.0","nyc":"^15.1.0","prettier":"^2.5.1","typescript":"^4.5.5"},"bugs":{"url":"https://jira.mariadb.org/projects/CONJS/"},"homepage":"https://github.com/mariadb-corporation/mariadb-connector-nodejs#readme","_lastModified":"2025-02-08T06:52:19.282Z"}
|
package/dist/server/server.d.ts
CHANGED
|
@@ -16,4 +16,9 @@ export declare class PluginMultiAppManager extends Plugin {
|
|
|
16
16
|
setAppDbCreator(appDbCreator: AppDbCreator): void;
|
|
17
17
|
beforeLoad(): void;
|
|
18
18
|
load(): Promise<void>;
|
|
19
|
+
notifyStatusChange({ appName, status, options }: {
|
|
20
|
+
appName: any;
|
|
21
|
+
status: any;
|
|
22
|
+
options: any;
|
|
23
|
+
}): void;
|
|
19
24
|
}
|
package/dist/server/server.js
CHANGED
|
@@ -214,22 +214,11 @@ class PluginMultiAppManager extends import_server.Plugin {
|
|
|
214
214
|
this.app.on("afterUpgrade", async (app, options) => {
|
|
215
215
|
await this.subAppUpgradeHandler(app);
|
|
216
216
|
});
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
const app = await import_server.AppSupervisor.getInstance().getApp(appName, {
|
|
223
|
-
withOutBootStrap: true
|
|
224
|
-
});
|
|
225
|
-
const level = ["error", "not_found"].includes(status) ? "error" : "info";
|
|
226
|
-
this.app.noticeManager.notify(import_constants.NOTIFY_STATUS_EVENT_KEY, {
|
|
227
|
-
app: appName,
|
|
228
|
-
status,
|
|
229
|
-
level,
|
|
230
|
-
message: (_a = options.error) == null ? void 0 : _a.message
|
|
231
|
-
});
|
|
217
|
+
const notifyStatusChange = this.notifyStatusChange.bind(this);
|
|
218
|
+
this.app.on("beforeStop", async (app) => {
|
|
219
|
+
import_server.AppSupervisor.getInstance().off("appStatusChanged", notifyStatusChange);
|
|
232
220
|
});
|
|
221
|
+
import_server.AppSupervisor.getInstance().on("appStatusChanged", notifyStatusChange);
|
|
233
222
|
this.app.acl.allow("applications", "listPinned", "loggedIn");
|
|
234
223
|
this.app.acl.allow("applications", "list", "loggedIn");
|
|
235
224
|
this.app.acl.registerSnippet({
|
|
@@ -258,6 +247,19 @@ class PluginMultiAppManager extends import_server.Plugin {
|
|
|
258
247
|
this.app.resourcer.registerActionHandler(`applications:${key}`, action);
|
|
259
248
|
}
|
|
260
249
|
}
|
|
250
|
+
notifyStatusChange({ appName, status, options }) {
|
|
251
|
+
var _a;
|
|
252
|
+
if (appName === "main") {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
const level = ["error", "not_found"].includes(status) ? "error" : "info";
|
|
256
|
+
this.app.noticeManager.notify(import_constants.NOTIFY_STATUS_EVENT_KEY, {
|
|
257
|
+
app: appName,
|
|
258
|
+
status,
|
|
259
|
+
level,
|
|
260
|
+
message: (_a = options.error) == null ? void 0 : _a.message
|
|
261
|
+
});
|
|
262
|
+
}
|
|
261
263
|
}
|
|
262
264
|
// Annotate the CommonJS export names for ESM import in node:
|
|
263
265
|
0 && (module.exports = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/module-multi-app",
|
|
3
3
|
"displayName": "Multi-app manager",
|
|
4
|
-
"version": "0.23.
|
|
4
|
+
"version": "0.23.41",
|
|
5
5
|
"description": "Dynamically create multiple apps without separate deployments.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"System management"
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"react": "~18.3.1",
|
|
20
20
|
"react-i18next": "^15.2.0",
|
|
21
21
|
"react-router-dom": "6.28.1",
|
|
22
|
-
"@tachybase/schema": "0.23.
|
|
22
|
+
"@tachybase/schema": "0.23.41"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@tachybase/actions": "0.23.
|
|
26
|
-
"@tachybase/
|
|
27
|
-
"@tachybase/
|
|
28
|
-
"@tachybase/
|
|
29
|
-
"@tachybase/
|
|
30
|
-
"@tachybase/
|
|
25
|
+
"@tachybase/actions": "0.23.41",
|
|
26
|
+
"@tachybase/client": "0.23.41",
|
|
27
|
+
"@tachybase/server": "0.23.41",
|
|
28
|
+
"@tachybase/database": "0.23.41",
|
|
29
|
+
"@tachybase/test": "0.23.41",
|
|
30
|
+
"@tachybase/utils": "0.23.41"
|
|
31
31
|
},
|
|
32
32
|
"description.zh-CN": "无需单独部署即可动态创建多个应用。",
|
|
33
33
|
"displayName.zh-CN": "多应用管理器",
|