@ozdao/prometheus-framework 0.0.95 → 0.0.97

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. package/dist/CardOrganization-1b0da77c.mjs +230 -0
  2. package/dist/CardOrganization-43e80590.js +1 -0
  3. package/dist/Chips-32092a52.js +1 -0
  4. package/dist/Chips-4316f652.mjs +110 -0
  5. package/dist/Chips-92ccc11f.js +1 -0
  6. package/dist/Chips-cc08d85a.mjs +108 -0
  7. package/dist/Feed-361761f5.mjs +366 -0
  8. package/dist/Feed-44f715a7.mjs +439 -0
  9. package/dist/Feed-67f403fb.mjs +366 -0
  10. package/dist/Feed-8a867bfc.js +1 -0
  11. package/dist/Feed-8acc6844.js +1 -0
  12. package/dist/Feed-8f6eb29d.mjs +439 -0
  13. package/dist/Feed-c88eb3aa.js +1 -0
  14. package/dist/Feed-c8dc4359.js +1 -0
  15. package/dist/IconEdit-4cfe2115.js +1 -0
  16. package/dist/IconEdit-eacf3856.mjs +44 -0
  17. package/dist/Image-661e2fbc.mjs +477 -0
  18. package/dist/Image-d74c19ee.mjs +477 -0
  19. package/dist/Image-f66dbbf4.js +9 -0
  20. package/dist/Image-fd501859.js +9 -0
  21. package/dist/Product-09a39f0b.js +7 -0
  22. package/dist/Product-601a9d5b.mjs +838 -0
  23. package/dist/Product-b7c53f33.mjs +838 -0
  24. package/dist/Product-f017e6cd.js +7 -0
  25. package/dist/ProductEdit-3d7f2823.js +1 -0
  26. package/dist/ProductEdit-dae66a53.js +1 -0
  27. package/dist/ProductEdit-e827ea38.mjs +350 -0
  28. package/dist/ProductEdit-fa0117b6.mjs +350 -0
  29. package/dist/ProfileBlogposts-69beaa14.js +1 -0
  30. package/dist/ProfileBlogposts-6f80b734.mjs +64 -0
  31. package/dist/ProfileBlogposts-92c4addb.mjs +64 -0
  32. package/dist/ProfileBlogposts-e3ea2c82.js +1 -0
  33. package/dist/ProfileComments-0d22a8ec.js +1 -0
  34. package/dist/ProfileComments-bae499e9.js +1 -0
  35. package/dist/ProfileComments-c7230f42.mjs +44 -0
  36. package/dist/ProfileComments-cdaccefe.mjs +44 -0
  37. package/dist/ProfileEvents-2f22e7cf.mjs +56 -0
  38. package/dist/ProfileEvents-3089a526.mjs +56 -0
  39. package/dist/ProfileEvents-cc65404c.js +1 -0
  40. package/dist/ProfileEvents-e62e76cf.js +1 -0
  41. package/dist/ProfileLikes-6cf19687.js +1 -0
  42. package/dist/ProfileLikes-75215d15.mjs +44 -0
  43. package/dist/ProfileLikes-e4fa0792.mjs +44 -0
  44. package/dist/ProfileLikes-fa41bad0.js +1 -0
  45. package/dist/ProfileOrganizations-55914b43.js +1 -0
  46. package/dist/ProfileOrganizations-cef668b5.mjs +212 -0
  47. package/dist/ProfileOrganizations-d4ec181b.js +1 -0
  48. package/dist/ProfileOrganizations-ec908108.mjs +212 -0
  49. package/dist/Publics-6b7c97bd.js +1 -0
  50. package/dist/Publics-abbe2e0c.mjs +123 -0
  51. package/dist/Socials-8193477c.mjs +189 -0
  52. package/dist/Socials-821bd677.js +1 -0
  53. package/dist/UploadImage-1b4c2a5e.mjs +83 -0
  54. package/dist/UploadImage-39d42048.js +1 -0
  55. package/dist/community.client.cjs +1 -1
  56. package/dist/community.client.js +18 -10
  57. package/dist/components/Text/Text.vue.d.ts +1 -0
  58. package/dist/components/Text/Text.vue.d.ts.map +1 -1
  59. package/dist/events.client.cjs +1 -1
  60. package/dist/events.client.js +41 -33
  61. package/dist/landing.client.cjs +1 -1
  62. package/dist/landing.client.js +38 -38
  63. package/dist/main.css +1 -1
  64. package/dist/organizations.client-723ebb3b.js +3 -0
  65. package/dist/organizations.client-8aa34e80.mjs +3017 -0
  66. package/dist/organizations.client-b0878617.js +3 -0
  67. package/dist/organizations.client-f4dff584.mjs +3017 -0
  68. package/dist/organizations.client.cjs +1 -1
  69. package/dist/organizations.client.js +9 -9
  70. package/dist/prometheus-framework.cjs.js +2 -2
  71. package/dist/prometheus-framework.es.js +4 -3
  72. package/dist/style.css +1 -1
  73. package/dist/users.client.cjs +1 -1
  74. package/dist/users.client.js +49 -46
  75. package/package.json +1 -1
  76. package/src/components/CardHeader/CardHeader.vue +2 -2
  77. package/src/components/Chips/Chips.vue +1 -2
  78. package/src/components/Magnifier/Magnifier.vue +1 -1
  79. package/src/components/Text/Text.vue +4 -3
  80. package/src/components/UploadImage/UploadImage.vue +8 -1
  81. package/src/modules/backoffice/components/pages/Organizations.vue +2 -2
  82. package/src/modules/community/components/blocks/CardBlogpost.vue +16 -1
  83. package/src/modules/community/components/layouts/Community.vue +2 -2
  84. package/src/modules/community/components/pages/Blog.vue +1 -1
  85. package/src/modules/community/router/blogposts.js +9 -1
  86. package/src/modules/constructor/components/elements/Image.vue +1 -1
  87. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  88. package/src/modules/events/components/blocks/CardEvent.vue +18 -6
  89. package/src/modules/events/components/elements/ButtonJoin.vue +1 -1
  90. package/src/modules/events/router/events.js +9 -1
  91. package/src/modules/landing/components/sections/MobileApp.vue +1 -1
  92. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
  93. package/src/modules/orders/components/blocks/Positions.vue +2 -2
  94. package/src/modules/organizations/components/blocks/CardOrganization.vue +5 -5
  95. package/src/modules/organizations/components/blocks/DepartmentSub.vue +1 -1
  96. package/src/modules/organizations/components/blocks/User.vue +1 -1
  97. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  98. package/src/modules/organizations/components/pages/Organizations.vue +2 -2
  99. package/src/modules/organizations/components/pages/OrganizationsAccount.vue +2 -2
  100. package/src/modules/organizations/components/sections/DetailsTab.vue +1 -1
  101. package/src/modules/organizations/components/sections/Organizations.vue +1 -1
  102. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  103. package/src/modules/products/components/blocks/Images360.vue +1 -1
  104. package/src/modules/products/components/blocks/ImagesThumbnails.vue +1 -1
  105. package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
  106. package/src/modules/products/components/blocks/ProductCard.vue +1 -1
  107. package/src/modules/products/components/sections/EditProductImages.vue +1 -1
  108. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  109. package/src/modules/products/components/sections/SectionProduct.vue +1 -1
  110. package/src/modules/users/components/pages/Profile.vue +3 -3
  111. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  112. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  113. package/src/modules/users/components/pages/ProfileEdit.vue +1 -1
  114. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  115. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  116. package/src/modules/users/components/pages/ProfileOrganizations.vue +1 -1
  117. package/src/modules/users/router/users.js +10 -7
  118. package/src/styles/base/all.scss +1 -0
