testeranto 0.79.4 → 0.79.6
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/TaskMan1.Dockerfile +2 -1
- package/package.json +1 -1
- package/src/TaskManBackEnd.ts +2 -2
- package/dist/TaskMan.Dockerfile +0 -23
- package/dist/common/Features.js +0 -84
- package/dist/common/Node.js +0 -23
- package/dist/common/PM/index.js +0 -7
- package/dist/common/PM/main.js +0 -641
- package/dist/common/PM/node.js +0 -88
- package/dist/common/PM/web.js +0 -132
- package/dist/common/Project.js +0 -186
- package/dist/common/Puppeteer.js +0 -104
- package/dist/common/Reporter.js +0 -112
- package/dist/common/Scheduler.js +0 -1
- package/dist/common/SubPackages/puppeteer.js +0 -21
- package/dist/common/SubPackages/react/component/node.js +0 -19
- package/dist/common/SubPackages/react/component/web.js +0 -19
- package/dist/common/SubPackages/react/jsx/index.js +0 -25
- package/dist/common/SubPackages/react/jsx/node.js +0 -10
- package/dist/common/SubPackages/react/jsx/web.js +0 -10
- package/dist/common/SubPackages/react-dom/component/node.js +0 -101
- package/dist/common/SubPackages/react-dom/component/web.js +0 -93
- package/dist/common/SubPackages/react-dom/jsx/index.js +0 -2
- package/dist/common/SubPackages/react-dom/jsx/node.js +0 -39
- package/dist/common/SubPackages/react-dom/jsx/web.js +0 -118
- package/dist/common/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -44
- package/dist/common/SubPackages/react-test-renderer/component/index.js +0 -2
- package/dist/common/SubPackages/react-test-renderer/component/interface.js +0 -68
- package/dist/common/SubPackages/react-test-renderer/component/node.js +0 -8
- package/dist/common/SubPackages/react-test-renderer/component/web.js +0 -8
- package/dist/common/SubPackages/react-test-renderer/fc/node.js +0 -50
- package/dist/common/SubPackages/react-test-renderer/fc/web.js +0 -50
- package/dist/common/SubPackages/react-test-renderer/jsx/index.js +0 -48
- package/dist/common/SubPackages/react-test-renderer/jsx/node.js +0 -10
- package/dist/common/SubPackages/react-test-renderer/jsx/web.js +0 -10
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/index.js +0 -42
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/node.js +0 -10
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/web.js +0 -10
- package/dist/common/TaskManBackEnd.js +0 -174
- package/dist/common/Types.js +0 -2
- package/dist/common/Web.js +0 -39
- package/dist/common/esbuildConfigs/features.js +0 -14
- package/dist/common/esbuildConfigs/index.js +0 -21
- package/dist/common/esbuildConfigs/inputFilesPlugin.js +0 -49
- package/dist/common/esbuildConfigs/node.js +0 -39
- package/dist/common/esbuildConfigs/report.js +0 -13
- package/dist/common/esbuildConfigs/tests.js +0 -13
- package/dist/common/esbuildConfigs/web.js +0 -57
- package/dist/common/lib/abstractBase.js +0 -553
- package/dist/common/lib/basebuilder.js +0 -79
- package/dist/common/lib/classBuilder.js +0 -42
- package/dist/common/lib/core.js +0 -75
- package/dist/common/lib/index.js +0 -22
- package/dist/common/lib/types.js +0 -2
- package/dist/common/mongooseSchemas.js +0 -56
- package/dist/common/package.json +0 -3
- package/dist/common/preload.js +0 -15
- package/dist/common/puppeteerConfiger.js +0 -24
- package/dist/common/report.html.js +0 -31
- package/dist/common/tsconfig.common.tsbuildinfo +0 -1
- package/dist/common/utils.js +0 -16
- package/dist/common/web.html.js +0 -22
- package/dist/module/ExampleTab.js +0 -112
- package/dist/module/Features.js +0 -73
- package/dist/module/Node.js +0 -18
- package/dist/module/PM/index.js +0 -3
- package/dist/module/PM/main.js +0 -611
- package/dist/module/PM/node.js +0 -81
- package/dist/module/PM/web.js +0 -125
- package/dist/module/Project.js +0 -179
- package/dist/module/Puppeteer.js +0 -99
- package/dist/module/Reporter.js +0 -107
- package/dist/module/Scheduler.js +0 -1
- package/dist/module/SubPackages/puppeteer.js +0 -16
- package/dist/module/SubPackages/react/component/node.js +0 -14
- package/dist/module/SubPackages/react/component/web.js +0 -14
- package/dist/module/SubPackages/react/jsx/index.js +0 -19
- package/dist/module/SubPackages/react/jsx/node.js +0 -5
- package/dist/module/SubPackages/react/jsx/web.js +0 -5
- package/dist/module/SubPackages/react-dom/component/node.js +0 -93
- package/dist/module/SubPackages/react-dom/component/web.js +0 -88
- package/dist/module/SubPackages/react-dom/jsx/index.js +0 -1
- package/dist/module/SubPackages/react-dom/jsx/node.js +0 -31
- package/dist/module/SubPackages/react-dom/jsx/web.js +0 -90
- package/dist/module/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -16
- package/dist/module/SubPackages/react-test-renderer/component/index.js +0 -1
- package/dist/module/SubPackages/react-test-renderer/component/interface.js +0 -39
- package/dist/module/SubPackages/react-test-renderer/component/node.js +0 -3
- package/dist/module/SubPackages/react-test-renderer/component/web.js +0 -3
- package/dist/module/SubPackages/react-test-renderer/fc/node.js +0 -22
- package/dist/module/SubPackages/react-test-renderer/fc/web.js +0 -22
- package/dist/module/SubPackages/react-test-renderer/jsx/index.js +0 -19
- package/dist/module/SubPackages/react-test-renderer/jsx/node.js +0 -5
- package/dist/module/SubPackages/react-test-renderer/jsx/web.js +0 -5
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/index.js +0 -16
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/node.js +0 -5
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/web.js +0 -5
- package/dist/module/TaskManBackEnd.js +0 -169
- package/dist/module/TaskManFrontEnd.js +0 -600
- package/dist/module/Types.js +0 -1
- package/dist/module/Web.js +0 -34
- package/dist/module/esbuildConfigs/features.js +0 -12
- package/dist/module/esbuildConfigs/index.js +0 -19
- package/dist/module/esbuildConfigs/inputFilesPlugin.js +0 -44
- package/dist/module/esbuildConfigs/node.js +0 -34
- package/dist/module/esbuildConfigs/report.js +0 -11
- package/dist/module/esbuildConfigs/tests.js +0 -11
- package/dist/module/esbuildConfigs/web.js +0 -52
- package/dist/module/lib/abstractBase.js +0 -545
- package/dist/module/lib/basebuilder.js +0 -75
- package/dist/module/lib/classBuilder.js +0 -38
- package/dist/module/lib/core.js +0 -72
- package/dist/module/lib/index.js +0 -18
- package/dist/module/lib/types.js +0 -1
- package/dist/module/mongooseSchemas.js +0 -50
- package/dist/module/package.json +0 -3
- package/dist/module/preload.js +0 -15
- package/dist/module/puppeteerConfiger.js +0 -19
- package/dist/module/report.html.js +0 -29
- package/dist/module/tsconfig.module.tsbuildinfo +0 -1
- package/dist/module/utils.js +0 -9
- package/dist/module/web.html.js +0 -20
- package/dist/prebuild/Report.css +0 -11358
- package/dist/prebuild/Report.js +0 -37666
- package/dist/prebuild/TaskManBackEnd.mjs +0 -180
- package/dist/prebuild/TaskManFrontEnd.css +0 -12301
- package/dist/prebuild/TaskManFrontEnd.js +0 -81737
- package/dist/types/Features.d.ts +0 -68
- package/dist/types/Node.d.ts +0 -6
- package/dist/types/PM/index.d.ts +0 -20
- package/dist/types/PM/main.d.ts +0 -31
- package/dist/types/PM/node.d.ts +0 -27
- package/dist/types/PM/web.d.ts +0 -25
- package/dist/types/Project.d.ts +0 -7
- package/dist/types/Puppeteer.d.ts +0 -1
- package/dist/types/Reporter.d.ts +0 -1
- package/dist/types/Scheduler.d.ts +0 -0
- package/dist/types/SubPackages/puppeteer.d.ts +0 -6
- package/dist/types/SubPackages/react/component/node.d.ts +0 -7
- package/dist/types/SubPackages/react/component/web.d.ts +0 -7
- package/dist/types/SubPackages/react/jsx/index.d.ts +0 -12
- package/dist/types/SubPackages/react/jsx/node.d.ts +0 -4
- package/dist/types/SubPackages/react/jsx/web.d.ts +0 -4
- package/dist/types/SubPackages/react-dom/component/node.d.ts +0 -12
- package/dist/types/SubPackages/react-dom/component/web.d.ts +0 -11
- package/dist/types/SubPackages/react-dom/jsx/index.d.ts +0 -6
- package/dist/types/SubPackages/react-dom/jsx/node.d.ts +0 -6
- package/dist/types/SubPackages/react-dom/jsx/web.d.ts +0 -5
- package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -5
- package/dist/types/SubPackages/react-test-renderer/component/index.d.ts +0 -13
- package/dist/types/SubPackages/react-test-renderer/component/interface.d.ts +0 -9
- package/dist/types/SubPackages/react-test-renderer/component/node.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +0 -3
- package/dist/types/SubPackages/react-test-renderer/fc/node.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/fc/web.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/jsx/index.d.ts +0 -16
- package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/index.d.ts +0 -15
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -4
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -4
- package/dist/types/TaskManBackEnd.d.ts +0 -1
- package/dist/types/Types.d.ts +0 -50
- package/dist/types/Web.d.ts +0 -6
- package/dist/types/esbuildConfigs/features.d.ts +0 -4
- package/dist/types/esbuildConfigs/index.d.ts +0 -4
- package/dist/types/esbuildConfigs/inputFilesPlugin.d.ts +0 -5
- package/dist/types/esbuildConfigs/node.d.ts +0 -4
- package/dist/types/esbuildConfigs/report.d.ts +0 -4
- package/dist/types/esbuildConfigs/tests.d.ts +0 -4
- package/dist/types/esbuildConfigs/web.d.ts +0 -4
- package/dist/types/lib/abstractBase.d.ts +0 -104
- package/dist/types/lib/basebuilder.d.ts +0 -27
- package/dist/types/lib/classBuilder.d.ts +0 -7
- package/dist/types/lib/core.d.ts +0 -8
- package/dist/types/lib/index.d.ts +0 -59
- package/dist/types/lib/types.d.ts +0 -64
- package/dist/types/mongooseSchemas.d.ts +0 -124
- package/dist/types/preload.d.ts +0 -0
- package/dist/types/puppeteerConfiger.d.ts +0 -4
- package/dist/types/report.html.d.ts +0 -2
- package/dist/types/tsconfig.types.tsbuildinfo +0 -1
- package/dist/types/utils.d.ts +0 -2
- package/dist/types/web.html.d.ts +0 -2
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.testInterface = void 0;
|
|
30
|
-
const react_1 = __importDefault(require("react"));
|
|
31
|
-
const react_test_renderer_1 = __importStar(require("react-test-renderer"));
|
|
32
|
-
exports.testInterface = {
|
|
33
|
-
butThen: async function (s, thenCB, tr) {
|
|
34
|
-
console.log("butThen", thenCB.toString());
|
|
35
|
-
return thenCB(s);
|
|
36
|
-
},
|
|
37
|
-
beforeEach: function (CComponent, props) {
|
|
38
|
-
let component;
|
|
39
|
-
(0, react_test_renderer_1.act)(() => {
|
|
40
|
-
component = react_test_renderer_1.default.create(react_1.default.createElement(CComponent, props, []));
|
|
41
|
-
});
|
|
42
|
-
return component;
|
|
43
|
-
},
|
|
44
|
-
andWhen: async function (renderer, whenCB) {
|
|
45
|
-
await (0, react_test_renderer_1.act)(() => whenCB(renderer));
|
|
46
|
-
return renderer;
|
|
47
|
-
},
|
|
48
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const Node_js_1 = __importDefault(require("../../../Node.js"));
|
|
7
|
-
const index_js_1 = require("./index.js");
|
|
8
|
-
exports.default = (testImplementations, testSpecifications, testInput, testInterface2 = index_js_1.testInterface) => {
|
|
9
|
-
return (0, Node_js_1.default)(testInput, testSpecifications, testImplementations, testInterface2);
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const Web_js_1 = __importDefault(require("../../../Web.js"));
|
|
7
|
-
const index_js_1 = require("./index.js");
|
|
8
|
-
exports.default = (testImplementations, testSpecifications, testInput, testInterface2 = index_js_1.testInterface) => {
|
|
9
|
-
return (0, Web_js_1.default)(testInput, testSpecifications, testImplementations, testInterface2);
|
|
10
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.testInterface = void 0;
|
|
27
|
-
const react_test_renderer_1 = __importStar(require("react-test-renderer"));
|
|
28
|
-
exports.testInterface = {
|
|
29
|
-
beforeEach: async (CComponent) => {
|
|
30
|
-
return new Promise((res, rej) => {
|
|
31
|
-
let component;
|
|
32
|
-
(0, react_test_renderer_1.act)(async () => {
|
|
33
|
-
component = react_test_renderer_1.default.create(CComponent);
|
|
34
|
-
});
|
|
35
|
-
res(component);
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
andWhen: async function (renderer, whenCB) {
|
|
39
|
-
await (0, react_test_renderer_1.act)(() => whenCB()(renderer));
|
|
40
|
-
return renderer;
|
|
41
|
-
},
|
|
42
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const _1 = require(".");
|
|
7
|
-
const Node_1 = __importDefault(require("../../../Node"));
|
|
8
|
-
exports.default = (testImplementations, testSpecifications, testInput) => {
|
|
9
|
-
return (0, Node_1.default)(testInput, testSpecifications, testImplementations, _1.testInterface);
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const Web_1 = __importDefault(require("../../../Web"));
|
|
7
|
-
const index_1 = require("./index");
|
|
8
|
-
exports.default = (testImplementations, testSpecifications, testInput) => {
|
|
9
|
-
return (0, Web_1.default)(testInput, testSpecifications, testImplementations, index_1.testInterface);
|
|
10
|
-
};
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const express_1 = __importDefault(require("express"));
|
|
7
|
-
const mongodb_1 = require("mongodb");
|
|
8
|
-
const mongoose_1 = __importDefault(require("mongoose"));
|
|
9
|
-
const path_1 = __importDefault(require("path"));
|
|
10
|
-
const fs_1 = __importDefault(require("fs"));
|
|
11
|
-
const mongooseSchemas_1 = require("./mongooseSchemas");
|
|
12
|
-
// export const chatChannel = new mongoose.Schema<IChatChannel>({
|
|
13
|
-
// // name: { type: String, required: true },
|
|
14
|
-
// users: [
|
|
15
|
-
// {
|
|
16
|
-
// type: mongoose.Schema.Types.ObjectId,
|
|
17
|
-
// ref: "User",
|
|
18
|
-
// required: true,
|
|
19
|
-
// },
|
|
20
|
-
// ],
|
|
21
|
-
// });
|
|
22
|
-
const app = (0, express_1.default)();
|
|
23
|
-
const port = 3000;
|
|
24
|
-
function findTextFiles(dir, fileList = []) {
|
|
25
|
-
const files = fs_1.default.readdirSync(dir);
|
|
26
|
-
for (const file of files) {
|
|
27
|
-
const filePath = path_1.default.join(dir, file);
|
|
28
|
-
const fileStat = fs_1.default.statSync(filePath);
|
|
29
|
-
if (fileStat.isDirectory() && file !== "node_modules") {
|
|
30
|
-
findTextFiles(filePath, fileList); // Recursive call for subdirectories
|
|
31
|
-
}
|
|
32
|
-
else if (path_1.default.extname(file) === ".txt") {
|
|
33
|
-
fileList.push(filePath);
|
|
34
|
-
}
|
|
35
|
-
else if (path_1.default.extname(file) === ".md") {
|
|
36
|
-
fileList.push(filePath);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return fileList;
|
|
40
|
-
}
|
|
41
|
-
function listToTree(fileList) {
|
|
42
|
-
const root = {
|
|
43
|
-
name: "root",
|
|
44
|
-
children: [],
|
|
45
|
-
};
|
|
46
|
-
for (const path of fileList) {
|
|
47
|
-
const parts = path.split("/");
|
|
48
|
-
let current = root;
|
|
49
|
-
for (let i = 0; i < parts.length; i++) {
|
|
50
|
-
const part = parts[i];
|
|
51
|
-
if (!part)
|
|
52
|
-
continue; // Skip empty parts (e.g., from leading '/')
|
|
53
|
-
let child = current.children.find((c) => c.name === part);
|
|
54
|
-
if (!child) {
|
|
55
|
-
child = { name: part, children: [] };
|
|
56
|
-
current.children.push(child);
|
|
57
|
-
}
|
|
58
|
-
current = child;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return root.children;
|
|
62
|
-
}
|
|
63
|
-
new mongodb_1.MongoClient(`mongodb://${process.env.MONGO_HOST || "127.0.0.1"}:27017`)
|
|
64
|
-
.connect()
|
|
65
|
-
.then(async (conn) => {
|
|
66
|
-
const db = conn.db("taskman");
|
|
67
|
-
await mongoose_1.default.connect(`mongodb://${process.env.MONGO_HOST || "127.0.0.1"}:27017/taskman`);
|
|
68
|
-
const usersModel = mongoose_1.default.model("User", mongooseSchemas_1.userSchema);
|
|
69
|
-
const kanbanModel = mongoose_1.default.model("Kanban", mongooseSchemas_1.kanbanSchema);
|
|
70
|
-
const ganttModel = mongoose_1.default.model("Gantt", mongooseSchemas_1.ganttSchema);
|
|
71
|
-
const featuresModel = mongoose_1.default.model("Features", mongooseSchemas_1.featuresSchema);
|
|
72
|
-
// const roomsModel = mongoose.model<any>("Rooms", RoomSchema);
|
|
73
|
-
// const huddleModdle = mongoose.model<any>("Huddles", HuddleSchema);
|
|
74
|
-
const MessagesModel = mongoose_1.default.model("Messages", mongooseSchemas_1.chatCatMessageSchema);
|
|
75
|
-
const ChatChannel = mongoose_1.default.model("ChatChannel", mongooseSchemas_1.channelsFeature);
|
|
76
|
-
const huddleModdle = ChatChannel.discriminator("Huddle", mongooseSchemas_1.HuddleSchema);
|
|
77
|
-
const roomsModel = ChatChannel.discriminator("Room", mongooseSchemas_1.RoomSchema);
|
|
78
|
-
app.get("/TaskManFrontend.js", (req, res) => {
|
|
79
|
-
res.sendFile(`${process.cwd()}/dist/prebuild/TaskManFrontEnd.js`);
|
|
80
|
-
});
|
|
81
|
-
app.get("/TaskManFrontEnd.css", (req, res) => {
|
|
82
|
-
res.sendFile(`${process.cwd()}/dist/prebuild/TaskManFrontEnd.css`);
|
|
83
|
-
});
|
|
84
|
-
// app.get(`/preMergeCheck`, async (req, res) => {
|
|
85
|
-
// const commit = req.params["commit"];
|
|
86
|
-
// // res.json(await keyedModels[key].find({}));
|
|
87
|
-
// });
|
|
88
|
-
// app.get("/TaskManFrontend.js", (req, res) => {
|
|
89
|
-
// res.sendFile(
|
|
90
|
-
// `${process.cwd()}/node_modules/testeranto/dist/prebuild/TaskManFrontEnd.js`
|
|
91
|
-
// );
|
|
92
|
-
// });
|
|
93
|
-
// app.get("/TaskManFrontEnd.css", (req, res) => {
|
|
94
|
-
// res.sendFile(
|
|
95
|
-
// `${process.cwd()}/node_modules/testeranto/dist/prebuild/TaskManFrontEnd.css`
|
|
96
|
-
// );
|
|
97
|
-
// });
|
|
98
|
-
app.get("/testeranto.json", (req, res) => {
|
|
99
|
-
res.sendFile(`${process.cwd()}/docs/testeranto.json`);
|
|
100
|
-
});
|
|
101
|
-
app.get("/", (req, res) => {
|
|
102
|
-
res.send(`<!DOCTYPE html>
|
|
103
|
-
<html lang="en">
|
|
104
|
-
|
|
105
|
-
<head>
|
|
106
|
-
<meta name="description" content="Webpage description goes here" />
|
|
107
|
-
<meta charset="utf-8" />
|
|
108
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
109
|
-
<meta name="author" content="" />
|
|
110
|
-
|
|
111
|
-
<title>TaskMan</title>
|
|
112
|
-
|
|
113
|
-
<link rel="stylesheet" href="/TaskManFrontEnd.css" />
|
|
114
|
-
<script type="module" src="/TaskManFrontEnd.js"></script>
|
|
115
|
-
</head>
|
|
116
|
-
|
|
117
|
-
<body><div id="root">react is loading</div></body>
|
|
118
|
-
|
|
119
|
-
</html>`);
|
|
120
|
-
});
|
|
121
|
-
app.listen(port, () => {
|
|
122
|
-
console.log(`Example app listening on port ${port}`);
|
|
123
|
-
});
|
|
124
|
-
///////////////////////////////////////////////
|
|
125
|
-
const keyedModels = {
|
|
126
|
-
users: usersModel,
|
|
127
|
-
kanbans: kanbanModel,
|
|
128
|
-
features: featuresModel,
|
|
129
|
-
gantts: ganttModel,
|
|
130
|
-
rooms: roomsModel,
|
|
131
|
-
huddles: huddleModdle,
|
|
132
|
-
messages: MessagesModel,
|
|
133
|
-
};
|
|
134
|
-
Object.keys(keyedModels).forEach((key) => {
|
|
135
|
-
app.get(`/${key}.json`, async (req, res) => {
|
|
136
|
-
console.log("GET", key, keyedModels[key]);
|
|
137
|
-
res.json(await keyedModels[key].find({}));
|
|
138
|
-
});
|
|
139
|
-
app.get(`/${key}/:id.json`, async (req, res) => {
|
|
140
|
-
res.json(await keyedModels[key]
|
|
141
|
-
.find({ id: { $eq: req.params["id"] } })
|
|
142
|
-
.toArray());
|
|
143
|
-
});
|
|
144
|
-
app.post(`/${key}/:id.json`, async (req, res) => {
|
|
145
|
-
res.json(await keyedModels[key]
|
|
146
|
-
.find({ id: { $eq: req.params["id"] } })
|
|
147
|
-
.toArray());
|
|
148
|
-
});
|
|
149
|
-
app.post(`/${key}.json`, async (req, res) => {
|
|
150
|
-
res.json(await keyedModels[key]
|
|
151
|
-
.find({ id: { $eq: req.params["id"] } })
|
|
152
|
-
.toArray());
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
|
-
app.use("/docs", express_1.default.static(path_1.default.join(process.cwd(), "docs")));
|
|
156
|
-
app.get("/docGal/fs.json", (req, res) => {
|
|
157
|
-
const directoryPath = "./"; // Replace with the desired directory path
|
|
158
|
-
// const textFiles = findTextFiles(directoryPath);
|
|
159
|
-
res.json(listToTree(findTextFiles(directoryPath)));
|
|
160
|
-
// res.send(`<!DOCTYPE html>
|
|
161
|
-
// <html lang="en">
|
|
162
|
-
// <head>
|
|
163
|
-
// <meta name="description" content="Webpage description goes here" />
|
|
164
|
-
// <meta charset="utf-8" />
|
|
165
|
-
// <meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
166
|
-
// <meta name="author" content="" />
|
|
167
|
-
// <title>TaskMan</title>
|
|
168
|
-
// <link rel="stylesheet" href="/TaskManFrontEnd.css" />
|
|
169
|
-
// <script type="module" src="/TaskManFrontEnd.js"></script>
|
|
170
|
-
// </head>
|
|
171
|
-
// <body><div id="root">react is loading</div></body>
|
|
172
|
-
// </html>`);
|
|
173
|
-
});
|
|
174
|
-
});
|
package/dist/common/Types.js
DELETED
package/dist/common/Web.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const web_1 = require("./PM/web");
|
|
7
|
-
const core_js_1 = __importDefault(require("./lib/core.js"));
|
|
8
|
-
const index_js_1 = require("./lib/index.js");
|
|
9
|
-
class WebTesteranto extends core_js_1.default {
|
|
10
|
-
constructor(input, testSpecification, testImplementation, testResourceRequirement, testInterface) {
|
|
11
|
-
super(input, testSpecification, testImplementation, testResourceRequirement, testInterface);
|
|
12
|
-
}
|
|
13
|
-
async receiveTestResourceConfig(partialTestResource) {
|
|
14
|
-
const t = partialTestResource; //JSON.parse(partialTestResource);
|
|
15
|
-
const pm = new web_1.PM_Web(t);
|
|
16
|
-
const { failed, artifacts, logPromise } = await this.testJobs[0].receiveTestResourceConfig(pm);
|
|
17
|
-
pm.customclose();
|
|
18
|
-
// Promise.all([...artifacts, logPromise]).then(async () => {
|
|
19
|
-
// console.log("hello world");
|
|
20
|
-
// pm.customclose();
|
|
21
|
-
// // we can't close the window becuase we might be taking a screenshot
|
|
22
|
-
// // window.close();
|
|
23
|
-
// // console.log(
|
|
24
|
-
// // "(window as any).browser",
|
|
25
|
-
// // JSON.stringify(await (window as any).browser)
|
|
26
|
-
// // );
|
|
27
|
-
// // var currentWindow = (await (window as any).browser).getCurrentWindow();
|
|
28
|
-
// // window.close();
|
|
29
|
-
// // var customWindow = window.open("", "_blank", "");
|
|
30
|
-
// // customWindow.close();
|
|
31
|
-
// // this.puppetMaster.browser.page
|
|
32
|
-
// // window["customclose"]();
|
|
33
|
-
// // console.log("goodbye", window["customclose"]());
|
|
34
|
-
// });
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.default = async (input, testSpecification, testImplementation, testInterface, testResourceRequirement = index_js_1.defaultTestResourceRequirement) => {
|
|
38
|
-
return new WebTesteranto(input, testSpecification, testImplementation, testResourceRequirement, testInterface);
|
|
39
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = (config) => {
|
|
4
|
-
return {
|
|
5
|
-
bundle: true,
|
|
6
|
-
entryPoints: [config.features],
|
|
7
|
-
minify: config.minify === true,
|
|
8
|
-
outbase: config.outbase,
|
|
9
|
-
write: true,
|
|
10
|
-
outfile: `${config.outdir}/features.test.js`,
|
|
11
|
-
// external: ["graphology"],
|
|
12
|
-
format: "esm",
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = (config) => {
|
|
4
|
-
return {
|
|
5
|
-
// packages: "external",
|
|
6
|
-
target: "esnext",
|
|
7
|
-
format: "esm",
|
|
8
|
-
splitting: true,
|
|
9
|
-
outExtension: { ".js": ".mjs" },
|
|
10
|
-
outbase: config.outbase,
|
|
11
|
-
jsx: "transform",
|
|
12
|
-
bundle: true,
|
|
13
|
-
minify: config.minify === true,
|
|
14
|
-
write: true,
|
|
15
|
-
loader: {
|
|
16
|
-
".js": "jsx",
|
|
17
|
-
".png": "binary",
|
|
18
|
-
".jpg": "binary",
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const fs_1 = __importDefault(require("fs"));
|
|
7
|
-
const path_1 = __importDefault(require("path"));
|
|
8
|
-
exports.default = (platform, entryPoints) => {
|
|
9
|
-
return {
|
|
10
|
-
name: "metafileWriter",
|
|
11
|
-
setup(build) {
|
|
12
|
-
build.onEnd((result) => {
|
|
13
|
-
if (result.errors.length === 0) {
|
|
14
|
-
entryPoints.forEach((entryPoint) => {
|
|
15
|
-
const filePath = path_1.default.join("./docs/", platform, entryPoint.split(".").slice(0, -1).join("."), `inputFiles.json`);
|
|
16
|
-
const dirName = path_1.default.dirname(filePath);
|
|
17
|
-
if (!fs_1.default.existsSync(dirName)) {
|
|
18
|
-
fs_1.default.mkdirSync(dirName, { recursive: true });
|
|
19
|
-
}
|
|
20
|
-
fs_1.default.writeFileSync(filePath, JSON.stringify(Object.keys(Object.keys(result.metafile.outputs)
|
|
21
|
-
.filter((s) => {
|
|
22
|
-
if (!result.metafile.outputs[s].entryPoint) {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
return (path_1.default.resolve(result.metafile.outputs[s].entryPoint) ===
|
|
26
|
-
path_1.default.resolve(entryPoint));
|
|
27
|
-
})
|
|
28
|
-
.reduce((mm, el) => {
|
|
29
|
-
mm.push(result.metafile.outputs[el].inputs);
|
|
30
|
-
return mm;
|
|
31
|
-
}, [])[0])
|
|
32
|
-
.filter((f) => {
|
|
33
|
-
const regex = /^src\/.*/g;
|
|
34
|
-
const matches = f.match(regex);
|
|
35
|
-
const passes = (matches === null || matches === void 0 ? void 0 : matches.length) === 1;
|
|
36
|
-
return passes;
|
|
37
|
-
})
|
|
38
|
-
.filter((f) => {
|
|
39
|
-
const regex = /.*\.test\..*/g;
|
|
40
|
-
const matches = f.match(regex);
|
|
41
|
-
const passes = (matches === null || matches === void 0 ? void 0 : matches.length) === 1;
|
|
42
|
-
return !passes;
|
|
43
|
-
})));
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const index_js_1 = __importDefault(require("./index.js"));
|
|
7
|
-
const inputFilesPlugin_1 = __importDefault(require("./inputFilesPlugin"));
|
|
8
|
-
exports.default = (config, entryPoints) => {
|
|
9
|
-
return Object.assign(Object.assign({}, (0, index_js_1.default)(config)), { splitting: true, outdir: config.outdir + "/node", inject: [`./node_modules/testeranto/dist/cjs-shim.js`], metafile: true, supported: {
|
|
10
|
-
"dynamic-import": true,
|
|
11
|
-
}, define: {
|
|
12
|
-
"process.env.FLUENTFFMPEG_COV": "0",
|
|
13
|
-
}, absWorkingDir: process.cwd(), banner: {
|
|
14
|
-
js: `import { createRequire } from 'module';const require = createRequire(import.meta.url);`,
|
|
15
|
-
}, platform: "node", external: [
|
|
16
|
-
// "testeranto.json",
|
|
17
|
-
// "features.test.js",
|
|
18
|
-
// "react",
|
|
19
|
-
// "events",
|
|
20
|
-
// "ganache"
|
|
21
|
-
...config.externals,
|
|
22
|
-
], entryPoints: [...entryPoints], plugins: [
|
|
23
|
-
...(config.nodePlugins || []),
|
|
24
|
-
(0, inputFilesPlugin_1.default)("node", entryPoints),
|
|
25
|
-
{
|
|
26
|
-
name: "rebuild-notify",
|
|
27
|
-
setup(build) {
|
|
28
|
-
build.onEnd((result) => {
|
|
29
|
-
console.log(`node build ended with ${result.errors.length} errors`);
|
|
30
|
-
if (result.errors.length > 0) {
|
|
31
|
-
console.log(result);
|
|
32
|
-
}
|
|
33
|
-
// console.log(result);
|
|
34
|
-
// result.errors.length !== 0 && process.exit(-1);
|
|
35
|
-
});
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
] });
|
|
39
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = (config) => {
|
|
4
|
-
return {
|
|
5
|
-
bundle: true,
|
|
6
|
-
entryPoints: ["./node_modules/testeranto/dist/module/report.js"],
|
|
7
|
-
minify: config.minify === true,
|
|
8
|
-
outbase: config.outbase,
|
|
9
|
-
write: true,
|
|
10
|
-
outfile: `${config.outdir}/report.js`,
|
|
11
|
-
external: ["tests.json", "features.test.js"],
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = (config) => {
|
|
4
|
-
return {
|
|
5
|
-
bundle: true,
|
|
6
|
-
entryPoints: [config.features],
|
|
7
|
-
minify: config.minify === true,
|
|
8
|
-
outbase: config.outbase,
|
|
9
|
-
write: true,
|
|
10
|
-
outfile: `${config.outdir}/tests.test.js`,
|
|
11
|
-
// external: ["graphology"]
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const path_1 = __importDefault(require("path"));
|
|
7
|
-
const index_js_1 = __importDefault(require("./index.js"));
|
|
8
|
-
const inputFilesPlugin_js_1 = __importDefault(require("./inputFilesPlugin.js"));
|
|
9
|
-
exports.default = (config, entryPoints) => {
|
|
10
|
-
return Object.assign(Object.assign({}, (0, index_js_1.default)(config)), {
|
|
11
|
-
// inject: ["./node_modules/testeranto/dist/cjs-shim.js"],
|
|
12
|
-
// banner: {
|
|
13
|
-
// js: `import { createRequire } from 'module';const require = createRequire(import.meta.url);`,
|
|
14
|
-
// },
|
|
15
|
-
// splitting: true,
|
|
16
|
-
outdir: config.outdir + "/web", alias: {
|
|
17
|
-
react: path_1.default.resolve("./node_modules/react"),
|
|
18
|
-
}, metafile: true, external: [
|
|
19
|
-
"testeranto.json",
|
|
20
|
-
"features.test.ts",
|
|
21
|
-
// "url",
|
|
22
|
-
"react",
|
|
23
|
-
"path",
|
|
24
|
-
"fs",
|
|
25
|
-
"stream",
|
|
26
|
-
"http",
|
|
27
|
-
"constants",
|
|
28
|
-
"net",
|
|
29
|
-
"assert",
|
|
30
|
-
"tls",
|
|
31
|
-
"os",
|
|
32
|
-
"child_process",
|
|
33
|
-
"readline",
|
|
34
|
-
"zlib",
|
|
35
|
-
"crypto",
|
|
36
|
-
"https",
|
|
37
|
-
"util",
|
|
38
|
-
"process",
|
|
39
|
-
"dns",
|
|
40
|
-
], platform: "browser", entryPoints: [...entryPoints], plugins: [
|
|
41
|
-
...(config.webPlugins || []),
|
|
42
|
-
(0, inputFilesPlugin_js_1.default)("node", entryPoints),
|
|
43
|
-
{
|
|
44
|
-
name: "rebuild-notify",
|
|
45
|
-
setup(build) {
|
|
46
|
-
build.onEnd((result) => {
|
|
47
|
-
console.log(`web build ended with ${result.errors.length} errors`);
|
|
48
|
-
if (result.errors.length > 0) {
|
|
49
|
-
console.log(result);
|
|
50
|
-
}
|
|
51
|
-
// console.log(result);
|
|
52
|
-
// result.errors.length !== 0 && process.exit(-1);
|
|
53
|
-
});
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
] });
|
|
57
|
-
};
|