@ozdao/prometheus-framework 0.2.48 → 0.2.51
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +27 -25
- package/dist/auth.server.mjs +27 -25
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/index-3981e903.mjs +217 -0
- package/dist/index-4eecfdb9.js +216 -0
- package/dist/main-203b36b6.mjs +13628 -0
- package/dist/main-_b1_i8mt.mjs +13606 -0
- package/dist/main-a7ae4ce5.js +91 -0
- package/dist/main-uiQFxEks.js +91 -0
- package/dist/main.css +1 -1
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -3
- package/dist/node_modules/vue-select/dist/vue-select.es.js +49 -645
- package/dist/organizations.server.js +35 -43
- package/dist/organizations.server.mjs +35 -43
- package/dist/products.server.js +107 -24
- package/dist/products.server.mjs +107 -24
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -225
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.js +6 -6
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +44 -32
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +45 -44
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +5 -5
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.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 +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +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 +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +22 -21
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.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 +17 -17
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +49 -42
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +48 -15
- 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 +38 -37
- 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 +249 -61
- 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 +78 -45
- 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 +160 -86
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- 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 +2 -2
- 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 +52 -54
- 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 +20 -26
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +40 -46
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +34 -30
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +30 -28
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +33 -28
- 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 +123 -113
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +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/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/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.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/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/web-7p76PGnO.mjs +55 -0
- package/dist/web-c63f0ecc.js +1 -0
- package/dist/web-d8173758.mjs +55 -0
- package/dist/web-dn8vgptQ.js +1 -0
- package/package.json +1 -1
- package/src/components/SelectMulti/SelectMulti.vue +1 -1
- package/src/modules/auth/components/pages/Invite.vue +17 -6
- package/src/modules/auth/controllers/auth.controller.js +24 -16
- package/src/modules/auth/controllers/invites.controller.js +17 -8
- package/src/modules/auth/store/auth.js +8 -1
- package/src/modules/auth/store/invites.js +1 -0
- package/src/modules/globals/store/globals.js +5 -1
- package/src/modules/landing/components/blocks/MapBlock.vue +37 -0
- package/src/modules/landing/components/pages/404.vue +3 -0
- package/src/modules/landing/components/pages/Governance.vue +155 -0
- package/src/modules/landing/components/pages/Home.vue +52 -0
- package/src/modules/landing/components/pages/Hotel.vue +54 -0
- package/src/modules/landing/components/pages/Page.vue +184 -0
- package/src/modules/landing/components/sections/AboutSection.vue +69 -0
- package/src/modules/landing/components/sections/Examples.vue +90 -0
- package/src/modules/landing/components/sections/FeatureSection.vue +80 -0
- package/src/modules/landing/components/sections/GiftSection.vue +63 -0
- package/src/modules/landing/components/sections/HeroSection.vue +74 -0
- package/src/modules/landing/components/sections/HowItWorksSection.vue +88 -0
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +131 -0
- package/src/modules/landing/components/sections/InstagramSection.vue +181 -0
- package/src/modules/landing/components/sections/MapSection.vue +91 -0
- package/src/modules/landing/components/sections/SectionsSection.vue +69 -0
- package/src/modules/landing/components/sections/SliderFeatures.vue +131 -0
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +116 -0
- package/src/modules/landing/router/landing.js +34 -0
- package/src/modules/middlewares/server/verifySignUp.js +4 -0
- package/src/modules/mobile/components/BottomNavigation/BottomNavigation.vue +86 -0
- package/src/modules/mobile/components/BottomSheet/BottomSheet.vue +86 -0
- package/src/modules/mobile/components/NavigationBar/NavigationBar.vue +132 -0
- package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +195 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +52 -44
- package/src/modules/organizations/components/blocks/User.vue +42 -10
- package/src/modules/organizations/components/pages/Department.vue +7 -6
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +110 -134
- package/src/modules/organizations/components/pages/Members.vue +85 -26
- package/src/modules/organizations/components/pages/Organization.vue +59 -4
- package/src/modules/organizations/components/sections/MembersAdd.vue +27 -34
- package/src/modules/organizations/components/sections/Organizations.vue +0 -1
- package/src/modules/organizations/controllers/memberships.controller.js +33 -26
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/department.model.js +0 -19
- package/src/modules/organizations/models/membership.model.js +4 -0
- package/src/modules/organizations/organizations.client.js +1 -6
- package/src/modules/organizations/store/departments.js +48 -44
- package/src/modules/organizations/store/memberships.js +11 -3
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/pages/Product.vue +6 -1
- package/src/modules/products/components/pages/ProductEdit.vue +48 -28
- package/src/modules/products/controllers/products.controller.js +99 -33
- package/src/modules/products/models/product.model.js +16 -1
- package/src/modules/products/store/products.js +1 -1
- package/src/modules/users/components/pages/ProfileOrganizations.vue +41 -7
- package/src/styles/layout.scss +1 -1
- package/src/modules/organizations/components/sections/FeedDepartments.vue +0 -64
- package/src/modules/organizations/components/sections/MembersList.vue +0 -85
- package/src/modules/organizations/store/invites.js +0 -93
package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../components/Loader/Loader.vue.cjs");require("vue-i18n");const _=require("../../../../components/Tab/Tab.vue2.cjs");require("../../../../components/Tooltip/Tooltip.vue2.cjs");const b=require("../sections/MembersAdd.vue.cjs");require("../../../mobile/components/Menu/Menu.vue2.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const v=require("../blocks/User.vue.cjs"),g=require("../../../auth/store/auth.cjs"),a=require("../../../auth/store/invites.cjs"),d=require("../../store/memberships.cjs"),h=require("../../store/organizations.cjs"),f=require("../../store/departments.cjs"),k={class:"pd-thin"},q=e.createElementVNode("section",{class:"mn-b-medium radius-medium pd-semi bg-grey"},[e.createElementVNode("h2",{class:"mn-b-regular"},"Members"),e.createElementVNode("p",{class:"t-transp p-big"},"Add new memberships to the group and configure access rights.")],-1),E={class:"mn-b-big radius-medium bg-white"},y={key:0,class:"cols-1 gap-thin"},B={key:1},N={class:"br-grey br-1px br-solid radius-small mn-b-thin flex-nowrap flex-v-center flex pd-medium"},V={class:"w-100 mn-r-small"},w={class:"t-transp"},x={class:"mn-l-medium flex-v-center flex"},M=["onClick"],C={__name:"Members",setup(S){const l=c.useRoute();c.useRouter();const o=e.ref(null),i=e.ref("members");e.onMounted(async()=>{o.value=(await h.actions.read({_id:l.params._id,user:g.state.user._id}))[0],await d.actions.read({target:l.params._id}),await a.actions.read(o.value._id)}),e.computed(()=>{const s=f.state.departments,n=s.flatMap(t=>t.subdepartments.map(r=>r._id));return s.filter(t=>!n.includes(t._id))});async function u(s){await a.actions.create(o.value._id,s)}async function m(s,n){a.state.invites.splice(s,1),await a.actions.delete(n._id)}return(s,n)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",k,[q,e.createVNode(b.default,{organization:o.value,onSendInvite:u},null,8,["organization"]),e.createVNode(_.default,{selected:i.value,"onUpdate:selected":n[0]||(n[0]=t=>i.value=t),class:"mn-b-medium bg-grey radius-small",tabs:[{name:"Members",value:"members"},{name:"Invites",value:"invites"}]},null,8,["selected"]),e.createElementVNode("section",E,[i.value==="members"?(e.openBlock(),e.createElementBlock("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.state.memberships,(t,r)=>(e.openBlock(),e.createBlock(v.default,{key:r,user:t,onClick:p=>s.$router.push(`/app/profile/${t._id}`),class:"bg-grey radius-small flex-nowrap flex pd-medium"},null,8,["user","onClick"]))),128))])):e.createCommentVNode("",!0),i.value==="invites"?(e.openBlock(),e.createElementBlock("div",B,[e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.state.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("span",V,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",w,e.toDisplayString(t.status),1),e.createElementVNode("div",x,[e.createElementVNode("button",{onClick:p=>m(r,t),class:"button-small button"},"×",8,M)])]))),256))])):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=C;
|
@@ -1,53 +1,86 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { useRoute as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import "
|
1
|
+
import { ref as p, onMounted as $, computed as k, openBlock as a, createBlock as _, Transition as x, withCtx as C, createElementVNode as t, createVNode as f, createElementBlock as r, Fragment as b, renderList as v, createCommentVNode as l, toDisplayString as d } from "vue";
|
2
|
+
import { useRoute as M, useRouter as I } from "vue-router";
|
3
|
+
import "../../../../components/Loader/Loader.vue.js";
|
4
|
+
import "vue-i18n";
|
5
|
+
import S from "../../../../components/Tab/Tab.vue2.js";
|
6
|
+
import "../../../../components/Tooltip/Tooltip.vue2.js";
|
7
|
+
import z from "../sections/MembersAdd.vue.js";
|
8
|
+
import "../../../mobile/components/Menu/Menu.vue2.js";
|
7
9
|
import "../../../mobile/components/Menu/MenuItem.vue.js";
|
8
|
-
import
|
9
|
-
import {
|
10
|
-
import { actions as
|
11
|
-
import
|
12
|
-
import { actions as
|
13
|
-
|
14
|
-
|
15
|
-
/* @__PURE__ */ t("
|
16
|
-
|
10
|
+
import B from "../blocks/User.vue.js";
|
11
|
+
import { state as E } from "../../../auth/store/auth.js";
|
12
|
+
import { actions as c, state as h } from "../../../auth/store/invites.js";
|
13
|
+
import { actions as N, state as V } from "../../store/memberships.js";
|
14
|
+
import { actions as D } from "../../store/organizations.js";
|
15
|
+
import { state as R } from "../../store/departments.js";
|
16
|
+
const U = { class: "pd-thin" }, A = /* @__PURE__ */ t("section", { class: "mn-b-medium radius-medium pd-semi bg-grey" }, [
|
17
|
+
/* @__PURE__ */ t("h2", { class: "mn-b-regular" }, "Members"),
|
18
|
+
/* @__PURE__ */ t("p", { class: "t-transp p-big" }, "Add new memberships to the group and configure access rights.")
|
19
|
+
], -1), F = { class: "mn-b-big radius-medium bg-white" }, L = {
|
20
|
+
key: 0,
|
21
|
+
class: "cols-1 gap-thin"
|
22
|
+
}, P = { key: 1 }, T = { class: "br-grey br-1px br-solid radius-small mn-b-thin flex-nowrap flex-v-center flex pd-medium" }, j = { class: "w-100 mn-r-small" }, q = { class: "t-transp" }, G = { class: "mn-l-medium flex-v-center flex" }, H = ["onClick"], me = {
|
17
23
|
__name: "Members",
|
18
|
-
setup(
|
19
|
-
const
|
20
|
-
|
21
|
-
|
24
|
+
setup(J) {
|
25
|
+
const u = M();
|
26
|
+
I();
|
27
|
+
const o = p(null), m = p("members");
|
28
|
+
$(async () => {
|
29
|
+
o.value = (await D.read({ _id: u.params._id, user: E.user._id }))[0], await N.read({ target: u.params._id }), await c.read(o.value._id);
|
30
|
+
}), k(() => {
|
31
|
+
const s = R.departments, i = s.flatMap(
|
32
|
+
(e) => e.subdepartments.map((n) => n._id)
|
33
|
+
);
|
34
|
+
return s.filter(
|
35
|
+
(e) => !i.includes(e._id)
|
36
|
+
);
|
22
37
|
});
|
23
|
-
async function
|
24
|
-
await
|
38
|
+
async function g(s) {
|
39
|
+
await c.create(o.value._id, s);
|
25
40
|
}
|
26
|
-
async function
|
27
|
-
await
|
41
|
+
async function w(s, i) {
|
42
|
+
h.invites.splice(s, 1), await c.delete(i._id);
|
28
43
|
}
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
i(b, {
|
37
|
-
organization: M.current,
|
38
|
-
memberships: z.memberships
|
39
|
-
}, null, 8, ["organization", "memberships"]),
|
40
|
-
i(h, {
|
41
|
-
organization: a.value,
|
42
|
-
onSendInvite: r
|
44
|
+
return (s, i) => (a(), _(x, { name: "slide-fade" }, {
|
45
|
+
default: C(() => [
|
46
|
+
t("div", U, [
|
47
|
+
A,
|
48
|
+
f(z, {
|
49
|
+
organization: o.value,
|
50
|
+
onSendInvite: g
|
43
51
|
}, null, 8, ["organization"]),
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
52
|
+
f(S, {
|
53
|
+
selected: m.value,
|
54
|
+
"onUpdate:selected": i[0] || (i[0] = (e) => m.value = e),
|
55
|
+
class: "mn-b-medium bg-grey radius-small",
|
56
|
+
tabs: [
|
57
|
+
{ name: "Members", value: "members" },
|
58
|
+
{ name: "Invites", value: "invites" }
|
59
|
+
]
|
60
|
+
}, null, 8, ["selected"]),
|
61
|
+
t("section", F, [
|
62
|
+
m.value === "members" ? (a(), r("div", L, [
|
63
|
+
(a(!0), r(b, null, v(V.memberships, (e, n) => (a(), _(B, {
|
64
|
+
key: n,
|
65
|
+
user: e,
|
66
|
+
onClick: (y) => s.$router.push(`/app/profile/${e._id}`),
|
67
|
+
class: "bg-grey radius-small flex-nowrap flex pd-medium"
|
68
|
+
}, null, 8, ["user", "onClick"]))), 128))
|
69
|
+
])) : l("", !0),
|
70
|
+
m.value === "invites" ? (a(), r("div", P, [
|
71
|
+
l("", !0),
|
72
|
+
(a(!0), r(b, null, v(h.invites, (e, n) => (a(), r("div", T, [
|
73
|
+
t("span", j, d(e.invitedEmail) + " " + d(e.invitedPhone), 1),
|
74
|
+
t("span", q, d(e.status), 1),
|
75
|
+
t("div", G, [
|
76
|
+
t("button", {
|
77
|
+
onClick: (y) => w(n, e),
|
78
|
+
class: "button-small button"
|
79
|
+
}, "×", 8, H)
|
80
|
+
])
|
81
|
+
]))), 256))
|
82
|
+
])) : l("", !0)
|
83
|
+
])
|
51
84
|
])
|
52
85
|
]),
|
53
86
|
_: 1
|
@@ -55,5 +88,5 @@ const R = /* @__PURE__ */ t("section", { class: "mn-b-medium radius-medium pd-se
|
|
55
88
|
}
|
56
89
|
};
|
57
90
|
export {
|
58
|
-
|
91
|
+
me as default
|
59
92
|
};
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const k=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Block/Block.vue.cjs"),_=require("../../../../components/Feed/Feed.vue.cjs"),g=require("../../../mobile/components/Menu/Menu.vue.cjs"),h=require("../../../mobile/components/Menu/MenuItem.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");const v=require("../blocks/User.vue.cjs"),y=require("../blocks/CardDepartment.vue.cjs"),N=require("../../../events/components/sections/Feed.vue.cjs"),q=require("../../../community/components/sections/Feed.vue.cjs"),w=require("../../../spots/components/blocks/CardSpot.vue.cjs"),B=require("../sections/DetailsTab.vue.cjs"),C=require("../../../products/components/pages/Products.vue.cjs"),s=require("../../../auth/store/auth.cjs"),a=require("../../store/organizations.cjs"),V=require("../../store/memberships.cjs"),x=require("../../store/departments.cjs"),z=require("../../../spots/store/spots.cjs");require("./Organization.vue2.cjs");const E={key:0,class:"pd-thin for-transition w-100"},M={class:"cols-2 pd-medium bg-grey radius-bg"},T={class:"pos-relative"},F={key:0},O={__name:"Organization",setup($){const c=p.useRouter(),t=p.useRoute();let b=t.query.tab?t.query.tab:"products";const m=e.ref(null);e.onMounted(async()=>{m.value=await a.actions.read({_id:t.params._id,user:s.state.user._id}),await V.actions.read(t.params._id)});const o=e.ref(b);return t.query.tab=o.value,e.watch(o,u=>{c.replace({query:{...t.query,tab:u}})}),(u,n)=>{const l=e.resolveComponent("router-link");return m.value?(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(B.default,{organization:a.state.current,user:s.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(g.default,{class:"mn-b-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(h.default,{onClick:n[0]||(n[0]=r=>e.unref(c).push({name:"Organization Members",params:{_id:e.unref(t).params._id}})),class:"cursor-pointer",theme:"black"},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(a.state.current.numberOfMembers)+" members ",1)]),_:1})]),_:1}),e.createElementVNode("div",M,[e.createVNode(f.default,{title:"Departments",actions:[{label:"+",function:()=>u.$router.push(`/organizations/${e.unref(t).params._id}/departments/create`)}]},{default:e.withCtx(()=>[e.createVNode(_.default,{states:{empty:{title:"No Departments Found",description:"Currently, there are no departments available."}},store:{read:r=>x.actions.read(e.unref(t).params._id),state:null},options:{user:s.state.user._id,sort:"numberOfMemberships",limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(i,d)=>(e.openBlock(),e.createBlock(y.default,{key:d,department:i,organization:e.unref(t).params._id,class:"radius-big bg-white pos-relative mn-b-thin"},null,8,["department","organization"]))),128))]),_:1},8,["states","store","options"])]),_:1},8,["actions"]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.state.current.memberships,(r,i)=>(e.openBlock(),e.createBlock(v.default,{key:i,user:r,position:r.position,class:"bg-grey radius-small flex-nowrap flex pd-medium"},null,8,["user","position"]))),128))])]),e.createVNode(k.default,{selected:o.value,"onUpdate:selected":n[1]||(n[1]=r=>o.value=r),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",T,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[o.value==="community"?(e.openBlock(),e.createBlock(q.default,{key:0,user:s.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[o.value==="events"?(e.openBlock(),e.createBlock(N.default,{key:0,user:s.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner","sortParam"])):e.createCommentVNode("",!0)]),_:1}),o.value==="products"&&s.state.user._id===a.state.current.owner?(e.openBlock(),e.createBlock(f.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(l,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(l,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(l,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[o.value==="products"?(e.openBlock(),e.createBlock(C.default,{key:0,organization:a.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[o.value==="spots"?(e.openBlock(),e.createElementBlock("div",F,[e.createVNode(_.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:r=>z.actions.read(e.unref(t).params._id),state:a.state},options:{user:s.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(i,d)=>(e.openBlock(),e.createBlock(w.default,{key:d,spot:i,organization:a.state.current,class:"radius-big bg-grey mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["states","store","options"]),s.state.user._id===a.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[2]||(n[2]=r=>u.$router.push(`/spots/${a.state.current._id}/spots/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=O;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js
CHANGED
@@ -1,52 +1,126 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { useRouter as
|
1
|
+
import { ref as z, onMounted as M, watch as N, resolveComponent as q, openBlock as r, createElementBlock as p, createVNode as t, withCtx as a, unref as o, createElementVNode as f, toDisplayString as B, Fragment as y, renderList as h, createBlock as m, Transition as b, createCommentVNode as l, createTextVNode as k } from "vue";
|
2
|
+
import { useRouter as D, useRoute as P } from "vue-router";
|
3
3
|
import "vue-i18n";
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import "../../../mobile/components/Menu/Menu.vue.js";
|
10
|
-
import "../../../mobile/components/Menu/MenuItem.vue.js";
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import
|
14
|
-
import
|
15
|
-
import
|
16
|
-
import
|
17
|
-
import
|
18
|
-
import
|
19
|
-
import {
|
6
|
+
import S from "../../../../components/Tab/Tab.vue2.js";
|
7
|
+
import C from "../../../../components/Block/Block.vue.js";
|
8
|
+
import x from "../../../../components/Feed/Feed.vue.js";
|
9
|
+
import V from "../../../mobile/components/Menu/Menu.vue.js";
|
10
|
+
import A from "../../../mobile/components/Menu/MenuItem.vue.js";
|
11
|
+
import "../blocks/DepartmentSub.vue2.js";
|
12
|
+
import E from "../blocks/User.vue.js";
|
13
|
+
import F from "../blocks/CardDepartment.vue.js";
|
14
|
+
import L from "../../../events/components/sections/Feed.vue.js";
|
15
|
+
import R from "../../../community/components/sections/Feed.vue.js";
|
16
|
+
import T from "../../../spots/components/blocks/CardSpot.vue.js";
|
17
|
+
import U from "../sections/DetailsTab.vue.js";
|
18
|
+
import G from "../../../products/components/pages/Products.vue.js";
|
19
|
+
import { state as u } from "../../../auth/store/auth.js";
|
20
|
+
import { actions as I, state as i } from "../../store/organizations.js";
|
21
|
+
import { actions as j } from "../../store/memberships.js";
|
22
|
+
import { actions as H } from "../../store/departments.js";
|
23
|
+
import { actions as J } from "../../../spots/store/spots.js";
|
20
24
|
import "./Organization.vue2.js";
|
21
|
-
const
|
25
|
+
const K = {
|
22
26
|
key: 0,
|
23
27
|
class: "pd-thin for-transition w-100"
|
24
|
-
},
|
28
|
+
}, Q = { class: "cols-2 pd-medium bg-grey radius-bg" }, W = { class: "pos-relative" }, X = { key: 0 }, we = {
|
25
29
|
__name: "Organization",
|
26
|
-
setup(
|
27
|
-
const
|
28
|
-
let
|
29
|
-
const
|
30
|
-
|
31
|
-
|
30
|
+
setup(Y) {
|
31
|
+
const $ = D(), e = P();
|
32
|
+
let O = e.query.tab ? e.query.tab : "products";
|
33
|
+
const w = z(null);
|
34
|
+
M(async () => {
|
35
|
+
w.value = await I.read({
|
32
36
|
_id: e.params._id,
|
33
|
-
user:
|
34
|
-
}), await
|
37
|
+
user: u.user._id
|
38
|
+
}), await j.read(e.params._id);
|
35
39
|
});
|
36
|
-
const
|
37
|
-
return e.query.tab =
|
38
|
-
|
39
|
-
}), (_,
|
40
|
-
const
|
41
|
-
return
|
42
|
-
t(
|
40
|
+
const n = z(O);
|
41
|
+
return e.query.tab = n.value, N(n, (_) => {
|
42
|
+
$.replace({ query: { ...e.query, tab: _ } });
|
43
|
+
}), (_, d) => {
|
44
|
+
const g = q("router-link");
|
45
|
+
return w.value ? (r(), p("div", K, [
|
46
|
+
t(U, {
|
43
47
|
organization: i.current,
|
44
|
-
user:
|
48
|
+
user: u.user,
|
45
49
|
class: "mn-b-semi"
|
46
50
|
}, null, 8, ["organization", "user"]),
|
47
|
-
t(
|
48
|
-
|
49
|
-
|
51
|
+
t(V, { class: "mn-b-regular bg-grey" }, {
|
52
|
+
default: a(() => [
|
53
|
+
t(A, {
|
54
|
+
onClick: d[0] || (d[0] = (s) => o($).push({
|
55
|
+
name: "Organization Members",
|
56
|
+
params: {
|
57
|
+
_id: o(e).params._id
|
58
|
+
}
|
59
|
+
})),
|
60
|
+
class: "cursor-pointer",
|
61
|
+
theme: "black"
|
62
|
+
}, {
|
63
|
+
default: a(() => [
|
64
|
+
f("span", null, B(i.current.numberOfMembers) + " members ", 1)
|
65
|
+
]),
|
66
|
+
_: 1
|
67
|
+
})
|
68
|
+
]),
|
69
|
+
_: 1
|
70
|
+
}),
|
71
|
+
f("div", Q, [
|
72
|
+
t(C, {
|
73
|
+
title: "Departments",
|
74
|
+
actions: [{
|
75
|
+
label: "+",
|
76
|
+
function: () => _.$router.push(`/organizations/${o(e).params._id}/departments/create`)
|
77
|
+
}]
|
78
|
+
}, {
|
79
|
+
default: a(() => [
|
80
|
+
t(x, {
|
81
|
+
states: {
|
82
|
+
empty: {
|
83
|
+
title: "No Departments Found",
|
84
|
+
description: "Currently, there are no departments available."
|
85
|
+
}
|
86
|
+
},
|
87
|
+
store: {
|
88
|
+
read: (s) => H.read(o(e).params._id),
|
89
|
+
state: null
|
90
|
+
},
|
91
|
+
options: {
|
92
|
+
user: u.user._id,
|
93
|
+
sort: "numberOfMemberships",
|
94
|
+
limit: 10
|
95
|
+
}
|
96
|
+
}, {
|
97
|
+
default: a(({
|
98
|
+
items: s
|
99
|
+
}) => [
|
100
|
+
(r(!0), p(y, null, h(s, (c, v) => (r(), m(F, {
|
101
|
+
key: v,
|
102
|
+
department: c,
|
103
|
+
organization: o(e).params._id,
|
104
|
+
class: "radius-big bg-white pos-relative mn-b-thin"
|
105
|
+
}, null, 8, ["department", "organization"]))), 128))
|
106
|
+
]),
|
107
|
+
_: 1
|
108
|
+
}, 8, ["states", "store", "options"])
|
109
|
+
]),
|
110
|
+
_: 1
|
111
|
+
}, 8, ["actions"]),
|
112
|
+
f("div", null, [
|
113
|
+
(r(!0), p(y, null, h(i.current.memberships, (s, c) => (r(), m(E, {
|
114
|
+
key: c,
|
115
|
+
user: s,
|
116
|
+
position: s.position,
|
117
|
+
class: "bg-grey radius-small flex-nowrap flex pd-medium"
|
118
|
+
}, null, 8, ["user", "position"]))), 128))
|
119
|
+
])
|
120
|
+
]),
|
121
|
+
t(S, {
|
122
|
+
selected: n.value,
|
123
|
+
"onUpdate:selected": d[1] || (d[1] = (s) => n.value = s),
|
50
124
|
tabs: [
|
51
125
|
{ name: "Community", value: "community" },
|
52
126
|
{ name: "Menu", value: "products" },
|
@@ -55,92 +129,92 @@ const G = {
|
|
55
129
|
],
|
56
130
|
class: "mn-b-small o-hidden h5 radius-big bg-grey"
|
57
131
|
}, null, 8, ["selected"]),
|
58
|
-
|
59
|
-
t(
|
60
|
-
default:
|
61
|
-
|
132
|
+
f("div", W, [
|
133
|
+
t(b, { name: "slide-fade" }, {
|
134
|
+
default: a(() => [
|
135
|
+
n.value === "community" ? (r(), m(R, {
|
62
136
|
key: 0,
|
63
|
-
user:
|
64
|
-
owner:
|
65
|
-
}, null, 8, ["user", "owner"])) :
|
137
|
+
user: u.user._id,
|
138
|
+
owner: o(e).params._id
|
139
|
+
}, null, 8, ["user", "owner"])) : l("", !0)
|
66
140
|
]),
|
67
141
|
_: 1
|
68
142
|
}),
|
69
|
-
t(
|
70
|
-
default:
|
71
|
-
|
143
|
+
t(b, { name: "slide-fade" }, {
|
144
|
+
default: a(() => [
|
145
|
+
n.value === "events" ? (r(), m(L, {
|
72
146
|
key: 0,
|
73
|
-
user:
|
74
|
-
owner:
|
147
|
+
user: u.user._id,
|
148
|
+
owner: o(e).params._id,
|
75
149
|
sortOrder: "desc",
|
76
150
|
sortParam: "date.start"
|
77
|
-
}, null, 8, ["user", "owner", "sortParam"])) :
|
151
|
+
}, null, 8, ["user", "owner", "sortParam"])) : l("", !0)
|
78
152
|
]),
|
79
153
|
_: 1
|
80
154
|
}),
|
81
|
-
|
155
|
+
n.value === "products" && u.user._id === i.current.owner ? (r(), m(C, {
|
82
156
|
key: 0,
|
83
157
|
class: "flex-nowrap gap-thin mn-b-small flex"
|
84
158
|
}, {
|
85
|
-
default:
|
86
|
-
t(
|
159
|
+
default: a(() => [
|
160
|
+
t(g, {
|
87
161
|
class: "bg-black t-white uppercase t-semi pd-thin radius-extra",
|
88
162
|
to: {
|
89
163
|
name: "ProductAdd",
|
90
164
|
params: {
|
91
|
-
_id:
|
165
|
+
_id: o(e).params._id
|
92
166
|
}
|
93
167
|
}
|
94
168
|
}, {
|
95
|
-
default:
|
96
|
-
|
169
|
+
default: a(() => [
|
170
|
+
k(" Add Product ")
|
97
171
|
]),
|
98
172
|
_: 1
|
99
173
|
}, 8, ["to"]),
|
100
|
-
t(
|
174
|
+
t(g, {
|
101
175
|
class: "uppercase t-semi pd-thin radius-extra",
|
102
176
|
to: {
|
103
177
|
name: "Leftovers",
|
104
178
|
params: {
|
105
|
-
_id:
|
179
|
+
_id: o(e).params._id
|
106
180
|
}
|
107
181
|
}
|
108
182
|
}, {
|
109
|
-
default:
|
110
|
-
|
183
|
+
default: a(() => [
|
184
|
+
k(" Change Invetory ")
|
111
185
|
]),
|
112
186
|
_: 1
|
113
187
|
}, 8, ["to"]),
|
114
|
-
t(
|
188
|
+
t(g, {
|
115
189
|
class: "d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",
|
116
190
|
to: {
|
117
191
|
name: "Backoffice",
|
118
192
|
params: {
|
119
|
-
_id:
|
193
|
+
_id: o(e).params._id
|
120
194
|
}
|
121
195
|
}
|
122
196
|
}, {
|
123
|
-
default:
|
124
|
-
|
197
|
+
default: a(() => [
|
198
|
+
k(" Go to Backoffice ")
|
125
199
|
]),
|
126
200
|
_: 1
|
127
201
|
}, 8, ["to"])
|
128
202
|
]),
|
129
203
|
_: 1
|
130
|
-
})) :
|
131
|
-
t(
|
132
|
-
default:
|
133
|
-
|
204
|
+
})) : l("", !0),
|
205
|
+
t(b, { name: "slide-fade" }, {
|
206
|
+
default: a(() => [
|
207
|
+
n.value === "products" ? (r(), m(G, {
|
134
208
|
key: 0,
|
135
209
|
organization: i.current
|
136
|
-
}, null, 8, ["organization"])) :
|
210
|
+
}, null, 8, ["organization"])) : l("", !0)
|
137
211
|
]),
|
138
212
|
_: 1
|
139
213
|
}),
|
140
|
-
t(
|
141
|
-
default:
|
142
|
-
|
143
|
-
t(
|
214
|
+
t(b, { name: "slide-fade" }, {
|
215
|
+
default: a(() => [
|
216
|
+
n.value === "spots" ? (r(), p("div", X, [
|
217
|
+
t(x, {
|
144
218
|
states: {
|
145
219
|
empty: {
|
146
220
|
title: "No Spots Found",
|
@@ -148,42 +222,42 @@ const G = {
|
|
148
222
|
}
|
149
223
|
},
|
150
224
|
store: {
|
151
|
-
read: (
|
225
|
+
read: (s) => J.read(o(e).params._id),
|
152
226
|
state: i
|
153
227
|
},
|
154
228
|
options: {
|
155
|
-
user:
|
229
|
+
user: u.user._id,
|
156
230
|
sort: "numberOfMemberships",
|
157
231
|
contain: ["blogposts"],
|
158
232
|
limit: 10
|
159
233
|
}
|
160
234
|
}, {
|
161
|
-
default:
|
162
|
-
items:
|
235
|
+
default: a(({
|
236
|
+
items: s
|
163
237
|
}) => [
|
164
|
-
(
|
165
|
-
key:
|
166
|
-
spot:
|
238
|
+
(r(!0), p(y, null, h(s, (c, v) => (r(), m(T, {
|
239
|
+
key: v,
|
240
|
+
spot: c,
|
167
241
|
organization: i.current,
|
168
242
|
class: "radius-big bg-grey mn-b-thin"
|
169
243
|
}, null, 8, ["spot", "organization"]))), 128))
|
170
244
|
]),
|
171
245
|
_: 1
|
172
246
|
}, 8, ["states", "store", "options"]),
|
173
|
-
|
247
|
+
u.user._id === i.current.owner ? (r(), p("button", {
|
174
248
|
key: 0,
|
175
|
-
onClick:
|
249
|
+
onClick: d[2] || (d[2] = (s) => _.$router.push(`/spots/${i.current._id}/spots/create`)),
|
176
250
|
class: "mn-b-thin button w-100"
|
177
|
-
}, " Add spot ")) :
|
178
|
-
])) :
|
251
|
+
}, " Add spot ")) : l("", !0)
|
252
|
+
])) : l("", !0)
|
179
253
|
]),
|
180
254
|
_: 1
|
181
255
|
})
|
182
256
|
])
|
183
|
-
])) :
|
257
|
+
])) : l("", !0);
|
184
258
|
};
|
185
259
|
}
|
186
260
|
};
|
187
261
|
export {
|
188
|
-
|
262
|
+
we as default
|
189
263
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");const f=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Popup/Popup.vue.cjs");const h=require("../../../auth/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const y={class:"for-transition pd-thin"},V=t.createElementVNode("h3",{class:"mn-b-small"},"Type of group",-1),N=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),_=t.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),q={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},v=t.createElementVNode("h4",null,"Upload photo",-1),w=t.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),x=t.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),U={__name:"OrganizationEdit",async setup(T){let o,i;const s=n.useRoute(),d=n.useRouter();e.actions.reset(),s.params._id&&([o,i]=t.withAsyncContext(()=>e.actions.read({_id:s.params._id})),await o,i());const u=t.computed(()=>e.state.current);async function c(){s.params._id?await e.actions.update(s.params._id,u.value):await e.actions.create(e.state.current,h.state.user._id)}function m(){d.replace({name:"Organization",params:{_id:e.state.current._id}})}return(k,a)=>(t.openBlock(),t.createElementBlock("div",y,[V,N,t.createVNode(f.default,{modelValue:e.state.current.types,"onUpdate:modelValue":a[0]||(a[0]=r=>e.state.current.types=r),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-grey pd-medium radius-small"},null,8,["modelValue"]),_,t.createElementVNode("div",q,[t.createVNode(g.default,{photo:e.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=r=>e.state.current.profile.photo=r),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"]),v]),t.createVNode(l.default,{field:e.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=r=>e.state.current.profile.name=r),placeholder:"Name of organization",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=r=>e.state.current.profile.description=r),placeholder:"Brief description of your group",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(p.default,{onTagsChanged:a[4]||(a[4]=r=>e.state.current.profile.tags=r),tags:e.state.current.profile.tags},null,8,["tags"]),w,x,t.createVNode(l.default,{field:e.state.current.socials.instagram,"onUpdate:field":a[5]||(a[5]=r=>e.state.current.socials.instagram=r),label:"Instagram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.twitter,"onUpdate:field":a[6]||(a[6]=r=>e.state.current.socials.twitter=r),label:"Twitter",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.facebook,"onUpdate:field":a[7]||(a[7]=r=>e.state.current.socials.facebook=r),label:"Facebook",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.telegram,"onUpdate:field":a[8]||(a[8]=r=>e.state.current.socials.telegram=r),label:"Telegram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.youtube,"onUpdate:field":a[9]||(a[9]=r=>e.state.current.socials.youtube=r),label:"Telegram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(b.default,{submit:c,callback:m,class:"bg-main w-100 mn-b-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=U;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js
CHANGED
@@ -4,12 +4,12 @@ import "vue-i18n";
|
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
6
6
|
import v from "../../../../components/FieldTags/BlockTags.vue.js";
|
7
|
-
import "../../../../components/Tab/Tab.
|
8
|
-
import i from "../../../../components/Field/Field.
|
7
|
+
import "../../../../components/Tab/Tab.vue.js";
|
8
|
+
import i from "../../../../components/Field/Field.vue2.js";
|
9
9
|
import "../../../../components/Select/Select.vue.js";
|
10
10
|
import U from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
11
11
|
import k from "../../../../components/UploadImage/UploadImage.vue.js";
|
12
|
-
import T from "../../../../components/Button/Button.
|
12
|
+
import T from "../../../../components/Button/Button.vue2.js";
|
13
13
|
import "../../../../components/Popup/Popup.vue.js";
|
14
14
|
import { state as z } from "../../../auth/store/auth.js";
|
15
15
|
import { actions as s, state as e } from "../../store/organizations.js";
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),c=require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),c=require("../../../../components/Tab/Tab.vue2.cjs"),u=require("../sections/Feed.vue.cjs"),n=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},b={class:"mn-b-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),_={__name:"Organizations",setup(p){const t=l.useRoute(),d=l.useRouter();let i=t.query.tab?t.query.tab:"owner";const r=e.ref(i);return t.query.tab=r.value,e.watch(r,o=>{d.replace({query:{...t.query,tab:o}})}),(o,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",b,[f,e.createElementVNode("button",{onClick:a[0]||(a[0]=s=>o.$router.push({name:"Create Organization"})),class:"bg-second radius-100 i-big hover-scale-1 cursor-pointer t-whitebg-second"}," + ")]),e.createVNode(c.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"Owner",value:"owner"},{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-b-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="owner"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,member:e.unref(t).params._id},null,8,["user","member"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref as v, watch as w, openBlock as a, createElementBlock as h, createElementVNode as b, createVNode as s, Transition as n, withCtx as u, createBlock as l, unref as m, createCommentVNode as i } from "vue";
|
2
2
|
import { useRoute as g, useRouter as y } from "vue-router";
|
3
|
-
import k from "../../../../components/Tab/Tab.
|
3
|
+
import k from "../../../../components/Tab/Tab.vue2.js";
|
4
4
|
import d from "../sections/Feed.vue.js";
|
5
5
|
import { state as c } from "../../../auth/store/auth.js";
|
6
6
|
const q = { class: "pd-thin" }, x = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */ b("h2", { class: "mn-r-medium" }, "Groups", -1), E = {
|