@ozdao/prometheus-framework 0.0.94 → 0.0.96

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-6f807eb5.js +1 -0
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-97217d38.mjs +1945 -0
  3. package/dist/ButtonFollow-4049a57e.js +1 -0
  4. package/dist/ButtonFollow-6765c266.mjs +131 -0
  5. package/dist/CardOrganization-1b0da77c.mjs +230 -0
  6. package/dist/CardOrganization-43e80590.js +1 -0
  7. package/dist/CardOrganization-b2098e42.js +1 -0
  8. package/dist/CardOrganization-c2e7e903.mjs +229 -0
  9. package/dist/Chips-4316f652.mjs +110 -0
  10. package/dist/Chips-92ccc11f.js +1 -0
  11. package/dist/Feed-13499a3a.mjs +428 -0
  12. package/dist/Feed-345d8513.mjs +355 -0
  13. package/dist/Feed-361761f5.mjs +366 -0
  14. package/dist/Feed-8acc6844.js +1 -0
  15. package/dist/Feed-8f6eb29d.mjs +439 -0
  16. package/dist/Feed-c6b67df4.js +1 -0
  17. package/dist/Feed-c8dc4359.js +1 -0
  18. package/dist/Feed-f0a40b33.js +1 -0
  19. package/dist/IconEdit-4cfe2115.js +1 -0
  20. package/dist/IconEdit-eacf3856.mjs +44 -0
  21. package/dist/Image-661e2fbc.mjs +477 -0
  22. package/dist/Image-b2131fa0.mjs +477 -0
  23. package/dist/Image-d01026cf.js +9 -0
  24. package/dist/Image-f66dbbf4.js +9 -0
  25. package/dist/Popup-0b38b537.js +1 -0
  26. package/dist/Popup-e6685f31.mjs +76 -0
  27. package/dist/Product-3c2ae338.js +7 -0
  28. package/dist/Product-601a9d5b.mjs +838 -0
  29. package/dist/Product-dccb371a.mjs +838 -0
  30. package/dist/Product-f017e6cd.js +7 -0
  31. package/dist/ProductEdit-777bb9e2.mjs +350 -0
  32. package/dist/ProductEdit-d5dec3cf.js +1 -0
  33. package/dist/ProductEdit-dae66a53.js +1 -0
  34. package/dist/ProductEdit-fa0117b6.mjs +350 -0
  35. package/dist/ProfileBlogposts-39c20b79.mjs +64 -0
  36. package/dist/ProfileBlogposts-69beaa14.js +1 -0
  37. package/dist/ProfileBlogposts-6c715a38.js +1 -0
  38. package/dist/ProfileBlogposts-92c4addb.mjs +64 -0
  39. package/dist/ProfileComments-1525663e.mjs +44 -0
  40. package/dist/ProfileComments-1cbf5c45.js +1 -0
  41. package/dist/ProfileComments-bae499e9.js +1 -0
  42. package/dist/ProfileComments-cdaccefe.mjs +44 -0
  43. package/dist/ProfileEvents-3089a526.mjs +56 -0
  44. package/dist/ProfileEvents-48c70286.mjs +56 -0
  45. package/dist/ProfileEvents-a28a4ee5.js +1 -0
  46. package/dist/ProfileEvents-e62e76cf.js +1 -0
  47. package/dist/ProfileLikes-6cf19687.js +1 -0
  48. package/dist/ProfileLikes-75215d15.mjs +44 -0
  49. package/dist/ProfileLikes-ca197731.mjs +44 -0
  50. package/dist/ProfileLikes-e31f28dc.js +1 -0
  51. package/dist/ProfileOrganizations-55914b43.js +1 -0
  52. package/dist/ProfileOrganizations-600d310d.js +1 -0
  53. package/dist/ProfileOrganizations-774c6508.mjs +212 -0
  54. package/dist/ProfileOrganizations-ec908108.mjs +212 -0
  55. package/dist/Publics-4db36606.js +1 -0
  56. package/dist/Publics-6b7c97bd.js +1 -0
  57. package/dist/Publics-abbe2e0c.mjs +123 -0
  58. package/dist/Publics-cbb8eaaa.mjs +123 -0
  59. package/dist/Socials-8193477c.mjs +189 -0
  60. package/dist/Socials-821bd677.js +1 -0
  61. package/dist/UploadImage-1b4c2a5e.mjs +83 -0
  62. package/dist/UploadImage-39d42048.js +1 -0
  63. package/dist/UploadImage-739cab04.js +1 -0
  64. package/dist/UploadImage-8835be69.mjs +83 -0
  65. package/dist/auth-b61483ce.js +8 -0
  66. package/dist/auth-cfeacd61.mjs +1839 -0
  67. package/dist/auth.client.cjs +1 -1
  68. package/dist/auth.client.js +3 -3
  69. package/dist/auth.validation-2f00457e.js +1 -0
  70. package/dist/auth.validation-3fd4cc7c.mjs +20 -0
  71. package/dist/community.client.cjs +1 -1
  72. package/dist/community.client.js +12 -12
  73. package/dist/components/Text/Text.vue.d.ts +1 -0
  74. package/dist/components/Text/Text.vue.d.ts.map +1 -1
  75. package/dist/events.client.cjs +1 -1
  76. package/dist/events.client.js +12 -12
  77. package/dist/landing.client.cjs +1 -1
  78. package/dist/landing.client.js +38 -38
  79. package/dist/main.css +1 -1
  80. package/dist/organizations-49a10611.js +1 -0
  81. package/dist/organizations-8ffdf84d.mjs +121 -0
  82. package/dist/organizations.client-0071acee.js +3 -0
  83. package/dist/organizations.client-8aa34e80.mjs +3017 -0
  84. package/dist/organizations.client-b0878617.js +3 -0
  85. package/dist/organizations.client-fa3b0839.mjs +3017 -0
  86. package/dist/organizations.client.cjs +1 -1
  87. package/dist/organizations.client.js +13 -13
  88. package/dist/prometheus-framework.cjs.js +2 -2
  89. package/dist/prometheus-framework.es.js +4 -3
  90. package/dist/style.css +1 -1
  91. package/dist/users.client.cjs +1 -1
  92. package/dist/users.client.js +48 -48
  93. package/package.json +2 -1
  94. package/src/components/CardHeader/CardHeader.vue +2 -2
  95. package/src/components/Magnifier/Magnifier.vue +1 -1
  96. package/src/components/Text/Text.vue +4 -3
  97. package/src/components/UploadImage/UploadImage.vue +8 -1
  98. package/src/modules/auth/store/auth.js +23 -3
  99. package/src/modules/backoffice/components/pages/Organizations.vue +1 -1
  100. package/src/modules/community/components/blocks/CardBlogpost.vue +16 -1
  101. package/src/modules/constructor/components/elements/Image.vue +1 -1
  102. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  103. package/src/modules/events/components/blocks/CardEvent.vue +18 -6
  104. package/src/modules/events/components/elements/ButtonJoin.vue +1 -1
  105. package/src/modules/landing/components/sections/MobileApp.vue +1 -1
  106. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
  107. package/src/modules/orders/components/blocks/Positions.vue +2 -2
  108. package/src/modules/organizations/components/blocks/CardOrganization.vue +5 -5
  109. package/src/modules/organizations/components/blocks/DepartmentSub.vue +1 -1
  110. package/src/modules/organizations/components/blocks/User.vue +1 -1
  111. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  112. package/src/modules/organizations/components/pages/OrganizationsAccount.vue +1 -1
  113. package/src/modules/organizations/components/sections/DetailsTab.vue +1 -1
  114. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  115. package/src/modules/products/components/blocks/Images360.vue +1 -1
  116. package/src/modules/products/components/blocks/ImagesThumbnails.vue +1 -1
  117. package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
  118. package/src/modules/products/components/blocks/ProductCard.vue +1 -1
  119. package/src/modules/products/components/sections/EditProductImages.vue +1 -1
  120. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  121. package/src/modules/products/components/sections/SectionProduct.vue +1 -1
  122. package/src/modules/users/components/pages/Profile.vue +3 -3
  123. package/src/modules/users/components/pages/ProfileEdit.vue +1 -1
  124. package/src/styles/base/all.scss +1 -0
