@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
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js
CHANGED
@@ -1,54 +1,55 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as h, onMounted as C, watch as B, resolveComponent as N, openBlock as t, createElementBlock as d, createVNode as r, createElementVNode as P, Transition as _, withCtx as a, createBlock as l, unref as m, Fragment as y, renderList as k, createCommentVNode as n, createTextVNode as b } from "vue";
|
2
2
|
import { useRouter as V, useRoute as q } from "vue-router";
|
3
3
|
import "vue-i18n";
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
/* empty css */
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
6
|
+
import M from "../../../../components/Tab/Tab.vue2.js";
|
7
|
+
import O from "../../../../components/Block/Block.vue.js";
|
8
|
+
import w from "../../../../components/Feed/Feed.vue.js";
|
9
|
+
import A from "../../../community/components/blocks/CardBlogpost.vue.js";
|
9
10
|
/* empty css */
|
10
11
|
import "../../../../components/Menu/MenuItem.vue.js";
|
11
12
|
/* empty css */
|
12
|
-
import
|
13
|
-
import
|
14
|
-
import
|
15
|
-
import
|
16
|
-
import
|
17
|
-
import { state as
|
18
|
-
import { actions as R, state as i } from "../../store/organizations.js";
|
13
|
+
import E from "../../../events/components/sections/Feed.vue.js";
|
14
|
+
import F from "../../../spots/components/blocks/CardSpot.vue.js";
|
15
|
+
import L from "../sections/DetailsTab.vue.js";
|
16
|
+
import S from "../../../products/components/pages/Products.vue.js";
|
17
|
+
import { state as i } from "../../../auth/store/auth.js";
|
18
|
+
import { actions as R, state as u } from "../../store/organizations.js";
|
19
19
|
import { actions as T } from "../../store/memberships.js";
|
20
20
|
import "../../store/departments.js";
|
21
|
-
import {
|
21
|
+
import { read as D } from "../../../community/store/blogposts.js";
|
22
|
+
import { actions as G } from "../../../spots/store/spots.js";
|
22
23
|
/* empty css */
|
23
|
-
const
|
24
|
+
const I = {
|
24
25
|
key: 0,
|
25
26
|
class: "pd-thin for-transition w-100"
|
26
|
-
},
|
27
|
+
}, U = { class: "pos-relative" }, j = { key: 0 }, be = {
|
27
28
|
__name: "Organization",
|
28
|
-
setup(
|
29
|
-
const
|
30
|
-
let
|
31
|
-
const
|
32
|
-
|
33
|
-
|
29
|
+
setup(H) {
|
30
|
+
const $ = V(), e = q();
|
31
|
+
let x = e.query.tab ? e.query.tab : "products";
|
32
|
+
const g = h(null);
|
33
|
+
C(async () => {
|
34
|
+
g.value = await R.read({
|
34
35
|
_id: e.params._id,
|
35
|
-
user:
|
36
|
+
user: i.user._id
|
36
37
|
}), await T.read({ target: e.params._id });
|
37
38
|
});
|
38
|
-
const
|
39
|
-
return e.query.tab =
|
40
|
-
|
41
|
-
}), (v,
|
42
|
-
const
|
43
|
-
return
|
44
|
-
|
45
|
-
organization:
|
46
|
-
user:
|
39
|
+
const o = h(x);
|
40
|
+
return e.query.tab = o.value, B(o, (v) => {
|
41
|
+
$.replace({ query: null });
|
42
|
+
}), (v, p) => {
|
43
|
+
const f = N("router-link");
|
44
|
+
return g.value ? (t(), d("div", I, [
|
45
|
+
r(L, {
|
46
|
+
organization: u.current,
|
47
|
+
user: i.user,
|
47
48
|
class: "mn-b-semi"
|
48
49
|
}, null, 8, ["organization", "user"]),
|
49
|
-
|
50
|
-
selected:
|
51
|
-
"onUpdate:selected":
|
50
|
+
r(M, {
|
51
|
+
selected: o.value,
|
52
|
+
"onUpdate:selected": p[0] || (p[0] = (s) => o.value = s),
|
52
53
|
tabs: [
|
53
54
|
{ name: "Community", value: "community" },
|
54
55
|
{ name: "Menu", value: "products" },
|
@@ -57,92 +58,118 @@ const G = {
|
|
57
58
|
],
|
58
59
|
class: "mn-b-small o-hidden h5 radius-big bg-light"
|
59
60
|
}, null, 8, ["selected"]),
|
60
|
-
|
61
|
-
|
62
|
-
default:
|
63
|
-
|
61
|
+
P("div", U, [
|
62
|
+
r(_, { name: "slide-fade" }, {
|
63
|
+
default: a(() => [
|
64
|
+
o.value === "community" ? (t(), l(w, {
|
64
65
|
key: 0,
|
65
|
-
|
66
|
-
|
67
|
-
|
66
|
+
showLoadMore: !1,
|
67
|
+
states: {
|
68
|
+
empty: {
|
69
|
+
title: "No Blog Posts Found",
|
70
|
+
description: "Currently, there are no posts available in this blog. Please check back later."
|
71
|
+
}
|
72
|
+
},
|
73
|
+
store: {
|
74
|
+
read: (s) => D(s)
|
75
|
+
},
|
76
|
+
options: {
|
77
|
+
status: "published",
|
78
|
+
user: i.user._id,
|
79
|
+
owner: m(e).params._id
|
80
|
+
},
|
81
|
+
class: "row-1 gap-thin"
|
82
|
+
}, {
|
83
|
+
default: a(({
|
84
|
+
items: s
|
85
|
+
}) => [
|
86
|
+
(t(!0), d(y, null, k(s, (c) => (t(), l(A, {
|
87
|
+
key: c._id,
|
88
|
+
blogpost: c,
|
89
|
+
user: i.user._id,
|
90
|
+
class: "h-max-40r mn-b-medium"
|
91
|
+
}, null, 8, ["blogpost", "user"]))), 128))
|
92
|
+
]),
|
93
|
+
_: 1
|
94
|
+
}, 8, ["store", "options"])) : n("", !0)
|
68
95
|
]),
|
69
96
|
_: 1
|
70
97
|
}),
|
71
|
-
|
72
|
-
default:
|
73
|
-
|
98
|
+
r(_, { name: "slide-fade" }, {
|
99
|
+
default: a(() => [
|
100
|
+
o.value === "events" ? (t(), l(E, {
|
74
101
|
key: 0,
|
75
|
-
user:
|
76
|
-
owner:
|
102
|
+
user: i.user._id,
|
103
|
+
owner: m(e).params._id,
|
77
104
|
sortOrder: "desc",
|
78
105
|
sortParam: "date.start"
|
79
|
-
}, null, 8, ["user", "owner"])) :
|
106
|
+
}, null, 8, ["user", "owner"])) : n("", !0)
|
80
107
|
]),
|
81
108
|
_: 1
|
82
109
|
}),
|
83
|
-
|
110
|
+
o.value === "products" && i.user._id === u.current.owner ? (t(), l(O, {
|
84
111
|
key: 0,
|
85
112
|
class: "flex-nowrap gap-thin mn-b-small flex"
|
86
113
|
}, {
|
87
|
-
default:
|
88
|
-
|
114
|
+
default: a(() => [
|
115
|
+
r(f, {
|
89
116
|
class: "bg-black t-white uppercase t-semi pd-thin radius-extra",
|
90
117
|
to: {
|
91
118
|
name: "ProductAdd",
|
92
119
|
params: {
|
93
|
-
_id:
|
120
|
+
_id: m(e).params._id
|
94
121
|
}
|
95
122
|
}
|
96
123
|
}, {
|
97
|
-
default:
|
98
|
-
|
124
|
+
default: a(() => [
|
125
|
+
b(" Add Product ")
|
99
126
|
]),
|
100
127
|
_: 1
|
101
128
|
}, 8, ["to"]),
|
102
|
-
|
129
|
+
r(f, {
|
103
130
|
class: "uppercase t-semi pd-thin radius-extra",
|
104
131
|
to: {
|
105
132
|
name: "Leftovers",
|
106
133
|
params: {
|
107
|
-
_id:
|
134
|
+
_id: m(e).params._id
|
108
135
|
}
|
109
136
|
}
|
110
137
|
}, {
|
111
|
-
default:
|
112
|
-
|
138
|
+
default: a(() => [
|
139
|
+
b(" Change Invetory ")
|
113
140
|
]),
|
114
141
|
_: 1
|
115
142
|
}, 8, ["to"]),
|
116
|
-
|
143
|
+
r(f, {
|
117
144
|
class: "d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",
|
118
145
|
to: {
|
119
146
|
name: "Backoffice",
|
120
147
|
params: {
|
121
|
-
_id:
|
148
|
+
_id: m(e).params._id
|
122
149
|
}
|
123
150
|
}
|
124
151
|
}, {
|
125
|
-
default:
|
126
|
-
|
152
|
+
default: a(() => [
|
153
|
+
b(" Go to Backoffice ")
|
127
154
|
]),
|
128
155
|
_: 1
|
129
156
|
}, 8, ["to"])
|
130
157
|
]),
|
131
158
|
_: 1
|
132
|
-
})) :
|
133
|
-
|
134
|
-
default:
|
135
|
-
|
159
|
+
})) : n("", !0),
|
160
|
+
r(_, { name: "slide-fade" }, {
|
161
|
+
default: a(() => [
|
162
|
+
o.value === "products" ? (t(), l(S, {
|
136
163
|
key: 0,
|
137
|
-
organization:
|
138
|
-
}, null, 8, ["organization"])) :
|
164
|
+
organization: u.current
|
165
|
+
}, null, 8, ["organization"])) : n("", !0)
|
139
166
|
]),
|
140
167
|
_: 1
|
141
168
|
}),
|
142
|
-
|
143
|
-
default:
|
144
|
-
|
145
|
-
|
169
|
+
r(_, { name: "slide-fade" }, {
|
170
|
+
default: a(() => [
|
171
|
+
o.value === "spots" ? (t(), d("div", j, [
|
172
|
+
r(w, {
|
146
173
|
states: {
|
147
174
|
empty: {
|
148
175
|
title: "No Spots Found",
|
@@ -150,42 +177,42 @@ const G = {
|
|
150
177
|
}
|
151
178
|
},
|
152
179
|
store: {
|
153
|
-
read: (
|
154
|
-
state:
|
180
|
+
read: (s) => G.read(m(e).params._id),
|
181
|
+
state: u
|
155
182
|
},
|
156
183
|
options: {
|
157
|
-
user:
|
184
|
+
user: i.user._id,
|
158
185
|
sort: "numberOfMemberships",
|
159
186
|
contain: ["blogposts"],
|
160
187
|
limit: 10
|
161
188
|
}
|
162
189
|
}, {
|
163
|
-
default:
|
164
|
-
items:
|
190
|
+
default: a(({
|
191
|
+
items: s
|
165
192
|
}) => [
|
166
|
-
(
|
167
|
-
key:
|
168
|
-
spot:
|
169
|
-
organization:
|
193
|
+
(t(!0), d(y, null, k(s, (c, z) => (t(), l(F, {
|
194
|
+
key: z,
|
195
|
+
spot: c,
|
196
|
+
organization: u.current,
|
170
197
|
class: "radius-big bg-light mn-b-thin"
|
171
198
|
}, null, 8, ["spot", "organization"]))), 128))
|
172
199
|
]),
|
173
200
|
_: 1
|
174
201
|
}, 8, ["store", "options"]),
|
175
|
-
|
202
|
+
i.user._id === u.current.owner ? (t(), d("button", {
|
176
203
|
key: 0,
|
177
|
-
onClick:
|
204
|
+
onClick: p[1] || (p[1] = (s) => v.$router.push(`/spots/${u.current._id}/spots/create`)),
|
178
205
|
class: "mn-b-thin bg-main button w-100"
|
179
|
-
}, " Add spot ")) :
|
180
|
-
])) :
|
206
|
+
}, " Add spot ")) : n("", !0)
|
207
|
+
])) : n("", !0)
|
181
208
|
]),
|
182
209
|
_: 1
|
183
210
|
})
|
184
211
|
])
|
185
|
-
])) :
|
212
|
+
])) : n("", !0);
|
186
213
|
};
|
187
214
|
}
|
188
215
|
};
|
189
216
|
export {
|
190
|
-
|
217
|
+
be as default
|
191
218
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),i=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const c=require("../../../../components/FieldTags/BlockTags.vue.cjs");;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs");;/* empty css */const m=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),p=require("../../../../components/UploadImage/UploadImage.vue.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const g=require("../../../auth/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const b={class:"for-transition pd-thin"},h=t.createElementVNode("h3",{class:"mn-b-small"},"Type of group",-1),V=t.createElementVNode("p",{class:"mn-b-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),N=t.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),q={class:"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex"},_=t.createElementVNode("h4",null,"Upload photo",-1),y=t.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),v=t.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),w={__name:"OrganizationEdit",setup(U){const s=i.useRoute(),o=i.useRouter();e.actions.reset(),t.onMounted(async()=>{s.params._id&&await e.actions.read({_id:s.params._id})});const n=t.computed(()=>e.state.current);async function d(){s.params._id?await e.actions.update(s.params._id,n.value):await e.actions.create(e.state.current,g.state.user._id)}function u(){o.replace({name:"Organization",params:{_id:e.state.current._id}})}return(x,a)=>(t.openBlock(),t.createElementBlock("div",b,[h,V,t.createVNode(m.default,{modelValue:e.state.current.types,"onUpdate:modelValue":a[0]||(a[0]=l=>e.state.current.types=l),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-light pd-medium radius-small"},null,8,["modelValue"]),N,t.createElementVNode("div",q,[t.createVNode(p.default,{photo:e.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=l=>e.state.current.profile.photo=l),uploadPath:"organizations/"+e.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),_]),t.createVNode(r.default,{field:e.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=l=>e.state.current.profile.name=l),placeholder:"Name of organization",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=l=>e.state.current.profile.description=l),placeholder:"Brief description of your group",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(c.default,{onTagsChanged:a[4]||(a[4]=l=>e.state.current.profile.tags=l),tags:e.state.current.profile.tags},null,8,["tags"]),y,v,t.createVNode(r.default,{field:e.state.current.socials.instagram,"onUpdate:field":a[5]||(a[5]=l=>e.state.current.socials.instagram=l),label:"Instagram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.socials.twitter,"onUpdate:field":a[6]||(a[6]=l=>e.state.current.socials.twitter=l),label:"Twitter",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.socials.facebook,"onUpdate:field":a[7]||(a[7]=l=>e.state.current.socials.facebook=l),label:"Facebook",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.socials.telegram,"onUpdate:field":a[8]||(a[8]=l=>e.state.current.socials.telegram=l),label:"Telegram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(r.default,{field:e.state.current.socials.youtube,"onUpdate:field":a[9]||(a[9]=l=>e.state.current.socials.youtube=l),label:"Telegram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(f.default,{submit:d,callback:u,class:"bg-main w-100 mn-b-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=w;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js
CHANGED
@@ -1,36 +1,37 @@
|
|
1
|
-
import {
|
2
|
-
import { useRoute as
|
1
|
+
import { onMounted as p, computed as c, openBlock as f, createElementBlock as g, createVNode as i, createElementVNode as r, withCtx as b, createTextVNode as h } from "vue";
|
2
|
+
import { useRoute as _, useRouter as y } from "vue-router";
|
3
3
|
import "vue-i18n";
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
/* empty css */
|
6
|
-
import
|
6
|
+
import w from "../../../../components/FieldTags/BlockTags.vue.js";
|
7
7
|
/* empty css */
|
8
8
|
import o from "../../../../components/Field/Field.vue2.js";
|
9
9
|
/* empty css */
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import
|
13
|
-
/* empty css
|
14
|
-
import { state as
|
10
|
+
import x from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
11
|
+
import v from "../../../../components/UploadImage/UploadImage.vue.js";
|
12
|
+
import U from "../../../../components/Button/Button.vue2.js";
|
13
|
+
/* empty css */
|
14
|
+
import { state as k } from "../../../auth/store/auth.js";
|
15
15
|
import { actions as s, state as e } from "../../store/organizations.js";
|
16
16
|
import "../../store/memberships.js";
|
17
|
-
const
|
17
|
+
const T = { class: "for-transition pd-thin" }, z = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Type of group", -1), V = /* @__PURE__ */ r("p", { class: "mn-b-thin" }, "Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.", -1), P = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Profile", -1), N = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" }, S = /* @__PURE__ */ r("h4", null, "Upload photo", -1), $ = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Socials", -1), B = /* @__PURE__ */ r("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), X = {
|
18
18
|
__name: "OrganizationEdit",
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
19
|
+
setup(E) {
|
20
|
+
const a = _(), n = y();
|
21
|
+
s.reset(), p(async () => {
|
22
|
+
a.params._id && await s.read({ _id: a.params._id });
|
23
|
+
});
|
24
|
+
const d = c(() => e.current);
|
25
|
+
async function m() {
|
26
|
+
a.params._id ? await s.update(a.params._id, d.value) : await s.create(e.current, k.user._id);
|
26
27
|
}
|
27
|
-
function
|
28
|
-
|
28
|
+
function u() {
|
29
|
+
n.replace({ name: "Organization", params: { _id: e.current._id } });
|
29
30
|
}
|
30
|
-
return (
|
31
|
-
|
32
|
-
|
33
|
-
i(
|
31
|
+
return (C, t) => (f(), g("div", T, [
|
32
|
+
z,
|
33
|
+
V,
|
34
|
+
i(x, {
|
34
35
|
modelValue: e.current.types,
|
35
36
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => e.current.types = l),
|
36
37
|
options: ["public", "exclusive", "hidden"],
|
@@ -39,15 +40,15 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ r("h3", { cla
|
|
39
40
|
placeholder: "Type to search or add type of organization",
|
40
41
|
class: "mn-b-semi bg-light pd-medium radius-small"
|
41
42
|
}, null, 8, ["modelValue"]),
|
42
|
-
|
43
|
-
r("div",
|
44
|
-
i(
|
43
|
+
P,
|
44
|
+
r("div", N, [
|
45
|
+
i(v, {
|
45
46
|
photo: e.current.profile.photo,
|
46
47
|
"onUpdate:photo": t[1] || (t[1] = (l) => e.current.profile.photo = l),
|
47
48
|
uploadPath: "organizations/" + e.current._id + "/avatars",
|
48
49
|
class: "h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"
|
49
50
|
}, null, 8, ["photo", "uploadPath"]),
|
50
|
-
|
51
|
+
S
|
51
52
|
]),
|
52
53
|
i(o, {
|
53
54
|
field: e.current.profile.name,
|
@@ -61,12 +62,12 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ r("h3", { cla
|
|
61
62
|
placeholder: "Brief description of your group",
|
62
63
|
class: "mn-b-thin bg-light pd-medium radius-small"
|
63
64
|
}, null, 8, ["field"]),
|
64
|
-
i(
|
65
|
+
i(w, {
|
65
66
|
onTagsChanged: t[4] || (t[4] = (l) => e.current.profile.tags = l),
|
66
67
|
tags: e.current.profile.tags
|
67
68
|
}, null, 8, ["tags"]),
|
68
|
-
|
69
|
-
|
69
|
+
$,
|
70
|
+
B,
|
70
71
|
i(o, {
|
71
72
|
field: e.current.socials.instagram,
|
72
73
|
"onUpdate:field": t[5] || (t[5] = (l) => e.current.socials.instagram = l),
|
@@ -102,13 +103,13 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ r("h3", { cla
|
|
102
103
|
placeholder: "",
|
103
104
|
class: "mn-b-thin bg-light pd-medium radius-small"
|
104
105
|
}, null, 8, ["field"]),
|
105
|
-
i(
|
106
|
-
submit:
|
107
|
-
callback:
|
106
|
+
i(U, {
|
107
|
+
submit: m,
|
108
|
+
callback: u,
|
108
109
|
class: "bg-main w-100 mn-b-thin"
|
109
110
|
}, {
|
110
|
-
default:
|
111
|
-
|
111
|
+
default: b(() => [
|
112
|
+
h("Save")
|
112
113
|
]),
|
113
114
|
_: 1
|
114
115
|
})
|
@@ -116,5 +117,5 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ r("h3", { cla
|
|
116
117
|
}
|
117
118
|
};
|
118
119
|
export {
|
119
|
-
|
120
|
+
X as default
|
120
121
|
};
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js
CHANGED
@@ -12,7 +12,7 @@ import R from "../blocks/Socials.vue.js";
|
|
12
12
|
import S from "../../../reports/components/sections/FormReport.vue.js";
|
13
13
|
import { state as U } from "../../store/organizations.js";
|
14
14
|
import { mutations as v } from "../../store/memberships.js";
|
15
|
-
const
|
15
|
+
const M = { class: "flex-center flex flex-column t-center pd-medium radius-big bg-light" }, V = { class: "bg-black pd-thin radius-small" }, j = /* @__PURE__ */ n("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), C = ["src"], L = { class: "mn-b-thin" }, N = { class: "flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max" }, D = { class: "mn-t-thin p-medium t-medium uppercase mn-b-thin" }, F = { class: "w-max-50r mn-t-regular mn-b-medium p-big" }, P = {
|
16
16
|
key: 5,
|
17
17
|
class: "mn-t-small mn-b-thin"
|
18
18
|
}, tt = {
|
@@ -29,7 +29,7 @@ const C = { class: "flex-center flex flex-column t-center pd-medium radius-big b
|
|
29
29
|
default: c(() => {
|
30
30
|
var l, m;
|
31
31
|
return [
|
32
|
-
n("section",
|
32
|
+
n("section", M, [
|
33
33
|
t.user._id !== t.organization.owner ? (e(), r(w, {
|
34
34
|
key: 0,
|
35
35
|
label: { component: B, class: "i-regular t-transp" },
|
@@ -37,7 +37,7 @@ const C = { class: "flex-center flex flex-column t-center pd-medium radius-big b
|
|
37
37
|
class: "cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra"
|
38
38
|
}, {
|
39
39
|
default: c(() => [
|
40
|
-
n("section",
|
40
|
+
n("section", V, [
|
41
41
|
u(S, {
|
42
42
|
user: t.user._id,
|
43
43
|
type: "organization",
|
@@ -46,7 +46,7 @@ const C = { class: "flex-center flex flex-column t-center pd-medium radius-big b
|
|
46
46
|
class: "w-100"
|
47
47
|
}, {
|
48
48
|
default: c(() => [
|
49
|
-
|
49
|
+
j
|
50
50
|
]),
|
51
51
|
_: 1
|
52
52
|
}, 8, ["user", "target"]),
|
@@ -79,14 +79,14 @@ const C = { class: "flex-center flex flex-column t-center pd-medium radius-big b
|
|
79
79
|
key: 2,
|
80
80
|
src: (s.FILE_SERVER_URL || "") + t.organization.profile.photo,
|
81
81
|
class: "radius-big bg-light flex-center flex mn-b-small w-8r"
|
82
|
-
}, null, 8,
|
82
|
+
}, null, 8, C)) : (e(), r(E, {
|
83
83
|
key: 3,
|
84
84
|
class: "radius-medium mn-b-small i-extra"
|
85
85
|
})),
|
86
|
-
n("h1",
|
87
|
-
n("div",
|
86
|
+
n("h1", L, f(t.organization.profile.name), 1),
|
87
|
+
n("div", N, [
|
88
88
|
u($, { class: "i-medium mn-r-micro t-transp" }),
|
89
|
-
n("p",
|
89
|
+
n("p", D, f(t.organization.numberOfSubscribers) + " followers", 1),
|
90
90
|
t.user._id && h(d).params._id && h(d).params._id !== t.user._id && t.organization.owner !== t.user._id ? (e(), r(z, {
|
91
91
|
key: 0,
|
92
92
|
user: t.user._id,
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");;/* empty css */;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */const f=o=>(e.pushScopeId("data-v-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={class:"t-semi t-transp radius-small"},B={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,q)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",v,[h,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:x=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",y,e.toDisplayString(t.name),1),e.createElementVNode("p",E,e.toDisplayString(t.status),1)],8,b))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-b-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(B,[["__scopeId","data-v-f93fcad7"]]);exports.default=g;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js
CHANGED
@@ -2,7 +2,7 @@ import { ref as r, watchEffect as y, resolveComponent as P, openBlock as t, crea
|
|
2
2
|
import { useRouter as I, useRoute as g } from "vue-router";
|
3
3
|
import D from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import "vue-i18n";
|
5
|
-
/* empty css
|
5
|
+
/* empty css */
|
6
6
|
/* empty css */
|
7
7
|
import S from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
8
8
|
/* empty css */
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");;/* empty css */require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.vue.cjs");;/* empty css */;/* empty css */const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let p=n.query.tab?n.query.tab:"details";const i=e.ref(p);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(b.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(m.default,{key:l._id,organization:l,user:q.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js
CHANGED
@@ -11,7 +11,7 @@ import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
|
11
11
|
import { state as k } from "../../../auth/store/auth.js";
|
12
12
|
import "../../store/memberships.js";
|
13
13
|
import "vue-i18n";
|
14
|
-
/* empty css
|
14
|
+
/* empty css */
|
15
15
|
import "../../../reports/store/reports.js";
|
16
16
|
import { actions as q } from "../../store/organizations.js";
|
17
17
|
import $ from "../blocks/CardOrganization.vue.js";
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../blocks/CardOrganization.vue.cjs"),c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../blocks/CardOrganization.vue.cjs"),c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),i=require("../../../auth/store/auth.cjs"),d=require("../../store/organizations.cjs"),m=require("../../store/memberships.cjs");;/* empty css */const p={class:"w-100 o-scroll"},f={key:1,class:"w-max gap-thin flex-nowrap flex"},b={__name:"Publics",setup(g){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:i.state.user._id,sortParam:"profile.tags",limit:10})});const u=({membership:s,status:r,target:n},a,o)=>{m.mutations.handleMembershipUpdate(t.value,s,r,n,a,o)};return(s,r)=>(e.openBlock(),e.createElementBlock("div",p,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-light pd-medium"})):(e.openBlock(),e.createElementBlock("div",f,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(n,a)=>(e.openBlock(),e.createBlock(l.default,{key:n._id,organization:n,user:i.state.user,onUpdateMembership:r[0]||(r[0]=o=>u(o,"isSubscriber","numberOfSubscribers")),class:"w-max-20r radius-big"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.default=b;
|