@nocobase/plugin-workflow-test 2.0.0-alpha.9 → 2.0.0-beta.10
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.
|
@@ -882,13 +882,13 @@ const builtinExpression = {
|
|
|
882
882
|
value: "math.js",
|
|
883
883
|
label: "Math.js",
|
|
884
884
|
tooltip: "{{t('Math.js comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types')}}",
|
|
885
|
-
link: "https://
|
|
885
|
+
link: "https://v2.docs.nocobase.com/calculation-engine/math"
|
|
886
886
|
},
|
|
887
887
|
{
|
|
888
888
|
value: "formula.js",
|
|
889
889
|
label: "Formula.js",
|
|
890
890
|
tooltip: '{{t("Formula.js supports most Microsoft Excel formula functions.")}}',
|
|
891
|
-
link: "https://docs.nocobase.com/
|
|
891
|
+
link: "https://v2.docs.nocobase.com/calculation-engine/formula"
|
|
892
892
|
}
|
|
893
893
|
],
|
|
894
894
|
default: "formula.js"
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.0.0-
|
|
12
|
-
"@nocobase/utils": "2.0.0-
|
|
11
|
+
"@nocobase/client": "2.0.0-beta.10",
|
|
12
|
+
"@nocobase/utils": "2.0.0-beta.10",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
|
-
"@nocobase/test": "2.0.0-
|
|
15
|
-
"@nocobase/server": "2.0.0-
|
|
16
|
-
"@nocobase/data-source-manager": "2.0.0-
|
|
17
|
-
"@nocobase/database": "2.0.0-
|
|
14
|
+
"@nocobase/test": "2.0.0-beta.10",
|
|
15
|
+
"@nocobase/server": "2.0.0-beta.10",
|
|
16
|
+
"@nocobase/data-source-manager": "2.0.0-beta.10",
|
|
17
|
+
"@nocobase/database": "2.0.0-beta.10"
|
|
18
18
|
};
|
package/dist/server/index.js
CHANGED
|
@@ -50,6 +50,7 @@ var import_utils = require("@nocobase/utils");
|
|
|
50
50
|
var import_functions = __toESM(require("./functions"));
|
|
51
51
|
var import_instructions = __toESM(require("./instructions"));
|
|
52
52
|
var import_triggers = __toESM(require("./triggers"));
|
|
53
|
+
var import_database = require("@nocobase/database");
|
|
53
54
|
var import_test2 = require("@nocobase/test");
|
|
54
55
|
class TestCollectionPlugin extends import_server.Plugin {
|
|
55
56
|
async load() {
|
|
@@ -69,6 +70,10 @@ async function getApp({
|
|
|
69
70
|
"field-sort",
|
|
70
71
|
"file-manager",
|
|
71
72
|
"system-settings",
|
|
73
|
+
"users",
|
|
74
|
+
"auth",
|
|
75
|
+
"acl",
|
|
76
|
+
"data-source-manager",
|
|
72
77
|
[
|
|
73
78
|
"workflow",
|
|
74
79
|
{
|
|
@@ -82,24 +87,35 @@ async function getApp({
|
|
|
82
87
|
...plugins
|
|
83
88
|
]
|
|
84
89
|
});
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
app.dataSourceManager.factory.register("sequelize", import_data_source_manager.SequelizeDataSource);
|
|
91
|
+
const DataSourceRepo = app.db.getRepository("dataSources");
|
|
92
|
+
await DataSourceRepo.create({
|
|
93
|
+
values: {
|
|
94
|
+
key: "another",
|
|
95
|
+
name: "Another Data Source",
|
|
96
|
+
type: "sequelize",
|
|
97
|
+
options: {
|
|
98
|
+
collectionManager: {
|
|
99
|
+
...(0, import_database.getConfigByEnv)(),
|
|
90
100
|
tablePrefix: `t${(0, import_utils.uid)(5)}`
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
);
|
|
96
|
-
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
const loadStart = Date.now();
|
|
106
|
+
let another = app.dataSourceManager.dataSources.get("another");
|
|
107
|
+
while (!(another == null ? void 0 : another.collectionManager)) {
|
|
108
|
+
if (Date.now() - loadStart >= 5e3) {
|
|
109
|
+
throw new Error('Timed out waiting for the "another" data source to load');
|
|
110
|
+
}
|
|
111
|
+
await (0, import_test.sleep)(1e3);
|
|
112
|
+
another = app.dataSourceManager.dataSources.get("another");
|
|
113
|
+
}
|
|
97
114
|
const anotherDB = another.collectionManager.db;
|
|
98
115
|
await anotherDB.import({
|
|
99
116
|
directory: import_path.default.resolve(__dirname, "collections")
|
|
100
117
|
});
|
|
101
118
|
await anotherDB.sync();
|
|
102
|
-
another.acl.allow("*", "*", "loggedIn");
|
|
103
119
|
return app;
|
|
104
120
|
}
|
|
105
121
|
async function getCluster({ plugins = [], collectionsPath, ...options }) {
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-workflow-test",
|
|
3
3
|
"displayName": "Workflow: test kit",
|
|
4
|
+
"displayName.ru-RU": "Рабочий процесс: Набор тестов",
|
|
4
5
|
"displayName.zh-CN": "工作流:测试工具包",
|
|
5
|
-
"version": "2.0.0-
|
|
6
|
+
"version": "2.0.0-beta.10",
|
|
6
7
|
"license": "AGPL-3.0",
|
|
7
8
|
"main": "dist/server/index.js",
|
|
8
9
|
"types": "./dist/server/index.d.ts",
|
|
@@ -11,5 +12,8 @@
|
|
|
11
12
|
"@nocobase/server": "2.x",
|
|
12
13
|
"@nocobase/test": "2.x"
|
|
13
14
|
},
|
|
14
|
-
"
|
|
15
|
+
"nocobase": {
|
|
16
|
+
"internal": true
|
|
17
|
+
},
|
|
18
|
+
"gitHead": "9943dc4b0fdedcac3f304714b58635ae441e2560"
|
|
15
19
|
}
|