@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/sections/Documents.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("./Documents.vue2.cjs");const f=o=>(e.pushScopeId("data-v-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={class:"t-semi t-transp radius-small"},B={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,x)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",v,[h,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:P=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",y,e.toDisplayString(t.name),1),e.createElementVNode("p",E,e.toDisplayString(t.status),1)],8,b))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-b-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(B,[["__scopeId","data-v-f93fcad7"]]);exports.default=g;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { ref as r, watchEffect as y, resolveComponent as P, openBlock as t, createElementBlock as s, createElementVNode as o, Fragment as i, renderList as d, unref as _, toDisplayString as f, createVNode as h, withCtx as k, pushScopeId as w, popScopeId as C } from "vue";
|
2
2
|
import { useRouter as I, useRoute as g } from "vue-router";
|
3
|
-
import D from "../../../../components/Field/Field.
|
3
|
+
import D from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import "vue-i18n";
|
5
5
|
import S from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
6
6
|
import "../../../../components/Popup/Popup.vue.js";
|
7
|
-
import "../../../../components/Button/Button.
|
7
|
+
import "../../../../components/Button/Button.vue.js";
|
8
8
|
import "./Documents.vue2.js";
|
9
9
|
const E = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "documents" }, F = /* @__PURE__ */ E(() => /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Список документов", -1)), N = { class: "mn-b-big cols-4" }, O = ["onClick"], R = { class: "mn-b-small" }, U = { class: "t-semi t-transp radius-small" }, V = {
|
10
10
|
__name: "Documents",
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../../../../components/Field/Field.vue2.cjs"),b=require("../../../../components/Select/Select.vue2.cjs"),v=require("../../../../components/Button/Button.vue2.cjs");require("../../../middlewares/client/inputs.validation.cjs");const s=require("../../../auth/store/invites.cjs"),f={class:"mn-b-medium radius-medium pd-semi bg-grey"},h=e.createElementVNode("h3",{class:"mn-b-medium"},"Add members",-1),g=e.createElementVNode("p",{class:"mn-b-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),k={key:0,class:"mn-r-medium flex-v-center flex"},E=["onClick"],V=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),N=[V],w=e.createElementVNode("span",null,"Invite to organization",-1),B={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(c,{emit:q}){const i=c,r=e.ref(null),t=e.ref([{contact:"",role:""}]);function d(){t.value.push({contact:"",role:""})}function m(l){t.value.splice(l,1)}async function u(l){await s.actions.create(i.organization._id,t.value)}function p(){}return(l,x)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",f,[h,g,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(n,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"br-1px br-solid br-grey flex gap-thin radius-small mn-b-thin"},[e.createVNode(_.default,{field:n.contact,"onUpdate:field":o=>n.contact=o,placeholder:"Enter email or phone",class:"pd-small radius-small w-100 bg-white",validation:r.value},null,8,["field","onUpdate:field","validation"]),e.createVNode(b.default,{select:n.role,"onUpdate:select":o=>n.role=o,label:"Role",options:["owner","manager","member"],placeholder:"Select",class:"pos-relative w-100 bg-white radius-small pd-small"},null,8,["select","onUpdate:select"]),a>0?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("button",{onClick:o=>m(a),class:"button-small button"},"×",8,E)])):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("div",{onClick:d,class:"mn-b-small flex-v-center flex-nowrap flex"},N),e.createVNode(v.default,{submit:l.a=()=>u(s.state.invites),callback:p,class:"w-100 bg-main"},{default:e.withCtx(()=>[w]),_:1},8,["submit"])])]))}};exports.default=B;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js
CHANGED
@@ -1,80 +1,78 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
1
|
+
import { ref as r, openBlock as a, createElementBlock as s, createElementVNode as e, Fragment as v, renderList as h, createVNode as c, createCommentVNode as g, withCtx as w } from "vue";
|
2
|
+
import k from "../../../../components/Field/Field.vue2.js";
|
3
|
+
import x from "../../../../components/Select/Select.vue2.js";
|
4
|
+
import y from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import "../../../middlewares/client/inputs.validation.js";
|
6
|
-
import { state as
|
7
|
-
const
|
6
|
+
import { state as C, actions as U } from "../../../auth/store/invites.js";
|
7
|
+
const V = { class: "mn-b-medium radius-medium pd-semi bg-grey" }, z = /* @__PURE__ */ e("h3", { class: "mn-b-medium" }, "Add members", -1), E = /* @__PURE__ */ e("p", { class: "mn-b-small t-transp p-medium" }, "Укажите email или телефон, чтобы отправить ссылку с приглашением:", -1), M = {
|
8
8
|
key: 0,
|
9
9
|
class: "mn-r-medium flex-v-center flex"
|
10
|
-
},
|
10
|
+
}, N = ["onClick"], S = /* @__PURE__ */ e("p", { class: "t-blue mn-r-small" }, "+ Добавить приглашение", -1), A = [
|
11
11
|
S
|
12
|
-
],
|
12
|
+
], B = /* @__PURE__ */ e("span", null, "Invite to organization", -1), q = {
|
13
13
|
__name: "MembersAdd",
|
14
14
|
props: {
|
15
15
|
organization: Object
|
16
16
|
},
|
17
17
|
emits: ["send-invite"],
|
18
|
-
setup(
|
19
|
-
const d =
|
18
|
+
setup(m, { emit: F }) {
|
19
|
+
const d = m, u = r(null), t = r([{ contact: "", role: "" }]);
|
20
20
|
function p() {
|
21
21
|
t.value.push({ contact: "", role: "" });
|
22
22
|
}
|
23
|
-
function _(
|
24
|
-
t.value.splice(
|
23
|
+
function _(l) {
|
24
|
+
t.value.splice(l, 1);
|
25
25
|
}
|
26
|
-
async function
|
27
|
-
await
|
26
|
+
async function b(l) {
|
27
|
+
await U.create(d.organization._id, t.value);
|
28
28
|
}
|
29
|
-
function
|
29
|
+
function f() {
|
30
30
|
}
|
31
|
-
return (
|
32
|
-
e("section",
|
31
|
+
return (l, I) => (a(), s("div", null, [
|
32
|
+
e("section", V, [
|
33
|
+
z,
|
33
34
|
E,
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
class: "br-1px br-solid br-grey flex radius-small mn-b-thin"
|
35
|
+
(a(!0), s(v, null, h(t.value, (n, i) => (a(), s("div", {
|
36
|
+
key: i,
|
37
|
+
class: "br-1px br-solid br-grey flex gap-thin radius-small mn-b-thin"
|
38
38
|
}, [
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
class: "button-small button"
|
51
|
-
}, "×", 8, F)
|
52
|
-
])) : w("", !0)
|
53
|
-
]),
|
54
|
-
i(k, {
|
39
|
+
c(k, {
|
40
|
+
field: n.contact,
|
41
|
+
"onUpdate:field": (o) => n.contact = o,
|
42
|
+
placeholder: "Enter email or phone",
|
43
|
+
class: "pd-small radius-small w-100 bg-white",
|
44
|
+
validation: u.value
|
45
|
+
}, null, 8, ["field", "onUpdate:field", "validation"]),
|
46
|
+
c(x, {
|
47
|
+
select: n.role,
|
48
|
+
"onUpdate:select": (o) => n.role = o,
|
49
|
+
label: "Role",
|
55
50
|
options: [
|
56
|
-
|
57
|
-
|
58
|
-
|
51
|
+
"owner",
|
52
|
+
"manager",
|
53
|
+
"member"
|
59
54
|
],
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
55
|
+
placeholder: "Select",
|
56
|
+
class: "pos-relative w-100 bg-white radius-small pd-small"
|
57
|
+
}, null, 8, ["select", "onUpdate:select"]),
|
58
|
+
i > 0 ? (a(), s("div", M, [
|
59
|
+
e("button", {
|
60
|
+
onClick: (o) => _(i),
|
61
|
+
class: "button-small button"
|
62
|
+
}, "×", 8, N)
|
63
|
+
])) : g("", !0)
|
66
64
|
]))), 128)),
|
67
65
|
e("div", {
|
68
66
|
onClick: p,
|
69
67
|
class: "mn-b-small flex-v-center flex-nowrap flex"
|
70
|
-
},
|
71
|
-
|
72
|
-
submit:
|
73
|
-
callback:
|
74
|
-
class: "
|
68
|
+
}, A),
|
69
|
+
c(y, {
|
70
|
+
submit: l.a = () => b(C.invites),
|
71
|
+
callback: f,
|
72
|
+
class: "w-100 bg-main"
|
75
73
|
}, {
|
76
|
-
default:
|
77
|
-
|
74
|
+
default: w(() => [
|
75
|
+
B
|
78
76
|
]),
|
79
77
|
_: 1
|
80
78
|
}, 8, ["submit"])
|
@@ -83,5 +81,5 @@ const z = { class: "mn-b-medium radius-medium pd-semi bg-white" }, E = /* @__PUR
|
|
83
81
|
}
|
84
82
|
};
|
85
83
|
export {
|
86
|
-
|
84
|
+
q as default
|
87
85
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../components/Chips/Chips.vue2.cjs");const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let p=n.query.tab?n.query.tab:"details";const i=e.ref(p);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(b.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(m.default,{key:l._id,organization:l,user:q.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ref as m, withAsyncContext as b, watch as _, openBlock as
|
1
|
+
import { ref as m, withAsyncContext as b, watch as _, openBlock as t, createElementBlock as i, createElementVNode as f, createBlock as p, Fragment as g, renderList as h, normalizeClass as w } from "vue";
|
2
2
|
import { useRouter as v, useRoute as z } from "vue-router";
|
3
3
|
import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
4
|
-
import "../../../../components/Tab/Tab.
|
5
|
-
import "../../../../components/Field/Field.
|
4
|
+
import "../../../../components/Tab/Tab.vue.js";
|
5
|
+
import "../../../../components/Field/Field.vue.js";
|
6
6
|
import "../../../../components/Select/Select.vue.js";
|
7
|
-
import "../../../../components/Button/Button.
|
7
|
+
import "../../../../components/Button/Button.vue.js";
|
8
8
|
import "../../../../components/Dropdown/Dropdown.vue2.js";
|
9
9
|
import "../../../../components/Chips/Chips.vue2.js";
|
10
10
|
import { state as k } from "../../../auth/store/auth.js";
|
@@ -13,20 +13,14 @@ import "vue-i18n";
|
|
13
13
|
import "../../../../components/Popup/Popup.vue.js";
|
14
14
|
import "../../../reports/store/reports.js";
|
15
15
|
import { actions as q } from "../../store/organizations.js";
|
16
|
+
import $ from "../blocks/CardOrganization.vue.js";
|
16
17
|
import B from "../blocks/EmptyState.vue.js";
|
17
|
-
import "../../../../components/Spoiler/Spoiler.vue.js";
|
18
|
-
import "../../../../components/Map/Map.vue.js";
|
19
|
-
import "../blocks/DepartmentSub.vue2.js";
|
20
|
-
import "../blocks/User.vue2.js";
|
21
|
-
import "../blocks/CardDepartment.vue2.js";
|
22
|
-
import "../../store/departments.js";
|
23
|
-
import C from "../blocks/CardOrganization.vue.js";
|
24
18
|
import "./Unit.vue.js";
|
25
19
|
import "./Organizations.vue2.js";
|
26
|
-
const
|
20
|
+
const C = { class: "for-transition bg-white radius-big w-100" }, M = { class: "" }, N = {
|
27
21
|
key: 1,
|
28
22
|
class: "cols-1"
|
29
|
-
},
|
23
|
+
}, Q = {
|
30
24
|
__name: "Organizations",
|
31
25
|
props: {
|
32
26
|
owner: {
|
@@ -44,28 +38,28 @@ const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: ""
|
|
44
38
|
},
|
45
39
|
async setup(c) {
|
46
40
|
let r, s;
|
47
|
-
const
|
48
|
-
o.value = ([r, s] = b(() => q.read({ owner:
|
41
|
+
const n = c, o = m(null);
|
42
|
+
o.value = ([r, s] = b(() => q.read({ owner: n.owner, user: n.user, onlyuser: n.onlyuser })), r = await r, s(), r);
|
49
43
|
const d = v(), a = z();
|
50
44
|
let y = a.query.tab ? a.query.tab : "details";
|
51
45
|
const l = m(y);
|
52
|
-
return a.query.tab = l.value, _(l, (
|
53
|
-
d.replace({ query: { ...a.query, tab:
|
54
|
-
}), (
|
55
|
-
f("div",
|
56
|
-
o.value < 1 ? (
|
46
|
+
return a.query.tab = l.value, _(l, (e) => {
|
47
|
+
d.replace({ query: { ...a.query, tab: e } });
|
48
|
+
}), (e, O) => (t(), i("div", C, [
|
49
|
+
f("div", M, [
|
50
|
+
o.value < 1 ? (t(), p(B, {
|
57
51
|
key: 0,
|
58
52
|
title: "You Haven't Joined Any Organization Yet",
|
59
53
|
description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
|
60
54
|
action: "Create organization",
|
61
|
-
callback:
|
62
|
-
}, null, 8, ["callback"])) : (
|
63
|
-
(
|
55
|
+
callback: e.a = () => e.$router.push("/app/organization/create/details")
|
56
|
+
}, null, 8, ["callback"])) : (t(), i("div", N, [
|
57
|
+
(t(!0), i(g, null, h(o.value, (u) => (t(), p($, {
|
64
58
|
key: u._id,
|
65
59
|
organization: u,
|
66
60
|
user: k.user,
|
67
|
-
onUpdateMembership:
|
68
|
-
class: w(["w-100", { "mn-r-small":
|
61
|
+
onUpdateMembership: e.handleMembershipUpdate,
|
62
|
+
class: w(["w-100", { "mn-r-small": e.index !== o.value.length - 1 }])
|
69
63
|
}, null, 8, ["organization", "user", "onUpdateMembership", "class"]))), 128))
|
70
64
|
]))
|
71
65
|
])
|
@@ -73,5 +67,5 @@ const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: ""
|
|
73
67
|
}
|
74
68
|
};
|
75
69
|
export {
|
76
|
-
|
70
|
+
Q as default
|
77
71
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/pages/Organization.vue.cjs"),t=require("./components/pages/Department.vue.cjs"),r=require("./components/pages/OrganizationEdit.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/pages/Organization.vue.cjs"),t=require("./components/pages/Department.vue.cjs"),r=require("./components/pages/OrganizationEdit.vue.cjs"),a=require("./components/pages/Organizations.vue.cjs"),i=require("./components/pages/DepartmentEdit.vue.cjs"),n=require("./components/blocks/CardOrganization.vue.cjs"),o=require("./components/blocks/EditArray.vue.cjs"),u=require("./components/blocks/User.vue.cjs"),s=require("./components/blocks/Unit.vue.cjs"),d=require("./components/blocks/DepartmentSub.vue.cjs"),c=require("./components/blocks/DepartmentMemberModify.vue.cjs"),l=require("./components/blocks/CardDepartment.vue.cjs"),m=require("./components/blocks/Rating.vue.cjs"),f=require("./components/blocks/EmptyState.vue.cjs"),q=require("./components/blocks/Contacts.vue.cjs"),g=require("./components/blocks/Socials.vue.cjs"),p=require("./components/sections/MembersAdd.vue.cjs"),b=require("./components/sections/DetailsTab.vue.cjs"),z=require("./components/sections/Organizations.vue.cjs"),D=require("./components/sections/Publics.vue.cjs"),S=require("./components/sections/Documents.vue.cjs"),O=require("./components/elements/ButtonToggleMembership.vue.cjs"),M=require("./store/departments.cjs"),y=require("./store/memberships.cjs"),E=require("./store/organizations.cjs"),C=require("./router/organizations.cjs");exports.Organization=e.default;exports.Department=t.default;exports.OrganizationEdit=r.default;exports.Organizations=a.default;exports.DepartmentEdit=i.default;exports.CardOrganization=n.default;exports.EditArray=o.default;exports.User=u.default;exports.Unit=s.default;exports.DepartmentSub=d.default;exports.DepartmentMemberModify=c.default;exports.CardDepartment=l.default;exports.Rating=m.default;exports.EmptyState=f.default;exports.Contacts=q.default;exports.Socials=g.default;exports.MembersAdd=p.default;exports.DetailsTab=b.default;exports.OrganizationsSection=z.default;exports.Publics=D.default;exports.Documents=S.default;exports.ButtonToggleMembership=O.default;exports.departmentsStore=M;exports.membershipsStore=y;exports.organizationStore=E;exports.organizationsRouter=C.default;
|
@@ -1,60 +1,54 @@
|
|
1
1
|
import { default as f } from "./components/pages/Organization.vue.js";
|
2
|
-
import { default as
|
2
|
+
import { default as m } from "./components/pages/Department.vue.js";
|
3
3
|
import { default as d } from "./components/pages/OrganizationEdit.vue.js";
|
4
|
-
import { default as
|
5
|
-
import { default as
|
6
|
-
import { default as
|
7
|
-
import { default as
|
8
|
-
import { default as
|
4
|
+
import { default as n } from "./components/pages/Organizations.vue.js";
|
5
|
+
import { default as l } from "./components/pages/DepartmentEdit.vue.js";
|
6
|
+
import { default as g } from "./components/blocks/CardOrganization.vue.js";
|
7
|
+
import { default as z } from "./components/blocks/EditArray.vue.js";
|
8
|
+
import { default as S } from "./components/blocks/User.vue.js";
|
9
9
|
import { default as O } from "./components/blocks/Unit.vue.js";
|
10
|
-
import { default as
|
11
|
-
import { default as
|
10
|
+
import { default as M } from "./components/blocks/DepartmentSub.vue.js";
|
11
|
+
import { default as y } from "./components/blocks/DepartmentMemberModify.vue.js";
|
12
12
|
import { default as A } from "./components/blocks/CardDepartment.vue.js";
|
13
13
|
import { default as T } from "./components/blocks/Rating.vue.js";
|
14
14
|
import { default as B } from "./components/blocks/EmptyState.vue.js";
|
15
|
-
import { default as
|
16
|
-
import { default as
|
17
|
-
import { default as
|
18
|
-
import { default as G } from "./components/sections/
|
19
|
-
import { default as I } from "./components/sections/
|
20
|
-
import { default as K } from "./components/sections/
|
21
|
-
import { default as
|
22
|
-
import { default as
|
23
|
-
import
|
24
|
-
import
|
25
|
-
import * as
|
26
|
-
import
|
27
|
-
import * as r from "./store/memberships.js";
|
28
|
-
import * as a from "./store/organizations.js";
|
29
|
-
import { default as tt } from "./router/organizations.js";
|
15
|
+
import { default as j } from "./components/blocks/Contacts.vue.js";
|
16
|
+
import { default as q } from "./components/blocks/Socials.vue.js";
|
17
|
+
import { default as w } from "./components/sections/MembersAdd.vue.js";
|
18
|
+
import { default as G } from "./components/sections/DetailsTab.vue.js";
|
19
|
+
import { default as I } from "./components/sections/Organizations.vue.js";
|
20
|
+
import { default as K } from "./components/sections/Publics.vue.js";
|
21
|
+
import { default as N } from "./components/sections/Documents.vue.js";
|
22
|
+
import { default as V } from "./components/elements/ButtonToggleMembership.vue.js";
|
23
|
+
import * as t from "./store/departments.js";
|
24
|
+
import * as a from "./store/memberships.js";
|
25
|
+
import * as r from "./store/organizations.js";
|
26
|
+
import { default as X } from "./router/organizations.js";
|
30
27
|
export {
|
31
|
-
|
28
|
+
V as ButtonToggleMembership,
|
32
29
|
A as CardDepartment,
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
30
|
+
g as CardOrganization,
|
31
|
+
j as Contacts,
|
32
|
+
m as Department,
|
33
|
+
l as DepartmentEdit,
|
34
|
+
y as DepartmentMemberModify,
|
35
|
+
M as DepartmentSub,
|
36
|
+
G as DetailsTab,
|
37
|
+
N as Documents,
|
38
|
+
z as EditArray,
|
42
39
|
B as EmptyState,
|
43
|
-
|
44
|
-
q as MembersAdd,
|
45
|
-
Y as MembersList,
|
40
|
+
w as MembersAdd,
|
46
41
|
f as Organization,
|
47
42
|
d as OrganizationEdit,
|
48
|
-
|
49
|
-
|
50
|
-
|
43
|
+
n as Organizations,
|
44
|
+
I as OrganizationsSection,
|
45
|
+
K as Publics,
|
51
46
|
T as Rating,
|
52
|
-
|
47
|
+
q as Socials,
|
53
48
|
O as Unit,
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
r as
|
58
|
-
|
59
|
-
tt as organizationsRouter
|
49
|
+
S as User,
|
50
|
+
t as departmentsStore,
|
51
|
+
a as membershipsStore,
|
52
|
+
r as organizationStore,
|
53
|
+
X as organizationsRouter
|
60
54
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const o=require("vue"),s=require("../../globals/store/globals.cjs"),n=l.default.create({baseURL:process.env.API_URL,withCredentials:!0});n.defaults.withCredentials=!0;const a=o.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),c={async readOne(r){try{const e=await n.get(`/api/departments/get/${r}`);return a.department=e.data,a.error=null,e.data}catch(e){return s.setError(e),null}},async read(r){try{const e=await n.get(`/api/departments/${r}`);return console.log("Response:",e),a.departments=e.data,a.error=null,e.data}catch(e){return s.setError(e),null}},async create(r,e){try{const t=await n.post(`/api/departments/${r}/create`,e);return a.error=null,a.department=t.data,t.data}catch(t){return s.setError(t),null}},async update(r,e){try{const t=await n.post(`/api/departments/${r}/update`,e);return a.error=null,t}catch(t){return s.setError(t),null}},async delete(r,e){try{return await n.delete(`/api/departments/${r}/delete`,{data:{_id:e}}),a.error=null,!0}catch(t){return s.setError(t),!1}}};o.watch(a,(r,e)=>{});exports.actions=c;exports.state=a;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import s from "../../../../node_modules/axios/lib/axios.js";
|
2
2
|
import "../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
3
|
-
import { reactive as
|
3
|
+
import { reactive as l, watch as p } from "vue";
|
4
4
|
import { setError as o } from "../../globals/store/globals.js";
|
5
5
|
const n = s.create({ baseURL: process.env.API_URL, withCredentials: !0 });
|
6
6
|
n.defaults.withCredentials = !0;
|
7
|
-
const a =
|
7
|
+
const a = l({
|
8
8
|
departments: [],
|
9
9
|
department: {
|
10
10
|
organization: "",
|
@@ -26,46 +26,50 @@ const a = i({
|
|
26
26
|
subdepartments: []
|
27
27
|
},
|
28
28
|
error: null
|
29
|
-
}),
|
29
|
+
}), m = {
|
30
30
|
async readOne(t) {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
31
|
+
try {
|
32
|
+
const e = await n.get(`/api/departments/get/${t}`);
|
33
|
+
return a.department = e.data, a.error = null, e.data;
|
34
|
+
} catch (e) {
|
35
|
+
return o(e), null;
|
36
|
+
}
|
36
37
|
},
|
37
38
|
async read(t) {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
try {
|
40
|
+
const e = await n.get(`/api/departments/${t}`);
|
41
|
+
return console.log("Response:", e), a.departments = e.data, a.error = null, e.data;
|
42
|
+
} catch (e) {
|
43
|
+
return o(e), null;
|
44
|
+
}
|
43
45
|
},
|
44
46
|
async create(t, e) {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
try {
|
48
|
+
const r = await n.post(`/api/departments/${t}/create`, e);
|
49
|
+
return a.error = null, a.department = r.data, r.data;
|
50
|
+
} catch (r) {
|
51
|
+
return o(r), null;
|
52
|
+
}
|
50
53
|
},
|
51
54
|
async update(t, e) {
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
55
|
+
try {
|
56
|
+
const r = await n.post(`/api/departments/${t}/update`, e);
|
57
|
+
return a.error = null, r;
|
58
|
+
} catch (r) {
|
59
|
+
return o(r), null;
|
60
|
+
}
|
57
61
|
},
|
58
62
|
async delete(t, e) {
|
59
|
-
|
60
|
-
a.error = null;
|
61
|
-
}
|
62
|
-
o(r);
|
63
|
-
}
|
63
|
+
try {
|
64
|
+
return await n.delete(`/api/departments/${t}/delete`, { data: { _id: e } }), a.error = null, !0;
|
65
|
+
} catch (r) {
|
66
|
+
return o(r), !1;
|
67
|
+
}
|
64
68
|
}
|
65
69
|
};
|
66
|
-
|
70
|
+
p(a, (t, e) => {
|
67
71
|
});
|
68
72
|
export {
|
69
|
-
|
73
|
+
m as actions,
|
70
74
|
a as state
|
71
75
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/lib/axios.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/lib/axios.cjs"),l=require("vue"),o=require("../../globals/store/globals.cjs"),n=d.default.create({baseURL:process.env.API_URL,withCredentials:!0}),a=l.reactive({memberships:[],error:null}),p={async read(r={}){let e={};r._id&&(e._id=r._id),r.user&&(e.user=r.user),r.target&&(e.target=r.target),r.roles&&(e.roles=r.roles);try{const s=await n.get("/api/memberships",{params:e});return a.error=null,a.memberships=s.data,Promise.resolve(s.data)}catch(s){return o.setError(s),Promise.reject(s)}},async create(r){try{const e=await n.post("/api/memberships/create",r);return a.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}},async update(r){try{const e=await n.post("/api/memberships/update",r);return a.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}},async delete(r){try{const e=await n.post("/api/memberships/delete",{_id:r});return a.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}}},h={handleMembershipUpdate(r,e,s,f,u,c){let t;if(Array.isArray(r)?t=r.find(i=>i._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t[u]=s,s)t.memberships.push(e),t[c]+=1;else{const i=t.memberships.findIndex(m=>m._id===e._id);i!==-1&&(t.memberships.splice(i,1),t[c]-=1)}}};l.watch(a,r=>{});exports.actions=p;exports.mutations=h;exports.state=a;
|