testeranto 0.79.67 → 0.79.69
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/Report.Dockerfile +1 -1
- package/dist/common/TaskManBackEnd.js +6 -4
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/TaskManBackEnd.js +6 -4
- package/dist/module/TaskManFrontEnd.js +10 -5
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/TaskManBackEnd.mjs +4 -8
- package/dist/prebuild/TaskManFrontEnd.js +8 -10
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/TaskManBackEnd.ts +124 -126
- package/src/TaskManFrontEnd.tsx +69 -37
|
@@ -6,6 +6,7 @@ import fs from "fs";
|
|
|
6
6
|
import { ganttSchema, kanbanSchema, userSchema, featuresSchema, RoomSchema, HuddleSchema, channelsFeature, chatCatMessageSchema, } from "./mongooseSchemas";
|
|
7
7
|
console.log("hello TaskMan Backend", process.env);
|
|
8
8
|
const port = process.env.PORT || "8080";
|
|
9
|
+
const mongoConnect = process.env.MONGO_CONNECTION || "mongodb://127.0.0.1:27017";
|
|
9
10
|
function findTextFiles(dir, fileList = []) {
|
|
10
11
|
const files = fs.readdirSync(dir);
|
|
11
12
|
for (const file of files) {
|
|
@@ -49,11 +50,12 @@ export default (partialConfig) => {
|
|
|
49
50
|
const config = Object.assign(Object.assign({}, partialConfig), { buildDir: process.cwd() + "/" + partialConfig.outdir });
|
|
50
51
|
fs.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(config, null, 2));
|
|
51
52
|
const app = express();
|
|
52
|
-
new MongoClient(
|
|
53
|
-
.connect()
|
|
54
|
-
.then(async (conn) => {
|
|
53
|
+
new MongoClient(mongoConnect).connect().then(async (conn) => {
|
|
55
54
|
const db = conn.db("taskman");
|
|
56
|
-
await mongoose.connect(
|
|
55
|
+
await mongoose.connect(`${mongoConnect}/taskman`);
|
|
56
|
+
// await mongoose.connect(
|
|
57
|
+
// `mongodb://${process.env.MONGO_HOST || "127.0.0.1"}:27017/taskman`
|
|
58
|
+
// );
|
|
57
59
|
const usersModel = mongoose.model("User", userSchema);
|
|
58
60
|
const kanbanModel = mongoose.model("Kanban", kanbanSchema);
|
|
59
61
|
const ganttModel = mongoose.model("Gantt", ganttSchema);
|
|
@@ -114,8 +114,15 @@ const Features = ({ features, tests, results, adminMode }) => {
|
|
|
114
114
|
return React.createElement(Crud2, { schema: featuresSchema, collectionName: "features", collection: features });
|
|
115
115
|
};
|
|
116
116
|
const Tests = ({ tests, results, features, adminMode }) => {
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
return React.createElement("div", null,
|
|
118
|
+
React.createElement(Navbar, { expand: "md", className: "bg-body-tertiary" },
|
|
119
|
+
React.createElement(Container, { fluid: true },
|
|
120
|
+
React.createElement(NavDropdown, { align: "end", title: "User", id: "basic-nav-dropdown" },
|
|
121
|
+
React.createElement(NavDropdown.Item, { href: "#action/3.4" }, "localhost:8080"),
|
|
122
|
+
React.createElement(NavDropdown.Divider, null),
|
|
123
|
+
React.createElement(NavDropdown.Item, { href: "#action/3.4" }, "origin/master"),
|
|
124
|
+
React.createElement(NavDropdown.Item, { href: "#action/3.4" }, "origin/feature")))),
|
|
125
|
+
React.createElement(Tab.Container, { id: "left-tabs-example5", defaultActiveKey: "feature-0" },
|
|
119
126
|
React.createElement(Row, null,
|
|
120
127
|
React.createElement(Col, { sm: 4 },
|
|
121
128
|
React.createElement(Nav, { variant: "pills", className: "flex-column" }, tests.tests.map((t, ndx) => React.createElement(Nav.Item, { key: ndx },
|
|
@@ -128,9 +135,7 @@ const Tests = ({ tests, results, features, adminMode }) => {
|
|
|
128
135
|
React.createElement("pre", null, JSON.stringify(Object.entries(results).filter(([k, v]) => {
|
|
129
136
|
console.log(v.src, tests.tests[ndx][0]);
|
|
130
137
|
return v.src === tests.tests[ndx][0];
|
|
131
|
-
}), null, 2))))))));
|
|
132
|
-
// return <Crud collectionName="features" collection={features}></Crud>
|
|
133
|
-
return React.createElement("div", null);
|
|
138
|
+
}), null, 2)))))))));
|
|
134
139
|
};
|
|
135
140
|
const TaskMan = ({ setAdminMode, users, adminMode, children }) => {
|
|
136
141
|
return React.createElement("div", null,
|