@ozdao/prometheus-framework 0.0.96 → 0.0.98

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/dist/Chips-32092a52.js +1 -0
  2. package/dist/Chips-cc08d85a.mjs +108 -0
  3. package/dist/Feed-0dbe15b9.js +1 -0
  4. package/dist/Feed-44f715a7.mjs +439 -0
  5. package/dist/Feed-4df9352b.js +1 -0
  6. package/dist/Feed-67f403fb.mjs +366 -0
  7. package/dist/Feed-6fd26cb4.mjs +367 -0
  8. package/dist/Feed-8a867bfc.js +1 -0
  9. package/dist/Feed-c88eb3aa.js +1 -0
  10. package/dist/Feed-e9bddb71.mjs +439 -0
  11. package/dist/Image-3fee8409.mjs +477 -0
  12. package/dist/Image-d5c4d8d9.js +9 -0
  13. package/dist/Image-d74c19ee.mjs +477 -0
  14. package/dist/Image-fd501859.js +9 -0
  15. package/dist/Product-09a39f0b.js +7 -0
  16. package/dist/Product-943b64bb.mjs +838 -0
  17. package/dist/Product-abf86516.js +7 -0
  18. package/dist/Product-b7c53f33.mjs +838 -0
  19. package/dist/ProductEdit-3d7f2823.js +1 -0
  20. package/dist/ProductEdit-ba3fef8c.mjs +350 -0
  21. package/dist/ProductEdit-e71dbe52.js +1 -0
  22. package/dist/ProductEdit-e827ea38.mjs +350 -0
  23. package/dist/ProfileBlogposts-5c0f3b58.js +1 -0
  24. package/dist/ProfileBlogposts-5c6ab74a.mjs +64 -0
  25. package/dist/ProfileBlogposts-6f80b734.mjs +64 -0
  26. package/dist/ProfileBlogposts-e3ea2c82.js +1 -0
  27. package/dist/ProfileComments-0d22a8ec.js +1 -0
  28. package/dist/ProfileComments-12b51ae3.js +1 -0
  29. package/dist/ProfileComments-c7230f42.mjs +44 -0
  30. package/dist/ProfileComments-d6779ee2.mjs +44 -0
  31. package/dist/ProfileEvents-2f22e7cf.mjs +56 -0
  32. package/dist/ProfileEvents-c9aa3d41.mjs +56 -0
  33. package/dist/ProfileEvents-cc65404c.js +1 -0
  34. package/dist/ProfileEvents-d0c5e3dc.js +1 -0
  35. package/dist/ProfileLikes-05911934.mjs +44 -0
  36. package/dist/ProfileLikes-c068c6c6.js +1 -0
  37. package/dist/ProfileLikes-e4fa0792.mjs +44 -0
  38. package/dist/ProfileLikes-fa41bad0.js +1 -0
  39. package/dist/ProfileOrganizations-cef668b5.mjs +212 -0
  40. package/dist/ProfileOrganizations-d4ec181b.js +1 -0
  41. package/dist/community.client.cjs +1 -1
  42. package/dist/community.client.js +15 -7
  43. package/dist/events.client.cjs +2 -1
  44. package/dist/events.client.js +8656 -410
  45. package/dist/main.css +1 -1
  46. package/dist/organizations.client-723ebb3b.js +3 -0
  47. package/dist/organizations.client-7e51b4a8.js +3 -0
  48. package/dist/organizations.client-bf73e73d.mjs +3017 -0
  49. package/dist/organizations.client-f4dff584.mjs +3017 -0
  50. package/dist/organizations.client.cjs +1 -1
  51. package/dist/organizations.client.js +4 -4
  52. package/dist/style.css +1 -1
  53. package/dist/users.client.cjs +1 -1
  54. package/dist/users.client.js +152 -159
  55. package/package.json +2 -1
  56. package/src/components/Chips/Chips.vue +1 -2
  57. package/src/modules/backoffice/components/pages/Organizations.vue +1 -1
  58. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -2
  59. package/src/modules/community/components/layouts/Community.vue +2 -2
  60. package/src/modules/community/components/pages/Blog.vue +1 -1
  61. package/src/modules/community/router/blogposts.js +9 -1
  62. package/src/modules/events/components/blocks/CardEvent.vue +6 -2
  63. package/src/modules/events/components/pages/EditEvent.vue +50 -32
  64. package/src/modules/events/router/events.js +9 -1
  65. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  66. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  67. package/src/modules/organizations/components/pages/OrganizationsAccount.vue +1 -1
  68. package/src/modules/organizations/components/sections/Organizations.vue +1 -1
  69. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  70. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  71. package/src/modules/users/components/pages/ProfileEdit.vue +3 -3
  72. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  73. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  74. package/src/modules/users/components/pages/ProfileOrganizations.vue +1 -1
  75. package/src/modules/users/router/users.js +10 -7
  76. package/src/styles/layout.scss +0 -1