@@ -7,7 +7,7 @@
7
7
  @touchmove="handleTouchMove"
8
8
  @touchend="handleTouchEnd"
9
9
  >
10
- <img :src="imageSrc" class="w-100" />
10
+ <img :src="(FILE_SERVER_URL || '') + imageSrc" class="w-100" />
11
11
  <div v-if="zoomVisible" class="zoom-lens" :style="zoomLensStyle"></div>
12
12
  </div>
13
13
  </template>
@@ -1,17 +1,18 @@
1
1
  <template>
2
2
  <span @click="toggleShow" class="">
3
3
  {{ shownText }}
4
- <span v-if="isTruncated" class="cursor-pointer t-second">{{ showMoreText }}</span>
4
+ <span v-if="isTruncated && showToggleText" class="cursor-pointer t-second">{{ showMoreText }}</span>
5
5
  </span>
6
6
  </template>
7
7
 
8
8
  <script setup>
9
9
  import { ref, computed } from 'vue';
10
10
 
11
- // Максимальная длина и текст, передаваемые как параметры
11
+ // Максимальная длина, текст и опциональный параметр отображения текста переключателя, передаваемые как параметры
12
12
  const props = defineProps({
13
13
  maxLen: { type: Number, required: true },
14
- text: { type: String, required: true }
14
+ text: { type: String, required: true },
15
+ showToggleText: { type: Boolean, default: false }
15
16
  })
