@ozdao/prometheus-framework 0.2.86 → 0.2.88
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +0 -16
- package/dist/auth.server.mjs +0 -16
- package/dist/community.server.js +0 -24
- package/dist/community.server.mjs +0 -24
- package/dist/events.server.js +0 -16
- package/dist/events.server.mjs +0 -16
- package/dist/files.server.js +0 -8
- package/dist/files.server.mjs +0 -8
- package/dist/gallery.server.js +0 -8
- package/dist/gallery.server.mjs +0 -8
- package/dist/main-Bw0PvTs-.mjs +13616 -0
- package/dist/main-D8gNZLSa.js +92 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -1
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +180 -180
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -1
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +5 -5
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_u64.js +16 -61
- package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.cjs +1 -1
- package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.js +9 -10
- package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs +1 -1
- package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +1 -1
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +9 -9
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +33 -33
- package/dist/node_modules/web3-eth-abi/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/utils.js +24 -24
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +30 -30
- package/dist/node_modules/web3-validator/lib/esm/validation/string.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/string.js +9 -9
- package/dist/organizations.server.js +0 -32
- package/dist/organizations.server.mjs +0 -32
- package/dist/products.server.js +0 -20
- package/dist/products.server.mjs +0 -20
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +3046 -2899
- package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/axios.js +1 -2
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +1 -2
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +18 -19
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -2
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +66 -67
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +38 -39
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +1 -2
- package/dist/prometheus-framework/node_modules/date-fns/eachDayOfInterval.cjs +1 -1
- package/dist/prometheus-framework/node_modules/date-fns/eachDayOfInterval.js +13 -16
- package/dist/prometheus-framework/node_modules/date-fns/eachQuarterOfInterval.cjs +1 -1
- package/dist/prometheus-framework/node_modules/date-fns/eachQuarterOfInterval.js +13 -16
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/ParseError.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/ParseError.js +45 -51
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/PhoneNumber.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/PhoneNumber.js +56 -56
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/format.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/format.js +14 -14
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +8 -16
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +4 -6
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +5 -9
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +4 -4
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +35 -35
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.js +13 -13
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +9 -16
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -73
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +73 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -103
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +29 -29
- 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 +31 -31
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +15 -14
- 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 +1 -1
- 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/constructor/components/elements/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +10 -10
- 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 +15 -15
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -5
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +20 -20
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
- 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 +19 -19
- 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/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.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/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- 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 +20 -20
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- 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/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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- 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/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/reports.server.js +0 -8
- package/dist/reports.server.mjs +0 -8
- package/dist/style.css +1 -1
- package/dist/users.server.js +0 -8
- package/dist/users.server.mjs +0 -8
- package/dist/wallet.server.js +0 -4
- package/dist/wallet.server.mjs +0 -4
- package/dist/web-CciQvENI.js +1 -0
- package/dist/web-nVxTNRH4.mjs +54 -0
- package/package.json +1 -1
- package/src/modules/auth/routes/auth.routes.js +2 -2
- package/src/modules/organizations/routes/memberships.routes.js +0 -1
package/dist/auth.server.js
CHANGED
@@ -262,14 +262,6 @@ var auth_routes = function(app, db, origins) {
|
|
262
262
|
const controller = controllerFactory$1(db);
|
263
263
|
const controllerTwofa = controllerFactoryTwofa();
|
264
264
|
const { verifySignUp, verifyUser } = middlewareFactory$1(db);
|
265
|
-
app.use(function(req, res, next) {
|
266
|
-
const origin = req.headers.origin;
|
267
|
-
if (origins.includes(origin)) {
|
268
|
-
res.setHeader("Access-Control-Allow-Origin", origin);
|
269
|
-
}
|
270
|
-
res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
|
271
|
-
next();
|
272
|
-
});
|
273
265
|
app.post(
|
274
266
|
"/api/auth/signup",
|
275
267
|
[
|
@@ -299,14 +291,6 @@ const middlewareFactory = index.server;
|
|
299
291
|
var twofa_routes = function(app, db) {
|
300
292
|
const controller = controllerFactory();
|
301
293
|
const { verifySignUp, verifyUser } = middlewareFactory(db);
|
302
|
-
app.use(function(req, res, next) {
|
303
|
-
res.header(
|
304
|
-
"Access-Control-Allow-Headers",
|
305
|
-
"Access-Control-Allow-Origin",
|
306
|
-
"x-access-token, Origin, Content-Type, Accept"
|
307
|
-
);
|
308
|
-
next();
|
309
|
-
});
|
310
294
|
app.post(
|
311
295
|
"/api/twofa/sendcode",
|
312
296
|
[
|
package/dist/auth.server.mjs
CHANGED
@@ -261,14 +261,6 @@ var auth_routes = function(app, db, origins) {
|
|
261
261
|
const controller = controllerFactory$1(db);
|
262
262
|
const controllerTwofa = controllerFactoryTwofa();
|
263
263
|
const { verifySignUp, verifyUser } = middlewareFactory$1(db);
|
264
|
-
app.use(function(req, res, next) {
|
265
|
-
const origin = req.headers.origin;
|
266
|
-
if (origins.includes(origin)) {
|
267
|
-
res.setHeader("Access-Control-Allow-Origin", origin);
|
268
|
-
}
|
269
|
-
res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
|
270
|
-
next();
|
271
|
-
});
|
272
264
|
app.post(
|
273
265
|
"/api/auth/signup",
|
274
266
|
[
|
@@ -298,14 +290,6 @@ const middlewareFactory = server;
|
|
298
290
|
var twofa_routes = function(app, db) {
|
299
291
|
const controller = controllerFactory();
|
300
292
|
const { verifySignUp, verifyUser } = middlewareFactory(db);
|
301
|
-
app.use(function(req, res, next) {
|
302
|
-
res.header(
|
303
|
-
"Access-Control-Allow-Headers",
|
304
|
-
"Access-Control-Allow-Origin",
|
305
|
-
"x-access-token, Origin, Content-Type, Accept"
|
306
|
-
);
|
307
|
-
next();
|
308
|
-
});
|
309
293
|
app.post(
|
310
294
|
"/api/twofa/sendcode",
|
311
295
|
[
|
package/dist/community.server.js
CHANGED
@@ -529,14 +529,6 @@ var blog_routes = function(app, db, origins) {
|
|
529
529
|
const controller = controllerFactory$2(db);
|
530
530
|
middlewareFactoryGlobal(db);
|
531
531
|
const { verifyBlogpost: verifyBlogpost2 } = middlewareFactoryCommunity(db);
|
532
|
-
app.use(function(req, res, next) {
|
533
|
-
const origin = req.headers.origin;
|
534
|
-
if (origins.includes(origin)) {
|
535
|
-
res.setHeader("Access-Control-Allow-Origin", origin);
|
536
|
-
}
|
537
|
-
res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
|
538
|
-
next();
|
539
|
-
});
|
540
532
|
app.get(
|
541
533
|
"/api/blog/read",
|
542
534
|
controller.read
|
@@ -565,14 +557,6 @@ var blog_routes = function(app, db, origins) {
|
|
565
557
|
const controllerFactory$1 = comments_controller;
|
566
558
|
var comments_routes = function(app, db) {
|
567
559
|
const controller = controllerFactory$1(db);
|
568
|
-
app.use(function(req, res, next) {
|
569
|
-
res.header(
|
570
|
-
"Access-Control-Allow-Headers",
|
571
|
-
"Access-Control-Allow-Origin",
|
572
|
-
"x-access-token, Origin, Content-Type, Accept"
|
573
|
-
);
|
574
|
-
next();
|
575
|
-
});
|
576
560
|
app.get(
|
577
561
|
"/comments/read",
|
578
562
|
controller.read
|
@@ -593,14 +577,6 @@ var comments_routes = function(app, db) {
|
|
593
577
|
const controllerFactory = reactions_controller;
|
594
578
|
var reactions_routes = function(app, db) {
|
595
579
|
const controller = controllerFactory(db);
|
596
|
-
app.use(function(req, res, next) {
|
597
|
-
res.header(
|
598
|
-
"Access-Control-Allow-Headers",
|
599
|
-
"Access-Control-Allow-Origin",
|
600
|
-
"x-access-token, Origin, Content-Type, Accept"
|
601
|
-
);
|
602
|
-
next();
|
603
|
-
});
|
604
580
|
app.get(
|
605
581
|
"/api/reactions/read",
|
606
582
|
controller.read
|
@@ -528,14 +528,6 @@ var blog_routes = function(app, db, origins) {
|
|
528
528
|
const controller = controllerFactory$2(db);
|
529
529
|
middlewareFactoryGlobal(db);
|
530
530
|
const { verifyBlogpost: verifyBlogpost2 } = middlewareFactoryCommunity(db);
|
531
|
-
app.use(function(req, res, next) {
|
532
|
-
const origin = req.headers.origin;
|
533
|
-
if (origins.includes(origin)) {
|
534
|
-
res.setHeader("Access-Control-Allow-Origin", origin);
|
535
|
-
}
|
536
|
-
res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
|
537
|
-
next();
|
538
|
-
});
|
539
531
|
app.get(
|
540
532
|
"/api/blog/read",
|
541
533
|
controller.read
|
@@ -564,14 +556,6 @@ var blog_routes = function(app, db, origins) {
|
|
564
556
|
const controllerFactory$1 = comments_controller;
|
565
557
|
var comments_routes = function(app, db) {
|
566
558
|
const controller = controllerFactory$1(db);
|
567
|
-
app.use(function(req, res, next) {
|
568
|
-
res.header(
|
569
|
-
"Access-Control-Allow-Headers",
|
570
|
-
"Access-Control-Allow-Origin",
|
571
|
-
"x-access-token, Origin, Content-Type, Accept"
|
572
|
-
);
|
573
|
-
next();
|
574
|
-
});
|
575
559
|
app.get(
|
576
560
|
"/comments/read",
|
577
561
|
controller.read
|
@@ -592,14 +576,6 @@ var comments_routes = function(app, db) {
|
|
592
576
|
const controllerFactory = reactions_controller;
|
593
577
|
var reactions_routes = function(app, db) {
|
594
578
|
const controller = controllerFactory(db);
|
595
|
-
app.use(function(req, res, next) {
|
596
|
-
res.header(
|
597
|
-
"Access-Control-Allow-Headers",
|
598
|
-
"Access-Control-Allow-Origin",
|
599
|
-
"x-access-token, Origin, Content-Type, Accept"
|
600
|
-
);
|
601
|
-
next();
|
602
|
-
});
|
603
579
|
app.get(
|
604
580
|
"/api/reactions/read",
|
605
581
|
controller.read
|
package/dist/events.server.js
CHANGED
@@ -636,14 +636,6 @@ var events_routes = function(app, db, origins) {
|
|
636
636
|
const controller = controllerFactory$1(db);
|
637
637
|
middlewareFactoryGlobal(db);
|
638
638
|
const { verifyEvent: verifyEvent2 } = middlewareFactoryEvents(db);
|
639
|
-
app.use(function(req, res, next) {
|
640
|
-
const origin = req.headers.origin;
|
641
|
-
if (origins.includes(origin)) {
|
642
|
-
res.setHeader("Access-Control-Allow-Origin", origin);
|
643
|
-
}
|
644
|
-
res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
|
645
|
-
next();
|
646
|
-
});
|
647
639
|
app.get(
|
648
640
|
"/api/events/read",
|
649
641
|
controller.read
|
@@ -673,14 +665,6 @@ const events_routes$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs
|
|
673
665
|
const controllerFactory = tickets_controller.tickets_controller;
|
674
666
|
var tickets_routes = function(app, db, origins, publicPath) {
|
675
667
|
const controller = controllerFactory(db, publicPath);
|
676
|
-
app.use(function(req, res, next) {
|
677
|
-
const origin = req.headers.origin;
|
678
|
-
if (origins.includes(origin)) {
|
679
|
-
res.setHeader("Access-Control-Allow-Origin", origin);
|
680
|
-
}
|
681
|
-
res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
|
682
|
-
next();
|
683
|
-
});
|
684
668
|
app.get(
|
685
669
|
"/api/tickets",
|
686
670
|
controller.read
|
package/dist/events.server.mjs
CHANGED
@@ -634,14 +634,6 @@ var events_routes = function(app, db, origins) {
|
|
634
634
|
const controller = controllerFactory$1(db);
|
635
635
|
middlewareFactoryGlobal(db);
|
636
636
|
const { verifyEvent: verifyEvent2 } = middlewareFactoryEvents(db);
|
637
|
-
app.use(function(req, res, next) {
|
638
|
-
const origin = req.headers.origin;
|
639
|
-
if (origins.includes(origin)) {
|
640
|
-
res.setHeader("Access-Control-Allow-Origin", origin);
|
641
|
-
}
|
642
|
-
res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
|
643
|
-
next();
|
644
|
-
});
|
645
637
|
app.get(
|
646
638
|
"/api/events/read",
|
647
639
|
controller.read
|
@@ -671,14 +663,6 @@ const events_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(events_routes);
|
|
671
663
|
const controllerFactory = tickets_controller;
|
672
664
|
var tickets_routes = function(app, db, origins, publicPath) {
|
673
665
|
const controller = controllerFactory(db, publicPath);
|
674
|
-
app.use(function(req, res, next) {
|
675
|
-
const origin = req.headers.origin;
|
676
|
-
if (origins.includes(origin)) {
|
677
|
-
res.setHeader("Access-Control-Allow-Origin", origin);
|
678
|
-
}
|
679
|
-
res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
|
680
|
-
next();
|
681
|
-
});
|
682
666
|
app.get(
|
683
667
|
"/api/tickets",
|
684
668
|
controller.read
|
package/dist/files.server.js
CHANGED
@@ -180,14 +180,6 @@ var files_routes = function(app, db, origins, publicPath) {
|
|
180
180
|
const controller = controllerFactory(db, publicPath);
|
181
181
|
middlewareFactoryGlobal(db);
|
182
182
|
const { middlewareBusboy: middlewareBusboy2 } = middlewareFactoryFiles(db, publicPath);
|
183
|
-
app.use(function(req, res, next) {
|
184
|
-
const origin = req.headers.origin;
|
185
|
-
if (origins.includes(origin)) {
|
186
|
-
res.setHeader("Access-Control-Allow-Origin", origin);
|
187
|
-
}
|
188
|
-
res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
|
189
|
-
next();
|
190
|
-
});
|
191
183
|
app.post(
|
192
184
|
"/api/upload/image",
|
193
185
|
[
|
package/dist/files.server.mjs
CHANGED
@@ -179,14 +179,6 @@ var files_routes = function(app, db, origins, publicPath) {
|
|
179
179
|
const controller = controllerFactory(db, publicPath);
|
180
180
|
middlewareFactoryGlobal(db);
|
181
181
|
const { middlewareBusboy: middlewareBusboy2 } = middlewareFactoryFiles(db, publicPath);
|
182
|
-
app.use(function(req, res, next) {
|
183
|
-
const origin = req.headers.origin;
|
184
|
-
if (origins.includes(origin)) {
|
185
|
-
res.setHeader("Access-Control-Allow-Origin", origin);
|
186
|
-
}
|
187
|
-
res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
|
188
|
-
next();
|
189
|
-
});
|
190
182
|
app.post(
|
191
183
|
"/api/upload/image",
|
192
184
|
[
|
package/dist/gallery.server.js
CHANGED
@@ -90,14 +90,6 @@ const middlewareFactoryGlobal = index.server;
|
|
90
90
|
var gallery_routes = function(app, db, origins) {
|
91
91
|
const controller = controllerFactory(db);
|
92
92
|
const { authJwt } = middlewareFactoryGlobal(db);
|
93
|
-
app.use(function(req, res, next) {
|
94
|
-
const origin = req.headers.origin;
|
95
|
-
if (origins.includes(origin)) {
|
96
|
-
res.setHeader("Access-Control-Allow-Origin", origin);
|
97
|
-
}
|
98
|
-
res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
|
99
|
-
next();
|
100
|
-
});
|
101
93
|
app.get(
|
102
94
|
"/api/gallery",
|
103
95
|
controller.read
|
package/dist/gallery.server.mjs
CHANGED
@@ -89,14 +89,6 @@ const middlewareFactoryGlobal = server;
|
|
89
89
|
var gallery_routes = function(app, db, origins) {
|
90
90
|
const controller = controllerFactory(db);
|
91
91
|
const { authJwt } = middlewareFactoryGlobal(db);
|
92
|
-
app.use(function(req, res, next) {
|
93
|
-
const origin = req.headers.origin;
|
94
|
-
if (origins.includes(origin)) {
|
95
|
-
res.setHeader("Access-Control-Allow-Origin", origin);
|
96
|
-
}
|
97
|
-
res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
|
98
|
-
next();
|
99
|
-
});
|
100
92
|
app.get(
|
101
93
|
"/api/gallery",
|
102
94
|
controller.read
|