@ozdao/prometheus-framework 0.2.253 → 0.2.255
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/chats.server.js +110 -0
- package/dist/chats.server.mjs +111 -0
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +12 -3
- package/dist/files.server.mjs +12 -3
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +450 -0
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +450 -0
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js.map +1 -0
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/chats/chats.client.cjs +31 -0
- package/dist/prometheus-framework/src/modules/chats/chats.client.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/chats/chats.client.js +31 -0
- package/dist/prometheus-framework/src/modules/chats/chats.client.js.map +1 -0
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +643 -643
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +643 -643
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs +3 -2
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js +4 -3
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +7 -5
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +7 -5
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +21 -2
- package/dist/prometheus-framework/src/modules/reports/reports.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/reports.client.js +20 -1
- package/dist/prometheus-framework/src/modules/reports/reports.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/reports.server.js +21 -8
- package/dist/reports.server.mjs +21 -8
- package/dist/tickets.controller-A_1G-2vC.js +438 -0
- package/dist/tickets.controller-C6UL9C5M.mjs +439 -0
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/package.json +9 -1
- package/src/modules/chats/chats.client.js +48 -0
- package/src/modules/chats/chats.server.js +32 -0
- package/src/modules/events/controllers/tickets.controller.js +3 -3
- package/src/modules/files/files.server.js +17 -7
- package/src/modules/products/components/layouts/Marketplace.vue +1 -0
- package/src/modules/products/components/pages/Catalog.vue +5 -3
- package/src/modules/reports/models/report.model.js +4 -4
- package/src/modules/reports/reports.client.js +35 -14
- package/src/modules/reports/reports.server.js +27 -8
@@ -0,0 +1,110 @@
|
|
1
|
+
"use strict";
|
2
|
+
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
3
|
+
require("./mailing-BQKyTI-q.js");
|
4
|
+
const index = require("./index-CsS7qx1d.js");
|
5
|
+
const controllerFactory$1 = (db) => {
|
6
|
+
const ChatMessage = db.ChatMessage;
|
7
|
+
const saveMessage = async (msg) => {
|
8
|
+
try {
|
9
|
+
const message = new ChatMessage(msg);
|
10
|
+
await message.save();
|
11
|
+
return message;
|
12
|
+
} catch (error) {
|
13
|
+
console.error("Error saving message to database:", error);
|
14
|
+
}
|
15
|
+
};
|
16
|
+
const getMessages = async (chatId) => {
|
17
|
+
try {
|
18
|
+
const messages = await ChatMessage.find({ chatId }).sort({ createdAt: 1 });
|
19
|
+
return messages;
|
20
|
+
} catch (error) {
|
21
|
+
console.error("Error retrieving messages from database:", error);
|
22
|
+
}
|
23
|
+
};
|
24
|
+
return {
|
25
|
+
saveMessage,
|
26
|
+
getMessages
|
27
|
+
};
|
28
|
+
};
|
29
|
+
var chats_controller = controllerFactory$1;
|
30
|
+
const controllerFactory = chats_controller;
|
31
|
+
const middlewareFactory = index.middlewares;
|
32
|
+
var chats_routes = function(app, db, wss) {
|
33
|
+
const controller = controllerFactory(db);
|
34
|
+
middlewareFactory(db);
|
35
|
+
wss.on("connection", (ws) => {
|
36
|
+
console.log("ws connecting...");
|
37
|
+
ws.on("message", async (message) => {
|
38
|
+
const msg = JSON.parse(message);
|
39
|
+
if (msg.type === "joinChat") {
|
40
|
+
ws.chatId = msg.chatId;
|
41
|
+
console.log(`Client joined chat: ${msg.chatId}`);
|
42
|
+
} else {
|
43
|
+
const savedMessage = await controller.saveMessage(msg);
|
44
|
+
wss.clients.forEach((client) => {
|
45
|
+
if (client.chatId && client.chatId.toString() === msg.chatId) {
|
46
|
+
client.send(JSON.stringify(savedMessage));
|
47
|
+
}
|
48
|
+
});
|
49
|
+
}
|
50
|
+
});
|
51
|
+
});
|
52
|
+
app.use(function(req, res, next) {
|
53
|
+
res.header(
|
54
|
+
"Access-Control-Allow-Headers",
|
55
|
+
"Access-Control-Allow-Origin: *",
|
56
|
+
"x-access-token, Origin, Content-Type, Accept"
|
57
|
+
);
|
58
|
+
next();
|
59
|
+
});
|
60
|
+
app.get("/messages/:chatId", async (req, res) => {
|
61
|
+
const { chatId } = req.params;
|
62
|
+
const messages = await controller.getMessages(chatId);
|
63
|
+
res.json(messages);
|
64
|
+
});
|
65
|
+
};
|
66
|
+
var chat_model = (db) => {
|
67
|
+
const ChatMessageSchema = new db.mongoose.Schema({
|
68
|
+
username: {
|
69
|
+
type: String,
|
70
|
+
required: true
|
71
|
+
},
|
72
|
+
chatId: {
|
73
|
+
type: String,
|
74
|
+
required: true
|
75
|
+
},
|
76
|
+
text: {
|
77
|
+
type: String,
|
78
|
+
required: true
|
79
|
+
},
|
80
|
+
createdAt: {
|
81
|
+
type: Date,
|
82
|
+
default: Date.now
|
83
|
+
}
|
84
|
+
});
|
85
|
+
const ChatMessage = db.mongoose.model("ChatMessage", ChatMessageSchema);
|
86
|
+
return ChatMessage;
|
87
|
+
};
|
88
|
+
const ChatsController = chats_controller;
|
89
|
+
const chatsRoutes = chats_routes;
|
90
|
+
const ChatModel = chat_model;
|
91
|
+
function initializeChats(app, db, wss, origins, publicPath) {
|
92
|
+
db.chat = ChatModel(db);
|
93
|
+
if (app) {
|
94
|
+
chatsRoutes(app, db, wss);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
var chats_server = {
|
98
|
+
initialize: initializeChats,
|
99
|
+
models: {
|
100
|
+
ChatModel
|
101
|
+
},
|
102
|
+
routes: {
|
103
|
+
chatsRoutes
|
104
|
+
},
|
105
|
+
controllers: {
|
106
|
+
ChatsController
|
107
|
+
}
|
108
|
+
};
|
109
|
+
const chats_server$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(chats_server);
|
110
|
+
module.exports = chats_server$1;
|
@@ -0,0 +1,111 @@
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
2
|
+
import "./mailing-C3VD4l0h.mjs";
|
3
|
+
import { m as middlewares } from "./index-UIHE6Rk3.mjs";
|
4
|
+
const controllerFactory$1 = (db) => {
|
5
|
+
const ChatMessage = db.ChatMessage;
|
6
|
+
const saveMessage = async (msg) => {
|
7
|
+
try {
|
8
|
+
const message = new ChatMessage(msg);
|
9
|
+
await message.save();
|
10
|
+
return message;
|
11
|
+
} catch (error) {
|
12
|
+
console.error("Error saving message to database:", error);
|
13
|
+
}
|
14
|
+
};
|
15
|
+
const getMessages = async (chatId) => {
|
16
|
+
try {
|
17
|
+
const messages = await ChatMessage.find({ chatId }).sort({ createdAt: 1 });
|
18
|
+
return messages;
|
19
|
+
} catch (error) {
|
20
|
+
console.error("Error retrieving messages from database:", error);
|
21
|
+
}
|
22
|
+
};
|
23
|
+
return {
|
24
|
+
saveMessage,
|
25
|
+
getMessages
|
26
|
+
};
|
27
|
+
};
|
28
|
+
var chats_controller = controllerFactory$1;
|
29
|
+
const controllerFactory = chats_controller;
|
30
|
+
const middlewareFactory = middlewares;
|
31
|
+
var chats_routes = function(app, db, wss) {
|
32
|
+
const controller = controllerFactory(db);
|
33
|
+
middlewareFactory(db);
|
34
|
+
wss.on("connection", (ws) => {
|
35
|
+
console.log("ws connecting...");
|
36
|
+
ws.on("message", async (message) => {
|
37
|
+
const msg = JSON.parse(message);
|
38
|
+
if (msg.type === "joinChat") {
|
39
|
+
ws.chatId = msg.chatId;
|
40
|
+
console.log(`Client joined chat: ${msg.chatId}`);
|
41
|
+
} else {
|
42
|
+
const savedMessage = await controller.saveMessage(msg);
|
43
|
+
wss.clients.forEach((client) => {
|
44
|
+
if (client.chatId && client.chatId.toString() === msg.chatId) {
|
45
|
+
client.send(JSON.stringify(savedMessage));
|
46
|
+
}
|
47
|
+
});
|
48
|
+
}
|
49
|
+
});
|
50
|
+
});
|
51
|
+
app.use(function(req, res, next) {
|
52
|
+
res.header(
|
53
|
+
"Access-Control-Allow-Headers",
|
54
|
+
"Access-Control-Allow-Origin: *",
|
55
|
+
"x-access-token, Origin, Content-Type, Accept"
|
56
|
+
);
|
57
|
+
next();
|
58
|
+
});
|
59
|
+
app.get("/messages/:chatId", async (req, res) => {
|
60
|
+
const { chatId } = req.params;
|
61
|
+
const messages = await controller.getMessages(chatId);
|
62
|
+
res.json(messages);
|
63
|
+
});
|
64
|
+
};
|
65
|
+
var chat_model = (db) => {
|
66
|
+
const ChatMessageSchema = new db.mongoose.Schema({
|
67
|
+
username: {
|
68
|
+
type: String,
|
69
|
+
required: true
|
70
|
+
},
|
71
|
+
chatId: {
|
72
|
+
type: String,
|
73
|
+
required: true
|
74
|
+
},
|
75
|
+
text: {
|
76
|
+
type: String,
|
77
|
+
required: true
|
78
|
+
},
|
79
|
+
createdAt: {
|
80
|
+
type: Date,
|
81
|
+
default: Date.now
|
82
|
+
}
|
83
|
+
});
|
84
|
+
const ChatMessage = db.mongoose.model("ChatMessage", ChatMessageSchema);
|
85
|
+
return ChatMessage;
|
86
|
+
};
|
87
|
+
const ChatsController = chats_controller;
|
88
|
+
const chatsRoutes = chats_routes;
|
89
|
+
const ChatModel = chat_model;
|
90
|
+
function initializeChats(app, db, wss, origins, publicPath) {
|
91
|
+
db.chat = ChatModel(db);
|
92
|
+
if (app) {
|
93
|
+
chatsRoutes(app, db, wss);
|
94
|
+
}
|
95
|
+
}
|
96
|
+
var chats_server = {
|
97
|
+
initialize: initializeChats,
|
98
|
+
models: {
|
99
|
+
ChatModel
|
100
|
+
},
|
101
|
+
routes: {
|
102
|
+
chatsRoutes
|
103
|
+
},
|
104
|
+
controllers: {
|
105
|
+
ChatsController
|
106
|
+
}
|
107
|
+
};
|
108
|
+
const chats_server$1 = /* @__PURE__ */ getDefaultExportFromCjs(chats_server);
|
109
|
+
export {
|
110
|
+
chats_server$1 as default
|
111
|
+
};
|
package/dist/events.server.js
CHANGED
@@ -4,7 +4,7 @@ const require$$0 = require("mongoose");
|
|
4
4
|
const queryProcessor$2 = require("./queryProcessor-CcsJEUBr.js");
|
5
5
|
const metadata_schema = require("./metadata.schema-6slGhpQS.js");
|
6
6
|
const require$$1 = require("stripe");
|
7
|
-
const tickets_controller = require("./tickets.controller-
|
7
|
+
const tickets_controller = require("./tickets.controller-A_1G-2vC.js");
|
8
8
|
const index = require("./index-CsS7qx1d.js");
|
9
9
|
const common_schema = require("./common.schema-BFhpUXUt.js");
|
10
10
|
const engagement_schema = require("./engagement.schema-D-9md46B.js");
|
package/dist/events.server.mjs
CHANGED
@@ -3,7 +3,7 @@ import require$$0 from "mongoose";
|
|
3
3
|
import { q as queryProcessor$2 } from "./queryProcessor-CU4A6Y4N.mjs";
|
4
4
|
import { s as seoFriendlyUrl, m as metadata_schema } from "./metadata.schema-CK5e2O3f.mjs";
|
5
5
|
import require$$1 from "stripe";
|
6
|
-
import { t as tickets_controller } from "./tickets.controller-
|
6
|
+
import { t as tickets_controller } from "./tickets.controller-C6UL9C5M.mjs";
|
7
7
|
import { m as middlewares } from "./index-UIHE6Rk3.mjs";
|
8
8
|
import { c as common_schema } from "./common.schema-ChBVARrs.mjs";
|
9
9
|
import { e as engagement_schema } from "./engagement.schema-CCdSLKd4.mjs";
|
package/dist/files.server.js
CHANGED
@@ -291,10 +291,19 @@ var files_routes = function(app, db, origins, publicPath) {
|
|
291
291
|
};
|
292
292
|
const filesController = files_controller;
|
293
293
|
const filesRoutes = files_routes;
|
294
|
+
function initializeFiles(app, db, origins, publicPath) {
|
295
|
+
if (app) {
|
296
|
+
filesRoutes(app, db, origins, publicPath);
|
297
|
+
}
|
298
|
+
}
|
294
299
|
var files_server = {
|
295
|
-
|
296
|
-
|
297
|
-
|
300
|
+
initialize: initializeFiles,
|
301
|
+
routes: {
|
302
|
+
filesRoutes
|
303
|
+
},
|
304
|
+
controllers: {
|
305
|
+
filesController
|
306
|
+
}
|
298
307
|
};
|
299
308
|
const files_server$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(files_server);
|
300
309
|
module.exports = files_server$1;
|
package/dist/files.server.mjs
CHANGED
@@ -290,10 +290,19 @@ var files_routes = function(app, db, origins, publicPath) {
|
|
290
290
|
};
|
291
291
|
const filesController = files_controller;
|
292
292
|
const filesRoutes = files_routes;
|
293
|
+
function initializeFiles(app, db, origins, publicPath) {
|
294
|
+
if (app) {
|
295
|
+
filesRoutes(app, db, origins, publicPath);
|
296
|
+
}
|
297
|
+
}
|
293
298
|
var files_server = {
|
294
|
-
|
295
|
-
|
296
|
-
|
299
|
+
initialize: initializeFiles,
|
300
|
+
routes: {
|
301
|
+
filesRoutes
|
302
|
+
},
|
303
|
+
controllers: {
|
304
|
+
filesController
|
305
|
+
}
|
297
306
|
};
|
298
307
|
const files_server$1 = /* @__PURE__ */ getDefaultExportFromCjs(files_server);
|
299
308
|
export {
|