@ozdao/prometheus-framework 0.2.192 → 0.2.193
Sign up to get free protection for your applications and to get access to all the features.
- 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 +17 -16
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +48 -52
- package/package.json +1 -1
- package/src/modules/globals/views/components/layouts/App.vue +3 -0
- package/src/modules/globals/views/components/partials/Header.vue +1 -3
@@ -1 +1 @@
|
|
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"),
|
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("../../../../orders/store/shopcart.cjs"),B=require("../../../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),q={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(),b.actions.setShopcart()}),(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",q,[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,13 +1,14 @@
|
|
1
|
-
import { computed as l, ref as A, onMounted as C, resolveComponent as
|
2
|
-
import { u as
|
3
|
-
import { useI18n as
|
1
|
+
import { computed as l, ref as A, onMounted as C, resolveComponent as S, openBlock as a, createElementBlock as h, Fragment as T, createVNode as i, Transition as g, withCtx as m, createCommentVNode as f, createBlock as w, normalizeClass as U, resolveDynamicComponent as j } from "vue";
|
2
|
+
import { u as B } from "../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
|
3
|
+
import { useI18n as P } from "vue-i18n";
|
4
4
|
import { useRoute as N } from "vue-router";
|
5
5
|
import { state as v } from "../../store/globals.js";
|
6
|
-
import {
|
7
|
-
|
6
|
+
import { actions as E } from "../../../../orders/store/shopcart.js";
|
7
|
+
import { Preferences as H } from "../../../../../../node_modules/@capacitor/preferences/dist/esm/index.js";
|
8
|
+
const I = {
|
8
9
|
key: 0,
|
9
10
|
class: "w-100 h-100"
|
10
|
-
}, s = "https://weeder.delivery",
|
11
|
+
}, s = "https://weeder.delivery", J = {
|
11
12
|
__name: "App",
|
12
13
|
props: {
|
13
14
|
messages: {
|
@@ -19,7 +20,7 @@ const H = {
|
|
19
20
|
}
|
20
21
|
},
|
21
22
|
setup(p) {
|
22
|
-
const y = p, { t, locale:
|
23
|
+
const y = p, { t, locale: L } = P({
|
23
24
|
messages: y.messages
|
24
25
|
}), d = l(() => u(`${s}${n.path}`)), n = N(), k = ["en", "ru"];
|
25
26
|
function u(e) {
|
@@ -58,26 +59,26 @@ const H = {
|
|
58
59
|
href: o
|
59
60
|
};
|
60
61
|
}));
|
61
|
-
|
62
|
+
B(_.value);
|
62
63
|
const c = A(!1);
|
63
64
|
async function $() {
|
64
|
-
const e = await
|
65
|
+
const e = await H.get({ key: "first-use" });
|
65
66
|
c.value = e.value ? JSON.parse(e.value) : !0;
|
66
67
|
}
|
67
68
|
const F = (e) => {
|
68
69
|
c.value = e;
|
69
70
|
};
|
70
71
|
return C(async () => {
|
71
|
-
await $();
|
72
|
+
await $(), E.setShopcart();
|
72
73
|
}), (e, r) => {
|
73
|
-
const o =
|
74
|
-
return a(), h(
|
74
|
+
const o = S("router-view");
|
75
|
+
return a(), h(T, null, [
|
75
76
|
i(g, {
|
76
77
|
name: "scaleTransition",
|
77
78
|
mode: "out-in"
|
78
79
|
}, {
|
79
80
|
default: m(() => [
|
80
|
-
c.value ? (a(), h("section",
|
81
|
+
c.value ? (a(), h("section", I, [
|
81
82
|
i(o, {
|
82
83
|
name: "Walkthrough",
|
83
84
|
onUpdateFirstUse: F,
|
@@ -98,7 +99,7 @@ const H = {
|
|
98
99
|
key: 0,
|
99
100
|
name: "Header",
|
100
101
|
ref: "header",
|
101
|
-
class:
|
102
|
+
class: U(["transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0", {
|
102
103
|
"pos-l-70": v.isOpenSidebar,
|
103
104
|
"pos-l-0": !v.isOpenSidebar
|
104
105
|
}]),
|
@@ -110,7 +111,7 @@ const H = {
|
|
110
111
|
}),
|
111
112
|
i(o, null, {
|
112
113
|
default: m(({ Component: O }) => [
|
113
|
-
(a(), w(
|
114
|
+
(a(), w(j(O)))
|
114
115
|
]),
|
115
116
|
_: 1
|
116
117
|
})
|
@@ -119,5 +120,5 @@ const H = {
|
|
119
120
|
}
|
120
121
|
};
|
121
122
|
export {
|
122
|
-
|
123
|
+
J as default
|
123
124
|
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),h=require("vue-i18n"),l=require("../../store/globals.cjs"),d=require("./Navigation.vue.cjs"),c=require("../../../../../components/Button/Button.vue2.cjs"),b=require("../../../../../components/Select/Select.vue.cjs"),g=require("../../../../../components/Checkbox/Checkbox.vue.cjs"),f=require("../../../../icons/entities/IconShopcart.vue.cjs"),k=require("../../../../icons/entities/IconProfile.vue.cjs");;/* empty css */const p={class:"i-small",fill:"inherit",xmlns:"http://www.w3.org/2000/svg",width:"50",height:"67",viewBox:"0 0 50 67"},w=e.createElementVNode("path",{d:"M25 0C11.207 0 0 11.207 0 25C0 38.793 20.832 66.668 25 66.668C29.168 66.668 50 38.793 50 25C50 11.207 38.793 0 25 0ZM25 33.332C20.418 33.332 16.668 29.582 16.668 25C16.668 20.418 20.418 16.668 25 16.668C29.582 16.668 33.332 20.418 33.332 25C33.332 29.582 29.582 33.332 25 33.332Z",fill:"inherit"},null,-1),v=[w],C={__name:"Header",props:{theme:{type:String,default:"light"},logotype:{type:Object}},setup(t){const s=t,i=u.useRouter();u.useRoute(),h.useI18n();function m(){l.state.isOpenLocationPopup=!0}return e.onMounted(()=>{}),(o,a)=>{var n;return e.openBlock(),e.createElementBlock("header",{id:"header",class:e.normalizeClass(["pd-thin gap-micro flex-center flex-nowrap flex h-4r w-100 z-index-2",{"t-black bg-white":t.theme==="light","t-white bg-black":t.theme==="dark"}])},[e.createElementVNode("button",{"aria-label":"menu",onClick:a[0]||(a[0]=()=>l.state.isOpenSidebar=!l.state.isOpenSidebar),class:e.normalizeClass(["mobile-only menu-btn",{"menu-btn_active":l.state.isOpenSidebar}])},[e.createElementVNode("span",{class:e.normalizeClass(["no-events",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},[e.createElementVNode("span",{class:e.normalizeClass(["menu-btn__before",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},null,2),e.createElementVNode("span",{class:e.normalizeClass(["menu-btn__after",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},null,2)],2)],2),s.logotype?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.logotype),{key:0,onClick:a[1]||(a[1]=r=>e.unref(i).push({path:"/"})),theme:t.theme,class:"h-2r w-auto cursor-pointer"},null,8,["theme"])):e.createCommentVNode("",!0),e.createElementVNode("button",{"aria-label":"button_location",class:e.normalizeClass(["cursor-pointer bg-transp pd-l-micro pd-r-micro radius-extra uppercase t-semi br-solid br-2px transition-linear",{"fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white":t.theme==="light","fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black":t.theme==="dark"}]),onClick:a[2]||(a[2]=r=>m())},[(e.openBlock(),e.createElementBlock("svg",p,v)),e.createTextVNode(" "+e.toDisplayString((n=l.state.position)!=null&&n.country?l.state.position.country:"World"),1)],2),e.createVNode(d.default,{class:"mn-l-auto desktop-only"}),e.createVNode(g.default,{name:"darkmode",label:"Darkmode",radio:l.state.theme.darkmode,"onUpdate:radio":a[3]||(a[3]=r=>l.actions.toggleTheme()),class:e.normalizeClass(["mn-l-thin mn-r-auto desktop-only t-semi pd-micro br-2px br-solid radius-extra",{"br-light t-black":t.theme==="light","br-dark t-white":t.theme==="dark"}]),theme:t.theme},null,8,["radio","theme","class"]),e.createVNode(c.default,{"aria-label":"shopcart",submit:r=>o.store.shopcart.actions.toggleShopcart(),counter:o.store.shopcart.getters.cartTotalAmount,showSucces:!1,showLoader:!1,class:"pd-zero mn-l-auto mn-r-micro"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",fill:t.theme==="light"?"rgb(var(--black))":"rgb(var(--white))"},null,8,["fill"])]),_:1},8,["submit","counter"]),e.createVNode(c.default,{"aria-label":"profile",class:"pd-zero bg-transp",submit:o.store.auth.state.access.status===!1?r=>e.unref(i).push({name:"Sign In"}):r=>e.unref(i).push({name:"User Profile",params:{_id:o.store.auth.state.user._id}}),showSucces:!1,showLoader:!1},{default:e.withCtx(()=>[e.createVNode(k.default,{class:"i-semi",fill:t.theme==="light"?"rgb(var(--black))":"rgb(var(--white))"},null,8,["fill"])]),_:1},8,["submit"]),e.createVNode(b.default,{select:o.$i18n.locale,"onUpdate:select":a[4]||(a[4]=r=>o.$i18n.locale=r),options:[{name:"🌎 En",value:"en"},{name:"🇷🇺 Ru",value:"ru"}],property:"value",class:e.normalizeClass(["pos-relative uppercase pd-micro t-semi radius-thin",{"bg-light t-black":t.theme==="light","bg-dark t-white":t.theme==="dark"}])},null,8,["select","class"])],2)}}};exports.default=C;
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js
CHANGED
@@ -1,28 +1,27 @@
|
|
1
|
-
import { onMounted as
|
2
|
-
import { useRouter as S, useRoute as
|
3
|
-
import { useI18n as
|
4
|
-
import { state as
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import E from "../../../../icons/entities/IconProfile.vue.js";
|
1
|
+
import { onMounted as p, openBlock as m, createElementBlock as b, normalizeClass as a, createElementVNode as n, createBlock as k, resolveDynamicComponent as w, unref as h, createCommentVNode as v, createTextVNode as C, toDisplayString as y, createVNode as i, withCtx as d } from "vue";
|
2
|
+
import { useRouter as S, useRoute as x } from "vue-router";
|
3
|
+
import { useI18n as $ } from "vue-i18n";
|
4
|
+
import { state as o, actions as N } from "../../store/globals.js";
|
5
|
+
import O from "./Navigation.vue.js";
|
6
|
+
import g from "../../../../../components/Button/Button.vue2.js";
|
7
|
+
import z from "../../../../../components/Select/Select.vue.js";
|
8
|
+
import B from "../../../../../components/Checkbox/Checkbox.vue.js";
|
9
|
+
import L from "../../../../icons/entities/IconShopcart.vue.js";
|
10
|
+
import V from "../../../../icons/entities/IconProfile.vue.js";
|
12
11
|
/* empty css */
|
13
|
-
const
|
12
|
+
const D = {
|
14
13
|
class: "i-small",
|
15
14
|
fill: "inherit",
|
16
15
|
xmlns: "http://www.w3.org/2000/svg",
|
17
16
|
width: "50",
|
18
17
|
height: "67",
|
19
18
|
viewBox: "0 0 50 67"
|
20
|
-
},
|
19
|
+
}, E = /* @__PURE__ */ n("path", {
|
21
20
|
d: "M25 0C11.207 0 0 11.207 0 25C0 38.793 20.832 66.668 25 66.668C29.168 66.668 50 38.793 50 25C50 11.207 38.793 0 25 0ZM25 33.332C20.418 33.332 16.668 29.582 16.668 25C16.668 20.418 20.418 16.668 25 16.668C29.582 16.668 33.332 20.418 33.332 25C33.332 29.582 29.582 33.332 25 33.332Z",
|
22
21
|
fill: "inherit"
|
23
|
-
}, null, -1),
|
24
|
-
|
25
|
-
],
|
22
|
+
}, null, -1), M = [
|
23
|
+
E
|
24
|
+
], F = {
|
26
25
|
__name: "Header",
|
27
26
|
props: {
|
28
27
|
theme: {
|
@@ -34,18 +33,15 @@ const M = {
|
|
34
33
|
}
|
35
34
|
},
|
36
35
|
setup(e) {
|
37
|
-
const c = e,
|
38
|
-
$();
|
39
|
-
|
40
|
-
|
41
|
-
function p() {
|
42
|
-
r.isOpenLocationPopup = !0;
|
36
|
+
const c = e, s = S();
|
37
|
+
x(), $();
|
38
|
+
function f() {
|
39
|
+
o.isOpenLocationPopup = !0;
|
43
40
|
}
|
44
|
-
return
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
return h(), d("header", {
|
41
|
+
return p(() => {
|
42
|
+
}), (r, t) => {
|
43
|
+
var u;
|
44
|
+
return m(), b("header", {
|
49
45
|
id: "header",
|
50
46
|
class: a(["pd-thin gap-micro flex-center flex-nowrap flex h-4r w-100 z-index-2", {
|
51
47
|
"t-black bg-white": e.theme === "light",
|
@@ -54,9 +50,9 @@ const M = {
|
|
54
50
|
}, [
|
55
51
|
n("button", {
|
56
52
|
"aria-label": "menu",
|
57
|
-
onClick: t[0] || (t[0] = () =>
|
53
|
+
onClick: t[0] || (t[0] = () => o.isOpenSidebar = !o.isOpenSidebar),
|
58
54
|
class: a(["mobile-only menu-btn", {
|
59
|
-
"menu-btn_active":
|
55
|
+
"menu-btn_active": o.isOpenSidebar
|
60
56
|
}])
|
61
57
|
}, [
|
62
58
|
n("span", {
|
@@ -73,69 +69,69 @@ const M = {
|
|
73
69
|
}, null, 2)
|
74
70
|
], 2)
|
75
71
|
], 2),
|
76
|
-
c.logotype ? (
|
72
|
+
c.logotype ? (m(), k(w(c.logotype), {
|
77
73
|
key: 0,
|
78
|
-
onClick: t[1] || (t[1] = (l) =>
|
74
|
+
onClick: t[1] || (t[1] = (l) => h(s).push({ path: "/" })),
|
79
75
|
theme: e.theme,
|
80
76
|
class: "h-2r w-auto cursor-pointer"
|
81
|
-
}, null, 8, ["theme"])) :
|
77
|
+
}, null, 8, ["theme"])) : v("", !0),
|
82
78
|
n("button", {
|
83
79
|
"aria-label": "button_location",
|
84
80
|
class: a(["cursor-pointer bg-transp pd-l-micro pd-r-micro radius-extra uppercase t-semi br-solid br-2px transition-linear", {
|
85
81
|
"fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white": e.theme === "light",
|
86
82
|
"fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black": e.theme === "dark"
|
87
83
|
}]),
|
88
|
-
onClick: t[2] || (t[2] = (l) =>
|
84
|
+
onClick: t[2] || (t[2] = (l) => f())
|
89
85
|
}, [
|
90
|
-
(
|
91
|
-
|
86
|
+
(m(), b("svg", D, M)),
|
87
|
+
C(" " + y((u = o.position) != null && u.country ? o.position.country : "World"), 1)
|
92
88
|
], 2),
|
93
|
-
|
94
|
-
|
89
|
+
i(O, { class: "mn-l-auto desktop-only" }),
|
90
|
+
i(B, {
|
95
91
|
name: "darkmode",
|
96
92
|
label: "Darkmode",
|
97
|
-
radio:
|
98
|
-
"onUpdate:radio": t[3] || (t[3] = (l) =>
|
93
|
+
radio: o.theme.darkmode,
|
94
|
+
"onUpdate:radio": t[3] || (t[3] = (l) => N.toggleTheme()),
|
99
95
|
class: a(["mn-l-thin mn-r-auto desktop-only t-semi pd-micro br-2px br-solid radius-extra", {
|
100
96
|
"br-light t-black": e.theme === "light",
|
101
97
|
"br-dark t-white": e.theme === "dark"
|
102
98
|
}]),
|
103
99
|
theme: e.theme
|
104
100
|
}, null, 8, ["radio", "theme", "class"]),
|
105
|
-
|
101
|
+
i(g, {
|
106
102
|
"aria-label": "shopcart",
|
107
|
-
submit: (l) =>
|
108
|
-
counter:
|
103
|
+
submit: (l) => r.store.shopcart.actions.toggleShopcart(),
|
104
|
+
counter: r.store.shopcart.getters.cartTotalAmount,
|
109
105
|
showSucces: !1,
|
110
106
|
showLoader: !1,
|
111
107
|
class: "pd-zero mn-l-auto mn-r-micro"
|
112
108
|
}, {
|
113
|
-
default:
|
114
|
-
|
109
|
+
default: d(() => [
|
110
|
+
i(L, {
|
115
111
|
class: "i-semi",
|
116
112
|
fill: e.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
|
117
113
|
}, null, 8, ["fill"])
|
118
114
|
]),
|
119
115
|
_: 1
|
120
116
|
}, 8, ["submit", "counter"]),
|
121
|
-
|
117
|
+
i(g, {
|
122
118
|
"aria-label": "profile",
|
123
119
|
class: "pd-zero bg-transp",
|
124
|
-
submit:
|
120
|
+
submit: r.store.auth.state.access.status === !1 ? (l) => h(s).push({ name: "Sign In" }) : (l) => h(s).push({ name: "User Profile", params: { _id: r.store.auth.state.user._id } }),
|
125
121
|
showSucces: !1,
|
126
122
|
showLoader: !1
|
127
123
|
}, {
|
128
|
-
default:
|
129
|
-
|
124
|
+
default: d(() => [
|
125
|
+
i(V, {
|
130
126
|
class: "i-semi",
|
131
127
|
fill: e.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
|
132
128
|
}, null, 8, ["fill"])
|
133
129
|
]),
|
134
130
|
_: 1
|
135
131
|
}, 8, ["submit"]),
|
136
|
-
|
137
|
-
select:
|
138
|
-
"onUpdate:select": t[4] || (t[4] = (l) =>
|
132
|
+
i(z, {
|
133
|
+
select: r.$i18n.locale,
|
134
|
+
"onUpdate:select": t[4] || (t[4] = (l) => r.$i18n.locale = l),
|
139
135
|
options: [{ name: "🌎 En", value: "en" }, { name: "🇷🇺 Ru", value: "ru" }],
|
140
136
|
property: "value",
|
141
137
|
class: a(["pos-relative uppercase pd-micro t-semi radius-thin", {
|
@@ -148,5 +144,5 @@ const M = {
|
|
148
144
|
}
|
149
145
|
};
|
150
146
|
export {
|
151
|
-
|
147
|
+
F as default
|
152
148
|
};
|
package/package.json
CHANGED
@@ -45,6 +45,8 @@
|
|
45
45
|
import { useRoute } from 'vue-router'
|
46
46
|
|
47
47
|
import * as globals from '@pf/src/modules/globals/views/store/globals'
|
48
|
+
import * as shopcart from '@pf/src/modules/orders/store/shopcart'
|
49
|
+
|
48
50
|
|
49
51
|
const props = defineProps({
|
50
52
|
messages: {
|
@@ -138,5 +140,6 @@
|
|
138
140
|
|
139
141
|
onMounted(async () => {
|
140
142
|
await getFirstUse()
|
143
|
+
shopcart.actions.setShopcart()
|
141
144
|
});
|
142
145
|
</script>
|
@@ -5,7 +5,6 @@
|
|
5
5
|
import { useI18n } from 'vue-i18n'
|
6
6
|
|
7
7
|
import * as globals from '@pf/src/modules/globals/views/store/globals'
|
8
|
-
import * as shopcart from '@pf/src/modules/orders/store/shopcart'
|
9
8
|
|
10
9
|
// Globasls Component
|
11
10
|
import Navigation from '@pf/src/modules/globals/views/components/partials/Navigation.vue'
|
@@ -30,7 +29,6 @@
|
|
30
29
|
// Accessing state
|
31
30
|
const router = useRouter()
|
32
31
|
const route = useRoute()
|
33
|
-
const store = useStore()
|
34
32
|
// Localization
|
35
33
|
const { t } = useI18n()
|
36
34
|
// const search = computed(() => store.products.state.search)
|
@@ -42,7 +40,7 @@
|
|
42
40
|
// MOUNTED
|
43
41
|
/////////////////////////////
|
44
42
|
onMounted(() => {
|
45
|
-
|
43
|
+
|
46
44
|
});
|
47
45
|
</script>
|
48
46
|
|