@ozdao/prometheus-framework 0.2.39 → 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 +1 -1
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -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/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- 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 +3 -3
- 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 +7 -7
- 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/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/controllers/auth.controller.js +2 -3
- 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 +7 -8
- 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
@@ -1,39 +1,50 @@
|
|
1
1
|
<template>
|
2
2
|
<article
|
3
|
-
class="pos-relative bg-grey radius-big"
|
3
|
+
class="pos-relative bg-grey radius-big flex-column flex"
|
4
4
|
>
|
5
5
|
|
6
|
-
<
|
6
|
+
<router-link
|
7
7
|
v-if="user && user === blogpost.creator.target._id"
|
8
|
-
|
8
|
+
:to="{
|
9
9
|
name: 'Edit BlogPost',
|
10
10
|
params: {
|
11
11
|
url: blogpost.url
|
12
12
|
}
|
13
|
-
}
|
14
|
-
class="
|
15
|
-
|
13
|
+
}"
|
14
|
+
class="
|
15
|
+
cursor-pointer
|
16
|
+
pos-absolute pos-t-regular pos-r-regular
|
17
|
+
radius-extra pd-thin bg-second
|
18
|
+
"
|
19
|
+
>
|
20
|
+
<IconEdit
|
21
|
+
class="i-regular"
|
22
|
+
classes="fill-white"
|
23
|
+
/>
|
24
|
+
</router-link>
|
16
25
|
|
17
26
|
<CardHeader
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
:class="{
|
28
|
+
'mn-b-small pd-medium': type !== 'short',
|
29
|
+
'flex-child-order-last flex-child mn-l-small': type === 'short',
|
30
|
+
}"
|
31
|
+
:entity="blogpost"
|
32
|
+
:entityType="'blogpost'"
|
33
|
+
:user="user"
|
34
|
+
:owner="blogpost.owner"
|
35
|
+
:creator="blogpost.creator"
|
36
|
+
:date="blogpost.createdAt"
|
37
|
+
/>
|
38
|
+
|
39
|
+
<!-- <Image :prop="{content:firstImage.content}" class="h-100"/> -->
|
40
|
+
|
30
41
|
<template
|
31
42
|
v-if="firstImage && firstImage.content && type !== 'blogpostPage'"
|
32
43
|
>
|
33
44
|
<img
|
34
45
|
:src="(FILE_SERVER_URL || '') + firstImage.content"
|
35
46
|
alt="Blog post image"
|
36
|
-
class="mn-b-medium object-fit-cover w-100 h-
|
47
|
+
class="mn-b-medium object-fit-cover w-100 h-min-10r h-100"
|
37
48
|
/>
|
38
49
|
</template>
|
39
50
|
|
@@ -41,11 +52,11 @@
|
|
41
52
|
v-if="!firstImage?.content && firstVideo && firstVideo.content && type !== 'blogpostPage'"
|
42
53
|
>
|
43
54
|
<div class="flex-center flex">
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
55
|
+
<video controls class="mn-b-medium object-fit-cover w-100 h-min-10r h-max-20r">
|
56
|
+
<source :src="firstVideo.content" type="video/mp4">
|
57
|
+
Your browser does not support the video tag.
|
58
|
+
</video>
|
59
|
+
</div>
|
49
60
|
</template>
|
50
61
|
|
51
62
|
<section
|
@@ -54,30 +65,40 @@
|
|
54
65
|
|
55
66
|
<div v-if="type !== 'blogpostPage'" class="cursor-pointer mn-b-thin flex-nowrap flex w-100">
|
56
67
|
|
57
|
-
<
|
58
|
-
|
68
|
+
<Text
|
69
|
+
:text="blogpost.name || ''"
|
70
|
+
:maxLen="80"
|
71
|
+
class="h3 d-block"
|
72
|
+
@click="router.push({
|
59
73
|
name: 'BlogPost',
|
60
74
|
params: {
|
61
75
|
url: blogpost.url
|
62
76
|
}
|
63
77
|
})"
|
64
|
-
|
65
|
-
{{blogpost.name}}
|
66
|
-
</h3>
|
78
|
+
/>
|
67
79
|
|
68
|
-
<div
|
80
|
+
<div
|
81
|
+
v-if="blogpost.status === 'draft'"
|
82
|
+
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"
|
83
|
+
>
|
69
84
|
{{blogpost.status}}
|
70
85
|
</div>
|
71
86
|
|
72
87
|
</div>
|
88
|
+
|
73
89
|
<p
|
74
|
-
v-if="firstText && firstText.content && type !== 'blogpostPage'"
|
90
|
+
v-if="firstText && firstText.content && type !== 'blogpostPage' && !hideDescription"
|
75
91
|
class='mn-b-small t-transp p-big'
|
76
92
|
>
|
77
93
|
{{firstText.content.slice(0,120)}}...
|
78
94
|
</p>
|
79
95
|
|
80
|
-
<h3
|
96
|
+
<h3
|
97
|
+
v-if="type === 'blogpostPage'"
|
98
|
+
class="mn-b-small h2"
|
99
|
+
>
|
100
|
+
{{blogpost.name}}
|
101
|
+
</h3>
|
81
102
|
|
82
103
|
<slot></slot>
|
83
104
|
|
@@ -102,6 +123,9 @@
|
|
102
123
|
import CardHeader from '@pf/src/modules/globals/components/blocks/CardHeader.vue'
|
103
124
|
import FooterBlogpost from '@pf/src/modules/community/components/blocks/FooterBlogpost.vue'
|
104
125
|
|
126
|
+
import Image from '@pf/src/modules/constructor/components/elements/Image.vue';
|
127
|
+
|
128
|
+
import Text from '@pf/src/components/Text/Text.vue'
|
105
129
|
import Chips from '@pf/src/components/Chips/Chips.vue'
|
106
130
|
|
107
131
|
import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
|
@@ -112,7 +136,21 @@
|
|
112
136
|
|
113
137
|
const router = useRouter()
|
114
138
|
|
115
|
-
const props = defineProps(
|
139
|
+
const props = defineProps({
|
140
|
+
blogpost: {
|
141
|
+
type: Object,
|
142
|
+
},
|
143
|
+
user: {
|
144
|
+
type: String,
|
145
|
+
},
|
146
|
+
type: {
|
147
|
+
type: String,
|
148
|
+
},
|
149
|
+
hideDescription: {
|
150
|
+
type: Boolean,
|
151
|
+
default: false
|
152
|
+
}
|
153
|
+
})
|
116
154
|
|
117
155
|
const firstImage = computed(() => {
|
118
156
|
return props.blogpost.content.find(block => block.type === 'ImageUpload');
|
@@ -1,48 +1,73 @@
|
|
1
1
|
<template>
|
2
2
|
<div style="grid-template-columns: 1fr 3fr 1fr;" class="cols-3 gap-thin pd-thin">
|
3
3
|
|
4
|
-
<ul class="w-100 bg-grey radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex">
|
4
|
+
<ul 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">
|
5
5
|
<li
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
:class="{'t-black bg-white': route.params.category === 'featured' }"
|
7
|
+
@click="router.push({name: 'Blog', params: { category: 'featured' } })"
|
8
|
+
class="cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"
|
9
|
+
>
|
10
|
+
<IconFeatured class="i-medium mn-r-thin t-transp"/>
|
11
|
+
Featured
|
12
|
+
</li>
|
9
13
|
<li
|
10
|
-
|
11
|
-
|
12
|
-
|
14
|
+
:class="{'t-black bg-white': route.params.category === 'popular' }"
|
15
|
+
@click="router.push({name: 'Blog', params: { category: 'popular' } })"
|
16
|
+
class="cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"
|
17
|
+
>
|
18
|
+
<IconPopular class="i-medium mn-r-thin t-transp"/>
|
19
|
+
Popular
|
20
|
+
</li>
|
13
21
|
<li
|
14
|
-
|
15
|
-
|
16
|
-
|
22
|
+
:class="{'t-black bg-white': route.params.category === 'new'}"
|
23
|
+
@click="router.push({name: 'Blog', params: { category: 'new' } })"
|
24
|
+
class="cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"
|
25
|
+
>
|
26
|
+
<IconRecent class="i-medium mn-r-thin t-transp"/>
|
27
|
+
Recent
|
28
|
+
</li>
|
17
29
|
<li
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
30
|
+
v-if="auth.state.user._id"
|
31
|
+
:class="{'t-white bg-black': route.params.category === 'following'}"
|
32
|
+
@click="router.push({name: 'Blog', params: { category: 'following' } })"
|
33
|
+
class="cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"
|
34
|
+
>
|
35
|
+
<IconFollowing class="i-medium mn-r-thin t-transp"/>
|
36
|
+
Following
|
37
|
+
</li>
|
38
|
+
|
39
|
+
<router-link
|
40
|
+
:to="{
|
41
|
+
name: 'Create BlogPost'
|
42
|
+
}"
|
43
|
+
class="button t-medium mn-t-small bg-main w-100"
|
44
|
+
>
|
45
|
+
Create Post
|
46
|
+
</router-link>
|
24
47
|
</ul>
|
25
48
|
|
26
49
|
<section class="pos-relative">
|
27
50
|
|
28
|
-
<header class="bg-
|
29
|
-
<h2 class="pos-relative flex-v-center flex-nowrap flex
|
30
|
-
<span class="">Topics for </span>
|
51
|
+
<header class="bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex">
|
52
|
+
<h2 class="pos-relative flex-v-center flex-nowrap flex">
|
53
|
+
<span class="mn-r-small">Topics for </span>
|
31
54
|
|
32
55
|
<Select
|
33
56
|
:options="['today','week','month','year']"
|
34
57
|
v-model:select="blog.state.filter.period"
|
35
58
|
placeholder="Select type"
|
36
59
|
class="
|
60
|
+
t-semi
|
37
61
|
pos-relative
|
38
62
|
w-max
|
39
|
-
|
40
|
-
bg-grey
|
63
|
+
bg-main t-black
|
41
64
|
pd-thin
|
42
65
|
radius-medium
|
43
66
|
h2
|
44
67
|
t-center
|
45
|
-
|
68
|
+
br-solid
|
69
|
+
br-2px
|
70
|
+
br-black-transp-10
|
46
71
|
"
|
47
72
|
/>
|
48
73
|
</h2>
|
@@ -58,8 +83,17 @@
|
|
58
83
|
|
59
84
|
<div class="bg-grey radius-big pd-medium">
|
60
85
|
<div class="gap-thin flex-nowrap flex">
|
61
|
-
<p class="mn-b-small">
|
62
|
-
|
86
|
+
<p class="t-medium mn-b-small">Popular Communities</p>
|
87
|
+
|
88
|
+
<router-link
|
89
|
+
v-if="auth.state.user._id"
|
90
|
+
:to="{
|
91
|
+
name: 'Create Organization'
|
92
|
+
}"
|
93
|
+
class="t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"
|
94
|
+
>
|
95
|
+
+
|
96
|
+
</router-link>
|
63
97
|
</div>
|
64
98
|
|
65
99
|
|
@@ -111,6 +145,11 @@
|
|
111
145
|
import Feed from '@pf/src/components/Feed/Feed.vue'
|
112
146
|
import CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'
|
113
147
|
|
148
|
+
import IconFeatured from '@pf/src/modules/icons/entities/IconFeatured.vue'
|
149
|
+
import IconPopular from '@pf/src/modules/icons/entities/IconPopular.vue'
|
150
|
+
import IconRecent from '@pf/src/modules/icons/entities/IconRecent.vue'
|
151
|
+
import IconFollowing from '@pf/src/modules/icons/entities/IconFollowing.vue'
|
152
|
+
|
114
153
|
// Import state
|
115
154
|
import * as blog from '@pf/src/modules/community/store/blogposts.js';
|
116
155
|
import * as auth from '@pf/src/modules/auth/store/auth'
|
@@ -1,5 +1,42 @@
|
|
1
1
|
<template>
|
2
2
|
<section>
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
<!-- <Feed
|
7
|
+
:showLoadMore="false"
|
8
|
+
:states="{
|
9
|
+
empty: {
|
10
|
+
title: 'No Blogposts Found',
|
11
|
+
description: 'Currently, there are no blogposts available.'
|
12
|
+
}
|
13
|
+
}"
|
14
|
+
:store="{
|
15
|
+
read: (options) => blog.read(options),
|
16
|
+
state: blog.state.all
|
17
|
+
}"
|
18
|
+
:options="{
|
19
|
+
skip: 0,
|
20
|
+
limit: 8,
|
21
|
+
user: auth.state.user._id,
|
22
|
+
period: 'year'
|
23
|
+
}"
|
24
|
+
v-slot="{
|
25
|
+
items
|
26
|
+
}"
|
27
|
+
class="cols-4 gap-thin"
|
28
|
+
>
|
29
|
+
<CardBlogpost
|
30
|
+
v-for="(blogpost,index) in items"
|
31
|
+
:key="blogpost._id"
|
32
|
+
:blogpost="blogpost"
|
33
|
+
:user="user"
|
34
|
+
class="mn-b-medium"
|
35
|
+
:class="`div${index}`"
|
36
|
+
/>
|
37
|
+
</Feed>
|
38
|
+
|
39
|
+
-->
|
3
40
|
<Feed
|
4
41
|
:category="route.params.category"
|
5
42
|
:user="auth.state.user._id"
|
@@ -27,9 +27,6 @@
|
|
27
27
|
:user="auth.state.user._id"
|
28
28
|
:type="'blogpostPage'"
|
29
29
|
class="mn-b-medium"
|
30
|
-
:class="{
|
31
|
-
'br-b br-solid br-black-transp-10': index !== blogpost.length - 1
|
32
|
-
}"
|
33
30
|
>
|
34
31
|
<section>
|
35
32
|
<component
|
@@ -53,7 +50,7 @@
|
|
53
50
|
|
54
51
|
</CardBlogpost>
|
55
52
|
|
56
|
-
|
53
|
+
<h3 class="mn-b-small">Recommended Communities</h3>
|
57
54
|
<Publics
|
58
55
|
class="mn-b-small"
|
59
56
|
/>
|
@@ -83,6 +80,7 @@
|
|
83
80
|
|
84
81
|
import Image from '@pf/src/modules/constructor/components/elements/Image.vue';
|
85
82
|
import VideoPlayer from '@pf/src/modules/constructor/components/elements/VideoPlayer.vue';
|
83
|
+
import Embed from '@pf/src/modules/constructor/components/elements/Embed.vue';
|
86
84
|
|
87
85
|
import * as blog from '@pf/src/modules/community/store/blogposts.js';
|
88
86
|
import * as auth from '@pf/src/modules/auth/store/auth';
|
@@ -111,12 +109,13 @@
|
|
111
109
|
'Caption': 'p',
|
112
110
|
'ImageUpload': Image,
|
113
111
|
'Video': VideoPlayer,
|
114
|
-
'Link': 'a'
|
112
|
+
'Link': 'a',
|
113
|
+
'Embed': Embed
|
115
114
|
};
|
116
115
|
|
117
116
|
function getBlockProps(block) {
|
118
117
|
if (block.type === 'Textarea') {
|
119
|
-
return { innerHTML: block.content, class: "p-
|
118
|
+
return { innerHTML: block.content, class: "p-big" };
|
120
119
|
} else if (block.type === 'H2') {
|
121
120
|
return { innerHTML: block.content, class: "h3" };
|
122
121
|
} else if (block.type === 'Caption') {
|
@@ -1,36 +1,76 @@
|
|
1
1
|
<template>
|
2
|
-
<section class="
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
2
|
+
<section class="pd-thin">
|
3
|
+
<div class="bg-grey radius-big pd-t-big pd-b-big">
|
4
|
+
|
5
|
+
<h2 class="w-100 pd-b-small t-center flex-center flex">
|
6
|
+
Discover Our
|
7
|
+
<router-link
|
8
|
+
:to="{ name:'Blog' }"
|
9
|
+
class="transition-ease-in hover-bg-black hover-t-white transition-timing-1 hover-scale-0 bg-main cursor-pointer pd-thin mn-l-thin radius-extra flex flex-v-center"
|
10
|
+
>
|
11
|
+
<b>Community</b>
|
12
|
+
<IconArrow class="mn-l-thin radius-extra bg-white i-big"/>
|
13
|
+
</router-link>
|
14
|
+
</h2>
|
15
|
+
|
16
|
+
<Slider
|
17
|
+
:store="{
|
18
|
+
read: (options) => blog.read(options)
|
19
|
+
}"
|
20
|
+
:options="{
|
21
|
+
skip: 0,
|
22
|
+
limit: 8,
|
23
|
+
user: auth.state.user._id,
|
24
|
+
period: 'year'
|
25
|
+
}"
|
26
|
+
:text="{
|
27
|
+
messages: {
|
28
|
+
en: {
|
29
|
+
title: 'No Blogposts Found',
|
30
|
+
description: 'Currently, there are no blogposts available.'
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}"
|
34
|
+
v-slot="{
|
35
|
+
item
|
36
|
+
}"
|
37
|
+
class="slider-hotpost"
|
38
|
+
>
|
39
|
+
<CardBlogpost
|
40
|
+
:key="item._id"
|
41
|
+
:blogpost="item"
|
42
|
+
:user="user"
|
43
|
+
:hideDescription="true"
|
44
|
+
class="bg-white flex flex-column h-35r"
|
45
|
+
/>
|
46
|
+
</Slider>
|
47
|
+
</div>
|
12
48
|
</section>
|
13
49
|
</template>
|
14
50
|
|
15
51
|
<script setup="props">
|
16
52
|
import { ref, onMounted } from 'vue'
|
17
|
-
|
53
|
+
|
54
|
+
import Feed from '@pf/src/components/Feed/Feed.vue'
|
55
|
+
import Slider from '@pf/src/components/Slider/Slider.vue'
|
56
|
+
|
57
|
+
import IconArrow from '@pf/src/modules/icons/navigation/IconArrow.vue'
|
58
|
+
|
59
|
+
|
60
|
+
import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';
|
18
61
|
// Import state
|
19
62
|
import * as blog from '@pf/src/modules/community/store/blogposts.js';
|
20
63
|
import * as auth from '@pf/src/modules/auth/store/auth'
|
21
64
|
</script>
|
22
65
|
|
23
|
-
<style
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
.grid-container {
|
29
|
-
display: grid;
|
30
|
-
grid-template-columns: 1fr 1fr 1fr 1fr; /* создаём две колонки */
|
31
|
-
grid-gap: 20px;
|
32
|
-
}
|
33
|
-
|
34
|
-
|
35
|
-
</style>
|
66
|
+
<style lang="scss" >
|
67
|
+
.slider-hotpost .embla__slide {
|
68
|
+
flex: 0 0 25%;
|
69
|
+
}
|
36
70
|
|
71
|
+
@media screen and (max-width: 1025px) {
|
72
|
+
.slider-hotpost .embla__slide {
|
73
|
+
flex: 0 0 75%;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
</style>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<div class="w-100 container container-joinus">
|
2
|
+
<div class="pd-extra o-hidden w-100 container container-joinus">
|
3
3
|
<div class="content">
|
4
4
|
<span class="h0 mn-b-big">
|
5
5
|
{{ userCount.toLocaleString() }}
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<p class="w-m-33r t-center mn-b-small p-big">
|
8
8
|
Together, we're shaping the future of the globals cannabis community.
|
9
9
|
</p>
|
10
|
-
<router-link :to="{name: 'Sign In'}" class="bg-black t-white button">
|
10
|
+
<router-link :to="{name: 'Sign In'}" class="bg-black t-medium t-white button">
|
11
11
|
Join Now
|
12
12
|
</router-link>
|
13
13
|
</div>
|
@@ -19,9 +19,8 @@
|
|
19
19
|
display: flex;
|
20
20
|
align-items: center;
|
21
21
|
justify-content: center;
|
22
|
-
height:
|
22
|
+
height: 66%;
|
23
23
|
position: relative;
|
24
|
-
overflow: hidden;
|
25
24
|
|
26
25
|
.content {
|
27
26
|
display: flex;
|
@@ -55,7 +54,7 @@
|
|
55
54
|
opacity: 1;
|
56
55
|
}
|
57
56
|
100% {
|
58
|
-
transform: translateY(-
|
57
|
+
transform: translateY(-33vh); // движение вверх на высоту экрана
|
59
58
|
opacity: 0.0
|
60
59
|
}
|
61
60
|
}
|
@@ -28,12 +28,12 @@
|
|
28
28
|
/>
|
29
29
|
<div class="flex-v-center flex-nowrap flex gap-small">
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
<p class="t-center">Embeds from youtube.com, vimeo.com, soundcloud.com are allowed</p>
|
32
|
+
<button
|
33
|
+
@click="onComponentClick"
|
34
|
+
class="button-small button"
|
35
|
+
>
|
36
|
+
Save
|
37
37
|
</button>
|
38
38
|
</div>
|
39
39
|
</div>
|
@@ -68,6 +68,7 @@ function isValidEmbedCode(code) {
|
|
68
68
|
/reddit\.com/,
|
69
69
|
/linkedin\.com/,
|
70
70
|
/medium\.com/,
|
71
|
+
/spotify\.com/,
|
71
72
|
];
|
72
73
|
return allowedSources.some(pattern => pattern.test(code));
|
73
74
|
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<template>
|
2
2
|
<div
|
3
3
|
v-if="prop.content"
|
4
|
-
class="o-hidden radius-big pos-relative bg-grey mn-b-small w-100"
|
4
|
+
class="o-hidden radius-big pos-relative bg-grey mn-b-small w-100 flex-center flex"
|
5
5
|
>
|
6
6
|
<img
|
7
7
|
:src="(FILE_SERVER_URL || '') + prop.content"
|
8
8
|
alt="Event image"
|
9
|
-
class="pos-relative z-index-1 d-block mn-auto w-100 object-fit-contain"
|
9
|
+
class="pos-relative z-index-1 d-block mn-auto w-100 h-100 object-fit-contain"
|
10
10
|
style="max-height: 40rem"
|
11
11
|
/>
|
12
12
|
|
@@ -12,7 +12,6 @@ a<template>
|
|
12
12
|
v-for="(block, index) in post.content"
|
13
13
|
:key="index"
|
14
14
|
class="pos-relative"
|
15
|
-
|
16
15
|
>
|
17
16
|
<div
|
18
17
|
@mouseover="showControls = index, showMenu = false"
|
@@ -29,7 +28,6 @@ a<template>
|
|
29
28
|
@deleteBlock="handleDeleteBlock"
|
30
29
|
@addBlock="handleAddBlock"
|
31
30
|
@updateBlock="handleUpdateBlock"
|
32
|
-
|
33
31
|
/>
|
34
32
|
</div>
|
35
33
|
|
@@ -87,27 +85,15 @@ a<template>
|
|
87
85
|
>
|
88
86
|
Add Video
|
89
87
|
</span>
|
90
|
-
<span
|
91
|
-
@click="handleAddBlock('Youtube', '', index)"
|
92
|
-
class="w-max button-small t-black bg-white button"
|
93
|
-
>
|
94
|
-
Add Youtube
|
95
|
-
</span>
|
96
88
|
<span
|
97
89
|
@click="handleAddBlock('Link', '', index)"
|
98
90
|
class="w-max button-small t-black bg-white button"
|
99
91
|
>
|
100
92
|
Add Link
|
101
93
|
</span>
|
102
|
-
|
103
94
|
</div>
|
104
|
-
|
105
|
-
|
106
95
|
</div>
|
107
96
|
</transition>
|
108
|
-
|
109
|
-
|
110
|
-
|
111
97
|
</div>
|
112
98
|
</VueDraggableNext>
|
113
99
|
</section>
|
@@ -123,8 +109,6 @@ import ImageUpload from '../elements/ImageUpload.vue';
|
|
123
109
|
import Embed from '../elements/Embed.vue';
|
124
110
|
import Audio from '../elements/Audio.vue';
|
125
111
|
import Video from '../elements/Video.vue';
|
126
|
-
import Youtube from '../elements/Youtube.vue';
|
127
|
-
|
128
112
|
|
129
113
|
import { ref, watchEffect, computed } from 'vue';
|
130
114
|
import { VueDraggableNext } from 'vue-draggable-next';
|
@@ -147,11 +131,11 @@ const ComponentMap = {
|
|
147
131
|
'Embed': Embed,
|
148
132
|
'Audio': Audio,
|
149
133
|
'Video': Video,
|
150
|
-
'Youtube': Youtube
|
151
134
|
};
|
152
135
|
|
153
136
|
function handleAddBlock(type = 'Textarea', content = '', index, data) {
|
154
|
-
|
137
|
+
console.log('We are adding new block (functuin HandleAddBlock):' + type + content + index + data )
|
138
|
+
|
155
139
|
let blockNew = {
|
156
140
|
order: post.value.content.length + 1,
|
157
141
|
type: type,
|