@ozdao/prometheus-framework 0.2.38 → 0.2.40
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +1 -2
- package/dist/auth.server.mjs +1 -2
- package/dist/files.server.js +1 -2
- package/dist/files.server.mjs +1 -2
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/mailing-10560277.mjs +78 -0
- package/dist/mailing-902d13d5.js +77 -0
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +225 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -225
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +13 -9
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +26 -22
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +29 -30
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +76 -2
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -76
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -70
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -95
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +69 -0
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +10 -7
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +18 -15
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +16 -13
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +23 -20
- package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +8 -8
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +18 -20
- 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 +88 -62
- 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 +97 -68
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +35 -34
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +4 -4
- 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 +65 -19
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +8 -7
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -65
- 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 +64 -70
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.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 +5 -5
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +6 -5
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +43 -42
- package/dist/prometheus-framework/src/modules/icons/entities/IconFeatured.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconFeatured.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconFollowing.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconFollowing.vue.js +47 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconPopular.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconPopular.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconRecent.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconRecent.vue.js +45 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconArrow.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconArrow.vue.js +32 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.js +25 -14
- package/dist/prometheus-framework/src/modules/icons/navigation/IconEllipsis.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconEllipsis.vue.js +44 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +90 -67
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
- 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 +45 -42
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- 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 +6 -6
- 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 +2 -2
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +60 -55
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.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 +18 -17
- 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 +20 -21
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
- 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 +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.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 +6 -6
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +37 -34
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +23 -23
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +6 -6
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +31 -30
- package/dist/prometheus-framework.cjs.js +20 -20
- package/dist/prometheus-framework.es.js +1003 -999
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Button/Button.vue +2 -3
- package/src/components/Chips/Chips.vue +9 -3
- package/src/components/Dropdown/Dropdown.vue +9 -3
- package/src/components/Feed/Feed.vue +7 -11
- package/src/components/Feed/Masonry.vue +177 -0
- package/src/components/FieldBig/FieldBig.vue +3 -3
- package/src/components/LocationSelection/LocationSelection.vue +1 -1
- package/src/components/Navigation/Navigation.vue +2 -0
- package/src/components/Shader/Shader.vue +161 -116
- package/src/components/Slider/Slider.vue +92 -0
- package/src/modules/applications/applications.client.js +2 -0
- package/src/modules/applications/components/sections/SubscribeNewsletter.vue +114 -0
- package/src/modules/applications/controllers/applications.controller.js +125 -136
- package/src/modules/applications/models/application.model.js +22 -7
- package/src/modules/applications/routes/applications.routes.js +29 -13
- package/src/modules/auth/components/pages/EnterCode.vue +4 -1
- package/src/modules/auth/components/pages/EnterPassword.vue +4 -1
- package/src/modules/auth/components/pages/ResetPassword.vue +4 -1
- package/src/modules/auth/components/pages/SignUp.vue +4 -1
- package/src/modules/auth/controllers/auth.controller.js +2 -3
- package/src/modules/auth/localization/SignUp.json +1 -1
- package/src/modules/auth/store/auth.js +3 -5
- package/src/modules/chats/components/blocks/ChatMessage.vue +3 -2
- package/src/modules/chats/components/pages/ChatPage.vue +6 -6
- package/src/modules/chats/components/sections/ChatWindow.vue +57 -12
- package/src/modules/chats/store/chat.store.js +6 -1
- package/src/modules/community/community.client.js +0 -2
- package/src/modules/community/components/blocks/CardBlogpost.vue +71 -33
- package/src/modules/community/components/layouts/Community.vue +63 -24
- package/src/modules/community/components/pages/Blog.vue +37 -0
- package/src/modules/community/components/pages/BlogPost.vue +5 -6
- package/src/modules/community/components/pages/Community.vue +1 -0
- package/src/modules/community/components/sections/Feed.vue +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +64 -24
- package/src/modules/community/components/sections/JoinUs.vue +4 -5
- package/src/modules/community/store/blogposts.js +1 -0
- package/src/modules/constructor/components/elements/Embed.vue +7 -6
- package/src/modules/constructor/components/elements/Image.vue +2 -2
- package/src/modules/constructor/components/elements/Textarea.vue +1 -1
- package/src/modules/constructor/components/sections/Constructor.vue +2 -18
- package/src/modules/files/middlewares/server/middlewareBusboy.js +1 -1
- package/src/modules/files/routes/files.routes.js +9 -1
- package/src/modules/globals/components/blocks/CardHeader.vue +6 -3
- package/src/modules/globals/utils/mailing.js +12 -0
- package/src/modules/icons/entities/IconEarn.vue +20 -0
- package/src/modules/icons/entities/IconFeatured.vue +14 -0
- package/src/modules/icons/entities/IconFollowing.vue +17 -0
- package/src/modules/icons/entities/IconPopular.vue +14 -0
- package/src/modules/icons/entities/IconRecent.vue +17 -0
- package/src/modules/icons/navigation/IconAdd.vue +1 -3
- package/src/modules/icons/navigation/IconArrow.vue +21 -0
- package/src/modules/icons/navigation/IconCheckmark.vue +16 -0
- package/src/modules/icons/navigation/IconChevronRight.vue +2 -2
- package/src/modules/icons/navigation/IconEdit.vue +16 -2
- package/src/modules/icons/navigation/IconEllipsis.vue +16 -0
- package/src/modules/icons/placeholders/PlaceholderChat.vue +9 -0
- package/src/modules/landing/components/sections/MobileApp.vue +38 -21
- package/src/modules/landing/components/sections/SectionEarn.vue +104 -0
- package/src/modules/landing/components/sections/SectionFeatures.vue +80 -0
- package/src/modules/landing/components/sections/{Guide.vue → SectionGuide.vue} +1 -1
- package/src/modules/landing/components/sections/SectionHeroToken.vue +138 -0
- package/src/modules/landing/components/sections/SectionRoadmap.vue +108 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +2 -2
- package/src/modules/orders/components/blocks/StatusHistory.vue +7 -1
- package/src/modules/orders/components/pages/Order.vue +3 -4
- package/src/modules/organizations/components/blocks/CardOrganization.vue +6 -6
- package/src/modules/organizations/components/pages/Organization.vue +1 -1
- package/src/modules/organizations/components/sections/DetailsTab.vue +42 -43
- package/src/modules/organizations/components/sections/Publics.vue +3 -4
- package/src/modules/products/components/sections/HeroRecommendation.vue +9 -170
- package/src/modules/products/components/sections/MenuSection.vue +4 -4
- package/src/modules/products/components/sections/PopularProducts.vue +3 -3
- package/src/modules/spots/components/layouts/Spots.vue +2 -2
- package/src/modules/wallet/components/pages/Wallet.vue +1 -1
- package/src/styles/base/all.scss +4 -0
- package/src/styles/base/backgrounds.scss +2 -2
- package/src/styles/base/shadow_transitions_hover_refactor.scss +11 -1
- package/src/styles/typography.scss +19 -12
- package/src/modules/community/components/sections/SubscribeNewsletter.vue +0 -67
- package/src/modules/constructor/components/elements/Youtube.vue +0 -52
- package/src/modules/landing/components/sections/HeroGovernance.vue +0 -156
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js
CHANGED
@@ -1,102 +1,128 @@
|
|
1
|
-
import { computed as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import $ from "
|
6
|
-
import
|
7
|
-
|
1
|
+
import { computed as u, resolveComponent as v, openBlock as t, createElementBlock as l, createBlock as f, withCtx as x, createVNode as r, createCommentVNode as s, normalizeClass as k, createElementVNode as m, createTextVNode as w, unref as B, toDisplayString as d, renderSlot as C } from "vue";
|
2
|
+
import P from "../../../globals/components/blocks/CardHeader.vue.js";
|
3
|
+
import V from "./FooterBlogpost.vue.js";
|
4
|
+
import E from "../../../../components/Text/Text.vue.js";
|
5
|
+
import $ from "../../../../components/Chips/Chips.vue.js";
|
6
|
+
import S from "../../../icons/navigation/IconEdit.vue.js";
|
7
|
+
import { useRouter as N } from "vue-router";
|
8
|
+
const R = { class: "pos-relative bg-grey radius-big flex-column flex" }, T = ["src"], j = {
|
8
9
|
key: 2,
|
9
10
|
class: "flex-center flex"
|
10
|
-
},
|
11
|
+
}, z = {
|
11
12
|
controls: "",
|
12
|
-
class: "mn-b-medium object-fit-cover w-100 h-20r"
|
13
|
-
},
|
13
|
+
class: "mn-b-medium object-fit-cover w-100 h-min-10r h-max-20r"
|
14
|
+
}, D = ["src"], I = { class: "pd-t-zero pd-medium" }, L = {
|
14
15
|
key: 0,
|
15
16
|
class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
|
16
|
-
},
|
17
|
+
}, U = {
|
17
18
|
key: 0,
|
18
19
|
class: "pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"
|
19
|
-
},
|
20
|
+
}, A = {
|
20
21
|
key: 1,
|
21
22
|
class: "mn-b-small t-transp p-big"
|
22
|
-
},
|
23
|
+
}, F = {
|
23
24
|
key: 2,
|
24
25
|
class: "mn-b-small h2"
|
25
|
-
},
|
26
|
+
}, Q = {
|
26
27
|
__name: "CardBlogpost",
|
27
|
-
props:
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
28
|
+
props: {
|
29
|
+
blogpost: {
|
30
|
+
type: Object
|
31
|
+
},
|
32
|
+
user: {
|
33
|
+
type: String
|
34
|
+
},
|
35
|
+
type: {
|
36
|
+
type: String
|
37
|
+
},
|
38
|
+
hideDescription: {
|
39
|
+
type: Boolean,
|
40
|
+
default: !1
|
41
|
+
}
|
42
|
+
},
|
43
|
+
setup(e) {
|
44
|
+
const h = N(), a = e, n = u(() => a.blogpost.content.find((o) => o.type === "ImageUpload")), i = u(() => a.blogpost.content.find((o) => o.type === "Video")), c = u(() => a.blogpost.content.find((o) => o.type === "Textarea"));
|
45
|
+
return (o, g) => {
|
46
|
+
var p, b;
|
47
|
+
const y = v("router-link");
|
48
|
+
return t(), l("article", R, [
|
49
|
+
e.user && e.user === e.blogpost.creator.target._id ? (t(), f(y, {
|
34
50
|
key: 0,
|
35
|
-
|
51
|
+
to: {
|
36
52
|
name: "Edit BlogPost",
|
37
53
|
params: {
|
38
|
-
url:
|
54
|
+
url: e.blogpost.url
|
39
55
|
}
|
40
|
-
}
|
41
|
-
class: "
|
42
|
-
}
|
43
|
-
|
56
|
+
},
|
57
|
+
class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
|
58
|
+
}, {
|
59
|
+
default: x(() => [
|
60
|
+
r(S, {
|
61
|
+
class: "i-regular",
|
62
|
+
classes: "fill-white"
|
63
|
+
})
|
64
|
+
]),
|
65
|
+
_: 1
|
66
|
+
}, 8, ["to"])) : s("", !0),
|
67
|
+
r(P, {
|
44
68
|
class: k({
|
45
|
-
"mn-b-small pd-medium":
|
46
|
-
"flex-child-order-last flex-child mn-l-small":
|
69
|
+
"mn-b-small pd-medium": e.type !== "short",
|
70
|
+
"flex-child-order-last flex-child mn-l-small": e.type === "short"
|
47
71
|
}),
|
48
|
-
entity:
|
72
|
+
entity: e.blogpost,
|
49
73
|
entityType: "blogpost",
|
50
|
-
user:
|
51
|
-
owner:
|
52
|
-
creator:
|
53
|
-
date:
|
74
|
+
user: e.user,
|
75
|
+
owner: e.blogpost.owner,
|
76
|
+
creator: e.blogpost.creator,
|
77
|
+
date: e.blogpost.createdAt
|
54
78
|
}, null, 8, ["class", "entity", "user", "owner", "creator", "date"]),
|
55
|
-
|
79
|
+
n.value && n.value.content && e.type !== "blogpostPage" ? (t(), l("img", {
|
56
80
|
key: 1,
|
57
|
-
src: (
|
81
|
+
src: (o.FILE_SERVER_URL || "") + n.value.content,
|
58
82
|
alt: "Blog post image",
|
59
|
-
class: "mn-b-medium object-fit-cover w-100 h-
|
60
|
-
}, null, 8,
|
61
|
-
!((
|
62
|
-
|
63
|
-
|
64
|
-
src:
|
83
|
+
class: "mn-b-medium object-fit-cover w-100 h-min-10r h-100"
|
84
|
+
}, null, 8, T)) : s("", !0),
|
85
|
+
!((p = n.value) != null && p.content) && i.value && i.value.content && e.type !== "blogpostPage" ? (t(), l("div", j, [
|
86
|
+
m("video", z, [
|
87
|
+
m("source", {
|
88
|
+
src: i.value.content,
|
65
89
|
type: "video/mp4"
|
66
|
-
}, null, 8,
|
67
|
-
|
90
|
+
}, null, 8, D),
|
91
|
+
w(" Your browser does not support the video tag. ")
|
68
92
|
])
|
69
93
|
])) : s("", !0),
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
94
|
+
m("section", I, [
|
95
|
+
e.type !== "blogpostPage" ? (t(), l("div", L, [
|
96
|
+
r(E, {
|
97
|
+
text: e.blogpost.name || "",
|
98
|
+
maxLen: 80,
|
99
|
+
class: "h3 d-block",
|
100
|
+
onClick: g[0] || (g[0] = (O) => B(h).push({
|
74
101
|
name: "BlogPost",
|
75
102
|
params: {
|
76
|
-
url:
|
103
|
+
url: e.blogpost.url
|
77
104
|
}
|
78
|
-
}))
|
79
|
-
|
80
|
-
|
81
|
-
t.blogpost.status === "draft" ? (o(), l("div", L, i(t.blogpost.status), 1)) : s("", !0)
|
105
|
+
}))
|
106
|
+
}, null, 8, ["text"]),
|
107
|
+
e.blogpost.status === "draft" ? (t(), l("div", U, d(e.blogpost.status), 1)) : s("", !0)
|
82
108
|
])) : s("", !0),
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
109
|
+
c.value && c.value.content && e.type !== "blogpostPage" && !e.hideDescription ? (t(), l("p", A, d(c.value.content.slice(0, 120)) + "... ", 1)) : s("", !0),
|
110
|
+
e.type === "blogpostPage" ? (t(), l("h3", F, d(e.blogpost.name), 1)) : s("", !0),
|
111
|
+
C(o.$slots, "default"),
|
112
|
+
e.type !== "short" && ((b = e.blogpost.tags) == null ? void 0 : b.length) > 0 ? (t(), f($, {
|
87
113
|
key: 3,
|
88
|
-
chips:
|
114
|
+
chips: e.blogpost.tags
|
89
115
|
}, null, 8, ["chips"])) : s("", !0)
|
90
116
|
]),
|
91
|
-
|
117
|
+
r(V, {
|
92
118
|
class: "pd-t-zero pd-medium",
|
93
|
-
blogpost:
|
94
|
-
user:
|
119
|
+
blogpost: e.blogpost,
|
120
|
+
user: e.user
|
95
121
|
}, null, 8, ["blogpost", "user"])
|
96
122
|
]);
|
97
123
|
};
|
98
124
|
}
|
99
125
|
};
|
100
126
|
export {
|
101
|
-
|
127
|
+
Q as default
|
102
128
|
};
|
package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router"),f=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router"),f=require("../../../../components/Select/Select.vue.cjs"),g=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),x=require("../../../icons/entities/IconFeatured.vue.cjs"),b=require("../../../icons/entities/IconPopular.vue.cjs"),_=require("../../../icons/entities/IconRecent.vue.cjs"),w=require("../../../icons/entities/IconFollowing.vue.cjs"),m=require("../../store/blogposts.cjs"),l=require("../../../auth/store/auth.cjs"),c=require("../../../organizations/store/organizations.cjs"),k=require("../../../organizations/store/memberships.cjs"),N={style:{"grid-template-columns":"1fr 3fr 1fr"},class:"cols-3 gap-thin pd-thin"},V={class:"align-self-start pos-sticky pos-t-0 w-100 bg-grey radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex"},v={class:"pos-relative"},C={class:"bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex"},y={class:"pos-relative flex-v-center flex-nowrap flex"},B=e.createElementVNode("span",{class:"mn-r-small"},"Topics for ",-1),q={class:"bg-grey radius-big pd-medium"},E={class:"gap-thin flex-nowrap flex"},z=e.createElementVNode("p",{class:"t-medium mn-b-small"},"Popular Communities",-1),T={__name:"Community",setup(F){const o=d.useRoute(),a=d.useRouter(),p=({membership:u,status:r,target:s},i,t)=>{k.mutations.handleMembershipUpdate(c.state.current,u,r,s,i,t)};return(u,r)=>{const s=e.resolveComponent("router-link"),i=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("ul",V,[e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="featured"},"cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"]),onClick:r[0]||(r[0]=t=>e.unref(a).push({name:"Blog",params:{category:"featured"}}))},[e.createVNode(x.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Featured ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="popular"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:r[1]||(r[1]=t=>e.unref(a).push({name:"Blog",params:{category:"popular"}}))},[e.createVNode(b.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Popular ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="new"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:r[2]||(r[2]=t=>e.unref(a).push({name:"Blog",params:{category:"new"}}))},[e.createVNode(_.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Recent ")],2),l.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(o).params.category==="following"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:r[3]||(r[3]=t=>e.unref(a).push({name:"Blog",params:{category:"following"}}))},[e.createVNode(w.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Following ")],2)):e.createCommentVNode("",!0),e.createVNode(s,{to:{name:"Create BlogPost"},class:"button t-medium mn-t-small bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Create Post ")]),_:1})]),e.createElementVNode("section",v,[e.createElementVNode("header",C,[e.createElementVNode("h2",y,[B,e.createVNode(f.default,{options:["today","week","month","year"],select:m.state.filter.period,"onUpdate:select":r[4]||(r[4]=t=>m.state.filter.period=t),placeholder:"Select type",class:"t-semi pos-relative w-max bg-main t-black pd-thin radius-medium h2 t-center br-solid br-2px br-black-transp-10"},null,8,["select"])])]),e.createVNode(i,null,{default:e.withCtx(({Component:t,route:n})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{ref:"page",key:n.query}))]),_:2},1024)]),_:1})]),e.createElementVNode("div",q,[e.createElementVNode("div",E,[z,l.state.user._id?(e.openBlock(),e.createBlock(s,{key:0,to:{name:"Create Organization"},class:"t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" + ")]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createVNode(g.default,{states:{empty:{title:"No Organization Found",description:"Currently, there are no organization available."}},store:{read:t=>c.actions.read(t),state:c.state},options:{user:l.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,n=>(e.openBlock(),e.createBlock(h.default,{key:n._id,organization:n,user:l.state.user,showProducts:!1,showRating:!1,showFeatured:!1,showFollowers:!1,onUpdateMembership:p,class:"mn-b-thin w-100 pd-0 bg-white radius-big o-hidden"},null,8,["organization","user"]))),128))]),_:1},8,["states","store","options"])]),_:1})])])}}};exports.default=T;
|
@@ -1,78 +1,93 @@
|
|
1
|
-
import { resolveComponent as
|
2
|
-
import { useRoute as
|
3
|
-
import
|
1
|
+
import { resolveComponent as b, openBlock as a, createElementBlock as g, createElementVNode as r, normalizeClass as d, unref as o, createVNode as s, createTextVNode as i, createCommentVNode as x, withCtx as n, Transition as w, createBlock as _, resolveDynamicComponent as C, Fragment as $, renderList as B } from "vue";
|
2
|
+
import { useRoute as F, useRouter as z } from "vue-router";
|
3
|
+
import N from "../../../../components/Select/Select.vue.js";
|
4
4
|
import P from "../../../../components/Feed/Feed.vue.js";
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
|
5
|
+
import M from "../../../organizations/components/blocks/CardOrganization.vue.js";
|
6
|
+
import R from "../../../icons/entities/IconFeatured.vue.js";
|
7
|
+
import U from "../../../icons/entities/IconPopular.vue.js";
|
8
|
+
import V from "../../../icons/entities/IconRecent.vue.js";
|
9
|
+
import O from "../../../icons/entities/IconFollowing.vue.js";
|
10
|
+
import { state as y } from "../../store/blogposts.js";
|
11
|
+
import { state as c } from "../../../auth/store/auth.js";
|
12
|
+
import { actions as T, state as v } from "../../../organizations/store/organizations.js";
|
13
|
+
import { mutations as E } from "../../../organizations/store/memberships.js";
|
14
|
+
const S = {
|
11
15
|
style: { "grid-template-columns": "1fr 3fr 1fr" },
|
12
16
|
class: "cols-3 gap-thin pd-thin"
|
13
|
-
},
|
14
|
-
/* @__PURE__ */ o("p", { class: "mn-b-small" }, "POPULAR COMMUNITIES"),
|
15
|
-
/* @__PURE__ */ o("button", { class: "radius-extra flex-center flex i-medium bg-main" }, "+")
|
16
|
-
], -1), Y = {
|
17
|
+
}, q = { class: "align-self-start pos-sticky pos-t-0 w-100 bg-grey 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" }, j = /* @__PURE__ */ r("span", { class: "mn-r-small" }, "Topics for ", -1), A = { class: "bg-grey radius-big pd-medium" }, G = { class: "gap-thin flex-nowrap flex" }, H = /* @__PURE__ */ r("p", { class: "t-medium mn-b-small" }, "Popular Communities", -1), ne = {
|
17
18
|
__name: "Community",
|
18
|
-
setup(
|
19
|
-
const
|
20
|
-
|
19
|
+
setup(J) {
|
20
|
+
const l = F(), m = z(), k = ({ membership: h, status: t, target: p }, f, e) => {
|
21
|
+
E.handleMembershipUpdate(v.current, h, t, p, f, e);
|
21
22
|
};
|
22
|
-
return (
|
23
|
-
const
|
24
|
-
return a(),
|
25
|
-
|
26
|
-
|
27
|
-
class:
|
28
|
-
onClick: t[0] || (t[0] = (e) =>
|
29
|
-
},
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
23
|
+
return (h, t) => {
|
24
|
+
const p = b("router-link"), f = b("router-view");
|
25
|
+
return a(), g("div", S, [
|
26
|
+
r("ul", q, [
|
27
|
+
r("li", {
|
28
|
+
class: d([{ "t-black bg-white": o(l).params.category === "featured" }, "cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"]),
|
29
|
+
onClick: t[0] || (t[0] = (e) => o(m).push({ name: "Blog", params: { category: "featured" } }))
|
30
|
+
}, [
|
31
|
+
s(R, { class: "i-medium mn-r-thin t-transp" }),
|
32
|
+
i(" Featured ")
|
33
|
+
], 2),
|
34
|
+
r("li", {
|
35
|
+
class: d([{ "t-black bg-white": o(l).params.category === "popular" }, "cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),
|
36
|
+
onClick: t[1] || (t[1] = (e) => o(m).push({ name: "Blog", params: { category: "popular" } }))
|
37
|
+
}, [
|
38
|
+
s(U, { class: "i-medium mn-r-thin t-transp" }),
|
39
|
+
i(" Popular ")
|
40
|
+
], 2),
|
41
|
+
r("li", {
|
42
|
+
class: d([{ "t-black bg-white": o(l).params.category === "new" }, "cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),
|
43
|
+
onClick: t[2] || (t[2] = (e) => o(m).push({ name: "Blog", params: { category: "new" } }))
|
44
|
+
}, [
|
45
|
+
s(V, { class: "i-medium mn-r-thin t-transp" }),
|
46
|
+
i(" Recent ")
|
47
|
+
], 2),
|
48
|
+
c.user._id ? (a(), g("li", {
|
39
49
|
key: 0,
|
40
|
-
class:
|
41
|
-
onClick: t[3] || (t[3] = (e) =>
|
42
|
-
},
|
43
|
-
|
44
|
-
|
45
|
-
|
50
|
+
class: d([{ "t-white bg-black": o(l).params.category === "following" }, "cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),
|
51
|
+
onClick: t[3] || (t[3] = (e) => o(m).push({ name: "Blog", params: { category: "following" } }))
|
52
|
+
}, [
|
53
|
+
s(O, { class: "i-medium mn-r-thin t-transp" }),
|
54
|
+
i(" Following ")
|
55
|
+
], 2)) : x("", !0),
|
56
|
+
s(p, {
|
57
|
+
to: {
|
58
|
+
name: "Create BlogPost"
|
59
|
+
},
|
60
|
+
class: "button t-medium mn-t-small bg-main w-100"
|
46
61
|
}, {
|
47
|
-
default:
|
48
|
-
|
62
|
+
default: n(() => [
|
63
|
+
i(" Create Post ")
|
49
64
|
]),
|
50
65
|
_: 1
|
51
66
|
})
|
52
67
|
]),
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
68
|
+
r("section", D, [
|
69
|
+
r("header", I, [
|
70
|
+
r("h2", L, [
|
71
|
+
j,
|
72
|
+
s(N, {
|
58
73
|
options: ["today", "week", "month", "year"],
|
59
|
-
select:
|
60
|
-
"onUpdate:select": t[4] || (t[4] = (e) =>
|
74
|
+
select: y.filter.period,
|
75
|
+
"onUpdate:select": t[4] || (t[4] = (e) => y.filter.period = e),
|
61
76
|
placeholder: "Select type",
|
62
|
-
class: "pos-relative w-max
|
77
|
+
class: "t-semi pos-relative w-max bg-main t-black pd-thin radius-medium h2 t-center br-solid br-2px br-black-transp-10"
|
63
78
|
}, null, 8, ["select"])
|
64
79
|
])
|
65
80
|
]),
|
66
|
-
|
67
|
-
default:
|
68
|
-
|
81
|
+
s(f, null, {
|
82
|
+
default: n(({ Component: e, route: u }) => [
|
83
|
+
s(w, {
|
69
84
|
name: "scaleIn",
|
70
85
|
mode: "out-in"
|
71
86
|
}, {
|
72
|
-
default:
|
87
|
+
default: n(() => [
|
73
88
|
(a(), _(C(e), {
|
74
89
|
ref: "page",
|
75
|
-
key:
|
90
|
+
key: u.query
|
76
91
|
}))
|
77
92
|
]),
|
78
93
|
_: 2
|
@@ -81,11 +96,25 @@ const R = {
|
|
81
96
|
_: 1
|
82
97
|
})
|
83
98
|
]),
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
99
|
+
r("div", A, [
|
100
|
+
r("div", G, [
|
101
|
+
H,
|
102
|
+
c.user._id ? (a(), _(p, {
|
103
|
+
key: 0,
|
104
|
+
to: {
|
105
|
+
name: "Create Organization"
|
106
|
+
},
|
107
|
+
class: "t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"
|
108
|
+
}, {
|
109
|
+
default: n(() => [
|
110
|
+
i(" + ")
|
111
|
+
]),
|
112
|
+
_: 1
|
113
|
+
})) : x("", !0)
|
114
|
+
]),
|
115
|
+
s(w, { name: "slide-fade" }, {
|
116
|
+
default: n(() => [
|
117
|
+
s(P, {
|
89
118
|
states: {
|
90
119
|
empty: {
|
91
120
|
title: "No Organization Found",
|
@@ -93,23 +122,23 @@ const R = {
|
|
93
122
|
}
|
94
123
|
},
|
95
124
|
store: {
|
96
|
-
read: (e) =>
|
97
|
-
state:
|
125
|
+
read: (e) => T.read(e),
|
126
|
+
state: v
|
98
127
|
},
|
99
128
|
options: {
|
100
|
-
user:
|
129
|
+
user: c.user._id,
|
101
130
|
sort: "numberOfMemberships",
|
102
131
|
contain: ["blogposts"],
|
103
132
|
limit: 10
|
104
133
|
}
|
105
134
|
}, {
|
106
|
-
default:
|
135
|
+
default: n(({
|
107
136
|
items: e
|
108
137
|
}) => [
|
109
|
-
(a(!0),
|
110
|
-
key:
|
111
|
-
organization:
|
112
|
-
user:
|
138
|
+
(a(!0), g($, null, B(e, (u) => (a(), _(M, {
|
139
|
+
key: u._id,
|
140
|
+
organization: u,
|
141
|
+
user: c.user,
|
113
142
|
showProducts: !1,
|
114
143
|
showRating: !1,
|
115
144
|
showFeatured: !1,
|
@@ -129,5 +158,5 @@ const R = {
|
|
129
158
|
}
|
130
159
|
};
|
131
160
|
export {
|
132
|
-
|
161
|
+
ne as default
|
133
162
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const d=require("../../../../components/EmptyState/EmptyState.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const d=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../blocks/CardBlogpost.vue.cjs"),p=require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs"),g=require("../../../organizations/components/sections/Publics.vue.cjs"),f=require("../sections/Comments.vue.cjs"),v=require("../../../constructor/components/elements/Image.vue.cjs"),k=require("../../../constructor/components/elements/VideoPlayer.vue.cjs"),y=require("../../../constructor/components/elements/Embed.vue.cjs"),B=require("../../store/blogposts.cjs"),a=require("../../../auth/store/auth.cjs"),_=require("vue-router"),h={class:"pd-thin"},C=["href"],b=e.createElementVNode("h3",{class:"mn-b-small"},"Recommended Communities",-1),V={__name:"BlogPost",setup(N){const u=_.useRoute(),t=e.ref(null),n=e.ref(!0);e.onMounted(async()=>{n.value=!0;const r=await B.read({user:a.state.user._id,url:u.params.url});t.value=r[0],n.value=!1});const c={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:v.default,Video:k.default,Link:"a",Embed:y.default};function i(r){return r.type==="Textarea"?{innerHTML:r.content,class:"p-big"}:r.type==="H2"?{innerHTML:r.content,class:"h3"}:r.type==="Caption"?{innerHTML:r.content}:r.type==="ImageUpload"?{src:r.content}:{}}return(r,s)=>(e.openBlock(),e.createElementBlock("section",h,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,o=>e.createVNode(p.default,{key:o})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&!t.value?(e.openBlock(),e.createBlock(d.default,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&t.value?(e.openBlock(),e.createBlock(m.default,{key:0,onClick:s[0]||(s[0]=o=>r.$router.push({name:"Blogpost",params:{url:t.value.url}})),blogpost:t.value,user:a.state.user._id,type:"blogpostPage",class:"mn-b-medium"},{default:e.withCtx(()=>[e.createElementVNode("section",null,[t.value&&t.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.value.content,(o,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[o.type]),e.mergeProps({key:l,index:l,component:o,prop:o,class:o.class,content:"content"},i(o),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)]),t.value.source?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.value.source,target:"_blank",class:"mn-b-semi d-block w-max radius-big pd-thin bg-black t-white"}," Check Source 🔗 ",8,C)):e.createCommentVNode("",!0)]),_:1},8,["blogpost","user"])):e.createCommentVNode("",!0),b,e.createVNode(g.default,{class:"mn-b-small"}),!n.value&&t.value?(e.openBlock(),e.createBlock(f.default,{key:1,type:"blogpost",target:t.value._id,owner:a.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=V;
|
@@ -1,50 +1,52 @@
|
|
1
|
-
import { ref as d, onMounted as
|
1
|
+
import { ref as d, onMounted as k, openBlock as n, createElementBlock as l, createVNode as s, TransitionGroup as f, withCtx as u, Fragment as _, renderList as g, createCommentVNode as o, Transition as C, createBlock as i, createElementVNode as v, resolveDynamicComponent as B, mergeProps as $ } from "vue";
|
2
2
|
import "../../../../components/Loader/Loader.vue.js";
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
3
|
+
import T from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
|
+
import w from "../blocks/CardBlogpost.vue.js";
|
5
|
+
import x from "../../../icons/skeletons/SkeletonBlogpost.vue.js";
|
6
|
+
import L from "../../../organizations/components/sections/Publics.vue.js";
|
7
|
+
import H from "../sections/Comments.vue.js";
|
8
|
+
import M from "../../../constructor/components/elements/Image.vue.js";
|
9
|
+
import P from "../../../constructor/components/elements/VideoPlayer.vue.js";
|
10
|
+
import N from "../../../constructor/components/elements/Embed.vue.js";
|
10
11
|
import { read as V } from "../../store/blogposts.js";
|
11
12
|
import { state as m } from "../../../auth/store/auth.js";
|
12
13
|
import { useRoute as E } from "vue-router";
|
13
|
-
const F = { class: "pd-thin" }, I = ["href"],
|
14
|
+
const F = { class: "pd-thin" }, I = ["href"], R = /* @__PURE__ */ v("h3", { class: "mn-b-small" }, "Recommended Communities", -1), Y = {
|
14
15
|
__name: "BlogPost",
|
15
16
|
setup(S) {
|
16
|
-
const
|
17
|
-
|
18
|
-
|
19
|
-
const t = await V({ user: m.user._id, url:
|
20
|
-
e.value = t[0],
|
17
|
+
const y = E(), e = d(null), a = d(!0);
|
18
|
+
k(async () => {
|
19
|
+
a.value = !0;
|
20
|
+
const t = await V({ user: m.user._id, url: y.params.url });
|
21
|
+
e.value = t[0], a.value = !1;
|
21
22
|
});
|
22
|
-
const
|
23
|
+
const h = {
|
23
24
|
Textarea: "p",
|
24
25
|
H2: "h2",
|
25
26
|
Bullets: "p",
|
26
27
|
Caption: "p",
|
27
|
-
ImageUpload:
|
28
|
-
Video:
|
29
|
-
Link: "a"
|
28
|
+
ImageUpload: M,
|
29
|
+
Video: P,
|
30
|
+
Link: "a",
|
31
|
+
Embed: N
|
30
32
|
};
|
31
33
|
function b(t) {
|
32
|
-
return t.type === "Textarea" ? { innerHTML: t.content, class: "p-
|
34
|
+
return t.type === "Textarea" ? { innerHTML: t.content, class: "p-big" } : t.type === "H2" ? { innerHTML: t.content, class: "h3" } : t.type === "Caption" ? { innerHTML: t.content } : t.type === "ImageUpload" ? { src: t.content } : {};
|
33
35
|
}
|
34
|
-
return (t, p) => (
|
36
|
+
return (t, p) => (n(), l("section", F, [
|
35
37
|
s(f, {
|
36
38
|
tag: "ul",
|
37
39
|
name: "fade",
|
38
40
|
class: "o-hidden bg-grey radius-big"
|
39
41
|
}, {
|
40
42
|
default: u(() => [
|
41
|
-
|
43
|
+
a.value ? (n(), l(_, { key: 0 }, g(3, (r) => s(x, { key: r })), 64)) : o("", !0)
|
42
44
|
]),
|
43
45
|
_: 1
|
44
46
|
}),
|
45
|
-
s(
|
47
|
+
s(C, { name: "fade" }, {
|
46
48
|
default: u(() => [
|
47
|
-
!
|
49
|
+
!a.value && !e.value ? (n(), i(T, {
|
48
50
|
key: 0,
|
49
51
|
title: "No Blogpost Found",
|
50
52
|
description: "Currently, there are no blogposts available. Please check back later.",
|
@@ -59,19 +61,17 @@ const F = { class: "pd-thin" }, I = ["href"], W = {
|
|
59
61
|
class: "container"
|
60
62
|
}, {
|
61
63
|
default: u(() => [
|
62
|
-
!
|
64
|
+
!a.value && e.value ? (n(), i(w, {
|
63
65
|
key: 0,
|
64
66
|
onClick: p[0] || (p[0] = (r) => t.$router.push({ name: "Blogpost", params: { url: e.value.url } })),
|
65
67
|
blogpost: e.value,
|
66
68
|
user: m.user._id,
|
67
69
|
type: "blogpostPage",
|
68
|
-
class:
|
69
|
-
"br-b br-solid br-black-transp-10": t.index !== e.value.length - 1
|
70
|
-
}])
|
70
|
+
class: "mn-b-medium"
|
71
71
|
}, {
|
72
72
|
default: u(() => [
|
73
|
-
|
74
|
-
e.value && e.value.content ? (
|
73
|
+
v("section", null, [
|
74
|
+
e.value && e.value.content ? (n(!0), l(_, { key: 0 }, g(e.value.content, (r, c) => (n(), i(B(h[r.type]), $({
|
75
75
|
key: c,
|
76
76
|
index: c,
|
77
77
|
component: r,
|
@@ -80,7 +80,7 @@ const F = { class: "pd-thin" }, I = ["href"], W = {
|
|
80
80
|
content: "content"
|
81
81
|
}, b(r), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : o("", !0)
|
82
82
|
]),
|
83
|
-
e.value.source ? (
|
83
|
+
e.value.source ? (n(), l("a", {
|
84
84
|
key: 0,
|
85
85
|
href: e.value.source,
|
86
86
|
target: "_blank",
|
@@ -88,9 +88,10 @@ const F = { class: "pd-thin" }, I = ["href"], W = {
|
|
88
88
|
}, " Check Source 🔗 ", 8, I)) : o("", !0)
|
89
89
|
]),
|
90
90
|
_: 1
|
91
|
-
}, 8, ["blogpost", "user"
|
92
|
-
|
93
|
-
|
91
|
+
}, 8, ["blogpost", "user"])) : o("", !0),
|
92
|
+
R,
|
93
|
+
s(L, { class: "mn-b-small" }),
|
94
|
+
!a.value && e.value ? (n(), i(H, {
|
94
95
|
key: 1,
|
95
96
|
type: "blogpost",
|
96
97
|
target: e.value._id,
|
@@ -103,5 +104,5 @@ const F = { class: "pd-thin" }, I = ["href"], W = {
|
|
103
104
|
}
|
104
105
|
};
|
105
106
|
export {
|
106
|
-
|
107
|
+
Y as default
|
107
108
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../blocks/CardBlogpost.vue.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs");const l=require("../../store/blogposts.cjs"),_=require("../../../auth/store/auth.cjs"),f=require("vue-router");require("./Community.vue2.cjs");const b=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),v=r=>(e.pushScopeId("data-v-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../blocks/CardBlogpost.vue.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs");const l=require("../../store/blogposts.cjs"),_=require("../../../auth/store/auth.cjs"),f=require("vue-router");require("./Community.vue2.cjs");const b=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),v=r=>(e.pushScopeId("data-v-e98ee39a"),r=r(),e.popScopeId(),r),g={class:"flex-v-center flex-nowrap flex mn-b-medium"},h=v(()=>e.createElementVNode("h3",{class:"mn-r-medium"},"Blog",-1)),k={class:""},w={class:"flex-nowrap flex pd-t-zero pd-b-zero pd-big"},y=["onClick"],C=["onClick"],B={__name:"Community",async setup(r){let s,c;const i=f.useRouter();[s,c]=e.withAsyncContext(()=>l.read()),await s,c(),console.log(l.state),e.ref({title:"",content:"",categories:[]});const d=async t=>{window.confirm("Are you sure you want to delete this post?")&&(console.log(t),await l.remove(t))};let u=e.ref("all");const a=e.computed(()=>u.value==="all"?l.state.all:l.state.all.filter(t=>t.categories.includes(u.value)));return e.computed(()=>{for(let t of a.value)if(t.blocks&&t.blocks.length>0){const n=t.blocks.find(o=>o.type.name==="ImageUpload");if(n)return n.content}return null}),(t,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",g,[h,e.createElementVNode("button",{onClick:n[0]||(n[0]=o=>e.unref(i).push({name:"Create BlogPost"})),class:"t-white bg-second button-small button"},"+")]),e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,o=>(e.openBlock(),e.createBlock(p.default,{key:o._id,blogpost:o,owner:_.state.user._id,class:"mn-b-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("button",{class:"mn-r-thin button-small w-100 button",onClick:m=>t.$router.push({path:"/community/posts/"+o.url+"/edit"})},"Edit",8,y),e.createElementVNode("button",{class:"button-small w-100 button",onClick:m=>d(o._id)},"Delete",8,C)])]),_:2},1032,["blogpost","owner"]))),128))])]))}},E=b.default(B,[["__scopeId","data-v-e98ee39a"]]);exports.default=E;
|