@ozdao/prometheus-framework 0.2.195 → 0.2.197
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +7 -3
- 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 +94 -116
- 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 +71 -105
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +92 -1
- package/dist/prometheus-framework.es.js +12891 -36
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/index.js +0 -1
- package/src/main.js +0 -3
- package/src/modules/backoffice/components/layouts/Backoffice.vue +3 -2
- package/src/modules/backoffice/router/backoffice.js +10 -2
- package/src/modules/globals/views/components/layouts/App.vue +36 -31
- package/src/modules/globals/views/components/layouts/Client.vue +35 -53
- package/src/{components/Sidebar → modules/globals/views/components/partials}/Sidebar.vue +2 -4
- package/src/styles/layout.scss +1 -0
package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("vue-router");require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const a={id:"account",class:"gap-thin pd-thin cols-2-1_3"},s={key:0,class:"w-100"},u={class:"w-100"},i={__name:"Backoffice",props:{
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("vue-router");require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const a={id:"account",class:"gap-thin pd-thin cols-2-1_3"},s={key:0,class:"w-100"},u={class:"w-100"},i={__name:"Backoffice",props:{newsletterPopup:Number},setup(l){const t=o.useRoute();return o.useRouter(),e.ref(null),e.ref([]),e.onMounted(async()=>{}),(d,_)=>{const n=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("section",a,[e.unref(t).meta.sidebar?(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t).meta.sidebar)))]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",u,[e.createVNode(n,null,{default:e.withCtx(({Component:r,route:c})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r),{ref:"page",key:c.path}))]),_:2},1024)]),_:1})])])}}};exports.default=i;
|
package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ref as r, onMounted as
|
2
|
-
import { useRoute as
|
1
|
+
import { ref as r, onMounted as p, resolveComponent as d, openBlock as e, createElementBlock as s, unref as a, createVNode as t, Transition as c, withCtx as o, createBlock as i, resolveDynamicComponent as u, createCommentVNode as f, createElementVNode as h } from "vue";
|
2
|
+
import { useRoute as k, useRouter as v } from "vue-router";
|
3
3
|
import "../../../auth/views/store/auth.js";
|
4
4
|
import "../../../organizations/store/organizations.js";
|
5
5
|
const w = {
|
@@ -11,34 +11,34 @@ const w = {
|
|
11
11
|
}, B = { class: "w-100" }, I = {
|
12
12
|
__name: "Backoffice",
|
13
13
|
props: {
|
14
|
-
|
14
|
+
newsletterPopup: Number
|
15
15
|
},
|
16
16
|
setup(C) {
|
17
|
-
const n =
|
18
|
-
return
|
19
|
-
}), (
|
20
|
-
const
|
21
|
-
return e(),
|
22
|
-
|
17
|
+
const n = k();
|
18
|
+
return v(), r(null), r([]), p(async () => {
|
19
|
+
}), (N, b) => {
|
20
|
+
const m = d("router-view");
|
21
|
+
return e(), s("section", w, [
|
22
|
+
a(n).meta.sidebar ? (e(), s("div", y, [
|
23
23
|
t(c, {
|
24
24
|
name: "scaleIn",
|
25
25
|
mode: "out-in"
|
26
26
|
}, {
|
27
27
|
default: o(() => [
|
28
|
-
(e(), i(
|
28
|
+
(e(), i(u(a(n).meta.sidebar)))
|
29
29
|
]),
|
30
30
|
_: 1
|
31
31
|
})
|
32
32
|
])) : f("", !0),
|
33
33
|
h("div", B, [
|
34
|
-
t(
|
34
|
+
t(m, null, {
|
35
35
|
default: o(({ Component: l, route: _ }) => [
|
36
36
|
t(c, {
|
37
37
|
name: "scaleIn",
|
38
38
|
mode: "out-in"
|
39
39
|
}, {
|
40
40
|
default: o(() => [
|
41
|
-
(e(), i(
|
41
|
+
(e(), i(u(l), {
|
42
42
|
ref: "page",
|
43
43
|
key: _.path
|
44
44
|
}))
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const r=require("vue-router");require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const t={class:""},o=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice",-1),u=[o],s={__name:"Dashboard",props:{favorites:Array},setup(c){return r.useRoute(),r.useRouter(),e.ref(null),e.ref([]),e.onMounted(async()=>{}),(i,n)=>(e.openBlock(),e.createElementBlock("div",t,u))}};exports.default=s;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as e, onMounted as o, openBlock as t, createElementBlock as r, createElementVNode as s } from "vue";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
import "../../../../components/Menu/MenuItem.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
import { useRoute as m, useRouter as c } from "vue-router";
|
package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Menu/Menu.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Menu/Menu.vue2.cjs"),n=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const u=require("../../../icons/entities/IconProducts.vue.cjs"),a=require("../../../icons/entities/IconEvents.vue.cjs"),i=require("../../../icons/entities/IconGroups.vue.cjs"),c=require("../../../icons/entities/IconGallery.vue.cjs"),d=require("../../../icons/entities/IconOrders.vue.cjs"),f=require("../../../icons/entities/IconLeftovers.vue.cjs"),l=require("vue-router");require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Community ",-1),V=e.createElementVNode("span",null," Products ",-1),v=e.createElementVNode("span",null," Leftovers ",-1),C=e.createElementVNode("span",null," Orders ",-1),_=e.createElementVNode("span",null," Gallery ",-1),h=e.createElementVNode("span",null," Events ",-1),k=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),g=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),b={__name:"Sidebar",props:{favorites:Array},setup(x){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(q,t)=>(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(o.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=s=>e.unref(r).push({name:"Organization Members"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),p]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=s=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=s=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),V]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=s=>e.unref(r).push({name:"Leftovers"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=s=>e.unref(r).push({name:"Backoffice Orders"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=s=>e.unref(r).push({name:"Backoffice Gallery"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(c.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=s=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=s=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1})]),_:1}),e.createVNode(o.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[8]||(t[8]=s=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(n.default,{onClick:t[9]||(t[9]=s=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1}),e.createVNode(n.default,{onClick:t[10]||(t[10]=s=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=b;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as a, onMounted as m, openBlock as f, createElementBlock as p, createVNode as e, withCtx as o, unref as n, createElementVNode as i } from "vue";
|
2
|
-
import u from "../../../../components/Menu/Menu.
|
2
|
+
import u from "../../../../components/Menu/Menu.vue2.js";
|
3
3
|
import r from "../../../../components/Menu/MenuItem.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
import c from "../../../icons/entities/IconProducts.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../components/layouts/Backoffice.vue.cjs"),t=require("../components/partials/Sidebar.vue.cjs");require("vue");const o=require("../../auth/views/middlewares/auth.validation.cjs"),i=[{path:"backoffice",name:"Backoffice Root",component:e.default,beforeEnter:[o.requiresAdmin],children:[{path:"",name:"Backoffice Admin",meta:{title:{en:"Backoffice",ru:"Управление"}
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../components/layouts/Backoffice.vue.cjs"),t=require("../components/partials/Sidebar.vue.cjs");require("vue");const o=require("../../auth/views/middlewares/auth.validation.cjs"),i=[{path:"backoffice",name:"Backoffice Root",component:e.default,meta:{sidebar:t.default},props:{newsletterPopup:12344},beforeEnter:[o.requiresAdmin],children:[{path:"",name:"Backoffice Admin",meta:{title:{en:"Backoffice",ru:"Управление"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Dashboard.vue.cjs"))},{path:"reports",name:"Backoffice Reports",meta:{title:{en:"Backoffice Reports",ru:"Управление Жалобами"}},component:()=>Promise.resolve().then(()=>require("../../reports/components/pages/BackofficeReports.vue.cjs"))},{path:"organizations",name:"Backoffice Organizations",meta:{title:{en:"Backoffice Organizations",ru:"Управление Организациями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../organizations/components/pages/Organizations.vue.cjs"))},{path:"events",name:"Backoffice Events",meta:{title:{en:"Backoffice Events",ru:"Управление Событиями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../events/components/pages/Events.vue.cjs"))},{path:"community",name:"Backoffice Community",meta:{title:{en:"Backoffice Community",ru:"Управление Сообществом"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../community/components/pages/Community.vue.cjs"))}]}];exports.default=i;
|
@@ -6,6 +6,12 @@ const c = [{
|
|
6
6
|
path: "backoffice",
|
7
7
|
name: "Backoffice Root",
|
8
8
|
component: e,
|
9
|
+
meta: {
|
10
|
+
sidebar: t
|
11
|
+
},
|
12
|
+
props: {
|
13
|
+
newsletterPopup: 12344
|
14
|
+
},
|
9
15
|
beforeEnter: [
|
10
16
|
o
|
11
17
|
],
|
@@ -17,9 +23,7 @@ const c = [{
|
|
17
23
|
title: {
|
18
24
|
en: "Backoffice",
|
19
25
|
ru: "Управление"
|
20
|
-
}
|
21
|
-
sidebar: t,
|
22
|
-
authorize: []
|
26
|
+
}
|
23
27
|
},
|
24
28
|
component: () => import(
|
25
29
|
/* webpackChunkName: 'BackofficeGallery' */
|
@@ -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"),w=require("../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs"),y=require("vue-i18n"),k=require("vue-router"),n=require("../../store/globals.cjs"),C=require("../partials/BottomNavigation.vue.cjs"),S=require("../../../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),i="https://weeder.delivery",O={__name:"App",props:{messages:{type:Object,required:!0},logotype:{type:Object}},setup(c){const m=c,{t:a,locale:B}=y.useI18n({messages:m.messages}),d=e.computed(()=>p(`${i}${o.path}`)),o=k.useRoute(),u=["en","ru"];function p(t){return t.endsWith("/")?t.slice(0,-1):t}const g=e.computed(()=>({title:a("meta.title"),description:a("meta.description"),meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"},{hid:"description",name:"description",content:a("meta.description")},{hid:"keywords",name:"keywords",content:a("meta.keywords")},{hid:"og:title",property:"og:title",content:a("meta.og.title")},{hid:"og:description",property:"og:description",content:a("meta.og.description")},{hid:"og:image",property:"og:image",content:i+"/favicon/cover.jpg"},{hid:"og:url",property:"og:url",content:d.value},{hid:"twitter:title",name:"twitter:title",content:a("meta.twitter.title")},{hid:"twitter:description",name:"twitter:description",content:a("meta.twitter.description")},{hid:"twitter:image",name:"twitter:image",content:i+"/favicon/cover.jpg"},{hid:"twitter:card",name:"twitter:card",content:a("meta.twitter.card")}],link:[{hid:"canonical",rel:"canonical",href:d.value},...h.value],htmlAttrs:{lang:a("meta.htmlAttrs.lang")}})),h=e.computed(()=>u.map(t=>{let r=o.path;o.params.locale?r=r.replace(`/${o.params.locale}`,`/${t}`):r=`/${t}${r}`;const s=p(`${i}${r}`);return{hid:"alternate",rel:"alternate",hreflang:t,href:s}}));w.u(g.value);const v=e.ref(!1);async function f(){const t=await S.Preferences.get({key:"first-use"});v.value=t.value?JSON.parse(t.value):!0}return e.onMounted(async()=>{await f()}),(t,r)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"moveFromTop",mode:"out-in",appear:""},{default:e.withCtx(()=>[e.unref(o).meta.sidebar&&n.state.isOpenSidebar?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o).meta.sidebar),{key:0,stateSidebar:n.state.isOpenSidebar,onCloseSidebar:r[0]||(r[0]=()=>{n.state.isOpenSidebar=!n.state.isOpenSidebar}),class:e.normalizeClass(["transition-ease-in-out pos-absolute w-70 z-index-0 bg-light",{"pos-l-70-negative":!n.state.isOpenSidebar,"pos-l-0":n.state.isOpenSidebar}])},{default:e.withCtx(({Component:l})=>[e.unref(o).meta.navigation?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o).meta.navigation),{key:0,class:"h3 pd-big cols-1"})):e.createCommentVNode("",!0)]),_:1},40,["stateSidebar","class"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"moveFromTop",mode:"out-in",appear:""},{default:e.withCtx(()=>[!t.MOBILE_APP&&e.unref(o).meta.header?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o).meta.header),{key:0,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":n.state.isOpenSidebar,"pos-l-0":!n.state.isOpenSidebar}]),theme:t.headerTheme,logotype:c.logotype},{default:e.withCtx(()=>[e.unref(o).meta.navigation?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o).meta.navigation),{key:0,class:"mn-l-auto desktop-only"})):e.createCommentVNode("",!0)]),_:1},8,["theme","logotype","class"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(s,{class:e.normalizeClass([{"pos-l-70":n.state.isOpenSidebar,"pos-l-0":!n.state.isOpenSidebar},"transition-ease-in-out h-min-100 w-100 bg-white pos-relative"]),ref:"screen",onScroll:t.handleScroll,onClick:r[1]||(r[1]=l=>n.state.isOpenSidebar?b=>n.state.isOpenSidebar=!1:b=>{console.log("not succes")})},{default:e.withCtx(({Component:l})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l)))]),_:1},8,["class","onScroll"]),t.MOBILE_APP&&e.unref(o).meta.title_hide?(e.openBlock(),e.createBlock(C.default,{key:0,class:"pd-small z-index-2"})):e.createCommentVNode("",!0)],64)}}};exports.default=O;
|
@@ -1,15 +1,11 @@
|
|
1
|
-
import { computed as
|
2
|
-
import { u as
|
3
|
-
import { useI18n as
|
4
|
-
import { useRoute as
|
5
|
-
import { state as
|
6
|
-
import E from "../../../../../components/Sidebar/Sidebar.vue.js";
|
1
|
+
import { computed as g, ref as B, onMounted as P, resolveComponent as F, openBlock as n, createElementBlock as T, Fragment as j, createVNode as h, Transition as y, withCtx as l, unref as i, createBlock as s, resolveDynamicComponent as p, normalizeClass as f, createCommentVNode as m } from "vue";
|
2
|
+
import { u as N } from "../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
|
3
|
+
import { useI18n as z } from "vue-i18n";
|
4
|
+
import { useRoute as E } from "vue-router";
|
5
|
+
import { state as a } from "../../store/globals.js";
|
7
6
|
import I from "../partials/BottomNavigation.vue.js";
|
8
7
|
import { Preferences as L } from "../../../../../../node_modules/@capacitor/preferences/dist/esm/index.js";
|
9
|
-
const
|
10
|
-
key: 0,
|
11
|
-
class: "w-100 h-100"
|
12
|
-
}, u = "https://weeder.delivery", K = {
|
8
|
+
const c = "https://weeder.delivery", R = {
|
13
9
|
__name: "App",
|
14
10
|
props: {
|
15
11
|
messages: {
|
@@ -18,156 +14,138 @@ const M = {
|
|
18
14
|
},
|
19
15
|
logotype: {
|
20
16
|
type: Object
|
21
|
-
},
|
22
|
-
navigation: {
|
23
|
-
type: Object
|
24
17
|
}
|
25
18
|
},
|
26
|
-
setup(
|
27
|
-
const
|
28
|
-
messages:
|
29
|
-
}),
|
30
|
-
function
|
19
|
+
setup(v) {
|
20
|
+
const S = v, { t: o, locale: M } = z({
|
21
|
+
messages: S.messages
|
22
|
+
}), b = g(() => w(`${c}${t.path}`)), t = E(), k = ["en", "ru"];
|
23
|
+
function w(e) {
|
31
24
|
return e.endsWith("/") ? e.slice(0, -1) : e;
|
32
25
|
}
|
33
|
-
const
|
34
|
-
title:
|
35
|
-
description:
|
26
|
+
const O = g(() => ({
|
27
|
+
title: o("meta.title"),
|
28
|
+
description: o("meta.description"),
|
36
29
|
meta: [
|
37
30
|
{ charset: "utf-8" },
|
38
31
|
{ name: "viewport", content: "width=device-width, initial-scale=1, shrink-to-fit=no" },
|
39
|
-
{ hid: "description", name: "description", content:
|
40
|
-
{ hid: "keywords", name: "keywords", content:
|
41
|
-
{ hid: "og:title", property: "og:title", content:
|
42
|
-
{ hid: "og:description", property: "og:description", content:
|
43
|
-
{ hid: "og:image", property: "og:image", content:
|
44
|
-
{ hid: "og:url", property: "og:url", content:
|
45
|
-
{ hid: "twitter:title", name: "twitter:title", content:
|
46
|
-
{ hid: "twitter:description", name: "twitter:description", content:
|
47
|
-
{ hid: "twitter:image", name: "twitter:image", content:
|
48
|
-
{ hid: "twitter:card", name: "twitter:card", content:
|
32
|
+
{ hid: "description", name: "description", content: o("meta.description") },
|
33
|
+
{ hid: "keywords", name: "keywords", content: o("meta.keywords") },
|
34
|
+
{ hid: "og:title", property: "og:title", content: o("meta.og.title") },
|
35
|
+
{ hid: "og:description", property: "og:description", content: o("meta.og.description") },
|
36
|
+
{ hid: "og:image", property: "og:image", content: c + "/favicon/cover.jpg" },
|
37
|
+
{ hid: "og:url", property: "og:url", content: b.value },
|
38
|
+
{ hid: "twitter:title", name: "twitter:title", content: o("meta.twitter.title") },
|
39
|
+
{ hid: "twitter:description", name: "twitter:description", content: o("meta.twitter.description") },
|
40
|
+
{ hid: "twitter:image", name: "twitter:image", content: c + "/favicon/cover.jpg" },
|
41
|
+
{ hid: "twitter:card", name: "twitter:card", content: o("meta.twitter.card") }
|
49
42
|
],
|
50
43
|
link: [
|
51
|
-
{ hid: "canonical", rel: "canonical", href:
|
52
|
-
|
44
|
+
{ hid: "canonical", rel: "canonical", href: b.value },
|
45
|
+
..._.value
|
53
46
|
],
|
54
|
-
htmlAttrs: { lang:
|
55
|
-
})),
|
56
|
-
let
|
57
|
-
|
58
|
-
const
|
47
|
+
htmlAttrs: { lang: o("meta.htmlAttrs.lang") }
|
48
|
+
})), _ = g(() => k.map((e) => {
|
49
|
+
let r = t.path;
|
50
|
+
t.params.locale ? r = r.replace(`/${t.params.locale}`, `/${e}`) : r = `/${e}${r}`;
|
51
|
+
const d = w(`${c}${r}`);
|
59
52
|
return {
|
60
53
|
hid: "alternate",
|
61
54
|
rel: "alternate",
|
62
55
|
hreflang: e,
|
63
|
-
href:
|
56
|
+
href: d
|
64
57
|
};
|
65
58
|
}));
|
66
|
-
|
67
|
-
const
|
68
|
-
async function
|
59
|
+
N(O.value);
|
60
|
+
const $ = B(!1);
|
61
|
+
async function C() {
|
69
62
|
const e = await L.get({ key: "first-use" });
|
70
|
-
|
63
|
+
$.value = e.value ? JSON.parse(e.value) : !0;
|
71
64
|
}
|
72
|
-
|
73
|
-
|
74
|
-
}
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
const p = P("router-view");
|
79
|
-
return a(), k(T, null, [
|
80
|
-
m(v, {
|
81
|
-
name: "scaleTransition",
|
82
|
-
mode: "out-in"
|
83
|
-
}, {
|
84
|
-
default: r(() => [
|
85
|
-
g.value ? (a(), k("section", M, [
|
86
|
-
m(p, {
|
87
|
-
name: "Walkthrough",
|
88
|
-
onUpdateFirstUse: A,
|
89
|
-
slides: [1, 2, 3],
|
90
|
-
class: "tab"
|
91
|
-
})
|
92
|
-
])) : s("", !0)
|
93
|
-
]),
|
94
|
-
_: 1
|
95
|
-
}),
|
96
|
-
m(v, {
|
65
|
+
return P(async () => {
|
66
|
+
await C();
|
67
|
+
}), (e, r) => {
|
68
|
+
const d = F("router-view");
|
69
|
+
return n(), T(j, null, [
|
70
|
+
h(y, {
|
97
71
|
name: "moveFromTop",
|
98
72
|
mode: "out-in",
|
99
73
|
appear: ""
|
100
74
|
}, {
|
101
|
-
default:
|
102
|
-
i.isOpenSidebar ? (
|
75
|
+
default: l(() => [
|
76
|
+
i(t).meta.sidebar && a.isOpenSidebar ? (n(), s(p(i(t).meta.sidebar), {
|
103
77
|
key: 0,
|
104
|
-
stateSidebar:
|
105
|
-
onCloseSidebar:
|
106
|
-
|
78
|
+
stateSidebar: a.isOpenSidebar,
|
79
|
+
onCloseSidebar: r[0] || (r[0] = () => {
|
80
|
+
a.isOpenSidebar = !a.isOpenSidebar;
|
107
81
|
}),
|
108
|
-
class:
|
109
|
-
"pos-l-70-negative": !
|
110
|
-
"pos-l-0":
|
82
|
+
class: f(["transition-ease-in-out pos-absolute w-70 z-index-0 bg-light", {
|
83
|
+
"pos-l-70-negative": !a.isOpenSidebar,
|
84
|
+
"pos-l-0": a.isOpenSidebar
|
111
85
|
}])
|
112
86
|
}, {
|
113
|
-
default:
|
114
|
-
|
87
|
+
default: l(({ Component: u }) => [
|
88
|
+
i(t).meta.navigation ? (n(), s(p(i(t).meta.navigation), {
|
115
89
|
key: 0,
|
116
90
|
class: "h3 pd-big cols-1"
|
117
|
-
})) :
|
91
|
+
})) : m("", !0)
|
118
92
|
]),
|
119
93
|
_: 1
|
120
|
-
},
|
94
|
+
}, 40, ["stateSidebar", "class"])) : m("", !0)
|
121
95
|
]),
|
122
96
|
_: 1
|
123
97
|
}),
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
class: _(["transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0", {
|
129
|
-
"pos-l-70": i.isOpenSidebar,
|
130
|
-
"pos-l-0": !i.isOpenSidebar
|
131
|
-
}]),
|
132
|
-
theme: e.headerTheme,
|
133
|
-
logotype: y.logotype
|
98
|
+
h(y, {
|
99
|
+
name: "moveFromTop",
|
100
|
+
mode: "out-in",
|
101
|
+
appear: ""
|
134
102
|
}, {
|
135
|
-
default:
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
103
|
+
default: l(() => [
|
104
|
+
!e.MOBILE_APP && i(t).meta.header ? (n(), s(p(i(t).meta.header), {
|
105
|
+
key: 0,
|
106
|
+
ref: "header",
|
107
|
+
class: f(["transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0", {
|
108
|
+
"pos-l-70": a.isOpenSidebar,
|
109
|
+
"pos-l-0": !a.isOpenSidebar
|
110
|
+
}]),
|
111
|
+
theme: e.headerTheme,
|
112
|
+
logotype: v.logotype
|
140
113
|
}, {
|
141
|
-
default:
|
142
|
-
(
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
class: "mn-l-auto desktop-only"
|
147
|
-
})) : s("", !0)
|
148
|
-
]),
|
149
|
-
_: 2
|
150
|
-
}, 1024))
|
114
|
+
default: l(() => [
|
115
|
+
i(t).meta.navigation ? (n(), s(p(i(t).meta.navigation), {
|
116
|
+
key: 0,
|
117
|
+
class: "mn-l-auto desktop-only"
|
118
|
+
})) : m("", !0)
|
151
119
|
]),
|
152
|
-
_:
|
153
|
-
},
|
120
|
+
_: 1
|
121
|
+
}, 8, ["theme", "logotype", "class"])) : m("", !0)
|
154
122
|
]),
|
155
123
|
_: 1
|
156
|
-
}
|
157
|
-
|
158
|
-
|
159
|
-
|
124
|
+
}),
|
125
|
+
h(d, {
|
126
|
+
class: f([{
|
127
|
+
"pos-l-70": a.isOpenSidebar,
|
128
|
+
"pos-l-0": !a.isOpenSidebar
|
129
|
+
}, "transition-ease-in-out h-min-100 w-100 bg-white pos-relative"]),
|
130
|
+
ref: "screen",
|
131
|
+
onScroll: e.handleScroll,
|
132
|
+
onClick: r[1] || (r[1] = (u) => a.isOpenSidebar ? (A) => a.isOpenSidebar = !1 : (A) => {
|
133
|
+
console.log("not succes");
|
134
|
+
})
|
135
|
+
}, {
|
136
|
+
default: l(({ Component: u }) => [
|
137
|
+
(n(), s(p(u)))
|
160
138
|
]),
|
161
139
|
_: 1
|
162
|
-
}),
|
163
|
-
e.MOBILE_APP &&
|
164
|
-
key:
|
140
|
+
}, 8, ["class", "onScroll"]),
|
141
|
+
e.MOBILE_APP && i(t).meta.title_hide ? (n(), s(I, {
|
142
|
+
key: 0,
|
165
143
|
class: "pd-small z-index-2"
|
166
|
-
})) :
|
144
|
+
})) : m("", !0)
|
167
145
|
], 64);
|
168
146
|
};
|
169
147
|
}
|
170
148
|
};
|
171
149
|
export {
|
172
|
-
|
150
|
+
R as default
|
173
151
|
};
|
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"),i=require("vue-router"),t=require("../../store/globals.cjs"),v=require("../../../../../components/Loader/Loader.vue2.cjs"),_=require("../../../../../components/Status/Status.vue.cjs"),g=require("../../../../../components/Popup/Popup.vue2.cjs");require("vue-i18n");;/* empty css */const h=require("../partials/LocationSelection.vue.cjs");require("../../../../products/store/categories.cjs");const w=require("../../../../orders/components/partials/ShopCart.vue.cjs");;/* empty css */const k={id:"app-wrapper",class:"pos-relative"},C={__name:"Client",setup(q){const s=i.useRoute();i.useRouter();let r=e.ref(!1);const a=e.ref(null);e.ref(null);const l=e.ref(s.query.referalCode);function c(){t.state.isOpenLocationPopup=!1}function u(){document.getElementById("app").scrollIntoView()}const p=e.ref(0);return e.ref(null),e.computed(()=>p.value>50?"light":s.meta.header_theme||"light"),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)})}),a&&(r.value=!0);const n=localStorage.getItem("position");n?t.state.position=JSON.parse(n):t.state.isOpenLocationPopup=!0,l.value&&localStorage.setItem("referalCode",l.value)}),(n,o)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",k,[e.createVNode(e.Transition,{name:"moveFromTop",appear:""},{default:e.withCtx(()=>[!a.value&&!e.unref(r)?(e.openBlock(),e.createBlock(v.default,{key:0,class:"pos-fixed"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(g.default,{onClosePopup:c,isPopupOpen:t.state.isOpenLocationPopup,class:"bg-white pd-semi w-m-33r radius-big"},{default:e.withCtx(()=>[e.createVNode(h.default)]),_:1},8,["isPopupOpen"]),e.createVNode(w.default),t.state.error.show?(e.openBlock(),e.createBlock(_.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.withDirectives(e.createVNode(d,{class:"o-scroll"},{default:e.withCtx(({Component:f,route:m})=>[e.createVNode(e.Transition,{onBeforeEnter:u,name:"scaleIn",mode:"out-in",appear:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f),{ref_key:"page",ref:a,key:m.path}))]),_:2},1024)]),_:1},512),[[e.vShow,e.unref(r)]])]),_:1}))])}}};exports.default=C;
|