@ozdao/prometheus-framework 0.1.24 → 0.1.26
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-0e0132f5.mjs +306 -0
- package/dist/BackofficeGallery-a52a27b6.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-19e23006.mjs +1945 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-f3d37f29.js +1 -0
- package/dist/Button-d8e72ac0.mjs +296 -0
- package/dist/Button-ee08e6bf.js +1 -0
- package/dist/ButtonFollow-00d85977.mjs +133 -0
- package/dist/ButtonFollow-7c0180b3.js +1 -0
- package/dist/CardOrganization-3f4a13d3.mjs +230 -0
- package/dist/CardOrganization-bf366e4e.js +1 -0
- package/dist/Feed-0b1dad65.js +1 -0
- package/dist/Feed-8110366a.mjs +439 -0
- package/dist/Feed-82ad8e29.mjs +368 -0
- package/dist/Feed-c8b1c72d.js +1 -0
- package/dist/Image-2269667e.js +9 -0
- package/dist/Image-7dcfe90d.mjs +477 -0
- package/dist/MenuItem-1216a99f.js +1 -0
- package/dist/MenuItem-97c50b97.mjs +93 -0
- package/dist/Popup-0420381f.js +1 -0
- package/dist/Popup-47b37484.mjs +76 -0
- package/dist/Product-977a8a7f.js +7 -0
- package/dist/Product-bbe7171a.mjs +842 -0
- package/dist/ProductEdit-e4cad9d1.js +1 -0
- package/dist/ProductEdit-f7a9af17.mjs +303 -0
- package/dist/ProfileBlogposts-5379335e.js +1 -0
- package/dist/ProfileBlogposts-5deee0c5.mjs +65 -0
- package/dist/ProfileComments-3cf3e265.mjs +44 -0
- package/dist/ProfileComments-8c9146ef.js +1 -0
- package/dist/ProfileEvents-7502ed90.mjs +57 -0
- package/dist/ProfileEvents-ea023c17.js +1 -0
- package/dist/ProfileLikes-23b6f2f9.js +1 -0
- package/dist/ProfileLikes-5b52e4ae.mjs +44 -0
- package/dist/ProfileOrganizations-769325c7.js +1 -0
- package/dist/ProfileOrganizations-c5151835.mjs +214 -0
- package/dist/Publics-4438ca51.js +1 -0
- package/dist/Publics-538180a8.mjs +45 -0
- package/dist/UploadImage-33f6a9f4.js +1 -0
- package/dist/UploadImage-f7b0335f.mjs +83 -0
- package/dist/UploadImageMultiple-297b3897.js +1 -0
- package/dist/UploadImageMultiple-7b132ba0.mjs +58 -0
- package/dist/auth-2f9b2dfc.js +7 -0
- package/dist/auth-b047fdc0.mjs +612 -0
- package/dist/auth.client.cjs +8 -8
- package/dist/auth.client.js +24 -23
- package/dist/auth.validation-02e0629b.mjs +20 -0
- package/dist/auth.validation-6a59443b.js +1 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +1 -1
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +69 -68
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +21 -20
- package/dist/index-0ab9d59c.mjs +934 -0
- package/dist/index-7ecbf72a.js +2 -0
- package/dist/legal.client.cjs +1 -0
- package/dist/legal.client.js +8426 -0
- package/dist/modules/landing/components/pages/Legal.vue.d.ts +2 -0
- package/dist/modules/landing/components/pages/legal/Cookies.vue.d.ts +2 -0
- package/dist/modules/landing/components/pages/legal/Privacy.vue.d.ts +2 -0
- package/dist/modules/landing/components/pages/legal/Terms.vue.d.ts +2 -0
- package/dist/modules/legal/components/pages/Legal.vue.d.ts +2 -0
- package/dist/modules/legal/components/pages/legal/Cookies.vue.d.ts +2 -0
- package/dist/modules/legal/components/pages/legal/Privacy.vue.d.ts +2 -0
- package/dist/modules/legal/components/pages/legal/Terms.vue.d.ts +2 -0
- package/dist/organizations-aed4245d.mjs +122 -0
- package/dist/organizations-bb8f676d.js +1 -0
- package/dist/organizations.client-5548024c.js +3 -0
- package/dist/organizations.client-976762d2.mjs +3021 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +45 -44
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +254 -324
- package/package.json +5 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
- package/src/modules/constructor/components/sections/Constructor.vue +3 -3
- package/src/modules/landing/landing.client.js +1 -2
- package/src/modules/legal/components/pages/Legal.vue +43 -0
- package/src/modules/legal/components/pages/legal/Cookies.vue +370 -0
- package/src/modules/legal/components/pages/legal/Privacy.vue +4284 -0
- package/src/modules/legal/components/pages/legal/Terms.vue +1283 -0
- package/src/modules/legal/legal.client.js +16 -0
- package/src/modules/legal/router/legal.js +22 -0
- package/src/modules/users/components/pages/Profile.vue +13 -0
@@ -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-5548024c.js");require("./inputs.validation-24ae76b9.js");require("./index-7ecbf72a.js");require("./Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js");const k=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-f3d37f29.js"),d=require("./Button-ee08e6bf.js");require("vue-i18n");const E=require("./Select-b9299fb6.js"),V=require("./vuex.esm-bundler-e8cf3cd2.js"),y=require("./vue-draggable-next.esm-bundler-80731ae0.js"),B=require("./UploadImageMultiple-297b3897.js");require("./globals-928eb13c.js");require("./Tab-6f0a4909.js");require("./ButtonFollow-7c0180b3.js");require("./auth-2f9b2dfc.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Feed-c8b1c72d.js");require("./EmptyState-7658d7d6.js");require("./Chips-4d8ac62e.js");require("./IconEdit-4cfe2115.js");require("./Feed-0b1dad65.js");require("./Socials-821bd677.js");require("./CardOrganization-bf366e4e.js");require("./organizations-bb8f676d.js");require("./UploadImage-33f6a9f4.js");require("./Publics-4438ca51.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(E.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(k.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,303 @@
|
|
1
|
+
import { toRefs as I, openBlock as n, createElementBlock as d, createTextVNode as C, toDisplayString as w, unref as e, createVNode as r, createElementVNode as t, 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-976762d2.mjs";
|
4
|
+
import "./inputs.validation-14e8e01f.mjs";
|
5
|
+
import "./index-0ab9d59c.mjs";
|
6
|
+
import "./Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs";
|
7
|
+
import { C as F } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-19e23006.mjs";
|
8
|
+
import { F as h, _ as L } from "./Button-d8e72ac0.mjs";
|
9
|
+
import "vue-i18n";
|
10
|
+
import { S as M } from "./Select-90d4b7c8.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-7b132ba0.mjs";
|
14
|
+
import "./globals-96ba60e4.mjs";
|
15
|
+
import "./Tab-a243605d.mjs";
|
16
|
+
import "./ButtonFollow-00d85977.mjs";
|
17
|
+
import "./auth-b047fdc0.mjs";
|
18
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
19
|
+
import "./Feed-82ad8e29.mjs";
|
20
|
+
import "./EmptyState-34d85f10.mjs";
|
21
|
+
import "./Chips-03ff0c34.mjs";
|
22
|
+
import "./IconEdit-eacf3856.mjs";
|
23
|
+
import "./Feed-8110366a.mjs";
|
24
|
+
import "./Socials-8193477c.mjs";
|
25
|
+
import "./CardOrganization-3f4a13d3.mjs";
|
26
|
+
import "./organizations-aed4245d.mjs";
|
27
|
+
import "./UploadImage-f7b0335f.mjs";
|
28
|
+
import "./Publics-538180a8.mjs";
|
29
|
+
const G = { class: "mn-big flex-column flex" }, H = {
|
30
|
+
__name: "EditProductInfo",
|
31
|
+
props: {
|
32
|
+
product: Object
|
33
|
+
},
|
34
|
+
setup(u) {
|
35
|
+
const c = u, o = O();
|
36
|
+
return I(c), (s, i) => (n(), d("div", G, [
|
37
|
+
C(w(e(o).products.current) + " ", 1),
|
38
|
+
r(M, {
|
39
|
+
options: [
|
40
|
+
"unpublished",
|
41
|
+
"published",
|
42
|
+
"archivied"
|
43
|
+
],
|
44
|
+
select: e(o).products.state.current.status,
|
45
|
+
"onUpdate:select": i[0] || (i[0] = (a) => e(o).products.state.current.status = a),
|
46
|
+
placeholder: "Display product",
|
47
|
+
class: "w-100 mn-small bg-white radius-small pd-medium"
|
48
|
+
}, null, 8, ["select"]),
|
49
|
+
r(h, {
|
50
|
+
field: e(o).products.state.current.name,
|
51
|
+
"onUpdate:field": i[1] || (i[1] = (a) => e(o).products.state.current.name = a),
|
52
|
+
placeholder: "Введите название",
|
53
|
+
class: "w-100 mn-small bg-white radius-small pd-medium"
|
54
|
+
}, null, 8, ["field"]),
|
55
|
+
r(h, {
|
56
|
+
field: e(o).products.state.current.price,
|
57
|
+
"onUpdate:field": i[2] || (i[2] = (a) => e(o).products.state.current.price = a),
|
58
|
+
placeholder: "Введите цену",
|
59
|
+
class: "w-100 mn-small bg-white radius-small pd-medium",
|
60
|
+
type: "number"
|
61
|
+
}, null, 8, ["field"]),
|
62
|
+
r(h, {
|
63
|
+
field: e(o).products.state.current.description,
|
64
|
+
"onUpdate:field": i[3] || (i[3] = (a) => e(o).products.state.current.description = a),
|
65
|
+
placeholder: "Введите описание",
|
66
|
+
class: "w-100 mn-small bg-white radius-small pd-medium",
|
67
|
+
type: "textarea"
|
68
|
+
}, null, 8, ["field"])
|
69
|
+
]));
|
70
|
+
}
|
71
|
+
}, J = { class: "mn-big" }, K = { class: "mn-small flex-nowrap flex" }, Q = { class: "mn-r-thin" }, W = { class: "flex-column flex" }, X = {
|
72
|
+
key: 0,
|
73
|
+
class: "w-100 mn-small"
|
74
|
+
}, Y = ["onClick"], Z = /* @__PURE__ */ t("svg", {
|
75
|
+
class: "i-small",
|
76
|
+
fill: "none",
|
77
|
+
height: "20",
|
78
|
+
viewBox: "0 0 20 20",
|
79
|
+
width: "20",
|
80
|
+
xmlns: "http://www.w3.org/2000/svg"
|
81
|
+
}, [
|
82
|
+
/* @__PURE__ */ t("path", {
|
83
|
+
"clip-rule": "evenodd",
|
84
|
+
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",
|
85
|
+
fill: "#8a8a8a",
|
86
|
+
"fill-rule": "evenodd"
|
87
|
+
})
|
88
|
+
], -1), ee = [
|
89
|
+
Z
|
90
|
+
], S = {
|
91
|
+
__name: "EditParameters",
|
92
|
+
props: {
|
93
|
+
items: {
|
94
|
+
type: Array,
|
95
|
+
default: () => []
|
96
|
+
},
|
97
|
+
title: String,
|
98
|
+
addButtonLabel: String,
|
99
|
+
emptyMessage: String,
|
100
|
+
keyName: String,
|
101
|
+
valueName: String
|
102
|
+
},
|
103
|
+
emits: ["add-info", "delete-info"],
|
104
|
+
setup(u, { emit: c }) {
|
105
|
+
const o = u;
|
106
|
+
function s() {
|
107
|
+
c("add-info", {});
|
108
|
+
}
|
109
|
+
function i(m) {
|
110
|
+
c("delete-info", m);
|
111
|
+
}
|
112
|
+
const { items: a, title: _, emptyMessage: f, addButtonLabel: y, keyName: g, valueName: b } = I(o);
|
113
|
+
return (m, A) => (n(), d("div", J, [
|
114
|
+
t("div", K, [
|
115
|
+
t("h5", Q, w(e(_)), 1),
|
116
|
+
t("button", {
|
117
|
+
onClick: s,
|
118
|
+
class: "i-small pd-thin button-delete button"
|
119
|
+
}, "+")
|
120
|
+
]),
|
121
|
+
t("div", W, [
|
122
|
+
e(a).length == 0 ? (n(), d("p", X, w(e(f)), 1)) : k("", !0),
|
123
|
+
e(a).length == 0 ? (n(), U(L, {
|
124
|
+
key: 1,
|
125
|
+
onClick: s,
|
126
|
+
class: "button"
|
127
|
+
}, {
|
128
|
+
default: z(() => [
|
129
|
+
C(w(e(y)), 1)
|
130
|
+
]),
|
131
|
+
_: 1
|
132
|
+
})) : k("", !0),
|
133
|
+
(n(!0), d(N, null, P(e(a), (p, x) => (n(), d("div", {
|
134
|
+
class: "mn-medium w-100 flex-nowrap flex",
|
135
|
+
key: x
|
136
|
+
}, [
|
137
|
+
r(h, {
|
138
|
+
field: p[e(g)],
|
139
|
+
"onUpdate:field": (v) => p[e(g)] = v,
|
140
|
+
placeholder: "Название параметра",
|
141
|
+
class: "w-100 mn-r-small bg-white radius-small pd-medium"
|
142
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
143
|
+
r(h, {
|
144
|
+
field: p[e(b)],
|
145
|
+
"onUpdate:field": (v) => p[e(b)] = v,
|
146
|
+
placeholder: "Значение параметра",
|
147
|
+
class: "w-100 bg-white radius-small pd-medium"
|
148
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
149
|
+
t("button", {
|
150
|
+
onClick: (v) => i(x),
|
151
|
+
class: "mn-l-small button"
|
152
|
+
}, ee, 8, Y)
|
153
|
+
]))), 128))
|
154
|
+
])
|
155
|
+
]));
|
156
|
+
}
|
157
|
+
}, te = {
|
158
|
+
key: 0,
|
159
|
+
class: "mn-big"
|
160
|
+
}, se = { class: "flex-column block" }, oe = ["src"], ae = ["onClick"], le = {
|
161
|
+
__name: "EditProductImages",
|
162
|
+
props: {
|
163
|
+
product: Object
|
164
|
+
},
|
165
|
+
setup(u) {
|
166
|
+
function c(s) {
|
167
|
+
console.log(s), console.log(l.current.images), l.current.images.push(...s);
|
168
|
+
}
|
169
|
+
function o(s) {
|
170
|
+
l.current.images.splice(s, 1);
|
171
|
+
}
|
172
|
+
return (s, i) => (n(), d("div", null, [
|
173
|
+
u.product.images.length < 1 ? (n(), d("p", te, " The product doesn't have any images yet. ")) : k("", !0),
|
174
|
+
r(e(T), {
|
175
|
+
class: "cols-4 dragArea list-group w-full",
|
176
|
+
list: u.product.images,
|
177
|
+
sort: !0,
|
178
|
+
onChange: s.log
|
179
|
+
}, {
|
180
|
+
default: z(() => [
|
181
|
+
(n(!0), d(N, null, P(u.product.images, (a, _) => (n(), d("div", se, [
|
182
|
+
t("img", {
|
183
|
+
class: "w-100 mn-small",
|
184
|
+
src: (s.FILE_SERVER_URL || "") + a
|
185
|
+
}, null, 8, oe),
|
186
|
+
t("a", {
|
187
|
+
onClick: (f) => o(_),
|
188
|
+
class: "w-100 br-grey br-solid br-1px button"
|
189
|
+
}, "Удалить", 8, ae)
|
190
|
+
]))), 256))
|
191
|
+
]),
|
192
|
+
_: 1
|
193
|
+
}, 8, ["list", "onChange"]),
|
194
|
+
r(q, {
|
195
|
+
"onUpdate:images": c,
|
196
|
+
uploadPath: "organizations/" + s.$route.params._id + "/products",
|
197
|
+
class: "mn-t-semi pd-small w-100 button bg-main"
|
198
|
+
}, null, 8, ["uploadPath"])
|
199
|
+
]));
|
200
|
+
}
|
201
|
+
};
|
202
|
+
const ne = { class: "for-transition w-100" }, re = { class: "pd-b-zero pd-t-zero pd-thin" }, ie = { class: "pd-thin" }, de = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, ce = {
|
203
|
+
key: 0,
|
204
|
+
class: "mn-r-auto"
|
205
|
+
}, ue = {
|
206
|
+
key: 1,
|
207
|
+
class: "mn-r-auto"
|
208
|
+
}, me = { class: "flex-nowrap flex pd-thin" }, pe = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, _e = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, he = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Profile", -1), fe = { class: "mn-semi" }, ge = /* @__PURE__ */ t("h5", null, "Categories", -1), be = { class: "" }, ve = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, we = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Images", -1), Qe = {
|
209
|
+
__name: "ProductEdit",
|
210
|
+
async setup(u) {
|
211
|
+
let c, o;
|
212
|
+
const s = B(), i = V();
|
213
|
+
[c, o] = E(() => R.fetchCategories()), await c, o(), s.params.product && ([c, o] = E(() => $.read({ _id: s.params.product })), await c, o());
|
214
|
+
function a() {
|
215
|
+
l.current.information.push({ name: "", value: "" });
|
216
|
+
}
|
217
|
+
function _(m) {
|
218
|
+
l.current.information.splice(m, 1);
|
219
|
+
}
|
220
|
+
function f() {
|
221
|
+
l.current.localization.push({ locale: "", text: "" });
|
222
|
+
}
|
223
|
+
function y(m) {
|
224
|
+
l.current.localization.splice(m, 1);
|
225
|
+
}
|
226
|
+
function g() {
|
227
|
+
s.params.product ? $.update(s.params.product, l.current) : $.create(s.params._id, l.current);
|
228
|
+
}
|
229
|
+
function b() {
|
230
|
+
i.push({ name: "ProductEdit", params: { _id: s.params._id, product: l.current._id } });
|
231
|
+
}
|
232
|
+
return (m, A) => (n(), d("div", ne, [
|
233
|
+
t("div", re, [
|
234
|
+
r(D, { class: "pd-medium bg-grey radius-big" })
|
235
|
+
]),
|
236
|
+
t("div", ie, [
|
237
|
+
t("header", de, [
|
238
|
+
e(s).params.product ? (n(), d("h1", ce, "Edit Product")) : (n(), d("h1", ue, "Create Product")),
|
239
|
+
t("section", me, [
|
240
|
+
r(L, {
|
241
|
+
submit: g,
|
242
|
+
callback: b
|
243
|
+
}, {
|
244
|
+
default: z(() => [
|
245
|
+
C("Save Product")
|
246
|
+
]),
|
247
|
+
_: 1
|
248
|
+
})
|
249
|
+
])
|
250
|
+
])
|
251
|
+
]),
|
252
|
+
t("div", pe, [
|
253
|
+
t("div", _e, [
|
254
|
+
he,
|
255
|
+
r(H, {
|
256
|
+
product: l.current
|
257
|
+
}, null, 8, ["product"]),
|
258
|
+
t("div", fe, [
|
259
|
+
ge,
|
260
|
+
(n(!0), d(N, null, P(j.all, (p, x) => (n(), U(F, {
|
261
|
+
label: p.name,
|
262
|
+
name: "categories",
|
263
|
+
value: p.url,
|
264
|
+
class: "w-100 mn-t-small bg-white radius-small pd-small",
|
265
|
+
radio: l.current.category
|
266
|
+
}, null, 8, ["label", "value", "radio"]))), 256))
|
267
|
+
]),
|
268
|
+
r(S, {
|
269
|
+
items: l.current.information,
|
270
|
+
title: "Parameters",
|
271
|
+
emptyMessage: "No parameters",
|
272
|
+
addButtonLabel: "Add parameter",
|
273
|
+
keyName: "name",
|
274
|
+
valueName: "value",
|
275
|
+
onAddInfo: a,
|
276
|
+
onDeleteInfo: _
|
277
|
+
}, null, 8, ["items"]),
|
278
|
+
r(S, {
|
279
|
+
items: l.current.localization,
|
280
|
+
title: "Localization",
|
281
|
+
emptyMessage: "No localizations",
|
282
|
+
addButtonLabel: "Add localization",
|
283
|
+
keyName: "locale",
|
284
|
+
valueName: "text",
|
285
|
+
onAddInfo: f,
|
286
|
+
onDeleteInfo: y
|
287
|
+
}, null, 8, ["items"])
|
288
|
+
]),
|
289
|
+
t("div", be, [
|
290
|
+
t("div", ve, [
|
291
|
+
we,
|
292
|
+
r(le, {
|
293
|
+
product: l.current
|
294
|
+
}, null, 8, ["product"])
|
295
|
+
])
|
296
|
+
])
|
297
|
+
])
|
298
|
+
]));
|
299
|
+
}
|
300
|
+
};
|
301
|
+
export {
|
302
|
+
Qe as default
|
303
|
+
};
|
@@ -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"),u=require("./Feed-0b1dad65.js"),o=require("./auth-2f9b2dfc.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-4d8ac62e.js");require("./IconEdit-4cfe2115.js");require("./index-7ecbf72a.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(k){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,a=>{c.replace({query:{...r.query,tab:a}})}),(a,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=>a.$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(u._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(u._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(u._sfc_main,{key:3,user:o.state.user._id,category:"following"},null,8,["user"])):e.createCommentVNode("",!0)]))}};exports.default=f;
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { ref as f, watch as g, openBlock as t, createElementBlock as p, createElementVNode as d, unref as u, createCommentVNode as s, createBlock as l } from "vue";
|
2
|
+
import { useRoute as v, useRouter as y } from "vue-router";
|
3
|
+
import { _ as b } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as n } from "./Feed-8110366a.mjs";
|
5
|
+
import { s as o } from "./auth-b047fdc0.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-03ff0c34.mjs";
|
12
|
+
import "./IconEdit-eacf3856.mjs";
|
13
|
+
import "./index-0ab9d59c.mjs";
|
14
|
+
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), O = {
|
15
|
+
__name: "ProfileBlogposts",
|
16
|
+
setup(q) {
|
17
|
+
const e = v(), c = y();
|
18
|
+
let _ = e.query.tab ? e.query.tab : "posts";
|
19
|
+
const r = f(_);
|
20
|
+
return e.query.tab = r.value, g(r, (i) => {
|
21
|
+
c.replace({ query: { ...e.query, tab: i } });
|
22
|
+
}), (i, a) => (t(), p("div", h, [
|
23
|
+
d("header", k, [
|
24
|
+
w,
|
25
|
+
o.user._id === u(e).params._id ? (t(), p("button", {
|
26
|
+
key: 0,
|
27
|
+
onClick: a[0] || (a[0] = (m) => i.$router.push({
|
28
|
+
name: "Create BlogPost"
|
29
|
+
})),
|
30
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
31
|
+
}, " + ")) : s("", !0)
|
32
|
+
]),
|
33
|
+
o.user._id === u(e).params._id ? (t(), l(b, {
|
34
|
+
key: 0,
|
35
|
+
selected: r.value,
|
36
|
+
"onUpdate:selected": a[1] || (a[1] = (m) => r.value = m),
|
37
|
+
tabs: [
|
38
|
+
{ name: "My posts", value: "posts" },
|
39
|
+
{ name: "Drafts", value: "drafts" },
|
40
|
+
{ name: "Following", value: "following" }
|
41
|
+
],
|
42
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
43
|
+
}, null, 8, ["selected"])) : s("", !0),
|
44
|
+
r.value === "posts" ? (t(), l(n, {
|
45
|
+
key: 1,
|
46
|
+
user: o.user._id,
|
47
|
+
creator: u(e).params._id
|
48
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
49
|
+
r.value === "drafts" ? (t(), l(n, {
|
50
|
+
key: 2,
|
51
|
+
user: o.user._id,
|
52
|
+
creator: u(e).params._id,
|
53
|
+
status: "draft"
|
54
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
55
|
+
r.value === "following" ? (t(), l(n, {
|
56
|
+
key: 3,
|
57
|
+
user: o.user._id,
|
58
|
+
category: "following"
|
59
|
+
}, null, 8, ["user"])) : s("", !0)
|
60
|
+
]));
|
61
|
+
}
|
62
|
+
};
|
63
|
+
export {
|
64
|
+
O as default
|
65
|
+
};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { ref as l, watch as p, openBlock as s, createElementBlock as c, createVNode as d, createBlock as _, unref as a, createCommentVNode as f, createElementVNode as m } from "vue";
|
2
|
+
import { useRoute as b, useRouter as h } from "vue-router";
|
3
|
+
import { _ as v } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as y } from "./Feed-8110366a.mjs";
|
5
|
+
import "./inputs.validation-14e8e01f.mjs";
|
6
|
+
import "./globals-96ba60e4.mjs";
|
7
|
+
import "vue-i18n";
|
8
|
+
import "./EmptyState-34d85f10.mjs";
|
9
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
10
|
+
import "./Chips-03ff0c34.mjs";
|
11
|
+
import "./IconEdit-eacf3856.mjs";
|
12
|
+
import "./index-0ab9d59c.mjs";
|
13
|
+
const g = { class: "pd-thin" }, q = /* @__PURE__ */ m("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
|
14
|
+
/* @__PURE__ */ m("h2", { class: "mn-r-medium" }, "Comments")
|
15
|
+
], -1), O = {
|
16
|
+
__name: "ProfileComments",
|
17
|
+
setup(w) {
|
18
|
+
const e = b(), n = h();
|
19
|
+
let u = e.query.tab ? e.query.tab : "posts";
|
20
|
+
const t = l(u);
|
21
|
+
return e.query.tab = t.value, p(t, (r) => {
|
22
|
+
n.replace({ query: { ...e.query, tab: r } });
|
23
|
+
}), (r, o) => (s(), c("div", g, [
|
24
|
+
q,
|
25
|
+
d(v, {
|
26
|
+
selected: t.value,
|
27
|
+
"onUpdate:selected": o[0] || (o[0] = (i) => t.value = i),
|
28
|
+
tabs: [
|
29
|
+
{ name: "My posts", value: "posts" },
|
30
|
+
{ name: "Following", value: "hubs" }
|
31
|
+
],
|
32
|
+
class: "mn-r-medium o-hidden h5 radius-big bg-grey"
|
33
|
+
}, null, 8, ["selected"]),
|
34
|
+
t.value === "posts" ? (s(), _(y, {
|
35
|
+
key: 0,
|
36
|
+
user: a(e).params._id,
|
37
|
+
owner: a(e).params._id
|
38
|
+
}, null, 8, ["user", "owner"])) : f("", !0)
|
39
|
+
]));
|
40
|
+
}
|
41
|
+
};
|
42
|
+
export {
|
43
|
+
O as default
|
44
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),c=require("./Tab-6f0a4909.js"),i=require("./Feed-0b1dad65.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-4d8ac62e.js");require("./IconEdit-4cfe2115.js");require("./index-7ecbf72a.js");const m={class:"pd-thin"},d=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Comments")],-1),q={__name:"ProfileComments",setup(p){const r=o.useRoute(),n=o.useRouter();let a=r.query.tab?r.query.tab:"posts";const t=e.ref(a);return r.query.tab=t.value,e.watch(t,u=>{n.replace({query:{...r.query,tab:u}})}),(u,s)=>(e.openBlock(),e.createElementBlock("div",m,[d,e.createVNode(c._sfc_main,{selected:t.value,"onUpdate:selected":s[0]||(s[0]=l=>t.value=l),tabs:[{name:"My posts",value:"posts"},{name:"Following",value:"hubs"}],class:"mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="posts"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:e.unref(r).params._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]))}};exports.default=q;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { ref as f, watch as v, openBlock as a, createElementBlock as c, createElementVNode as d, unref as o, createCommentVNode as s, createVNode as b, createBlock as l } from "vue";
|
2
|
+
import { useRoute as y, useRouter as h } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as p } from "./Feed-82ad8e29.mjs";
|
5
|
+
import { s as i } from "./auth-b047fdc0.mjs";
|
6
|
+
import "./inputs.validation-14e8e01f.mjs";
|
7
|
+
import "./globals-96ba60e4.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./EmptyState-34d85f10.mjs";
|
10
|
+
import "./Chips-03ff0c34.mjs";
|
11
|
+
import "./IconEdit-eacf3856.mjs";
|
12
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
13
|
+
import "./index-0ab9d59c.mjs";
|
14
|
+
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), A = {
|
15
|
+
__name: "ProfileEvents",
|
16
|
+
setup(x) {
|
17
|
+
const e = y(), n = h();
|
18
|
+
let _ = e.query.tab ? e.query.tab : "owner";
|
19
|
+
const r = f(_);
|
20
|
+
return e.query.tab = r.value, v(r, (u) => {
|
21
|
+
n.replace({ query: { ...e.query, tab: u } });
|
22
|
+
}), (u, t) => (a(), c("div", g, [
|
23
|
+
d("header", w, [
|
24
|
+
q,
|
25
|
+
i.user._id === o(e).params._id ? (a(), c("button", {
|
26
|
+
key: 0,
|
27
|
+
onClick: t[0] || (t[0] = (m) => o(n).push({ name: "Create Event" })),
|
28
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
29
|
+
}, " + ")) : s("", !0)
|
30
|
+
]),
|
31
|
+
b(k, {
|
32
|
+
selected: r.value,
|
33
|
+
"onUpdate:selected": t[1] || (t[1] = (m) => r.value = m),
|
34
|
+
tabs: [
|
35
|
+
{ name: "My", value: "owner" },
|
36
|
+
{ name: "Participant", value: "participant" }
|
37
|
+
],
|
38
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
39
|
+
}, null, 8, ["selected"]),
|
40
|
+
r.value === "owner" ? (a(), l(p, {
|
41
|
+
key: 0,
|
42
|
+
user: i.user._id,
|
43
|
+
creator: o(e).params._id,
|
44
|
+
sortOrder: "asc"
|
45
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
46
|
+
r.value === "participant" ? (a(), l(p, {
|
47
|
+
key: 1,
|
48
|
+
user: i.user._id,
|
49
|
+
participant: o(e).params._id,
|
50
|
+
sortOrder: "desc"
|
51
|
+
}, null, 8, ["user", "participant"])) : s("", !0)
|
52
|
+
]));
|
53
|
+
}
|
54
|
+
};
|
55
|
+
export {
|
56
|
+
A as default
|
57
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("vue-router"),d=require("./Tab-6f0a4909.js"),i=require("./Feed-c8b1c72d.js"),n=require("./auth-2f9b2dfc.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./Chips-4d8ac62e.js");require("./IconEdit-4cfe2115.js");require("./_plugin-vue_export-helper-f246444f.js");require("./index-7ecbf72a.js");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),q={__name:"ProfileEvents",setup(v){const r=c.useRoute(),u=c.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=>{u.replace({query:{...r.query,tab:s}})}),(s,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,n.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=o=>e.unref(u).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(i._sfc_main,{key:0,user:n.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(i._sfc_main,{key:1,user:n.state.user._id,participant:e.unref(r).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=q;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),l=require("./Tab-6f0a4909.js"),c=require("./Feed-0b1dad65.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-4d8ac62e.js");require("./IconEdit-4cfe2115.js");require("./index-7ecbf72a.js");const d={class:"pd-thin"},m=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Likes")],-1),q={__name:"ProfileLikes",setup(p){const r=o.useRoute(),a=o.useRouter();let n=r.query.tab?r.query.tab:"posts";const t=e.ref(n);return r.query.tab=t.value,e.watch(t,u=>{a.replace({query:{...r.query,tab:u}})}),(u,s)=>(e.openBlock(),e.createElementBlock("div",d,[m,e.createVNode(l._sfc_main,{selected:t.value,"onUpdate:selected":s[0]||(s[0]=i=>t.value=i),tabs:[{name:"My posts",value:"posts"},{name:"Following",value:"hubs"}],class:"mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="posts"?(e.openBlock(),e.createBlock(c._sfc_main,{key:0,user:e.unref(r).params._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]))}};exports.default=q;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { ref as l, watch as p, openBlock as s, createElementBlock as c, createVNode as d, createBlock as _, unref as a, createCommentVNode as f, createElementVNode as m } from "vue";
|
2
|
+
import { useRoute as b, useRouter as h } from "vue-router";
|
3
|
+
import { _ as v } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as y } from "./Feed-8110366a.mjs";
|
5
|
+
import "./inputs.validation-14e8e01f.mjs";
|
6
|
+
import "./globals-96ba60e4.mjs";
|
7
|
+
import "vue-i18n";
|
8
|
+
import "./EmptyState-34d85f10.mjs";
|
9
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
10
|
+
import "./Chips-03ff0c34.mjs";
|
11
|
+
import "./IconEdit-eacf3856.mjs";
|
12
|
+
import "./index-0ab9d59c.mjs";
|
13
|
+
const k = { class: "pd-thin" }, g = /* @__PURE__ */ m("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
|
14
|
+
/* @__PURE__ */ m("h2", { class: "mn-r-medium" }, "Likes")
|
15
|
+
], -1), M = {
|
16
|
+
__name: "ProfileLikes",
|
17
|
+
setup(q) {
|
18
|
+
const e = b(), n = h();
|
19
|
+
let i = e.query.tab ? e.query.tab : "posts";
|
20
|
+
const t = l(i);
|
21
|
+
return e.query.tab = t.value, p(t, (r) => {
|
22
|
+
n.replace({ query: { ...e.query, tab: r } });
|
23
|
+
}), (r, o) => (s(), c("div", k, [
|
24
|
+
g,
|
25
|
+
d(v, {
|
26
|
+
selected: t.value,
|
27
|
+
"onUpdate:selected": o[0] || (o[0] = (u) => t.value = u),
|
28
|
+
tabs: [
|
29
|
+
{ name: "My posts", value: "posts" },
|
30
|
+
{ name: "Following", value: "hubs" }
|
31
|
+
],
|
32
|
+
class: "mn-r-medium o-hidden h5 radius-big bg-grey"
|
33
|
+
}, null, 8, ["selected"]),
|
34
|
+
t.value === "posts" ? (s(), _(y, {
|
35
|
+
key: 0,
|
36
|
+
user: a(e).params._id,
|
37
|
+
owner: a(e).params._id
|
38
|
+
}, null, 8, ["user", "owner"])) : f("", !0)
|
39
|
+
]));
|
40
|
+
}
|
41
|
+
};
|
42
|
+
export {
|
43
|
+
M as default
|
44
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("vue-router"),f=require("./Tab-6f0a4909.js"),y=require("./EmptyState-7658d7d6.js"),h=require("./CardOrganization-bf366e4e.js"),k=require("./_plugin-vue_export-helper-f246444f.js"),g=require("./organizations-bb8f676d.js"),d=require("./auth-2f9b2dfc.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./ButtonFollow-7c0180b3.js");require("./Button-ee08e6bf.js");require("./index-7ecbf72a.js");const _={},v={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},w=e.createStaticVNode('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',6),x=[w];function B(u,t){return e.openBlock(),e.createElementBlock("svg",v,x)}const C=k._export_sfc(_,[["render",B]]),N={class:"feed"},p={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(u){const t=u,a=e.ref([]),o=e.ref(!1),r=e.ref(!0),l=e.ref(0),n=e.ref(20),c=async()=>{if(o.value){l.value+=n.value;const i=await g.actions.read({skip:l.value,limit:n.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});i.length===0?o.value=!1:o.value=!0,a.value=[...a.value,...i]}};return e.onMounted(async()=>{r.value=!0,console.log(t.selectedDate);const i=await g.actions.read({skip:l.value,limit:n.value,category:t.category,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,sortOrder:t.sortOrder,user:t.user,owner:t.owner,date:t.selectedDate,organization:t.organization,period:t.period,status:t.status});i.length===0?o.value=!1:o.value=!0,a.value=i,r.value=!1}),(i,O)=>(e.openBlock(),e.createElementBlock("section",N,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[r.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,s=>(e.openBlock(),e.createBlock(C,{key:s}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!r.value&&a.value.length<1?(e.openBlock(),e.createBlock(y._sfc_main,{key:0,title:"No Organizations Found",description:"Currently, there are no organizations available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!r.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(s,b)=>(e.openBlock(),e.createBlock(h._sfc_main,{onClick:E=>i.$router.push({name:"Organization",params:{_id:s._id}}),key:s._id,organization:s,user:u.user,type:"normal",class:e.normalizeClass(["w-100 radius-big mn-medium",{"br-b br-solid br-black-transp-10":b!==a.value.length-1}])},null,8,["onClick","organization","user","class"]))),128)):e.createCommentVNode("",!0),o.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:c,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}},q={class:"pd-thin"},z={class:"mn-medium flex-v-center flex-nowrap flex"},V=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),S={__name:"ProfileOrganizations",setup(u){const t=m.useRoute(),a=m.useRouter();let o=t.query.tab?t.query.tab:"member";const r=e.ref(o);return t.query.tab=r.value,e.watch(r,l=>{a.replace({query:{...t.query,tab:l}})}),(l,n)=>(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("header",z,[V,d.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=c=>l.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(f._sfc_main,{selected:r.value,"onUpdate:selected":n[1]||(n[1]=c=>r.value=c),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(p,{key:0,user:d.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==="follower"?(e.openBlock(),e.createBlock(p,{key:0,user:d.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=S;
|