@ozdao/prometheus-framework 0.0.85 → 0.0.86
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs +138 -0
- package/dist/ButtonFollow-728aab73.mjs +130 -0
- package/dist/CardHeader-ce5a1a75.mjs +96 -0
- package/dist/CardOrganization-58b54995.js +1 -0
- package/dist/CardOrganization-91e79698.mjs +320 -0
- package/dist/Comments-c092550f.mjs +76 -0
- package/dist/EditProductImages-61ff4321.mjs +236 -0
- package/dist/Feed-926cf4f3.mjs +355 -0
- package/dist/Feed-a31c43c2.mjs +423 -0
- package/dist/PlaceholderUserpic-995da0fc.mjs +28 -0
- package/dist/Popup-0c791801.mjs +76 -0
- package/dist/Product-6c37ef35.js +7 -0
- package/dist/Product-7087b358.mjs +837 -0
- package/dist/ProductEdit-c5067942.mjs +113 -0
- package/dist/ProfileBlogposts-79d5c858.mjs +63 -0
- package/dist/ProfileComments-48f3d4bc.mjs +43 -0
- package/dist/ProfileEvents-20695376.mjs +55 -0
- package/dist/ProfileLikes-503712ec.mjs +43 -0
- package/dist/ProfileOrganizations-3f305f4e.mjs +210 -0
- package/dist/ProfileOrganizations-50fce34e.js +1 -0
- package/dist/Publics-49dbeafc.js +1 -0
- package/dist/Publics-b0fad2b0.mjs +1926 -0
- package/dist/UploadImage-d1dbc280.mjs +99 -0
- package/dist/auth-35ef1791.mjs +1502 -0
- package/dist/auth.client.js +3 -3
- package/dist/auth.validation-29113f37.mjs +20 -0
- package/dist/categories-d669f3af.mjs +225 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +11 -11
- package/dist/events.client.js +9 -9
- package/dist/modules/icons/entities/IconCommunity.vue.d.ts +2 -0
- package/dist/organizations.client.cjs +2 -2
- package/dist/organizations.client.js +17 -17
- package/dist/organizations.server.js +1 -1
- package/dist/organizations.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +244 -207
- package/package.json +1 -1
- package/src/modules/icons/entities/IconCommunity.vue +8 -0
- package/src/modules/organizations/components/blocks/CardOrganization.vue +2 -2
- package/src/modules/organizations/components/sections/Publics.vue +1 -0
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/users/components/pages/Profile.vue +15 -4
package/package.json
CHANGED
@@ -0,0 +1,8 @@
|
|
1
|
+
<template>
|
2
|
+
<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<path d="M28.2899 50C24.4282 50.007 20.6332 48.9927 17.2899 47.06L12.5299 49.17C11.6317 49.567 10.6307 49.6695 9.67068 49.4627C8.71061 49.2558 7.84068 48.7503 7.1856 48.0186C6.53051 47.2869 6.12391 46.3666 6.02409 45.3896C5.92426 44.4126 6.13634 43.4291 6.62991 42.58L8.96991 38.58C6.65145 34.3531 5.78562 29.4816 6.50556 24.7147C7.22549 19.9478 9.49132 15.5493 12.9546 12.1956C16.418 8.84187 20.887 6.71863 25.6747 6.15233C30.4623 5.58604 35.3034 6.60805 39.4536 9.06121C43.6037 11.5144 46.8332 15.2629 48.6454 19.7303C50.4576 24.1977 50.7522 29.1367 49.4839 33.7879C48.2155 38.4391 45.4545 42.5448 41.6254 45.4739C37.7962 48.403 33.1109 49.9932 28.2899 50ZM17.4799 42.81C17.8631 42.811 18.238 42.9221 18.5599 43.13C22.2995 45.5441 26.7982 46.4939 31.1945 45.7975C35.5908 45.1011 39.5757 42.8075 42.3861 39.3558C45.1966 35.9041 46.6349 31.537 46.4258 27.0908C46.2167 22.6446 44.3748 18.4318 41.2529 15.2591C38.1309 12.0864 33.9483 10.1769 29.5061 9.89616C25.0638 9.61544 20.6741 10.9833 17.1776 13.7377C13.6811 16.4921 11.3235 20.4396 10.5563 24.8241C9.78918 29.2086 10.6664 33.722 13.0199 37.5C13.2068 37.8111 13.3055 38.1671 13.3055 38.53C13.3055 38.8929 13.2068 39.2489 13.0199 39.56L10.0899 44.56C10.0202 44.6791 9.99023 44.8174 10.0043 44.9547C10.0184 45.0919 10.0759 45.2212 10.1683 45.3237C10.2608 45.4262 10.3834 45.4966 10.5186 45.5247C10.6537 45.5528 10.7943 45.5371 10.9199 45.48L16.6699 43C16.9236 42.8806 17.1996 42.8159 17.4799 42.81Z" fill="white"/>
|
4
|
+
<path d="M28.2898 30C27.7594 30 27.2507 29.7893 26.8756 29.4142C26.5005 29.0391 26.2898 28.5304 26.2898 28C26.2898 27.4696 26.5005 26.9609 26.8756 26.5858C27.2507 26.2107 27.7594 26 28.2898 26C28.8202 26 29.3289 26.2107 29.704 26.5858C30.0791 26.9609 30.2898 27.4696 30.2898 28C30.2898 28.5304 30.0791 29.0391 29.704 29.4142C29.3289 29.7893 28.8202 30 28.2898 30Z" fill="white"/>
|
5
|
+
<path d="M20.2898 30C19.7594 30 19.2507 29.7893 18.8756 29.4142C18.5005 29.0391 18.2898 28.5304 18.2898 28C18.2898 27.4696 18.5005 26.9609 18.8756 26.5858C19.2507 26.2107 19.7594 26 20.2898 26C20.8202 26 21.3289 26.2107 21.704 26.5858C22.0791 26.9609 22.2898 27.4696 22.2898 28C22.2898 28.5304 22.0791 29.0391 21.704 29.4142C21.3289 29.7893 20.8202 30 20.2898 30Z" fill="white"/>
|
6
|
+
<path d="M36.2898 30C35.7594 30 35.2507 29.7893 34.8756 29.4142C34.5005 29.0391 34.2898 28.5304 34.2898 28C34.2898 27.4696 34.5005 26.9609 34.8756 26.5858C35.2507 26.2107 35.7594 26 36.2898 26C36.8202 26 37.3289 26.2107 37.704 26.5858C38.0791 26.9609 38.2898 27.4696 38.2898 28C38.2898 28.5304 38.0791 29.0391 37.704 29.4142C37.3289 29.7893 36.8202 30 36.2898 30Z" fill="white"/>
|
7
|
+
</svg>
|
8
|
+
</template>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
class="bg-grey radius-big o-hidden"
|
4
4
|
@click="$router.push({name: 'Organization', params: {_id: organization._id}})"
|
5
5
|
>
|
6
|
-
<div class="pd-medium
|
6
|
+
<div class="pd-medium flex-v-center flex-nowrap flex">
|
7
7
|
<img
|
8
8
|
v-if="organization.profile.photo && organization.profile.photo.length > 0"
|
9
9
|
:src="organization.profile.photo"
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<div class="mn-l-small">
|
19
19
|
<p class="h3 mn-r-semi mn-thin">{{organization.profile.name}}</p>
|
20
20
|
|
21
|
-
<div v-if="organization.
|
21
|
+
<div v-if="organization.ratingS" class="w-max star-container flex-v-center flex">
|
22
22
|
<span class="mn-r-thin pd-r-thin pd-l-thin pd-micro radius-small t-semi uppercase bg-main p-small">
|
23
23
|
{{organization.types[0]}}
|
24
24
|
</span>
|
@@ -26,6 +26,7 @@
|
|
26
26
|
import { onMounted, ref } from 'vue'
|
27
27
|
import CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'
|
28
28
|
import EmptyState from '@pf/src/components/EmptyState/EmptyState.vue'
|
29
|
+
|
29
30
|
import * as auth from '@pf/src/modules/auth/store/auth'
|
30
31
|
import * as organization from '@pf/src/modules/organizations/store/organizations'
|
31
32
|
import * as memberships from '@pf/src/modules/organizations/store/memberships'
|
@@ -53,7 +53,7 @@ const controllerFactory = (db) => {
|
|
53
53
|
...(req.query.member ? [{"memberships.user": new ObjectId(req.query.member), "memberships.role": { $ne: 'subscriber' } } ] : [] ),
|
54
54
|
...(req.query.subscriber ? [{"memberships.user": new ObjectId(req.query.subscriber), "memberships.role": 'subscriber'} ] : [] ),
|
55
55
|
...(req.query.postable ? [{$or: [{$and: [{ types: { $elemMatch: { $eq: 'public' } } }, { "memberships.user": new ObjectId(req.query.postable) } ] }, {$and: [{types: {$elemMatch: {$in: ['exclusive', 'hidden'] } } }, { "memberships.user": new ObjectId(req.query.postable) }, { "memberships.role": { $ne: 'subscriber' } } ] } ] } ] : [] ),
|
56
|
-
...(req.query.types ? [{ types: { $in: req.query.types
|
56
|
+
...(req.query.types ? [{ types: { $in: req.query.types } }] : []), // Если req.query.types - строка
|
57
57
|
// to remove
|
58
58
|
...(req.query.onlyuser ? [{ "memberships.user": new ObjectId(req.query.onlyuser) }] : []),
|
59
59
|
...(categories.length > 0 ? [{ "products.category": { $in: categories } }] : []),
|
@@ -7,7 +7,7 @@
|
|
7
7
|
class="pd-thin w-100"
|
8
8
|
>
|
9
9
|
<ProfileCompletion
|
10
|
-
v-if="route.params._id === auth.state.user._id"
|
10
|
+
v-if="route.params._id === auth.state.user._id && show"
|
11
11
|
:user="auth.state.user._id"
|
12
12
|
:target="users.state.current"
|
13
13
|
:cta="true"
|
@@ -91,6 +91,7 @@
|
|
91
91
|
<span>Groups</span>
|
92
92
|
</MenuItem>
|
93
93
|
<MenuItem @click="router.push({name: 'User Blogposts', params: {_id: route.params._id}})" class="cursor-pointer">
|
94
|
+
<IconCommunity class="i-semi" :icon="true"/>
|
94
95
|
<span>Posts</span>
|
95
96
|
</MenuItem>
|
96
97
|
</Menu>
|
@@ -121,7 +122,9 @@
|
|
121
122
|
</MenuItem>
|
122
123
|
|
123
124
|
<MenuItem
|
124
|
-
class="cursor-pointer"
|
125
|
+
class="cursor-pointer"
|
126
|
+
@click="logout()"
|
127
|
+
>
|
125
128
|
<span
|
126
129
|
class="t-red"
|
127
130
|
>
|
@@ -129,7 +132,7 @@
|
|
129
132
|
</span>
|
130
133
|
</MenuItem>
|
131
134
|
</Menu>
|
132
|
-
|
135
|
+
|
133
136
|
</div>
|
134
137
|
</div>
|
135
138
|
</template>
|
@@ -150,6 +153,7 @@ import ProfileCompletion from '@pf/src/modules/users/components/sections/Profile
|
|
150
153
|
// Icons Module
|
151
154
|
import IconEvents from '@pf/src/modules/icons/entities/IconEvents.vue'
|
152
155
|
import IconGroups from '@pf/src/modules/icons/entities/IconGroups.vue'
|
156
|
+
import IconCommunity from '@pf/src/modules/icons/entities/IconCommunity.vue'
|
153
157
|
|
154
158
|
import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
|
155
159
|
|
@@ -165,14 +169,21 @@ import * as memberships from '@pf/src/modules/organizations/store/memberships'
|
|
165
169
|
const route = useRoute()
|
166
170
|
const router = useRouter()
|
167
171
|
// Get organization _id from cookie
|
172
|
+
const show = ref(false)
|
168
173
|
|
169
|
-
|
174
|
+
onMounted(async () => {
|
170
175
|
await users.actions.read({ _id: route.params._id, user: auth.state.user._id });
|
176
|
+
show.value = true
|
171
177
|
})
|
172
178
|
|
173
179
|
const handleMembershipUpdate = ({ membership, isMember, targetId }) => {
|
174
180
|
memberships.mutations.handleMembershipUpdate(users.state.current, membership, isMember, targetId)
|
175
181
|
};
|
182
|
+
|
183
|
+
function logout () {
|
184
|
+
auth.actions.logout()
|
185
|
+
router.push({name: 'Sign In'})
|
186
|
+
}
|
176
187
|
</script>
|
177
188
|
|
178
189
|
<style lang="scss">
|