@ozdao/prometheus-framework 0.2.130 → 0.2.133

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. package/dist/auth.server.js +0 -1
  2. package/dist/auth.server.mjs +0 -1
  3. package/dist/community.server.js +172 -31
  4. package/dist/community.server.mjs +172 -31
  5. package/dist/events.server.js +1 -1
  6. package/dist/events.server.mjs +1 -1
  7. package/dist/files.server.js +38 -4
  8. package/dist/files.server.mjs +38 -4
  9. package/dist/gallery.server.js +1 -1
  10. package/dist/gallery.server.mjs +1 -1
  11. package/dist/main-CI9l9xMs.js +92 -0
  12. package/dist/main-DPg58GOU.mjs +14509 -0
  13. package/dist/main.css +1 -1
  14. package/dist/orders.server.js +1 -1
  15. package/dist/orders.server.mjs +1 -1
  16. package/dist/organizations.server.js +4 -3
  17. package/dist/organizations.server.mjs +4 -3
  18. package/dist/products.server.js +2 -1
  19. package/dist/products.server.mjs +2 -1
  20. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
  21. package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
  22. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
  24. package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
  25. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
  26. package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
  27. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +12 -13
  29. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
  30. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
  31. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
  33. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
  34. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
  35. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +14 -15
  37. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
  38. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
  39. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
  41. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
  42. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
  43. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
  45. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
  47. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
  49. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
  50. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
  51. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
  52. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
  53. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  54. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
  55. package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
  56. package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
  57. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
  59. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -0
  60. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -0
  61. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
  62. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
  63. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  64. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
  65. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
  67. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +30 -30
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +30 -30
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +18 -18
  72. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
  74. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
  76. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +54 -71
  78. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
  80. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +86 -76
  82. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
  84. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +71 -80
  86. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
  87. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
  88. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
  90. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +27 -28
  92. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
  94. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
  96. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
  98. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
  99. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
  100. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
  102. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +119 -112
  104. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
  105. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +22 -22
  113. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +27 -27
  115. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
  117. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +16 -16
  118. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
  120. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  122. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  124. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
  125. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +39 -38
  127. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  131. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +112 -85
  133. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -35
  135. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +8 -8
  136. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
  142. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
  144. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
  146. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
  148. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  150. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
  154. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
  156. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +4 -4
  159. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
  161. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +29 -29
  162. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +53 -35
  164. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
  165. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
  166. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
  167. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
  168. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
  169. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
  170. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
  171. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
  172. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
  173. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
  174. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +154 -77
  176. package/dist/prometheus-framework.cjs.js +1 -1
  177. package/dist/prometheus-framework.es.js +14 -14
  178. package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
  179. package/dist/queryProcessor-iewDZq_f.js +178 -0
  180. package/dist/style.css +1 -1
  181. package/dist/wallet.server.js +80 -27
  182. package/dist/wallet.server.mjs +80 -27
  183. package/dist/web-DZUec7pP.js +1 -0
  184. package/dist/web-krQQeSb6.mjs +54 -0
  185. package/package.json +1 -1
  186. package/src/components/Address/Address.vue +1 -1
  187. package/src/components/Chips/Chips.vue +1 -1
  188. package/src/components/Completion/Completion.vue +1 -4
  189. package/src/components/DatePicker/Calendar.vue +1 -1
  190. package/src/components/Draggable/Draggable.vue +113 -0
  191. package/src/components/Dropdown/Dropdown.vue +1 -1
  192. package/src/components/Feed/Feed.vue +18 -12
  193. package/src/components/FieldBig/FieldBig.vue +11 -1
  194. package/src/components/FieldPhone/FieldPhone.vue +1 -1
  195. package/src/components/FieldTags/FieldTags.vue +2 -1
  196. package/src/components/FieldTags/tag-input.vue +1 -1
  197. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  198. package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
  199. package/src/components/Shader/Shader.vue +2 -2
  200. package/src/components/Slider/Slider.vue +1 -5
  201. package/src/components/Spoiler/Spoiler.vue +1 -1
  202. package/src/components/Text/Text.vue +1 -4
  203. package/src/components/Tooltip/Tooltip.vue +1 -1
  204. package/src/components/Upload/Upload.vue +5 -3
  205. package/src/modules/auth/controllers/auth.controller.js +0 -2
  206. package/src/modules/auth/store/auth.js +2 -2
  207. package/src/modules/community/DOCUMENTATION.MD +4 -0
  208. package/src/modules/community/community.client.js +0 -2
  209. package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
  210. package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
  211. package/src/modules/community/components/layouts/Community.vue +15 -11
  212. package/src/modules/community/components/pages/Blog.vue +25 -32
  213. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
  214. package/src/modules/community/components/sections/Comment.vue +123 -0
  215. package/src/modules/community/components/sections/Comments.vue +90 -19
  216. package/src/modules/community/components/sections/HotPosts.vue +3 -6
  217. package/src/modules/community/controllers/blog.controller.js +1 -1
  218. package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
  219. package/src/modules/community/controllers/comments.controller.js +187 -38
  220. package/src/modules/community/controllers/comments.controller.populate.js +180 -0
  221. package/src/modules/community/models/comment.model.js +15 -0
  222. package/src/modules/community/store/blogposts.js +20 -2
  223. package/src/modules/constructor/components/elements/Audio.vue +28 -40
  224. package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
  225. package/src/modules/constructor/components/elements/Video.vue +10 -18
  226. package/src/modules/constructor/components/sections/Constructor.vue +54 -47
  227. package/src/modules/files/controllers/files.controller.js +2 -0
  228. package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
  229. package/src/modules/files/routes/files.routes.js +8 -0
  230. package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
  231. package/src/modules/globals/components/partials/Header.vue +12 -7
  232. package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
  233. package/src/modules/icons/logos/Logotype.vue +8 -6
  234. package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
  235. package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
  236. package/src/modules/marketplace/store/marketplace.js +2 -8
  237. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  238. package/src/modules/organizations/components/pages/Members.vue +1 -1
  239. package/src/modules/organizations/components/pages/Organization.vue +33 -5
  240. package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
  241. package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
  242. package/src/modules/organizations/components/sections/Publics.vue +2 -2
  243. package/src/modules/organizations/controllers/memberships.controller.js +2 -3
  244. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  245. package/src/modules/organizations/store/memberships.js +4 -1
  246. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
  247. package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
  248. package/src/modules/products/models/product.model.js +2 -1
  249. package/src/modules/spots/components/layouts/Spots.vue +0 -3
  250. package/src/modules/spots/components/pages/Map.vue +13 -3
  251. package/src/modules/users/components/blocks/CardUser.vue +2 -2
  252. package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
  253. package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
  254. package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
  255. package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
  256. package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
  257. package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
  258. package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
  259. package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
  260. package/src/modules/wallet/localization/Wallet.json +22 -0
  261. package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
  262. package/src/styles/base/all.scss +16 -26
  263. package/src/styles/config.scss +70 -34
  264. package/src/styles/typography.scss +5 -5
  265. package/src/modules/community/components/sections/Feed.vue +0 -148
  266. package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
  267. package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
