@ozdao/prometheus-framework 0.2.211 → 0.2.213
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +2 -2
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +2 -2
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +41 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +41 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js.map +1 -0
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +1 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
- 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/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.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/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +5 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +7 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +15 -7
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +15 -7
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +56 -4
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +56 -4
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- 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/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +139 -0
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js +139 -0
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +5 -10
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +5 -10
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +850 -850
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +850 -850
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +14 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +18 -8
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +3 -3
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +0 -22
- package/src/modules/community/components/pages/Blog.vue +1 -1
- package/src/modules/globals/views/components/layouts/App.vue +10 -2
- package/src/modules/globals/views/components/layouts/Client.vue +57 -46
- package/src/modules/globals/views/store/globals.js +69 -6
- package/src/modules/icons/logos/Logotype.vue +0 -4
- package/src/modules/icons/skeletons/SkeletonBlogpost.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonEvent.vue +3 -3
- package/src/modules/icons/skeletons/SkeletonEventShort.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +3 -3
- package/src/modules/organizations/components/sections/Organizations.vue +0 -1
- package/src/modules/organizations/organizations.client.js +2 -2
- package/src/modules/users/components/pages/ProfileEdit.vue +11 -0
- /package/src/modules/organizations/components/sections/{DetailsTab.vue → DetailsTabSection.vue} +0 -0
@@ -0,0 +1,139 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const vue = require("vue");
|
4
|
+
const vueRouter = require("vue-router");
|
5
|
+
const Dropdown = require("../../../../components/Dropdown/Dropdown.vue.cjs");
|
6
|
+
const Text = require("../../../../components/Text/Text.vue.cjs");
|
7
|
+
const Chips = require("../../../../components/Chips/Chips.vue.cjs");
|
8
|
+
const IconFollowing = require("../../../icons/entities/IconFollowing.vue.cjs");
|
9
|
+
const IconEdit = require("../../../icons/navigation/IconEdit.vue.cjs");
|
10
|
+
const IconEllipsis = require("../../../icons/navigation/IconEllipsis.vue.cjs");
|
11
|
+
const PlaceholderOrganizationPic = require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs");
|
12
|
+
const ButtonToggleMembership = require("../elements/ButtonToggleMembership.vue.cjs");
|
13
|
+
const Socials = require("../blocks/Socials.vue.cjs");
|
14
|
+
const FormReport = require("../../../reports/components/sections/FormReport.vue.cjs");
|
15
|
+
const organizations = require("../../store/organizations.cjs");
|
16
|
+
const memberships = require("../../store/memberships.cjs");
|
17
|
+
const _hoisted_1 = { class: "flex-center flex flex-column t-center pd-medium radius-big bg-light" };
|
18
|
+
const _hoisted_2 = { class: "bg-black pd-thin radius-small" };
|
19
|
+
const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1);
|
20
|
+
const _hoisted_4 = ["src"];
|
21
|
+
const _hoisted_5 = { class: "mn-b-thin" };
|
22
|
+
const _hoisted_6 = { class: "flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max" };
|
23
|
+
const _hoisted_7 = { class: "mn-t-thin p-medium t-medium uppercase mn-b-thin" };
|
24
|
+
const _hoisted_8 = { class: "w-max-50r mn-t-regular mn-b-medium p-big" };
|
25
|
+
const _hoisted_9 = {
|
26
|
+
key: 5,
|
27
|
+
class: "mn-t-small mn-b-thin"
|
28
|
+
};
|
29
|
+
const _sfc_main = {
|
30
|
+
__name: "DetailsTabSection",
|
31
|
+
props: {
|
32
|
+
organization: Object,
|
33
|
+
user: Object
|
34
|
+
},
|
35
|
+
setup(__props) {
|
36
|
+
const route = vueRouter.useRoute();
|
37
|
+
const handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {
|
38
|
+
memberships.mutations.handleMembershipUpdate(organizations.state.current, membership, status, target, statusName, statusNumber);
|
39
|
+
};
|
40
|
+
return (_ctx, _cache) => {
|
41
|
+
var _a, _b;
|
42
|
+
return vue.openBlock(), vue.createElementBlock("section", _hoisted_1, [
|
43
|
+
__props.user._id !== __props.organization.owner ? (vue.openBlock(), vue.createBlock(Dropdown.default, {
|
44
|
+
key: 0,
|
45
|
+
label: { component: IconEllipsis.default, class: "i-regular t-transp" },
|
46
|
+
align: "right",
|
47
|
+
class: "cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra"
|
48
|
+
}, {
|
49
|
+
default: vue.withCtx(() => [
|
50
|
+
vue.createElementVNode("section", _hoisted_2, [
|
51
|
+
vue.createVNode(FormReport.default, {
|
52
|
+
user: __props.user._id,
|
53
|
+
type: "organization",
|
54
|
+
target: __props.organization._id,
|
55
|
+
text: "Report",
|
56
|
+
class: "w-100"
|
57
|
+
}, {
|
58
|
+
default: vue.withCtx(() => [
|
59
|
+
_hoisted_3
|
60
|
+
]),
|
61
|
+
_: 1
|
62
|
+
}, 8, ["user", "target"]),
|
63
|
+
__props.user._id && __props.user._id !== __props.organization.owner ? (vue.openBlock(), vue.createBlock(ButtonToggleMembership.default, {
|
64
|
+
key: 0,
|
65
|
+
user: __props.user._id,
|
66
|
+
type: "organization",
|
67
|
+
role: "blocked",
|
68
|
+
target: __props.organization._id,
|
69
|
+
status: __props.organization.isBlocked,
|
70
|
+
text: { create: "Block", remove: "Unblock" },
|
71
|
+
onUpdateMembership: _cache[0] || (_cache[0] = (event) => handleMembershipUpdate(event, "isBlocked")),
|
72
|
+
class: "t-white w-100 mn-t-thin bg-red"
|
73
|
+
}, null, 8, ["user", "target", "status"])) : vue.createCommentVNode("", true)
|
74
|
+
])
|
75
|
+
]),
|
76
|
+
_: 1
|
77
|
+
}, 8, ["label"])) : vue.createCommentVNode("", true),
|
78
|
+
__props.user._id === __props.organization.owner ? (vue.openBlock(), vue.createBlock(IconEdit.default, {
|
79
|
+
key: 1,
|
80
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$router.push({
|
81
|
+
name: "Organization Edit",
|
82
|
+
params: {
|
83
|
+
_id: __props.organization._id
|
84
|
+
}
|
85
|
+
})),
|
86
|
+
class: "pos-absolute cursor-pointer pos-t-big pos-r-big i-regular t-transp"
|
87
|
+
})) : vue.createCommentVNode("", true),
|
88
|
+
__props.organization.profile.photo ? (vue.openBlock(), vue.createElementBlock("img", {
|
89
|
+
key: 2,
|
90
|
+
loading: "lazy",
|
91
|
+
src: (_ctx.FILE_SERVER_URL || "") + __props.organization.profile.photo,
|
92
|
+
class: "radius-big bg-light flex-center flex mn-b-small w-8r"
|
93
|
+
}, null, 8, _hoisted_4)) : (vue.openBlock(), vue.createBlock(PlaceholderOrganizationPic.default, {
|
94
|
+
key: 3,
|
95
|
+
class: "radius-medium mn-b-small i-extra"
|
96
|
+
})),
|
97
|
+
vue.createElementVNode("h1", _hoisted_5, vue.toDisplayString(__props.organization.profile.name), 1),
|
98
|
+
vue.createElementVNode("div", _hoisted_6, [
|
99
|
+
vue.createVNode(IconFollowing.default, { class: "i-medium mn-r-micro t-transp" }),
|
100
|
+
vue.createElementVNode("p", _hoisted_7, vue.toDisplayString(__props.organization.numberOfSubscribers) + " followers", 1),
|
101
|
+
__props.user._id && vue.unref(route).params._id && vue.unref(route).params._id !== __props.user._id && __props.organization.owner !== __props.user._id ? (vue.openBlock(), vue.createBlock(ButtonToggleMembership.default, {
|
102
|
+
key: 0,
|
103
|
+
user: __props.user._id,
|
104
|
+
type: "organization",
|
105
|
+
role: "subscriber",
|
106
|
+
target: __props.organization._id,
|
107
|
+
status: __props.organization.isSubscriber,
|
108
|
+
text: { create: "+", remove: "-" },
|
109
|
+
onUpdateMembership: _cache[2] || (_cache[2] = (event) => handleMembershipUpdate(event, "isSubscriber", "numberOfSubscribers")),
|
110
|
+
class: "mn-l-thin p-medium t-medium radius-extra i-semi"
|
111
|
+
}, null, 8, ["user", "target", "status"])) : vue.createCommentVNode("", true)
|
112
|
+
]),
|
113
|
+
vue.createElementVNode("p", _hoisted_8, [
|
114
|
+
vue.createVNode(Text.default, {
|
115
|
+
text: __props.organization.profile.description || "",
|
116
|
+
showToggleText: true,
|
117
|
+
maxLen: 320
|
118
|
+
}, null, 8, ["text"])
|
119
|
+
]),
|
120
|
+
((_b = (_a = __props.organization.profile) == null ? void 0 : _a.tags) == null ? void 0 : _b.length) > 0 ? (vue.openBlock(), vue.createBlock(Chips.default, {
|
121
|
+
key: 4,
|
122
|
+
chips: __props.organization.profile.tags,
|
123
|
+
class: "p-medium"
|
124
|
+
}, null, 8, ["chips"])) : vue.createCommentVNode("", true),
|
125
|
+
Object.values(__props.organization.socials).some((value) => value) ? (vue.openBlock(), vue.createElementBlock("h4", _hoisted_9, " Find us in socials ")) : vue.createCommentVNode("", true),
|
126
|
+
vue.createVNode(Socials.default, {
|
127
|
+
telegram: __props.organization.socials.telegram,
|
128
|
+
facebook: __props.organization.socials.facebook,
|
129
|
+
instagram: __props.organization.socials.instagram,
|
130
|
+
twitter: __props.organization.socials.twitter,
|
131
|
+
youtube: __props.organization.socials.youtube
|
132
|
+
}, null, 8, ["telegram", "facebook", "instagram", "twitter", "youtube"]),
|
133
|
+
vue.renderSlot(_ctx.$slots, "default")
|
134
|
+
]);
|
135
|
+
};
|
136
|
+
}
|
137
|
+
};
|
138
|
+
exports.default = _sfc_main;
|
139
|
+
//# sourceMappingURL=DetailsTabSection.vue.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DetailsTabSection.vue.cjs","sources":["../../../../../../../src/modules/organizations/components/sections/DetailsTabSection.vue"],"sourcesContent":["<template>\n\t<section class=\"flex-center flex flex-column t-center pd-medium radius-big bg-light\">\n\n\t\t<Dropdown \n\t\t\tv-if=\"user._id !== organization.owner\"\n\t\t\t:label=\"{ component: IconEllipsis, class: 'i-regular t-transp' }\"\n\t\t\t:align=\"'right'\"\n\t\t\tclass=\"cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra \"\n\t\t>\n\t\t\t<section \n\t\t\t\tclass=\"bg-black pd-thin radius-small\"\n\t\t\t>\n\t\t\t\t<FormReport \n\t\t\t\t\t:user=\"user._id\"\n\t\t\t\t\t:type=\"'organization'\" \n\t\t\t\t\t:target=\"organization._id\" \n\t\t\t\t\t:text=\"'Report'\" \n\t\t\t\t\tclass=\"w-100\"\n\t\t\t\t>\n\t\t\t\t\t<button \n\t\t\t\t\t\tclass=\"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button\"\n\t\t\t\t\t>\n\t\t\t\t\t\tReport\n\t\t\t\t\t</button>\n\t\t\t\t</FormReport>\n\n\t\t\t\t<ButtonToggleMembership\n\t\t\t\t\tv-if=\"user._id && user._id !== organization.owner\"\n\t\t :user=\"user._id\"\n\t\t :type=\"'organization'\" \n\t \t:role=\"'blocked'\" \n\t\t :target=\"organization._id\" \n\t\t :status=\"organization.isBlocked\" \n\t\t :text=\"{create: 'Block', remove: 'Unblock'}\"\n\t\t @updateMembership=\"event => handleMembershipUpdate(event, 'isBlocked')\"\n\t\t class=\"t-white w-100 mn-t-thin bg-red\" \n\t \t/>\n\t\t\t</section>\n </Dropdown>\n\n\t\t<IconEdit\n\t\t\tv-if=\"user._id === organization.owner\"\n\t\t\t@click=\"$router.push({\n\t\t\t\tname: 'Organization Edit', \n\t\t\t\tparams: {\n\t\t\t\t\t_id: organization._id\n\t\t\t\t}\n\t\t\t})\" \n\t\t\tclass=\"pos-absolute cursor-pointer pos-t-big pos-r-big i-regular t-transp\"\n\t\t/>\n\n\t\t<img loading=\"lazy\" \n\t\t\tv-if=\"organization.profile.photo\" \n\t\t\t:src=\"(FILE_SERVER_URL || '') + organization.profile.photo\" \n\t\t\tclass=\"radius-big bg-light flex-center flex mn-b-small w-8r\" \n\t\t/>\n\n\t\t<PlaceholderOrganizationPic\n\t\t\tv-else\n\t\t\tclass=\"radius-medium mn-b-small i-extra\"\n\t\t/>\n\n <h1\n \tclass=\"mn-b-thin\"\n >\n \t\t{{ organization.profile.name }}\n \t</h1>\n\n \t<div class=\"flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max\">\n \t\t<IconFollowing class=\"i-medium mn-r-micro t-transp\"/>\n\n <p class=\"mn-t-thin p-medium t-medium uppercase mn-b-thin\">{{organization.numberOfSubscribers}} followers</p>\n\n <ButtonToggleMembership\n v-if=\"\n\t \tuser._id \n\t \t&& route.params._id \n\t \t&& route.params._id !== user._id\n\t \t&& organization.owner !== user._id\n\t \"\n :user=\"user._id\"\n :type=\"'organization'\" \n :role=\"'subscriber'\" \n :target=\"organization._id\" \n :status=\"organization.isSubscriber\" \n :text=\"{create: '+', remove: '-'}\"\n @updateMembership=\"event => handleMembershipUpdate(event, 'isSubscriber', 'numberOfSubscribers')\"\n class=\" mn-l-thin p-medium t-medium radius-extra i-semi\" \n />\n </div>\n\n <p class=\"w-max-50r mn-t-regular mn-b-medium p-big\">\n \t\t<Text :text=\"organization.profile.description || ''\" :showToggleText=\"true\" :maxLen=\"320\" />\n \t</p> \n\n \t<Chips \n \tv-if=\"organization.profile?.tags?.length > 0\" \n \t:chips=\"organization.profile.tags\"\n \tclass=\"p-medium\"\n \t/>\n\n\n <h4 \n \tv-if=\"Object.values(organization.socials).some(value => value)\" \n \tclass=\"mn-t-small mn-b-thin\"\n >\n \t\tFind us in socials\n \t</h4>\n \t\n \t<Socials \n \t\t:telegram=\"organization.socials.telegram\"\n \t\t:facebook=\"organization.socials.facebook\"\n \t\t:instagram=\"organization.socials.instagram\"\n \t\t:twitter=\"organization.socials.twitter\"\n \t\t:youtube=\"organization.socials.youtube\"\n \t/>\n \t<slot></slot>\n\t</section>\n\n<!-- <h3 class=\"mn-b-small\">Rating</h3>\n\t<Rating \n\t\t:rating=\"organization.rating.median\" \n\t\t:amount=\"organization.rating.amount\"\n\t\tclass=\"pd-medium mn-b-thin radius-big bg-light\"\n\t/>\n\n\t<h3 class=\"mn-b-small\">Contacts</h3>\n <Contacts\n :website=\"organization.contacts.website\"\n :phone=\"organization.contacts.phone\"\n :email=\"organization.contacts.email\"\n :address=\"organization.contacts.address\"\n class=\"w-100 pd-medium radius-big bg-light\"\n /> -->\n\n\n</template>\n\n<script setup>\n\timport { ref, computed } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Import components\n\timport Dropdown from \"@pf/src/components/Dropdown/Dropdown.vue\";\n\timport Text \t\tfrom '@pf/src/components/Text/Text.vue'\n\timport Chips from '@pf/src/components/Chips/Chips.vue'\n\t// Icons\n\timport IconFollowing from '@pf/src/modules/icons/entities/IconFollowing.vue'\n\timport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\n\timport IconEllipsis from '@pf/src/modules/icons/navigation/IconEllipsis.vue'\n\timport PlaceholderOrganizationPic from '@pf/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue'\n\t// Org Module\n\timport ButtonToggleMembership from '@pf/src/modules/organizations/components/elements/ButtonToggleMembership.vue'\n\timport Contacts from '@pf/src/modules/organizations/components/blocks/Contacts.vue'\n\timport Rating from '@pf/src/modules/organizations/components/blocks/Rating.vue'\n\timport Socials from '@pf/src/modules/organizations/components/blocks/Socials.vue'\n\t// Report Module\n\timport FormReport from '@pf/src/modules/reports/components/sections/FormReport.vue' \n\t// Store \n\timport * as organizations \tfrom '@pf/src/modules/organizations/store/organizations'\n\timport * as memberships \tfrom '@pf/src/modules/organizations/store/memberships'\n\t// ///////////////////////////////////////\n \t// Components Props\n \t// ///////////////////////////////////////\n\tconst props = defineProps({\n\t\torganization: Object,\n\t\tuser: Object\n\t})\n\t// Store\n\tconst route = useRoute()\n\t\n\t// Methods\n\tconst handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {\n\t memberships.mutations.handleMembershipUpdate(organizations.state.current, membership, status, target, statusName, statusNumber)\n\t};\n</script>\n\n<style lang=\"scss\">\n\n</style>"],"names":["useRoute","memberships.mutations","organizations.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwKC,UAAM,QAAQA,UAAAA,SAAU;AAGxB,UAAM,yBAAyB,CAAC,EAAE,YAAY,QAAQ,OAAQ,GAAE,YAAY,iBAAiB;AAC3FC,4BAAsB,uBAAuBC,cAAAA,MAAoB,SAAS,YAAY,QAAQ,QAAQ,YAAY,YAAY;AAAA,IACjI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
import { openBlock, createElementBlock, createBlock, withCtx, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref, renderSlot } from "vue";
|
2
|
+
import { useRoute } from "vue-router";
|
3
|
+
import _sfc_main$1 from "../../../../components/Dropdown/Dropdown.vue.js";
|
4
|
+
import _sfc_main$7 from "../../../../components/Text/Text.vue.js";
|
5
|
+
import _sfc_main$8 from "../../../../components/Chips/Chips.vue.js";
|
6
|
+
import _sfc_main$6 from "../../../icons/entities/IconFollowing.vue.js";
|
7
|
+
import _sfc_main$5 from "../../../icons/navigation/IconEdit.vue.js";
|
8
|
+
import _sfc_main$2 from "../../../icons/navigation/IconEllipsis.vue.js";
|
9
|
+
import PlaceholderOrganizationPic from "../../../icons/placeholders/PlaceholderOrganizationPic.vue.js";
|
10
|
+
import _sfc_main$4 from "../elements/ButtonToggleMembership.vue.js";
|
11
|
+
import _sfc_main$9 from "../blocks/Socials.vue.js";
|
12
|
+
import _sfc_main$3 from "../../../reports/components/sections/FormReport.vue.js";
|
13
|
+
import { state } from "../../store/organizations.js";
|
14
|
+
import { mutations } from "../../store/memberships.js";
|
15
|
+
const _hoisted_1 = { class: "flex-center flex flex-column t-center pd-medium radius-big bg-light" };
|
16
|
+
const _hoisted_2 = { class: "bg-black pd-thin radius-small" };
|
17
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1);
|
18
|
+
const _hoisted_4 = ["src"];
|
19
|
+
const _hoisted_5 = { class: "mn-b-thin" };
|
20
|
+
const _hoisted_6 = { class: "flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max" };
|
21
|
+
const _hoisted_7 = { class: "mn-t-thin p-medium t-medium uppercase mn-b-thin" };
|
22
|
+
const _hoisted_8 = { class: "w-max-50r mn-t-regular mn-b-medium p-big" };
|
23
|
+
const _hoisted_9 = {
|
24
|
+
key: 5,
|
25
|
+
class: "mn-t-small mn-b-thin"
|
26
|
+
};
|
27
|
+
const _sfc_main = {
|
28
|
+
__name: "DetailsTabSection",
|
29
|
+
props: {
|
30
|
+
organization: Object,
|
31
|
+
user: Object
|
32
|
+
},
|
33
|
+
setup(__props) {
|
34
|
+
const route = useRoute();
|
35
|
+
const handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {
|
36
|
+
mutations.handleMembershipUpdate(state.current, membership, status, target, statusName, statusNumber);
|
37
|
+
};
|
38
|
+
return (_ctx, _cache) => {
|
39
|
+
var _a, _b;
|
40
|
+
return openBlock(), createElementBlock("section", _hoisted_1, [
|
41
|
+
__props.user._id !== __props.organization.owner ? (openBlock(), createBlock(_sfc_main$1, {
|
42
|
+
key: 0,
|
43
|
+
label: { component: _sfc_main$2, class: "i-regular t-transp" },
|
44
|
+
align: "right",
|
45
|
+
class: "cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra"
|
46
|
+
}, {
|
47
|
+
default: withCtx(() => [
|
48
|
+
createElementVNode("section", _hoisted_2, [
|
49
|
+
createVNode(_sfc_main$3, {
|
50
|
+
user: __props.user._id,
|
51
|
+
type: "organization",
|
52
|
+
target: __props.organization._id,
|
53
|
+
text: "Report",
|
54
|
+
class: "w-100"
|
55
|
+
}, {
|
56
|
+
default: withCtx(() => [
|
57
|
+
_hoisted_3
|
58
|
+
]),
|
59
|
+
_: 1
|
60
|
+
}, 8, ["user", "target"]),
|
61
|
+
__props.user._id && __props.user._id !== __props.organization.owner ? (openBlock(), createBlock(_sfc_main$4, {
|
62
|
+
key: 0,
|
63
|
+
user: __props.user._id,
|
64
|
+
type: "organization",
|
65
|
+
role: "blocked",
|
66
|
+
target: __props.organization._id,
|
67
|
+
status: __props.organization.isBlocked,
|
68
|
+
text: { create: "Block", remove: "Unblock" },
|
69
|
+
onUpdateMembership: _cache[0] || (_cache[0] = (event) => handleMembershipUpdate(event, "isBlocked")),
|
70
|
+
class: "t-white w-100 mn-t-thin bg-red"
|
71
|
+
}, null, 8, ["user", "target", "status"])) : createCommentVNode("", true)
|
72
|
+
])
|
73
|
+
]),
|
74
|
+
_: 1
|
75
|
+
}, 8, ["label"])) : createCommentVNode("", true),
|
76
|
+
__props.user._id === __props.organization.owner ? (openBlock(), createBlock(_sfc_main$5, {
|
77
|
+
key: 1,
|
78
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$router.push({
|
79
|
+
name: "Organization Edit",
|
80
|
+
params: {
|
81
|
+
_id: __props.organization._id
|
82
|
+
}
|
83
|
+
})),
|
84
|
+
class: "pos-absolute cursor-pointer pos-t-big pos-r-big i-regular t-transp"
|
85
|
+
})) : createCommentVNode("", true),
|
86
|
+
__props.organization.profile.photo ? (openBlock(), createElementBlock("img", {
|
87
|
+
key: 2,
|
88
|
+
loading: "lazy",
|
89
|
+
src: (_ctx.FILE_SERVER_URL || "") + __props.organization.profile.photo,
|
90
|
+
class: "radius-big bg-light flex-center flex mn-b-small w-8r"
|
91
|
+
}, null, 8, _hoisted_4)) : (openBlock(), createBlock(PlaceholderOrganizationPic, {
|
92
|
+
key: 3,
|
93
|
+
class: "radius-medium mn-b-small i-extra"
|
94
|
+
})),
|
95
|
+
createElementVNode("h1", _hoisted_5, toDisplayString(__props.organization.profile.name), 1),
|
96
|
+
createElementVNode("div", _hoisted_6, [
|
97
|
+
createVNode(_sfc_main$6, { class: "i-medium mn-r-micro t-transp" }),
|
98
|
+
createElementVNode("p", _hoisted_7, toDisplayString(__props.organization.numberOfSubscribers) + " followers", 1),
|
99
|
+
__props.user._id && unref(route).params._id && unref(route).params._id !== __props.user._id && __props.organization.owner !== __props.user._id ? (openBlock(), createBlock(_sfc_main$4, {
|
100
|
+
key: 0,
|
101
|
+
user: __props.user._id,
|
102
|
+
type: "organization",
|
103
|
+
role: "subscriber",
|
104
|
+
target: __props.organization._id,
|
105
|
+
status: __props.organization.isSubscriber,
|
106
|
+
text: { create: "+", remove: "-" },
|
107
|
+
onUpdateMembership: _cache[2] || (_cache[2] = (event) => handleMembershipUpdate(event, "isSubscriber", "numberOfSubscribers")),
|
108
|
+
class: "mn-l-thin p-medium t-medium radius-extra i-semi"
|
109
|
+
}, null, 8, ["user", "target", "status"])) : createCommentVNode("", true)
|
110
|
+
]),
|
111
|
+
createElementVNode("p", _hoisted_8, [
|
112
|
+
createVNode(_sfc_main$7, {
|
113
|
+
text: __props.organization.profile.description || "",
|
114
|
+
showToggleText: true,
|
115
|
+
maxLen: 320
|
116
|
+
}, null, 8, ["text"])
|
117
|
+
]),
|
118
|
+
((_b = (_a = __props.organization.profile) == null ? void 0 : _a.tags) == null ? void 0 : _b.length) > 0 ? (openBlock(), createBlock(_sfc_main$8, {
|
119
|
+
key: 4,
|
120
|
+
chips: __props.organization.profile.tags,
|
121
|
+
class: "p-medium"
|
122
|
+
}, null, 8, ["chips"])) : createCommentVNode("", true),
|
123
|
+
Object.values(__props.organization.socials).some((value) => value) ? (openBlock(), createElementBlock("h4", _hoisted_9, " Find us in socials ")) : createCommentVNode("", true),
|
124
|
+
createVNode(_sfc_main$9, {
|
125
|
+
telegram: __props.organization.socials.telegram,
|
126
|
+
facebook: __props.organization.socials.facebook,
|
127
|
+
instagram: __props.organization.socials.instagram,
|
128
|
+
twitter: __props.organization.socials.twitter,
|
129
|
+
youtube: __props.organization.socials.youtube
|
130
|
+
}, null, 8, ["telegram", "facebook", "instagram", "twitter", "youtube"]),
|
131
|
+
renderSlot(_ctx.$slots, "default")
|
132
|
+
]);
|
133
|
+
};
|
134
|
+
}
|
135
|
+
};
|
136
|
+
export {
|
137
|
+
_sfc_main as default
|
138
|
+
};
|
139
|
+
//# sourceMappingURL=DetailsTabSection.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DetailsTabSection.vue.js","sources":["../../../../../../../src/modules/organizations/components/sections/DetailsTabSection.vue"],"sourcesContent":["<template>\n\t<section class=\"flex-center flex flex-column t-center pd-medium radius-big bg-light\">\n\n\t\t<Dropdown \n\t\t\tv-if=\"user._id !== organization.owner\"\n\t\t\t:label=\"{ component: IconEllipsis, class: 'i-regular t-transp' }\"\n\t\t\t:align=\"'right'\"\n\t\t\tclass=\"cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra \"\n\t\t>\n\t\t\t<section \n\t\t\t\tclass=\"bg-black pd-thin radius-small\"\n\t\t\t>\n\t\t\t\t<FormReport \n\t\t\t\t\t:user=\"user._id\"\n\t\t\t\t\t:type=\"'organization'\" \n\t\t\t\t\t:target=\"organization._id\" \n\t\t\t\t\t:text=\"'Report'\" \n\t\t\t\t\tclass=\"w-100\"\n\t\t\t\t>\n\t\t\t\t\t<button \n\t\t\t\t\t\tclass=\"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button\"\n\t\t\t\t\t>\n\t\t\t\t\t\tReport\n\t\t\t\t\t</button>\n\t\t\t\t</FormReport>\n\n\t\t\t\t<ButtonToggleMembership\n\t\t\t\t\tv-if=\"user._id && user._id !== organization.owner\"\n\t\t :user=\"user._id\"\n\t\t :type=\"'organization'\" \n\t \t:role=\"'blocked'\" \n\t\t :target=\"organization._id\" \n\t\t :status=\"organization.isBlocked\" \n\t\t :text=\"{create: 'Block', remove: 'Unblock'}\"\n\t\t @updateMembership=\"event => handleMembershipUpdate(event, 'isBlocked')\"\n\t\t class=\"t-white w-100 mn-t-thin bg-red\" \n\t \t/>\n\t\t\t</section>\n </Dropdown>\n\n\t\t<IconEdit\n\t\t\tv-if=\"user._id === organization.owner\"\n\t\t\t@click=\"$router.push({\n\t\t\t\tname: 'Organization Edit', \n\t\t\t\tparams: {\n\t\t\t\t\t_id: organization._id\n\t\t\t\t}\n\t\t\t})\" \n\t\t\tclass=\"pos-absolute cursor-pointer pos-t-big pos-r-big i-regular t-transp\"\n\t\t/>\n\n\t\t<img loading=\"lazy\" \n\t\t\tv-if=\"organization.profile.photo\" \n\t\t\t:src=\"(FILE_SERVER_URL || '') + organization.profile.photo\" \n\t\t\tclass=\"radius-big bg-light flex-center flex mn-b-small w-8r\" \n\t\t/>\n\n\t\t<PlaceholderOrganizationPic\n\t\t\tv-else\n\t\t\tclass=\"radius-medium mn-b-small i-extra\"\n\t\t/>\n\n <h1\n \tclass=\"mn-b-thin\"\n >\n \t\t{{ organization.profile.name }}\n \t</h1>\n\n \t<div class=\"flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max\">\n \t\t<IconFollowing class=\"i-medium mn-r-micro t-transp\"/>\n\n <p class=\"mn-t-thin p-medium t-medium uppercase mn-b-thin\">{{organization.numberOfSubscribers}} followers</p>\n\n <ButtonToggleMembership\n v-if=\"\n\t \tuser._id \n\t \t&& route.params._id \n\t \t&& route.params._id !== user._id\n\t \t&& organization.owner !== user._id\n\t \"\n :user=\"user._id\"\n :type=\"'organization'\" \n :role=\"'subscriber'\" \n :target=\"organization._id\" \n :status=\"organization.isSubscriber\" \n :text=\"{create: '+', remove: '-'}\"\n @updateMembership=\"event => handleMembershipUpdate(event, 'isSubscriber', 'numberOfSubscribers')\"\n class=\" mn-l-thin p-medium t-medium radius-extra i-semi\" \n />\n </div>\n\n <p class=\"w-max-50r mn-t-regular mn-b-medium p-big\">\n \t\t<Text :text=\"organization.profile.description || ''\" :showToggleText=\"true\" :maxLen=\"320\" />\n \t</p> \n\n \t<Chips \n \tv-if=\"organization.profile?.tags?.length > 0\" \n \t:chips=\"organization.profile.tags\"\n \tclass=\"p-medium\"\n \t/>\n\n\n <h4 \n \tv-if=\"Object.values(organization.socials).some(value => value)\" \n \tclass=\"mn-t-small mn-b-thin\"\n >\n \t\tFind us in socials\n \t</h4>\n \t\n \t<Socials \n \t\t:telegram=\"organization.socials.telegram\"\n \t\t:facebook=\"organization.socials.facebook\"\n \t\t:instagram=\"organization.socials.instagram\"\n \t\t:twitter=\"organization.socials.twitter\"\n \t\t:youtube=\"organization.socials.youtube\"\n \t/>\n \t<slot></slot>\n\t</section>\n\n<!-- <h3 class=\"mn-b-small\">Rating</h3>\n\t<Rating \n\t\t:rating=\"organization.rating.median\" \n\t\t:amount=\"organization.rating.amount\"\n\t\tclass=\"pd-medium mn-b-thin radius-big bg-light\"\n\t/>\n\n\t<h3 class=\"mn-b-small\">Contacts</h3>\n <Contacts\n :website=\"organization.contacts.website\"\n :phone=\"organization.contacts.phone\"\n :email=\"organization.contacts.email\"\n :address=\"organization.contacts.address\"\n class=\"w-100 pd-medium radius-big bg-light\"\n /> -->\n\n\n</template>\n\n<script setup>\n\timport { ref, computed } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Import components\n\timport Dropdown from \"@pf/src/components/Dropdown/Dropdown.vue\";\n\timport Text \t\tfrom '@pf/src/components/Text/Text.vue'\n\timport Chips from '@pf/src/components/Chips/Chips.vue'\n\t// Icons\n\timport IconFollowing from '@pf/src/modules/icons/entities/IconFollowing.vue'\n\timport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\n\timport IconEllipsis from '@pf/src/modules/icons/navigation/IconEllipsis.vue'\n\timport PlaceholderOrganizationPic from '@pf/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue'\n\t// Org Module\n\timport ButtonToggleMembership from '@pf/src/modules/organizations/components/elements/ButtonToggleMembership.vue'\n\timport Contacts from '@pf/src/modules/organizations/components/blocks/Contacts.vue'\n\timport Rating from '@pf/src/modules/organizations/components/blocks/Rating.vue'\n\timport Socials from '@pf/src/modules/organizations/components/blocks/Socials.vue'\n\t// Report Module\n\timport FormReport from '@pf/src/modules/reports/components/sections/FormReport.vue' \n\t// Store \n\timport * as organizations \tfrom '@pf/src/modules/organizations/store/organizations'\n\timport * as memberships \tfrom '@pf/src/modules/organizations/store/memberships'\n\t// ///////////////////////////////////////\n \t// Components Props\n \t// ///////////////////////////////////////\n\tconst props = defineProps({\n\t\torganization: Object,\n\t\tuser: Object\n\t})\n\t// Store\n\tconst route = useRoute()\n\t\n\t// Methods\n\tconst handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {\n\t memberships.mutations.handleMembershipUpdate(organizations.state.current, membership, status, target, statusName, statusNumber)\n\t};\n</script>\n\n<style lang=\"scss\">\n\n</style>"],"names":["memberships.mutations","organizations.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwKC,UAAM,QAAQ,SAAU;AAGxB,UAAM,yBAAyB,CAAC,EAAE,YAAY,QAAQ,OAAQ,GAAE,YAAY,iBAAiB;AAC3FA,gBAAsB,uBAAuBC,MAAoB,SAAS,YAAY,QAAQ,QAAQ,YAAY,YAAY;AAAA,IACjI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs
CHANGED
@@ -5,9 +5,9 @@ const vueRouter = require("vue-router");
|
|
5
5
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
6
6
|
require("vue-i18n");
|
7
7
|
;/* empty css */
|
8
|
-
;/* empty css
|
8
|
+
;/* empty css */
|
9
9
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
10
|
-
;/* empty css
|
10
|
+
;/* empty css */
|
11
11
|
;/* empty css */
|
12
12
|
const _withScopeId = (n) => (vue.pushScopeId("data-v-f93fcad7"), n = n(), vue.popScopeId(), n);
|
13
13
|
const _hoisted_1 = { class: "documents" };
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js
CHANGED
@@ -3,9 +3,9 @@ import { useRouter, useRoute } from "vue-router";
|
|
3
3
|
import Field from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import "vue-i18n";
|
5
5
|
/* empty css */
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
7
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
/* empty css */
|
10
10
|
const _withScopeId = (n) => (pushScopeId("data-v-f93fcad7"), n = n(), popScopeId(), n);
|
11
11
|
const _hoisted_1 = { class: "documents" };
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
;/* empty css
|
4
|
+
;/* empty css */
|
5
5
|
const EmptyState = require("../../../../components/EmptyState/EmptyState.vue.cjs");
|
6
6
|
const CardOrganization = require("../blocks/CardOrganization.vue.cjs");
|
7
7
|
const SkeletonOrganization = require("../../../icons/skeletons/SkeletonOrganization.vue.cjs");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, onMounted, openBlock, createElementBlock, createVNode, TransitionGroup, withCtx, Fragment, renderList, createBlock, createCommentVNode, Transition } from "vue";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
import _sfc_main$1 from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import _sfc_main$2 from "../blocks/CardOrganization.vue.js";
|
5
5
|
import SkeletonOrganization from "../../../icons/skeletons/SkeletonOrganization.vue.js";
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const vue = require("vue");
|
4
4
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
5
5
|
;/* empty css */
|
6
|
-
const Button = require("../../../../components/Button/Button.
|
6
|
+
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
7
7
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
8
8
|
const BlockSearch = require("../../../globals/views/components/blocks/BlockSearch.vue.cjs");
|
9
9
|
const CardUser = require("../../../users/components/blocks/CardUser.vue.cjs");
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref, resolveDirective, openBlock, createElementBlock, createElementVNode, toDisplayString, withDirectives, createVNode, isRef, unref, withCtx, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
2
2
|
import Field from "../../../../components/Field/Field.vue2.js";
|
3
3
|
/* empty css */
|
4
|
-
import _sfc_main$6 from "../../../../components/Button/Button.
|
4
|
+
import _sfc_main$6 from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import _sfc_main$2 from "../../../../components/Feed/Feed.vue.js";
|
6
6
|
import _sfc_main$1 from "../../../globals/views/components/blocks/BlockSearch.vue.js";
|
7
7
|
import _sfc_main$3 from "../../../users/components/blocks/CardUser.vue.js";
|
@@ -6,19 +6,14 @@ require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");
|
|
6
6
|
;/* empty css */
|
7
7
|
;/* empty css */
|
8
8
|
;/* empty css */
|
9
|
-
;/* empty css
|
10
|
-
;/* empty css
|
11
|
-
;/* empty css */
|
12
|
-
;/* empty css */
|
13
|
-
const auth = require("../../../auth/views/store/auth.cjs");
|
14
|
-
require("../../store/memberships.cjs");
|
15
|
-
require("vue-i18n");
|
16
|
-
;/* empty css */
|
17
|
-
require("../../../reports/store/reports.cjs");
|
18
|
-
const organizations = require("../../store/organizations.cjs");
|
9
|
+
;/* empty css */
|
10
|
+
;/* empty css */
|
19
11
|
const CardOrganization = require("../blocks/CardOrganization.vue.cjs");
|
20
12
|
const EmptyState = require("../blocks/EmptyState.vue.cjs");
|
21
13
|
;/* empty css */
|
14
|
+
const auth = require("../../../auth/views/store/auth.cjs");
|
15
|
+
const organizations = require("../../store/organizations.cjs");
|
16
|
+
require("../../store/memberships.cjs");
|
22
17
|
;/* empty css */
|
23
18
|
const _hoisted_1 = { class: "for-transition bg-white radius-big w-100" };
|
24
19
|
const _hoisted_2 = { class: "" };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Organizations.vue.cjs","sources":["../../../../../../../src/modules/organizations/components/sections/Organizations.vue"],"sourcesContent":["<template>\n\t<div class=\"for-transition bg-white radius-big w-100\">\n\t\t<div class=\"\">\n\t\t\t <EmptyState \n v-if=\"organizations < 1\"\n title=\"You Haven't Joined Any Organization Yet\"\n description=\"Weeder is all about community. Join an organization or maybe you want to create your own?\"\n action=\"Create organization\"\n :callback=\"a = () => $router.push(`/app/organization/create/details`)\"\n />\n\n <div v-else class=\"cols-1\">\n \t<CardOrganization \n\t \t\t\t v-for=\"organization in organizations\" \n\t\t \t:key=\"organization._id\"\n\t\t \t:organization=\"organization\"\n\t\t \t:user=\"auth.state.user\"\n\t\t\t\t\t\t@updateMembership=\"handleMembershipUpdate\"\n\t\t\t\t\t\tclass=\"w-100\"\n\t\t\t\t\t\t:class=\"{'mn-r-small': index !== organizations.length - 1}\"\n\t\t />\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup>\n\timport { computed,reactive,ref, onMounted,watch } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Import dependencies\n\timport Cookies from 'js-cookie'\n\t// Import components\n\t// Global\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n\timport Field \tfrom '@pf/src/components/Field/Field.vue'\n\timport Select \tfrom '@pf/src/components/Select/Select.vue'\n\timport Button \tfrom '@pf/src/components/Button/Button.vue'\n\t// Local\n\timport
|
1
|
+
{"version":3,"file":"Organizations.vue.cjs","sources":["../../../../../../../src/modules/organizations/components/sections/Organizations.vue"],"sourcesContent":["<template>\n\t<div class=\"for-transition bg-white radius-big w-100\">\n\t\t<div class=\"\">\n\t\t\t <EmptyState \n v-if=\"organizations < 1\"\n title=\"You Haven't Joined Any Organization Yet\"\n description=\"Weeder is all about community. Join an organization or maybe you want to create your own?\"\n action=\"Create organization\"\n :callback=\"a = () => $router.push(`/app/organization/create/details`)\"\n />\n\n <div v-else class=\"cols-1\">\n \t<CardOrganization \n\t \t\t\t v-for=\"organization in organizations\" \n\t\t \t:key=\"organization._id\"\n\t\t \t:organization=\"organization\"\n\t\t \t:user=\"auth.state.user\"\n\t\t\t\t\t\t@updateMembership=\"handleMembershipUpdate\"\n\t\t\t\t\t\tclass=\"w-100\"\n\t\t\t\t\t\t:class=\"{'mn-r-small': index !== organizations.length - 1}\"\n\t\t />\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup>\n\timport { computed,reactive,ref, onMounted,watch } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Import dependencies\n\timport Cookies from 'js-cookie'\n\t// Import components\n\t// Global\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n\timport Field \tfrom '@pf/src/components/Field/Field.vue'\n\timport Select \tfrom '@pf/src/components/Select/Select.vue'\n\timport Button \tfrom '@pf/src/components/Button/Button.vue'\n\t// Local\n\timport CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'\n\t// Blocks\n\timport EmptyState \t\tfrom '@pf/src/modules/organizations/components/blocks/EmptyState.vue'\n\timport Unit \tfrom '@pf/src/modules/organizations/components/sections/Unit.vue'\n\t// Import state\n\timport * as auth from '@pf/src/modules/auth/views/store/auth'\n\timport * as organization from '@pf/src/modules/organizations/store/organizations'\n\timport * as memberships from '@pf/src/modules/organizations/store/memberships'\n\n\tconst props = defineProps({\n owner: {\n type: String,\n default: null\n },\n user: {\n type: [String, Number],\n default: null\n },\n onlyuser: {\n type: [String, Number],\n default: null\n }\n });\n\n\tconst organizations = ref(null)\n\n\torganizations.value = await organization.actions.read({owner: props.owner, user: props.user, onlyuser: props.onlyuser });\n\t// Init router\n\tconst router \t= useRouter()\n\tconst route \t= useRoute()\n\t// Accesing state\n\t// console.log(route.query.tab)\n\tlet tab = route.query.tab ? route.query.tab : 'details';\n\n\tconst tabOrganization = ref(tab)\n\n\troute.query.tab = tabOrganization.value\n\n\twatch(tabOrganization, (newValue) => {\n\t router.replace({ query: { ...route.query, tab: newValue } });\n\t});\n</script>\n\n<style lang=\"scss\">\n\t.slide-fade-enter-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-leave-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-enter-from,\n\t.slide-fade-leave-to {\n\t\tmin-height: 0;\n\t\tposition: absolute;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n</style>\n"],"names":["organizations","ref","_withAsyncContext","organization.actions","useRouter","useRoute","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CC,UAAM,QAAQ;AAed,UAAMA,kBAAgBC,IAAG,IAAC,IAAI;AAE9BD,oBAAc,SAAQ,CAAA,QAAA,SAAA,IAAAE,IAAA,iBAAA,MAAMC,cAAoB,QAAC,KAAK,EAAC,OAAO,MAAM,OAAO,MAAM,MAAM,MAAM,UAAU,MAAM,SAAQ,CAAE,CAAA;AAEvH,UAAM,SAAUC,UAAAA,UAAW;AAC3B,UAAM,QAASC,UAAAA,SAAU;AAGzB,QAAI,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM;AAE9C,UAAM,kBAAkBJ,IAAG,IAAC,GAAG;AAE/B,UAAM,MAAM,MAAM,gBAAgB;AAElCK,cAAM,iBAAiB,CAAC,aAAa;AACnC,aAAO,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,KAAK,SAAU,EAAA,CAAE;AAAA,IAC9D,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js
CHANGED
@@ -4,19 +4,14 @@ import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
|
4
4
|
/* empty css */
|
5
5
|
/* empty css */
|
6
6
|
/* empty css */
|
7
|
-
/* empty css
|
8
|
-
/* empty css
|
9
|
-
/* empty css */
|
10
|
-
/* empty css */
|
11
|
-
import { state } from "../../../auth/views/store/auth.js";
|
12
|
-
import "../../store/memberships.js";
|
13
|
-
import "vue-i18n";
|
14
|
-
/* empty css */
|
15
|
-
import "../../../reports/store/reports.js";
|
16
|
-
import { actions } from "../../store/organizations.js";
|
7
|
+
/* empty css */
|
8
|
+
/* empty css */
|
17
9
|
import _sfc_main$2 from "../blocks/CardOrganization.vue.js";
|
18
10
|
import _sfc_main$1 from "../blocks/EmptyState.vue.js";
|
19
11
|
/* empty css */
|
12
|
+
import { state } from "../../../auth/views/store/auth.js";
|
13
|
+
import { actions } from "../../store/organizations.js";
|
14
|
+
import "../../store/memberships.js";
|
20
15
|
/* empty css */
|
21
16
|
const _hoisted_1 = { class: "for-transition bg-white radius-big w-100" };
|
22
17
|
const _hoisted_2 = { class: "" };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Organizations.vue.js","sources":["../../../../../../../src/modules/organizations/components/sections/Organizations.vue"],"sourcesContent":["<template>\n\t<div class=\"for-transition bg-white radius-big w-100\">\n\t\t<div class=\"\">\n\t\t\t <EmptyState \n v-if=\"organizations < 1\"\n title=\"You Haven't Joined Any Organization Yet\"\n description=\"Weeder is all about community. Join an organization or maybe you want to create your own?\"\n action=\"Create organization\"\n :callback=\"a = () => $router.push(`/app/organization/create/details`)\"\n />\n\n <div v-else class=\"cols-1\">\n \t<CardOrganization \n\t \t\t\t v-for=\"organization in organizations\" \n\t\t \t:key=\"organization._id\"\n\t\t \t:organization=\"organization\"\n\t\t \t:user=\"auth.state.user\"\n\t\t\t\t\t\t@updateMembership=\"handleMembershipUpdate\"\n\t\t\t\t\t\tclass=\"w-100\"\n\t\t\t\t\t\t:class=\"{'mn-r-small': index !== organizations.length - 1}\"\n\t\t />\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup>\n\timport { computed,reactive,ref, onMounted,watch } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Import dependencies\n\timport Cookies from 'js-cookie'\n\t// Import components\n\t// Global\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n\timport Field \tfrom '@pf/src/components/Field/Field.vue'\n\timport Select \tfrom '@pf/src/components/Select/Select.vue'\n\timport Button \tfrom '@pf/src/components/Button/Button.vue'\n\t// Local\n\timport
|
1
|
+
{"version":3,"file":"Organizations.vue.js","sources":["../../../../../../../src/modules/organizations/components/sections/Organizations.vue"],"sourcesContent":["<template>\n\t<div class=\"for-transition bg-white radius-big w-100\">\n\t\t<div class=\"\">\n\t\t\t <EmptyState \n v-if=\"organizations < 1\"\n title=\"You Haven't Joined Any Organization Yet\"\n description=\"Weeder is all about community. Join an organization or maybe you want to create your own?\"\n action=\"Create organization\"\n :callback=\"a = () => $router.push(`/app/organization/create/details`)\"\n />\n\n <div v-else class=\"cols-1\">\n \t<CardOrganization \n\t \t\t\t v-for=\"organization in organizations\" \n\t\t \t:key=\"organization._id\"\n\t\t \t:organization=\"organization\"\n\t\t \t:user=\"auth.state.user\"\n\t\t\t\t\t\t@updateMembership=\"handleMembershipUpdate\"\n\t\t\t\t\t\tclass=\"w-100\"\n\t\t\t\t\t\t:class=\"{'mn-r-small': index !== organizations.length - 1}\"\n\t\t />\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup>\n\timport { computed,reactive,ref, onMounted,watch } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Import dependencies\n\timport Cookies from 'js-cookie'\n\t// Import components\n\t// Global\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n\timport Field \tfrom '@pf/src/components/Field/Field.vue'\n\timport Select \tfrom '@pf/src/components/Select/Select.vue'\n\timport Button \tfrom '@pf/src/components/Button/Button.vue'\n\t// Local\n\timport CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'\n\t// Blocks\n\timport EmptyState \t\tfrom '@pf/src/modules/organizations/components/blocks/EmptyState.vue'\n\timport Unit \tfrom '@pf/src/modules/organizations/components/sections/Unit.vue'\n\t// Import state\n\timport * as auth from '@pf/src/modules/auth/views/store/auth'\n\timport * as organization from '@pf/src/modules/organizations/store/organizations'\n\timport * as memberships from '@pf/src/modules/organizations/store/memberships'\n\n\tconst props = defineProps({\n owner: {\n type: String,\n default: null\n },\n user: {\n type: [String, Number],\n default: null\n },\n onlyuser: {\n type: [String, Number],\n default: null\n }\n });\n\n\tconst organizations = ref(null)\n\n\torganizations.value = await organization.actions.read({owner: props.owner, user: props.user, onlyuser: props.onlyuser });\n\t// Init router\n\tconst router \t= useRouter()\n\tconst route \t= useRoute()\n\t// Accesing state\n\t// console.log(route.query.tab)\n\tlet tab = route.query.tab ? route.query.tab : 'details';\n\n\tconst tabOrganization = ref(tab)\n\n\troute.query.tab = tabOrganization.value\n\n\twatch(tabOrganization, (newValue) => {\n\t router.replace({ query: { ...route.query, tab: newValue } });\n\t});\n</script>\n\n<style lang=\"scss\">\n\t.slide-fade-enter-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-leave-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-enter-from,\n\t.slide-fade-leave-to {\n\t\tmin-height: 0;\n\t\tposition: absolute;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n</style>\n"],"names":["organizations","_withAsyncContext","organization.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CC,UAAM,QAAQ;AAed,UAAMA,kBAAgB,IAAI,IAAI;AAE9BA,oBAAc,SAAQ,CAAA,QAAA,SAAA,IAAAC,iBAAA,MAAMC,QAAqB,KAAK,EAAC,OAAO,MAAM,OAAO,MAAM,MAAM,MAAM,UAAU,MAAM,SAAQ,CAAE,CAAA;AAEvH,UAAM,SAAU,UAAW;AAC3B,UAAM,QAAS,SAAU;AAGzB,QAAI,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM;AAE9C,UAAM,kBAAkB,IAAI,GAAG;AAE/B,UAAM,MAAM,MAAM,gBAAgB;AAElC,UAAM,iBAAiB,CAAC,aAAa;AACnC,aAAO,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,KAAK,SAAU,EAAA,CAAE;AAAA,IAC9D,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -15,7 +15,7 @@ const EmptyState = require("./components/blocks/EmptyState.vue.cjs");
|
|
15
15
|
const Contacts = require("./components/blocks/Contacts.vue.cjs");
|
16
16
|
const Socials = require("./components/blocks/Socials.vue.cjs");
|
17
17
|
const MembersAdd = require("./components/sections/MembersAdd.vue.cjs");
|
18
|
-
const
|
18
|
+
const DetailsTabSection = require("./components/sections/DetailsTabSection.vue.cjs");
|
19
19
|
const Organizations$1 = require("./components/sections/Organizations.vue.cjs");
|
20
20
|
const Publics = require("./components/sections/Publics.vue.cjs");
|
21
21
|
const Documents = require("./components/sections/Documents.vue.cjs");
|
@@ -40,7 +40,7 @@ exports.EmptyState = EmptyState.default;
|
|
40
40
|
exports.Contacts = Contacts.default;
|
41
41
|
exports.Socials = Socials.default;
|
42
42
|
exports.MembersAdd = MembersAdd.default;
|
43
|
-
exports.
|
43
|
+
exports.DetailsTabSection = DetailsTabSection.default;
|
44
44
|
exports.OrganizationsSection = Organizations$1.default;
|
45
45
|
exports.Publics = Publics.default;
|
46
46
|
exports.Documents = Documents.default;
|
@@ -13,7 +13,7 @@ import { default as default13 } from "./components/blocks/EmptyState.vue.js";
|
|
13
13
|
import { default as default14 } from "./components/blocks/Contacts.vue.js";
|
14
14
|
import { default as default15 } from "./components/blocks/Socials.vue.js";
|
15
15
|
import { default as default16 } from "./components/sections/MembersAdd.vue.js";
|
16
|
-
import { default as default17 } from "./components/sections/
|
16
|
+
import { default as default17 } from "./components/sections/DetailsTabSection.vue.js";
|
17
17
|
import { default as default18 } from "./components/sections/Organizations.vue.js";
|
18
18
|
import { default as default19 } from "./components/sections/Publics.vue.js";
|
19
19
|
import { default as default20 } from "./components/sections/Documents.vue.js";
|
@@ -31,7 +31,7 @@ export {
|
|
31
31
|
default3 as Department,
|
32
32
|
default6 as DepartmentEdit,
|
33
33
|
default10 as DepartmentSub,
|
34
|
-
default17 as
|
34
|
+
default17 as DetailsTabSection,
|
35
35
|
default20 as Documents,
|
36
36
|
default8 as EditArray,
|
37
37
|
default13 as EmptyState,
|