@@ -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>
@@ -1,6 +1,7 @@
1
1
  // Dependencies
2
2
  import axios from 'axios';
3
3
  import Cookies from 'js-cookie'
4
+ import { CapacitorCookies } from '@capacitor/core';
4
5
  // Vue modules
5
6
  import { reactive, watch } from "vue";
6
7
  // Globals
@@ -213,12 +214,31 @@
213
214
  };
214
215
 
215
216
  function setCookie(name, data, env = process.env.NODE_ENV) {
216
- Cookies.set(name, JSON.stringify(data), optionsDefault[env]);
217
+ if (process.env.MOBILE_APP) {
218
+ // Если приложение запущено в Capacitor
219
+ CapacitorCookies.setCookie({
220
+ url: process.env.API_URL, // используйте ваш API_URL
221
+ key: name,
222
+ value: JSON.stringify(data)
223
+ });
224
+ } else {
225
+ // Для веб-версии
226
+ Cookies.set(name, JSON.stringify(data), optionsDefault[env]);
227
+ }
217
228
  }
218
229
 
219
230
  function removeCookie(name, env = process.env.NODE_ENV) {
220
- const options = env === 'production' ? { domain: process.env.API_URL } : {};
221
- Cookies.remove(name, options);
231
+ if (process.env.MOBILE_APP) {
232
+ // Если приложение запущено в Capacitor
233
+ CapacitorCookies.deleteCookie({
234
+ url: process.env.API_URL, // используйте ваш API_URL
235
+ key: name
236
+ });
237
+ } else {
238
+ // Для веб-версии
239
+ const options = env === 'production' ? { domain: process.env.API_URL } : {};
240
+ Cookies.remove(name, options);
241
+ }
222
242
  }
223
243
 
224
244
  // // History
@@ -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>
@@ -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
 
@@ -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>
@@ -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>
@@ -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" />
@@ -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" />
@@ -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
 
@@ -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>
@@ -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>
@@ -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; }