@ozdao/prometheus-framework 0.1.82 → 0.1.84
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs +4 -4
- package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +3 -3
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +22 -22
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2981 -2804
- package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.js +10 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +26 -26
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.cjs +1 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.js +7 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.js +28 -29
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.js +55 -65
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +23 -23
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +31 -31
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -224
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +224 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +22 -22
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +18 -18
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +24 -24
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +31 -30
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +20 -20
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +33 -33
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +21 -21
- 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/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
- package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Text/Text.vue.js +11 -11
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +27 -27
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +18 -18
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +44 -43
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +65 -96
- 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 +24 -24
- 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/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +22 -22
- 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 -62
- 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 +62 -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 +56 -56
- 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 +44 -43
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +15 -15
- 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 +13 -13
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- 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 +51 -53
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +59 -61
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +22 -22
- 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 +25 -25
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +23 -23
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +11 -11
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +19 -19
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +30 -30
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +24 -24
- 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/spots/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +21 -21
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +27 -27
- package/dist/prometheus-framework.es.js +1949 -1937
- package/dist/style.css +1 -1
- package/package.json +2 -4
- package/src/modules/auth/components/pages/ResetPassword.vue +1 -1
- package/src/modules/auth/components/pages/SignIn.vue +1 -0
- package/src/modules/auth/store/auth.js +42 -51
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js
CHANGED
@@ -1,47 +1,45 @@
|
|
1
|
-
import { ref as n, computed as q, onMounted as A, openBlock as a, createElementBlock as o, createElementVNode as t, createCommentVNode as f, Fragment as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import { state as
|
6
|
-
import
|
1
|
+
import { ref as n, computed as q, onMounted as A, openBlock as a, createElementBlock as o, createElementVNode as t, createCommentVNode as f, Fragment as E, renderList as M, createVNode as c, Transition as w, withCtx as b, toDisplayString as x, withDirectives as L, vShow as R, createTextVNode as H, pushScopeId as J, popScopeId as K } from "vue";
|
2
|
+
import Q from "../../../../components/Field/Field.vue2.js";
|
3
|
+
import W from "../../../../components/Button/Button.vue2.js";
|
4
|
+
import X from "../../../../components/Select/Select.vue2.js";
|
5
|
+
import { state as G, actions as d } from "../../store/gallery.js";
|
6
|
+
import Y from "../../../../components/EditImages/EditImages.vue.js";
|
7
7
|
import "./BackofficeGallery.vue2.js";
|
8
|
-
import
|
9
|
-
const u = (m) => (
|
8
|
+
import Z from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
9
|
+
const u = (m) => (J("data-v-d6a1c805"), m = m(), K(), m), ee = { class: "pos-relative w-100" }, te = { class: "mn-semi flex-v-center flex-nowrap flex" }, le = /* @__PURE__ */ u(() => /* @__PURE__ */ t("h1", { class: "mn-r-small" }, "Manage Gallery", -1)), se = ["data-id"], ae = ["src", "onClick"], oe = {
|
10
10
|
key: 1,
|
11
11
|
class: "radius-small bg-white"
|
12
|
-
},
|
12
|
+
}, ie = ["src", "onClick"], ne = { class: "t-black p-small mn-thin" }, ce = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "uppercase t-transp" }, "Size", -1)), re = /* @__PURE__ */ u(() => /* @__PURE__ */ t("br", null, null, -1)), de = { class: "pd-2px radius-big d-inline-block bg-grey" }, ue = { class: "t-black p-small mn-small uppe" }, me = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "uppercase t-transp" }, "Categories", -1)), pe = /* @__PURE__ */ u(() => /* @__PURE__ */ t("br", null, null, -1)), ve = { class: "pd-2px radius-big d-inline-block bg-grey t-semi" }, ge = { class: "flex-nowrap flex" }, he = ["onClick"], _e = { class: "modal pd-thin" }, fe = { class: "modal-content radius-big" }, be = { class: "" }, ye = ["src"], ke = {
|
13
13
|
key: 0,
|
14
14
|
class: "flex-v-center flex m modal pd-big"
|
15
|
-
},
|
15
|
+
}, we = { class: "modal-content radius-small pd-medium bg-white" }, xe = ["src"], Ce = ["src"], $ = 10, ze = {
|
16
16
|
__name: "BackofficeGallery",
|
17
17
|
setup(m) {
|
18
18
|
const p = n(!0), C = n(null);
|
19
|
-
let y = 1;
|
20
|
-
const z = 10;
|
21
|
-
let S = n(null), I = n(!1);
|
19
|
+
let y = 1, z = n(null), S = n(!1);
|
22
20
|
const v = n([]), j = (s) => {
|
23
21
|
v.value = s;
|
24
|
-
}, B = q(() =>
|
25
|
-
|
22
|
+
}, B = q(() => P.value === "all" ? G.gallery : G.gallery.filter((s) => s.categories.includes(P.value))), U = async () => {
|
23
|
+
S.value = !0, await d.fetchGallery(y, $), S.value = !1;
|
26
24
|
}, g = n(null), e = n({
|
27
25
|
categories: "",
|
28
26
|
size: "",
|
29
27
|
image: !1
|
30
28
|
}), h = n(null), k = (s) => {
|
31
|
-
console.log(p.value), p.value ? N(s) : (g.value = "modal", e.value.image = s,
|
29
|
+
console.log(p.value), p.value ? N(s) : (g.value = "modal", e.value.image = s, I());
|
32
30
|
}, N = (s) => {
|
33
31
|
g.value = "edit-modal", e.value = s || {
|
34
32
|
categories: "",
|
35
33
|
size: "",
|
36
34
|
image: null
|
37
|
-
},
|
35
|
+
}, I();
|
38
36
|
}, r = () => {
|
39
37
|
e.value = {
|
40
38
|
categories: "",
|
41
39
|
size: "",
|
42
40
|
image: !1
|
43
41
|
}, h.value = null, V();
|
44
|
-
},
|
42
|
+
}, I = () => {
|
45
43
|
document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden";
|
46
44
|
}, V = () => {
|
47
45
|
document.body.style.overflow = "", document.documentElement.style.overflow = "";
|
@@ -65,14 +63,14 @@ const u = (m) => (K("data-v-d6a1c805"), m = m(), Q(), m), te = { class: "pos-rel
|
|
65
63
|
categories: typeof e.value.categories == "string" ? e.value.categories.split(",").map((i) => i.trim()) : e.value.categories
|
66
64
|
}), r();
|
67
65
|
};
|
68
|
-
let
|
66
|
+
let P = n("all");
|
69
67
|
return A(async () => {
|
70
|
-
await d.fetchGallery(y,
|
68
|
+
await d.fetchGallery(y, $), typeof window < "u" && new IntersectionObserver((i) => {
|
71
69
|
i.some((l) => l.isIntersecting) && (y += 1, U());
|
72
|
-
}).observe(
|
73
|
-
}), (s, i) => (a(), o("div",
|
74
|
-
t("div",
|
75
|
-
|
70
|
+
}).observe(z.value);
|
71
|
+
}), (s, i) => (a(), o("div", ee, [
|
72
|
+
t("div", te, [
|
73
|
+
le,
|
76
74
|
p.value ? (a(), o("button", {
|
77
75
|
key: 0,
|
78
76
|
onClick: i[0] || (i[0] = (l) => k(null)),
|
@@ -84,7 +82,7 @@ const u = (m) => (K("data-v-d6a1c805"), m = m(), Q(), m), te = { class: "pos-rel
|
|
84
82
|
ref: C,
|
85
83
|
class: "cols-4 gap-thin"
|
86
84
|
}, [
|
87
|
-
(a(!0), o(
|
85
|
+
(a(!0), o(E, null, M(B.value, (l, Se) => (a(), o("div", {
|
88
86
|
key: l.id,
|
89
87
|
"data-id": l.id
|
90
88
|
}, [
|
@@ -98,62 +96,62 @@ const u = (m) => (K("data-v-d6a1c805"), m = m(), Q(), m), te = { class: "pos-rel
|
|
98
96
|
src: "https://thecommunephuket.com/photos/" + l.cover,
|
99
97
|
class: "w-100 h-100 o-hidden radius-medium object-fit-cover",
|
100
98
|
onClick: (_) => k(l.image)
|
101
|
-
}, null, 8,
|
99
|
+
}, null, 8, ae)) : (a(), o("div", oe, [
|
102
100
|
t("img", {
|
103
101
|
src: "https://thecommunephuket.com/photos/" + l.cover,
|
104
102
|
class: "w-100 radius-small mn-small h-10r object-fit-cover",
|
105
103
|
onClick: (_) => k(l)
|
106
|
-
}, null, 8,
|
107
|
-
t("p",
|
104
|
+
}, null, 8, ie),
|
105
|
+
t("p", ne, [
|
106
|
+
ce,
|
108
107
|
re,
|
109
|
-
de,
|
110
|
-
t("span", ue, x(l.size.name), 1)
|
108
|
+
t("span", de, x(l.size.name), 1)
|
111
109
|
]),
|
112
|
-
t("p",
|
110
|
+
t("p", ue, [
|
111
|
+
me,
|
113
112
|
pe,
|
114
|
-
ve,
|
115
|
-
(a(!0), o(M, null, G(l.categories, (_) => (a(), o("span", ge, x(_), 1))), 256))
|
113
|
+
(a(!0), o(E, null, M(l.categories, (_) => (a(), o("span", ve, x(_), 1))), 256))
|
116
114
|
]),
|
117
|
-
t("div",
|
115
|
+
t("div", ge, [
|
118
116
|
t("button", {
|
119
117
|
class: "button-small w-100 button",
|
120
118
|
onClick: (_) => F(l._id)
|
121
|
-
}, "Delete", 8,
|
119
|
+
}, "Delete", 8, he)
|
122
120
|
])
|
123
121
|
]))
|
124
122
|
]),
|
125
123
|
_: 2
|
126
124
|
}, 1024)
|
127
|
-
], 8,
|
125
|
+
], 8, se))), 128)),
|
128
126
|
t("div", {
|
129
127
|
ref_key: "sentinel",
|
130
|
-
ref:
|
128
|
+
ref: z,
|
131
129
|
class: "sentinel"
|
132
130
|
}, null, 512),
|
133
131
|
c(w, { name: "modal" }, {
|
134
132
|
default: b(() => [
|
135
|
-
|
136
|
-
t("div",
|
137
|
-
t("div",
|
133
|
+
L(t("div", _e, [
|
134
|
+
t("div", fe, [
|
135
|
+
t("div", be, [
|
138
136
|
t("span", {
|
139
137
|
class: "close",
|
140
138
|
onClick: r
|
141
139
|
}, "×"),
|
142
140
|
t("img", {
|
143
141
|
src: "https://thecommunephuket.com/photos/" + e.value.image
|
144
|
-
}, null, 8,
|
142
|
+
}, null, 8, ye)
|
145
143
|
])
|
146
144
|
])
|
147
145
|
], 512), [
|
148
|
-
[
|
146
|
+
[R, e.value.image !== !1 && g.value === "modal"]
|
149
147
|
])
|
150
148
|
]),
|
151
149
|
_: 1
|
152
150
|
}),
|
153
151
|
c(w, { name: "modal" }, {
|
154
152
|
default: b(() => [
|
155
|
-
e.value.image !== !1 && g.value === "edit-modal" ? (a(), o("div",
|
156
|
-
t("div",
|
153
|
+
e.value.image !== !1 && g.value === "edit-modal" ? (a(), o("div", ke, [
|
154
|
+
t("div", we, [
|
157
155
|
t("span", {
|
158
156
|
class: "close",
|
159
157
|
onClick: r
|
@@ -162,13 +160,13 @@ const u = (m) => (K("data-v-d6a1c805"), m = m(), Q(), m), te = { class: "pos-rel
|
|
162
160
|
key: 0,
|
163
161
|
src: h.value,
|
164
162
|
class: "radius-small w-100 mn-small h-20r object-fit-cover"
|
165
|
-
}, null, 8,
|
163
|
+
}, null, 8, xe)) : f("", !0),
|
166
164
|
typeof h.value == "object" && e.value.image !== null ? (a(), o("img", {
|
167
165
|
key: 1,
|
168
166
|
class: "radius-small w-100 mn-small h-20r object-fit-cover",
|
169
167
|
src: "/photos/" + e.value.cover
|
170
|
-
}, null, 8,
|
171
|
-
c(
|
168
|
+
}, null, 8, Ce)) : f("", !0),
|
169
|
+
c(X, {
|
172
170
|
options: D,
|
173
171
|
label: "Size",
|
174
172
|
select: e.value.size,
|
@@ -176,7 +174,7 @@ const u = (m) => (K("data-v-d6a1c805"), m = m(), Q(), m), te = { class: "pos-rel
|
|
176
174
|
placeholder: "Select Size",
|
177
175
|
class: "bg-grey pd-thin radius-small mn-thin t-black"
|
178
176
|
}, null, 8, ["select"]),
|
179
|
-
c(
|
177
|
+
c(Q, {
|
180
178
|
field: e.value.categories,
|
181
179
|
"onUpdate:field": i[2] || (i[2] = (l) => e.value.categories = l),
|
182
180
|
type: "text",
|
@@ -184,19 +182,19 @@ const u = (m) => (K("data-v-d6a1c805"), m = m(), Q(), m), te = { class: "pos-rel
|
|
184
182
|
placeholder: "Enter categories for image (comma separated)",
|
185
183
|
class: "bg-grey pd-thin radius-small mn-medium t-black"
|
186
184
|
}, null, 8, ["field"]),
|
187
|
-
c(
|
185
|
+
c(Y, {
|
188
186
|
images: v.value,
|
189
187
|
"onUpdate:images": j,
|
190
188
|
uploadPath: "photos",
|
191
189
|
class: "mn-semi"
|
192
190
|
}, null, 8, ["images"]),
|
193
|
-
c(
|
191
|
+
c(W, {
|
194
192
|
submit: e.value._id ? O : T,
|
195
193
|
callback: r,
|
196
194
|
class: "mn-thin"
|
197
195
|
}, {
|
198
196
|
default: b(() => [
|
199
|
-
|
197
|
+
H(x(e.value._id ? "Update" : "Create"), 1)
|
200
198
|
]),
|
201
199
|
_: 1
|
202
200
|
}, 8, ["submit"])
|
@@ -208,7 +206,7 @@ const u = (m) => (K("data-v-d6a1c805"), m = m(), Q(), m), te = { class: "pos-rel
|
|
208
206
|
], 512)
|
209
207
|
]));
|
210
208
|
}
|
211
|
-
},
|
209
|
+
}, Ue = /* @__PURE__ */ Z(ze, [["__scopeId", "data-v-d6a1c805"]]);
|
212
210
|
export {
|
213
|
-
|
211
|
+
Ue as default
|
214
212
|
};
|
@@ -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"),x=require("vue-router"),z=require("../../../../components/Field/Field.vue2.cjs"),S=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Select/Select.vue2.cjs"),M=require("../../../../components/Upload/Upload.vue.cjs"),s=require("../../store/gallery.cjs");require("./GalleryWithCategories.vue2.cjs");const F=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),I={class:"pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll"},P=["onClick"],j=["data-id"],G=["src","onClick"],R={class:"modal pd-thin"},T={class:"modal-content radius-big"},U={class:""},D=["src"],L={key:0,class:"flex-v-center flex m modal pd-big"},O={class:"modal-content radius-small pd-medium bg-white"},$=["src"],A=["src"],W=!1,h=10,H={__name:"GalleryWithCategories",setup(K){x.useRoute();const m=e.ref(null),f=["all","place","drinks","people","events"];let d=1,v=e.ref(null),g=e.ref(!1);const _=e.computed(()=>c.value==="all"?s.state.gallery:s.state.gallery.filter(a=>a.categories.includes(c.value))),k=async()=>{g.value=!0,await s.actions.fetchGallery(d,h),g.value=!1},r=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),i=e.ref(null),y=a=>{W.value?b(a):(r.value="modal",t.value.image=a,p())},b=a=>{r.value="edit-modal",t.value=a||{categories:"",size:"",image:null},p()},n=()=>{t.value={categories:"",size:"",image:!1},i.value=null,w()},p=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},w=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},V=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],C=async()=>{await s.actions.updatePhoto(t.value),n()},E=a=>{const o=a.files;if(t.value.image=o,o&&o.length>0){const l=new FileReader;l.onload=u=>{i.value=u.target.result},l.readAsDataURL(o[0])}},N=async a=>{if(!t.value.image||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({...t.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(o=>o.trim()):t.value.categories}),n()};let c=e.ref("all");const B=a=>{c.value=a};return e.onMounted(async()=>{await s.actions.fetchGallery(d,h),typeof window<"u"&&new IntersectionObserver(o=>{o.some(l=>l.isIntersecting)&&(d+=1,k())}).observe(v.value)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",I,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(f,l=>e.createElementVNode("a",{key:l,onClick:u=>B(l),class:e.normalizeClass(["h3 uppercase mn-r-big",{"t-transp":e.unref(c)!==l}])},e.toDisplayString(a.$t("gallery.categories."+l)),11,P)),64)),e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:m,class:"pd-medium cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,u)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:Q=>y(l.image)},null,8,G)):e.createCommentVNode("",!0)]),_:2},1024)],8,j))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:v,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",R,[e.createElementVNode("div",T,[e.createElementVNode("div",U,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,D)])])],512),[[e.vShow,t.value.image!==!1&&r.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&r.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",O,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof i.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.value,class:"radius-small w-100 mn-small h-20r object-fit-cover"},null,8,$)):e.createCommentVNode("",!0),typeof i.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,A)):e.createCommentVNode("",!0),t.value._id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:2,id:"photo",name:"photo",type:"file",class:"t-black bg-grey pd-thin radius-small mn-thin",onFileChange:E,multiple:"true"})),e.createVNode(q.default,{options:V,label:"Size",select:t.value.size,"onUpdate:select":o[1]||(o[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-thin t-black"},null,8,["select"]),e.createVNode(z.default,{field:t.value.categories,"onUpdate:field":o[2]||(o[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-medium t-black"},null,8,["field"]),e.createVNode(S.default,{submit:t.value._id?C:N,callback:n,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},J=F.default(H,[["__scopeId","data-v-34379ac8"]]);exports.default=J;
|
@@ -1,55 +1,53 @@
|
|
1
|
-
import { ref as n, computed as
|
2
|
-
import { useRoute as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import { state as
|
1
|
+
import { ref as n, computed as $, onMounted as D, openBlock as o, createElementBlock as i, createElementVNode as s, Fragment as C, renderList as z, normalizeClass as A, unref as L, toDisplayString as x, createCommentVNode as r, createVNode as c, Transition as _, withCtx as p, withDirectives as O, vShow as T, createBlock as W, createTextVNode as q } from "vue";
|
2
|
+
import { useRoute as H } from "vue-router";
|
3
|
+
import J from "../../../../components/Field/Field.vue2.js";
|
4
|
+
import K from "../../../../components/Button/Button.vue2.js";
|
5
|
+
import Q from "../../../../components/Select/Select.vue2.js";
|
6
|
+
import X from "../../../../components/Upload/Upload.vue.js";
|
7
|
+
import { state as S, actions as g } from "../../store/gallery.js";
|
8
8
|
import "./GalleryWithCategories.vue2.js";
|
9
|
-
import
|
10
|
-
const
|
9
|
+
import Y from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
10
|
+
const Z = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" }, ee = ["onClick"], le = ["data-id"], te = ["src", "onClick"], ae = { class: "modal pd-thin" }, se = { class: "modal-content radius-big" }, oe = { class: "" }, ie = ["src"], ne = {
|
11
11
|
key: 0,
|
12
12
|
class: "flex-v-center flex m modal pd-big"
|
13
|
-
},
|
13
|
+
}, re = { class: "modal-content radius-small pd-medium bg-white" }, ce = ["src"], de = ["src"], ue = !1, E = 10, me = {
|
14
14
|
__name: "GalleryWithCategories",
|
15
15
|
setup(ve) {
|
16
|
-
|
17
|
-
const
|
18
|
-
let f = 1;
|
19
|
-
const
|
20
|
-
|
21
|
-
const G = A(() => v.value === "all" ? I.gallery : I.gallery.filter((t) => t.categories.includes(v.value))), P = async () => {
|
22
|
-
w.value = !0, await g.fetchGallery(f, b), w.value = !1;
|
16
|
+
H();
|
17
|
+
const y = n(null), I = ["all", "place", "drinks", "people", "events"];
|
18
|
+
let f = 1, b = n(null), k = n(!1);
|
19
|
+
const M = $(() => v.value === "all" ? S.gallery : S.gallery.filter((t) => t.categories.includes(v.value))), F = async () => {
|
20
|
+
k.value = !0, await g.fetchGallery(f, E), k.value = !1;
|
23
21
|
}, m = n(null), e = n({
|
24
22
|
categories: "",
|
25
23
|
size: "",
|
26
24
|
image: !1
|
27
|
-
}), d = n(null),
|
28
|
-
|
29
|
-
},
|
25
|
+
}), d = n(null), G = (t) => {
|
26
|
+
ue.value ? P(t) : (m.value = "modal", e.value.image = t, w());
|
27
|
+
}, P = (t) => {
|
30
28
|
m.value = "edit-modal", e.value = t || {
|
31
29
|
categories: "",
|
32
30
|
size: "",
|
33
31
|
image: null
|
34
|
-
},
|
32
|
+
}, w();
|
35
33
|
}, u = () => {
|
36
34
|
e.value = {
|
37
35
|
categories: "",
|
38
36
|
size: "",
|
39
37
|
image: !1
|
40
|
-
}, d.value = null,
|
41
|
-
},
|
38
|
+
}, d.value = null, U();
|
39
|
+
}, w = () => {
|
42
40
|
document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden";
|
43
|
-
},
|
41
|
+
}, U = () => {
|
44
42
|
document.body.style.overflow = "", document.documentElement.style.overflow = "";
|
45
|
-
},
|
43
|
+
}, j = [
|
46
44
|
{ name: "Small", value: "" },
|
47
45
|
{ name: "Regular", value: "grid-item--width1 grid-item--height1" },
|
48
46
|
{ name: "Medium", value: "grid-item--width2 grid-item--height2" },
|
49
47
|
{ name: "Big", value: "grid-item--width3 grid-item--height3" }
|
50
|
-
],
|
48
|
+
], B = async () => {
|
51
49
|
await g.updatePhoto(e.value), u();
|
52
|
-
},
|
50
|
+
}, N = (t) => {
|
53
51
|
const a = t.files;
|
54
52
|
if (e.value.image = a, a && a.length > 0) {
|
55
53
|
const l = new FileReader();
|
@@ -57,7 +55,7 @@ const ee = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
|
|
57
55
|
d.value = h.target.result;
|
58
56
|
}, l.readAsDataURL(a[0]);
|
59
57
|
}
|
60
|
-
},
|
58
|
+
}, R = async (t) => {
|
61
59
|
if (!e.value.image || !e.value.categories || !e.value.size) {
|
62
60
|
console.error("All fields are required.");
|
63
61
|
return;
|
@@ -69,20 +67,20 @@ const ee = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
|
|
69
67
|
}), u();
|
70
68
|
};
|
71
69
|
let v = n("all");
|
72
|
-
const
|
70
|
+
const V = (t) => {
|
73
71
|
v.value = t;
|
74
72
|
};
|
75
|
-
return
|
76
|
-
await g.fetchGallery(f,
|
77
|
-
a.some((l) => l.isIntersecting) && (f += 1,
|
78
|
-
}).observe(
|
73
|
+
return D(async () => {
|
74
|
+
await g.fetchGallery(f, E), typeof window < "u" && new IntersectionObserver((a) => {
|
75
|
+
a.some((l) => l.isIntersecting) && (f += 1, F());
|
76
|
+
}).observe(b.value);
|
79
77
|
}), (t, a) => (o(), i("div", null, [
|
80
|
-
s("div",
|
81
|
-
(o(), i(
|
78
|
+
s("div", Z, [
|
79
|
+
(o(), i(C, null, z(I, (l) => s("a", {
|
82
80
|
key: l,
|
83
|
-
onClick: (h) =>
|
84
|
-
class:
|
85
|
-
},
|
81
|
+
onClick: (h) => V(l),
|
82
|
+
class: A(["h3 uppercase mn-r-big", { "t-transp": L(v) !== l }])
|
83
|
+
}, x(t.$t("gallery.categories." + l)), 11, ee)), 64)),
|
86
84
|
r("", !0)
|
87
85
|
]),
|
88
86
|
s("div", {
|
@@ -90,7 +88,7 @@ const ee = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
|
|
90
88
|
ref: y,
|
91
89
|
class: "pd-medium cols-4 gap-thin"
|
92
90
|
}, [
|
93
|
-
(o(!0), i(
|
91
|
+
(o(!0), i(C, null, z(M.value, (l, h) => (o(), i("div", {
|
94
92
|
key: l.id,
|
95
93
|
"data-id": l.id
|
96
94
|
}, [
|
@@ -103,41 +101,41 @@ const ee = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
|
|
103
101
|
key: 0,
|
104
102
|
src: "https://thecommunephuket.com/photos/" + l.cover,
|
105
103
|
class: "w-100 h-100 o-hidden radius-medium object-fit-cover",
|
106
|
-
onClick: (pe) =>
|
107
|
-
}, null, 8,
|
104
|
+
onClick: (pe) => G(l.image)
|
105
|
+
}, null, 8, te)) : r("", !0)
|
108
106
|
]),
|
109
107
|
_: 2
|
110
108
|
}, 1024)
|
111
|
-
], 8,
|
109
|
+
], 8, le))), 128)),
|
112
110
|
s("div", {
|
113
111
|
ref_key: "sentinel",
|
114
|
-
ref:
|
112
|
+
ref: b,
|
115
113
|
class: "sentinel"
|
116
114
|
}, null, 512),
|
117
115
|
c(_, { name: "modal" }, {
|
118
116
|
default: p(() => [
|
119
|
-
|
120
|
-
s("div",
|
121
|
-
s("div",
|
117
|
+
O(s("div", ae, [
|
118
|
+
s("div", se, [
|
119
|
+
s("div", oe, [
|
122
120
|
s("span", {
|
123
121
|
class: "close",
|
124
122
|
onClick: u
|
125
123
|
}, "×"),
|
126
124
|
s("img", {
|
127
125
|
src: "https://thecommunephuket.com/photos/" + e.value.image
|
128
|
-
}, null, 8,
|
126
|
+
}, null, 8, ie)
|
129
127
|
])
|
130
128
|
])
|
131
129
|
], 512), [
|
132
|
-
[
|
130
|
+
[T, e.value.image !== !1 && m.value === "modal"]
|
133
131
|
])
|
134
132
|
]),
|
135
133
|
_: 1
|
136
134
|
}),
|
137
135
|
c(_, { name: "modal" }, {
|
138
136
|
default: p(() => [
|
139
|
-
e.value.image !== !1 && m.value === "edit-modal" ? (o(), i("div",
|
140
|
-
s("div",
|
137
|
+
e.value.image !== !1 && m.value === "edit-modal" ? (o(), i("div", ne, [
|
138
|
+
s("div", re, [
|
141
139
|
s("span", {
|
142
140
|
class: "close",
|
143
141
|
onClick: u
|
@@ -146,30 +144,30 @@ const ee = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
|
|
146
144
|
key: 0,
|
147
145
|
src: d.value,
|
148
146
|
class: "radius-small w-100 mn-small h-20r object-fit-cover"
|
149
|
-
}, null, 8,
|
147
|
+
}, null, 8, ce)) : r("", !0),
|
150
148
|
typeof d.value == "object" && e.value.image !== null ? (o(), i("img", {
|
151
149
|
key: 1,
|
152
150
|
class: "radius-small w-100 mn-small h-20r object-fit-cover",
|
153
151
|
src: "/photos/" + e.value.cover
|
154
|
-
}, null, 8,
|
155
|
-
e.value._id ? r("", !0) : (o(),
|
152
|
+
}, null, 8, de)) : r("", !0),
|
153
|
+
e.value._id ? r("", !0) : (o(), W(X, {
|
156
154
|
key: 2,
|
157
155
|
id: "photo",
|
158
156
|
name: "photo",
|
159
157
|
type: "file",
|
160
158
|
class: "t-black bg-grey pd-thin radius-small mn-thin",
|
161
|
-
onFileChange:
|
159
|
+
onFileChange: N,
|
162
160
|
multiple: "true"
|
163
161
|
})),
|
164
|
-
c(
|
165
|
-
options:
|
162
|
+
c(Q, {
|
163
|
+
options: j,
|
166
164
|
label: "Size",
|
167
165
|
select: e.value.size,
|
168
166
|
"onUpdate:select": a[1] || (a[1] = (l) => e.value.size = l),
|
169
167
|
placeholder: "Select Size",
|
170
168
|
class: "bg-grey pd-thin radius-small mn-thin t-black"
|
171
169
|
}, null, 8, ["select"]),
|
172
|
-
c(
|
170
|
+
c(J, {
|
173
171
|
field: e.value.categories,
|
174
172
|
"onUpdate:field": a[2] || (a[2] = (l) => e.value.categories = l),
|
175
173
|
type: "text",
|
@@ -177,13 +175,13 @@ const ee = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
|
|
177
175
|
placeholder: "Enter categories for image (comma separated)",
|
178
176
|
class: "bg-grey pd-thin radius-small mn-medium t-black"
|
179
177
|
}, null, 8, ["field"]),
|
180
|
-
c(
|
181
|
-
submit: e.value._id ?
|
178
|
+
c(K, {
|
179
|
+
submit: e.value._id ? B : R,
|
182
180
|
callback: u,
|
183
181
|
class: "mn-thin"
|
184
182
|
}, {
|
185
183
|
default: p(() => [
|
186
|
-
|
184
|
+
q(x(e.value._id ? "Update" : "Create"), 1)
|
187
185
|
]),
|
188
186
|
_: 1
|
189
187
|
}, 8, ["submit"])
|
@@ -195,7 +193,7 @@ const ee = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" },
|
|
195
193
|
], 512)
|
196
194
|
]));
|
197
195
|
}
|
198
|
-
}, ze = /* @__PURE__ */
|
196
|
+
}, ze = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-34379ac8"]]);
|
199
197
|
export {
|
200
198
|
ze as default
|
201
199
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),h=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),f=require("../../../reports/components/sections/FormReport.vue.cjs"),g=require("../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../components/Button/Button.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),h=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),f=require("../../../reports/components/sections/FormReport.vue.cjs"),g=require("../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");const k={key:0,class:"pd-b-zero"},y={class:"w-100 flex-v-center flex-nojustify flex"},w={class:"w-100 flex-nowrap flex-v-center flex"},b=["src"],B={key:2,class:"t-semi"},E={key:1},V={key:2},p={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},x={key:0,class:"w-4r i-thin"},C={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"},N=["src"],$={class:"bg-black pd-thin radius-small"},v=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),M={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type"],setup(t){m.useRouter();function u(o){const r=new Date,i=new Date(o),s=Math.abs(r-i),a=Math.floor(s/1e3),n=Math.floor(a/60),l=Math.floor(n/60),c=Math.floor(l/24),d=Math.floor(c/7);return d>0?`${d} week${d>1?"s":""} ago`:c>0?`${c} day${c>1?"s":""} ago`:l>0?`${l} hour${l>1?"s":""} ago`:n>0?`${n} minute${n>1?"s":""} ago`:"Just now"}return(o,r)=>{var i,s;return t.owner?(e.openBlock(),e.createElementBlock("header",k,[e.createElementVNode("div",y,[e.createElementVNode("div",w,[t.owner.target.profile.photo.length>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(a=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,b)):e.createCommentVNode("",!0),!t.owner.target.profile.photo&&t.type!=="short"?(e.openBlock(),e.createBlock(h.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(a=>o.$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",B,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(a=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString(t.owner.target.profile.name),1),!t.creator.hidden&&t.owner.target.profile.name!==((i=t.creator.target.profile)==null?void 0:i.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(a=>o.$router.push({name:"User Profile",params:{_id:t.creator.target._id}}),["stop"]))}," · by "+e.toDisplayString((s=t.creator.target.profile)==null?void 0:s.name),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",E," · "+e.toDisplayString(u(t.date)),1)):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",V," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",p,[t.members?(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("span",C,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(a,n)=>(e.openBlock(),e.createElementBlock("img",{key:n,src:(o.FILE_SERVER_URL||"")+a,style:e.normalizeStyle({position:"absolute",top:"0px",right:n*20+20+"%",zIndex:1-n}),class:"br-solid br-2px br-white i-thin bg-grey radius-big"},null,12,N))),128))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user&&t.user!=t.creator.target._id?(e.openBlock(),e.createBlock(g.default,{key:3,label:"...",align:"right",class:"cursor-pointer z-index-2 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",$,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(f.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[v]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=M;
|
@@ -3,7 +3,7 @@ import { useRouter as v } from "vue-router";
|
|
3
3
|
import p from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
|
4
4
|
import E from "../../../reports/components/sections/FormReport.vue.js";
|
5
5
|
import R from "../../../../components/Dropdown/Dropdown.vue2.js";
|
6
|
-
import "../../../../components/Button/Button.
|
6
|
+
import "../../../../components/Button/Button.vue.js";
|
7
7
|
import "../../../auth/store/auth.js";
|
8
8
|
import "../../../organizations/store/memberships.js";
|
9
9
|
const z = {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue2.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-small"><h2 class="mn-small">About No More Snow CO., LTD.</h2><p class="mn-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref as l, openBlock as m, createElementBlock as u, createVNode as t, withCtx as o, unref as r, createStaticVNode as c, createElementVNode as a } from "vue";
|
2
|
-
import "../../../../components/Field/Field.
|
3
|
-
import "../../../../components/Button/Button.
|
2
|
+
import "../../../../components/Field/Field.vue.js";
|
3
|
+
import "../../../../components/Button/Button.vue.js";
|
4
4
|
import p from "../../../mobile/components/Menu/Menu.vue2.js";
|
5
5
|
import n from "../../../mobile/components/Menu/MenuItem.vue.js";
|
6
6
|
import { useRoute as d, useRouter as h } from "vue-router";
|
package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l={class:"mn-small w-100"},
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l={class:"mn-small w-100"},a=["href"],n=e.createElementVNode("span",{class:"t-semi uppercase"},"Website",-1),c=[n],i=["href"],d=e.createElementVNode("span",{class:"t-semi uppercase"},"Phone",-1),p=[d],m=["href"],u=e.createElementVNode("span",{class:"t-semi uppercase"},"Email",-1),_=[u],h=["href"],f=e.createElementVNode("span",{class:"t-semi uppercase"},"Address",-1),b=[f],w={__name:"Contacts",props:{website:String,phone:String,email:String,address:String},setup(o){const t=o,s=e.computed(()=>t.website?!t.website.startsWith("http://")&&!t.website.startsWith("https://")?`http://${t.website}`:t.website:null),r=e.computed(()=>t.address?encodeURIComponent(t.address):null);return(k,x)=>(e.openBlock(),e.createElementBlock("div",l,[s.value?(e.openBlock(),e.createElementBlock("a",{key:0,href:s.value,target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},c,8,a)):e.createCommentVNode("",!0),t.phone?(e.openBlock(),e.createElementBlock("a",{key:1,href:`tel:${t.phone}`,class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},p,8,i)):e.createCommentVNode("",!0),t.email?(e.openBlock(),e.createElementBlock("a",{key:2,href:`mailto:${t.email}`,target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},_,8,m)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("a",{key:3,href:`https://www.google.com/maps/search/?api=1&query=${r.value}`,target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},b,8,h)):e.createCommentVNode("",!0)]))}};exports.default=w;
|