@ozdao/prometheus-framework 0.1.30 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-02c9721b.mjs +304 -0
- package/dist/BackofficeGallery-1d117a40.js +1 -0
- package/dist/BackofficeReports-cb4b180d.mjs +44 -0
- package/dist/BackofficeReports-d021871f.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-505c3ca5.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs +1945 -0
- package/dist/Button-2ca405bd.js +1 -0
- package/dist/Button-c59d387c.mjs +283 -0
- package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js +1 -0
- package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs +1 -0
- package/dist/CardOrganization-18c1e3fa.mjs +297 -0
- package/dist/CardOrganization-26714a5e.mjs +297 -0
- package/dist/CardOrganization-7d679e75.js +1 -0
- package/dist/CardOrganization-88c6d479.js +1 -0
- package/dist/Chips-0e5bdd54.js +1 -0
- package/dist/Chips-2ada5eda.mjs +200 -0
- package/dist/Chips-5e32c8cb.mjs +200 -0
- package/dist/Chips-8d0a1d2c.js +1 -0
- package/dist/Dashboard-239fb7a6.mjs +52 -0
- package/dist/Dashboard-94267906.js +1 -0
- package/dist/EULA-8265b0cf.mjs +4218 -0
- package/dist/EULA-cbb27503.js +1 -0
- package/dist/Feed-275a14d8.mjs +371 -0
- package/dist/Feed-505b3fa8.mjs +383 -0
- package/dist/Feed-66095e66.js +1 -0
- package/dist/Feed-76fc4475.mjs +383 -0
- package/dist/Feed-d0da2943.js +1 -0
- package/dist/Feed-e55bc6fa.js +1 -0
- package/dist/Feed-ee36f80b.js +1 -0
- package/dist/Feed-ef6c6ca3.mjs +371 -0
- package/dist/IconEdit-1b7b5874.js +1 -0
- package/dist/IconEdit-680dc269.mjs +339 -0
- package/dist/IconEdit-c98d3d06.mjs +339 -0
- package/dist/IconEdit-e4d0cc6e.js +1 -0
- package/dist/Image-052a3cc2.mjs +480 -0
- package/dist/Image-2d2e606a.js +9 -0
- package/dist/Image-95c0fb07.mjs +480 -0
- package/dist/Image-c90ee624.js +9 -0
- package/dist/MenuItem-0b249b94.mjs +93 -0
- package/dist/MenuItem-8b70d2cf.js +1 -0
- package/dist/Product-4b58701f.js +7 -0
- package/dist/Product-6aa1c9ee.mjs +844 -0
- package/dist/Product-6ca8d04d.js +7 -0
- package/dist/Product-a6251018.mjs +844 -0
- package/dist/ProductEdit-2e309add.js +1 -0
- package/dist/ProductEdit-3ff2af92.js +1 -0
- package/dist/ProductEdit-6abcc97b.mjs +306 -0
- package/dist/ProductEdit-f901314c.mjs +306 -0
- package/dist/ProfileBlogposts-57931834.mjs +70 -0
- package/dist/ProfileBlogposts-62d5e809.mjs +70 -0
- package/dist/ProfileBlogposts-af88ce98.js +1 -0
- package/dist/ProfileBlogposts-c31917ec.js +1 -0
- package/dist/ProfileEvents-588eadf9.js +1 -0
- package/dist/ProfileEvents-89471c05.js +1 -0
- package/dist/ProfileEvents-e070d9d4.mjs +62 -0
- package/dist/ProfileEvents-ed7f9603.mjs +62 -0
- package/dist/ProfileOrganizations-7911deec.mjs +219 -0
- package/dist/ProfileOrganizations-ae258581.js +1 -0
- package/dist/ProfileOrganizations-bee6a3ae.js +1 -0
- package/dist/ProfileOrganizations-db313b5e.mjs +219 -0
- package/dist/Publics-24f055eb.js +1 -0
- package/dist/Publics-50c0ff6c.js +1 -0
- package/dist/Publics-b1cbfd97.mjs +45 -0
- package/dist/Publics-f34131bf.mjs +45 -0
- package/dist/Select-11ddabf5.mjs +79 -0
- package/dist/Select-3ca5ab39.js +1 -0
- package/dist/Socials-3fe01af1.mjs +275 -0
- package/dist/Socials-9b2d27a6.js +1 -0
- package/dist/Socials-b19d0cb1.js +1 -0
- package/dist/Socials-becde7dc.mjs +275 -0
- package/dist/addMembersQuantity-ea216f92.mjs +85 -0
- package/dist/addMembersQuantity-f922d82b.js +84 -0
- package/dist/auth-98fe3efb.mjs +612 -0
- package/dist/auth-acbe3ae1.js +7 -0
- package/dist/auth.client.cjs +7 -8
- package/dist/auth.client.js +378 -379
- package/dist/auth.validation-495e9d6d.js +1 -0
- package/dist/auth.validation-e265b496.mjs +23 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +55 -28
- package/dist/click-outside-0b0727d1.js +2 -0
- package/dist/click-outside-6101836c.mjs +19 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +121 -121
- package/dist/community.server.js +35 -5
- package/dist/community.server.mjs +35 -5
- package/dist/components/Button/Button.vue.d.ts +3 -0
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/CardHeader/CardHeader.vue.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Field/Field.vue.d.ts +1 -1
- package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
- package/dist/components/Popup/Popup.vue.d.ts +2 -1
- package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +1 -1
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Upload/Upload.vue.d.ts +1 -1
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +219 -217
- package/dist/events.server.js +1 -0
- package/dist/events.server.mjs +1 -0
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +2565 -2545
- package/dist/main.css +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/modules/backoffice/components/pages/Dashboard.vue.d.ts +6 -0
- package/dist/modules/icons/navigation/IconCross.vue.d.ts +4 -0
- package/dist/modules/legal/components/pages/legal/EULA.vue.d.ts +2 -0
- package/dist/modules/organizations/components/elements/ButtonFollow.vue.d.ts +1 -1
- package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +12 -0
- package/dist/modules/organizations/components/sections/DetailsTab.vue.d.ts +2 -58
- package/dist/modules/organizations/components/sections/Feed.vue.d.ts +1 -1
- package/dist/modules/reports/components/pages/BackofficeReports.vue.d.ts +2 -0
- package/dist/modules/reports/components/sections/FormReport.vue.d.ts +75 -0
- package/dist/modules/reports/store/reports.d.ts +41 -0
- package/dist/organizations-a241b21d.js +1 -0
- package/dist/organizations-ea9de495.mjs +122 -0
- package/dist/organizations.client-292e8444.js +3 -0
- package/dist/organizations.client-6a69b54a.js +3 -0
- package/dist/organizations.client-6fc91683.mjs +3072 -0
- package/dist/organizations.client-c288ff44.mjs +3072 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +51 -49
- package/dist/organizations.server.js +20 -28
- package/dist/organizations.server.mjs +20 -28
- package/dist/prometheus-framework.cjs.js +19 -19
- package/dist/prometheus-framework.es.js +1635 -1608
- package/dist/reports-270f69df.js +1 -0
- package/dist/reports-79cd9459.mjs +91 -0
- package/dist/reports.client.cjs +1 -0
- package/dist/reports.client.js +8 -0
- package/dist/reports.server.js +159 -0
- package/dist/reports.server.mjs +160 -0
- package/dist/states.validation-02ba0aee.js +1 -0
- package/dist/states.validation-e5f4fa3a.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +286 -242
- package/dist/users.server.js +6 -18
- package/dist/users.server.mjs +6 -18
- package/package.json +9 -1
- package/src/components/Button/Button.vue +66 -60
- package/src/components/CardHeader/CardHeader.vue +51 -50
- package/src/components/Dropdown/Dropdown.vue +28 -12
- package/src/components/FieldPhone/click-outside.js +0 -48
- package/src/components/Popup/Popup.vue +74 -23
- package/src/components/Select/Select.vue +10 -6
- package/src/main.ts +1 -1
- package/src/modules/auth/components/pages/EnterPassword.vue +6 -0
- package/src/modules/auth/store/auth.js +1 -1
- package/src/modules/backoffice/components/layouts/Backoffice.vue +3 -3
- package/src/modules/backoffice/components/pages/Dashboard.vue +62 -0
- package/src/modules/backoffice/router/backoffice.js +26 -0
- package/src/modules/community/components/blocks/CardBlogpost.vue +3 -0
- package/src/modules/community/components/layouts/Community.vue +4 -4
- package/src/modules/community/components/pages/CreateBlogPost.vue +27 -28
- package/src/modules/community/components/sections/Comments.vue +4 -2
- package/src/modules/community/components/sections/Feed.vue +1 -1
- package/src/modules/community/controllers/blog.controller.js +22 -3
- package/src/modules/community/controllers/comments.controller.js +23 -5
- package/src/modules/events/components/blocks/CardEvent.vue +4 -0
- package/src/modules/events/components/pages/EditEvent.vue +27 -28
- package/src/modules/events/components/sections/Feed.vue +1 -1
- package/src/modules/events/controllers/events.controller.js +3 -0
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +7 -23
- package/src/modules/icons/navigation/IconCross.vue +22 -0
- package/src/modules/legal/components/pages/Legal.vue +3 -0
- package/src/modules/legal/components/pages/legal/EULA.vue +2148 -0
- package/src/modules/legal/router/legal.js +11 -4
- package/src/modules/middlewares/client/auth.validation.js +14 -0
- package/src/modules/mobile/components/Menu/Menu.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/elements/ButtonFollow.vue +9 -7
- package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +101 -0
- package/src/modules/organizations/components/pages/Organization.vue +1 -34
- package/src/modules/organizations/components/sections/DetailsTab.vue +86 -8
- package/src/modules/organizations/controllers/memberships.controller.js +10 -7
- package/src/modules/organizations/controllers/organizations.controller.js +9 -20
- package/src/modules/organizations/controllers/utils/addMembersQuantity.js +21 -0
- package/src/modules/organizations/controllers/utils/addUserStatusFields.js +65 -0
- package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +18 -0
- package/src/modules/organizations/models/membership.model.js +5 -5
- package/src/modules/organizations/store/memberships.js +6 -6
- package/src/modules/organizations/store/organizations.js +0 -1
- package/src/modules/products/products.server.js +5 -0
- package/src/modules/reports/components/pages/BackofficeReports.vue +67 -0
- package/src/modules/reports/components/sections/FormReport.vue +116 -0
- package/src/modules/reports/controllers/reports.controller.js +67 -0
- package/src/modules/reports/models/report.model.js +58 -0
- package/src/modules/reports/reports.client.js +17 -0
- package/src/modules/reports/reports.server.js +13 -0
- package/src/modules/reports/routes/reports.routes.js +43 -0
- package/src/modules/reports/store/reports.js +118 -0
- package/src/modules/users/components/pages/Profile.vue +57 -10
- package/src/modules/users/controllers/users.controller.js +6 -19
- package/src/styles/base/all.scss +2 -0
- package/src/styles/layout.scss +39 -63
- package/src/styles/theme.scss +0 -1
- package/src/styles/components/popup.scss +0 -55
@@ -0,0 +1,85 @@
|
|
1
|
+
import require$$0 from "mongodb";
|
2
|
+
const { ObjectId } = require$$0;
|
3
|
+
const addUserStatusFields = (user) => {
|
4
|
+
return {
|
5
|
+
$addFields: {
|
6
|
+
isSubscriber: {
|
7
|
+
$cond: {
|
8
|
+
if: {
|
9
|
+
$and: [
|
10
|
+
user,
|
11
|
+
{
|
12
|
+
$in: [new ObjectId(user), "$memberships.user"]
|
13
|
+
},
|
14
|
+
{
|
15
|
+
$in: ["subscriber", "$memberships.role"]
|
16
|
+
}
|
17
|
+
]
|
18
|
+
},
|
19
|
+
then: true,
|
20
|
+
else: false
|
21
|
+
}
|
22
|
+
},
|
23
|
+
isMember: {
|
24
|
+
$cond: {
|
25
|
+
if: {
|
26
|
+
$and: [
|
27
|
+
user,
|
28
|
+
{
|
29
|
+
$in: [new ObjectId(user), "$memberships.user"]
|
30
|
+
},
|
31
|
+
{
|
32
|
+
$not: [
|
33
|
+
{
|
34
|
+
$in: ["$memberships.role", ["subscriber", "blocked"]]
|
35
|
+
}
|
36
|
+
]
|
37
|
+
}
|
38
|
+
]
|
39
|
+
},
|
40
|
+
then: true,
|
41
|
+
else: false
|
42
|
+
}
|
43
|
+
},
|
44
|
+
isBlocked: {
|
45
|
+
$cond: {
|
46
|
+
if: {
|
47
|
+
$and: [
|
48
|
+
user,
|
49
|
+
{
|
50
|
+
$in: [new ObjectId(user), "$memberships.user"]
|
51
|
+
},
|
52
|
+
{
|
53
|
+
$in: ["blocked", "$memberships.role"]
|
54
|
+
}
|
55
|
+
]
|
56
|
+
},
|
57
|
+
then: true,
|
58
|
+
else: false
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
};
|
63
|
+
};
|
64
|
+
var addUserStatusFields_1 = addUserStatusFields;
|
65
|
+
const addMembersQuantity = (user) => {
|
66
|
+
return {
|
67
|
+
$addFields: {
|
68
|
+
numberOfSubscribers: {
|
69
|
+
$size: {
|
70
|
+
$filter: {
|
71
|
+
input: "$memberships",
|
72
|
+
as: "membership",
|
73
|
+
cond: { $eq: ["$$membership.role", "subscriber"] }
|
74
|
+
// здесь мы проверяем, что роль должна быть "subscriber"
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
};
|
80
|
+
};
|
81
|
+
var addMembersQuantity_1 = addMembersQuantity;
|
82
|
+
export {
|
83
|
+
addUserStatusFields_1 as a,
|
84
|
+
addMembersQuantity_1 as b
|
85
|
+
};
|
@@ -0,0 +1,84 @@
|
|
1
|
+
"use strict";
|
2
|
+
const require$$0 = require("mongodb");
|
3
|
+
const { ObjectId } = require$$0;
|
4
|
+
const addUserStatusFields = (user) => {
|
5
|
+
return {
|
6
|
+
$addFields: {
|
7
|
+
isSubscriber: {
|
8
|
+
$cond: {
|
9
|
+
if: {
|
10
|
+
$and: [
|
11
|
+
user,
|
12
|
+
{
|
13
|
+
$in: [new ObjectId(user), "$memberships.user"]
|
14
|
+
},
|
15
|
+
{
|
16
|
+
$in: ["subscriber", "$memberships.role"]
|
17
|
+
}
|
18
|
+
]
|
19
|
+
},
|
20
|
+
then: true,
|
21
|
+
else: false
|
22
|
+
}
|
23
|
+
},
|
24
|
+
isMember: {
|
25
|
+
$cond: {
|
26
|
+
if: {
|
27
|
+
$and: [
|
28
|
+
user,
|
29
|
+
{
|
30
|
+
$in: [new ObjectId(user), "$memberships.user"]
|
31
|
+
},
|
32
|
+
{
|
33
|
+
$not: [
|
34
|
+
{
|
35
|
+
$in: ["$memberships.role", ["subscriber", "blocked"]]
|
36
|
+
}
|
37
|
+
]
|
38
|
+
}
|
39
|
+
]
|
40
|
+
},
|
41
|
+
then: true,
|
42
|
+
else: false
|
43
|
+
}
|
44
|
+
},
|
45
|
+
isBlocked: {
|
46
|
+
$cond: {
|
47
|
+
if: {
|
48
|
+
$and: [
|
49
|
+
user,
|
50
|
+
{
|
51
|
+
$in: [new ObjectId(user), "$memberships.user"]
|
52
|
+
},
|
53
|
+
{
|
54
|
+
$in: ["blocked", "$memberships.role"]
|
55
|
+
}
|
56
|
+
]
|
57
|
+
},
|
58
|
+
then: true,
|
59
|
+
else: false
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
};
|
64
|
+
};
|
65
|
+
var addUserStatusFields_1 = addUserStatusFields;
|
66
|
+
const addMembersQuantity = (user) => {
|
67
|
+
return {
|
68
|
+
$addFields: {
|
69
|
+
numberOfSubscribers: {
|
70
|
+
$size: {
|
71
|
+
$filter: {
|
72
|
+
input: "$memberships",
|
73
|
+
as: "membership",
|
74
|
+
cond: { $eq: ["$$membership.role", "subscriber"] }
|
75
|
+
// здесь мы проверяем, что роль должна быть "subscriber"
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
};
|
81
|
+
};
|
82
|
+
var addMembersQuantity_1 = addMembersQuantity;
|
83
|
+
exports.addMembersQuantity_1 = addMembersQuantity_1;
|
84
|
+
exports.addUserStatusFields_1 = addUserStatusFields_1;
|