@ozdao/prometheus-framework 0.2.190 → 0.2.192
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +1 -1
- package/dist/builder.mjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +23 -20
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +80 -49
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +94 -125
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +152 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.js +96 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconProfile.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconProfile.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/builder/webpack/webpack.config.base.js +1 -1
- package/src/components/index.js +0 -1
- package/src/main.js +0 -3
- package/src/modules/globals/globals.client.js +8 -6
- package/src/modules/globals/views/components/layouts/App.vue +44 -6
- package/src/modules/globals/views/components/layouts/Client.vue +2 -47
- package/src/modules/globals/views/components/partials/Header.vue +10 -8
- package/src/modules/globals/views/components/sections/Walkthrough.vue +5 -5
- /package/src/{components/LocationSelection → modules/globals/views/components/partials}/LocationSelection.vue +0 -0
package/dist/builder.js
CHANGED
@@ -558,7 +558,7 @@ var webpack_config_base = (projectRoot) => {
|
|
558
558
|
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: true,
|
559
559
|
__VUE_I18N_FULL_INSTALL__: true,
|
560
560
|
__INTLIFY_PROD_DEVTOOLS__: false,
|
561
|
-
__MOBILE_APP__:
|
561
|
+
__MOBILE_APP__: true
|
562
562
|
})
|
563
563
|
],
|
564
564
|
infrastructureLogging: {
|
package/dist/builder.mjs
CHANGED
@@ -535,7 +535,7 @@ var webpack_config_base = (projectRoot) => {
|
|
535
535
|
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: true,
|
536
536
|
__VUE_I18N_FULL_INSTALL__: true,
|
537
537
|
__INTLIFY_PROD_DEVTOOLS__: false,
|
538
|
-
__MOBILE_APP__:
|
538
|
+
__MOBILE_APP__: true
|
539
539
|
})
|
540
540
|
],
|
541
541
|
infrastructureLogging: {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");;/* empty css */const M=require("../EmptyState/EmptyState.vue.cjs"),B=require("../Dropdown/Dropdown.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");;/* empty css */const M=require("../EmptyState/EmptyState.vue.cjs"),B=require("../Dropdown/Dropdown.vue.cjs"),N=require("../DatePicker/Calendar.vue2.cjs"),x=require("../BottomSheet/BottomSheet.vue.cjs"),S=require("../../modules/globals/views/components/blocks/BlockSearch.vue.cjs"),q=require("../../modules/globals/views/components/blocks/BlockSorting.vue.cjs"),E=require("../../modules/globals/views/components/blocks/BlockFilter.vue.cjs"),z=require("../../modules/globals/views/components/elements/ButtonSort.vue.cjs"),O=require("../../modules/globals/views/components/elements/ButtonDate.vue.cjs"),L=require("../../modules/icons/navigation/IconFilter.vue.cjs");;/* empty css */const F={key:0,class:"flex-nowrap flex gap-thin"},j={__name:"Feed",props:e.mergeModels({showLoadMore:{type:Boolean,default:!0},search:{type:[Boolean,Object],default:!1},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},external:{type:Boolean,default:!1},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},{search:{},searchModifiers:{},sort:{},sortModifiers:{},filter:{},filterModifiers:{},date:{},dateModifiers:{},items:{},itemsModifiers:{}}),emits:["update:search","update:sort","update:filter","update:date","update:items"],setup(s){const m=e.useModel(s,"search"),a=e.useModel(s,"sort"),o=e.useModel(s,"filter"),r=e.useModel(s,"date"),h=e.useModel(s,"items"),u=s,n=e.ref(h.value||[]),d=e.ref(!1);let p=e.ref(!0),b=e.ref(null),i=e.ref(u.options.skip?u.options.skip:0),v=e.ref(u.options.limit?u.options.limit:10),k=e.ref("");function C(t){k.value=t,i.value=0,v.value=10,f()}const y=async()=>{if(d.value){i.value+=v.value;const t=await u.store.read({skip:i.value,limit:v.value,search:k.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:a.value?a.value.param:null,sortOrder:a.value?a.value.order:null,...u.options});t.length===0||t.length<v.value?d.value=!1:d.value=!0,n.value=[...n.value,...t],h.value&&(h.value=n.value)}},f=async()=>{const t=await u.store.read({skip:i.value,limit:v.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:a.value?a.value.param:null,sortOrder:a.value?a.value.order:null,search:k.value,...u.options});t.length===0||t.length<v.value?d.value=!1:d.value=!0,n.value=t,h.value&&(h.value=n.value),p.value=!1};e.watch(()=>u.external,(t,l)=>{t!==l&&(i.value=0,f())},{deep:!0}),e.watch(()=>r.value,(t,l)=>{t!==l&&(i.value=0,f())},{deep:!0}),e.watch(()=>{var t;return(t=a.value)==null?void 0:t.order},(t,l)=>{t!==l&&(i.value=0,f())}),e.watch(()=>{var t;return(t=a.value)==null?void 0:t.param},(t,l)=>{t!==l&&(i.value=0,f())}),e.watch(()=>u.options,(t,l)=>{(t.organization!==l.organization||t.categories!==l.categories||t.prices!==l.prices||t.delivery!==l.delivery||t.search!==l.search||t.status!==l.status||t.hidden!==l.hidden||t.type!==l.type||t.tags!==l.tags||t.following!==l.following)&&(i.value=0,f())},{deep:!0});let g=null;return e.onMounted(async()=>{await f(),typeof window<"u"&&!u.showLoadMore&&(g=new IntersectionObserver(t=>{t.some(l=>l.isIntersecting)&&y()}),g.observe(b.value))}),e.onUnmounted(()=>{g&&g.disconnect()}),(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m.value||r.value||a.value&&!a.value.hideButton?(e.openBlock(),e.createElementBlock("div",F,[m.value?(e.openBlock(),e.createBlock(S.default,{key:0,placeholder:m.value.placeholder||"Search...",class:e.normalizeClass(m.value.class||"bg-light"),onSearch:C},null,8,["placeholder","class"])):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:e.normalizeClass([o.value.class||"bg-light","flex-center flex pd-thin bg-light radius-extra aspect-1x1 h-100"])},[e.createVNode(L.default,{onClick:l[0]||(l[0]=()=>o.value.active=!o.value.active),class:"w-1r h-auto"})],2),o.value.active?(e.openBlock(),e.createBlock(x.default,{key:0,show:o.value.active,onToggle:l[2]||(l[2]=()=>o.value.active=!1),class:e.normalizeClass(["z-index-10 pos-fixed pos-t-0 pos-r-0",{"pos-t-0":o.value.active,"pos-t-100":!o.value.active}])},{default:e.withCtx(()=>[e.createVNode(E.default,{filter:o.value,"onUpdate:filter":l[1]||(l[1]=c=>o.value=c),options:o.value.options,class:"h-100 w-100 pd-small bg-light"},null,8,["filter","options"])]),_:1},8,["show","class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(B.default,{key:2,label:{component:O.default,props:{date:r.value}},class:e.normalizeClass([r.value.class||"bg-light","flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(N.default,{date:r.value,"onUpdate:date":l[3]||(l[3]=c=>r.value=c),locale:t.$i18n.locale,allowRange:!0,class:"radius-semi w-100 o-hidden bg-light"},null,8,["date","locale"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0),a.value&&!a.value.hideButton?(e.openBlock(),e.createBlock(B.default,{key:3,label:{component:z.default,props:{order:a.value.order},class:"w-1r"},class:e.normalizeClass([a.value.class||"bg-light","radius-extra aspect-1x1 h-100"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(q.default,{param:a.value.param,"onUpdate:param":l[4]||(l[4]=c=>a.value.param=c),order:a.value.order,"onUpdate:order":l[5]||(l[5]=c=>a.value.order=c),options:a.value.options,class:"h-100 pd-small radius-semi t-white bg-black"},null,8,["param","order","options"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(p)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:1,tag:"ul",name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(p)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(v),c=>(e.openBlock(),e.createBlock(w.default,{key:"skeleton-"+c,class:"mn-b-small radius-big o-hidden d-block"}))),128)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),!e.unref(p)&&n.value.length<1?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:2,tag:"ul",name:"feed"},{default:e.withCtx(()=>[!e.unref(p)&&n.value.length<1?(e.openBlock(),e.createBlock(M.default,{key:0,title:s.states.empty.title,description:s.states.empty.description,action:s.states.empty.action,callback:s.states.empty.callback,class:"pd-medium mn-b-thin bg-light radius-big"},null,8,["title","description","action","callback"])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{tag:"ul",name:"feed",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(p)&&n.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:n.value}):e.createCommentVNode("",!0),s.showLoadMore&&d.value&&n.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:y,class:"col-w-100 w-100 bg-main button"}," Load More ")):e.createCommentVNode("",!0),e.createElementVNode("div",{key:"sentinel",ref_key:"sentinel",ref:b,class:"sentinel"},null,512)]),_:3},8,["class"])],64))}};exports.default=j;
|
@@ -2,7 +2,7 @@ import { mergeModels as N, useModel as M, ref as g, watch as $, onMounted as T,
|
|
2
2
|
import q from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
|
3
3
|
/* empty css */
|
4
4
|
import A from "../EmptyState/EmptyState.vue.js";
|
5
|
-
import z from "../Dropdown/Dropdown.
|
5
|
+
import z from "../Dropdown/Dropdown.vue.js";
|
6
6
|
import D from "../DatePicker/Calendar.vue2.js";
|
7
7
|
import H from "../BottomSheet/BottomSheet.vue.js";
|
8
8
|
import J from "../../modules/globals/views/components/blocks/BlockSearch.vue.js";
|
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css */const g=require("vue-router"),b={class:"pos-relative bg-light radius-big flex-column flex"},p={class:"pd-t-zero pd-b-zero pd-medium"},y={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},f={key:1,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},h={key:1,class:"mn-b-small t-transp p-big"},k={key:2,class:"mn-b-small h2"},v=["src"],B={key:1,controls:"",class:"mn-b-medium object-fit-cover w-100 h-max-20r"},x=["src"],V={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1}},setup(t){const i=g.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),s=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),a=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,r)=>{var c;return e.openBlock(),e.createElementBlock("article",b,[e.createVNode(u.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt,actions:t.user&&t.user===t.blogpost.creator.target._id?[{to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},label:"Edit"}]:null},null,8,["class","entity","user","owner","creator","date","actions"]),e.createElementVNode("section",p,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",y,[t.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m.default,{key:0,text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:r[0]||(r[0]=E=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"])),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.value&&a.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(a.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"&&!t.hideTitle?(e.openBlock(),e.createElementBlock("h3",k,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-100"},null,8,v)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("video",B,[e.createElementVNode("source",{src:s.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=V;
|
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js
CHANGED
@@ -2,7 +2,7 @@ import { computed as c, openBlock as o, createElementBlock as l, createVNode as
|
|
2
2
|
import k from "../../../globals/views/components/blocks/CardHeader.vue.js";
|
3
3
|
import w from "./FooterBlogpost.vue.js";
|
4
4
|
import B from "../../../../components/Text/Text.vue.js";
|
5
|
-
/* empty css
|
5
|
+
/* empty css */
|
6
6
|
import { useRouter as E } from "vue-router";
|
7
7
|
const P = { class: "pos-relative bg-light radius-big flex-column flex" }, T = { class: "pd-t-zero pd-b-zero pd-medium" }, V = {
|
8
8
|
key: 0,
|
package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const s=require("../../../../components/Slider/Slider.vue.cjs"),i=require("../blocks/CardBlogpost.vue.cjs"),l=require("../../store/blogposts.cjs"),r=require("../../../auth/views/store/auth.cjs");;/* empty css */const n={class:"pd-thin"},a={class:"bg-light radius-big pd-t-big pd-b-big"},c={class:"w-100 pd-b-small t-center flex-center flex"},u=e.createElementVNode("b",null,"Community",-1),d={__name:"HotPosts",setup(p){return(_,h)=>{const o=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",n,[e.createElementVNode("div",a,[e.createElementVNode("h2",c,[e.createTextVNode(" Discover Our "),e.createVNode(o,{to:{name:"Blog"},class:"transition-ease-in hover-bg-black hover-t-white transition-timing-1 hover-scale-0 bg-main cursor-pointer pd-thin pd-r-small pd-l-small mn-l-thin radius-extra flex flex-v-center"},{default:e.withCtx(()=>[u]),_:1})]),e.createVNode(s.default,{store:{read:t=>l.read(t)},options:{skip:0,limit:8,user:r.state.user._id,period:"year",category:"featured"},text:{messages:{en:{title:"No Blogposts Found",description:"Currently, there are no blogposts available."}}},class:"slider-hotpost"},{default:e.withCtx(({item:t})=>[(e.openBlock(),e.createBlock(i.default,{key:t._id,blogpost:t,user:r.state.user._id,hideDescription:!0,class:"bg-white flex flex-column h-35r"},null,8,["blogpost","user"]))]),_:1},8,["store","options"])])])}}};exports.default=d;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { resolveComponent as n, openBlock as o, createElementBlock as a, createElementVNode as t, createTextVNode as c, createVNode as r, withCtx as s, createBlock as p } from "vue";
|
2
2
|
/* empty css */
|
3
|
-
/* empty css
|
3
|
+
/* empty css */
|
4
4
|
/* empty css */
|
5
5
|
/* empty css */
|
6
6
|
/* empty css */
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Chips/Chips.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Chips/Chips.vue.cjs"),y=require("../../../icons/navigation/IconEdit.vue.cjs"),C=require("../../../globals/views/components/blocks/CardHeader.vue.cjs");require("../../../community/store/reactions.cjs");const k=require("vue-router"),p={key:0,class:"o-hidden pos-relative bg-light mn-b-small w-100"},E=["src"],T=["src"],w={class:"w-max mn-r-thin pd-thin radius-small t-semi bg-main"},b={class:"t-semi"},B={key:0,class:"t-semi"},D={key:0,class:"t-semi uppercase"},U={key:1,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},N={key:0,class:""},V={key:1,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},S={key:2,class:"mn-b-small p-big"},x={__name:"CardEvent",props:["event","user","short","type"],setup(t){e.ref(new Date),k.useRouter();const o=t;e.computed(()=>o.event.content.find(n=>n.type.name==="ImageUpload")),e.computed(()=>o.event.content.find(n=>n.type.name==="Textarea"));const u=e.computed(()=>{const n=new Date,s=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()),r=new Date(o.event.date.start),a=Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds())-s;if(a<0)return"Finished";if(a===0)return"Starting Now";{const d=Math.floor(a/1e3),l=Math.floor(d/60),i=Math.floor(l/60),m=Math.floor(i/24);return m>0?`${m} days until event`:i>0?`${i} hours until event`:l>0?`${l} minutes until event`:`${d} seconds until event`}}),v=e.computed(()=>{const n=new Date(o.event.date.start),s={day:"2-digit",month:"2-digit"};return n.toLocaleDateString(void 0,s)}),h=e.computed(()=>{console.log(o.event.date.start),console.log(o.event.date.end);const n=new Date(o.event.date.start),s=new Date(o.event.date.end),r=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(n),c=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(s);return`${r}-${c}`}),f=e.computed(()=>{const n=o.event.name;return n.length>26?`${n.substring(0,22)}…`:n});return(n,s)=>(e.openBlock(),e.createElementBlock("article",{class:e.normalizeClass([{"flex-nowrap flex-v-center flex":t.type==="short"},"pos-relative"])},[e.createVNode(C.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.event,entityType:"event",user:t.user,owner:t.event.owner,creator:t.event.creator,members:t.event.numberOfTickets,membersPhotos:t.event.participantsPhotos,type:t.type,dateFormatted:u.value},null,8,["class","entity","user","owner","creator","members","membersPhotos","type","dateFormatted"]),t.event.cover&&t.type!=="short"?(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("img",{src:(n.FILE_SERVER_URL||"")+t.event.cover,alt:"Event image",class:"pos-relative z-index-1 d-block mn-auto h-20r"},null,8,E),e.createElementVNode("img",{src:(n.FILE_SERVER_URL||"")+t.event.cover,alt:"Event Background",class:"z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",style:{transform:"scale(1.5)",filter:"blur(2rem)","-webkit-filter":"blur(2rem)"}},null,8,T)])):e.createCommentVNode("",!0),e.createElementVNode("section",{class:e.normalizeClass(["pos-relative w-100",{"pd-t-zero pd-medium":t.type!=="short"}])},[t.user===t.event.creator.target._id?(e.openBlock(),e.createBlock(y.default,{key:0,onClick:s[0]||(s[0]=e.withModifiers(r=>n.$router.push({name:"Edit Event",params:{url:t.event.url}}),["stop"])),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([{"mn-b-small":t.type!=="short"},"flex-v-center flex-nowrap flex"])},[e.createElementVNode("div",w,[e.createElementVNode("span",b,e.toDisplayString(v.value),1),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",B," | "+e.toDisplayString(h.value),1)):e.createCommentVNode("",!0)]),t.type==="short"?(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(f.value),1)):e.createCommentVNode("",!0)],2),t.type!=="short"?(e.openBlock(),e.createElementBlock("div",U,[t.type!=="short"?(e.openBlock(),e.createElementBlock("h3",N,e.toDisplayString(t.event.name),1)):e.createCommentVNode("",!0),t.event.status==="draft"?(e.openBlock(),e.createElementBlock("div",V,e.toDisplayString(t.event.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("p",S,e.toDisplayString(t.event.description),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default"),t.type!=="short"&&t.event.tags.length>0?(e.openBlock(),e.createBlock(g.default,{key:3,chips:t.event.tags},null,8,["chips"])):e.createCommentVNode("",!0)],2)],2))}};exports.default=x;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as k, computed as l, openBlock as n, createElementBlock as i, normalizeClass as m, createVNode as x, createElementVNode as c, createCommentVNode as a, createBlock as w, withModifiers as D, toDisplayString as d, renderSlot as E } from "vue";
|
2
|
-
import p from "../../../../components/Chips/Chips.
|
2
|
+
import p from "../../../../components/Chips/Chips.vue.js";
|
3
3
|
import $ from "../../../icons/navigation/IconEdit.vue.js";
|
4
4
|
import I from "../../../globals/views/components/blocks/CardHeader.vue.js";
|
5
5
|
import "../../../community/store/reactions.js";
|
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router");;/* empty css */const w=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const B=require("../../../../components/Chips/Chips.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router");;/* empty css */const w=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const B=require("../../../../components/Chips/Chips.vue.cjs");;/* empty css */const _=require("../../../../components/Popup/Popup.vue.cjs"),E=require("../../../../components/Feed/Feed.vue.cjs"),U=require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs"),k=require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const o=require("../../store/gallery.cjs"),A=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),I=require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs"),O=require("../../../../components/EditImages/EditImages.vue.cjs"),T=require("../../../../components/FieldTags/BlockTags.vue.cjs"),R={class:"cols-1 gap-thin pd-thin"},S={class:"pos-relative"},D=["src","onClick"],F={class:"pos-absolute pos-t-0 pos-r-0 pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-r-small mn-t-small w-min bg-second radius-extra"},j={class:"pd-small"},L=["src"],G={class:"flex-nowrap flex gap-thin"},M={__name:"BackofficeGallery",setup(z){const h=C.useRoute(),i=e.ref("all");let c=e.ref({param:"createdAt",order:"desc",options:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"views"},{label:"Creator",value:"creator"}]}),p=e.ref({start:null,end:null});const f=e.ref(!1);function x(a){f.value=!0,u.value=a}function y(){f.value=!1,u.value=null}const m=e.ref(!1);function V(a){m.value=!0,u.value=a}function v(){m.value=!1,u.value=null,n.value=[],r.value={tags:null,image:null}}const u=e.ref(null);e.ref("all");const r=e.ref({tags:null,image:null}),n=e.ref([]),N=a=>{n.value=a},d=e.ref([]),q=async a=>{await o.default.delete(a._id),o.default.removeItem(a,d.value)},g=async(a,s)=>{a.status=s,await o.default.update(a),o.default.updateItem(a,d.value)},b=async a=>{if(n.length<1){alert("Upload at least 1 image");return}let s=await o.default.create({images:n.value,tags:r.value.tags,status:a,owner:{type:"Organization",target:h.params._id},creator:{type:"User",target:k.state.user._id}});for(let t of s)o.default.addItem(t,d.value)};return(a,s)=>(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(I.default,{title:"Gallery","onUpdate:tabs_current":s[0]||(s[0]=t=>i.value=t),tabs_current:i.value,tabs:[{name:"All",value:"all"},{name:"Featured",value:"featured"},{name:"Published",value:"published"},{name:"Draft",value:"draft"},{name:"Archived",value:"archived"}],actions:[{method:()=>V(null),label:"Add Photo"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","actions"]),e.createVNode(E.default,{items:d.value,"onUpdate:items":s[1]||(s[1]=t=>d.value=t),sort:e.unref(c),"onUpdate:sort":s[2]||(s[2]=t=>e.isRef(c)?c.value=t:c=t),date:e.unref(p),"onUpdate:date":s[3]||(s[3]=t=>e.isRef(p)?p.value=t:p=t),states:{empty:{title:"No Photos Found",description:"Currently, there are no photos in gallery."}},store:{read:t=>e.unref(o.default).read(t)},options:{limit:15,owner:e.unref(h).params._id,...i.value!=="all"&&{status:i.value}},class:"cols-3 gap-thin"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,l=>{var P;return e.openBlock(),e.createElementBlock("div",{key:l._id,class:"bg-light radius-small flex-column pos-relative flex-wrap"},[e.createVNode(A.default,{entity:l,entityType:"photo",user:k.state.user._id,owner:l.creator,creator:l.creator,date:l.createdAt,actions:[{method:()=>q(l),label:"Delete"},{method:()=>g(l,"archived"),label:"Archive"},l.status==="draft"?{method:()=>g(l,"published"),label:"Publish"}:{method:()=>g(l,"draft"),label:"Draft"}],class:"pd-small mn-b-small"},null,8,["entity","user","owner","creator","date","actions"]),e.createElementVNode("div",S,[e.createElementVNode("img",{src:(a.FILE_SERVER_URL||"")+l.cover,class:"w-100 h-20r object-fit-contain bg-black",onClick:H=>x(l)},null,8,D),e.createElementVNode("div",F,e.toDisplayString(l.status),1)]),e.createElementVNode("div",j,[((P=l.tags)==null?void 0:P.length)>0?(e.openBlock(),e.createBlock(B.default,{key:0,chips:l.tags},null,8,["chips"])):e.createCommentVNode("",!0)])])}),128))]),_:1},8,["items","sort","date","store","options"]),e.createVNode(_.default,{onClosePopup:y,isPopupOpen:f.value,class:"bg-black o-hidden w-100 h-100 radius-big"},{default:e.withCtx(()=>[e.createVNode(U.default,{photoUrl:u.value.image},null,8,["photoUrl"])]),_:1},8,["isPopupOpen"]),e.createVNode(_.default,{title:"Add Photo",onClosePopup:v,isPopupOpen:m.value,class:"bg-white w-max-30r radius-big pd-big"},{default:e.withCtx(()=>[r.value.cover?(e.openBlock(),e.createElementBlock("img",{key:0,src:r.value.cover,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,L)):e.createCommentVNode("",!0),e.createVNode(O.default,{images:n.value,uploadPath:"/photos","onUpdate:images":N,class:"mn-b-semi bg-light radius-medium"},null,8,["images"]),e.createVNode(T.default,{onTagsChanged:s[4]||(s[4]=t=>r.value.tags=t),tags:r.value.tags,tagsSuggested:[{text:"people"},{text:"events"},{text:"place"},{text:"food"},{text:"drinks"},{text:"special"}],class:"mn-b-semi"},null,8,["tags"]),e.createElementVNode("div",G,[e.createVNode(w.default,{submit:()=>b("draft"),callback:v,class:"t-nowrap bg-second w-100"},{default:e.withCtx(()=>[e.createTextVNode(" To drafts ")]),_:1},8,["submit"]),e.createVNode(w.default,{submit:()=>b("published"),callback:v,class:"bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Publish ")]),_:1},8,["submit"])])]),_:1},8,["isPopupOpen"])]))}};exports.default=M;
|
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js
CHANGED
@@ -3,7 +3,7 @@ import { useRoute as j } from "vue-router";
|
|
3
3
|
/* empty css */
|
4
4
|
import I from "../../../../components/Button/Button.vue2.js";
|
5
5
|
/* empty css */
|
6
|
-
import G from "../../../../components/Chips/Chips.
|
6
|
+
import G from "../../../../components/Chips/Chips.vue.js";
|
7
7
|
/* empty css */
|
8
8
|
import O from "../../../../components/Popup/Popup.vue.js";
|
9
9
|
import z from "../../../../components/Feed/Feed.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("./views/localization/get-browser-locale.cjs"),P=require("./views/router/scrollBehavior.cjs"),a=require("./views/components/layouts/App.vue.cjs"),n=require("./views/components/layouts/Client.vue.cjs"),s=require("./views/components/partials/Header.vue.cjs"),u=require("./views/mixins/mixins.cjs"),i=require("./views/store/globals.cjs");function b(e,c,o,d={}){const l=d.route||"Home";e.config.globalProperties.DOMAIN_URL=process.env.DOMAIN_URL,e.config.globalProperties.API_URL=process.env.API_URL,e.config.globalProperties.MOBILE_APP=process.env.MOBILE_APP,e.config.globalProperties.FILE_SERVER_URL=process.env.FILE_SERVER_URL,e.config.globalProperties.GOOGLE_MAPS_API_KEY=process.env.GOOGLE_MAPS_API_KEY,e.mixin(u.globalMixins),o.beforeEach((f,m,r)=>{const t=f.params.locale;return t?e.config.globalProperties.$i18n.availableLocales.includes(t)?(e.config.globalProperties.$i18n.locale=t,r()):r({path:"/404"}):r()}),c.addStore("globals",i),o.addRoute(l,{path:"404",name:"notfound",component:()=>Promise.resolve().then(()=>require("./views/components/pages/404.vue.cjs"))}),o.addRoute(l,{path:"401",name:"unauthorized",component:()=>Promise.resolve().then(()=>require("./views/components/pages/401.vue.cjs"))}),o.addRoute(l,{path:":pathMatch(.*)*",name:"NotFound",redirect:{name:"notfound"}})}const _={initialize:b,views:{store:{storeGlobals:i},router:{},components:{layoutClient:n.default,layoutApp:a.default,Header:s.default}}};exports.getBrowserLocale=g.default;exports.scrollBehavior=P.default;exports.layoutApp=a.default;exports.layoutClient=n.default;exports.Header=s.default;exports.mixins=u;exports.storeGlobals=i;exports.default=_;
|
@@ -1,22 +1,23 @@
|
|
1
|
-
import { default as
|
2
|
-
import { default as
|
1
|
+
import { default as I } from "./views/localization/get-browser-locale.js";
|
2
|
+
import { default as M } from "./views/router/scrollBehavior.js";
|
3
3
|
import c from "./views/components/layouts/App.vue.js";
|
4
4
|
import m from "./views/components/layouts/Client.vue.js";
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import * as
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
import f from "./views/components/partials/Header.vue.js";
|
6
|
+
import { globalMixins as p } from "./views/mixins/mixins.js";
|
7
|
+
import * as L from "./views/mixins/mixins.js";
|
8
|
+
import * as l from "./views/store/globals.js";
|
9
|
+
function _(o, i, e, s = {}) {
|
10
|
+
const r = s.route || "Home";
|
11
|
+
o.config.globalProperties.DOMAIN_URL = process.env.DOMAIN_URL, o.config.globalProperties.API_URL = process.env.API_URL, o.config.globalProperties.MOBILE_APP = process.env.MOBILE_APP, o.config.globalProperties.FILE_SERVER_URL = process.env.FILE_SERVER_URL, o.config.globalProperties.GOOGLE_MAPS_API_KEY = process.env.GOOGLE_MAPS_API_KEY, o.mixin(p), e.beforeEach((n, u, a) => {
|
12
|
+
const t = n.params.locale;
|
13
|
+
return t ? o.config.globalProperties.$i18n.availableLocales.includes(t) ? (o.config.globalProperties.$i18n.locale = t, a()) : a({ path: "/404" }) : a();
|
14
|
+
}), i.addStore("globals", l), e.addRoute(r, { path: "404", name: "notfound", component: () => import("./views/components/pages/404.vue.js") }), e.addRoute(r, { path: "401", name: "unauthorized", component: () => import("./views/components/pages/401.vue.js") }), e.addRoute(r, { path: ":pathMatch(.*)*", name: "NotFound", redirect: { name: "notfound" } });
|
14
15
|
}
|
15
|
-
const
|
16
|
-
initialize:
|
16
|
+
const E = {
|
17
|
+
initialize: _,
|
17
18
|
views: {
|
18
19
|
store: {
|
19
|
-
storeGlobals:
|
20
|
+
storeGlobals: l
|
20
21
|
},
|
21
22
|
router: {
|
22
23
|
// routerOrders
|
@@ -24,16 +25,18 @@ const b = {
|
|
24
25
|
components: {
|
25
26
|
// Pages
|
26
27
|
layoutClient: m,
|
27
|
-
layoutApp: c
|
28
|
+
layoutApp: c,
|
29
|
+
Header: f
|
28
30
|
}
|
29
31
|
}
|
30
32
|
};
|
31
33
|
export {
|
32
|
-
|
33
|
-
|
34
|
+
f as Header,
|
35
|
+
E as default,
|
36
|
+
I as getBrowserLocale,
|
34
37
|
c as layoutApp,
|
35
38
|
m as layoutClient,
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
+
L as mixins,
|
40
|
+
M as scrollBehavior,
|
41
|
+
l as storeGlobals
|
39
42
|
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),C=require("../../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),V=require("../../../../reports/components/sections/FormReport.vue.cjs"),N=require("../../../../../components/Tooltip/Tooltip.vue2.cjs"),v=require("../../../../../components/Dropdown/Dropdown.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),C=require("../../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),V=require("../../../../reports/components/sections/FormReport.vue.cjs"),N=require("../../../../../components/Tooltip/Tooltip.vue2.cjs"),v=require("../../../../../components/Dropdown/Dropdown.vue.cjs");;/* empty css */;/* empty css */require("../../../../auth/views/store/auth.cjs");require("../../../../organizations/store/memberships.cjs");const $=require("../../../../icons/navigation/IconEllipsis.vue.cjs"),S={key:0,class:"pd-b-zero"},z={class:"w-100 flex-v-center flex-nojustify flex"},D={class:"w-100 flex-nowrap flex-v-center flex"},M=["src"],q={key:2,class:"t-semi"},R={key:1,class:"mn-l-micro mn-r-micro"},F={key:2,class:"pos-relative"},P={key:3},T={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},U={key:0,class:"w-4r pos-relative i-thin"},L={style:{position:"absolute",top:"0px",right:"0px"},class:"br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"},I=["src"],O={class:"bg-black flex-column flex gap-thin pd-thin radius-small"},j=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),A=["onClick"],H={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type","actions"],setup(t){x.useRouter();function E(n){const r=new Date,d=new Date(n),m=Math.abs(r-d),u=Math.floor(m/1e3),a=Math.floor(u/60),s=Math.floor(a/60),i=Math.floor(s/24),c=Math.floor(i/7);return c>0?`${c} week${c>1?"s":""} ago`:i>0?`${i} day${i>1?"s":""} ago`:s>0?`${s} hour${s>1?"s":""} ago`:a>0?`${a} minute${a>1?"s":""} ago`:"Just now"}return(n,r)=>{var m,u,a,s,i,c,k,h,g,b,f,y,w,B,p;const d=e.resolveComponent("router-link");return t.owner?(e.openBlock(),e.createElementBlock("header",S,[e.createElementVNode("div",z,[e.createElementVNode("div",D,[((a=(u=(m=t.owner.target)==null?void 0:m.profile)==null?void 0:u.photo)==null?void 0:a.length)>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(n.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,M)):e.createCommentVNode("",!0),!((i=(s=t.owner.target)==null?void 0:s.profile)!=null&&i.photo)&&t.type!=="short"?(e.openBlock(),e.createBlock(C.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))})):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",q,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString(((k=(c=t.owner.target)==null?void 0:c.profile)==null?void 0:k.name)||((h=t.creator.target)==null?void 0:h.username)||"Anonymous"),1),!t.creator.hidden&&((b=(g=t.owner.target)==null?void 0:g.profile)==null?void 0:b.name)!==((y=(f=t.creator.target)==null?void 0:f.profile)==null?void 0:y.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(o=>{var l;return n.$router.push({name:"User Profile",params:{_id:(l=t.creator.target)==null?void 0:l._id}})},["stop"]))}," · by "+e.toDisplayString(((B=(w=t.creator.target)==null?void 0:w.profile)==null?void 0:B.name)||((p=t.creator.target)==null?void 0:p.username)||"Anonymous"),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",R,"·")):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",F,[t.date?(e.openBlock(),e.createBlock(N.default,{key:0,text:n.formatDate(t.date)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E(t.date)),1)]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",P," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",T,[t.members?(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("span",L,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o?(e.openBlock(),e.createElementBlock("img",{key:l,src:(n.FILE_SERVER_URL||"")+o,style:e.normalizeStyle({position:"absolute",top:"0px",right:l*20+20+"%",zIndex:1-l}),class:"br-solid br-2px br-white i-thin bg-light radius-big"},null,12,I)):(e.openBlock(),e.createBlock(C.default,{key:1,style:e.normalizeStyle({position:"absolute",top:"0px",right:l*20+20+"%",zIndex:1-l}),class:"br-solid br-2px br-white i-thin bg-light radius-big"},null,8,["style"]))],64))),256))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user?(e.openBlock(),e.createBlock(v.default,{key:3,label:{component:$.default,class:"t-transp i-regular"},align:"right",class:"cursor-pointer z-index-2"},{default:e.withCtx(()=>[e.createElementVNode("section",O,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(V.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[j]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0),t.actions&&t.actions.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.actions,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.to?(e.openBlock(),e.createBlock(d,{key:o.to,to:o.to,class:e.normalizeClass(o.class||"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["to","class"])):e.createCommentVNode("",!0),o.method?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o.method,class:e.normalizeClass(o.class||"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")},e.toDisplayString(o.label),11,A)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=H;
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js
CHANGED
@@ -3,7 +3,7 @@ import { useRouter as T } from "vue-router";
|
|
3
3
|
import V from "../../../../icons/placeholders/PlaceholderUserpic.vue.js";
|
4
4
|
import A from "../../../../reports/components/sections/FormReport.vue.js";
|
5
5
|
import B from "../../../../../components/Tooltip/Tooltip.vue2.js";
|
6
|
-
import N from "../../../../../components/Dropdown/Dropdown.
|
6
|
+
import N from "../../../../../components/Dropdown/Dropdown.vue.js";
|
7
7
|
/* empty css */
|
8
8
|
/* empty css */
|
9
9
|
import "../../../../auth/views/store/auth.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs"),k=require("vue-i18n"),_=require("vue-router"),d=require("../../store/globals.cjs"),b=require("../../../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),B={key:0,class:"w-100 h-100"},i="https://weeder.delivery",C={__name:"App",props:{messages:{type:Object,required:!0},logotype:{type:Object}},setup(c){const p=c,{t:o,locale:$}=k.useI18n({messages:p.messages}),l=e.computed(()=>u(`${i}${a.path}`)),a=_.useRoute(),m=["en","ru"];function u(t){return t.endsWith("/")?t.slice(0,-1):t}const h=e.computed(()=>({title:o("meta.title"),description:o("meta.description"),meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"},{hid:"description",name:"description",content:o("meta.description")},{hid:"keywords",name:"keywords",content:o("meta.keywords")},{hid:"og:title",property:"og:title",content:o("meta.og.title")},{hid:"og:description",property:"og:description",content:o("meta.og.description")},{hid:"og:image",property:"og:image",content:i+"/favicon/cover.jpg"},{hid:"og:url",property:"og:url",content:l.value},{hid:"twitter:title",name:"twitter:title",content:o("meta.twitter.title")},{hid:"twitter:description",name:"twitter:description",content:o("meta.twitter.description")},{hid:"twitter:image",name:"twitter:image",content:i+"/favicon/cover.jpg"},{hid:"twitter:card",name:"twitter:card",content:o("meta.twitter.card")}],link:[{hid:"canonical",rel:"canonical",href:l.value},...g.value],htmlAttrs:{lang:o("meta.htmlAttrs.lang")}})),g=e.computed(()=>m.map(t=>{let r=a.path;a.params.locale?r=r.replace(`/${a.params.locale}`,`/${t}`):r=`/${t}${r}`;const n=u(`${i}${r}`);return{hid:"alternate",rel:"alternate",hreflang:t,href:n}}));y.u(h.value);const s=e.ref(!1);async function v(){const t=await b.Preferences.get({key:"first-use"});s.value=t.value?JSON.parse(t.value):!0}const w=t=>{s.value=t};return e.onMounted(async()=>{await v()}),(t,r)=>{const n=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"scaleTransition",mode:"out-in"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("section",B,[e.createVNode(n,{name:"Walkthrough",onUpdateFirstUse:w,slides:[1,2,3],class:"tab"})])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"moveFromTop",mode:"out-in",appear:""},{default:e.withCtx(()=>[t.MOBILE_APP?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(n,{key:0,name:"Header",ref:"header",class:e.normalizeClass(["transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0",{"pos-l-70":d.state.isOpenSidebar,"pos-l-0":!d.state.isOpenSidebar}]),theme:t.headerTheme,logotype:c.logotype},null,8,["theme","logotype","class"]))]),_:1}),e.createVNode(n,null,{default:e.withCtx(({Component:f})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f)))]),_:1})],64)}}};exports.default=C;
|
@@ -1,9 +1,13 @@
|
|
1
|
-
import { computed as
|
2
|
-
import { u as
|
3
|
-
import { useI18n as
|
4
|
-
import { useRoute as
|
5
|
-
import { state as
|
6
|
-
|
1
|
+
import { computed as l, ref as A, onMounted as C, resolveComponent as T, openBlock as a, createElementBlock as h, Fragment as U, createVNode as i, Transition as g, withCtx as m, createCommentVNode as f, createBlock as w, normalizeClass as j, resolveDynamicComponent as B } from "vue";
|
2
|
+
import { u as P } from "../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
|
3
|
+
import { useI18n as S } from "vue-i18n";
|
4
|
+
import { useRoute as N } from "vue-router";
|
5
|
+
import { state as v } from "../../store/globals.js";
|
6
|
+
import { Preferences as E } from "../../../../../../node_modules/@capacitor/preferences/dist/esm/index.js";
|
7
|
+
const H = {
|
8
|
+
key: 0,
|
9
|
+
class: "w-100 h-100"
|
10
|
+
}, s = "https://weeder.delivery", z = {
|
7
11
|
__name: "App",
|
8
12
|
props: {
|
9
13
|
messages: {
|
@@ -14,72 +18,99 @@ const i = "https://weeder.delivery", L = {
|
|
14
18
|
type: Object
|
15
19
|
}
|
16
20
|
},
|
17
|
-
setup(
|
18
|
-
const
|
19
|
-
messages:
|
20
|
-
}),
|
21
|
-
function
|
22
|
-
return
|
21
|
+
setup(p) {
|
22
|
+
const y = p, { t, locale: I } = S({
|
23
|
+
messages: y.messages
|
24
|
+
}), d = l(() => u(`${s}${n.path}`)), n = N(), k = ["en", "ru"];
|
25
|
+
function u(e) {
|
26
|
+
return e.endsWith("/") ? e.slice(0, -1) : e;
|
23
27
|
}
|
24
|
-
const
|
25
|
-
title:
|
26
|
-
description:
|
28
|
+
const _ = l(() => ({
|
29
|
+
title: t("meta.title"),
|
30
|
+
description: t("meta.description"),
|
27
31
|
meta: [
|
28
32
|
{ charset: "utf-8" },
|
29
33
|
{ name: "viewport", content: "width=device-width, initial-scale=1, shrink-to-fit=no" },
|
30
|
-
{ hid: "description", name: "description", content:
|
31
|
-
{ hid: "keywords", name: "keywords", content:
|
32
|
-
{ hid: "og:title", property: "og:title", content:
|
33
|
-
{ hid: "og:description", property: "og:description", content:
|
34
|
-
{ hid: "og:image", property: "og:image", content:
|
35
|
-
{ hid: "og:url", property: "og:url", content:
|
36
|
-
{ hid: "twitter:title", name: "twitter:title", content:
|
37
|
-
{ hid: "twitter:description", name: "twitter:description", content:
|
38
|
-
{ hid: "twitter:image", name: "twitter:image", content:
|
39
|
-
{ hid: "twitter:card", name: "twitter:card", content:
|
34
|
+
{ hid: "description", name: "description", content: t("meta.description") },
|
35
|
+
{ hid: "keywords", name: "keywords", content: t("meta.keywords") },
|
36
|
+
{ hid: "og:title", property: "og:title", content: t("meta.og.title") },
|
37
|
+
{ hid: "og:description", property: "og:description", content: t("meta.og.description") },
|
38
|
+
{ hid: "og:image", property: "og:image", content: s + "/favicon/cover.jpg" },
|
39
|
+
{ hid: "og:url", property: "og:url", content: d.value },
|
40
|
+
{ hid: "twitter:title", name: "twitter:title", content: t("meta.twitter.title") },
|
41
|
+
{ hid: "twitter:description", name: "twitter:description", content: t("meta.twitter.description") },
|
42
|
+
{ hid: "twitter:image", name: "twitter:image", content: s + "/favicon/cover.jpg" },
|
43
|
+
{ hid: "twitter:card", name: "twitter:card", content: t("meta.twitter.card") }
|
40
44
|
],
|
41
45
|
link: [
|
42
|
-
{ hid: "canonical", rel: "canonical", href:
|
43
|
-
...
|
46
|
+
{ hid: "canonical", rel: "canonical", href: d.value },
|
47
|
+
...b.value
|
44
48
|
],
|
45
|
-
htmlAttrs: { lang:
|
46
|
-
})),
|
47
|
-
let r =
|
48
|
-
|
49
|
-
const
|
49
|
+
htmlAttrs: { lang: t("meta.htmlAttrs.lang") }
|
50
|
+
})), b = l(() => k.map((e) => {
|
51
|
+
let r = n.path;
|
52
|
+
n.params.locale ? r = r.replace(`/${n.params.locale}`, `/${e}`) : r = `/${e}${r}`;
|
53
|
+
const o = u(`${s}${r}`);
|
50
54
|
return {
|
51
55
|
hid: "alternate",
|
52
56
|
rel: "alternate",
|
53
|
-
hreflang:
|
54
|
-
href:
|
57
|
+
hreflang: e,
|
58
|
+
href: o
|
55
59
|
};
|
56
60
|
}));
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
+
P(_.value);
|
62
|
+
const c = A(!1);
|
63
|
+
async function $() {
|
64
|
+
const e = await E.get({ key: "first-use" });
|
65
|
+
c.value = e.value ? JSON.parse(e.value) : !0;
|
66
|
+
}
|
67
|
+
const F = (e) => {
|
68
|
+
c.value = e;
|
69
|
+
};
|
70
|
+
return C(async () => {
|
71
|
+
await $();
|
72
|
+
}), (e, r) => {
|
73
|
+
const o = T("router-view");
|
74
|
+
return a(), h(U, null, [
|
75
|
+
i(g, {
|
76
|
+
name: "scaleTransition",
|
77
|
+
mode: "out-in"
|
78
|
+
}, {
|
79
|
+
default: m(() => [
|
80
|
+
c.value ? (a(), h("section", H, [
|
81
|
+
i(o, {
|
82
|
+
name: "Walkthrough",
|
83
|
+
onUpdateFirstUse: F,
|
84
|
+
slides: [1, 2, 3],
|
85
|
+
class: "tab"
|
86
|
+
})
|
87
|
+
])) : f("", !0)
|
88
|
+
]),
|
89
|
+
_: 1
|
90
|
+
}),
|
91
|
+
i(g, {
|
61
92
|
name: "moveFromTop",
|
62
93
|
mode: "out-in",
|
63
94
|
appear: ""
|
64
95
|
}, {
|
65
|
-
default:
|
66
|
-
|
96
|
+
default: m(() => [
|
97
|
+
e.MOBILE_APP ? f("", !0) : (a(), w(o, {
|
67
98
|
key: 0,
|
68
99
|
name: "Header",
|
69
100
|
ref: "header",
|
70
|
-
class:
|
71
|
-
"pos-l-70":
|
72
|
-
"pos-l-0": !
|
101
|
+
class: j(["transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0", {
|
102
|
+
"pos-l-70": v.isOpenSidebar,
|
103
|
+
"pos-l-0": !v.isOpenSidebar
|
73
104
|
}]),
|
74
|
-
theme:
|
75
|
-
logotype:
|
105
|
+
theme: e.headerTheme,
|
106
|
+
logotype: p.logotype
|
76
107
|
}, null, 8, ["theme", "logotype", "class"]))
|
77
108
|
]),
|
78
109
|
_: 1
|
79
110
|
}),
|
80
|
-
|
81
|
-
default:
|
82
|
-
(
|
111
|
+
i(o, null, {
|
112
|
+
default: m(({ Component: O }) => [
|
113
|
+
(a(), w(B(O)))
|
83
114
|
]),
|
84
115
|
_: 1
|
85
116
|
})
|
@@ -88,5 +119,5 @@ const i = "https://weeder.delivery", L = {
|
|
88
119
|
}
|
89
120
|
};
|
90
121
|
export {
|
91
|
-
|
122
|
+
z as default
|
92
123
|
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("vue-router"),t=require("../../store/globals.cjs"),C=require("../../../../../components/Loader/Loader.vue2.cjs"),b=require("../../../../../components/Status/Status.vue.cjs"),h=require("../../../../../components/Sidebar/Sidebar.vue.cjs"),_=require("../../../../../components/Popup/Popup.vue.cjs");require("vue-i18n");;/* empty css */const w=require("../partials/LocationSelection.vue.cjs"),B=require("../partials/Navigation.vue.cjs");require("../../../../products/store/categories.cjs");const O=require("../partials/BottomNavigation.vue.cjs"),q=require("../../../../orders/components/partials/ShopCart.vue.cjs");;/* empty css */const y={id:"app-wrapper",class:"pos-relative"},N={__name:"Client",setup(V){const n=f.useRoute();f.useRouter();let u=e.ref(!1);const i=e.ref(null),m=e.ref(null),d=e.ref(n.query.referalCode);function v(){t.state.isOpenLocationPopup=!1}function g(){document.getElementById("app").scrollIntoView()}const s=e.ref(0);let l=!1;const r=e.ref(null);e.computed(()=>s.value>50?"light":n.meta.header_theme||"light");const S=()=>{if(s.value=event.target.scrollTop,s.value>50&&!l){l=!0,r.value.$el.classList.add("scrolled");const o=-r.value.$el.getBoundingClientRect().top;r.value.$el.style.transform=`translateY(${o}px)`,setTimeout(()=>{r.value.$el.style.transform="translateY(0)"},0)}else if(s.value<=75&&l){l=!1,r.value.$el.classList.remove("scrolled");const o=r.value.$el.getBoundingClientRect().top;r.value.$el.style.transform=`translateY(${o}px)`,setTimeout(()=>{r.value.$el.style.transform="translateY(0)"},0)}};return e.onMounted(async()=>{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/service-worker.js").then(o=>{console.log("SW registered: ",o)}).catch(o=>{console.log("SW registration failed: ",o)})}),i&&(u.value=!0);const a=localStorage.getItem("position");a?t.state.position=JSON.parse(a):t.state.isOpenLocationPopup=!0,d.value&&localStorage.setItem("referalCode",d.value)}),(a,o)=>{const k=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",y,[e.createVNode(e.Transition,{name:"moveFromTop",appear:""},{default:e.withCtx(()=>[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(C.default,{key:0,class:"pos-fixed"}))]),_:1}),e.createVNode(e.Transition,{name:"moveFromTop",mode:"out-in",appear:""},{default:e.withCtx(()=>[e.unref(u)&&t.state.isOpenSidebar?(e.openBlock(),e.createBlock(h.default,{key:0,stateSidebar:t.state.isOpenSidebar,onCloseSidebar:o[0]||(o[0]=()=>{t.state.isOpenSidebar=!t.state.isOpenSidebar}),class:e.normalizeClass(["transition-ease-in-out pos-absolute w-70 z-index-0 bg-light",{"pos-l-70-negative":!t.state.isOpenSidebar,"pos-l-0":t.state.isOpenSidebar}])},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"h3 pd-big cols-1"})]),_:1},8,["stateSidebar","class"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(_.default,{onClosePopup:v,isPopupOpen:t.state.isOpenLocationPopup,class:"bg-white pd-semi w-m-33r radius-big"},{default:e.withCtx(()=>[e.createVNode(w.default)]),_:1},8,["isPopupOpen"]),e.createElementVNode("section",{id:"screen",ref_key:"screen",ref:m,onScroll:S,onClick:o[1]||(o[1]=p=>t.state.isOpenSidebar?c=>t.state.isOpenSidebar=!1:c=>{console.log("not succes")}),class:e.normalizeClass(["transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll",{"pos-l-70":t.state.isOpenSidebar,"pos-l-0":!t.state.isOpenSidebar}])},[e.createVNode(q.default),t.state.error.show?(e.openBlock(),e.createBlock(b.default,{key:0,data:t.state.error,class:"z-index-7"},null,8,["data"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(k,null,{default:e.withCtx(({Component:p,route:c})=>[e.createVNode(e.Transition,{onBeforeEnter:g,name:"scaleIn",mode:"out-in",appear:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p),{ref_key:"page",ref:i,key:c.path}))]),_:2},1024)]),_:1})]),_:1}))],34),a.MOBILE_APP&&e.unref(n).meta.title_hide?(e.openBlock(),e.createBlock(O.default,{key:0,class:"pd-small z-index-2"})):e.createCommentVNode("",!0)])}}};exports.default=N;
|