@@ -8,7 +8,7 @@ import { t as tickets_controller } from "./tickets.controller-ByZ33N6_.mjs";
8
8
  import require$$1 from "stripe";
9
9
  import require$$0 from "mongoose";
10
10
  import require$$1$1 from "bignumber.js";
11
- import "./queryProcessor-g8208K6g.mjs";
11
+ import "./queryProcessor-DQSFR9YA.mjs";
12
12
  var wallet_model = (db) => {
13
13
  const WalletSchema = new db.mongoose.Schema(
14
14
  {
@@ -316,11 +316,12 @@ var payments_routes = function(app, db, origins, publicPath) {
316
316
  controller.delete
317
317
  );
318
318
  };
319
- require$$0.Types.ObjectId;
319
+ const ObjectId = require$$0.Types.ObjectId;
320
320
  const { BigNumber } = require$$1$1;
321
321
  const VIEWS_REWARD_COEFF = "0.1";
322
322
  const WDT_DECIMALS = 8;
323
323
  const calculateRewardForPost = (snapshot, viewsCount, reactionsCount, commentsCount) => {
324
+ console.log("snapshot", snapshot);
324
325
  if (snapshot) {
325
326
  return new BigNumber(Math.max(viewsCount - snapshot.views, 0)).multipliedBy(VIEWS_REWARD_COEFF).plus(Math.max(reactionsCount - snapshot.reactions, 0)).plus(Math.max(commentsCount - snapshot.comments, 0));
326
327
  }
@@ -332,32 +333,84 @@ const rewardsControllerFactory$1 = (db, wdmClient) => {
332
333
  const Comment = db.comment;
333
334
  const Reward = db.reward;
334
335
  const listRewards = async (req, res) => {
335
- const blogs = await Blogpost.find({ "creator.target": req.userId }).exec();
336
- const rewards = [];
337
- for (const blog of blogs) {
338
- const reactions = await Reaction.countDocuments({ target: { $in: blog._id } }).exec();
339
- const comments = await Comment.countDocuments({ target: { $in: blog._id } }).exec();
340
- const previousReward = await Reward.findOne({ user: req.userId, type: "blogpost", target: blog._id }).populate({
341
- path: "target",
342
- model: "Blogpost"
343
- // Убедитесь, что 'Blogpost' соответствует имени вашей модели блогпоста
344
- }).sort({ createdAt: -1 }).exec();
345
- const reward = calculateRewardForPost(
346
- previousReward?.snapshot,
347
- blog.views,
348
- reactions,
349
- comments
350
- );
351
- rewards.push({
352
- user: req.userId,
353
- type: "blogpost",
354
- amount: reward.toString(),
355
- name: blog.name,
356
- content: blog.content,
357
- url: blog.url
358
- });
336
+ const userId = new ObjectId(req.userId);
337
+ try {
338
+ const aggregationResults = await Blogpost.aggregate([
339
+ // Соответствие блогпостов для данного пользователя
340
+ { $match: { "creator.target": userId } },
341
+ // Добавление информации о реакциях и комментариях
342
+ {
343
+ $lookup: {
344
+ from: "reactions",
345
+ localField: "_id",
346
+ foreignField: "target",
347
+ as: "reactions"
348
+ }
349
+ },
350
+ {
351
+ $lookup: {
352
+ from: "comments",
353
+ localField: "_id",
354
+ foreignField: "target",
355
+ as: "comments"
356
+ }
357
+ },
358
+ // Добавление информации о предыдущей награде
359
+ {
360
+ $lookup: {
361
+ from: "rewards",
362
+ let: { blogId: "$_id" },
363
+ pipeline: [
364
+ {
365
+ $match: {
366
+ $expr: {
367
+ $and: [
368
+ { $eq: ["$user", userId] },
369
+ { $eq: ["$type", "blogpost"] },
370
+ { $eq: ["$target", "$$blogId"] }
371
+ ]
372
+ }
373
+ }
374
+ },
375
+ { $sort: { createdAt: -1 } },
376
+ { $limit: 1 }
377
+ ],
378
+ as: "previousReward"
379
+ }
380
+ },
381
+ // Преобразование результатов
382
+ {
383
+ $project: {
384
+ _id: 1,
385
+ user: req.userId,
386
+ type: "blogpost",
387
+ views: 1,
388
+ reactionsCount: { $size: "$reactions" },
389
+ commentsCount: { $size: "$comments" },
390
+ previousReward: { $arrayElemAt: ["$previousReward", 0] },
391
+ name: 1,
392
+ content: 1,
393
+ url: 1
394
+ }
395
+ }
396
+ ]);
397
+ const rewards = aggregationResults.map((result) => ({
398
+ user: result.user,
399
+ type: result.type,
400
+ amount: calculateRewardForPost(
401
+ result.previousReward?.snapshot,
402
+ result.views,
403
+ result.reactionsCount,
404
+ result.commentsCount
405
+ ),
406
+ name: result.name,
407
+ content: result.content,
408
+ url: result.url
409
+ }));
410
+ res.status(200).send(rewards);
411
+ } catch (error) {
412
+ res.status(500).send({ message: "Произошла ошибка при получении наград", error: error.message });
359
413
  }
360
- res.status(200).send(rewards);
361
414
  };
362
415
  const collectTokens = async (req, res) => {
363
416
  const blogs = await Blogpost.find({ "creator.target": req.userId }).exec();
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./main-CI9l9xMs.js");class p extends c.WebPlugin{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],n="_cap_",o=Object.keys(this.impl).filter(i=>i.indexOf(n)===0);for(const i of o){const r=i.substring(n.length),a=(e=this.impl.getItem(i))!==null&&e!==void 0?e:"",{value:l}=await this.get({key:r});typeof l=="string"?s.push(r):(await this.set({key:r,value:a}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}exports.PreferencesWeb=p;
@@ -0,0 +1,54 @@
1
+ import { W as p } from "./main-DPg58GOU.mjs";
2
+ class f extends p {
3
+ constructor() {
4
+ super(...arguments), this.group = "CapacitorStorage";
5
+ }
6
+ async configure({ group: e }) {
7
+ typeof e == "string" && (this.group = e);
8
+ }
9
+ async get(e) {
10
+ return { value: this.impl.getItem(this.applyPrefix(e.key)) };
11
+ }
12
+ async set(e) {
13
+ this.impl.setItem(this.applyPrefix(e.key), e.value);
14
+ }
15
+ async remove(e) {
16
+ this.impl.removeItem(this.applyPrefix(e.key));
17
+ }
18
+ async keys() {
19
+ return { keys: this.rawKeys().map((t) => t.substring(this.prefix.length)) };
20
+ }
21
+ async clear() {
22
+ for (const e of this.rawKeys())
23
+ this.impl.removeItem(e);
24
+ }
25
+ async migrate() {
26
+ var e;
27
+ const t = [], s = [], n = "_cap_", o = Object.keys(this.impl).filter((i) => i.indexOf(n) === 0);
28
+ for (const i of o) {
29
+ const r = i.substring(n.length), a = (e = this.impl.getItem(i)) !== null && e !== void 0 ? e : "", { value: l } = await this.get({ key: r });
30
+ typeof l == "string" ? s.push(r) : (await this.set({ key: r, value: a }), t.push(r));
31
+ }
32
+ return { migrated: t, existing: s };
33
+ }
34
+ async removeOld() {
35
+ const e = "_cap_", t = Object.keys(this.impl).filter((s) => s.indexOf(e) === 0);
36
+ for (const s of t)
37
+ this.impl.removeItem(s);
38
+ }
39
+ get impl() {
40
+ return window.localStorage;
41
+ }
42
+ get prefix() {
43
+ return this.group === "NativeStorage" ? "" : `${this.group}.`;
44
+ }
45
+ rawKeys() {
46
+ return Object.keys(this.impl).filter((e) => e.indexOf(this.prefix) === 0);
47
+ }
48
+ applyPrefix(e) {
49
+ return this.prefix + e;
50
+ }
51
+ }
52
+ export {
53
+ f as PreferencesWeb
54
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.2.130",
3
+ "version": "0.2.133",
4
4
  "description": "Web3 Framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",
@@ -27,7 +27,7 @@
27
27
  </div>
28
28
  </template>
29
29
 
30
- <style scoped>
30
+ <style>
31
31
  .pac-container {
32
32
  position: absolute;
33
33
  background-color: white;
@@ -26,7 +26,7 @@ import { ref, defineProps } from 'vue';
26
26
  const props = defineProps(['chips']);
27
27
  </script>
28
28
 
29
- <style scoped>
29
+ <style>
30
30
  .t-trimmed {
31
31
  font-size: 0;
32
32
  }
@@ -70,7 +70,4 @@ const calculateCompletion = (profileObject) => {
70
70
 
71
71
 
72
72
  if (target) completionPercentage.value = calculateCompletion(target)
73
- </script>
74
-
75
- <style scoped>
76
- </style>
73
+ </script>
@@ -267,7 +267,7 @@ const selectLastYear = () => {
267
267
  </script>
268
268
 
269
269
 
270
- <style scoped>
270
+ <style >
271
271
  .calendar__week {
272
272
  display: grid;
273
273
  grid-template-columns: repeat(7, 1fr);
@@ -0,0 +1,113 @@
1
+ <template>
2
+ <div ref="container" class="draggable-container">
3
+ <slot></slot>
4
+ </div>
5
+ </template>
6
+
7
+ <script setup>
8
+ import { ref, onMounted } from 'vue';
9
+
10
+ const props = defineProps({
11
+ list: {
12
+ type: Array,
13
+ required: true,
14
+ },
15
+ disabledClass: {
16
+ type: String,
17
+ default: 'draggable-disabled',
18
+ },
19
+ });
20
+
21
+ const emit = defineEmits(['update:list', 'start', 'end']);
22
+ const container = ref(null);
23
+
24
+ let dragStartIndex = null;
25
+
26
+ onMounted(() => {
27
+ const handleDragStart = (e) => {
28
+ const target = e.target.closest('.draggable-item');
29
+ if (!target || target.classList.contains(props.disabledClass)) {
30
+ e.preventDefault();
31
+ return;
32
+ }
33
+ dragStartIndex = Number(target.dataset.index);
34
+ e.dataTransfer.effectAllowed = 'move';
35
+ emit('start', dragStartIndex);
36
+ };
37
+
38
+ const handleDragOver = (e) => {
39
+ e.preventDefault();
40
+ };
41
+
42
+ const handleDrop = (e) => {
43
+ e.preventDefault();
44
+ const target = e.target.closest('.draggable-item');
45
+ if (!target || target.classList.contains(props.disabledClass)) {
46
+ return;
47
+ }
48
+ const dragEndIndex = Number(target.dataset.index);
49
+ if (dragStartIndex !== dragEndIndex && !isInvalidMove(dragStartIndex, dragEndIndex)) {
50
+ const updatedList = [...props.list];
51
+ const [removed] = updatedList.splice(dragStartIndex, 1);
52
+ updatedList.splice(dragEndIndex, 0, removed);
53
+ emit('update:list', updatedList);
54
+ }
55
+ emit('end', dragStartIndex, dragEndIndex);
56
+ dragStartIndex = null;
57
+ };
58
+
59
+ const handleTouchStart = (e) => {
60
+ const target = e.target.closest('.draggable-item');
61
+ if (!target || target.classList.contains(props.disabledClass)) {
62
+ e.preventDefault();
63
+ return;
64
+ }
65
+ dragStartIndex = Number(target.dataset.index);
66
+ emit('start', dragStartIndex);
67
+ };
68
+
69
+ const handleTouchMove = (e) => {
70
+ e.preventDefault();
71
+ };
72
+
73
+ const handleTouchEnd = (e) => {
74
+ const target = document.elementFromPoint(
75
+ e.changedTouches[0].clientX,
76
+ e.changedTouches[0].clientY
77
+ ).closest('.draggable-item');
78
+ if (!target || target.classList.contains(props.disabledClass)) {
79
+ return;
80
+ }
81
+ const dragEndIndex = Number(target.dataset.index);
82
+ if (dragStartIndex !== dragEndIndex && !isInvalidMove(dragStartIndex, dragEndIndex)) {
83
+ const updatedList = [...props.list];
84
+ const [removed] = updatedList.splice(dragStartIndex, 1);
85
+ updatedList.splice(dragEndIndex, 0, removed);
86
+ emit('update:list', updatedList);
87
+ }
88
+ emit('end', dragStartIndex, dragEndIndex);
89
+ dragStartIndex = null;
90
+ };
91
+
92
+ const isInvalidMove = (start, end) => {
93
+ const disabledIndices = Array.from(container.value.children)
94
+ .map((child, index) => (child.classList.contains(props.disabledClass) ? index : null))
95
+ .filter(index => index !== null);
96
+ return disabledIndices.includes(end);
97
+ };
98
+
99
+ container.value.addEventListener('dragstart', handleDragStart);
100
+ container.value.addEventListener('dragover', handleDragOver);
101
+ container.value.addEventListener('drop', handleDrop);
102
+ container.value.addEventListener('touchstart', handleTouchStart);
103
+ container.value.addEventListener('touchmove', handleTouchMove);
104
+ container.value.addEventListener('touchend', handleTouchEnd);
105
+ });
106
+ </script>
107
+
108
+ <style>
109
+ .draggable-container {
110
+ display: flex;
111
+ flex-direction: column;
112
+ }
113
+ </style>
@@ -43,7 +43,7 @@ function clickedOutside () {
43
43
  }
44
44
  </script>
45
45
 
46
- <style scoped>
46
+ <style >
47
47
  .dropdown-content {
48
48
  display: block;
49
49
  position: absolute;
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
 
3
- <div v-if="search || date || sort" class="flex-nowrap flex gap-thin mn-b-thin">
3
+ <div v-if="search || date || (sort && !sort.hideButton)" class="flex-nowrap flex gap-thin">
4
4
 
5
5
  <BlockSearch
6
6
  v-if="search"
@@ -12,7 +12,10 @@
12
12
  <template
13
13
  v-if="filter"
14
14
  >
15
- <div class="flex-center flex pd-thin bg-light radius-extra aspect-1x1 h-100">
15
+ <div
16
+ :class="filter.class || 'bg-light'"
17
+ class="flex-center flex pd-thin bg-light radius-extra aspect-1x1 h-100"
18
+ >
16
19
  <IconFilter @click="() => filter.active = !filter.active" class="w-1r h-auto"/>
17
20
  </div>
18
21
 
@@ -55,7 +58,7 @@
55
58
  </Dropdown>
56
59
 
57
60
  <Dropdown
58
- v-if="sort"
61
+ v-if="sort && !sort.hideButton"
59
62
  :label="{
60
63
  component: ButtonSort,
61
64
  props: { order: sort.order },
@@ -76,21 +79,23 @@
76
79
  </div>
77
80
 
78
81
  <TransitionGroup
79
- v-if="isLoading"
82
+
83
+ v-if="isLoading"
80
84
  tag="ul"
81
85
  name="scaleTransition"
82
- class="o-hidden bg-light radius-big"
83
- :class="$attrs.class"
84
86
  >
85
87
  <SkeletonEvent
86
88
  v-if="isLoading"
87
89
  v-for="i in currentLimit"
88
90
  :key="'skeleton-' + i"
91
+ class="mn-b-small radius-big o-hidden d-block"
89
92
  />
90
93
  </TransitionGroup>
91
94
 
92
- <transition
93
- name="scaleTransition"
95
+ <TransitionGroup
96
+ tag="ul"
97
+ v-if="!isLoading && itemsList.length < 1"
98
+ name="feed"
94
99
  >
95
100
  <EmptyState
96
101
  v-if="!isLoading && itemsList.length < 1"
@@ -100,7 +105,7 @@
100
105
  :callback="states.empty.callback"
101
106
  class="pd-medium mn-b-thin bg-light radius-big"
102
107
  />
103
- </transition>
108
+ </TransitionGroup>
104
109
 
105
110
  <TransitionGroup
106
111
  tag="ul"
@@ -297,7 +302,7 @@ watch(() => sort.value?.order, (newVal, oldVal) => {
297
302
  currentSkip.value = 0
298
303
  fetchItems();
299
304
  }
300
- }, { deep: true });
305
+ });
301
306
 
302
307
  watch(() => sort.value?.param, (newVal, oldVal) => {
303
308
 
@@ -305,7 +310,7 @@ watch(() => sort.value?.param, (newVal, oldVal) => {
305
310
  currentSkip.value = 0
306
311
  fetchItems();
307
312
  }
308
- }, { deep: true });
313
+ });
309
314
 
310
315
 
311
316
  watch(() => props.options, (newVal, oldVal) => {
@@ -318,7 +323,8 @@ watch(() => props.options, (newVal, oldVal) => {
318
323
  newVal.status !== oldVal.status ||
319
324
  newVal.hidden !== oldVal.hidden ||
320
325
  newVal.type !== oldVal.type ||
321
- newVal.tags !== oldVal.tags
326
+ newVal.tags !== oldVal.tags ||
327
+ newVal.following !== oldVal.following
322
328
  ) {
323
329
  currentSkip.value = 0
324
330
  fetchItems();
@@ -9,13 +9,23 @@
9
9
  @blur="checkInput"
10
10
  class="w-100 p-medium t-regular uppercase pd-small"
11
11
  />
12
- <button v-if="action" @click="emitAction" class="t-nowrap t-medium radius-big uppercase cursor-pointer pd-l-semi pd-r-semi w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main" v-html="action"/>
12
+ <button
13
+ v-if="action"
14
+ @click="emitAction"
15
+ class="t-nowrap t-medium radius-big uppercase cursor-pointer flex flex-v-center pd-r-small pd-l-small w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main"
16
+ >
17
+ <span>{{action}}</span>
18
+ <IconArrow class="mn-l-thin radius-extra bg-white i-medium"/>
19
+
20
+
21
+ </button>
13
22
  </div>
14
23
  </template>
15
24
 
16
25
  <script setup="props">
17
26
  import { ref, watchEffect, onMounted } from 'vue'
18
27
  import Field from '@pf/src/components/Field/Field.vue'
28
+ import IconArrow from '@pf/src/modules/icons/navigation/IconArrow.vue'
19
29
  import { useI18n } from 'vue-i18n'
20
30
 
21
31
  const props = defineProps({
@@ -608,7 +608,7 @@
608
608
  }
609
609
  </script>
610
610
 
611
- <style scoped>
611
+ <style lang="scss">
612
612
  .vue3-reactive-tel-input{
613
613
  display:flex
614
614
  }
@@ -190,4 +190,5 @@
190
190
 
191
191
  <!-- js and scss resources → I separated it into different files, because they became huge -->
192
192
  <script src="./vue-tags-input.js"></script>
193
- <style lang="scss" src="./vue-tags-input.scss" scoped></style>
193
+
194
+ <style lang="scss" src="./vue-tags-input.scss" ></style>
@@ -27,7 +27,7 @@ export default {
27
27
 
28
28
  </script>
29
29
 
30
- <style lang="css" scoped>
30
+ <style lang="css" >
31
31
  .ti-tag-input {
32
32
  background-color: transparent;
33
33
  color: inherit;
@@ -154,7 +154,7 @@ async function setUserLocation() {
154
154
  </script>
155
155
 
156
156
 
157
- <style scoped>
157
+ <style >
158
158
  .my-location-button {
159
159
  position: absolute;
160
160
  right: 10px;
@@ -96,7 +96,7 @@ const initialize = () => {
96
96
  };
97
97
  </script>
98
98
 
99
- <style scoped>
99
+ <style>
100
100
  .photo-container {
101
101
  width: 100%;
102
102
  height: 100%;
@@ -165,8 +165,8 @@
165
165
  });
166
166
  </script>
167
167
 
168
- <style scoped>
169
- canvas {
168
+ <style >
169
+ #glcanvas {
170
170
  width: 100%;
171
171
  height: 100%;
172
172
  }
@@ -14,11 +14,7 @@
14
14
  </div>
15
15
  </template>
16
16
 
17
- <style scoped>
18
-
19
- </style>
20
-
21
- <script setup scoped>
17
+ <script setup >
22
18
  import { ref, onMounted } from 'vue'
23
19
  import { useRouter } from 'vue-router'
24
20
  import { useI18n } from 'vue-i18n'
@@ -5,7 +5,7 @@
5
5
  </div>
6
6
 
7
7
  <transition name="collapse">
8
- <div v-if="showSpoiler" class="spoiler">
8
+ <div v-show="showSpoiler" class="spoiler">
9
9
  <slot name="content"></slot>
10
10
  </div>
11
11
  </transition>
@@ -38,7 +38,4 @@ const isTruncated = computed(() => props.text.length > props.maxLen);
38
38
  // Вычисляем текст для кнопки "Показать больше/Скрыть"
39
39
  const showMoreText = computed(() => showFull.value ? 'Hide' : 'Show more');
40
40
 
41
- </script>
42
-
43
- <style scoped>
44
- </style>
41
+ </script>
@@ -44,7 +44,7 @@ function hideTooltip() {
44
44
  }
45
45
  </script>
46
46
 
47
- <style scoped>
47
+ <style >
48
48
  .tooltip-container {
49
49
  position: relative;
50
50
  display: inline-block;
@@ -48,7 +48,10 @@ const emit = defineEmits(['update:field', 'focus', 'blur', 'file-change']);
48
48
  const props = defineProps({
49
49
  field: String,
50
50
  label: null,
51
- type: 'file',
51
+ type: {
52
+ type: String,
53
+ default: 'file'
54
+ },
52
55
  placeholder: 'Upload a file',
53
56
  validation: false,
54
57
  uploadPath: {
@@ -80,13 +83,12 @@ async function onFileChange(e) {
80
83
  try {
81
84
  const $axios = axios.create({baseURL: process.env.API_URL, withCredentials: true})
82
85
 
83
- let response = await $axios.post(`/api/upload/file?folderName=${encodeURIComponent(props.uploadPath)}`, formData, {
86
+ let response = await $axios.post(`/api/upload/${props.type}?folderName=${encodeURIComponent(props.uploadPath)}`, formData, {
84
87
  headers: {
85
88
  "Content-Type": "multipart/form-data"
86
89
  }
87
90
  });
88
91
 
89
- console.log(response.data)
90
92
  fileURL.value = response.data[0].filepath;
91
93
  emit('file-change', fileURL.value);
92
94
  } catch (error) {
@@ -241,8 +241,6 @@ const controllerFactory = (db) => {
241
241
 
242
242
  const defaultAccesses = new Department
243
243
 
244
- console.log(defaultAccesses)
245
-
246
244
  const accessData = isOwner ? defaultAccesses.accesses : (depts.find(dept => dept.organization.toString() === orgId) || {}).accesses;
247
245
 
248
246
  Object.keys(accessData).forEach(key => {
@@ -231,7 +231,7 @@
231
231
  // Cookies
232
232
  const optionsDefault = {
233
233
  development: { secure: false, expires: 7, sameSite: 'Lax' },
234
- production: { expires: 7, path: '/', domain: process.env.API_URL, sameSite: 'none', secure: true }
234
+ production: { expires: 7, path: '/', domain: process.env.DOMAIN_URL, sameSite: 'none', secure: true }
235
235
  };
236
236
 
237
237
  async function getCookie(name) {
@@ -263,7 +263,7 @@
263
263
  Preferences.remove({ key: name });
264
264
  } else {
265
265
  // Для веб-версии
266
- const options = env === 'production' ? { domain: process.env.API_URL } : {};
266
+ const options = env === 'production' ? { domain: process.env.DOMAIN_URL } : {};
267
267
  Cookies.remove(name, options);
268
268
  }
269
269
  }
@@ -0,0 +1,4 @@
1
+ # Дефолтное состояние
2
+ Дефолтное состояние определяется через query указанное в роуте, которое передается в стор модуля. Механизм считывания query находится в lifecycle onMounted компонента Blog.vue. Если query нет, то он берет дефолтное значение из стора. Period и tags назначаются на null и [] в lifecycle onMounted компонента Blog.vue.
3
+
4
+ Для блока с периодом (Topic for $period) используется route.query.period, если он не указан - то Period назначаются на null в lifecycle onMounted компонента Blog.vue
@@ -6,7 +6,6 @@ import Blog from './components/pages/Blog.vue';
6
6
  import FooterBlogpost from './components/blocks/FooterBlogpost.vue';
7
7
  import Activity from './components/blocks/Activity.vue';
8
8
  import CardBlogpost from './components/blocks/CardBlogpost.vue';
9
- import Feed from './components/sections/Feed.vue';
10
9
  import JoinUs from './components/sections/JoinUs.vue';
11
10
  import Comments from './components/sections/Comments.vue';
12
11
  import HotPosts from './components/sections/HotPosts.vue';
@@ -28,7 +27,6 @@ export {
28
27
  FooterBlogpost,
29
28
  Activity,
30
29
  CardBlogpost,
31
- Feed,
32
30
  JoinUs,
33
31
  Comments,
34
32
  HotPosts,