@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.
- package/dist/auth.server.js +0 -1
- package/dist/auth.server.mjs +0 -1
- package/dist/community.server.js +172 -31
- package/dist/community.server.mjs +172 -31
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +38 -4
- package/dist/files.server.mjs +38 -4
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/main-CI9l9xMs.js +92 -0
- package/dist/main-DPg58GOU.mjs +14509 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +4 -3
- package/dist/organizations.server.mjs +4 -3
- package/dist/products.server.js +2 -1
- package/dist/products.server.mjs +2 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +12 -13
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +14 -15
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +54 -71
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +86 -76
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +71 -80
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +27 -28
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +119 -112
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +22 -22
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +27 -27
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +39 -38
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +112 -85
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -35
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +29 -29
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +53 -35
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +154 -77
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +14 -14
- package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
- package/dist/queryProcessor-iewDZq_f.js +178 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +80 -27
- package/dist/wallet.server.mjs +80 -27
- package/dist/web-DZUec7pP.js +1 -0
- package/dist/web-krQQeSb6.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/Chips/Chips.vue +1 -1
- package/src/components/Completion/Completion.vue +1 -4
- package/src/components/DatePicker/Calendar.vue +1 -1
- package/src/components/Draggable/Draggable.vue +113 -0
- package/src/components/Dropdown/Dropdown.vue +1 -1
- package/src/components/Feed/Feed.vue +18 -12
- package/src/components/FieldBig/FieldBig.vue +11 -1
- package/src/components/FieldPhone/FieldPhone.vue +1 -1
- package/src/components/FieldTags/FieldTags.vue +2 -1
- package/src/components/FieldTags/tag-input.vue +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/components/Shader/Shader.vue +2 -2
- package/src/components/Slider/Slider.vue +1 -5
- package/src/components/Spoiler/Spoiler.vue +1 -1
- package/src/components/Text/Text.vue +1 -4
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/Upload/Upload.vue +5 -3
- package/src/modules/auth/controllers/auth.controller.js +0 -2
- package/src/modules/auth/store/auth.js +2 -2
- package/src/modules/community/DOCUMENTATION.MD +4 -0
- package/src/modules/community/community.client.js +0 -2
- package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
- package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
- package/src/modules/community/components/layouts/Community.vue +15 -11
- package/src/modules/community/components/pages/Blog.vue +25 -32
- package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
- package/src/modules/community/components/sections/Comment.vue +123 -0
- package/src/modules/community/components/sections/Comments.vue +90 -19
- package/src/modules/community/components/sections/HotPosts.vue +3 -6
- package/src/modules/community/controllers/blog.controller.js +1 -1
- package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
- package/src/modules/community/controllers/comments.controller.js +187 -38
- package/src/modules/community/controllers/comments.controller.populate.js +180 -0
- package/src/modules/community/models/comment.model.js +15 -0
- package/src/modules/community/store/blogposts.js +20 -2
- package/src/modules/constructor/components/elements/Audio.vue +28 -40
- package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
- package/src/modules/constructor/components/elements/Video.vue +10 -18
- package/src/modules/constructor/components/sections/Constructor.vue +54 -47
- package/src/modules/files/controllers/files.controller.js +2 -0
- package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
- package/src/modules/files/routes/files.routes.js +8 -0
- package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
- package/src/modules/globals/components/partials/Header.vue +12 -7
- package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
- package/src/modules/icons/logos/Logotype.vue +8 -6
- package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
- package/src/modules/marketplace/store/marketplace.js +2 -8
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +33 -5
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
- package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
- package/src/modules/organizations/components/sections/Publics.vue +2 -2
- package/src/modules/organizations/controllers/memberships.controller.js +2 -3
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/store/memberships.js +4 -1
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
- package/src/modules/products/models/product.model.js +2 -1
- package/src/modules/spots/components/layouts/Spots.vue +0 -3
- package/src/modules/spots/components/pages/Map.vue +13 -3
- package/src/modules/users/components/blocks/CardUser.vue +2 -2
- package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
- package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
- package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
- package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
- package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
- package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
- package/src/modules/wallet/localization/Wallet.json +22 -0
- package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
- package/src/styles/base/all.scss +16 -26
- package/src/styles/config.scss +70 -34
- package/src/styles/typography.scss +5 -5
- package/src/modules/community/components/sections/Feed.vue +0 -148
- package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
- package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
@@ -1,93 +1,103 @@
|
|
1
|
-
import { resolveComponent as
|
1
|
+
import { resolveComponent as x, openBlock as n, createElementBlock as h, createElementVNode as t, normalizeClass as u, unref as s, createVNode as r, createTextVNode as l, createCommentVNode as w, withCtx as m, Transition as y, createBlock as _, resolveDynamicComponent as C, Fragment as B, renderList as $ } from "vue";
|
2
2
|
import { useRoute as F, useRouter as z } from "vue-router";
|
3
3
|
import N from "../../../../components/Select/Select.vue2.js";
|
4
4
|
import P from "../../../../components/Feed/Feed.vue.js";
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import { state as
|
11
|
-
import { state as
|
12
|
-
import { actions as
|
13
|
-
import { mutations as
|
14
|
-
const
|
5
|
+
import A from "../../../organizations/components/blocks/CardOrganization.vue.js";
|
6
|
+
import M from "../../../icons/entities/IconFeatured.vue.js";
|
7
|
+
import R from "../../../icons/entities/IconPopular.vue.js";
|
8
|
+
import U from "../../../icons/entities/IconRecent.vue.js";
|
9
|
+
import V from "../../../icons/entities/IconFollowing.vue.js";
|
10
|
+
import { state as o } from "../../store/blogposts.js";
|
11
|
+
import { state as f } from "../../../auth/store/auth.js";
|
12
|
+
import { actions as O, state as k } from "../../../organizations/store/organizations.js";
|
13
|
+
import { mutations as T } from "../../../organizations/store/memberships.js";
|
14
|
+
const E = {
|
15
15
|
style: { "grid-template-columns": "2fr 4fr 2fr" },
|
16
16
|
class: "cols-3 gap-thin pd-thin"
|
17
|
-
}, q = { class: "align-self-start pos-sticky pos-t-0 w-100 bg-light radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex" }, D = { class: "pos-relative" }, I = { class: "bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex" }, L = { class: "pos-relative flex-v-center flex-nowrap flex" },
|
17
|
+
}, q = { class: "align-self-start pos-sticky pos-t-0 w-100 bg-light radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex" }, D = { class: "pos-relative" }, I = { class: "bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex" }, L = { class: "pos-relative flex-v-center flex-nowrap flex" }, S = /* @__PURE__ */ t("span", { class: "mn-r-thin" }, "Topics for ", -1), j = { class: "align-self-start bg-light radius-big pd-medium" }, G = { class: "gap-thin flex-nowrap flex" }, H = /* @__PURE__ */ t("p", { class: "t-medium mn-b-small" }, "Popular Communities", -1), ne = {
|
18
18
|
__name: "Community",
|
19
19
|
setup(J) {
|
20
|
-
const
|
21
|
-
|
20
|
+
const i = F(), p = z();
|
21
|
+
i.params.category === "popular" && (o.sort.param = "views"), i.params.category === "new" && (o.sort.param = "createdAt");
|
22
|
+
const v = ({ membership: b, status: e, target: d }, g, a) => {
|
23
|
+
T.handleMembershipUpdate(k.current, b, e, d, g, a);
|
22
24
|
};
|
23
|
-
return (
|
24
|
-
const
|
25
|
-
return
|
26
|
-
|
27
|
-
|
28
|
-
class:
|
29
|
-
onClick:
|
25
|
+
return (b, e) => {
|
26
|
+
const d = x("router-link"), g = x("router-view");
|
27
|
+
return n(), h("div", E, [
|
28
|
+
t("ul", q, [
|
29
|
+
t("li", {
|
30
|
+
class: u([{ "t-black bg-white": s(i).params.category === "featured" }, "cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"]),
|
31
|
+
onClick: e[0] || (e[0] = () => {
|
32
|
+
o.sort.param = "createdAt", s(p).push({ name: "Blog", params: { category: "featured" } });
|
33
|
+
})
|
30
34
|
}, [
|
31
|
-
|
32
|
-
|
35
|
+
r(M, { class: "i-medium mn-r-thin t-transp" }),
|
36
|
+
l(" Featured ")
|
33
37
|
], 2),
|
34
|
-
|
35
|
-
class:
|
36
|
-
onClick:
|
38
|
+
t("li", {
|
39
|
+
class: u([{ "t-black bg-white": s(i).params.category === "popular" }, "cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),
|
40
|
+
onClick: e[1] || (e[1] = () => {
|
41
|
+
o.sort.param = "views", s(p).push({ name: "Blog", params: { category: "popular" } });
|
42
|
+
})
|
37
43
|
}, [
|
38
|
-
|
39
|
-
|
44
|
+
r(R, { class: "i-medium mn-r-thin t-transp" }),
|
45
|
+
l(" Popular ")
|
40
46
|
], 2),
|
41
|
-
|
42
|
-
class:
|
43
|
-
onClick:
|
47
|
+
t("li", {
|
48
|
+
class: u([{ "t-black bg-white": s(i).params.category === "new" }, "cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),
|
49
|
+
onClick: e[2] || (e[2] = () => {
|
50
|
+
o.sort.param = "createdAt", s(p).push({ name: "Blog", params: { category: "new" } });
|
51
|
+
})
|
44
52
|
}, [
|
45
|
-
|
46
|
-
|
53
|
+
r(U, { class: "i-medium mn-r-thin t-transp" }),
|
54
|
+
l(" Recent ")
|
47
55
|
], 2),
|
48
|
-
|
56
|
+
f.user._id ? (n(), h("li", {
|
49
57
|
key: 0,
|
50
|
-
class:
|
51
|
-
onClick:
|
58
|
+
class: u([{ "t-black bg-white": s(i).params.category === "following" }, "cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),
|
59
|
+
onClick: e[3] || (e[3] = () => {
|
60
|
+
o.sort.param = "createdAt", s(p).push({ name: "Blog", params: { category: "following" } });
|
61
|
+
})
|
52
62
|
}, [
|
53
|
-
|
54
|
-
|
55
|
-
], 2)) :
|
56
|
-
|
63
|
+
r(V, { class: "i-medium mn-r-thin t-transp" }),
|
64
|
+
l(" Following ")
|
65
|
+
], 2)) : w("", !0),
|
66
|
+
r(d, {
|
57
67
|
to: {
|
58
68
|
name: "Create BlogPost"
|
59
69
|
},
|
60
70
|
class: "button t-medium mn-t-small bg-main w-100"
|
61
71
|
}, {
|
62
|
-
default:
|
63
|
-
|
72
|
+
default: m(() => [
|
73
|
+
l(" Create Post ")
|
64
74
|
]),
|
65
75
|
_: 1
|
66
76
|
})
|
67
77
|
]),
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
options: ["today", "week", "month", "year"],
|
74
|
-
select:
|
75
|
-
"onUpdate:select":
|
76
|
-
placeholder: "
|
77
|
-
class: "t-semi pos-relative w-max bg-main t-black pd-thin radius-medium
|
78
|
+
t("section", D, [
|
79
|
+
t("header", I, [
|
80
|
+
t("h3", L, [
|
81
|
+
S,
|
82
|
+
r(N, {
|
83
|
+
options: ["today", "week", "month", "year", "all time"],
|
84
|
+
select: o.filter.period,
|
85
|
+
"onUpdate:select": e[4] || (e[4] = (a) => o.filter.period = a),
|
86
|
+
placeholder: "all time",
|
87
|
+
class: "t-semi pos-relative w-max bg-main t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10"
|
78
88
|
}, null, 8, ["select"])
|
79
89
|
])
|
80
90
|
]),
|
81
|
-
|
82
|
-
default:
|
83
|
-
|
91
|
+
r(g, null, {
|
92
|
+
default: m(({ Component: a, route: c }) => [
|
93
|
+
r(y, {
|
84
94
|
name: "scaleIn",
|
85
95
|
mode: "out-in"
|
86
96
|
}, {
|
87
|
-
default:
|
88
|
-
(
|
97
|
+
default: m(() => [
|
98
|
+
(n(), _(C(a), {
|
89
99
|
ref: "page",
|
90
|
-
key:
|
100
|
+
key: c.query
|
91
101
|
}))
|
92
102
|
]),
|
93
103
|
_: 2
|
@@ -96,25 +106,25 @@ const S = {
|
|
96
106
|
_: 1
|
97
107
|
})
|
98
108
|
]),
|
99
|
-
|
100
|
-
|
109
|
+
t("div", j, [
|
110
|
+
t("div", G, [
|
101
111
|
H,
|
102
|
-
|
112
|
+
f.user._id ? (n(), _(d, {
|
103
113
|
key: 0,
|
104
114
|
to: {
|
105
115
|
name: "Create Organization"
|
106
116
|
},
|
107
117
|
class: "t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"
|
108
118
|
}, {
|
109
|
-
default:
|
110
|
-
|
119
|
+
default: m(() => [
|
120
|
+
l(" + ")
|
111
121
|
]),
|
112
122
|
_: 1
|
113
|
-
})) :
|
123
|
+
})) : w("", !0)
|
114
124
|
]),
|
115
|
-
|
116
|
-
default:
|
117
|
-
|
125
|
+
r(y, { name: "slide-fade" }, {
|
126
|
+
default: m(() => [
|
127
|
+
r(P, {
|
118
128
|
states: {
|
119
129
|
empty: {
|
120
130
|
title: "No Organization Found",
|
@@ -122,28 +132,28 @@ const S = {
|
|
122
132
|
}
|
123
133
|
},
|
124
134
|
store: {
|
125
|
-
read: (
|
135
|
+
read: (a) => O.read(a),
|
126
136
|
state: k
|
127
137
|
},
|
128
138
|
options: {
|
129
|
-
user:
|
139
|
+
user: f.user._id,
|
130
140
|
sort: "numberOfMemberships",
|
131
141
|
contain: ["blogposts"],
|
132
142
|
limit: 10
|
133
143
|
}
|
134
144
|
}, {
|
135
|
-
default:
|
136
|
-
items:
|
145
|
+
default: m(({
|
146
|
+
items: a
|
137
147
|
}) => [
|
138
|
-
(
|
139
|
-
key:
|
140
|
-
organization:
|
141
|
-
user:
|
148
|
+
(n(!0), h(B, null, $(a, (c) => (n(), _(A, {
|
149
|
+
key: c._id,
|
150
|
+
organization: c,
|
151
|
+
user: f.user,
|
142
152
|
showProducts: !1,
|
143
153
|
showRating: !1,
|
144
154
|
showFeatured: !1,
|
145
155
|
showFollowers: !1,
|
146
|
-
onUpdateMembership:
|
156
|
+
onUpdateMembership: v,
|
147
157
|
class: "mn-b-thin w-100 pd-0 bg-white radius-big o-hidden"
|
148
158
|
}, null, 8, ["organization", "user"]))), 128))
|
149
159
|
]),
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const p=require("../../../../components/Feed/Feed.vue.cjs"),g=require("../blocks/CardBlogpost.vue.cjs"),u=require("../../store/blogposts.cjs"),l=require("../../../auth/store/auth.cjs"),f={class:"bg-white"},y={__name:"Blog",setup(b){const s=c.useRoute(),d=c.useRouter();return e.onMounted(()=>{if(s.query){const o=s.query,a={tags:o.tags?o.tags.split(","):[],period:o.period?o.period:null};u.state.filter=a}}),e.watch(()=>u.state.filter,(o,a)=>{const t={...s.query};Object.keys(a).forEach(n=>{t[n]&&delete t[n]});const i=Object.fromEntries(Object.entries(o).filter(([n,r])=>Array.isArray(r)&&r.length>0||typeof r=="string"&&r).map(([n,r])=>[n,Array.isArray(r)?r.join(","):r]));Object.assign(t,i),d.replace({query:t})},{deep:!0}),(o,a)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(p.default,{sort:u.state.sort,"onUpdate:sort":a[0]||(a[0]=t=>u.state.sort=t),showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:t=>u.read(t)},options:{limit:15,category:e.unref(s).params.category,period:e.unref(s).query.period,status:"published",user:l.state.user._id,following:e.unref(s).params.category==="following"?l.state.user._id:null},class:"mobile:w-50 desktop:w-100 tablet:w-75 row-1 gap-thin"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,i=>(e.openBlock(),e.createBlock(g.default,{key:i._id,blogpost:i,user:l.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["sort","store","options"])]))}};exports.default=y;
|
@@ -1,42 +1,72 @@
|
|
1
|
-
import { onMounted as
|
2
|
-
import { useRoute as
|
1
|
+
import { onMounted as d, watch as f, openBlock as l, createElementBlock as c, createVNode as g, unref as p, withCtx as y, Fragment as _, renderList as b, createBlock as h } from "vue";
|
2
|
+
import { useRoute as w, useRouter as k } from "vue-router";
|
3
3
|
import "vue-i18n";
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
/* empty css */
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import { state as
|
9
|
-
|
6
|
+
import q from "../../../../components/Feed/Feed.vue.js";
|
7
|
+
import j from "../blocks/CardBlogpost.vue.js";
|
8
|
+
import { state as n, read as B } from "../../store/blogposts.js";
|
9
|
+
import { state as u } from "../../../auth/store/auth.js";
|
10
|
+
const x = { class: "bg-white" }, P = {
|
10
11
|
__name: "Blog",
|
11
|
-
setup(
|
12
|
-
const
|
13
|
-
return
|
14
|
-
if (
|
15
|
-
const r =
|
12
|
+
setup(A) {
|
13
|
+
const o = w(), m = k();
|
14
|
+
return d(() => {
|
15
|
+
if (o.query) {
|
16
|
+
const r = o.query, s = {
|
16
17
|
tags: r.tags ? r.tags.split(",") : [],
|
17
|
-
period: r.period ? r.period :
|
18
|
+
period: r.period ? r.period : null
|
18
19
|
};
|
19
|
-
|
20
|
+
n.filter = s;
|
20
21
|
}
|
21
|
-
}),
|
22
|
-
const
|
23
|
-
Object.keys(s).forEach((
|
24
|
-
i
|
22
|
+
}), f(() => n.filter, (r, s) => {
|
23
|
+
const e = { ...o.query };
|
24
|
+
Object.keys(s).forEach((i) => {
|
25
|
+
e[i] && delete e[i];
|
25
26
|
});
|
26
|
-
const
|
27
|
-
Object.entries(r).filter(([
|
27
|
+
const a = Object.fromEntries(
|
28
|
+
Object.entries(r).filter(([i, t]) => Array.isArray(t) && t.length > 0 || typeof t == "string" && t).map(([i, t]) => [i, Array.isArray(t) ? t.join(",") : t])
|
28
29
|
);
|
29
|
-
Object.assign(
|
30
|
-
}, { deep: !0 }), (r, s) => (
|
31
|
-
g(
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
30
|
+
Object.assign(e, a), m.replace({ query: e });
|
31
|
+
}, { deep: !0 }), (r, s) => (l(), c("section", x, [
|
32
|
+
g(q, {
|
33
|
+
sort: n.sort,
|
34
|
+
"onUpdate:sort": s[0] || (s[0] = (e) => n.sort = e),
|
35
|
+
showLoadMore: !1,
|
36
|
+
states: {
|
37
|
+
empty: {
|
38
|
+
title: "No Blog Posts Found",
|
39
|
+
description: "Currently, there are no posts available in this blog. Please check back later."
|
40
|
+
}
|
41
|
+
},
|
42
|
+
store: {
|
43
|
+
read: (e) => B(e)
|
44
|
+
},
|
45
|
+
options: {
|
46
|
+
limit: 15,
|
47
|
+
category: p(o).params.category,
|
48
|
+
period: p(o).query.period,
|
49
|
+
status: "published",
|
50
|
+
user: u.user._id,
|
51
|
+
following: p(o).params.category === "following" ? u.user._id : null
|
52
|
+
},
|
53
|
+
class: "mobile:w-50 desktop:w-100 tablet:w-75 row-1 gap-thin"
|
54
|
+
}, {
|
55
|
+
default: y(({
|
56
|
+
items: e
|
57
|
+
}) => [
|
58
|
+
(l(!0), c(_, null, b(e, (a) => (l(), h(j, {
|
59
|
+
key: a._id,
|
60
|
+
blogpost: a,
|
61
|
+
user: u.user._id,
|
62
|
+
class: "h-max-40r mn-b-medium"
|
63
|
+
}, null, 8, ["blogpost", "user"]))), 128))
|
64
|
+
]),
|
65
|
+
_: 1
|
66
|
+
}, 8, ["sort", "store", "options"])
|
37
67
|
]));
|
38
68
|
}
|
39
69
|
};
|
40
70
|
export {
|
41
|
-
|
71
|
+
P as default
|
42
72
|
};
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue")
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const w=require("../../../constructor/components/sections/Constructor.vue.cjs"),V=require("../../../../components/Popup/Popup.vue2.cjs");;/* empty css */;/* empty css */const N=require("../../../../components/FieldTags/BlockTags.vue.cjs"),B=require("../../../../components/Checkbox/Checkbox.vue.cjs"),y=require("../../../../components/Field/Field.vue2.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),C=require("../../../../components/Button/Button.vue2.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),x=require("../../../organizations/store/organizations.cjs"),q={class:"pd-thin"},E={style:{"min-height":"100%"},class:"w-100 bg-light pd-big radius-big"},T=e.createElementVNode("div",{class:"w-full h-full"},null,-1),z={key:0,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},A={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},O=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),U=e.createElementVNode("h5",{class:"mn-b-thin"},"Add source:",-1),D=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),M={key:0,class:"mn-b-thin"},S={key:1,class:"mn-b-medium br-grey-transp-25 br-2px br-solid pd-small radius-big"},R={__name:"CreateBlogPost",setup($){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{const o=await x.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});if(p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo})),s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo})});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function h(){d.value=!0}function v(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",t.value.name=t.value.content[0].content,s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.name=t.value.content[0].content,s.params.url?n.update(t.value).then(o=>{console.log(t.value),u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",q,[e.createElementVNode("section",E,[T,e.unref(t)?(e.openBlock(),e.createBlock(w.default,{key:0,content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"scaleIn"},{default:e.withCtx(()=>[e.unref(t)?(e.openBlock(),e.createElementBlock("section",z,[e.createElementVNode("div",A,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>h()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(V.default,{onClosePopup:v,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[O,e.createVNode(N.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags,class:"mn-b-small"},null,8,["tags"]),U,e.createVNode(y.default,{field:e.unref(t).source,"onUpdate:field":a[5]||(a[5]=l=>e.unref(t).source=l),placeholder:"Add full link to the source",class:"mn-b-medium bg-light radius-medium pd-small"},null,8,["field"]),D,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[6]||(a[6]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-light radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",M,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(B.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[7]||(a[7]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(C.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=R;
|