@ozdao/prometheus-framework 0.0.86 → 0.0.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js +1 -0
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs +1944 -0
  3. package/dist/CardOrganization-ee5c34ab.js +1 -0
  4. package/dist/CardOrganization-f70bd169.mjs +202 -0
  5. package/dist/Comments-63f154a6.js +9 -0
  6. package/dist/Comments-c5afa4d6.mjs +459 -0
  7. package/dist/Feed-51e4e232.js +1 -0
  8. package/dist/Feed-8fd41524.js +1 -0
  9. package/dist/Feed-dc8b66bf.mjs +367 -0
  10. package/dist/Feed-ecf37814.mjs +367 -0
  11. package/dist/IconEdit-736c89be.js +1 -0
  12. package/dist/IconEdit-e9fd4c6c.mjs +21 -0
  13. package/dist/Image-6c7584f5.mjs +477 -0
  14. package/dist/Image-9a870c88.js +9 -0
  15. package/dist/Popup-105ef2c3.js +1 -0
  16. package/dist/Popup-82fb2c8a.mjs +76 -0
  17. package/dist/Product-1724d88d.mjs +837 -0
  18. package/dist/Product-2f3d592f.mjs +837 -0
  19. package/dist/Product-2fbf9d99.js +7 -0
  20. package/dist/Product-a94d8b65.js +7 -0
  21. package/dist/ProductEdit-20709821.mjs +349 -0
  22. package/dist/ProductEdit-57484f1e.mjs +349 -0
  23. package/dist/ProductEdit-a81d13b9.js +1 -0
  24. package/dist/ProductEdit-ef301baa.js +1 -0
  25. package/dist/ProfileBlogposts-eca9916c.js +1 -0
  26. package/dist/ProfileBlogposts-fb014bc6.mjs +63 -0
  27. package/dist/ProfileComments-58094a50.mjs +43 -0
  28. package/dist/ProfileComments-b919f021.js +1 -0
  29. package/dist/ProfileEvents-05485e20.js +1 -0
  30. package/dist/ProfileEvents-1cfe6858.mjs +55 -0
  31. package/dist/ProfileEvents-5d206e3d.mjs +55 -0
  32. package/dist/ProfileEvents-d8e16509.js +1 -0
  33. package/dist/ProfileLikes-2f3a4488.js +1 -0
  34. package/dist/ProfileLikes-b5ac7f48.mjs +43 -0
  35. package/dist/ProfileOrganizations-0b76e38f.js +1 -0
  36. package/dist/ProfileOrganizations-32ab1e30.mjs +211 -0
  37. package/dist/Publics-3f277c17.js +1 -0
  38. package/dist/Publics-9ebffff1.mjs +122 -0
  39. package/dist/Tab-58cd105f.mjs +46 -0
  40. package/dist/Tab-6f0a4909.js +1 -0
  41. package/dist/UploadImage-441e8526.js +1 -0
  42. package/dist/UploadImage-ff8f9a0c.mjs +83 -0
  43. package/dist/auth.client.cjs +2 -2
  44. package/dist/auth.client.js +60 -40
  45. package/dist/community.client.cjs +1 -9
  46. package/dist/community.client.js +361 -750
  47. package/dist/community.server.js +16 -4
  48. package/dist/community.server.mjs +16 -4
  49. package/dist/events.client.cjs +1 -1
  50. package/dist/events.client.js +442 -321
  51. package/dist/events.server.js +96 -2
  52. package/dist/events.server.mjs +96 -2
  53. package/dist/inputs.validation-24ae76b9.js +1 -0
  54. package/dist/modules/constructor/components/elements/Bullets.vue.d.ts +15 -0
  55. package/dist/modules/constructor/components/elements/Caption.vue.d.ts +15 -0
  56. package/dist/modules/constructor/components/elements/H2.vue.d.ts +16 -0
  57. package/dist/modules/constructor/components/elements/Image.vue.d.ts +8 -0
  58. package/dist/modules/constructor/components/elements/ImageUpload.vue.d.ts +9 -0
  59. package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +12 -0
  60. package/dist/modules/constructor/components/sections/Constructor.vue.d.ts +7 -0
  61. package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -0
  62. package/dist/organizations-1b4c84ee.mjs +121 -0
  63. package/dist/organizations-af43bda4.js +1 -0
  64. package/dist/organizations.client-253c8068.mjs +3179 -0
  65. package/dist/organizations.client-686845be.mjs +3179 -0
  66. package/dist/organizations.client-99bfc474.js +3 -0
  67. package/dist/organizations.client-c60d7659.js +3 -0
  68. package/dist/organizations.client.cjs +1 -3
  69. package/dist/organizations.client.js +49 -3025
  70. package/dist/style.css +1 -1
  71. package/dist/users.client.cjs +1 -1
  72. package/dist/users.client.js +10 -10
  73. package/package.json +1 -1
  74. package/src/modules/auth/router/auth.js +28 -7
  75. package/src/modules/community/community.client.js +1 -12
  76. package/src/modules/community/components/pages/BlogPost.vue +1 -1
  77. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -151
  78. package/src/modules/community/middlewares/server/verifyBlogpost.js +24 -11
  79. package/src/modules/{community → constructor}/components/elements/Textarea.vue +3 -11
  80. package/src/modules/constructor/components/sections/Constructor.vue +167 -0
  81. package/src/modules/events/components/blocks/CardEvent.vue +15 -7
  82. package/src/modules/events/components/pages/EditEvent.vue +233 -133
  83. package/src/modules/events/components/pages/Event.vue +43 -4
  84. package/src/modules/events/components/sections/Feed.vue +7 -1
  85. package/src/modules/events/controllers/events.controller.js +9 -0
  86. package/src/modules/events/controllers/tickets.controller.js +2 -1
  87. package/src/modules/events/middlewares/server/index.js +10 -0
  88. package/src/modules/events/middlewares/server/verifyEvent.js +60 -0
  89. package/src/modules/events/models/event.model.js +10 -0
  90. package/src/modules/events/routes/events.routes.js +14 -1
  91. package/src/modules/events/store/events.js +15 -19
  92. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -3
  93. package/src/modules/organizations/components/sections/Publics.vue +2 -3
  94. package/src/modules/organizations/organizations.client.js +0 -2
  95. package/src/modules/users/components/pages/ProfileEvents.vue +3 -3
  96. package/src/modules/organizations/components/blocks/CardOrganizationSocial.vue +0 -46
  97. /package/src/modules/{community → constructor}/components/elements/Bullets.vue +0 -0
  98. /package/src/modules/{community → constructor}/components/elements/Caption.vue +0 -0
  99. /package/src/modules/{community → constructor}/components/elements/H2.vue +0 -0
  100. /package/src/modules/{community → constructor}/components/elements/Image.vue +0 -0
  101. /package/src/modules/{community → constructor}/components/elements/ImageUpload.vue +0 -0