16
17
 
17
18
  // Управление показом полного текста
@@ -4,12 +4,19 @@
4
4
  @drop="onDrop"
5
5
  @dragover.prevent
6
6
  class="image-upload-area flex-v-center flex-h-center flex">
7
- <img v-if="imageUrl || photo" :src="imageUrl || photo" alt="Uploaded image" class="w-100 h-100 object-fit-fill"/>
7
+ <img
8
+ v-if="imageUrl || photo"
9
+ :src="(FILE_SERVER_URL || '') + (imageUrl || photo)"
10
+ alt="Uploaded image"
11
+ class="w-100 h-100 object-fit-fill"
12
+ />
13
+
8
14
  <div v-else class="flex-v-center flex-h-center flex w-100 h-100 bg-second" >
9
15
  <svg class="i-medium" width="104" height="104" viewBox="0 0 104 104" fill="none" xmlns="http://www.w3.org/2000/svg">
10
16
  <path fill="white" d="M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"/>
11
17
  </svg>
12
18
  </div>
19
+
13
20
  <input type="file" ref="fileInput" @change="onFileChange" style="display: none"/>
14
21
  </div>
15
22
  </template>
@@ -20,7 +20,7 @@
20
20
  class="mn-small radius-medium pd-medium br-2px br-solid br-grey"
21
21
  @click="$router.push({name: 'Organization', params: {_id: organization._id}})"
22
22
  >
23
- <img v-if="organization.profile.photo.length > 0" :src="organization.profile.photo" class="radius-medium mn-small i-thin" />
23
+ <img v-if="organization.profile.photo.length > 0" :src="(FILE_SERVER_URL || '') + organization.profile.photo" class="radius-medium mn-small i-thin" />
24
24
  <img v-else class="radius-medium mn-small i-thin" src="@/assets/images/avatar.svg">
25
25
 
26
26
  <p class="h4 mn-r-semi mn-small">{{organization.profile.name}}</p>
@@ -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
 
@@ -3,6 +3,19 @@
3
3
  class="bg-grey radius-big"
4
4
  >
5
5
 
6
+
7
+ <IconEdit
8
+ v-if="user === blogpost.creator.target._id"
9
+ @click.stop="$router.push({
10
+ name: 'Edit BlogPost',
11
+ params: {
12
+ url: blogpost.url
13
+ }
14
+ })"
15
+ class="z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
16
+ />
17
+
18
+
6
19
  <CardHeader
7
20
  :class="{
8
21
  'mn-small pd-medium': type !== 'short',
@@ -18,7 +31,7 @@
18
31
  v-if="firstImage && firstImage.content && type !== 'blogpostPage'"
19
32
  >
20
33
  <img
