@ozdao/prometheus-framework 0.2.179 → 0.2.181
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +1 -1
- package/dist/builder.mjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +69 -75
- package/package.json +1 -1
- package/src/builder/webpack/webpack.config.client.js +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +3 -3
package/dist/builder.js
CHANGED
@@ -590,7 +590,7 @@ var webpack_config_client = (projectRoot) => {
|
|
590
590
|
paths: glob.sync([
|
591
591
|
path$3.join(projectRoot, "src/**/*.vue"),
|
592
592
|
path$3.join(projectRoot, "prometheus-framework/src/**/*.vue"),
|
593
|
-
path$3.join(projectRoot, "/node_modules/@ozdao/prometheus-framework/dist
|
593
|
+
path$3.join(projectRoot, "/node_modules/@ozdao/prometheus-framework/dist/**/*.vue")
|
594
594
|
]),
|
595
595
|
safelist: { greedy: [/data-v-.*/] }
|
596
596
|
})
|
package/dist/builder.mjs
CHANGED
@@ -567,7 +567,7 @@ var webpack_config_client = (projectRoot) => {
|
|
567
567
|
paths: glob.sync([
|
568
568
|
path$3.join(projectRoot, "src/**/*.vue"),
|
569
569
|
path$3.join(projectRoot, "prometheus-framework/src/**/*.vue"),
|
570
|
-
path$3.join(projectRoot, "/node_modules/@ozdao/prometheus-framework/dist
|
570
|
+
path$3.join(projectRoot, "/node_modules/@ozdao/prometheus-framework/dist/**/*.vue")
|
571
571
|
]),
|
572
572
|
safelist: { greedy: [/data-v-.*/] }
|
573
573
|
})
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),c=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const h
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),c=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const h=require("../../../events/components/sections/Feed.vue.cjs"),g=require("../../../spots/components/blocks/CardSpot.vue.cjs"),v=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),s=require("../../store/organizations.cjs"),B=require("../../store/memberships.cjs");require("../../store/departments.cjs");const q=require("../../../community/store/blogposts.cjs"),C=require("../../../spots/store/spots.cjs");;/* empty css */const w={key:0,class:"pd-thin for-transition w-100"},y={class:"pos-relative"},N={key:0},V={__name:"Organization",setup(x){d.useRouter();const t=d.useRoute();let p=t.query.tab?t.query.tab:"products";const l=e.ref(null);e.onMounted(async()=>{l.value=await s.actions.read({_id:t.params._id,user:o.state.user._id}),await B.actions.read({target:t.params._id})});const a=e.ref(p);return t.query.tab=a.value,(m,n)=>{const u=e.resolveComponent("router-link");return l.value?(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(f.default,{selected:a.value,"onUpdate:selected":n[0]||(n[0]=r=>a.value=r),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createElementVNode("div",y,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="community"?(e.openBlock(),e.createBlock(c.default,{key:0,showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:r=>q.read(r)},options:{status:"published",user:o.state.user._id,owner:e.unref(t).params._id},class:"row-1 gap-thin"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,i=>(e.openBlock(),e.createBlock(b.default,{key:i._id,blogpost:i,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="events"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),a.value==="products"&&o.state.user._id===s.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="products"?(e.openBlock(),e.createBlock(v.default,{key:0,organization:s.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="spots"?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(c.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:r=>C.actions.read(e.unref(t).params._id),state:s.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(i,_)=>(e.openBlock(),e.createBlock(g.default,{key:_,spot:i,organization:s.state.current,class:"radius-big bg-light mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===s.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=r=>m.$router.push(`/spots/${s.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=V;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as g, onMounted as C, resolveComponent as z, openBlock as t, createElementBlock as d, createVNode as o, createElementVNode as B, Transition as _, withCtx as r, createBlock as u, unref as l, Fragment as h, renderList as k, createCommentVNode as i, createTextVNode as b } from "vue";
|
2
2
|
import { useRouter as N, useRoute as P } from "vue-router";
|
3
3
|
import "vue-i18n";
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
@@ -10,45 +10,39 @@ import V from "../../../community/components/blocks/CardBlogpost.vue.js";
|
|
10
10
|
/* empty css */
|
11
11
|
import "../../../../components/Menu/MenuItem.vue.js";
|
12
12
|
/* empty css */
|
13
|
-
import q from "
|
14
|
-
import A from "../../../
|
15
|
-
import E from "../../../
|
16
|
-
import
|
17
|
-
import { state as
|
18
|
-
import { actions as L
|
19
|
-
import { actions as S } from "../../store/memberships.js";
|
13
|
+
import q from "../../../events/components/sections/Feed.vue.js";
|
14
|
+
import A from "../../../spots/components/blocks/CardSpot.vue.js";
|
15
|
+
import E from "../../../products/components/pages/Products.vue.js";
|
16
|
+
import { state as n } from "../../../auth/store/auth.js";
|
17
|
+
import { actions as F, state as m } from "../../store/organizations.js";
|
18
|
+
import { actions as L } from "../../store/memberships.js";
|
20
19
|
import "../../store/departments.js";
|
21
|
-
import { read as
|
22
|
-
import { actions as
|
20
|
+
import { read as S } from "../../../community/store/blogposts.js";
|
21
|
+
import { actions as R } from "../../../spots/store/spots.js";
|
23
22
|
/* empty css */
|
24
|
-
const
|
23
|
+
const T = {
|
25
24
|
key: 0,
|
26
25
|
class: "pd-thin for-transition w-100"
|
27
|
-
},
|
26
|
+
}, D = { class: "pos-relative" }, G = { key: 0 }, pe = {
|
28
27
|
__name: "Organization",
|
29
|
-
setup(
|
28
|
+
setup(I) {
|
30
29
|
N();
|
31
30
|
const e = P();
|
32
31
|
let w = e.query.tab ? e.query.tab : "products";
|
33
|
-
const
|
34
|
-
|
35
|
-
|
32
|
+
const v = g(null);
|
33
|
+
C(async () => {
|
34
|
+
v.value = await F.read({
|
36
35
|
_id: e.params._id,
|
37
|
-
user:
|
38
|
-
}), await
|
36
|
+
user: n.user._id
|
37
|
+
}), await L.read({ target: e.params._id });
|
39
38
|
});
|
40
|
-
const s =
|
39
|
+
const s = g(w);
|
41
40
|
return e.query.tab = s.value, ($, p) => {
|
42
|
-
const f =
|
43
|
-
return
|
44
|
-
|
45
|
-
organization: u.current,
|
46
|
-
user: i.user,
|
47
|
-
class: "mn-b-semi"
|
48
|
-
}, null, 8, ["organization", "user"]),
|
49
|
-
r(M, {
|
41
|
+
const f = z("router-link");
|
42
|
+
return v.value ? (t(), d("div", T, [
|
43
|
+
o(M, {
|
50
44
|
selected: s.value,
|
51
|
-
"onUpdate:selected": p[0] || (p[0] = (
|
45
|
+
"onUpdate:selected": p[0] || (p[0] = (a) => s.value = a),
|
52
46
|
tabs: [
|
53
47
|
{ name: "Community", value: "community" },
|
54
48
|
{ name: "Menu", value: "products" },
|
@@ -57,10 +51,10 @@ const D = {
|
|
57
51
|
],
|
58
52
|
class: "mn-b-small o-hidden h5 radius-big bg-light"
|
59
53
|
}, null, 8, ["selected"]),
|
60
|
-
B("div",
|
61
|
-
|
62
|
-
default:
|
63
|
-
s.value === "community" ? (t(),
|
54
|
+
B("div", D, [
|
55
|
+
o(_, { name: "slide-fade" }, {
|
56
|
+
default: r(() => [
|
57
|
+
s.value === "community" ? (t(), u(y, {
|
64
58
|
key: 0,
|
65
59
|
showLoadMore: !1,
|
66
60
|
states: {
|
@@ -70,48 +64,48 @@ const D = {
|
|
70
64
|
}
|
71
65
|
},
|
72
66
|
store: {
|
73
|
-
read: (
|
67
|
+
read: (a) => S(a)
|
74
68
|
},
|
75
69
|
options: {
|
76
70
|
status: "published",
|
77
|
-
user:
|
71
|
+
user: n.user._id,
|
78
72
|
owner: l(e).params._id
|
79
73
|
},
|
80
74
|
class: "row-1 gap-thin"
|
81
75
|
}, {
|
82
|
-
default:
|
83
|
-
items:
|
76
|
+
default: r(({
|
77
|
+
items: a
|
84
78
|
}) => [
|
85
|
-
(t(!0), d(h, null, k(
|
79
|
+
(t(!0), d(h, null, k(a, (c) => (t(), u(V, {
|
86
80
|
key: c._id,
|
87
81
|
blogpost: c,
|
88
|
-
user:
|
82
|
+
user: n.user._id,
|
89
83
|
class: "h-max-40r mn-b-medium"
|
90
84
|
}, null, 8, ["blogpost", "user"]))), 128))
|
91
85
|
]),
|
92
86
|
_: 1
|
93
|
-
}, 8, ["store", "options"])) :
|
87
|
+
}, 8, ["store", "options"])) : i("", !0)
|
94
88
|
]),
|
95
89
|
_: 1
|
96
90
|
}),
|
97
|
-
|
98
|
-
default:
|
99
|
-
s.value === "events" ? (t(),
|
91
|
+
o(_, { name: "slide-fade" }, {
|
92
|
+
default: r(() => [
|
93
|
+
s.value === "events" ? (t(), u(q, {
|
100
94
|
key: 0,
|
101
|
-
user:
|
95
|
+
user: n.user._id,
|
102
96
|
owner: l(e).params._id,
|
103
97
|
sortOrder: "desc",
|
104
98
|
sortParam: "date.start"
|
105
|
-
}, null, 8, ["user", "owner"])) :
|
99
|
+
}, null, 8, ["user", "owner"])) : i("", !0)
|
106
100
|
]),
|
107
101
|
_: 1
|
108
102
|
}),
|
109
|
-
s.value === "products" &&
|
103
|
+
s.value === "products" && n.user._id === m.current.owner ? (t(), u(O, {
|
110
104
|
key: 0,
|
111
105
|
class: "flex-nowrap gap-thin mn-b-small flex"
|
112
106
|
}, {
|
113
|
-
default:
|
114
|
-
|
107
|
+
default: r(() => [
|
108
|
+
o(f, {
|
115
109
|
class: "bg-black t-white uppercase t-semi pd-thin radius-extra",
|
116
110
|
to: {
|
117
111
|
name: "ProductAdd",
|
@@ -120,12 +114,12 @@ const D = {
|
|
120
114
|
}
|
121
115
|
}
|
122
116
|
}, {
|
123
|
-
default:
|
117
|
+
default: r(() => [
|
124
118
|
b(" Add Product ")
|
125
119
|
]),
|
126
120
|
_: 1
|
127
121
|
}, 8, ["to"]),
|
128
|
-
|
122
|
+
o(f, {
|
129
123
|
class: "uppercase t-semi pd-thin radius-extra",
|
130
124
|
to: {
|
131
125
|
name: "Leftovers",
|
@@ -134,12 +128,12 @@ const D = {
|
|
134
128
|
}
|
135
129
|
}
|
136
130
|
}, {
|
137
|
-
default:
|
131
|
+
default: r(() => [
|
138
132
|
b(" Change Invetory ")
|
139
133
|
]),
|
140
134
|
_: 1
|
141
135
|
}, 8, ["to"]),
|
142
|
-
|
136
|
+
o(f, {
|
143
137
|
class: "d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",
|
144
138
|
to: {
|
145
139
|
name: "Backoffice",
|
@@ -148,27 +142,27 @@ const D = {
|
|
148
142
|
}
|
149
143
|
}
|
150
144
|
}, {
|
151
|
-
default:
|
145
|
+
default: r(() => [
|
152
146
|
b(" Go to Backoffice ")
|
153
147
|
]),
|
154
148
|
_: 1
|
155
149
|
}, 8, ["to"])
|
156
150
|
]),
|
157
151
|
_: 1
|
158
|
-
})) :
|
159
|
-
|
160
|
-
default:
|
161
|
-
s.value === "products" ? (t(),
|
152
|
+
})) : i("", !0),
|
153
|
+
o(_, { name: "slide-fade" }, {
|
154
|
+
default: r(() => [
|
155
|
+
s.value === "products" ? (t(), u(E, {
|
162
156
|
key: 0,
|
163
|
-
organization:
|
164
|
-
}, null, 8, ["organization"])) :
|
157
|
+
organization: m.current
|
158
|
+
}, null, 8, ["organization"])) : i("", !0)
|
165
159
|
]),
|
166
160
|
_: 1
|
167
161
|
}),
|
168
|
-
|
169
|
-
default:
|
170
|
-
s.value === "spots" ? (t(), d("div",
|
171
|
-
|
162
|
+
o(_, { name: "slide-fade" }, {
|
163
|
+
default: r(() => [
|
164
|
+
s.value === "spots" ? (t(), d("div", G, [
|
165
|
+
o(y, {
|
172
166
|
states: {
|
173
167
|
empty: {
|
174
168
|
title: "No Spots Found",
|
@@ -176,42 +170,42 @@ const D = {
|
|
176
170
|
}
|
177
171
|
},
|
178
172
|
store: {
|
179
|
-
read: (
|
180
|
-
state:
|
173
|
+
read: (a) => R.read(l(e).params._id),
|
174
|
+
state: m
|
181
175
|
},
|
182
176
|
options: {
|
183
|
-
user:
|
177
|
+
user: n.user._id,
|
184
178
|
sort: "numberOfMemberships",
|
185
179
|
contain: ["blogposts"],
|
186
180
|
limit: 10
|
187
181
|
}
|
188
182
|
}, {
|
189
|
-
default:
|
190
|
-
items:
|
183
|
+
default: r(({
|
184
|
+
items: a
|
191
185
|
}) => [
|
192
|
-
(t(!0), d(h, null, k(
|
186
|
+
(t(!0), d(h, null, k(a, (c, x) => (t(), u(A, {
|
193
187
|
key: x,
|
194
188
|
spot: c,
|
195
|
-
organization:
|
189
|
+
organization: m.current,
|
196
190
|
class: "radius-big bg-light mn-b-thin"
|
197
191
|
}, null, 8, ["spot", "organization"]))), 128))
|
198
192
|
]),
|
199
193
|
_: 1
|
200
194
|
}, 8, ["store", "options"]),
|
201
|
-
|
195
|
+
n.user._id === m.current.owner ? (t(), d("button", {
|
202
196
|
key: 0,
|
203
|
-
onClick: p[1] || (p[1] = (
|
197
|
+
onClick: p[1] || (p[1] = (a) => $.$router.push(`/spots/${m.current._id}/spots/create`)),
|
204
198
|
class: "mn-b-thin bg-main button w-100"
|
205
|
-
}, " Add spot ")) :
|
206
|
-
])) :
|
199
|
+
}, " Add spot ")) : i("", !0)
|
200
|
+
])) : i("", !0)
|
207
201
|
]),
|
208
202
|
_: 1
|
209
203
|
})
|
210
204
|
])
|
211
|
-
])) :
|
205
|
+
])) : i("", !0);
|
212
206
|
};
|
213
207
|
}
|
214
208
|
};
|
215
209
|
export {
|
216
|
-
|
210
|
+
pe as default
|
217
211
|
};
|
package/package.json
CHANGED
@@ -43,7 +43,7 @@ module.exports = (projectRoot) => {
|
|
43
43
|
paths: glob.sync([
|
44
44
|
path.join(projectRoot, 'src/**/*.vue'),
|
45
45
|
path.join(projectRoot, 'prometheus-framework/src/**/*.vue'),
|
46
|
-
path.join(projectRoot, '/node_modules/@ozdao/prometheus-framework/dist
|
46
|
+
path.join(projectRoot, '/node_modules/@ozdao/prometheus-framework/dist/**/*.vue')
|
47
47
|
]),
|
48
48
|
safelist: { greedy: [ /data-v-.*/ ] }
|
49
49
|
}),
|
@@ -4,11 +4,11 @@
|
|
4
4
|
<!-- <Breadcrumbs class="mn-b-thin pd-medium bg-light radius-big"/> -->
|
5
5
|
<!-- <pre>{{organization.state.current}}</pre> -->
|
6
6
|
|
7
|
-
<DetailsTab
|
7
|
+
<!-- <DetailsTab
|
8
8
|
:organization="organization.state.current"
|
9
9
|
:user="auth.state.user"
|
10
10
|
class="mn-b-semi"
|
11
|
-
/>
|
11
|
+
/> -->
|
12
12
|
|
13
13
|
<Tab
|
14
14
|
v-model:selected="tabOrganization"
|
@@ -181,7 +181,7 @@
|
|
181
181
|
import MenuItem from '@pf/src/components/Menu/MenuItem.vue'
|
182
182
|
// Organizations
|
183
183
|
import DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';
|
184
|
-
import DetailsTab from '@pf/src/modules/organizations/components/sections/DetailsTab.vue';
|
184
|
+
// import DetailsTab from '@pf/src/modules/organizations/components/sections/DetailsTab.vue';
|
185
185
|
import User from '@pf/src/modules/users/components/blocks/CardUser.vue';
|
186
186
|
// Feeds
|
187
187
|
import FeedEvents from '@pf/src/modules/events/components/sections/Feed.vue';
|