testeranto 0.79.3 → 0.79.4
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/TaskMan.Dockerfile +23 -0
- package/TaskMan1.Dockerfile +23 -0
- package/devBot.dockerfile +1 -1
- package/dist/TaskMan.Dockerfile +23 -0
- package/dist/common/TaskManBackEnd.js +29 -11
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/TaskManBackEnd.js +29 -11
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/TaskManBackEnd.mjs +6 -11
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/TaskManBackEnd.ts +110 -92
- package/yarn-error.log +0 -3144
|
@@ -97,9 +97,11 @@ function listToTree(fileList) {
|
|
|
97
97
|
}
|
|
98
98
|
return root.children;
|
|
99
99
|
}
|
|
100
|
-
new MongoClient(`mongodb
|
|
100
|
+
new MongoClient(`mongodb://${process.env.MONGO_HOST || "127.0.0.1"}:27017`).connect().then(async (conn) => {
|
|
101
101
|
const db = conn.db("taskman");
|
|
102
|
-
await mongoose2.connect(
|
|
102
|
+
await mongoose2.connect(
|
|
103
|
+
`mongodb://${process.env.MONGO_HOST || "127.0.0.1"}:27017/taskman`
|
|
104
|
+
);
|
|
103
105
|
const usersModel = mongoose2.model("User", userSchema);
|
|
104
106
|
const kanbanModel = mongoose2.model("Kanban", kanbanSchema);
|
|
105
107
|
const ganttModel = mongoose2.model("Gantt", ganttSchema);
|
|
@@ -108,18 +110,11 @@ new MongoClient(`mongodb://localhost:27017`).connect().then(async (conn) => {
|
|
|
108
110
|
const ChatChannel = mongoose2.model("ChatChannel", channelsFeature);
|
|
109
111
|
const huddleModdle = ChatChannel.discriminator("Huddle", HuddleSchema);
|
|
110
112
|
const roomsModel = ChatChannel.discriminator("Room", RoomSchema);
|
|
111
|
-
app.get(`/preMergeCheck`, async (req, res) => {
|
|
112
|
-
const commit = req.params["commit"];
|
|
113
|
-
});
|
|
114
113
|
app.get("/TaskManFrontend.js", (req, res) => {
|
|
115
|
-
res.sendFile(
|
|
116
|
-
`${process.cwd()}/node_modules/testeranto/dist/prebuild/TaskManFrontEnd.js`
|
|
117
|
-
);
|
|
114
|
+
res.sendFile(`${process.cwd()}/dist/prebuild/TaskManFrontEnd.js`);
|
|
118
115
|
});
|
|
119
116
|
app.get("/TaskManFrontEnd.css", (req, res) => {
|
|
120
|
-
res.sendFile(
|
|
121
|
-
`${process.cwd()}/node_modules/testeranto/dist/prebuild/TaskManFrontEnd.css`
|
|
122
|
-
);
|
|
117
|
+
res.sendFile(`${process.cwd()}/dist/prebuild/TaskManFrontEnd.css`);
|
|
123
118
|
});
|
|
124
119
|
app.get("/testeranto.json", (req, res) => {
|
|
125
120
|
res.sendFile(`${process.cwd()}/docs/testeranto.json`);
|