21
- :src="firstImage.content"
34
+ :src="(FILE_SERVER_URL || '') + firstImage.content"
22
35
  alt="Blog post image"
23
36
  class="mn-medium object-fit-cover w-100 h-20r"
24
37
  />
@@ -27,6 +40,7 @@
27
40
  <section
28
41
  class="pd-t-zero pd-medium"
29
42
  >
43
+
30
44
  <div v-if="type !== 'blogpostPage'" class="cursor-pointer mn-thin flex-nowrap flex w-100">
31
45
 
32
46
  <h3
@@ -79,6 +93,7 @@
79
93
 
80
94
  import Chips from '@pf/src/components/Chips/Chips.vue'
81
95
 
96
+ import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
82
97
 
83
98
  import { computed } from 'vue'
84
99
 
@@ -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
  },{
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  class="w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small">
4
- <img v-if="prop.content" :src="prop.content" alt="Uploaded image" class="w-100 h-30r object-fit-contain"/>
4
+ <img v-if="prop.content" :src="(FILE_SERVER_URL || '') + prop.content" alt="Uploaded image" class="w-100 h-30r object-fit-contain"/>
5
5
  </div>
6
6
  </template>
7
7
 
@@ -4,7 +4,7 @@
4
4
  @drop="onDrop"
5
5
  @dragover.prevent
6
6
  class="w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-small">
7
- <img v-if="prop.content" :src="prop.content" alt="Uploaded image" class="w-100 h-30r object-fit-contain"/>
7
+ <img v-if="prop.content" :src="(FILE_SERVER_URL || '') + prop.content" alt="Uploaded image" class="w-100 h-30r object-fit-contain"/>
8
8
  <span v-else class="t-transp pd-extra" >Click or drag-and-drop your image</span>
9
9
  <input type="file" ref="fileInput" @change="onFileChange" style="display: none"/>
10
10
  </div>
@@ -18,21 +18,20 @@
18
18
 
19
19
  />
20
20
 
21
+
21
22
  <div
22
23
  v-if="event.cover && type !== 'short'"
23
24
  class="o-hidden bg-grey mn-small w-100"
24
25
  >
25
26
  <img
26
-
27
- :src="event.cover"
27
+ :src="(FILE_SERVER_URL || '') + event.cover"
28
28
  alt="Event image"
29
29
  class="z-index-1 d-block mn-auto h-20r"
30
30
  />
31
31
 
32
32
  <img
33
-
34
- :src="event.cover"
35
- alt="Event image"
33
+ :src="(FILE_SERVER_URL || '') + event.cover"
34
+ alt="Event Background"
36
35
  class="z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0"
37
36
  style="
38
37
  transform: scale(1.5);
@@ -45,7 +44,18 @@
45
44
  class="w-100"
46
45
  :class="{'pd-t-zero pd-medium': type !== 'short'}"
47
46
  >
48
-
47
+
48
+ <IconEdit
49
+ v-if="user === event.creator.target._id"
50
+ @click.stop="$router.push({
51
+ name: 'Edit Event',
52
+ params: {
53
+ url: event.url
54
+ }
55
+ })"
56
+ class="z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
57
+ />
58
+
49
59
  <div
50
60
  :class="{'mn-small': type !== 'short'}"
51
61
  class="flex-v-center flex-nowrap flex"
@@ -118,6 +128,8 @@
118
128
  <script setup="props">
119
129
  import Chips from '@pf/src/components/Chips/Chips.vue'
120
130
 
131
+ import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
132
+
121
133
  import CardHeader from '@pf/src/components/CardHeader/CardHeader.vue'
122
134
  import CardFooter from '@pf/src/components/CardFooter/CardFooter.vue'
123
135
 
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <Button
3
3
  :submit="toggleJoin"
4
- class="bg-main button-small button"
4
+ class="bg-main button-small radius-extra button"
5
5
  >
6
6
  {{ hasTicket ? 'Leave' : 'Join' }}
7
7
  </Button>