@@ -27,12 +27,15 @@ const state = reactive({
27
27
  },
28
28
  current: {
29
29
  _id: "",
30
+ cover: "",
30
31
  url: "",
31
32
  status: "",
32
33
  name: "",
33
34
  tags: [],
34
- owner: {},
35
- date: "",
35
+ date: {
36
+ start: null,
37
+ false: null
38
+ },
36
39
  views: 0,
37
40
  content: [],
38
41
  }
@@ -77,6 +80,10 @@ async function read(options = {}) {
77
80
  if (options.owner) {
78
81
  options.params.owner = options.owner;
79
82
  }
83
+ // Creator
84
+ if (options.creator) {
85
+ options.params.creator = options.creator;
86
+ }
80
87
  // User
81
88
  if (options.user) {
82
89
  options.params.user = options.user;
@@ -156,30 +163,20 @@ function set(eventData, property) {
156
163
  function clean () {
157
164
  state.current = {
158
165
  _id: "",
166
+ cover: "",
159
167
  url: "",
160
168
  status: "",
161
169
  name: "",
162
170
  tags: [],
163
- author: "",
164
- owner: '',
165
- date: "",
171
+ date: {
172
+ start: null,
173
+ false: null
174
+ },
166
175
  views: 0,
167
176
  content: []
168
177
  }
169
178
  }
170
179
 
171
- // Actions
172
- function blockAdd (block) {
173
- const blockNew = {
174
- order: state.project.content.length + 1,
175
- type: block.type,
176
- data: block.data,
177
- class: block.class,
178
- content: block.content
179
- }
180
- state.project.content.push(blockNew)
181
- }
182
-
183
180
  const history = []
184
181
  history.push(state) // push initial state
185
182
 
@@ -192,8 +189,7 @@ export {
192
189
  read,
193
190
  create,
194
191
  update,
192
+ remove,
195
193
  set,
196
194
  clean,
197
- remove,
198
- blockAdd
199
195
  }
@@ -7,7 +7,7 @@
7
7
  <img
8
8
  v-if="organization.profile.photo && organization.profile.photo.length > 0"
9
9
  :src="organization.profile.photo"
10
- class="h-4r w-4r radius-extra"
10
+ class="h-4r w-4r radius-extra bg-main"
11
11
  />
12
12
 
13
13
  <svg v-else class="h-4r w-4r radius-extra" width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -50,8 +50,6 @@
50
50
  </div>
51
51
  </div>
52
52
 
53
-
54
-
55
53
  <div v-if="organization.products.length > 0" class="pd-medium">
56
54
  <div class="mn-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium">
57
55
  <p class="t-black p-medium t-semi">
@@ -7,7 +7,7 @@
7
7
  class="radius-big bg-grey pd-medium"
8
8
  />
9
9
 
10
- <div v-else class="w-max flex-nowrap flex">
10
+ <div v-else class="w-max gap-thin flex-nowrap flex">
11
11
  <CardOrganization
12
12
  v-if="publics"
13
13
  v-for="(organization,index) in publics"
@@ -15,8 +15,7 @@
15
15
  :organization="organization"
16
16
  :user="auth.state.user"
17
17
  @updateMembership="handleMembershipUpdate"
18
- class="flex-child-shrink-0 flex-child"
19
- :class="{'mn-r-small': index !== publics.length - 1}"
18
+ class="flex-child-1 flex-child w-100"
20
19
  />
21
20
  </div>
22
21
  </div>
@@ -7,7 +7,6 @@ import Organizations from './components/pages/Organizations.vue';
7
7
  import DepartmentEdit from './components/pages/DepartmentEdit.vue';
8
8
 
9
9
  import CardOrganization from './components/blocks/CardOrganization.vue';
10
- import CardOrganizationSocial from './components/blocks/CardOrganizationSocial.vue';
11
10
  import EditArray from './components/blocks/EditArray.vue';
12
11
  import User from './components/blocks/User.vue';
13
12
  import Unit from './components/blocks/Unit.vue';
@@ -50,7 +49,6 @@ export {
50
49
  Organizations,
51
50
  DepartmentEdit,
52
51
  CardOrganization,
53
- CardOrganizationSocial,
54
52
  EditArray,
55
53
  User,
56
54
  Unit,
@@ -13,7 +13,7 @@
13
13
 
14
14
  <button
15
15
  v-if="auth.state.user._id === route.params._id"
16
- @click="router.push({name: 'Create BlogPost'})"
16
+ @click="router.push({name: 'Create Event'})"
17
17
  class="radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
18
18
  >
19
19
  +
@@ -23,7 +23,7 @@
23
23
  <Tab
24
24
  v-model:selected="tabOrganization"
25
25
  :tabs="[
26
- { name: 'Owner', value: 'owner' },
26
+ { name: 'My', value: 'owner' },
27
27
  { name: 'Participant', value: 'participant' },
28
28
  ]"
29
29
  class="mn-small o-hidden h5 radius-big bg-grey"
@@ -32,7 +32,7 @@
32
32
  <Feed
33
33
  v-if="tabOrganization ==='owner'"
34
34
  :user="auth.state.user._id"
35
- :owner="route.params._id"
35
+ :creator="route.params._id"
36
36
  :sortOrder="'asc'"
37
37
  />
38
38
 
@@ -1,46 +0,0 @@
1
- <template>
2
- <div
3
- class="mn-small flex radius-medium bg-grey"
4
- >
5
- <div class="pd-medium w-100 flex-nowrap flex">
6
- <img v-if="organization.profile.photo && organization.profile.photo.length > 0" :src="organization.profile.photo" class="radius-medium i-thin" />
7
-
8
- <svg v-else class="radius-medium i-thin" width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
9
- <circle fill="rgb(var(--main))" cx="21" cy="21" r="21" />
10
- <path fill="#242424" fill-opacity="0.1" fill-rule="evenodd" clip-rule="evenodd" d="M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z" />
11
- </svg>
12
-
13
- <div @click="$router.push({name: 'Organization', params: {_id: organization._id}})" class=" mn-l-thin">
14
- <p class="w-max h4">{{ organization.profile.name.length > 16 ? organization.profile.name.substring(0, 10) + '...' : organization.profile.name }}</p>
15
- <p class="">{{organization.numberOfMemberships}} followers</p>
16
- </div>
17
- </div>
18
-
19
- <ButtonFollow
20
- v-if="user._id"
21
- :type="'organization'"
22
- :isMember="organization.isMember"
23
- :targetId="organization._id"
24
- :userId="user._id"
25
- class="radius-bl-big radius-br-big radius-tl-zero radius-tr-zero w-100"
26
- @updateMembership="emits('updateMembership', $event)"
27
- />
28
- </div>
29
- </template>
30
-
31
- <script setup>
32
- import { reactive } from 'vue'
33
- import { useRouter } from 'vue-router'
34
-
35
- import ButtonFollow from '@pf/src/modules/organizations/components/elements/ButtonFollow.vue'
36
-
37
- const emits = defineEmits(['updateMembership'])
38
-
39
- const props = defineProps({
40
- organization: Object,
41
- user: Object,
42
- });
43
-
44
-
45
- const router = useRouter()
46
- </script>