@ozdao/prometheus-framework 0.2.130 → 0.2.133
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +0 -1
- package/dist/auth.server.mjs +0 -1
- package/dist/community.server.js +172 -31
- package/dist/community.server.mjs +172 -31
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +38 -4
- package/dist/files.server.mjs +38 -4
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/main-CI9l9xMs.js +92 -0
- package/dist/main-DPg58GOU.mjs +14509 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +4 -3
- package/dist/organizations.server.mjs +4 -3
- package/dist/products.server.js +2 -1
- package/dist/products.server.mjs +2 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +12 -13
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +14 -15
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +54 -71
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
- 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 +86 -76
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
- 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 +71 -80
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
- 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 +27 -28
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
- 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 +119 -112
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
- 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/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- 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 +22 -22
- 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 +27 -27
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +39 -38
- 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 +1 -1
- 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 +2 -2
- 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 +112 -85
- 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 +36 -35
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +8 -8
- 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/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/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
- 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 +12 -12
- 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 +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/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +29 -29
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +53 -35
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
- 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 +154 -77
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +14 -14
- package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
- package/dist/queryProcessor-iewDZq_f.js +178 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +80 -27
- package/dist/wallet.server.mjs +80 -27
- package/dist/web-DZUec7pP.js +1 -0
- package/dist/web-krQQeSb6.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/Chips/Chips.vue +1 -1
- package/src/components/Completion/Completion.vue +1 -4
- package/src/components/DatePicker/Calendar.vue +1 -1
- package/src/components/Draggable/Draggable.vue +113 -0
- package/src/components/Dropdown/Dropdown.vue +1 -1
- package/src/components/Feed/Feed.vue +18 -12
- package/src/components/FieldBig/FieldBig.vue +11 -1
- package/src/components/FieldPhone/FieldPhone.vue +1 -1
- package/src/components/FieldTags/FieldTags.vue +2 -1
- package/src/components/FieldTags/tag-input.vue +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/components/Shader/Shader.vue +2 -2
- package/src/components/Slider/Slider.vue +1 -5
- package/src/components/Spoiler/Spoiler.vue +1 -1
- package/src/components/Text/Text.vue +1 -4
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/Upload/Upload.vue +5 -3
- package/src/modules/auth/controllers/auth.controller.js +0 -2
- package/src/modules/auth/store/auth.js +2 -2
- package/src/modules/community/DOCUMENTATION.MD +4 -0
- package/src/modules/community/community.client.js +0 -2
- package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
- package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
- package/src/modules/community/components/layouts/Community.vue +15 -11
- package/src/modules/community/components/pages/Blog.vue +25 -32
- package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
- package/src/modules/community/components/sections/Comment.vue +123 -0
- package/src/modules/community/components/sections/Comments.vue +90 -19
- package/src/modules/community/components/sections/HotPosts.vue +3 -6
- package/src/modules/community/controllers/blog.controller.js +1 -1
- package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
- package/src/modules/community/controllers/comments.controller.js +187 -38
- package/src/modules/community/controllers/comments.controller.populate.js +180 -0
- package/src/modules/community/models/comment.model.js +15 -0
- package/src/modules/community/store/blogposts.js +20 -2
- package/src/modules/constructor/components/elements/Audio.vue +28 -40
- package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
- package/src/modules/constructor/components/elements/Video.vue +10 -18
- package/src/modules/constructor/components/sections/Constructor.vue +54 -47
- package/src/modules/files/controllers/files.controller.js +2 -0
- package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
- package/src/modules/files/routes/files.routes.js +8 -0
- package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
- package/src/modules/globals/components/partials/Header.vue +12 -7
- package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
- package/src/modules/icons/logos/Logotype.vue +8 -6
- package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
- package/src/modules/marketplace/store/marketplace.js +2 -8
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +33 -5
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
- package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
- package/src/modules/organizations/components/sections/Publics.vue +2 -2
- package/src/modules/organizations/controllers/memberships.controller.js +2 -3
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/store/memberships.js +4 -1
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
- package/src/modules/products/models/product.model.js +2 -1
- package/src/modules/spots/components/layouts/Spots.vue +0 -3
- package/src/modules/spots/components/pages/Map.vue +13 -3
- package/src/modules/users/components/blocks/CardUser.vue +2 -2
- package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
- package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
- package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
- package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
- package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
- package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
- package/src/modules/wallet/localization/Wallet.json +22 -0
- package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
- package/src/styles/base/all.scss +16 -26
- package/src/styles/config.scss +70 -34
- package/src/styles/typography.scss +5 -5
- package/src/modules/community/components/sections/Feed.vue +0 -148
- package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
- package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
@@ -26,16 +26,16 @@
|
|
26
26
|
</FormReport>
|
27
27
|
|
28
28
|
<ButtonToggleMembership
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
29
|
+
v-if="user._id && user._id !== organization.owner"
|
30
|
+
:user="user._id"
|
31
|
+
:type="'organization'"
|
32
|
+
:role="'blocked'"
|
33
|
+
:target="organization._id"
|
34
|
+
:status="organization.isBlocked"
|
35
|
+
:text="{create: 'Block', remove: 'Unblock'}"
|
36
|
+
@updateMembership="event => handleMembershipUpdate(event, 'isBlocked')"
|
37
|
+
class="t-white w-100 mn-t-thin bg-red"
|
38
|
+
/>
|
39
39
|
</section>
|
40
40
|
</Dropdown>
|
41
41
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
:key="organization._id"
|
15
15
|
:organization="organization"
|
16
16
|
:user="auth.state.user"
|
17
|
-
@updateMembership="handleMembershipUpdate"
|
17
|
+
@updateMembership="event => handleMembershipUpdate(event, 'isSubscriber', 'numberOfSubscribers')"
|
18
18
|
class="w-max-20r radius-big"
|
19
19
|
/>
|
20
20
|
</div>
|
@@ -42,7 +42,7 @@
|
|
42
42
|
|
43
43
|
// Methods
|
44
44
|
const handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {
|
45
|
-
memberships.mutations.handleMembershipUpdate(
|
45
|
+
memberships.mutations.handleMembershipUpdate(publics.value, membership, status, target, statusName, statusNumber)
|
46
46
|
};
|
47
47
|
</script>
|
48
48
|
|
@@ -107,15 +107,14 @@ const controllerFactory = (db) => {
|
|
107
107
|
};
|
108
108
|
|
109
109
|
const deleteMembership = async (req, res) => {
|
110
|
-
|
110
|
+
const { _id, type, target, user, role } = req.body;
|
111
111
|
|
112
112
|
|
113
113
|
console.log(req.body)
|
114
114
|
|
115
115
|
try {
|
116
116
|
// const membership = await Membership.findOne({ type, target, user, role });
|
117
|
-
const membership = await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id)})
|
118
|
-
// const membership = await Membership.findOne({ type, target, user, role });
|
117
|
+
const membership = _id ? await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id)}) : await Membership.findOne({ type, target, user, role })
|
119
118
|
|
120
119
|
if (!membership) {
|
121
120
|
return res.status(404).send({ errorCode: 'MEMBERSHIP_NOT_FOUND' });
|
@@ -26,8 +26,8 @@ const controllerFactory = (db) => {
|
|
26
26
|
|
27
27
|
const sort = {
|
28
28
|
...(sortParam === 'distance' ? { 'distanceExist': -1 } : {}),
|
29
|
-
'numberOfProducts': -1,
|
30
29
|
[sortParam]: sortOrder === 'desc' ? -1 : 1,
|
30
|
+
'numberOfProducts': -1,
|
31
31
|
"_id": 1
|
32
32
|
};
|
33
33
|
console.log(sort)
|
@@ -55,7 +55,7 @@ const actions = {
|
|
55
55
|
},
|
56
56
|
async delete(membership) {
|
57
57
|
try {
|
58
|
-
const response = await $axios.post(`/api/memberships/delete`,
|
58
|
+
const response = await $axios.post(`/api/memberships/delete`, membership);
|
59
59
|
state.error = null;
|
60
60
|
return Promise.resolve(response.data);
|
61
61
|
} catch (error) {
|
@@ -69,6 +69,9 @@ const mutations = {
|
|
69
69
|
handleMembershipUpdate(data, membership, status, target, statusName, statusNumber) {
|
70
70
|
let entity;
|
71
71
|
|
72
|
+
console.log('public is', data)
|
73
|
+
console.log('isArray', (Array.isArray(data)))
|
74
|
+
|
72
75
|
if (Array.isArray(data)) {
|
73
76
|
// Если data - это массив, ищем в нем сущность
|
74
77
|
entity = data.find(o => o._id === membership.target);
|
@@ -50,7 +50,7 @@
|
|
50
50
|
<!-- Image Wrappers -->
|
51
51
|
<img
|
52
52
|
v-if="product.images[0]"
|
53
|
-
:src="(FILE_SERVER_URL || '') + product.images[0]"
|
53
|
+
:src="(FILE_SERVER_URL || '') + product.images[0].split('/').slice(0, -1).join('/') + '/thumbnail_' + product.images[0].split('/').pop()"
|
54
54
|
class="pos-absolute object-fit-cover h-max-100 w-100"
|
55
55
|
>
|
56
56
|
|
@@ -2,6 +2,7 @@
|
|
2
2
|
import { ref, onMounted } from 'vue'
|
3
3
|
|
4
4
|
import FieldBig from "@pf/src/components/FieldBig/FieldBig.vue";
|
5
|
+
import Shader from "@pf/src/components/Shader/Shader.vue";
|
5
6
|
|
6
7
|
import { useRouter } from 'vue-router'
|
7
8
|
import { useI18n } from 'vue-i18n'
|
@@ -30,7 +31,7 @@
|
|
30
31
|
"euphoric": "euphoric"
|
31
32
|
},
|
32
33
|
"placeholder": "Tell us what you're after...",
|
33
|
-
"action": "Transmit
|
34
|
+
"action": "Transmit"
|
34
35
|
},
|
35
36
|
"ru": {
|
36
37
|
"title": "Персональный Накур,<br><b class='t-main'>Напрямую от AI</b>",
|
@@ -50,7 +51,7 @@
|
|
50
51
|
},
|
51
52
|
"subdescription": "Или выберите тег, и наш AI направит тебя к самым крутым вариантам:",
|
52
53
|
"placeholder": "Опиши свой желаемый хай, bro...",
|
53
|
-
"action": "
|
54
|
+
"action": "Передать"
|
54
55
|
}
|
55
56
|
}
|
56
57
|
}
|
@@ -94,7 +95,7 @@
|
|
94
95
|
:action="t('action')"
|
95
96
|
@update:input="mood = $event"
|
96
97
|
@action="router.push({name: 'Product Recommmendation', query: {mood: mood}})"
|
97
|
-
class="mn-b-big pd-big bg-
|
98
|
+
class="mn-b-big pd-big bg-dark-transp-50 bg-blur-thin w-100 w-max-40r"
|
98
99
|
/>
|
99
100
|
|
100
101
|
<p
|
@@ -104,7 +105,7 @@
|
|
104
105
|
|
105
106
|
<div style="max-width: 50rem;" class="w-100 h-max gap-thin cols-6">
|
106
107
|
|
107
|
-
<
|
108
|
+
<button
|
108
109
|
v-for="(preset,index) in presets"
|
109
110
|
:key="preset"
|
110
111
|
@click.stop="router.push({name: 'Product Recommmendation', query: {mood: preset}})"
|
@@ -116,7 +117,7 @@
|
|
116
117
|
flex-column
|
117
118
|
flex-nowrap
|
118
119
|
flex
|
119
|
-
bg-
|
120
|
+
bg-dark-transp-50
|
120
121
|
bg-blur-thin
|
121
122
|
radius-semi
|
122
123
|
cursor-pointer
|
@@ -132,15 +133,17 @@
|
|
132
133
|
<span class="t-white">
|
133
134
|
{{ t(`presets.` + preset) }}
|
134
135
|
</span>
|
135
|
-
</
|
136
|
+
</button>
|
136
137
|
|
137
138
|
</div>
|
138
139
|
|
139
140
|
</div>
|
140
141
|
|
141
|
-
|
142
|
+
<!-- <Shader class="w-100 h-100 flex flex-center pos-absolute pos-t-0 pos-r-0 z-index-0"/> -->
|
143
|
+
|
144
|
+
<!-- <div class="w-100 h-100 flex flex-center pos-absolute pos-t-0 pos-r-0 z-index-0">
|
142
145
|
<div style="background-image: url(/spiral.jpg)" class="spiral"></div>
|
143
|
-
</div>
|
146
|
+
</div> -->
|
144
147
|
|
145
148
|
</div>
|
146
149
|
</template>
|
@@ -15,7 +15,8 @@ module.exports = (mongoose) => {
|
|
15
15
|
value: {type: String}
|
16
16
|
}],
|
17
17
|
// ЗАДАЧА: Нужно отрефачить price, перенести его в default variant
|
18
|
-
price:
|
18
|
+
price: { type: Number },
|
19
|
+
prices: { type: Array},
|
19
20
|
//
|
20
21
|
variants: [{
|
21
22
|
_id: { type: mongoose.Schema.Types.ObjectId, auto: true },
|
@@ -54,6 +54,7 @@ let skip = ref(0);
|
|
54
54
|
let limit = ref(50);
|
55
55
|
|
56
56
|
let currentMapCenter = ref({lat: 0, lng: 0});
|
57
|
+
let currentMapZoom = ref(null);
|
57
58
|
|
58
59
|
async function getCountry() {
|
59
60
|
try {
|
@@ -176,10 +177,9 @@ onMounted(async () => {
|
|
176
177
|
delivery: route.query.delivery,
|
177
178
|
sortParam: route.query.sortParam || marketplace.state.sort.param,
|
178
179
|
sortOrder: route.query.sortOrder || marketplace.state.sort.order,
|
179
|
-
skip: skip.value,
|
180
|
-
limit: 100,
|
181
180
|
location: {coordinates: [lng,lat] },
|
182
|
-
locationRadius:
|
181
|
+
locationRadius: 1000,
|
182
|
+
limit: 500,
|
183
183
|
};
|
184
184
|
|
185
185
|
console.log(params)
|
@@ -508,6 +508,10 @@ onMounted(async () => {
|
|
508
508
|
};
|
509
509
|
});
|
510
510
|
|
511
|
+
google.maps.event.addListener(map.value, 'zoom_changed', () => {
|
512
|
+
currentMapZoom.value = map.value.getZoom();
|
513
|
+
});
|
514
|
+
|
511
515
|
})
|
512
516
|
|
513
517
|
});
|
@@ -521,12 +525,18 @@ const searchInCurrentLocation = async () => {
|
|
521
525
|
categories: route.query.categories,
|
522
526
|
prices: route.query.prices,
|
523
527
|
delivery: route.query.delivery,
|
528
|
+
sortParam: route.query.sortParam || marketplace.state.sort.param,
|
529
|
+
sortOrder: route.query.sortOrder || marketplace.state.sort.order,
|
530
|
+
locationRadius: 8000/currentMapZoom.value,
|
531
|
+
limit: 100,
|
524
532
|
location: {
|
525
533
|
type: "Point",
|
526
534
|
coordinates: [currentMapCenter.value.lng, currentMapCenter.value.lat]
|
527
535
|
}
|
528
536
|
};
|
529
537
|
|
538
|
+
console.log([currentMapCenter.value.lng, currentMapCenter.value.lat])
|
539
|
+
|
530
540
|
try {
|
531
541
|
const data = await actions.read(params);
|
532
542
|
// Remove old markers
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<img
|
4
4
|
v-if="photo"
|
5
5
|
:src="(FILE_SERVER_URL || '') + photo"
|
6
|
-
class="radius-medium bg-white object-fit-cover mn-r-thin h-100 w-auto"
|
6
|
+
class="radius-medium aspect-1x1 bg-white object-fit-cover mn-r-thin h-100 w-auto"
|
7
7
|
|
8
8
|
@click.stop="$router.push({
|
9
9
|
name: user.type === 'user' ? 'User Profile' : 'Organization',
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
<PlaceholderUserpic
|
17
17
|
v-if="!photo"
|
18
|
-
class="radius-medium mn-r-thin h-100 w-auto"
|
18
|
+
class="radius-medium aspect-1x1 mn-r-thin h-100 w-auto"
|
19
19
|
|
20
20
|
@click.stop="$router.push({
|
21
21
|
name: 'User Profile',
|
@@ -1,15 +1,15 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="pd-thin">
|
3
3
|
<header class="mn-b-medium flex-v-center flex-nowrap flex">
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
<h2 class="mn-r-medium">Posts</h2>
|
5
|
+
<button
|
6
|
+
v-if="auth.state.user._id === route.params._id"
|
7
|
+
@click="$router.push({
|
8
|
+
name: 'Create BlogPost'
|
9
|
+
})"
|
10
|
+
class="radius-100 t-white t-semi i-big hover-scale-1 cursor-pointer t-white bg-second">
|
11
|
+
+
|
12
|
+
</button>
|
13
13
|
</header>
|
14
14
|
|
15
15
|
<Tab
|
@@ -23,24 +23,37 @@
|
|
23
23
|
class="mn-b-small o-hidden h5 radius-big bg-light"
|
24
24
|
/>
|
25
25
|
|
26
|
-
<Feed
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
26
|
+
<Feed
|
27
|
+
:showLoadMore="false"
|
28
|
+
:states="{
|
29
|
+
empty: {
|
30
|
+
title: 'No Blog Posts Found',
|
31
|
+
description: 'Currently, there are no posts available in this blog. Please check back later.'
|
32
|
+
},
|
33
|
+
}"
|
34
|
+
:store="{
|
35
|
+
read: (options) => blog.read(options)
|
36
|
+
}"
|
37
|
+
:options="{
|
38
|
+
limit: 15,
|
39
|
+
category: route.params.category,
|
40
|
+
period: route.query.period,
|
41
|
+
status: tabOrganization === 'drafts' ? 'draft' : 'published',
|
42
|
+
user: auth.state.user._id,
|
43
|
+
creator: ['posts', 'drafts'].includes(tabOrganization) ? route.params._id : null,
|
44
|
+
following: tabOrganization === 'following' ? auth.state.user._id : null,
|
45
|
+
}"
|
46
|
+
v-slot="{ items }"
|
47
|
+
class="row-1 gap-thin"
|
48
|
+
>
|
49
|
+
<CardBlogpost
|
50
|
+
v-for="item in items"
|
51
|
+
:key="item._id"
|
52
|
+
:blogpost="item"
|
53
|
+
:user="auth.state.user._id"
|
54
|
+
class="h-max-40r mn-b-medium"
|
55
|
+
/>
|
56
|
+
</Feed>
|
44
57
|
</div>
|
45
58
|
</template>
|
46
59
|
|
@@ -49,9 +62,13 @@
|
|
49
62
|
import { useRoute, useRouter } from 'vue-router'
|
50
63
|
// Components
|
51
64
|
import Tab from '@pf/src/components/Tab/Tab.vue'
|
52
|
-
|
65
|
+
|
66
|
+
import Feed from '@pf/src/components/Feed/Feed.vue'
|
67
|
+
|
68
|
+
import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';
|
53
69
|
|
54
70
|
import * as auth from '@pf/src/modules/auth/store/auth';
|
71
|
+
import * as blog from '@pf/src/modules/community/store/blogposts.js';
|
55
72
|
// Accessing router
|
56
73
|
const route = useRoute()
|
57
74
|
const router = useRouter()
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<template>
|
2
|
+
<h2 class="mn-b-small t-center t-bold">{{ t('balanceReplenished') }}</h2>
|
3
|
+
|
4
|
+
<div class="radius-medium br-1px br-black br-solid pd-big flex flex-column flex-justify-center flex-items-center">
|
5
|
+
<h3 class="t-semi">
|
6
|
+
{{ t('youReceived') }}
|
7
|
+
</h3>
|
8
|
+
<h3 class="t-semi">
|
9
|
+
500 WDT
|
10
|
+
</h3>
|
11
|
+
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<button
|
15
|
+
class="uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small"
|
16
|
+
@click="close"
|
17
|
+
>
|
18
|
+
{{ t('backToWallet') }}
|
19
|
+
</button>
|
20
|
+
</template>
|
21
|
+
|
22
|
+
<script setup>
|
23
|
+
import text from '@pf/src/modules/wallet/localization/Wallet.json'
|
24
|
+
import { useI18n } from 'vue-i18n'
|
25
|
+
|
26
|
+
const emits = defineEmits(['close'])
|
27
|
+
|
28
|
+
// Localization
|
29
|
+
const { t } = useI18n({
|
30
|
+
useScope: 'global',
|
31
|
+
...text
|
32
|
+
})
|
33
|
+
|
34
|
+
function close() {
|
35
|
+
emits("close")
|
36
|
+
}
|
37
|
+
</script>
|
38
|
+
|
39
|
+
<style scoped>
|
40
|
+
</style>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<template>
|
2
|
+
<h2 class="mn-b-small t-center t-bold">Deposit with card</h2>
|
3
|
+
|
4
|
+
<div class="bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between">
|
5
|
+
<Field
|
6
|
+
:placeholder="t('enterAmount')"
|
7
|
+
class="pd-medium radius-small"
|
8
|
+
/>
|
9
|
+
|
10
|
+
<div class="uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi">
|
11
|
+
USD
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<h3 class="t-semi">You will receieve: 0 WDT</h3>
|
16
|
+
|
17
|
+
<button
|
18
|
+
class="uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small"
|
19
|
+
@click="switchMenu(3)"
|
20
|
+
>
|
21
|
+
{{ t('pay') }}
|
22
|
+
</button>
|
23
|
+
|
24
|
+
<button
|
25
|
+
class="uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small"
|
26
|
+
@click="backSelection"
|
27
|
+
>
|
28
|
+
{{ t('backToSelection') }}
|
29
|
+
</button>
|
30
|
+
</template>
|
31
|
+
|
32
|
+
<script setup>
|
33
|
+
import text from '@pf/src/modules/wallet/localization/Wallet.json'
|
34
|
+
import Field from '@pf/src/components/Field/Field.vue'
|
35
|
+
import { useI18n } from 'vue-i18n'
|
36
|
+
|
37
|
+
const emits = defineEmits(['back-selection', 'switch-menu'])
|
38
|
+
|
39
|
+
// Localization
|
40
|
+
const { t } = useI18n({
|
41
|
+
useScope: 'global',
|
42
|
+
...text
|
43
|
+
})
|
44
|
+
|
45
|
+
function backSelection() {
|
46
|
+
emits("back-selection")
|
47
|
+
}
|
48
|
+
|
49
|
+
function switchMenu(screen = 0) {
|
50
|
+
emits("switch-menu", screen)
|
51
|
+
}
|
52
|
+
</script>
|
53
|
+
|
54
|
+
<style scoped>
|
55
|
+
</style>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<template>
|
2
|
+
<h2 class="mn-b-small t-center t-bold">Deposit with cash</h2>
|
3
|
+
|
4
|
+
<p class="t-transp t-center">
|
5
|
+
You need to go to casse to topup balance
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<div
|
9
|
+
class="w-100 bg-grey radius-medium mn-t-medium mn-b-medium"
|
10
|
+
style="height: 152px"
|
11
|
+
/>
|
12
|
+
|
13
|
+
<button
|
14
|
+
class="w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small"
|
15
|
+
@click="backSelection">Back to selection
|
16
|
+
</button>
|
17
|
+
</template>
|
18
|
+
|
19
|
+
<script setup>
|
20
|
+
const emits = defineEmits(['back-selection'])
|
21
|
+
|
22
|
+
function backSelection() {
|
23
|
+
emits("back-selection");
|
24
|
+
}
|
25
|
+
</script>
|
26
|
+
|
27
|
+
<style scoped>
|
28
|
+
</style>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<template>
|
2
|
+
<h2 class="mn-b-small t-center t-bold">{{ t('depositeWithCrypto') }}</h2>
|
3
|
+
|
4
|
+
<div class="bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between">
|
5
|
+
<Field
|
6
|
+
:placeholder="t('enterAmount')"
|
7
|
+
class="pd-medium radius-small"
|
8
|
+
/>
|
9
|
+
|
10
|
+
<div class="uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi">
|
11
|
+
POLY USDT
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<h3 class="t-semi">You will receieve: 0 WDT</h3>
|
16
|
+
|
17
|
+
<button
|
18
|
+
class="uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small"
|
19
|
+
@click="switchMenu(3)"
|
20
|
+
>
|
21
|
+
{{ t('pay') }}
|
22
|
+
</button>
|
23
|
+
|
24
|
+
<button
|
25
|
+
class="uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small"
|
26
|
+
@click="backSelection"
|
27
|
+
>
|
28
|
+
{{ t('backToSelection') }}
|
29
|
+
</button>
|
30
|
+
</template>
|
31
|
+
|
32
|
+
<script setup>
|
33
|
+
import text from '@pf/src/modules/wallet/localization/Wallet.json'
|
34
|
+
import Field from '@pf/src/components/Field/Field.vue'
|
35
|
+
import { useI18n } from 'vue-i18n'
|
36
|
+
|
37
|
+
const emits = defineEmits(['back-selection', 'switch-menu'])
|
38
|
+
|
39
|
+
// Localization
|
40
|
+
const { t } = useI18n({
|
41
|
+
useScope: 'global',
|
42
|
+
...text
|
43
|
+
})
|
44
|
+
|
45
|
+
function backSelection() {
|
46
|
+
emits("back-selection")
|
47
|
+
}
|
48
|
+
|
49
|
+
function switchMenu(screen = 0) {
|
50
|
+
emits("switch-menu", screen)
|
51
|
+
}
|
52
|
+
</script>
|
53
|
+
|
54
|
+
<style scoped>
|
55
|
+
</style>
|