@ozdao/prometheus-framework 0.1.99 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +5 -5
- package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -2
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +10 -10
- 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 +12 -12
- 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 +15 -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 +8 -8
- 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 +14 -14
- 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 +14 -14
- 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 +9 -9
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.js +4 -4
- 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/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +8 -8
- 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 +1 -1
- 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 +10 -10
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +9 -9
- 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 +8 -8
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +5 -5
- 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 +20 -11
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +3 -3
- 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 +12 -12
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +11 -11
- 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 +18 -18
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +4 -4
- 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 +10 -10
- 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 +13 -13
- package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.js +4 -4
- 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 +3 -3
- 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 +6 -6
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +8 -8
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +1 -1
- 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 +8 -8
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +7 -7
- 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 +5 -5
- 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 +13 -13
- 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 +7 -7
- 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 +5 -5
- 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 +14 -14
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +8 -8
- 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 +5 -5
- 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 +5 -5
- 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 +7 -7
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +4 -4
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +2 -2
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +5 -5
- 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 +6 -6
- 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 +18 -18
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.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 +8 -8
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/EditImages/EditImages.vue +3 -3
- package/src/components/EmptyState/EmptyState.vue +2 -2
- package/src/components/Field/Field.svlt +1 -1
- package/src/components/Field/Field.vue +1 -1
- package/src/components/FieldTags/BlockTags.vue +4 -4
- package/src/components/Footer/Footer.vue +8 -8
- package/src/components/LocationSelection/LocationSelection.vue +4 -4
- package/src/components/Search/Search.vue +3 -3
- package/src/configurator/components/layouts/layoutConfigurator.vue +2 -2
- package/src/configurator/components/pages/Styles.vue +3 -3
- package/src/modules/auth/components/pages/EnterCode.vue +4 -4
- package/src/modules/auth/components/pages/EnterPassword.vue +9 -9
- package/src/modules/auth/components/pages/Invite.vue +6 -6
- package/src/modules/auth/components/pages/ResetPassword.vue +10 -10
- package/src/modules/auth/components/pages/SignIn.vue +11 -11
- package/src/modules/auth/components/pages/SignUp.vue +11 -11
- package/src/modules/auth/components/sections/SliderFeatures.vue +2 -2
- package/src/modules/backoffice/components/admin/Categories.vue +2 -2
- package/src/modules/backoffice/components/admin/CategoryEdit.vue +2 -2
- package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
- package/src/modules/backoffice/components/admin/PageEdit.vue +3 -3
- package/src/modules/backoffice/components/admin/Pages.vue +1 -1
- package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/User.vue +6 -6
- package/src/modules/backoffice/components/admin/Users.vue +4 -4
- package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +5 -5
- package/src/modules/community/components/layouts/Community.vue +2 -2
- package/src/modules/community/components/pages/BlogPost.vue +4 -4
- package/src/modules/community/components/pages/Community.vue +2 -2
- package/src/modules/community/components/pages/CreateBlogPost.vue +5 -5
- package/src/modules/community/components/sections/Comments.vue +5 -5
- package/src/modules/community/components/sections/Feed.vue +2 -2
- package/src/modules/community/components/sections/JoinUs.vue +2 -2
- package/src/modules/community/components/sections/SubscribeNewsletter.vue +3 -3
- package/src/modules/constructor/components/elements/Audio.vue +2 -2
- package/src/modules/constructor/components/elements/Bullets.vue +1 -1
- package/src/modules/constructor/components/elements/Caption.vue +1 -1
- package/src/modules/constructor/components/elements/Embed.vue +2 -2
- package/src/modules/constructor/components/elements/H2.vue +1 -1
- package/src/modules/constructor/components/elements/Image.vue +19 -5
- package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
- package/src/modules/constructor/components/elements/Textarea.vue +1 -1
- package/src/modules/constructor/components/sections/Constructor.vue +4 -4
- package/src/modules/events/components/blocks/CardEvent.vue +5 -5
- package/src/modules/events/components/layouts/layoutEvents.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +12 -12
- package/src/modules/events/components/pages/Event.vue +4 -4
- package/src/modules/events/components/pages/Events.vue +1 -1
- package/src/modules/events/components/sections/Feed.vue +2 -2
- package/src/modules/events/components/sections/List.vue +1 -1
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +10 -10
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +6 -6
- package/src/modules/globals/components/sections/Feed.vue +1 -1
- package/src/modules/landing/components/sections/MobileApp.vue +7 -7
- package/src/modules/legal/components/pages/Legal.vue +5 -5
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/mobile/components/Menu/MenuItem.vue +2 -2
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
- package/src/modules/orders/components/blocks/Positions.vue +8 -8
- package/src/modules/orders/components/pages/EditOrder.vue +19 -19
- package/src/modules/orders/components/pages/Favorites.vue +2 -2
- package/src/modules/orders/components/pages/Order.vue +5 -5
- package/src/modules/orders/components/pages/Orders.vue +5 -5
- package/src/modules/orders/components/pages/ViewOrder.vue +7 -7
- package/src/modules/orders/components/partials/ShopCart.vue +3 -3
- package/src/modules/orders/components/sections/Form.vue +12 -12
- package/src/modules/orders/components/sections/Succes.vue +4 -4
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -3
- package/src/modules/organizations/components/blocks/Contacts.vue +1 -1
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +2 -2
- package/src/modules/organizations/components/blocks/EditArray.vue +2 -2
- package/src/modules/organizations/components/blocks/EmptyState.vue +3 -3
- package/src/modules/organizations/components/blocks/Rating.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +6 -6
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +16 -16
- package/src/modules/organizations/components/pages/Members.vue +2 -2
- package/src/modules/organizations/components/pages/Organization.vue +5 -5
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +16 -16
- package/src/modules/organizations/components/pages/Organizations.vue +2 -2
- package/src/modules/organizations/components/sections/DetailsTab.vue +11 -11
- package/src/modules/organizations/components/sections/Documents.vue +4 -4
- package/src/modules/organizations/components/sections/Feed.vue +2 -2
- package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
- package/src/modules/organizations/components/sections/MembersAdd.vue +5 -5
- package/src/modules/organizations/components/sections/MembersList.vue +2 -2
- package/src/modules/organizations/components/sections/Unit.vue +12 -12
- package/src/modules/payments/components/pages/Payments.vue +3 -3
- package/src/modules/products/components/blocks/CardLeftover.vue +4 -4
- package/src/modules/products/components/blocks/CardProduct.vue +3 -3
- package/src/modules/products/components/blocks/EditCategories.vue +4 -4
- package/src/modules/products/components/blocks/EditFilters.vue +4 -4
- package/src/modules/products/components/blocks/LeftoverPositions.vue +1 -1
- package/src/modules/products/components/pages/LeftoverAdd.vue +7 -7
- package/src/modules/products/components/pages/Leftovers.vue +5 -5
- package/src/modules/products/components/pages/OrganizationDetails.vue +4 -4
- package/src/modules/products/components/pages/OrganizationDocuments.vue +5 -5
- package/src/modules/products/components/pages/OrganizationPeople.vue +5 -5
- package/src/modules/products/components/pages/ProductEdit.vue +5 -5
- package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
- package/src/modules/products/components/pages/ProductsBackoffice.vue +2 -2
- package/src/modules/products/components/sections/EditModifications.vue +8 -8
- package/src/modules/products/components/sections/EditParameters.vue +4 -4
- package/src/modules/products/components/sections/EditProductImages.vue +2 -2
- package/src/modules/products/components/sections/EditProductInfo.vue +5 -5
- package/src/modules/products/components/sections/FilterProducts.vue +9 -9
- package/src/modules/products/components/sections/HeroRecommendation.vue +5 -5
- package/src/modules/products/components/sections/PopularProducts.vue +1 -1
- package/src/modules/products/components/sections/ProductInformationSection.vue +27 -27
- package/src/modules/products/components/sections/SectionProduct.vue +6 -6
- package/src/modules/products/components/sections/SortProducts.vue +1 -1
- package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
- package/src/modules/reports/components/sections/FormReport.vue +4 -4
- package/src/modules/spots/components/blocks/CardSpot.vue +4 -4
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
- package/src/modules/spots/components/layouts/Spots.vue +3 -3
- package/src/modules/spots/components/pages/Spot.vue +4 -4
- package/src/modules/spots/components/pages/SpotEdit.vue +16 -16
- package/src/modules/spots/components/sections/Feed.vue +2 -2
- package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
- package/src/modules/spots/components/sections/Places.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +13 -13
- package/src/modules/users/components/pages/ProfileBlogposts.vue +2 -2
- package/src/modules/users/components/pages/ProfileComments.vue +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +21 -21
- package/src/modules/users/components/pages/ProfileEvents.vue +2 -2
- package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
- package/src/modules/users/components/pages/ProfileOrganizations.vue +2 -2
- package/src/modules/users/components/sections/ProfileCompletion.vue +1 -1
- package/src/modules/wallet/components/pages/Wallet.vue +17 -17
- package/src/styles/base/all.scss +83 -324
- package/src/styles/base/border-radius.scss +47 -0
- package/src/styles/base/height.scss +60 -0
- package/src/styles/base/scrolling.scss +8 -8
- package/src/styles/base/width.scss +2 -0
- package/src/styles/config.scss +153 -51
- package/src/styles/responsive.scss +2 -2
@@ -1,11 +1,11 @@
|
|
1
|
-
import { openBlock as e, createElementBlock as i, createVNode as c, createElementVNode as t, withCtx as a, toDisplayString as u, createCommentVNode as h, Fragment as m, renderList as g, createBlock as L, pushScopeId as
|
2
|
-
import
|
1
|
+
import { openBlock as e, createElementBlock as i, createVNode as c, createElementVNode as t, withCtx as a, toDisplayString as u, createCommentVNode as h, Fragment as m, renderList as g, createBlock as L, pushScopeId as f, popScopeId as v } from "vue";
|
2
|
+
import b from "../../../../components/Spoiler/Spoiler.vue2.js";
|
3
3
|
import C from "../../../../components/Map/Map.vue2.js";
|
4
4
|
import $ from "./SpotSub.vue.js";
|
5
5
|
import _ from "../../../organizations/components/blocks/User.vue.js";
|
6
6
|
import "./CardSpot.vue2.js";
|
7
7
|
import k from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
8
|
-
const r = (o) => (
|
8
|
+
const r = (o) => (f("data-v-12a05b3e"), o = o(), v(), o), x = { class: "radius-big o-hidden cols-2-1_3" }, M = { class: "pd-medium w-100" }, y = /* @__PURE__ */ r(() => /* @__PURE__ */ t("path", {
|
9
9
|
d: "M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",
|
10
10
|
fill: "black"
|
11
11
|
}, null, -1)), z = [
|
@@ -61,15 +61,15 @@ const r = (o) => (v("data-v-6ef388c4"), o = o(), b(), o), x = { class: "radius-b
|
|
61
61
|
}, z)),
|
62
62
|
t("h3", {
|
63
63
|
onClick: n[1] || (n[1] = (s) => l.$router.push(`/app/organization/${d.organization._id}/spots/${o.spot._id}`)),
|
64
|
-
class: "mn-small w-100",
|
64
|
+
class: "mn-b-small w-100",
|
65
65
|
innerHTML: o.spot.profile.name
|
66
66
|
}, null, 8, S),
|
67
67
|
t("p", {
|
68
68
|
onClick: n[2] || (n[2] = (s) => l.$router.push(`/app/organization/${d.organization._id}/spots/${o.spot._id}`)),
|
69
|
-
class: "mn-small p-big w-100",
|
69
|
+
class: "mn-b-small p-big w-100",
|
70
70
|
innerHTML: o.spot.address
|
71
71
|
}, null, 8, A),
|
72
|
-
c(
|
72
|
+
c(b, { class: "radius-small o-hidden br-1px br-solid br-grey mn-b-thin" }, {
|
73
73
|
header: a(() => [
|
74
74
|
t("div", B, [
|
75
75
|
H,
|
@@ -91,7 +91,7 @@ const r = (o) => (v("data-v-6ef388c4"), o = o(), b(), o), x = { class: "radius-b
|
|
91
91
|
]),
|
92
92
|
_: 1
|
93
93
|
}),
|
94
|
-
c(
|
94
|
+
c(b, { class: "radius-small o-hidden br-1px br-solid br-grey mn-b-thin" }, {
|
95
95
|
header: a(() => [
|
96
96
|
t("div", N, [
|
97
97
|
V,
|
@@ -115,7 +115,7 @@ const r = (o) => (v("data-v-6ef388c4"), o = o(), b(), o), x = { class: "radius-b
|
|
115
115
|
])
|
116
116
|
]));
|
117
117
|
}
|
118
|
-
}, P = /* @__PURE__ */ k(D, [["__scopeId", "data-v-
|
118
|
+
}, P = /* @__PURE__ */ k(D, [["__scopeId", "data-v-12a05b3e"]]);
|
119
119
|
export {
|
120
120
|
P as default
|
121
121
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const d=require("../../../organizations/components/blocks/EmptyState.vue.cjs"),p=require("../blocks/CardSpot.vue.cjs"),c=require("../../store/spots.cjs"),m=require("../../../auth/store/auth.cjs"),g={__name:"Feed",props:{organization:Object,units:Array,memberships:Array},async setup(r){let l,u;const s=r;e.ref("spots"),[l,u]=e.withAsyncContext(()=>c.actions.read(s.organization._id)),await l,u();const a=e.computed(()=>{const o=c.state.spots,n=o.flatMap(t=>t.subspots.map(i=>i._id));return o.filter(t=>!n.includes(t._id))});return(o,n)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[a.value.length<1?(e.openBlock(),e.createBlock(d.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>o.$router.push(`/spots/${s.organization._id}/spots/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(t,i)=>(e.openBlock(),e.createBlock(p.default,{key:i,spot:t,organization:r.organization,class:"radius-big bg-grey mn-thin"},null,8,["spot","organization"]))),128)),a.value.length>0&&m.state.user._id===r.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=t=>o.$router.push(`/spots/${s.organization._id}/spots/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const d=require("../../../organizations/components/blocks/EmptyState.vue.cjs"),p=require("../blocks/CardSpot.vue.cjs"),c=require("../../store/spots.cjs"),m=require("../../../auth/store/auth.cjs"),g={__name:"Feed",props:{organization:Object,units:Array,memberships:Array},async setup(r){let l,u;const s=r;e.ref("spots"),[l,u]=e.withAsyncContext(()=>c.actions.read(s.organization._id)),await l,u();const a=e.computed(()=>{const o=c.state.spots,n=o.flatMap(t=>t.subspots.map(i=>i._id));return o.filter(t=>!n.includes(t._id))});return(o,n)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[a.value.length<1?(e.openBlock(),e.createBlock(d.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>o.$router.push(`/spots/${s.organization._id}/spots/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(t,i)=>(e.openBlock(),e.createBlock(p.default,{key:i,spot:t,organization:r.organization,class:"radius-big bg-grey mn-b-thin"},null,8,["spot","organization"]))),128)),a.value.length>0&&m.state.user._id===r.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=t=>o.$router.push(`/spots/${s.organization._id}/spots/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as g, withAsyncContext as
|
1
|
+
import { ref as g, withAsyncContext as b, computed as f, openBlock as o, createBlock as l, Transition as y, withCtx as _, createElementVNode as d, createCommentVNode as c, createElementBlock as m, Fragment as h, renderList as k } from "vue";
|
2
2
|
import "../../../../components/Tab/Tab.vue.js";
|
3
3
|
import v from "../../../organizations/components/blocks/EmptyState.vue.js";
|
4
4
|
import z from "../blocks/CardSpot.vue.js";
|
@@ -14,8 +14,8 @@ const N = {
|
|
14
14
|
async setup(r) {
|
15
15
|
let p, u;
|
16
16
|
const s = r;
|
17
|
-
g("spots"), [p, u] =
|
18
|
-
const a =
|
17
|
+
g("spots"), [p, u] = b(() => $.read(s.organization._id)), await p, u();
|
18
|
+
const a = f(() => {
|
19
19
|
const e = A.spots, n = e.flatMap(
|
20
20
|
(t) => t.subspots.map((i) => i._id)
|
21
21
|
);
|
@@ -38,12 +38,12 @@ const N = {
|
|
38
38
|
key: i,
|
39
39
|
spot: t,
|
40
40
|
organization: r.organization,
|
41
|
-
class: "radius-big bg-grey mn-thin"
|
41
|
+
class: "radius-big bg-grey mn-b-thin"
|
42
42
|
}, null, 8, ["spot", "organization"]))), 128)),
|
43
43
|
a.value.length > 0 && w.user._id === r.organization.owner ? (o(), m("button", {
|
44
44
|
key: 0,
|
45
45
|
onClick: n[0] || (n[0] = (t) => e.$router.push(`/spots/${s.organization._id}/spots/create`)),
|
46
|
-
class: "mn-thin button w-100"
|
46
|
+
class: "mn-b-thin button w-100"
|
47
47
|
}, " Add spot ")) : c("", !0)
|
48
48
|
])
|
49
49
|
])
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const k=require("../../../../components/Dropdown/Dropdown.vue2.cjs"),d=require("../../../mobile/components/Menu/Menu.vue2.cjs"),l=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),h=require("../../../reports/components/sections/FormReport.vue.cjs"),g=require("../../../organizations/components/blocks/Socials.vue.cjs"),N=require("../sections/ProfileCompletion.vue.cjs"),V=require("../../../icons/entities/IconEvents.vue.cjs"),B=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),E=require("../../../icons/navigation/IconEdit.vue.cjs"),C=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),f=require("vue-router"),a=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),y=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const v={key:0,class:"for-transition w-100"},x={key:0,class:"flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-grey"},M={class:"bg-black pd-thin radius-small"},R=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),U=["src"],D={class:"mn-b-thin"},O={class:"mn-b-thin t-main t-semi"},$={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},L={class:"t-semi mn-b-small"},P={key:5,class:"mn-t-small mn-b-thin"},F=e.createElementVNode("span",null," Backoffice ",-1),j=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),T=e.createElementVNode("span",null,"Posts",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),H=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),J={__name:"Profile",setup(K){const o=f.useRoute(),n=f.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:o.params._id,user:a.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,b)=>{y.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,b)};function _(){a.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",v,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",x," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(o).params._id===a.state.user._id&&u.value?(e.openBlock(),e.createBlock(N.default,{key:0,user:a.state.user._id,target:t.state.current,cta:!0},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(k.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",M,[e.createVNode(h.default,{user:a.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[R]),_:1},8,["user","target"]),a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:a.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(o).params._id===a.state.user._id?(e.openBlock(),e.createBlock(E.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:a.state.user._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,U)):(e.openBlock(),e.createBlock(C.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",D,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Not specified"),1),e.createElementVNode("p",O," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1),e.createElementVNode("p",$,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",L," 👨👨👧👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),a.state.user._id&&e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:4,user:a.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",P," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(g.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),a.state.access.roles&&a.state.user._id===e.unref(o).params._id&&(a.state.access.roles.includes("ROLE_MODERATOR")||a.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-black t-white"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"Backoffice",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer",theme:"white"},{default:e.withCtx(()=>[F]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"mn-b-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(V.default,{class:"i-semi",icon:!0}),j]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),T]),_:1})]),_:1}),a.state.user._id===e.unref(o).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>_())},{default:e.withCtx(()=>[H]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=J;
|
@@ -28,9 +28,9 @@ const G = {
|
|
28
28
|
key: 1,
|
29
29
|
_id: "dash",
|
30
30
|
class: "pd-b-extra pd-thin w-100"
|
31
|
-
}, H = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, J = { class: "bg-black pd-thin radius-small" }, K = /* @__PURE__ */ n("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), Q = ["src"], W = { class: "mn-thin" }, X = { class: "mn-thin t-main t-semi" }, Y = { class: "mn-small p-medium" }, Z = { class: "mn-medium flex-center flex-nowrap flex" }, ee = { class: "t-semi mn-small" }, se = {
|
31
|
+
}, H = { class: "flex-center flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-grey" }, J = { class: "bg-black pd-thin radius-small" }, K = /* @__PURE__ */ n("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), Q = ["src"], W = { class: "mn-b-thin" }, X = { class: "mn-b-thin t-main t-semi" }, Y = { class: "mn-b-small p-medium" }, Z = { class: "mn-b-medium flex-center flex-nowrap flex" }, ee = { class: "t-semi mn-b-small" }, se = {
|
32
32
|
key: 5,
|
33
|
-
class: "mn-t-small mn-thin"
|
33
|
+
class: "mn-t-small mn-b-thin"
|
34
34
|
}, re = /* @__PURE__ */ n("span", null, " Backoffice ", -1), te = /* @__PURE__ */ n("span", null, "Events", -1), ie = /* @__PURE__ */ n("span", null, "Groups", -1), oe = /* @__PURE__ */ n("span", null, "Posts", -1), ae = /* @__PURE__ */ n("span", null, " Settings ", -1), ne = /* @__PURE__ */ n("span", null, " About ", -1), le = /* @__PURE__ */ n("span", { class: "t-red" }, " Logout ", -1), Be = {
|
35
35
|
__name: "Profile",
|
36
36
|
setup(ue) {
|
@@ -101,10 +101,10 @@ const G = {
|
|
101
101
|
e.current.profile.photo.length > 0 ? (a(), p("img", {
|
102
102
|
key: 2,
|
103
103
|
src: (b.FILE_SERVER_URL || "") + e.current.profile.photo,
|
104
|
-
class: "radius-extra bg-white mn-small object-fit-cover i-extra"
|
104
|
+
class: "radius-extra bg-white mn-b-small object-fit-cover i-extra"
|
105
105
|
}, null, 8, Q)) : (a(), c(D, {
|
106
106
|
key: 3,
|
107
|
-
class: "radius-medium mn-small i-extra"
|
107
|
+
class: "radius-medium mn-b-small i-extra"
|
108
108
|
})),
|
109
109
|
n("h3", W, f(e.current.profile.name ? e.current.profile.name : "Not specified"), 1),
|
110
110
|
n("p", X, " @" + f(e.current.username ? e.current.username : "Not specified"), 1),
|
@@ -124,7 +124,7 @@ const G = {
|
|
124
124
|
status: e.current.isSubscriber,
|
125
125
|
text: { create: "Follow", remove: "Unfollow" },
|
126
126
|
onUpdateMembership: s[2] || (s[2] = (t) => v(t, "isSubscriber", "numberOfSubscribers")),
|
127
|
-
class: "w-min mn-medium mn-r-auto mn-l-auto"
|
127
|
+
class: "w-min mn-b-medium mn-r-auto mn-l-auto"
|
128
128
|
}, null, 8, ["user", "target", "status"])) : m("", !0),
|
129
129
|
Object.values(e.current.socials).some((t) => t) ? (a(), p("h4", se, " Find Me in Socials ")) : m("", !0),
|
130
130
|
l(M, {
|
@@ -137,7 +137,7 @@ const G = {
|
|
137
137
|
]),
|
138
138
|
i.access.roles && i.user._id === r(o).params._id && (i.access.roles.includes("ROLE_MODERATOR") || i.access.roles.includes("ROLE_ADMIN")) ? (a(), c(k, {
|
139
139
|
key: 1,
|
140
|
-
class: "mn-regular bg-black t-white"
|
140
|
+
class: "mn-b-regular bg-black t-white"
|
141
141
|
}, {
|
142
142
|
default: u(() => [
|
143
143
|
l(_, {
|
@@ -158,7 +158,7 @@ const G = {
|
|
158
158
|
]),
|
159
159
|
_: 1
|
160
160
|
})) : m("", !0),
|
161
|
-
l(k, { class: "mn-regular bg-grey" }, {
|
161
|
+
l(k, { class: "mn-b-regular bg-grey" }, {
|
162
162
|
default: u(() => [
|
163
163
|
l(_, {
|
164
164
|
onClick: s[4] || (s[4] = (t) => r(d).push({ name: "User Events", params: { _id: r(o).params._id } })),
|
package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),i=require("../../../../components/Tab/Tab.vue2.cjs"),u=require("../../../community/components/sections/Feed.vue.cjs"),o=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),_={__name:"ProfileBlogposts",setup(k){const t=n.useRoute(),c=n.useRouter();let d=t.query.tab?t.query.tab:"posts";const r=e.ref(d);return t.query.tab=r.value,e.watch(r,a=>{c.replace({query:{...t.query,tab:a}})}),(a,s)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[f,o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=l=>a.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createBlock(i.default,{key:0,selected:r.value,"onUpdate:selected":s[1]||(s[1]=l=>r.value=l),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),r.value==="posts"?(e.openBlock(),e.createBlock(u.default,{key:1,user:o.state.user._id,creator:e.unref(t).params._id},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="drafts"?(e.openBlock(),e.createBlock(u.default,{key:2,user:o.state.user._id,creator:e.unref(t).params._id,status:"draft"},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="following"?(e.openBlock(),e.createBlock(u.default,{key:3,user:o.state.user._id,following:e.unref(t).params._id},null,8,["user","following"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),i=require("../../../../components/Tab/Tab.vue2.cjs"),u=require("../../../community/components/sections/Feed.vue.cjs"),o=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},p={class:"mn-b-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),_={__name:"ProfileBlogposts",setup(k){const t=n.useRoute(),c=n.useRouter();let d=t.query.tab?t.query.tab:"posts";const r=e.ref(d);return t.query.tab=r.value,e.watch(r,a=>{c.replace({query:{...t.query,tab:a}})}),(a,s)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[f,o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=l=>a.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createBlock(i.default,{key:0,selected:r.value,"onUpdate:selected":s[1]||(s[1]=l=>r.value=l),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),r.value==="posts"?(e.openBlock(),e.createBlock(u.default,{key:1,user:o.state.user._id,creator:e.unref(t).params._id},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="drafts"?(e.openBlock(),e.createBlock(u.default,{key:2,user:o.state.user._id,creator:e.unref(t).params._id,status:"draft"},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="following"?(e.openBlock(),e.createBlock(u.default,{key:3,user:o.state.user._id,following:e.unref(t).params._id},null,8,["user","following"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { ref as _, watch as
|
2
|
-
import { useRoute as
|
1
|
+
import { ref as _, watch as b, openBlock as t, createElementBlock as d, createElementVNode as c, unref as s, createCommentVNode as o, createBlock as l } from "vue";
|
2
|
+
import { useRoute as g, useRouter as v } from "vue-router";
|
3
3
|
import y from "../../../../components/Tab/Tab.vue2.js";
|
4
4
|
import i from "../../../community/components/sections/Feed.vue.js";
|
5
5
|
import { state as a } from "../../../auth/store/auth.js";
|
6
|
-
const h = { class: "pd-thin" }, k = { class: "mn-medium flex-v-center flex-nowrap flex" }, w = /* @__PURE__ */ c("h2", { class: "mn-r-medium" }, "Posts", -1), E = {
|
6
|
+
const h = { class: "pd-thin" }, k = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, w = /* @__PURE__ */ c("h2", { class: "mn-r-medium" }, "Posts", -1), E = {
|
7
7
|
__name: "ProfileBlogposts",
|
8
8
|
setup(q) {
|
9
|
-
const e =
|
9
|
+
const e = g(), p = v();
|
10
10
|
let f = e.query.tab ? e.query.tab : "posts";
|
11
11
|
const r = _(f);
|
12
|
-
return e.query.tab = r.value,
|
12
|
+
return e.query.tab = r.value, b(r, (n) => {
|
13
13
|
p.replace({ query: { ...e.query, tab: n } });
|
14
14
|
}), (n, u) => (t(), d("div", h, [
|
15
15
|
c("header", k, [
|
@@ -31,7 +31,7 @@ const h = { class: "pd-thin" }, k = { class: "mn-medium flex-v-center flex-nowra
|
|
31
31
|
{ name: "Drafts", value: "drafts" },
|
32
32
|
{ name: "Following", value: "following" }
|
33
33
|
],
|
34
|
-
class: "mn-small o-hidden h5 radius-big bg-grey"
|
34
|
+
class: "mn-b-small o-hidden h5 radius-big bg-grey"
|
35
35
|
}, null, 8, ["selected"])) : o("", !0),
|
36
36
|
r.value === "posts" ? (t(), l(i, {
|
37
37
|
key: 1,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../../../node_modules/js-cookie/src/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");const i=require("../../../../components/Field/Field.vue2.cjs"),m=require("../../../../components/Button/Button.vue2.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../../../node_modules/js-cookie/src/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");const i=require("../../../../components/Field/Field.vue2.cjs"),m=require("../../../../components/Button/Button.vue2.cjs"),v=require("../../../../components/UploadImage/UploadImage.vue.cjs"),g=require("../sections/ProfileCompletion.vue.cjs"),c=require("vue-router"),r=require("../../../auth/store/auth.cjs"),o=require("../../store/users.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("./ProfileEdit.vue2.cjs");const N={class:"pd-medium for-transition w-100"},V=e.createElementVNode("h3",{class:"mn-b-small"},"Username",-1),w=e.createElementVNode("p",{class:"mn-b-semi"},"Your username will be used for URL of profile like thecommunephuket/users/username",-1),y=e.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),_={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},U=e.createElementVNode("h4",null,"Upload userpic",-1),k=e.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),q=e.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),E=e.createElementVNode("h3",{class:"mn-b-small"},"Account",-1),P={__name:"ProfileEdit",async setup(S){let n,d;e.ref(null);const f=c.useRoute(),u=c.useRouter();[n,d]=e.withAsyncContext(()=>o.actions.read({_id:r.state.user._id})),await n,d();const l=e.ref(o.state.current);async function p(){await o.actions.update(o.state.current)}async function b(){window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.")&&(o.state.current.status="removed",await o.actions.update(o.state.current),r.actions.logout())}function h(){u.replace({name:"User Profile",params:{_id:o.state.current._id}})}return(s,a)=>(e.openBlock(),e.createElementBlock("div",N,[e.unref(f).params._id===r.state.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,user:r.state.user._id,target:l.value,cta:!1},null,8,["user","target"])):e.createCommentVNode("",!0),V,e.createVNode(i.default,{field:l.value.username,"onUpdate:field":a[0]||(a[0]=t=>l.value.username=t),label:"@",placeholder:"Not specified",class:"mn-b-thin w-100 bg-grey pd-medium radius-small",disabled:"true",validation:s.organizationName},null,8,["field","validation"]),w,y,e.createElementVNode("div",_,[e.createVNode(v.default,{photo:l.value.profile.photo,"onUpdate:photo":a[1]||(a[1]=t=>l.value.profile.photo=t),uploadPath:"users/"+l.value._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),U]),e.createVNode(i.default,{field:l.value.profile.name,"onUpdate:field":a[2]||(a[2]=t=>l.value.profile.name=t),label:"Name",placeholder:"Not specified",class:"mn-b-thin bg-grey pd-medium radius-small",validation:s.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:l.value.profile.description,"onUpdate:field":a[3]||(a[3]=t=>l.value.profile.description=t),label:"Description",placeholder:"Not specified",class:"mn-b-semi bg-grey pd-medium radius-small",disabled:"true",validation:s.organizationName},null,8,["field","validation"]),k,q,e.createVNode(i.default,{field:l.value.socials.instagram,"onUpdate:field":a[4]||(a[4]=t=>l.value.socials.instagram=t),label:"Instagram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.twitter,"onUpdate:field":a[5]||(a[5]=t=>l.value.socials.twitter=t),label:"Twitter",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.facebook,"onUpdate:field":a[6]||(a[6]=t=>l.value.socials.facebook=t),label:"Facebook",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.telegram,"onUpdate:field":a[7]||(a[7]=t=>l.value.socials.telegram=t),label:"Telegram",placeholder:"",class:"mn-b-semi bg-grey pd-medium radius-small"},null,8,["field"]),E,e.createVNode(i.default,{field:l.value.phone,"onUpdate:field":a[8]||(a[8]=t=>l.value.phone=t),label:"Phone",placeholder:"Not specified",class:"mn-b-thin bg-grey pd-medium mn-b-thin radius-small",disabled:"true",validation:s.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:l.value.email,"onUpdate:field":a[9]||(a[9]=t=>l.value.email=t),label:"Email",placeholder:"Not specified",class:"mn-b-semi bg-grey pd-medium radius-small",disabled:!0,validation:s.organizationName},null,8,["field","validation"]),e.createVNode(m.default,{submit:p,callback:h,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode("Save")]),_:1}),e.createVNode(m.default,{submit:b,callback:s.a=()=>{e.unref(u).push({name:"Sign In"})},class:"mn-b-thin bg-red t-white"},{default:e.withCtx(()=>[e.createTextVNode("Delete Account")]),_:1},8,["callback"])]))}};exports.default=P;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as f, withAsyncContext as U, openBlock as c, createElementBlock as k, unref as
|
1
|
+
import { ref as f, withAsyncContext as U, openBlock as c, createElementBlock as k, unref as b, createBlock as P, createCommentVNode as z, createVNode as i, createElementVNode as o, withCtx as h, createTextVNode as v } from "vue";
|
2
2
|
import "../../../../../../node_modules/js-cookie/src/js.cookie.js";
|
3
3
|
import "../../../../components/Tab/Tab.vue.js";
|
4
4
|
import t from "../../../../components/Field/Field.vue2.js";
|
@@ -10,7 +10,7 @@ import { state as r, actions as E } from "../../../auth/store/auth.js";
|
|
10
10
|
import { actions as d, state as n } from "../../store/users.js";
|
11
11
|
import "../../../middlewares/client/inputs.validation.js";
|
12
12
|
import "./ProfileEdit.vue2.js";
|
13
|
-
const R = { class: "pd-medium for-transition w-100" }, T = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Username", -1), V = /* @__PURE__ */ o("p", { class: "mn-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), B = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Profile", -1), C = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, D = /* @__PURE__ */ o("h4", null, "Upload userpic", -1), F = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Socials", -1), I = /* @__PURE__ */ o("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), L = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Account", -1), ee = {
|
13
|
+
const R = { class: "pd-medium for-transition w-100" }, T = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Username", -1), V = /* @__PURE__ */ o("p", { class: "mn-b-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), B = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Profile", -1), C = { class: "mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, D = /* @__PURE__ */ o("h4", null, "Upload userpic", -1), F = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Socials", -1), I = /* @__PURE__ */ o("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), L = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Account", -1), ee = {
|
14
14
|
__name: "ProfileEdit",
|
15
15
|
async setup(Y) {
|
16
16
|
let m, u;
|
@@ -28,7 +28,7 @@ const R = { class: "pd-medium for-transition w-100" }, T = /* @__PURE__ */ o("h3
|
|
28
28
|
p.replace({ name: "User Profile", params: { _id: n.current._id } });
|
29
29
|
}
|
30
30
|
return (s, l) => (c(), k("div", R, [
|
31
|
-
|
31
|
+
b(w).params._id === r.user._id ? (c(), P($, {
|
32
32
|
key: 0,
|
33
33
|
user: r.user._id,
|
34
34
|
target: e.value,
|
@@ -40,7 +40,7 @@ const R = { class: "pd-medium for-transition w-100" }, T = /* @__PURE__ */ o("h3
|
|
40
40
|
"onUpdate:field": l[0] || (l[0] = (a) => e.value.username = a),
|
41
41
|
label: "@",
|
42
42
|
placeholder: "Not specified",
|
43
|
-
class: "mn-thin w-100 bg-grey pd-medium radius-small",
|
43
|
+
class: "mn-b-thin w-100 bg-grey pd-medium radius-small",
|
44
44
|
disabled: "true",
|
45
45
|
validation: s.organizationName
|
46
46
|
}, null, 8, ["field", "validation"]),
|
@@ -51,7 +51,7 @@ const R = { class: "pd-medium for-transition w-100" }, T = /* @__PURE__ */ o("h3
|
|
51
51
|
photo: e.value.profile.photo,
|
52
52
|
"onUpdate:photo": l[1] || (l[1] = (a) => e.value.profile.photo = a),
|
53
53
|
uploadPath: "users/" + e.value._id + "/avatars",
|
54
|
-
class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-thin radius-extra"
|
54
|
+
class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"
|
55
55
|
}, null, 8, ["photo", "uploadPath"]),
|
56
56
|
D
|
57
57
|
]),
|
@@ -60,7 +60,7 @@ const R = { class: "pd-medium for-transition w-100" }, T = /* @__PURE__ */ o("h3
|
|
60
60
|
"onUpdate:field": l[2] || (l[2] = (a) => e.value.profile.name = a),
|
61
61
|
label: "Name",
|
62
62
|
placeholder: "Not specified",
|
63
|
-
class: "mn-thin bg-grey pd-medium radius-small",
|
63
|
+
class: "mn-b-thin bg-grey pd-medium radius-small",
|
64
64
|
validation: s.organizationName
|
65
65
|
}, null, 8, ["field", "validation"]),
|
66
66
|
i(t, {
|
@@ -68,7 +68,7 @@ const R = { class: "pd-medium for-transition w-100" }, T = /* @__PURE__ */ o("h3
|
|
68
68
|
"onUpdate:field": l[3] || (l[3] = (a) => e.value.profile.description = a),
|
69
69
|
label: "Description",
|
70
70
|
placeholder: "Not specified",
|
71
|
-
class: "mn-semi bg-grey pd-medium radius-small",
|
71
|
+
class: "mn-b-semi bg-grey pd-medium radius-small",
|
72
72
|
disabled: "true",
|
73
73
|
validation: s.organizationName
|
74
74
|
}, null, 8, ["field", "validation"]),
|
@@ -79,28 +79,28 @@ const R = { class: "pd-medium for-transition w-100" }, T = /* @__PURE__ */ o("h3
|
|
79
79
|
"onUpdate:field": l[4] || (l[4] = (a) => e.value.socials.instagram = a),
|
80
80
|
label: "Instagram",
|
81
81
|
placeholder: "",
|
82
|
-
class: "mn-thin bg-grey pd-medium radius-small"
|
82
|
+
class: "mn-b-thin bg-grey pd-medium radius-small"
|
83
83
|
}, null, 8, ["field"]),
|
84
84
|
i(t, {
|
85
85
|
field: e.value.socials.twitter,
|
86
86
|
"onUpdate:field": l[5] || (l[5] = (a) => e.value.socials.twitter = a),
|
87
87
|
label: "Twitter",
|
88
88
|
placeholder: "",
|
89
|
-
class: "mn-thin bg-grey pd-medium radius-small"
|
89
|
+
class: "mn-b-thin bg-grey pd-medium radius-small"
|
90
90
|
}, null, 8, ["field"]),
|
91
91
|
i(t, {
|
92
92
|
field: e.value.socials.facebook,
|
93
93
|
"onUpdate:field": l[6] || (l[6] = (a) => e.value.socials.facebook = a),
|
94
94
|
label: "Facebook",
|
95
95
|
placeholder: "",
|
96
|
-
class: "mn-thin bg-grey pd-medium radius-small"
|
96
|
+
class: "mn-b-thin bg-grey pd-medium radius-small"
|
97
97
|
}, null, 8, ["field"]),
|
98
98
|
i(t, {
|
99
99
|
field: e.value.socials.telegram,
|
100
100
|
"onUpdate:field": l[7] || (l[7] = (a) => e.value.socials.telegram = a),
|
101
101
|
label: "Telegram",
|
102
102
|
placeholder: "",
|
103
|
-
class: "mn-semi bg-grey pd-medium radius-small"
|
103
|
+
class: "mn-b-semi bg-grey pd-medium radius-small"
|
104
104
|
}, null, 8, ["field"]),
|
105
105
|
L,
|
106
106
|
i(t, {
|
@@ -108,7 +108,7 @@ const R = { class: "pd-medium for-transition w-100" }, T = /* @__PURE__ */ o("h3
|
|
108
108
|
"onUpdate:field": l[8] || (l[8] = (a) => e.value.phone = a),
|
109
109
|
label: "Phone",
|
110
110
|
placeholder: "Not specified",
|
111
|
-
class: "mn-thin bg-grey pd-medium mn-thin radius-small",
|
111
|
+
class: "mn-b-thin bg-grey pd-medium mn-b-thin radius-small",
|
112
112
|
disabled: "true",
|
113
113
|
validation: s.organizationName
|
114
114
|
}, null, 8, ["field", "validation"]),
|
@@ -117,16 +117,16 @@ const R = { class: "pd-medium for-transition w-100" }, T = /* @__PURE__ */ o("h3
|
|
117
117
|
"onUpdate:field": l[9] || (l[9] = (a) => e.value.email = a),
|
118
118
|
label: "Email",
|
119
119
|
placeholder: "Not specified",
|
120
|
-
class: "mn-semi bg-grey pd-medium radius-small",
|
120
|
+
class: "mn-b-semi bg-grey pd-medium radius-small",
|
121
121
|
disabled: !0,
|
122
122
|
validation: s.organizationName
|
123
123
|
}, null, 8, ["field", "validation"]),
|
124
124
|
i(g, {
|
125
125
|
submit: y,
|
126
126
|
callback: N,
|
127
|
-
class: "mn-thin"
|
127
|
+
class: "mn-b-thin"
|
128
128
|
}, {
|
129
|
-
default:
|
129
|
+
default: h(() => [
|
130
130
|
v("Save")
|
131
131
|
]),
|
132
132
|
_: 1
|
@@ -134,11 +134,11 @@ const R = { class: "pd-medium for-transition w-100" }, T = /* @__PURE__ */ o("h3
|
|
134
134
|
i(g, {
|
135
135
|
submit: _,
|
136
136
|
callback: s.a = () => {
|
137
|
-
|
137
|
+
b(p).push({ name: "Sign In" });
|
138
138
|
},
|
139
|
-
class: "mn-thin bg-red t-white"
|
139
|
+
class: "mn-b-thin bg-red t-white"
|
140
140
|
}, {
|
141
|
-
default:
|
141
|
+
default: h(() => [
|
142
142
|
v("Delete Account")
|
143
143
|
]),
|
144
144
|
_: 1
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),l=require("../../../events/components/sections/Feed.vue.cjs"),n=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},v=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(b){const t=c.useRoute(),o=c.useRouter();let i=t.query.tab?t.query.tab:"owner";const r=e.ref(i);return t.query.tab=r.value,e.watch(r,s=>{o.replace({query:{...t.query,tab:s}})}),(s,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[v,n.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=u=>e.unref(o).push({name:"Create Event"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=u=>r.value=u),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),r.value==="owner"?(e.openBlock(),e.createBlock(l.default,{key:0,user:n.state.user._id,creator:e.unref(t).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="participant"?(e.openBlock(),e.createBlock(l.default,{key:1,user:n.state.user._id,participant:e.unref(t).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),l=require("../../../events/components/sections/Feed.vue.cjs"),n=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},p={class:"mn-b-medium flex-v-center flex-nowrap flex"},v=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(b){const t=c.useRoute(),o=c.useRouter();let i=t.query.tab?t.query.tab:"owner";const r=e.ref(i);return t.query.tab=r.value,e.watch(r,s=>{o.replace({query:{...t.query,tab:s}})}),(s,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[v,n.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=u=>e.unref(o).push({name:"Create Event"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=u=>r.value=u),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),r.value==="owner"?(e.openBlock(),e.createBlock(l.default,{key:0,user:n.state.user._id,creator:e.unref(t).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="participant"?(e.openBlock(),e.createBlock(l.default,{key:1,user:n.state.user._id,participant:e.unref(t).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { ref as f, watch as
|
1
|
+
import { ref as f, watch as b, openBlock as a, createElementBlock as l, createElementVNode as p, unref as s, createCommentVNode as o, createVNode as v, createBlock as m } from "vue";
|
2
2
|
import { useRoute as y, useRouter as h } from "vue-router";
|
3
3
|
import k from "../../../../components/Tab/Tab.vue2.js";
|
4
4
|
import d from "../../../events/components/sections/Feed.vue.js";
|
5
5
|
import { state as n } from "../../../auth/store/auth.js";
|
6
|
-
const g = { class: "pd-thin" }, w = { class: "mn-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ p("h2", { class: "mn-r-medium" }, " Events ", -1), V = {
|
6
|
+
const g = { class: "pd-thin" }, w = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ p("h2", { class: "mn-r-medium" }, " Events ", -1), V = {
|
7
7
|
__name: "ProfileEvents",
|
8
8
|
setup(x) {
|
9
9
|
const e = y(), i = h();
|
10
10
|
let _ = e.query.tab ? e.query.tab : "owner";
|
11
11
|
const r = f(_);
|
12
|
-
return e.query.tab = r.value,
|
12
|
+
return e.query.tab = r.value, b(r, (u) => {
|
13
13
|
i.replace({ query: { ...e.query, tab: u } });
|
14
14
|
}), (u, t) => (a(), l("div", g, [
|
15
15
|
p("header", w, [
|
@@ -20,14 +20,14 @@ const g = { class: "pd-thin" }, w = { class: "mn-medium flex-v-center flex-nowra
|
|
20
20
|
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
21
21
|
}, " + ")) : o("", !0)
|
22
22
|
]),
|
23
|
-
|
23
|
+
v(k, {
|
24
24
|
selected: r.value,
|
25
25
|
"onUpdate:selected": t[1] || (t[1] = (c) => r.value = c),
|
26
26
|
tabs: [
|
27
27
|
{ name: "My", value: "owner" },
|
28
28
|
{ name: "Participant", value: "participant" }
|
29
29
|
],
|
30
|
-
class: "mn-small o-hidden h5 radius-big bg-grey"
|
30
|
+
class: "mn-b-small o-hidden h5 radius-big bg-grey"
|
31
31
|
}, null, 8, ["selected"]),
|
32
32
|
r.value === "owner" ? (a(), m(d, {
|
33
33
|
key: 0,
|
package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),c=require("../../../../components/Tab/Tab.vue2.cjs"),l=require("../../../organizations/components/sections/Feed.vue.cjs"),u=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},b={class:"mn-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),p={__name:"ProfileOrganizations",setup(_){const t=n.useRoute(),i=n.useRouter();let d=t.query.tab?t.query.tab:"member";const r=e.ref(d);return t.query.tab=r.value,e.watch(r,o=>{i.replace({query:{...t.query,tab:o}})}),(o,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",b,[f,u.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=s=>o.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(c.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(l.default,{key:0,user:u.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(l.default,{key:0,user:u.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=p;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),c=require("../../../../components/Tab/Tab.vue2.cjs"),l=require("../../../organizations/components/sections/Feed.vue.cjs"),u=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},b={class:"mn-b-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),p={__name:"ProfileOrganizations",setup(_){const t=n.useRoute(),i=n.useRouter();let d=t.query.tab?t.query.tab:"member";const r=e.ref(d);return t.query.tab=r.value,e.watch(r,o=>{i.replace({query:{...t.query,tab:o}})}),(o,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",b,[f,u.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=s=>o.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(c.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-b-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(l.default,{key:0,user:u.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(l.default,{key:0,user:u.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=p;
|
package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
import { ref as h, watch as w, openBlock as a, createElementBlock as m, createElementVNode as
|
1
|
+
import { ref as h, watch as w, openBlock as a, createElementBlock as m, createElementVNode as p, unref as s, createCommentVNode as u, createVNode as n, Transition as d, withCtx as c, createBlock as b } from "vue";
|
2
2
|
import { useRoute as y, useRouter as g } from "vue-router";
|
3
3
|
import k from "../../../../components/Tab/Tab.vue2.js";
|
4
|
-
import
|
4
|
+
import f from "../../../organizations/components/sections/Feed.vue.js";
|
5
5
|
import { state as i } from "../../../auth/store/auth.js";
|
6
|
-
const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */
|
6
|
+
const q = { class: "pd-thin" }, x = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */ p("h2", { class: "mn-r-medium" }, "Groups", -1), E = {
|
7
7
|
__name: "ProfileOrganizations",
|
8
8
|
setup($) {
|
9
|
-
const e = y(),
|
9
|
+
const e = y(), _ = g();
|
10
10
|
let v = e.query.tab ? e.query.tab : "member";
|
11
11
|
const r = h(v);
|
12
12
|
return e.query.tab = r.value, w(r, (o) => {
|
13
|
-
|
13
|
+
_.replace({ query: { ...e.query, tab: o } });
|
14
14
|
}), (o, t) => (a(), m("div", q, [
|
15
|
-
|
15
|
+
p("header", x, [
|
16
16
|
C,
|
17
17
|
i.user._id === s(e).params._id ? (a(), m("button", {
|
18
18
|
key: 0,
|
@@ -29,11 +29,11 @@ const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowra
|
|
29
29
|
{ name: "Member", value: "member" },
|
30
30
|
{ name: "Follower", value: "follower" }
|
31
31
|
],
|
32
|
-
class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
32
|
+
class: "mn-b-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
33
33
|
}, null, 8, ["selected"]),
|
34
34
|
n(d, { name: "slide-fade" }, {
|
35
35
|
default: c(() => [
|
36
|
-
r.value === "member" ? (a(), f
|
36
|
+
r.value === "member" ? (a(), b(f, {
|
37
37
|
key: 0,
|
38
38
|
user: i.user._id,
|
39
39
|
owner: s(e).params._id
|
@@ -43,7 +43,7 @@ const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowra
|
|
43
43
|
}),
|
44
44
|
n(d, { name: "slide-fade" }, {
|
45
45
|
default: c(() => [
|
46
|
-
r.value === "follower" ? (a(), f
|
46
|
+
r.value === "follower" ? (a(), b(f, {
|
47
47
|
key: 0,
|
48
48
|
user: i.user._id,
|
49
49
|
subscriber: s(e).params._id
|
package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m={class:"w-100 mn-semi radius-medium pd-medium bg-main t-black"},d={__name:"ProfileCompletion",props:{user:Object,target:Object,cta:Boolean},setup(n){const{user:f,cta:p,target:a}=n,c=e.ref(0),u=i=>{let o=0,l=0;function s(t){for(let r in t)t.hasOwnProperty(r)&&(t[r]&&typeof t[r]=="object"&&!Array.isArray(t[r])?s(t[r]):(o++,t[r]!=null&&t[r]!==""&&l++))}return s(i),o===0?0:Math.round(l/o*100)};return a&&(c.value=u(a)),(i,o)=>{const l=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",m,[e.createElementVNode("h3",null," Profile completed at "+e.toDisplayString(c.value)+"% ",1),n.cta?(e.openBlock(),e.createBlock(l,{key:0,to:{name:"User Edit Profile",params:{_id:n.user}},class:"mn-t-regular t-black bg-white w-100 button"},{default:e.withCtx(()=>[e.createTextVNode(" Fill Profile ")]),_:1},8,["to"])):e.createCommentVNode("",!0)])}}};exports.default=d;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m={class:"w-100 mn-b-semi radius-medium pd-medium bg-main t-black"},d={__name:"ProfileCompletion",props:{user:Object,target:Object,cta:Boolean},setup(n){const{user:f,cta:p,target:a}=n,c=e.ref(0),u=i=>{let o=0,l=0;function s(t){for(let r in t)t.hasOwnProperty(r)&&(t[r]&&typeof t[r]=="object"&&!Array.isArray(t[r])?s(t[r]):(o++,t[r]!=null&&t[r]!==""&&l++))}return s(i),o===0?0:Math.round(l/o*100)};return a&&(c.value=u(a)),(i,o)=>{const l=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",m,[e.createElementVNode("h3",null," Profile completed at "+e.toDisplayString(c.value)+"% ",1),n.cta?(e.openBlock(),e.createBlock(l,{key:0,to:{name:"User Edit Profile",params:{_id:n.user}},class:"mn-t-regular t-black bg-white w-100 button"},{default:e.withCtx(()=>[e.createTextVNode(" Fill Profile ")]),_:1},8,["to"])):e.createCommentVNode("",!0)])}}};exports.default=d;
|
package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as m, resolveComponent as f, openBlock as s, createElementBlock as d, createElementVNode as p, toDisplayString as k, createBlock as _, withCtx as P, createTextVNode as g, createCommentVNode as h } from "vue";
|
2
|
-
const y = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, B = {
|
2
|
+
const y = { class: "w-100 mn-b-semi radius-medium pd-medium bg-main t-black" }, B = {
|
3
3
|
__name: "ProfileCompletion",
|
4
4
|
props: {
|
5
5
|
user: Object,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../../../../../node_modules/web3/lib/esm/web3.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_config.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_request_manager.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_subscriptions.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_context.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_batch_request.cjs");require("../../../../../../node_modules/web3-types/lib/esm/data_format_types.cjs");require("../../../../../../node_modules/web3-types/lib/esm/eth_types.cjs");require("../../../../../../node_modules/web3-types/lib/esm/web3_base_provider.cjs");require("../../../../../../node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../../../node_modules/web3-eth-iban/lib/esm/iban.cjs");require("../../../../../../node_modules/web3-validator/lib/esm/formats.cjs");require("../../../../../../node_modules/web3-validator/lib/esm/default_validator.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_promi_event.cjs");require("../../../../../../node_modules/setimmediate/setImmediate.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/web3_eth.cjs");require("../../../../../../node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/schemas.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/constants.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../../../../node_modules/web3-eth-contract/lib/esm/contract.cjs");require("../../../../../../node_modules/web3-eth-personal/lib/esm/personal.cjs");require("../../../../../../node_modules/web3-net/lib/esm/net.cjs");require("../../../../../../node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../node_modules/web3-providers-http/lib/esm/index.cjs");require("../../../../../../node_modules/isomorphic-ws/browser.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/wallet.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/account.cjs");require("../../../../../../node_modules/crc-32/crc32.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/common/types.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../../../node_modules/@ethereumjs/rlp/dist/index.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../../../node_modules/web3-eth-ens/lib/esm/ens.cjs");require("../../../../../../node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../../../node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../../../node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const i=require("vue-router"),c={class:"pd-big"},u=e.createElementVNode("h1",{class:"mn-small"}," Your Wallet ",-1),d=e.createElementVNode("p",{class:"mn-semi p-big"}," Earn Weeder Token Crypto with buying our weed, use it as money when buying our products or withdraw and trade ",-1),m={class:"mn-semi flex-nowrap flex gap-thin"},_={key:0,class:"w-100 pd-medium radius-medium t-center bg-grey"},
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../../../../../node_modules/web3/lib/esm/web3.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_config.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_request_manager.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_subscriptions.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_context.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_batch_request.cjs");require("../../../../../../node_modules/web3-types/lib/esm/data_format_types.cjs");require("../../../../../../node_modules/web3-types/lib/esm/eth_types.cjs");require("../../../../../../node_modules/web3-types/lib/esm/web3_base_provider.cjs");require("../../../../../../node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../../../node_modules/web3-eth-iban/lib/esm/iban.cjs");require("../../../../../../node_modules/web3-validator/lib/esm/formats.cjs");require("../../../../../../node_modules/web3-validator/lib/esm/default_validator.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_promi_event.cjs");require("../../../../../../node_modules/setimmediate/setImmediate.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/web3_eth.cjs");require("../../../../../../node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/schemas.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/constants.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../../../../node_modules/web3-eth-contract/lib/esm/contract.cjs");require("../../../../../../node_modules/web3-eth-personal/lib/esm/personal.cjs");require("../../../../../../node_modules/web3-net/lib/esm/net.cjs");require("../../../../../../node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../node_modules/web3-providers-http/lib/esm/index.cjs");require("../../../../../../node_modules/isomorphic-ws/browser.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/wallet.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/account.cjs");require("../../../../../../node_modules/crc-32/crc32.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/common/types.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../../../node_modules/@ethereumjs/rlp/dist/index.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../../../node_modules/web3-eth-ens/lib/esm/ens.cjs");require("../../../../../../node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../../../node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../../../node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const i=require("vue-router"),c={class:"pd-big"},u=e.createElementVNode("h1",{class:"mn-b-small"}," Your Wallet ",-1),d=e.createElementVNode("p",{class:"mn-b-semi p-big"}," Earn Weeder Token Crypto with buying our weed, use it as money when buying our products or withdraw and trade ",-1),m={class:"mn-b-semi flex-nowrap flex gap-thin"},_={key:0,class:"w-100 pd-medium radius-medium t-center bg-grey"},b=e.createElementVNode("h3",{class:"mn-b-small"},"Make first order and start earning Weeder Token ",-1),p=e.createElementVNode("button",{class:"mn-l-auto mn-r-auto bg-main button"},"Explore marketplace",-1),h=[b,p],q={key:1,class:"w-100 pd-medium radius-medium bg-grey"},k=e.createElementVNode("p",{class:"h4 mn-b-thin"},"You own: ",-1),g=e.createElementVNode("h3",{class:"mn-b-small"},"0.14% of Weeder",-1),E=e.createElementVNode("button",{class:"w-100 bg-main button"},"Get More",-1),y=[k,g,E],N={key:2,class:"w-100 pd-medium radius-medium bg-grey"},V=e.createElementVNode("p",{class:"h4 mn-b-thin"},"You earn: ",-1),v=e.createElementVNode("h3",{class:"mn-b-small"},"245.43 WDT",-1),w=e.createElementVNode("button",{class:"w-100 bg-main button"},"Get More",-1),B=[V,v,w],f={class:"w-50 bg-black radius-semi pd-medium t-white"},W=e.createElementVNode("p",{class:"h4 mn-b-thin"},"Your Metamask",-1),C={key:0,class:"mn-b-small pd-small br-solid br-1px br-white-transp-10 radius-small"},M={key:1,class:"p-medium t-transp mn-b-small"},D=e.createElementVNode("h3",{class:"mn-b-small"}," Incomes ",-1),S={class:"cols-4 gap-thin"},j={class:"pd-medium radius-medium bg-grey"},T={class:"mn-b-small"},Y={class:"p-small mn-b-small"},x={__name:"Wallet",setup(F){i.useRoute(),e.ref(!1);const a=new s.Web3(s.Web3.givenProvider||"http://localhost:8080"),t=e.ref(null);async function l(){const o=await a.eth.requestAccounts();t.value=o[0]}return e.onMounted(()=>{}),(o,n)=>(e.openBlock(),e.createElementBlock("section",c,[u,d,e.createElementVNode("div",m,[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_,h)),t.value?(e.openBlock(),e.createElementBlock("div",q,y)):e.createCommentVNode("",!0),t.value?(e.openBlock(),e.createElementBlock("div",N,B)):e.createCommentVNode("",!0),e.createElementVNode("div",f,[W,t.value?(e.openBlock(),e.createElementBlock("div",C,e.toDisplayString(t.value),1)):e.createCommentVNode("",!0),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",M,"Connect Metamask to withdrawal your earnings.")),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:2,onClick:l,class:"w-100 button"}," Connect Wallet ")),t.value?(e.openBlock(),e.createElementBlock("button",{key:3,onClick:n[0]||(n[0]=(...r)=>o.disconnectWallet&&o.disconnectWallet(...r)),class:"w-100 bg-red button"}," Disonnect Wallet ")):e.createCommentVNode("",!0)])]),D,e.createElementVNode("section",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList([{balance:34,type:"income",reason:"order",target:"ef34dsdase4389snjnu (_id)"},{balance:25,type:"income",reason:"post",target:"ef34dsdase4389snjnu (_id)"},{balance:17,type:"income",reason:"comment",target:"ef34dsdase4389snjnu (_id)"},{balance:43,type:"event",reason:"order",target:"ef34dsdase4389snjnu (_id)"}],r=>(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("h3",T,"+ "+e.toDisplayString(r.balance)+" WDT",1),e.createElementVNode("p",Y,"For "+e.toDisplayString(r.reason)+" "+e.toDisplayString(r.target),1)]))),256))])]))}};exports.default=x;
|