@ozdao/prometheus-framework 0.0.85 → 0.0.87

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) 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-628f013e.mjs +138 -0
  3. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs +1944 -0
  4. package/dist/ButtonFollow-728aab73.mjs +130 -0
  5. package/dist/CardHeader-ce5a1a75.mjs +96 -0
  6. package/dist/CardOrganization-58b54995.js +1 -0
  7. package/dist/CardOrganization-91e79698.mjs +320 -0
  8. package/dist/CardOrganization-ee5c34ab.js +1 -0
  9. package/dist/CardOrganization-f70bd169.mjs +202 -0
  10. package/dist/Comments-63f154a6.js +9 -0
  11. package/dist/Comments-c092550f.mjs +76 -0
  12. package/dist/Comments-c5afa4d6.mjs +459 -0
  13. package/dist/EditProductImages-61ff4321.mjs +236 -0
  14. package/dist/Feed-8fd41524.js +1 -0
  15. package/dist/Feed-926cf4f3.mjs +355 -0
  16. package/dist/Feed-a31c43c2.mjs +423 -0
  17. package/dist/Feed-ecf37814.mjs +367 -0
  18. package/dist/IconEdit-736c89be.js +1 -0
  19. package/dist/IconEdit-e9fd4c6c.mjs +21 -0
  20. package/dist/PlaceholderUserpic-995da0fc.mjs +28 -0
  21. package/dist/Popup-0c791801.mjs +76 -0
  22. package/dist/Popup-105ef2c3.js +1 -0
  23. package/dist/Popup-82fb2c8a.mjs +76 -0
  24. package/dist/Product-2f3d592f.mjs +837 -0
  25. package/dist/Product-2fbf9d99.js +7 -0
  26. package/dist/Product-6c37ef35.js +7 -0
  27. package/dist/Product-7087b358.mjs +837 -0
  28. package/dist/ProductEdit-20709821.mjs +349 -0
  29. package/dist/ProductEdit-a81d13b9.js +1 -0
  30. package/dist/ProductEdit-c5067942.mjs +113 -0
  31. package/dist/ProfileBlogposts-79d5c858.mjs +63 -0
  32. package/dist/ProfileBlogposts-eca9916c.js +1 -0
  33. package/dist/ProfileBlogposts-fb014bc6.mjs +63 -0
  34. package/dist/ProfileComments-48f3d4bc.mjs +43 -0
  35. package/dist/ProfileComments-58094a50.mjs +43 -0
  36. package/dist/ProfileComments-b919f021.js +1 -0
  37. package/dist/ProfileEvents-05485e20.js +1 -0
  38. package/dist/ProfileEvents-20695376.mjs +55 -0
  39. package/dist/ProfileEvents-5d206e3d.mjs +55 -0
  40. package/dist/ProfileLikes-2f3a4488.js +1 -0
  41. package/dist/ProfileLikes-503712ec.mjs +43 -0
  42. package/dist/ProfileLikes-b5ac7f48.mjs +43 -0
  43. package/dist/ProfileOrganizations-0b76e38f.js +1 -0
  44. package/dist/ProfileOrganizations-32ab1e30.mjs +211 -0
  45. package/dist/ProfileOrganizations-3f305f4e.mjs +210 -0
  46. package/dist/ProfileOrganizations-50fce34e.js +1 -0
  47. package/dist/Publics-3f277c17.js +1 -0
  48. package/dist/Publics-49dbeafc.js +1 -0
  49. package/dist/Publics-9ebffff1.mjs +122 -0
  50. package/dist/Publics-b0fad2b0.mjs +1926 -0
  51. package/dist/Tab-58cd105f.mjs +46 -0
  52. package/dist/Tab-6f0a4909.js +1 -0
  53. package/dist/UploadImage-441e8526.js +1 -0
  54. package/dist/UploadImage-d1dbc280.mjs +99 -0
  55. package/dist/UploadImage-ff8f9a0c.mjs +83 -0
  56. package/dist/auth-35ef1791.mjs +1502 -0
  57. package/dist/auth.client.cjs +2 -2
  58. package/dist/auth.client.js +61 -41
  59. package/dist/auth.validation-29113f37.mjs +20 -0
  60. package/dist/categories-d669f3af.mjs +225 -0
  61. package/dist/community.client.cjs +1 -9
  62. package/dist/community.client.js +369 -741
  63. package/dist/community.server.js +16 -4
  64. package/dist/community.server.mjs +16 -4
  65. package/dist/events.client.cjs +1 -1
  66. package/dist/events.client.js +433 -331
  67. package/dist/events.server.js +19 -2
  68. package/dist/events.server.mjs +19 -2
  69. package/dist/inputs.validation-24ae76b9.js +1 -0
  70. package/dist/modules/constructor/components/elements/Bullets.vue.d.ts +15 -0
  71. package/dist/modules/constructor/components/elements/Caption.vue.d.ts +15 -0
  72. package/dist/modules/constructor/components/elements/H2.vue.d.ts +16 -0
  73. package/dist/modules/constructor/components/elements/Image.vue.d.ts +8 -0
  74. package/dist/modules/constructor/components/elements/ImageUpload.vue.d.ts +9 -0
  75. package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +12 -0
  76. package/dist/modules/constructor/components/sections/Constructor.vue.d.ts +7 -0
  77. package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -0
  78. package/dist/modules/icons/entities/IconCommunity.vue.d.ts +2 -0
  79. package/dist/organizations-1b4c84ee.mjs +121 -0
  80. package/dist/organizations-af43bda4.js +1 -0
  81. package/dist/organizations.client-253c8068.mjs +3179 -0
  82. package/dist/organizations.client-c60d7659.js +3 -0
  83. package/dist/organizations.client.cjs +1 -3
  84. package/dist/organizations.client.js +50 -3026
  85. package/dist/organizations.server.js +1 -1
  86. package/dist/organizations.server.mjs +1 -1
  87. package/dist/style.css +1 -1
  88. package/dist/users.client.cjs +1 -1
  89. package/dist/users.client.js +245 -208
  90. package/package.json +1 -1
  91. package/src/modules/auth/router/auth.js +28 -7
  92. package/src/modules/community/community.client.js +1 -12
  93. package/src/modules/community/components/pages/BlogPost.vue +1 -1
  94. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -151
  95. package/src/modules/community/middlewares/server/verifyBlogpost.js +24 -11
  96. package/src/modules/{community → constructor}/components/elements/Textarea.vue +3 -11
  97. package/src/modules/constructor/components/sections/Constructor.vue +167 -0
  98. package/src/modules/events/components/blocks/CardEvent.vue +14 -6
  99. package/src/modules/events/components/pages/EditEvent.vue +228 -133
  100. package/src/modules/events/components/sections/Feed.vue +7 -1
  101. package/src/modules/events/controllers/events.controller.js +9 -0
  102. package/src/modules/events/controllers/tickets.controller.js +2 -1
  103. package/src/modules/events/models/event.model.js +10 -0
  104. package/src/modules/events/store/events.js +15 -19
  105. package/src/modules/icons/entities/IconCommunity.vue +8 -0
  106. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -5
  107. package/src/modules/organizations/components/sections/Publics.vue +3 -3
  108. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  109. package/src/modules/organizations/organizations.client.js +0 -2
  110. package/src/modules/users/components/pages/Profile.vue +15 -4
  111. package/src/modules/users/components/pages/ProfileEvents.vue +3 -3
  112. package/src/modules/organizations/components/blocks/CardOrganizationSocial.vue +0 -46
  113. /package/src/modules/{community → constructor}/components/elements/Bullets.vue +0 -0
  114. /package/src/modules/{community → constructor}/components/elements/Caption.vue +0 -0
  115. /package/src/modules/{community → constructor}/components/elements/H2.vue +0 -0
  116. /package/src/modules/{community → constructor}/components/elements/Image.vue +0 -0
  117. /package/src/modules/{community → constructor}/components/elements/ImageUpload.vue +0 -0
@@ -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
- onMounted(async () => {
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">
@@ -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>