@ozdao/prometheus-framework 0.1.49 → 0.1.51
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/axios.js +12 -12
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +21 -21
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.js +31 -37
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
- 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/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -61
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +61 -2
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +15 -12
- 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/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/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.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/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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- 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/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.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/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +3 -3
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../_virtual/axios.cjs"),c=require("./utils.cjs"),l=require("./helpers/bind.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../_virtual/axios.cjs"),c=require("./utils.cjs"),l=require("./helpers/bind.cjs"),x=require("./core/Axios.cjs"),_=require("./core/mergeConfig.cjs"),q=require("./defaults/index.cjs"),d=require("./cancel/CanceledError.cjs"),p=require("./cancel/CancelToken.cjs"),m=require("./cancel/isCancel.cjs"),v=require("./env/data.cjs"),E=require("./helpers/toFormData.cjs"),C=require("./core/AxiosError.cjs"),A=require("./helpers/spread.cjs"),f=require("./helpers/isAxiosError.cjs");var s=c.utils,g=l.bind,t=x.Axios_1,b=_.mergeConfig,$=q.defaults_1;function a(i){var e=new t(i),o=g(t.prototype.request,e);return s.extend(o,t.prototype,e),s.extend(o,e),o.create=function(u){return a(b(i,u))},o}var r=a($);r.Axios=t;r.CanceledError=d.__require();r.CancelToken=p.__require();r.isCancel=m.__require();r.VERSION=v.__require().version;r.toFormData=E.toFormData_1;r.AxiosError=C.AxiosError_1;r.Cancel=r.CanceledError;r.all=function(e){return Promise.all(e)};r.spread=A.__require();r.isAxiosError=f.__require();n.__module.exports=r;n.__module.exports.default=r;var y=n.__module.exports;exports.axiosExports=y;
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import { __module as t } from "../../../../_virtual/axios.js";
|
2
|
-
import { u } from "./utils.js";
|
3
|
-
import { b as
|
2
|
+
import { u as p } from "./utils.js";
|
3
|
+
import { b as u } from "./helpers/bind.js";
|
4
4
|
import { A as f } from "./core/Axios.js";
|
5
5
|
import { m as l } from "./core/mergeConfig.js";
|
6
|
-
import { d as
|
7
|
-
import { __require as
|
6
|
+
import { d as x } from "./defaults/index.js";
|
7
|
+
import { __require as _ } from "./cancel/CanceledError.js";
|
8
8
|
import { __require as c } from "./cancel/CancelToken.js";
|
9
|
-
import { __require as
|
10
|
-
import { __require as
|
11
|
-
import {
|
9
|
+
import { __require as d } from "./cancel/isCancel.js";
|
10
|
+
import { __require as q } from "./env/data.js";
|
11
|
+
import { t as v } from "./helpers/toFormData.js";
|
12
12
|
import { A } from "./core/AxiosError.js";
|
13
13
|
import { __require as C } from "./helpers/spread.js";
|
14
14
|
import { __require as E } from "./helpers/isAxiosError.js";
|
15
|
-
var s =
|
15
|
+
var s = p, I = u, a = f, $ = l, b = x;
|
16
16
|
function m(i) {
|
17
17
|
var e = new a(i), o = I(a.prototype.request, e);
|
18
18
|
return s.extend(o, a.prototype, e), s.extend(o, e), o.create = function(n) {
|
@@ -21,11 +21,11 @@ function m(i) {
|
|
21
21
|
}
|
22
22
|
var r = m(b);
|
23
23
|
r.Axios = a;
|
24
|
-
r.CanceledError =
|
24
|
+
r.CanceledError = _();
|
25
25
|
r.CancelToken = c();
|
26
|
-
r.isCancel =
|
27
|
-
r.VERSION =
|
28
|
-
r.toFormData = v
|
26
|
+
r.isCancel = d();
|
27
|
+
r.VERSION = q().version;
|
28
|
+
r.toFormData = v;
|
29
29
|
r.AxiosError = A;
|
30
30
|
r.Cancel = r.CanceledError;
|
31
31
|
r.all = function(e) {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../utils.cjs"),S=require("../helpers/normalizeHeaderName.cjs"),y=require("../core/AxiosError.cjs"),v=require("./transitional.cjs"),h=require("../helpers/toFormData.cjs"),u=require("../adapters/xhr.cjs"),g=require("../helpers/null.cjs");var
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../utils.cjs"),S=require("../helpers/normalizeHeaderName.cjs"),y=require("../core/AxiosError.cjs"),v=require("./transitional.cjs"),h=require("../helpers/toFormData.cjs"),u=require("../adapters/xhr.cjs"),g=require("../helpers/null.cjs");var e=m.utils,c=S.normalizeHeaderName,l=y.AxiosError_1,N=v.transitional,E=h.toFormData_1,O={"Content-Type":"application/x-www-form-urlencoded"};function p(t,r){!e.isUndefined(t)&&e.isUndefined(t["Content-Type"])&&(t["Content-Type"]=r)}function T(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=u.__require()),t}function _(t,r,n){if(e.isString(t))try{return(r||JSON.parse)(t),e.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}var f={transitional:N,adapter:T(),transformRequest:[function(r,n){if(c(n,"Accept"),c(n,"Content-Type"),e.isFormData(r)||e.isArrayBuffer(r)||e.isBuffer(r)||e.isStream(r)||e.isFile(r)||e.isBlob(r))return r;if(e.isArrayBufferView(r))return r.buffer;if(e.isURLSearchParams(r))return p(n,"application/x-www-form-urlencoded;charset=utf-8"),r.toString();var i=e.isObject(r),a=n&&n["Content-Type"],s;if((s=e.isFileList(r))||i&&a==="multipart/form-data"){var o=this.env&&this.env.FormData;return E(s?{"files[]":r}:r,o&&new o)}else if(i||a==="application/json")return p(n,"application/json"),_(r);return r}],transformResponse:[function(r){var n=this.transitional||f.transitional,i=n&&n.silentJSONParsing,a=n&&n.forcedJSONParsing,s=!i&&this.responseType==="json";if(s||a&&e.isString(r)&&r.length)try{return JSON.parse(r)}catch(o){if(s)throw o.name==="SyntaxError"?l.from(o,l.ERR_BAD_RESPONSE,this,null,this.response):o}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:g.__require()},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};e.forEach(["delete","get","head"],function(r){f.headers[r]={}});e.forEach(["post","put","patch"],function(r){f.headers[r]=e.merge(O)});var q=f;exports.defaults_1=q;
|
@@ -2,41 +2,41 @@ import { u as l } from "../utils.js";
|
|
2
2
|
import { n as S } from "../helpers/normalizeHeaderName.js";
|
3
3
|
import { A as h } from "../core/AxiosError.js";
|
4
4
|
import { t as v } from "./transitional.js";
|
5
|
-
import {
|
5
|
+
import { t as y } from "../helpers/toFormData.js";
|
6
6
|
import { __require as p } from "../adapters/xhr.js";
|
7
7
|
import { __require as N } from "../helpers/null.js";
|
8
|
-
var
|
8
|
+
var t = l, u = S, m = h, g = v, E = y, O = {
|
9
9
|
"Content-Type": "application/x-www-form-urlencoded"
|
10
10
|
};
|
11
|
-
function c(
|
12
|
-
!
|
11
|
+
function c(e, r) {
|
12
|
+
!t.isUndefined(e) && t.isUndefined(e["Content-Type"]) && (e["Content-Type"] = r);
|
13
13
|
}
|
14
14
|
function T() {
|
15
|
-
var
|
16
|
-
return typeof XMLHttpRequest < "u" ?
|
15
|
+
var e;
|
16
|
+
return typeof XMLHttpRequest < "u" ? e = p() : typeof process < "u" && Object.prototype.toString.call(process) === "[object process]" && (e = p()), e;
|
17
17
|
}
|
18
|
-
function x(
|
19
|
-
if (
|
18
|
+
function x(e, r, i) {
|
19
|
+
if (t.isString(e))
|
20
20
|
try {
|
21
|
-
return (r || JSON.parse)(
|
21
|
+
return (r || JSON.parse)(e), t.trim(e);
|
22
22
|
} catch (n) {
|
23
23
|
if (n.name !== "SyntaxError")
|
24
24
|
throw n;
|
25
25
|
}
|
26
|
-
return (i || JSON.stringify)(
|
26
|
+
return (i || JSON.stringify)(e);
|
27
27
|
}
|
28
28
|
var f = {
|
29
29
|
transitional: g,
|
30
30
|
adapter: T(),
|
31
31
|
transformRequest: [function(r, i) {
|
32
|
-
if (u(i, "Accept"), u(i, "Content-Type"),
|
32
|
+
if (u(i, "Accept"), u(i, "Content-Type"), t.isFormData(r) || t.isArrayBuffer(r) || t.isBuffer(r) || t.isStream(r) || t.isFile(r) || t.isBlob(r))
|
33
33
|
return r;
|
34
|
-
if (
|
34
|
+
if (t.isArrayBufferView(r))
|
35
35
|
return r.buffer;
|
36
|
-
if (
|
36
|
+
if (t.isURLSearchParams(r))
|
37
37
|
return c(i, "application/x-www-form-urlencoded;charset=utf-8"), r.toString();
|
38
|
-
var n =
|
39
|
-
if ((s =
|
38
|
+
var n = t.isObject(r), a = i && i["Content-Type"], s;
|
39
|
+
if ((s = t.isFileList(r)) || n && a === "multipart/form-data") {
|
40
40
|
var o = this.env && this.env.FormData;
|
41
41
|
return E(s ? { "files[]": r } : r, o && new o());
|
42
42
|
} else if (n || a === "application/json")
|
@@ -45,7 +45,7 @@ var f = {
|
|
45
45
|
}],
|
46
46
|
transformResponse: [function(r) {
|
47
47
|
var i = this.transitional || f.transitional, n = i && i.silentJSONParsing, a = i && i.forcedJSONParsing, s = !n && this.responseType === "json";
|
48
|
-
if (s || a &&
|
48
|
+
if (s || a && t.isString(r) && r.length)
|
49
49
|
try {
|
50
50
|
return JSON.parse(r);
|
51
51
|
} catch (o) {
|
@@ -75,13 +75,13 @@ var f = {
|
|
75
75
|
}
|
76
76
|
}
|
77
77
|
};
|
78
|
-
|
78
|
+
t.forEach(["delete", "get", "head"], function(r) {
|
79
79
|
f.headers[r] = {};
|
80
80
|
});
|
81
|
-
|
82
|
-
f.headers[r] =
|
81
|
+
t.forEach(["post", "put", "patch"], function(r) {
|
82
|
+
f.headers[r] = t.merge(O);
|
83
83
|
});
|
84
|
-
var
|
84
|
+
var P = f;
|
85
85
|
export {
|
86
|
-
|
86
|
+
P as d
|
87
87
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../utils.cjs");var i=p.utils;function O(h,t){t=t||new FormData;var e=[];function s(r){return r===null?"":i.isDate(r)?r.toISOString():i.isArrayBuffer(r)||i.isTypedArray(r)?typeof Blob=="function"?new Blob([r]):Buffer.from(r):r}function c(r,o){if(i.isPlainObject(r)||i.isArray(r)){if(e.indexOf(r)!==-1)throw Error("Circular reference detected in "+o);e.push(r),i.forEach(r,function(n,f){if(!i.isUndefined(n)){var u=o?o+"."+f:f,d;if(n&&!o&&typeof n=="object"){if(i.endsWith(f,"{}"))n=JSON.stringify(n);else if(i.endsWith(f,"[]")&&(d=i.toArray(n))){d.forEach(function(b){!i.isUndefined(b)&&t.append(u,s(b))});return}}c(n,u)}}),e.pop()}else t.append(o,s(r))}return c(h),t}var S=O;exports.toFormData_1=S;
|
@@ -1,43 +1,37 @@
|
|
1
|
-
import { u as
|
2
|
-
var
|
3
|
-
function
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
else if (i.endsWith(o, "[]") && (h = i.toArray(n))) {
|
25
|
-
h.forEach(function(p) {
|
26
|
-
!i.isUndefined(p) && t.append(d, c(p));
|
27
|
-
});
|
28
|
-
return;
|
29
|
-
}
|
1
|
+
import { u as b } from "../utils.js";
|
2
|
+
var i = b;
|
3
|
+
function A(h, f) {
|
4
|
+
f = f || new FormData();
|
5
|
+
var s = [];
|
6
|
+
function e(r) {
|
7
|
+
return r === null ? "" : i.isDate(r) ? r.toISOString() : i.isArrayBuffer(r) || i.isTypedArray(r) ? typeof Blob == "function" ? new Blob([r]) : Buffer.from(r) : r;
|
8
|
+
}
|
9
|
+
function c(r, t) {
|
10
|
+
if (i.isPlainObject(r) || i.isArray(r)) {
|
11
|
+
if (s.indexOf(r) !== -1)
|
12
|
+
throw Error("Circular reference detected in " + t);
|
13
|
+
s.push(r), i.forEach(r, function(n, o) {
|
14
|
+
if (!i.isUndefined(n)) {
|
15
|
+
var u = t ? t + "." + o : o, d;
|
16
|
+
if (n && !t && typeof n == "object") {
|
17
|
+
if (i.endsWith(o, "{}"))
|
18
|
+
n = JSON.stringify(n);
|
19
|
+
else if (i.endsWith(o, "[]") && (d = i.toArray(n))) {
|
20
|
+
d.forEach(function(p) {
|
21
|
+
!i.isUndefined(p) && f.append(u, e(p));
|
22
|
+
});
|
23
|
+
return;
|
30
24
|
}
|
31
|
-
u(n, d);
|
32
25
|
}
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
}
|
37
|
-
|
26
|
+
c(n, u);
|
27
|
+
}
|
28
|
+
}), s.pop();
|
29
|
+
} else
|
30
|
+
f.append(t, e(r));
|
38
31
|
}
|
39
|
-
return
|
32
|
+
return c(h), f;
|
40
33
|
}
|
34
|
+
var w = A;
|
41
35
|
export {
|
42
|
-
|
36
|
+
w as t
|
43
37
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,74 +1,4 @@
|
|
1
|
-
|
2
|
-
import { useRoute as x, useRouter as C } from "vue-router";
|
3
|
-
import { useI18n as O } from "vue-i18n";
|
4
|
-
import T from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
-
import "./Popup.vue2.js";
|
6
|
-
const g = {
|
7
|
-
key: "popup-content",
|
8
|
-
class: "pd-small popup-wrapper"
|
9
|
-
}, E = {
|
10
|
-
__name: "Popup",
|
11
|
-
props: {
|
12
|
-
isPopupOpen: {
|
13
|
-
type: Boolean,
|
14
|
-
default: !1
|
15
|
-
},
|
16
|
-
style: String
|
17
|
-
},
|
18
|
-
emits: ["close-popup"],
|
19
|
-
setup(e, { emit: c }) {
|
20
|
-
const m = e;
|
21
|
-
function r() {
|
22
|
-
c("close-popup");
|
23
|
-
}
|
24
|
-
return f(() => m.isPopupOpen, (o) => {
|
25
|
-
o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
26
|
-
}), x(), C(), O({
|
27
|
-
messages: {
|
28
|
-
en: {},
|
29
|
-
ru: {}
|
30
|
-
}
|
31
|
-
}), (o, t) => e.isPopupOpen ? (s(), v(y, {
|
32
|
-
key: 0,
|
33
|
-
to: "body"
|
34
|
-
}, [
|
35
|
-
n(l, {
|
36
|
-
name: "TransitionTranslateY",
|
37
|
-
appear: ""
|
38
|
-
}, {
|
39
|
-
default: a(() => [
|
40
|
-
e.isPopupOpen ? (s(), u("div", g, [
|
41
|
-
n(l, {
|
42
|
-
name: "TransitionTranslateY",
|
43
|
-
mode: "out-in"
|
44
|
-
}, {
|
45
|
-
default: a(() => [
|
46
|
-
e.isPopupOpen ? (s(), u("section", P({
|
47
|
-
key: 0,
|
48
|
-
class: "pos-relative z-index-4"
|
49
|
-
}, o.$attrs), [
|
50
|
-
i("button", {
|
51
|
-
onClick: t[0] || (t[0] = (d) => r()),
|
52
|
-
class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
|
53
|
-
}, [
|
54
|
-
n(T)
|
55
|
-
]),
|
56
|
-
k(o.$slots, "default")
|
57
|
-
], 16)) : p("", !0)
|
58
|
-
]),
|
59
|
-
_: 3
|
60
|
-
}),
|
61
|
-
i("div", {
|
62
|
-
onClick: t[1] || (t[1] = (d) => r()),
|
63
|
-
class: b([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
64
|
-
}, null, 2)
|
65
|
-
])) : p("", !0)
|
66
|
-
]),
|
67
|
-
_: 3
|
68
|
-
})
|
69
|
-
])) : p("", !0);
|
70
|
-
}
|
71
|
-
};
|
1
|
+
const e = "";
|
72
2
|
export {
|
73
|
-
|
3
|
+
e as default
|
74
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),i=require("vue-i18n"),c=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue.cjs");const d={key:"popup-content",class:"pd-small popup-wrapper"},m={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(t,{emit:l}){const u=t;function s(){l("close-popup")}e.watch(()=>u.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const a={messages:{en:{},ru:{}}};return i.useI18n(a),(o,n)=>t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("section",e.mergeProps({key:0,class:"pos-relative z-index-4"},o.$attrs),[e.createElementVNode("button",{onClick:n[0]||(n[0]=p=>s()),class:"pd-regular hover-scale-1 z-index-5 button-close-popup button"},[e.createVNode(c.default)]),e.renderSlot(o.$slots,"default")],16)):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("div",{onClick:n[1]||(n[1]=p=>s()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)}};exports.default=m;
|
@@ -1,4 +1,74 @@
|
|
1
|
-
|
1
|
+
import { watch as f, openBlock as s, createBlock as v, Teleport as y, createVNode as n, Transition as l, withCtx as a, createElementBlock as u, mergeProps as P, createElementVNode as i, renderSlot as k, createCommentVNode as p, normalizeClass as b } from "vue";
|
2
|
+
import { useRoute as x, useRouter as C } from "vue-router";
|
3
|
+
import { useI18n as O } from "vue-i18n";
|
4
|
+
import T from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
+
import "./Popup.vue.js";
|
6
|
+
const g = {
|
7
|
+
key: "popup-content",
|
8
|
+
class: "pd-small popup-wrapper"
|
9
|
+
}, E = {
|
10
|
+
__name: "Popup",
|
11
|
+
props: {
|
12
|
+
isPopupOpen: {
|
13
|
+
type: Boolean,
|
14
|
+
default: !1
|
15
|
+
},
|
16
|
+
style: String
|
17
|
+
},
|
18
|
+
emits: ["close-popup"],
|
19
|
+
setup(e, { emit: c }) {
|
20
|
+
const m = e;
|
21
|
+
function r() {
|
22
|
+
c("close-popup");
|
23
|
+
}
|
24
|
+
return f(() => m.isPopupOpen, (o) => {
|
25
|
+
o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
26
|
+
}), x(), C(), O({
|
27
|
+
messages: {
|
28
|
+
en: {},
|
29
|
+
ru: {}
|
30
|
+
}
|
31
|
+
}), (o, t) => e.isPopupOpen ? (s(), v(y, {
|
32
|
+
key: 0,
|
33
|
+
to: "body"
|
34
|
+
}, [
|
35
|
+
n(l, {
|
36
|
+
name: "TransitionTranslateY",
|
37
|
+
appear: ""
|
38
|
+
}, {
|
39
|
+
default: a(() => [
|
40
|
+
e.isPopupOpen ? (s(), u("div", g, [
|
41
|
+
n(l, {
|
42
|
+
name: "TransitionTranslateY",
|
43
|
+
mode: "out-in"
|
44
|
+
}, {
|
45
|
+
default: a(() => [
|
46
|
+
e.isPopupOpen ? (s(), u("section", P({
|
47
|
+
key: 0,
|
48
|
+
class: "pos-relative z-index-4"
|
49
|
+
}, o.$attrs), [
|
50
|
+
i("button", {
|
51
|
+
onClick: t[0] || (t[0] = (d) => r()),
|
52
|
+
class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
|
53
|
+
}, [
|
54
|
+
n(T)
|
55
|
+
]),
|
56
|
+
k(o.$slots, "default")
|
57
|
+
], 16)) : p("", !0)
|
58
|
+
]),
|
59
|
+
_: 3
|
60
|
+
}),
|
61
|
+
i("div", {
|
62
|
+
onClick: t[1] || (t[1] = (d) => r()),
|
63
|
+
class: b([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
64
|
+
}, null, 2)
|
65
|
+
])) : p("", !0)
|
66
|
+
]),
|
67
|
+
_: 3
|
68
|
+
})
|
69
|
+
])) : p("", !0);
|
70
|
+
}
|
71
|
+
};
|
2
72
|
export {
|
3
|
-
|
73
|
+
E as default
|
4
74
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,80 +1,4 @@
|
|
1
|
-
|
2
|
-
import "./Select.vue2.js";
|
3
|
-
import M from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const N = ["onClick"], O = {
|
5
|
-
key: 0,
|
6
|
-
class: "t-transp mn-r-small"
|
7
|
-
}, T = { class: "w-100" }, V = ["onClick"], $ = {
|
8
|
-
key: 0,
|
9
|
-
class: "w-100"
|
10
|
-
}, z = {
|
11
|
-
key: 0,
|
12
|
-
class: "mn-t-thin invalid-feedback"
|
13
|
-
}, E = {
|
14
|
-
__name: "Select",
|
15
|
-
props: {
|
16
|
-
label: String,
|
17
|
-
select: [String, Object],
|
18
|
-
placeholder: { type: String, default: "Please select an item" },
|
19
|
-
options: { type: Array, default: () => [] },
|
20
|
-
validation: Boolean
|
21
|
-
},
|
22
|
-
emits: ["update:select", "focus", "blur"],
|
23
|
-
setup(s, { emit: d }) {
|
24
|
-
const a = s, n = f(a.select), o = f(!1);
|
25
|
-
C(() => a.select, (e) => {
|
26
|
-
n.value = e;
|
27
|
-
});
|
28
|
-
const w = S(() => a.select ? a.options.filter((e) => e !== a.select) : a.options), m = () => {
|
29
|
-
o.value = !o.value, d(o.value ? "focus" : "blur");
|
30
|
-
}, y = (e) => {
|
31
|
-
n.value = e, m(), d("update:select", n.value);
|
32
|
-
};
|
33
|
-
return (e, L) => {
|
34
|
-
var p;
|
35
|
-
return t(), l(v, null, [
|
36
|
-
i("div", {
|
37
|
-
onClick: h(m, ["stop"]),
|
38
|
-
class: _([e.$attrs.class, "cursor-pointer flex-nowrap flex"])
|
39
|
-
}, [
|
40
|
-
s.label ? (t(), l("div", O, [
|
41
|
-
i("span", null, r(s.label), 1)
|
42
|
-
])) : u("", !0),
|
43
|
-
i("li", T, [
|
44
|
-
i("span", null, r(((p = n.value) == null ? void 0 : p.name) || n.value || s.placeholder), 1)
|
45
|
-
]),
|
46
|
-
k(b, {
|
47
|
-
mode: "out-in",
|
48
|
-
name: "TransitionTranslateY"
|
49
|
-
}, {
|
50
|
-
default: g(() => [
|
51
|
-
o.value ? (t(), l("ul", {
|
52
|
-
key: 0,
|
53
|
-
class: _([e.$attrs.class, "pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
|
54
|
-
}, [
|
55
|
-
(t(!0), l(v, null, x(B(w), (c) => (t(), l("li", {
|
56
|
-
onClick: h((j) => y(c), ["stop"])
|
57
|
-
}, [
|
58
|
-
c ? (t(), l("span", $, r(c.name || c), 1)) : u("", !0)
|
59
|
-
], 8, V))), 256))
|
60
|
-
], 2)) : u("", !0)
|
61
|
-
]),
|
62
|
-
_: 1
|
63
|
-
})
|
64
|
-
], 10, N),
|
65
|
-
k(b, {
|
66
|
-
mode: "out-in",
|
67
|
-
name: "fade"
|
68
|
-
}, {
|
69
|
-
default: g(() => [
|
70
|
-
s.validation ? (t(), l("div", z, " * " + r(s.validation.message), 1)) : u("", !0)
|
71
|
-
]),
|
72
|
-
_: 1
|
73
|
-
})
|
74
|
-
], 64);
|
75
|
-
};
|
76
|
-
}
|
77
|
-
}, I = /* @__PURE__ */ M(E, [["__scopeId", "data-v-dfe03dc2"]]);
|
1
|
+
const e = "";
|
78
2
|
export {
|
79
|
-
|
3
|
+
e as default
|
80
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Select.vue.cjs");const m=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),p=["onClick"],k={key:0,class:"t-transp mn-r-small"},f={class:"w-100"},v=["onClick"],h={key:0,class:"w-100"},g={key:0,class:"mn-t-thin invalid-feedback"},B={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(l,{emit:c}){const n=l,o=e.ref(n.select),a=e.ref(!1);e.watch(()=>n.select,t=>{o.value=t});const u=e.computed(()=>n.select?n.options.filter(t=>t!==n.select):n.options),r=()=>{a.value=!a.value,c(a.value?"focus":"blur")},d=t=>{o.value=t,r(),c("update:select",o.value)};return(t,y)=>{var i;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:e.withModifiers(r,["stop"]),class:e.normalizeClass([t.$attrs.class,"cursor-pointer flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",f,[e.createElementVNode("span",null,e.toDisplayString(((i=o.value)==null?void 0:i.name)||o.value||l.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([t.$attrs.class,"pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),s=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(C=>d(s),["stop"])},[s?(e.openBlock(),e.createElementBlock("span",h,e.toDisplayString(s.name||s),1)):e.createCommentVNode("",!0)],8,v))),256))],2)):e.createCommentVNode("",!0)]),_:1})],10,p),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",g," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},_=m.default(B,[["__scopeId","data-v-dfe03dc2"]]);exports.default=_;
|
@@ -1,4 +1,80 @@
|
|
1
|
-
|
1
|
+
import { ref as f, watch as C, computed as S, openBlock as t, createElementBlock as l, Fragment as v, createElementVNode as i, withModifiers as h, normalizeClass as _, toDisplayString as r, createCommentVNode as u, createVNode as k, Transition as b, withCtx as g, renderList as x, unref as B } from "vue";
|
2
|
+
import "./Select.vue.js";
|
3
|
+
import M from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const N = ["onClick"], O = {
|
5
|
+
key: 0,
|
6
|
+
class: "t-transp mn-r-small"
|
7
|
+
}, T = { class: "w-100" }, V = ["onClick"], $ = {
|
8
|
+
key: 0,
|
9
|
+
class: "w-100"
|
10
|
+
}, z = {
|
11
|
+
key: 0,
|
12
|
+
class: "mn-t-thin invalid-feedback"
|
13
|
+
}, E = {
|
14
|
+
__name: "Select",
|
15
|
+
props: {
|
16
|
+
label: String,
|
17
|
+
select: [String, Object],
|
18
|
+
placeholder: { type: String, default: "Please select an item" },
|
19
|
+
options: { type: Array, default: () => [] },
|
20
|
+
validation: Boolean
|
21
|
+
},
|
22
|
+
emits: ["update:select", "focus", "blur"],
|
23
|
+
setup(s, { emit: d }) {
|
24
|
+
const a = s, n = f(a.select), o = f(!1);
|
25
|
+
C(() => a.select, (e) => {
|
26
|
+
n.value = e;
|
27
|
+
});
|
28
|
+
const w = S(() => a.select ? a.options.filter((e) => e !== a.select) : a.options), m = () => {
|
29
|
+
o.value = !o.value, d(o.value ? "focus" : "blur");
|
30
|
+
}, y = (e) => {
|
31
|
+
n.value = e, m(), d("update:select", n.value);
|
32
|
+
};
|
33
|
+
return (e, L) => {
|
34
|
+
var p;
|
35
|
+
return t(), l(v, null, [
|
36
|
+
i("div", {
|
37
|
+
onClick: h(m, ["stop"]),
|
38
|
+
class: _([e.$attrs.class, "cursor-pointer flex-nowrap flex"])
|
39
|
+
}, [
|
40
|
+
s.label ? (t(), l("div", O, [
|
41
|
+
i("span", null, r(s.label), 1)
|
42
|
+
])) : u("", !0),
|
43
|
+
i("li", T, [
|
44
|
+
i("span", null, r(((p = n.value) == null ? void 0 : p.name) || n.value || s.placeholder), 1)
|
45
|
+
]),
|
46
|
+
k(b, {
|
47
|
+
mode: "out-in",
|
48
|
+
name: "TransitionTranslateY"
|
49
|
+
}, {
|
50
|
+
default: g(() => [
|
51
|
+
o.value ? (t(), l("ul", {
|
52
|
+
key: 0,
|
53
|
+
class: _([e.$attrs.class, "pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
|
54
|
+
}, [
|
55
|
+
(t(!0), l(v, null, x(B(w), (c) => (t(), l("li", {
|
56
|
+
onClick: h((j) => y(c), ["stop"])
|
57
|
+
}, [
|
58
|
+
c ? (t(), l("span", $, r(c.name || c), 1)) : u("", !0)
|
59
|
+
], 8, V))), 256))
|
60
|
+
], 2)) : u("", !0)
|
61
|
+
]),
|
62
|
+
_: 1
|
63
|
+
})
|
64
|
+
], 10, N),
|
65
|
+
k(b, {
|
66
|
+
mode: "out-in",
|
67
|
+
name: "fade"
|
68
|
+
}, {
|
69
|
+
default: g(() => [
|
70
|
+
s.validation ? (t(), l("div", z, " * " + r(s.validation.message), 1)) : u("", !0)
|
71
|
+
]),
|
72
|
+
_: 1
|
73
|
+
})
|
74
|
+
], 64);
|
75
|
+
};
|
76
|
+
}
|
77
|
+
}, I = /* @__PURE__ */ M(E, [["__scopeId", "data-v-dfe03dc2"]]);
|
2
78
|
export {
|
3
|
-
|
79
|
+
I as default
|
4
80
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.vue2.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),o=require("vue-router"),i={class:""},l=e.createElementVNode("h1",{class:"mn-small"},"Your Backoffice",-1),d=e.createElementVNode("span",null," Organizations ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const r=o.useRoute(),s=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",i,[l,e.createVNode(u.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { openBlock as p, createElementBlock as u, createVNode as e, withCtx as a, unref as o, createElementVNode as n } from "vue";
|
2
|
-
import m from "../../../mobile/components/Menu/Menu.
|
2
|
+
import m from "../../../mobile/components/Menu/Menu.vue2.js";
|
3
3
|
import i from "../../../mobile/components/Menu/MenuItem.vue.js";
|
4
4
|
import { useRoute as d, useRouter as _ } from "vue-router";
|
5
5
|
const f = { class: "" }, c = /* @__PURE__ */ n("h1", { class: "mn-small" }, "Your Backoffice", -1), k = /* @__PURE__ */ n("span", null, " Organizations ", -1), v = /* @__PURE__ */ n("span", null, " Events ", -1), B = /* @__PURE__ */ n("span", null, " Community ", -1), C = /* @__PURE__ */ n("span", null, " Products ", -1), $ = /* @__PURE__ */ n("span", null, " Leftovers ", -1), y = /* @__PURE__ */ n("span", null, " Orders ", -1), h = /* @__PURE__ */ n("span", null, " Payments ", -1), g = /* @__PURE__ */ n("span", null, " Gallery ", -1), E = /* @__PURE__ */ n("span", null, " Reports ", -1), G = {
|
package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue2.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;
|