@@ -1,12 +1,11 @@
1
1
  <template>
2
2
  <div
3
- class="flex-v-center flex-nowrap flex"
3
+ class="flex-v-center gap-thin flex"
4
4
  >
5
5
  <div
6
6
  v-if="chips.length"
7
7
  v-for="(chip,index) in chips"
8
8
  class="pd-thin radius-small t-semi bg-main"
9
- :class="{'mn-r-thin': index !== chips.length - 1}"
10
9
  >
11
10
  {{chip.text ? chip.text : chip}}
12
11
  </div>
@@ -76,7 +76,7 @@
76
76
  route.query.tab = tabOrganization.value
77
77
 
78
78
  watch(tabOrganization, (newValue) => {
79
- router.push({ query: { ...route.query, tab: newValue } });
79
+ router.replace({ query: { ...route.query, tab: newValue } });
80
80
  });
81
81
  </script>
82
82
 
@@ -1,9 +1,8 @@
1
1
  <template>
2
2
  <article
3
- class="bg-grey radius-big"
3
+ class="pos-relative bg-grey radius-big"
4
4
  >
5
5
 
6
-
7
6
  <IconEdit
8
7
  v-if="user === blogpost.creator.target._id"
9
8
  @click.stop="$router.push({
@@ -23,8 +23,8 @@
23
23
  </h2>
24
24
  </header>
25
25
 
26
- <ul class="bg-grey pd-medium radius-big mn-semi flex-nowrap flex">
27
- <li
26
+ <ul class="w-max bg-grey pd-medium radius-big mn-semi flex-nowrap flex">
27
+ <li
28
28
  :class="{'t-white bg-black': route.params.category === 'featured' }"
29
29
  @click="router.push({name: 'Blog'})"
30
30
  class="mn-r-small t-medium pd-small radius-small">👑 Featured</li>
@@ -66,7 +66,7 @@
66
66
  Object.assign(query, newQueryValues);
67
67
 
68
68
  // Обновляем маршрут с новым query
69
- router.push({ query });
69
+ router.replace({ query });
70
70
  }, { deep: true })
71
71
  </script>
72
72
 
@@ -8,11 +8,19 @@ const community = [
8
8
  title: {
9
9
  en: 'Community',
10
10
  ru: 'Коммьюнити'
11
- }
11
+ },
12
+ title_hide: true
12
13
  },
13
14
  children: [{
14
15
  path: ':category?',
15
16
  name: 'Blog',
17
+ meta: {
18
+ title: {
19
+ en: 'Community',
20
+ ru: 'Коммьюнити'
21
+ },
22
+ title_hide: true
23
+ },
16
24
  component: () => import(/* webpackChunkName: 'Blog' */ '../components/pages/Blog.vue')
17
25
  }]
18
26
  },{
@@ -3,6 +3,7 @@
3
3
  :class="{
4
4
  'flex-nowrap flex-v-center flex': type === 'short'
5
5
  }"
6
+ class="pos-relative"
6
7
  >
7
8
  <CardHeader
8
9
  :class="{
@@ -21,7 +22,7 @@
21
22
 
