@ozdao/prometheus-framework 0.1.30 → 0.1.31
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-02c9721b.mjs +304 -0
- package/dist/BackofficeGallery-1d117a40.js +1 -0
- package/dist/BackofficeReports-cb4b180d.mjs +44 -0
- package/dist/BackofficeReports-d021871f.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-505c3ca5.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs +1945 -0
- package/dist/Button-2ca405bd.js +1 -0
- package/dist/Button-c59d387c.mjs +283 -0
- package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js +1 -0
- package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs +1 -0
- package/dist/CardOrganization-18c1e3fa.mjs +297 -0
- package/dist/CardOrganization-7d679e75.js +1 -0
- package/dist/Chips-2ada5eda.mjs +200 -0
- package/dist/Chips-8d0a1d2c.js +1 -0
- package/dist/Dashboard-239fb7a6.mjs +52 -0
- package/dist/Dashboard-94267906.js +1 -0
- package/dist/EULA-8265b0cf.mjs +4218 -0
- package/dist/EULA-cbb27503.js +1 -0
- package/dist/Feed-66095e66.js +1 -0
- package/dist/Feed-76fc4475.mjs +383 -0
- package/dist/Feed-e55bc6fa.js +1 -0
- package/dist/Feed-ef6c6ca3.mjs +371 -0
- package/dist/IconEdit-c98d3d06.mjs +339 -0
- package/dist/IconEdit-e4d0cc6e.js +1 -0
- package/dist/Image-052a3cc2.mjs +480 -0
- package/dist/Image-c90ee624.js +9 -0
- package/dist/MenuItem-0b249b94.mjs +93 -0
- package/dist/MenuItem-8b70d2cf.js +1 -0
- package/dist/Product-4b58701f.js +7 -0
- package/dist/Product-a6251018.mjs +844 -0
- package/dist/ProductEdit-3ff2af92.js +1 -0
- package/dist/ProductEdit-f901314c.mjs +306 -0
- package/dist/ProfileBlogposts-57931834.mjs +70 -0
- package/dist/ProfileBlogposts-af88ce98.js +1 -0
- package/dist/ProfileEvents-588eadf9.js +1 -0
- package/dist/ProfileEvents-ed7f9603.mjs +62 -0
- package/dist/ProfileOrganizations-7911deec.mjs +219 -0
- package/dist/ProfileOrganizations-ae258581.js +1 -0
- package/dist/Publics-50c0ff6c.js +1 -0
- package/dist/Publics-f34131bf.mjs +45 -0
- package/dist/Select-11ddabf5.mjs +79 -0
- package/dist/Select-3ca5ab39.js +1 -0
- package/dist/Socials-3fe01af1.mjs +275 -0
- package/dist/Socials-b19d0cb1.js +1 -0
- package/dist/addMembersQuantity-ea216f92.mjs +85 -0
- package/dist/addMembersQuantity-f922d82b.js +84 -0
- package/dist/auth-98fe3efb.mjs +612 -0
- package/dist/auth-acbe3ae1.js +7 -0
- package/dist/auth.client.cjs +7 -8
- package/dist/auth.client.js +435 -439
- package/dist/auth.validation-495e9d6d.js +1 -0
- package/dist/auth.validation-e265b496.mjs +23 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +55 -28
- package/dist/click-outside-0b0727d1.js +2 -0
- package/dist/click-outside-6101836c.mjs +19 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +121 -121
- package/dist/community.server.js +35 -5
- package/dist/community.server.mjs +35 -5
- package/dist/components/Button/Button.vue.d.ts +3 -0
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/CardHeader/CardHeader.vue.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Field/Field.vue.d.ts +1 -1
- package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
- package/dist/components/Popup/Popup.vue.d.ts +2 -1
- package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +1 -1
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Upload/Upload.vue.d.ts +1 -1
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +219 -217
- package/dist/events.server.js +2 -9
- package/dist/events.server.mjs +2 -9
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +2565 -2545
- package/dist/main.css +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/modules/backoffice/components/pages/Dashboard.vue.d.ts +6 -0
- package/dist/modules/icons/navigation/IconCross.vue.d.ts +4 -0
- package/dist/modules/legal/components/pages/legal/EULA.vue.d.ts +2 -0
- package/dist/modules/organizations/components/elements/ButtonFollow.vue.d.ts +1 -1
- package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +12 -0
- package/dist/modules/organizations/components/sections/DetailsTab.vue.d.ts +2 -58
- package/dist/modules/organizations/components/sections/Feed.vue.d.ts +1 -1
- package/dist/modules/reports/components/pages/BackofficeReports.vue.d.ts +2 -0
- package/dist/modules/reports/components/sections/FormReport.vue.d.ts +75 -0
- package/dist/modules/reports/store/reports.d.ts +41 -0
- package/dist/organizations-a241b21d.js +1 -0
- package/dist/organizations-ea9de495.mjs +122 -0
- package/dist/organizations.client-292e8444.js +3 -0
- package/dist/organizations.client-6fc91683.mjs +3072 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +51 -49
- package/dist/organizations.server.js +20 -28
- package/dist/organizations.server.mjs +20 -28
- package/dist/prometheus-framework.cjs.js +19 -19
- package/dist/prometheus-framework.es.js +1635 -1608
- package/dist/reports-270f69df.js +1 -0
- package/dist/reports-79cd9459.mjs +91 -0
- package/dist/reports.client.cjs +1 -0
- package/dist/reports.client.js +8 -0
- package/dist/reports.server.js +159 -0
- package/dist/reports.server.mjs +160 -0
- package/dist/states.validation-02ba0aee.js +1 -0
- package/dist/states.validation-e5f4fa3a.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +286 -242
- package/dist/users.server.js +6 -18
- package/dist/users.server.mjs +6 -18
- package/package.json +9 -1
- package/src/components/Button/Button.vue +66 -60
- package/src/components/CardHeader/CardHeader.vue +51 -50
- package/src/components/Dropdown/Dropdown.vue +28 -12
- package/src/components/FieldPhone/click-outside.js +0 -48
- package/src/components/Popup/Popup.vue +74 -23
- package/src/components/Select/Select.vue +10 -6
- package/src/main.ts +1 -1
- package/src/modules/auth/components/pages/EnterPassword.vue +6 -0
- package/src/modules/auth/router/auth.js +1 -1
- package/src/modules/auth/store/auth.js +1 -1
- package/src/modules/backoffice/components/layouts/Backoffice.vue +3 -3
- package/src/modules/backoffice/components/pages/Dashboard.vue +62 -0
- package/src/modules/backoffice/router/backoffice.js +26 -0
- package/src/modules/community/components/blocks/CardBlogpost.vue +3 -0
- package/src/modules/community/components/layouts/Community.vue +4 -4
- package/src/modules/community/components/pages/CreateBlogPost.vue +27 -28
- package/src/modules/community/components/sections/Comments.vue +4 -2
- package/src/modules/community/components/sections/Feed.vue +1 -1
- package/src/modules/community/controllers/blog.controller.js +22 -3
- package/src/modules/community/controllers/comments.controller.js +23 -5
- package/src/modules/events/components/blocks/CardEvent.vue +4 -0
- package/src/modules/events/components/pages/EditEvent.vue +27 -28
- package/src/modules/events/components/sections/Feed.vue +1 -1
- package/src/modules/events/controllers/events.controller.js +3 -10
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +7 -23
- package/src/modules/icons/navigation/IconCross.vue +22 -0
- package/src/modules/legal/components/pages/Legal.vue +3 -0
- package/src/modules/legal/components/pages/legal/EULA.vue +2148 -0
- package/src/modules/legal/router/legal.js +11 -4
- package/src/modules/middlewares/client/auth.validation.js +14 -0
- package/src/modules/mobile/components/Menu/Menu.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/elements/ButtonFollow.vue +9 -7
- package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +101 -0
- package/src/modules/organizations/components/pages/Organization.vue +1 -34
- package/src/modules/organizations/components/sections/DetailsTab.vue +86 -8
- package/src/modules/organizations/controllers/memberships.controller.js +10 -7
- package/src/modules/organizations/controllers/organizations.controller.js +9 -20
- package/src/modules/organizations/controllers/utils/addMembersQuantity.js +21 -0
- package/src/modules/organizations/controllers/utils/addUserStatusFields.js +65 -0
- package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +18 -0
- package/src/modules/organizations/models/membership.model.js +5 -5
- package/src/modules/organizations/store/memberships.js +6 -6
- package/src/modules/organizations/store/organizations.js +0 -1
- package/src/modules/products/products.server.js +5 -0
- package/src/modules/reports/components/pages/BackofficeReports.vue +67 -0
- package/src/modules/reports/components/sections/FormReport.vue +114 -0
- package/src/modules/reports/controllers/reports.controller.js +67 -0
- package/src/modules/reports/models/report.model.js +58 -0
- package/src/modules/reports/reports.client.js +17 -0
- package/src/modules/reports/reports.server.js +13 -0
- package/src/modules/reports/routes/reports.routes.js +43 -0
- package/src/modules/reports/store/reports.js +118 -0
- package/src/modules/users/components/pages/Profile.vue +57 -10
- package/src/modules/users/controllers/users.controller.js +6 -19
- package/src/styles/base/all.scss +2 -0
- package/src/styles/layout.scss +39 -63
- package/src/styles/theme.scss +0 -1
- package/src/styles/components/popup.scss +0 -55
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=require("vue-router"),t=require("./organizations.client-292e8444.js");require("./inputs.validation-24ae76b9.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const k=require("./Select-3ca5ab39.js"),E=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-505c3ca5.js"),d=require("./Button-2ca405bd.js");require("vue-i18n");require("./IconEdit-e4d0cc6e.js");const V=require("./vuex.esm-bundler-e8cf3cd2.js"),y=require("./vue-draggable-next.esm-bundler-80731ae0.js"),B=require("./UploadImageMultiple-eddaac87.js");require("./globals-928eb13c.js");require("./Tab-6f0a4909.js");require("./auth-acbe3ae1.js");require("./index-b41aac19.js");require("./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js");require("./Feed-66095e66.js");require("./EmptyState-7658d7d6.js");require("./Chips-8d0a1d2c.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Feed-e55bc6fa.js");require("./CardOrganization-7d679e75.js");require("./Socials-b19d0cb1.js");require("./organizations-a241b21d.js");require("./reports-270f69df.js");require("./UploadImage-0f488170.js");require("./Publics-50c0ff6c.js");require("./auth.validation-495e9d6d.js");require("./click-outside-0b0727d1.js");const w={class:"mn-big flex-column flex"},x={__name:"EditProductInfo",props:{product:Object},setup(s){const a=s,n=V.useStore();return e.toRefs(a),(r,l)=>(e.openBlock(),e.createElementBlock("div",w,[e.createTextVNode(e.toDisplayString(e.unref(n).products.current)+" ",1),e.createVNode(k.Select,{options:["unpublished","published","archivied"],select:e.unref(n).products.state.current.status,"onUpdate:select":l[0]||(l[0]=o=>e.unref(n).products.state.current.status=o),placeholder:"Display product",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["select"]),e.createVNode(d.Field,{field:e.unref(n).products.state.current.name,"onUpdate:field":l[1]||(l[1]=o=>e.unref(n).products.state.current.name=o),placeholder:"Введите название",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(d.Field,{field:e.unref(n).products.state.current.price,"onUpdate:field":l[2]||(l[2]=o=>e.unref(n).products.state.current.price=o),placeholder:"Введите цену",class:"w-100 mn-small bg-white radius-small pd-medium",type:"number"},null,8,["field"]),e.createVNode(d.Field,{field:e.unref(n).products.state.current.description,"onUpdate:field":l[3]||(l[3]=o=>e.unref(n).products.state.current.description=o),placeholder:"Введите описание",class:"w-100 mn-small bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])]))}},q={class:"mn-big"},$={class:"mn-small flex-nowrap flex"},C={class:"mn-r-thin"},S={class:"flex-column flex"},z={key:0,class:"w-100 mn-small"},P=["onClick"],I=e.createElementVNode("svg",{class:"i-small",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",fill:"#8a8a8a","fill-rule":"evenodd"})],-1),L=[I],N={__name:"EditParameters",props:{items:{type:Array,default:()=>[]},title:String,addButtonLabel:String,emptyMessage:String,keyName:String,valueName:String},emits:["add-info","delete-info"],setup(s,{emit:a}){const n=s;function r(){a("add-info",{})}function l(c){a("delete-info",c)}const{items:o,title:u,emptyMessage:m,addButtonLabel:h,keyName:p,valueName:_}=e.toRefs(n);return(c,v)=>(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",$,[e.createElementVNode("h5",C,e.toDisplayString(e.unref(u)),1),e.createElementVNode("button",{onClick:r,class:"i-small pd-thin button-delete button"},"+")]),e.createElementVNode("div",S,[e.unref(o).length==0?(e.openBlock(),e.createElementBlock("p",z,e.toDisplayString(e.unref(m)),1)):e.createCommentVNode("",!0),e.unref(o).length==0?(e.openBlock(),e.createBlock(d._sfc_main,{key:1,onClick:r,class:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),(i,g)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-medium w-100 flex-nowrap flex",key:g},[e.createVNode(d.Field,{field:i[e.unref(p)],"onUpdate:field":f=>i[e.unref(p)]=f,placeholder:"Название параметра",class:"w-100 mn-r-small bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.Field,{field:i[e.unref(_)],"onUpdate:field":f=>i[e.unref(_)]=f,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:f=>l(g),class:"mn-l-small button"},L,8,P)]))),128))])]))}},U={key:0,class:"mn-big"},A={class:"flex-column block"},D=["src"],F=["onClick"],R={__name:"EditProductImages",props:{product:Object},setup(s){function a(r){console.log(r),console.log(t.state.current.images),t.state.current.images.push(...r)}function n(r){t.state.current.images.splice(r,1)}return(r,l)=>(e.openBlock(),e.createElementBlock("div",null,[s.product.images.length<1?(e.openBlock(),e.createElementBlock("p",U," The product doesn't have any images yet. ")):e.createCommentVNode("",!0),e.createVNode(e.unref(y.VueDraggableNext),{class:"cols-4 dragArea list-group w-full",list:s.product.images,sort:!0,onChange:r.log},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.product.images,(o,u)=>(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("img",{class:"w-100 mn-small",src:(r.FILE_SERVER_URL||"")+o},null,8,D),e.createElementVNode("a",{onClick:m=>n(u),class:"w-100 br-grey br-solid br-1px button"},"Удалить",8,F)]))),256))]),_:1},8,["list","onChange"]),e.createVNode(B._sfc_main,{"onUpdate:images":a,uploadPath:"organizations/"+r.$route.params._id+"/products",class:"mn-t-semi pd-small w-100 button bg-main"},null,8,["uploadPath"])]))}};const M={class:"for-transition w-100"},T={class:"pd-b-zero pd-t-zero pd-thin"},j={class:"pd-thin"},O={class:"flex-nowrap flex bg-grey pd-medium radius-big"},G={key:0,class:"mn-r-auto"},H={key:1,class:"mn-r-auto"},J={class:"flex-nowrap flex pd-thin"},K={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},Q={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},W=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),X={class:"mn-semi"},Y=e.createElementVNode("h5",null,"Categories",-1),Z={class:""},ee={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},te=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),re={__name:"ProductEdit",async setup(s){let a,n;const r=b.useRoute(),l=b.useRouter();[a,n]=e.withAsyncContext(()=>t.actions.fetchCategories()),await a,n(),r.params.product&&([a,n]=e.withAsyncContext(()=>t.actions$1.read({_id:r.params.product})),await a,n());function o(){t.state.current.information.push({name:"",value:""})}function u(c){t.state.current.information.splice(c,1)}function m(){t.state.current.localization.push({locale:"",text:""})}function h(c){t.state.current.localization.splice(c,1)}function p(){r.params.product?t.actions$1.update(r.params.product,t.state.current):t.actions$1.create(r.params._id,t.state.current)}function _(){l.push({name:"ProductEdit",params:{_id:r.params._id,product:t.state.current._id}})}return(c,v)=>(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",T,[e.createVNode(t._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",j,[e.createElementVNode("header",O,[e.unref(r).params.product?(e.openBlock(),e.createElementBlock("h1",G,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",H,"Create Product")),e.createElementVNode("section",J,[e.createVNode(d._sfc_main,{submit:p,callback:_},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",K,[e.createElementVNode("div",Q,[W,e.createVNode(x,{product:t.state.current},null,8,["product"]),e.createElementVNode("div",X,[Y,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state$1.all,(i,g)=>(e.openBlock(),e.createBlock(E.Checkbox,{label:i.name,name:"categories",value:i.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(N,{items:t.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:o,onDeleteInfo:u},null,8,["items"]),e.createVNode(N,{items:t.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:m,onDeleteInfo:h},null,8,["items"])]),e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[te,e.createVNode(R,{product:t.state.current},null,8,["product"])])])])]))}};exports.default=re;
|
@@ -0,0 +1,306 @@
|
|
1
|
+
import { toRefs as I, openBlock as r, createElementBlock as d, createTextVNode as C, toDisplayString as w, unref as t, createVNode as i, createElementVNode as e, createCommentVNode as k, createBlock as U, withCtx as z, Fragment as N, renderList as P, withAsyncContext as E } from "vue";
|
2
|
+
import { useRoute as B, useRouter as V } from "vue-router";
|
3
|
+
import { s as l, a as R, b as $, _ as D, c as j } from "./organizations.client-6fc91683.mjs";
|
4
|
+
import "./inputs.validation-14e8e01f.mjs";
|
5
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
6
|
+
import { S as F } from "./Select-11ddabf5.mjs";
|
7
|
+
import { C as M } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs";
|
8
|
+
import { F as h, _ as L } from "./Button-c59d387c.mjs";
|
9
|
+
import "vue-i18n";
|
10
|
+
import "./IconEdit-c98d3d06.mjs";
|
11
|
+
import { u as O } from "./vuex.esm-bundler-57d8b6ba.mjs";
|
12
|
+
import { V as T } from "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
13
|
+
import { _ as q } from "./UploadImageMultiple-cb6c7188.mjs";
|
14
|
+
import "./globals-96ba60e4.mjs";
|
15
|
+
import "./Tab-a243605d.mjs";
|
16
|
+
import "./auth-98fe3efb.mjs";
|
17
|
+
import "./index-a661083c.mjs";
|
18
|
+
import "./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs";
|
19
|
+
import "./Feed-ef6c6ca3.mjs";
|
20
|
+
import "./EmptyState-34d85f10.mjs";
|
21
|
+
import "./Chips-2ada5eda.mjs";
|
22
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
23
|
+
import "./Feed-76fc4475.mjs";
|
24
|
+
import "./CardOrganization-18c1e3fa.mjs";
|
25
|
+
import "./Socials-3fe01af1.mjs";
|
26
|
+
import "./organizations-ea9de495.mjs";
|
27
|
+
import "./reports-79cd9459.mjs";
|
28
|
+
import "./UploadImage-3c627d89.mjs";
|
29
|
+
import "./Publics-f34131bf.mjs";
|
30
|
+
import "./auth.validation-e265b496.mjs";
|
31
|
+
import "./click-outside-6101836c.mjs";
|
32
|
+
const G = { class: "mn-big flex-column flex" }, H = {
|
33
|
+
__name: "EditProductInfo",
|
34
|
+
props: {
|
35
|
+
product: Object
|
36
|
+
},
|
37
|
+
setup(u) {
|
38
|
+
const c = u, o = O();
|
39
|
+
return I(c), (s, n) => (r(), d("div", G, [
|
40
|
+
C(w(t(o).products.current) + " ", 1),
|
41
|
+
i(F, {
|
42
|
+
options: [
|
43
|
+
"unpublished",
|
44
|
+
"published",
|
45
|
+
"archivied"
|
46
|
+
],
|
47
|
+
select: t(o).products.state.current.status,
|
48
|
+
"onUpdate:select": n[0] || (n[0] = (a) => t(o).products.state.current.status = a),
|
49
|
+
placeholder: "Display product",
|
50
|
+
class: "w-100 mn-small bg-white radius-small pd-medium"
|
51
|
+
}, null, 8, ["select"]),
|
52
|
+
i(h, {
|
53
|
+
field: t(o).products.state.current.name,
|
54
|
+
"onUpdate:field": n[1] || (n[1] = (a) => t(o).products.state.current.name = a),
|
55
|
+
placeholder: "Введите название",
|
56
|
+
class: "w-100 mn-small bg-white radius-small pd-medium"
|
57
|
+
}, null, 8, ["field"]),
|
58
|
+
i(h, {
|
59
|
+
field: t(o).products.state.current.price,
|
60
|
+
"onUpdate:field": n[2] || (n[2] = (a) => t(o).products.state.current.price = a),
|
61
|
+
placeholder: "Введите цену",
|
62
|
+
class: "w-100 mn-small bg-white radius-small pd-medium",
|
63
|
+
type: "number"
|
64
|
+
}, null, 8, ["field"]),
|
65
|
+
i(h, {
|
66
|
+
field: t(o).products.state.current.description,
|
67
|
+
"onUpdate:field": n[3] || (n[3] = (a) => t(o).products.state.current.description = a),
|
68
|
+
placeholder: "Введите описание",
|
69
|
+
class: "w-100 mn-small bg-white radius-small pd-medium",
|
70
|
+
type: "textarea"
|
71
|
+
}, null, 8, ["field"])
|
72
|
+
]));
|
73
|
+
}
|
74
|
+
}, J = { class: "mn-big" }, K = { class: "mn-small flex-nowrap flex" }, Q = { class: "mn-r-thin" }, W = { class: "flex-column flex" }, X = {
|
75
|
+
key: 0,
|
76
|
+
class: "w-100 mn-small"
|
77
|
+
}, Y = ["onClick"], Z = /* @__PURE__ */ e("svg", {
|
78
|
+
class: "i-small",
|
79
|
+
fill: "none",
|
80
|
+
height: "20",
|
81
|
+
viewBox: "0 0 20 20",
|
82
|
+
width: "20",
|
83
|
+
xmlns: "http://www.w3.org/2000/svg"
|
84
|
+
}, [
|
85
|
+
/* @__PURE__ */ e("path", {
|
86
|
+
"clip-rule": "evenodd",
|
87
|
+
d: "m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",
|
88
|
+
fill: "#8a8a8a",
|
89
|
+
"fill-rule": "evenodd"
|
90
|
+
})
|
91
|
+
], -1), tt = [
|
92
|
+
Z
|
93
|
+
], S = {
|
94
|
+
__name: "EditParameters",
|
95
|
+
props: {
|
96
|
+
items: {
|
97
|
+
type: Array,
|
98
|
+
default: () => []
|
99
|
+
},
|
100
|
+
title: String,
|
101
|
+
addButtonLabel: String,
|
102
|
+
emptyMessage: String,
|
103
|
+
keyName: String,
|
104
|
+
valueName: String
|
105
|
+
},
|
106
|
+
emits: ["add-info", "delete-info"],
|
107
|
+
setup(u, { emit: c }) {
|
108
|
+
const o = u;
|
109
|
+
function s() {
|
110
|
+
c("add-info", {});
|
111
|
+
}
|
112
|
+
function n(m) {
|
113
|
+
c("delete-info", m);
|
114
|
+
}
|
115
|
+
const { items: a, title: _, emptyMessage: f, addButtonLabel: y, keyName: g, valueName: b } = I(o);
|
116
|
+
return (m, A) => (r(), d("div", J, [
|
117
|
+
e("div", K, [
|
118
|
+
e("h5", Q, w(t(_)), 1),
|
119
|
+
e("button", {
|
120
|
+
onClick: s,
|
121
|
+
class: "i-small pd-thin button-delete button"
|
122
|
+
}, "+")
|
123
|
+
]),
|
124
|
+
e("div", W, [
|
125
|
+
t(a).length == 0 ? (r(), d("p", X, w(t(f)), 1)) : k("", !0),
|
126
|
+
t(a).length == 0 ? (r(), U(L, {
|
127
|
+
key: 1,
|
128
|
+
onClick: s,
|
129
|
+
class: "button"
|
130
|
+
}, {
|
131
|
+
default: z(() => [
|
132
|
+
C(w(t(y)), 1)
|
133
|
+
]),
|
134
|
+
_: 1
|
135
|
+
})) : k("", !0),
|
136
|
+
(r(!0), d(N, null, P(t(a), (p, x) => (r(), d("div", {
|
137
|
+
class: "mn-medium w-100 flex-nowrap flex",
|
138
|
+
key: x
|
139
|
+
}, [
|
140
|
+
i(h, {
|
141
|
+
field: p[t(g)],
|
142
|
+
"onUpdate:field": (v) => p[t(g)] = v,
|
143
|
+
placeholder: "Название параметра",
|
144
|
+
class: "w-100 mn-r-small bg-white radius-small pd-medium"
|
145
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
146
|
+
i(h, {
|
147
|
+
field: p[t(b)],
|
148
|
+
"onUpdate:field": (v) => p[t(b)] = v,
|
149
|
+
placeholder: "Значение параметра",
|
150
|
+
class: "w-100 bg-white radius-small pd-medium"
|
151
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
152
|
+
e("button", {
|
153
|
+
onClick: (v) => n(x),
|
154
|
+
class: "mn-l-small button"
|
155
|
+
}, tt, 8, Y)
|
156
|
+
]))), 128))
|
157
|
+
])
|
158
|
+
]));
|
159
|
+
}
|
160
|
+
}, et = {
|
161
|
+
key: 0,
|
162
|
+
class: "mn-big"
|
163
|
+
}, st = { class: "flex-column block" }, ot = ["src"], at = ["onClick"], lt = {
|
164
|
+
__name: "EditProductImages",
|
165
|
+
props: {
|
166
|
+
product: Object
|
167
|
+
},
|
168
|
+
setup(u) {
|
169
|
+
function c(s) {
|
170
|
+
console.log(s), console.log(l.current.images), l.current.images.push(...s);
|
171
|
+
}
|
172
|
+
function o(s) {
|
173
|
+
l.current.images.splice(s, 1);
|
174
|
+
}
|
175
|
+
return (s, n) => (r(), d("div", null, [
|
176
|
+
u.product.images.length < 1 ? (r(), d("p", et, " The product doesn't have any images yet. ")) : k("", !0),
|
177
|
+
i(t(T), {
|
178
|
+
class: "cols-4 dragArea list-group w-full",
|
179
|
+
list: u.product.images,
|
180
|
+
sort: !0,
|
181
|
+
onChange: s.log
|
182
|
+
}, {
|
183
|
+
default: z(() => [
|
184
|
+
(r(!0), d(N, null, P(u.product.images, (a, _) => (r(), d("div", st, [
|
185
|
+
e("img", {
|
186
|
+
class: "w-100 mn-small",
|
187
|
+
src: (s.FILE_SERVER_URL || "") + a
|
188
|
+
}, null, 8, ot),
|
189
|
+
e("a", {
|
190
|
+
onClick: (f) => o(_),
|
191
|
+
class: "w-100 br-grey br-solid br-1px button"
|
192
|
+
}, "Удалить", 8, at)
|
193
|
+
]))), 256))
|
194
|
+
]),
|
195
|
+
_: 1
|
196
|
+
}, 8, ["list", "onChange"]),
|
197
|
+
i(q, {
|
198
|
+
"onUpdate:images": c,
|
199
|
+
uploadPath: "organizations/" + s.$route.params._id + "/products",
|
200
|
+
class: "mn-t-semi pd-small w-100 button bg-main"
|
201
|
+
}, null, 8, ["uploadPath"])
|
202
|
+
]));
|
203
|
+
}
|
204
|
+
};
|
205
|
+
const rt = { class: "for-transition w-100" }, it = { class: "pd-b-zero pd-t-zero pd-thin" }, nt = { class: "pd-thin" }, dt = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, ct = {
|
206
|
+
key: 0,
|
207
|
+
class: "mn-r-auto"
|
208
|
+
}, ut = {
|
209
|
+
key: 1,
|
210
|
+
class: "mn-r-auto"
|
211
|
+
}, mt = { class: "flex-nowrap flex pd-thin" }, pt = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, _t = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, ht = /* @__PURE__ */ e("h3", { class: "mn-semi" }, "Profile", -1), ft = { class: "mn-semi" }, gt = /* @__PURE__ */ e("h5", null, "Categories", -1), bt = { class: "" }, vt = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, wt = /* @__PURE__ */ e("h3", { class: "mn-semi" }, "Images", -1), Yt = {
|
212
|
+
__name: "ProductEdit",
|
213
|
+
async setup(u) {
|
214
|
+
let c, o;
|
215
|
+
const s = B(), n = V();
|
216
|
+
[c, o] = E(() => R.fetchCategories()), await c, o(), s.params.product && ([c, o] = E(() => $.read({ _id: s.params.product })), await c, o());
|
217
|
+
function a() {
|
218
|
+
l.current.information.push({ name: "", value: "" });
|
219
|
+
}
|
220
|
+
function _(m) {
|
221
|
+
l.current.information.splice(m, 1);
|
222
|
+
}
|
223
|
+
function f() {
|
224
|
+
l.current.localization.push({ locale: "", text: "" });
|
225
|
+
}
|
226
|
+
function y(m) {
|
227
|
+
l.current.localization.splice(m, 1);
|
228
|
+
}
|
229
|
+
function g() {
|
230
|
+
s.params.product ? $.update(s.params.product, l.current) : $.create(s.params._id, l.current);
|
231
|
+
}
|
232
|
+
function b() {
|
233
|
+
n.push({ name: "ProductEdit", params: { _id: s.params._id, product: l.current._id } });
|
234
|
+
}
|
235
|
+
return (m, A) => (r(), d("div", rt, [
|
236
|
+
e("div", it, [
|
237
|
+
i(D, { class: "pd-medium bg-grey radius-big" })
|
238
|
+
]),
|
239
|
+
e("div", nt, [
|
240
|
+
e("header", dt, [
|
241
|
+
t(s).params.product ? (r(), d("h1", ct, "Edit Product")) : (r(), d("h1", ut, "Create Product")),
|
242
|
+
e("section", mt, [
|
243
|
+
i(L, {
|
244
|
+
submit: g,
|
245
|
+
callback: b
|
246
|
+
}, {
|
247
|
+
default: z(() => [
|
248
|
+
C("Save Product")
|
249
|
+
]),
|
250
|
+
_: 1
|
251
|
+
})
|
252
|
+
])
|
253
|
+
])
|
254
|
+
]),
|
255
|
+
e("div", pt, [
|
256
|
+
e("div", _t, [
|
257
|
+
ht,
|
258
|
+
i(H, {
|
259
|
+
product: l.current
|
260
|
+
}, null, 8, ["product"]),
|
261
|
+
e("div", ft, [
|
262
|
+
gt,
|
263
|
+
(r(!0), d(N, null, P(j.all, (p, x) => (r(), U(M, {
|
264
|
+
label: p.name,
|
265
|
+
name: "categories",
|
266
|
+
value: p.url,
|
267
|
+
class: "w-100 mn-t-small bg-white radius-small pd-small",
|
268
|
+
radio: l.current.category
|
269
|
+
}, null, 8, ["label", "value", "radio"]))), 256))
|
270
|
+
]),
|
271
|
+
i(S, {
|
272
|
+
items: l.current.information,
|
273
|
+
title: "Parameters",
|
274
|
+
emptyMessage: "No parameters",
|
275
|
+
addButtonLabel: "Add parameter",
|
276
|
+
keyName: "name",
|
277
|
+
valueName: "value",
|
278
|
+
onAddInfo: a,
|
279
|
+
onDeleteInfo: _
|
280
|
+
}, null, 8, ["items"]),
|
281
|
+
i(S, {
|
282
|
+
items: l.current.localization,
|
283
|
+
title: "Localization",
|
284
|
+
emptyMessage: "No localizations",
|
285
|
+
addButtonLabel: "Add localization",
|
286
|
+
keyName: "locale",
|
287
|
+
valueName: "text",
|
288
|
+
onAddInfo: f,
|
289
|
+
onDeleteInfo: y
|
290
|
+
}, null, 8, ["items"])
|
291
|
+
]),
|
292
|
+
e("div", bt, [
|
293
|
+
e("div", vt, [
|
294
|
+
wt,
|
295
|
+
i(lt, {
|
296
|
+
product: l.current
|
297
|
+
}, null, 8, ["product"])
|
298
|
+
])
|
299
|
+
])
|
300
|
+
])
|
301
|
+
]));
|
302
|
+
}
|
303
|
+
};
|
304
|
+
export {
|
305
|
+
Yt as default
|
306
|
+
};
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import { ref as f, watch as g, openBlock as t, createElementBlock as p, createElementVNode as d, unref as u, createCommentVNode as o, createBlock as i } from "vue";
|
2
|
+
import { useRoute as v, useRouter as y } from "vue-router";
|
3
|
+
import { _ as b } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as m } from "./Feed-76fc4475.mjs";
|
5
|
+
import { s } from "./auth-98fe3efb.mjs";
|
6
|
+
import "./inputs.validation-14e8e01f.mjs";
|
7
|
+
import "./globals-96ba60e4.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./EmptyState-34d85f10.mjs";
|
10
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
11
|
+
import "./Chips-2ada5eda.mjs";
|
12
|
+
import "./IconEdit-c98d3d06.mjs";
|
13
|
+
import "./Button-c59d387c.mjs";
|
14
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
15
|
+
import "./Select-11ddabf5.mjs";
|
16
|
+
import "./reports-79cd9459.mjs";
|
17
|
+
import "./index-a661083c.mjs";
|
18
|
+
import "./click-outside-6101836c.mjs";
|
19
|
+
const h = { class: "pd-thin" }, k = { class: "mn-medium flex-v-center flex-nowrap flex" }, w = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, "Posts", -1), H = {
|
20
|
+
__name: "ProfileBlogposts",
|
21
|
+
setup(q) {
|
22
|
+
const e = v(), c = y();
|
23
|
+
let _ = e.query.tab ? e.query.tab : "posts";
|
24
|
+
const r = f(_);
|
25
|
+
return e.query.tab = r.value, g(r, (l) => {
|
26
|
+
c.replace({ query: { ...e.query, tab: l } });
|
27
|
+
}), (l, a) => (t(), p("div", h, [
|
28
|
+
d("header", k, [
|
29
|
+
w,
|
30
|
+
s.user._id === u(e).params._id ? (t(), p("button", {
|
31
|
+
key: 0,
|
32
|
+
onClick: a[0] || (a[0] = (n) => l.$router.push({
|
33
|
+
name: "Create BlogPost"
|
34
|
+
})),
|
35
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
36
|
+
}, " + ")) : o("", !0)
|
37
|
+
]),
|
38
|
+
s.user._id === u(e).params._id ? (t(), i(b, {
|
39
|
+
key: 0,
|
40
|
+
selected: r.value,
|
41
|
+
"onUpdate:selected": a[1] || (a[1] = (n) => r.value = n),
|
42
|
+
tabs: [
|
43
|
+
{ name: "My posts", value: "posts" },
|
44
|
+
{ name: "Drafts", value: "drafts" },
|
45
|
+
{ name: "Following", value: "following" }
|
46
|
+
],
|
47
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
48
|
+
}, null, 8, ["selected"])) : o("", !0),
|
49
|
+
r.value === "posts" ? (t(), i(m, {
|
50
|
+
key: 1,
|
51
|
+
user: s.user._id,
|
52
|
+
creator: u(e).params._id
|
53
|
+
}, null, 8, ["user", "creator"])) : o("", !0),
|
54
|
+
r.value === "drafts" ? (t(), i(m, {
|
55
|
+
key: 2,
|
56
|
+
user: s.user._id,
|
57
|
+
creator: u(e).params._id,
|
58
|
+
status: "draft"
|
59
|
+
}, null, 8, ["user", "creator"])) : o("", !0),
|
60
|
+
r.value === "following" ? (t(), i(m, {
|
61
|
+
key: 3,
|
62
|
+
user: s.user._id,
|
63
|
+
category: "following"
|
64
|
+
}, null, 8, ["user"])) : o("", !0)
|
65
|
+
]));
|
66
|
+
}
|
67
|
+
};
|
68
|
+
export {
|
69
|
+
H as default
|
70
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("vue-router"),d=require("./Tab-6f0a4909.js"),a=require("./Feed-e55bc6fa.js"),o=require("./auth-acbe3ae1.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Chips-8d0a1d2c.js");require("./IconEdit-e4d0cc6e.js");require("./Button-2ca405bd.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),f={__name:"ProfileBlogposts",setup(q){const r=l.useRoute(),c=l.useRouter();let i=r.query.tab?r.query.tab:"posts";const t=e.ref(i);return r.query.tab=t.value,e.watch(t,u=>{c.replace({query:{...r.query,tab:u}})}),(u,s)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=n=>u.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createBlock(d._sfc_main,{key:0,selected:t.value,"onUpdate:selected":s[1]||(s[1]=n=>t.value=n),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),t.value==="posts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:1,user:o.state.user._id,creator:e.unref(r).params._id},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="drafts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:2,user:o.state.user._id,creator:e.unref(r).params._id,status:"draft"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="following"?(e.openBlock(),e.createBlock(a._sfc_main,{key:3,user:o.state.user._id,category:"following"},null,8,["user"])):e.createCommentVNode("",!0)]))}};exports.default=f;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),d=require("./Tab-6f0a4909.js"),c=require("./Feed-66095e66.js"),u=require("./auth-acbe3ae1.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./Chips-8d0a1d2c.js");require("./IconEdit-e4d0cc6e.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Button-2ca405bd.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(v){const r=i.useRoute(),n=i.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,s=>{n.replace({query:{...r.query,tab:s}})}),(s,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[q,u.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=o=>e.unref(n).push({name:"Create Event"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d._sfc_main,{selected:t.value,"onUpdate:selected":a[1]||(a[1]=o=>t.value=o),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="owner"?(e.openBlock(),e.createBlock(c._sfc_main,{key:0,user:u.state.user._id,creator:e.unref(r).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="participant"?(e.openBlock(),e.createBlock(c._sfc_main,{key:1,user:u.state.user._id,participant:e.unref(r).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { ref as f, watch as v, openBlock as a, createElementBlock as p, createElementVNode as d, unref as o, createCommentVNode as s, createVNode as b, createBlock as c } from "vue";
|
2
|
+
import { useRoute as y, useRouter as h } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as l } from "./Feed-ef6c6ca3.mjs";
|
5
|
+
import { s as i } from "./auth-98fe3efb.mjs";
|
6
|
+
import "./inputs.validation-14e8e01f.mjs";
|
7
|
+
import "./globals-96ba60e4.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./EmptyState-34d85f10.mjs";
|
10
|
+
import "./Chips-2ada5eda.mjs";
|
11
|
+
import "./IconEdit-c98d3d06.mjs";
|
12
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
13
|
+
import "./Button-c59d387c.mjs";
|
14
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
15
|
+
import "./Select-11ddabf5.mjs";
|
16
|
+
import "./reports-79cd9459.mjs";
|
17
|
+
import "./index-a661083c.mjs";
|
18
|
+
import "./click-outside-6101836c.mjs";
|
19
|
+
const g = { class: "pd-thin" }, w = { class: "mn-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, " Events ", -1), I = {
|
20
|
+
__name: "ProfileEvents",
|
21
|
+
setup(x) {
|
22
|
+
const e = y(), n = h();
|
23
|
+
let _ = e.query.tab ? e.query.tab : "owner";
|
24
|
+
const r = f(_);
|
25
|
+
return e.query.tab = r.value, v(r, (m) => {
|
26
|
+
n.replace({ query: { ...e.query, tab: m } });
|
27
|
+
}), (m, t) => (a(), p("div", g, [
|
28
|
+
d("header", w, [
|
29
|
+
q,
|
30
|
+
i.user._id === o(e).params._id ? (a(), p("button", {
|
31
|
+
key: 0,
|
32
|
+
onClick: t[0] || (t[0] = (u) => o(n).push({ name: "Create Event" })),
|
33
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
34
|
+
}, " + ")) : s("", !0)
|
35
|
+
]),
|
36
|
+
b(k, {
|
37
|
+
selected: r.value,
|
38
|
+
"onUpdate:selected": t[1] || (t[1] = (u) => r.value = u),
|
39
|
+
tabs: [
|
40
|
+
{ name: "My", value: "owner" },
|
41
|
+
{ name: "Participant", value: "participant" }
|
42
|
+
],
|
43
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
44
|
+
}, null, 8, ["selected"]),
|
45
|
+
r.value === "owner" ? (a(), c(l, {
|
46
|
+
key: 0,
|
47
|
+
user: i.user._id,
|
48
|
+
creator: o(e).params._id,
|
49
|
+
sortOrder: "asc"
|
50
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
51
|
+
r.value === "participant" ? (a(), c(l, {
|
52
|
+
key: 1,
|
53
|
+
user: i.user._id,
|
54
|
+
participant: o(e).params._id,
|
55
|
+
sortOrder: "desc"
|
56
|
+
}, null, 8, ["user", "participant"])) : s("", !0)
|
57
|
+
]));
|
58
|
+
}
|
59
|
+
};
|
60
|
+
export {
|
61
|
+
I as default
|
62
|
+
};
|