@@ -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
  },{
@@ -2,7 +2,7 @@
2
2
  <div id="mobileApp">
3
3
  <section class="cols-2-1_2 gap-big pd-big pd-t-big o-hidden bg-black t-white radius-big">
4
4
  <div class="z-index-1 w-1/2">
5
- <img :src="mockupImage" alt="Mobile App Mockup" class="app-mockup">
5
+ <img :src="(FILE_SERVER_URL || '') + mockupImage" alt="Mobile App Mockup" class="app-mockup">
6
6
  </div>
7
7
 
8
8
  <div class="z-index-1 w-1/2">
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="flex-stretch flex-nojustify flex-nowrap flex shop-cart-item">
3
3
  <!-- Item Image -->
4
- <img class="bg-grey aspect-1x1 " v-if="product.images[0]" :src="product.images[0]">
4
+ <img class="bg-grey aspect-1x1 " v-if="product.images[0]" :src="(FILE_SERVER_URL || '') + product.images[0]">
5
5
  <svg
6
6
  width="524"
7
7
  height="345"
@@ -23,8 +23,8 @@
23
23
 
24
24
  <ul class="mn-semi">
25
25
  <li v-for="(product, index) in orderProducts" :key="product._id" class="shop-cart-item mn-small ">
26
- <!-- <img v-if="product.images" :src="require( `@/assets/images/products/${product.images.links[0]}`)"> -->
27
- <!-- <img v-if="!product.images" :src="require( `@/assets/icons/photo.svg`)"> -->
26
+ <!-- <img v-if="product.images" :src="(FILE_SERVER_URL || '') + require( `@/assets/images/products/${product.images.links[0]}`)"> -->
27
+ <!-- <img v-if="!product.images" :src="(FILE_SERVER_URL || '') + require( `@/assets/icons/photo.svg`)"> -->
28
28
  <div class="text-left">
29
29
  <p class="name">{{ product.name }}</p>
30
30
 
@@ -6,18 +6,18 @@
6
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
- :src="organization.profile.photo"
10
- class="h-4r w-4r radius-extra bg-main"
9
+ :src="(FILE_SERVER_URL || '') + organization.profile.photo"
10
+ class="h-4r w-4r radius-extra bg-white"
11
11
  />
12
12
 
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">
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">
14
14
  <circle fill="rgb(var(--main))" cx="21" cy="21" r="21" />
15
15
  <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" />
16
16
  </svg>
17
17
 
18
- <div class="mn-l-small">
18
+ <div class="flex-child-1 flex-child mn-l-small w-100">
19
19
  <p class="h3 mn-r-semi mn-thin">
20
- <Text :text="organization.profile.name ? organization.profile.name : ''" :maxLen="20" />
20
+ <Text :text="organization.profile.name ? organization.profile.name : ''" :maxLen="16" />
21
21
  </p>
22
22
 
23
23
  <div v-if="organization.ratingS" class="w-max star-container flex-v-center flex">
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="pd-small flex-nowrap flex">
3
- <!-- <img :src="avatar" :alt="`${name} avatar`" class="user-card__avatar" /> -->
3
+ <!-- <img :src="(FILE_SERVER_URL || '') + avatar" :alt="`${name} avatar`" class="user-card__avatar" /> -->
4
4
  <div class="user-card__info">
5
5
  <p class="user-card__name">{{ department.name ? department.name : 'Безымянный' }}</p>
6
6
  <p class="user-card__position">{{ department.members ? department.members.length : '0' }} человек</p>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="pd-small flex-nowrap flex">
3
- <!-- <img :src="avatar" :alt="`${name} avatar`" class="user-card__avatar" /> -->
3
+ <!-- <img :src="(FILE_SERVER_URL || '') + avatar" :alt="`${name} avatar`" class="user-card__avatar" /> -->
4
4
  <div class="user-card__info">
5
5
  <p class="user-card__name">{{ user.name ? user.name : 'Безымянный' }}</p>
6
6
  <p class="t-transp">{{ position }}</p>
@@ -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
@@ -20,7 +20,7 @@
20
20
  class="mn-small radius-medium pd-medium br-2px br-solid br-grey"
21
21
  @click="$router.push({name: 'Organization', params: {_id: organization._id}})"
22
22
  >
23
- <img v-if="organization.profile.photo.length > 0" :src="organization.profile.photo" class="radius-medium mn-small i-thin" />
23
+ <img v-if="organization.profile.photo.length > 0" :src="(FILE_SERVER_URL || '') + organization.profile.photo" class="radius-medium mn-small i-thin" />
24
24
 
25
25
  <svg v-else class="radius-medium mn-small i-thin" width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
26
26
  <circle fill="rgb(var(--main))" cx="21" cy="21" r="21" />
@@ -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
 
@@ -21,7 +21,7 @@
21
21
  class="mn-small radius-medium pd-medium br-2px br-solid br-grey"
22
22
  @click="$router.push({name: 'Organization', params: {_id: organization._id}})"
23
23
  >
24
- <img v-if="organization.profile.photo.length > 0" :src="organization.profile.photo" class="radius-medium mn-small i-thin" />
24
+ <img v-if="organization.profile.photo.length > 0" :src="(FILE_SERVER_URL || '') + organization.profile.photo" class="radius-medium mn-small i-thin" />
25
25
 
26
26
  <svg v-else class="radius-medium mn-small i-thin" width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
27
27
  <circle fill="rgb(var(--main))" cx="21" cy="21" r="21" />
@@ -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
 
@@ -15,7 +15,7 @@
15
15
 
16
16
  <img
17
17
  v-if="organization.profile.photo"
18
- :src="organization.profile.photo"
18
+ :src="(FILE_SERVER_URL || '') + organization.profile.photo"
19
19
  class="radius-big bg-grey flex-center flex mn-small i-extra"
20
20
  />
21
21
 
@@ -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
 
@@ -15,7 +15,7 @@
15
15
  :organization="organization"
16
16
  :user="auth.state.user"
17
17
  @updateMembership="handleMembershipUpdate"
18
- class="flex-child-1 flex-child w-100"
18
+ class="flex-child-1 flex-child w-25r"
19
19
  />
20
20
  </div>
21
21
  </div>
@@ -10,7 +10,7 @@
10
10
 
11
11
  <transition name="scale5" :css="!firstImageLoad" appear>
12
12
  <div v-if="currentImage" class="h-100 w-100 transition-ease">
13
- <img v-if="currentImage" :key="currentImage" class="h-100 w-100 transition-ease" :src="currentImage.src" alt="360 product view" @mousedown="startRotation" @mousemove="rotate" @mouseup="stopRotation" @mouseleave="stopRotation" @touchstart="startRotation" @touchmove="rotate" @touchend="stopRotation" @dragstart.prevent>
13
+ <img v-if="currentImage" :key="currentImage" class="h-100 w-100 transition-ease" :src="(FILE_SERVER_URL || '') + currentImage.src" alt="360 product view" @mousedown="startRotation" @mousemove="rotate" @mouseup="stopRotation" @mouseleave="stopRotation" @touchstart="startRotation" @touchmove="rotate" @touchend="stopRotation" @dragstart.prevent>
14
14
 
15
15
  </div>
16
16
  </transition>
@@ -4,7 +4,7 @@
4
4
  <img
5
5
  v-for="(image, index) in images"
6
6
  :key="index"
7
- :src="image"
7
+ :src="(FILE_SERVER_URL || '') + image"
8
8
  @click="openPopup(index)"
9
9
  class="radius-medium bg-white o-hidden thumbnail"
10
10
  />
@@ -31,8 +31,8 @@
31
31
  <span v-if="order.positions.length < 1" class="w-100">Вы еще не добавили позиции</span>
32
32
 
33
33
  <li v-for="(product, index) in order.positions" :key="product._id" class="w-100">
34
- <!-- <img v-if="product.images" :src="require( `@/assets/images/products/${product.images.links[0]}`)"> -->
35
- <!-- <img v-if="!product.images" :src="require( `@/assets/icons/photo.svg`)"> -->
34
+ <!-- <img v-if="product.images" :src="(FILE_SERVER_URL || '') + require( `@/assets/images/products/${product.images.links[0]}`)"> -->
35
+ <!-- <img v-if="!product.images" :src="(FILE_SERVER_URL || '') + require( `@/assets/icons/photo.svg`)"> -->
36
36
  <div class="w-100 flex-center flex-nowrap flex">
37
37
  <span class="mn-r-regular w-100">{{ product.name }}</span>
38
38
  <input
@@ -24,7 +24,7 @@
24
24
  "
25
25
  >
26
26
  <!-- Image Wrappers -->
27
- <img v-if="product.images[0]" :src="product.images[0]" class="w-100 h-100">
27
+ <img v-if="product.images[0]" :src="(FILE_SERVER_URL || '') + product.images[0]" class="w-100 h-100">
28
28
  <svg
29
29
  v-else
30
30
  class="h-100 w-100"
@@ -6,7 +6,7 @@
6
6
 
7
7
  <VueDraggableNext class="cols-4 dragArea list-group w-full" :list="product.images" :sort="true" @change="log">
8
8
  <div v-for="(image, index) in product.images" class="flex-column block">
9
- <img class="w-100 mn-small" :src="image" />
9
+ <img class="w-100 mn-small" :src="(FILE_SERVER_URL || '') + image" />
10
10
  <a @click="deleteImage(index)" class="w-100 br-grey br-solid br-1px button">Удалить</a>
11
11
  </div>
12
12
  </VueDraggableNext>
@@ -130,7 +130,7 @@
130
130
  "
131
131
  >
132
132
  <img
133
- :src="'/icons/moods/' + preset + '.png'"
133
+ :src="(FILE_SERVER_URL || '') + '/icons/moods/' + preset + '.png'"
134
134
  class="h-8r w-8r mn-thin"
135
135
  />
136
136
 
@@ -13,7 +13,7 @@
13
13
  v-if="images[0] && !product.image3d"
14
14
  class="h-100 w-100"
15
15
  style="object-fit: cover;"
16
- :src="images[0]"
16
+ :src="(FILE_SERVER_URL || '') + images[0]"
17
17
  />
18
18
  <svg
19
19
  width="524"
@@ -29,8 +29,8 @@
29
29
 
30
30
  <img
31
31
  v-if="users.state.current.profile.photo.length > 0"
32
- :src="users.state.current.profile.photo"
33
- class="radius-medium mn-small i-extra"
32
+ :src="(FILE_SERVER_URL || '')+ users.state.current.profile.photo"
33
+ class="radius-extra bg-white mn-small i-extra"
34
34
  />
35
35
 
36
36
  <PlaceholderUserpic
@@ -39,7 +39,7 @@
39
39
  />
40
40
 
41
41
  <h3
42
- class=""
42
+ class="mn-thin"
43
43
  >
44
44
  {{users.state.current.profile.name ? users.state.current.profile.name : 'Не указан' }}
45
45
  </h3>
@@ -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>
@@ -27,7 +27,7 @@
27
27
  <UploadImage
28
28
  v-model:photo="user.profile.photo"
29
29
  :uploadPath="'users/' + user._id + '/avatars'"
30
- class="h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"
30
+ class="h-4r w-4r aspect-1x1 o-hidden bg-white mn-thin radius-extra"
31
31
  />
32
32
  <h4>Upload userpic</h4>
33
33
  </div>
@@ -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
  },{
@@ -283,6 +283,7 @@ body {
283
283
  // REM
284
284
  .w-50r { width: 50rem; }
285
285
  .w-30r { width: 30rem; }
286
+ .w-25r { width: 25rem; }
286
287
  .w-20r { width: 20rem; }
287
288
  .w-15r { width: 15rem; }
288
289
  .w-10r { width: 10rem; }