22
23
  <div
23
24
  v-if="event.cover && type !== 'short'"
24
- class="o-hidden bg-grey mn-small w-100"
25
+ class="o-hidden pos-relative bg-grey mn-small w-100"
25
26
  >
26
27
  <img
27
28
  :src="(FILE_SERVER_URL || '') + event.cover"
@@ -41,7 +42,7 @@
41
42
  </div>
42
43
 
43
44
  <section
44
- class="w-100"
45
+ class="pos-relative w-100"
45
46
  :class="{'pd-t-zero pd-medium': type !== 'short'}"
46
47
  >
47
48
 
@@ -196,6 +197,9 @@
196
197
 
197
198
  // Computed property for time range
198
199
  const formattedTimeRange = computed(() => {
200
+
201
+ console.log(props.event.date.start)
202
+ console.log(props.event.date.end)
199
203
  const start = new Date(props.event.date.start);
200
204
  const end = new Date(props.event.date.end);
201
205
 
@@ -22,22 +22,8 @@
22
22
  />
23
23
 
24
24
  <h3 class="mn-small">Date</h3>
25
- {{event.date.start}}
26
- <Field
27
- v-model:field="event.date.start"
28
- label="Start"
29
- type="datetime-local"
30
- placeholder="Not specified"
31
- class="mn-thin w-100 bg-grey pd-medium radius-small"
32
- />
25
+ <VueDatePicker v-model="date" range />
33
26
 
34
- <Field
35
- v-model:field="event.date.end"
36
- label="End"
37
- type="datetime-local"
38
- placeholder="Not specified"
39
- class="mn-thin w-100 bg-grey pd-medium radius-small"
40
- />
41
27
 
42
28
  <h3 class="mn-small">Description</h3>
43
29
  <section v-if="event" class="pd-b-extra w-100 bg-grey pd-big radius-big">
@@ -99,6 +85,9 @@
99
85
  import Textarea from '@pf/src/modules/constructor/components/elements/Textarea.vue';
100
86
  import Constructor from '@pf/src/modules/constructor/components/sections/Constructor.vue';
101
87
 
88
+ import VueDatePicker from '@vuepic/vue-datepicker';
89
+ import '@vuepic/vue-datepicker/dist/main.css'
90
+
102
91
  import Popup from '@pf/src/components/Popup/Popup.vue';
103
92
  import Field from '@pf/src/components/Field/Field.vue'
104
93
  import BlockTags from '@pf/src/components/FieldTags/BlockTags.vue';
@@ -123,18 +112,28 @@ let publics = ref(null);
123
112
  const selectedTags = ref([]);
124
113
  const selectedOrganization = ref(null);
125
114
 
115
+
116
+ const date = ref();
117
+
118
+
126
119
  onMounted(async () =>{
127
120
 
128
121
  if (route.params.url) {
129
122
  const data = await events.read({ user: auth.state.user._id, url: route.params.url });
130
123
  event.value = data.pop();
131
124
 
132
- event.value.date.start = event.value.date.start.slice(0, 16);
133
- event.value.date.end = event.value.date.end.slice(0, 16);
125
+ const startDate = event.value.date.start;
126
+ const endDate = event.value.date.end;
127
+
128
+ date.value = [startDate, endDate];
134
129
 
135
130
  } else {
136
131
  events.clean();
137
132
  event.value = events.state.current;
133
+
134
+ const startDate = new Date();
135
+ const endDate = new Date();
136
+ date.value = [startDate, endDate];
138
137
  }
139
138
 
140
139
  if (!event.value.owner) event.value.owner = {
@@ -181,6 +180,11 @@ function onDrafts() {
181
180
  if (selectedTags.value.length > 0) selectedTags.value.map(tag => (tag.text))
182
181
 
183
182
  event.value.status = "draft"
183
+
184
+ event.value.date = {
185
+ start: date.value.startDate,
186
+ end: date.value.endDate
187
+ }
184
188
 
185
189
  if (route.params.url) {
186
190
  events.update(event.value)
@@ -201,18 +205,6 @@ function onDrafts() {
201
205
  }
202
206
  }
203
207
 
204
- function onDelete() {
205
- if (confirm('Are you sure you want to delete this event?')) {
206
- events.delete(event.value._id)
207
- .then(response => {
208
- router.push({ name: 'Drafts' });
209
- })
210
- .catch(error => {
211
- console.error(error);
212
- })
213
- }
214
- }
215
-
216
208
  function onSubmit() {
217
209
 
218
210
  if (selectedOrganization.value) event.value.owner = {
@@ -225,11 +217,16 @@ function onSubmit() {
225
217
 
226
218
  event.value.status = "published"
227
219
 
228
- console.log(event.value)
220
+ event.value.date = {
221
+ start: date.value[0],
222
+ end: date.value[1]
223
+ }
224
+
225
+ console.log(date.value)
229
226
  if (route.params.url) {
230
227
  events.update(event.value)
231
228
  .then(response => {
232
- router.push({ name: 'Blogevent', params: { url: response.url } });
229
+ router.push({ name: 'Event', params: { url: response.url } });
233
230
  })
234
231
  .catch(error => {
235
232
  console.log(error);
@@ -244,4 +241,25 @@ function onSubmit() {
244
241
  });
245
242
  }
246
243
  }
247
- </script>
244
+
245
+ function onDelete() {
246
+ if (confirm('Are you sure you want to delete this event?')) {
247
+ events.delete(event.value._id)
248
+ .then(response => {
249
+ router.push({ name: 'Drafts' });
250
+ })
251
+ .catch(error => {
252
+ console.error(error);
253
+ })
254
+ }
255
+ }
256
+ </script>
257
+
258
+ <style lang="scss">
259
+ .dp__input {
260
+ border: 0;
261
+ padding: var(--medium);
262
+ padding-left: 3rem;
263
+ background: rgb(var(--grey))
264
+ }
265
+ </style>
@@ -8,11 +8,19 @@ const eventsRoutes = [
8
8
  title: {
9
9
  en: 'Events',
10
10
  ru: 'События'
11
- }
11
+ },
12
+ title_hide: true
12
13
  },
13
14
  children: [{
14
15
  path: ':category?',
15
16
  name: 'Events',
17
+ meta: {
18
+ title: {
19
+ en: 'Events',
20
+ ru: 'События'
21
+ },
22
+ title_hide: true
23
+ },
16
24
  component: () => import(/* webpackChunkName: 'EventList' */ '../components/pages/Events.vue')
17
25
  }]
18
26
  },{
@@ -130,7 +130,7 @@
130
130
  route.query.tab = tabOrganization.value
131
131
 
132
132
  watch(tabOrganization, (newValue) => {
133
- router.push({ query: { ...route.query, tab: newValue } });
133
+ router.replace({ query: { ...route.query, tab: newValue } });
134
134
  });
135
135
  // Get organization _id from cookie
136
136
  // Async requests
@@ -80,7 +80,7 @@
80
80
  route.query.tab = tabOrganization.value
81
81
 
82
82
  watch(tabOrganization, (newValue) => {
83
- router.push({ query: { ...route.query, tab: newValue } });
83
+ router.replace({ query: { ...route.query, tab: newValue } });
84
84
  });
85
85
  </script>
86
86
 
@@ -82,7 +82,7 @@
82
82
  route.query.tab = tabOrganization.value
83
83
 
84
84
  watch(tabOrganization, (newValue) => {
85
- router.push({ query: { ...route.query, tab: newValue } });
85
+ router.replace({ query: { ...route.query, tab: newValue } });
86
86
  });
87
87
  </script>
88
88
 
@@ -78,7 +78,7 @@
78
78
  route.query.tab = tabOrganization.value
79
79
 
80
80
  watch(tabOrganization, (newValue) => {
81
- router.push({ query: { ...route.query, tab: newValue } });
81
+ router.replace({ query: { ...route.query, tab: newValue } });
82
82
  });
83
83
  </script>
84
84
 
@@ -63,6 +63,6 @@
63
63
  route.query.tab = tabOrganization.value
64
64
 
65
65
  watch(tabOrganization, (newValue) => {
66
- router.push({ query: { ...route.query, tab: newValue } });
66
+ router.replace({ query: { ...route.query, tab: newValue } });
67
67
  });
68
68
  </script>
@@ -38,6 +38,6 @@
38
38
  route.query.tab = tabOrganization.value
39
39
 
40
40
  watch(tabOrganization, (newValue) => {
41
- router.push({ query: { ...route.query, tab: newValue } });
41
+ router.replace({ query: { ...route.query, tab: newValue } });
42
42
  });
43
43
  </script>
@@ -44,12 +44,12 @@
44
44
  v-model:field="user.profile.description"
45
45
  label="Description"
46
46
  placeholder="Not specified"
47
- class="mn-thin bg-grey pd-medium radius-small"
47
+ class="mn-semi bg-grey pd-medium radius-small"
48
48
  disabled="true"
49
49
  :validation="organizationName"
50
50
  />
51
51
 
52
- <p class="mn-thin">Select your birthday if you want to receive your birthday gift.</p>
52
+ <!-- <p class="mn-thin">Select your birthday if you want to receive your birthday gift.</p>
53
53
 
54
54
  <Field
55
55
  v-model:field="user.birthday"
@@ -58,7 +58,7 @@
58
58
  placeholder="Not specified"
59
59
  class="mn-semi bg-grey pd-medium radius-small"
60
60
  :validation="organizationName"
61
- />
61
+ /> -->
62
62
  <h3 class="mn-small">Socials</h3>
63
63
  <p class="mn-thin">Please provide only the username for social media profiles, without full links.</p>
64
64
 
@@ -64,6 +64,6 @@
64
64
  route.query.tab = tabOrganization.value
65
65
 
66
66
  watch(tabOrganization, (newValue) => {
67
- router.push({ query: { ...route.query, tab: newValue } });
67
+ router.replace({ query: { ...route.query, tab: newValue } });
68
68
  });
69
69
  </script>
@@ -38,6 +38,6 @@
38
38
  route.query.tab = tabOrganization.value
39
39
 
40
40
  watch(tabOrganization, (newValue) => {
41
- router.push({ query: { ...route.query, tab: newValue } });
41
+ router.replace({ query: { ...route.query, tab: newValue } });
42
42
  });
43
43
  </script>
@@ -58,6 +58,6 @@
58
58
  route.query.tab = tabOrganization.value
59
59
 
60
60
  watch(tabOrganization, (newValue) => {
61
- router.push({ query: { ...route.query, tab: newValue } });
61
+ router.replace({ query: { ...route.query, tab: newValue } });
62
62
  });
63
63
  </script>
@@ -34,18 +34,21 @@ const users = [{
34
34
  },{
35
35
  path: 'profile/:_id/edit',
36
36
  name: 'User Edit Profile',
37
- meta: {
38
- title: {
39
- en: 'Edit Profile',
40
- ru: 'Редактировать Профиль'
41
- }
42
- },
37
+ meta: {
38
+ title: {
39
+ en: 'Edit Profile',
40
+ ru: 'Редактировать Профиль'
41
+ }
42
+ },
43
43
  component: () => import(/* webpackChunkName: "profile" */ '../components/pages/ProfileEdit.vue'),
44
44
  },{
45
45
  path: 'profile/:_id/events',
46
46
  name: 'User Events',
47
47
  meta: {
48
- title: 'Профиль',
48
+ title: {
49
+ en: 'Events',
50
+ ru: 'События'
51
+ }
49
52
  },
50
53
  component: () => import(/* webpackChunkName: "profile" */ '../components/pages/ProfileEvents.vue'),
51
54
  },{
@@ -1,6 +1,5 @@
1
1
  * {
2
2
  box-sizing: border-box;
3
- position: relative;
4
3
  }
5
4
 
6
5
  *[disabled] {