@ozdao/prometheus-framework 0.1.36 → 0.1.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-568b55bb.js +1 -0
- package/dist/BackofficeGallery-b4105137.mjs +306 -0
- package/dist/BlockTags-8cddaef7.js +1 -0
- package/dist/BlockTags-ee310572.mjs +853 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Button-7643c9aa.js +1 -0
- package/dist/Button-9e1a9284.mjs +226 -0
- package/dist/ButtonToggleMembership-15f149cb.js +1 -0
- package/dist/ButtonToggleMembership-3bb9139e.mjs +90 -0
- package/dist/CardBlogpost-38016b80.mjs +246 -0
- package/dist/CardBlogpost-cc208f93.js +1 -0
- package/dist/CardOrganization-d93c9bdb.js +1 -0
- package/dist/CardOrganization-e920be73.mjs +234 -0
- package/dist/CardProduct-92affca1.js +1 -0
- package/dist/CardProduct-fca53299.mjs +193 -0
- package/dist/Checkbox-5dbe7b23.mjs +62 -0
- package/dist/Checkbox-76f09248.js +1 -0
- package/dist/Chips-9d81b215.mjs +214 -0
- package/dist/Chips-d47704e6.js +1 -0
- package/dist/Community-87522a04.mjs +132 -0
- package/dist/Community-aef23aee.js +1 -0
- package/dist/Dashboard-91d73bc5.js +1 -0
- package/dist/Dashboard-ea9035bc.mjs +152 -0
- package/dist/Dropdown-31115457.js +1 -0
- package/dist/Dropdown-cab3605b.mjs +146 -0
- package/dist/EULA-aba6a807.js +1 -0
- package/dist/EditOrder-94bbebff.mjs +221 -0
- package/dist/EditOrder-c070d474.js +1 -0
- package/dist/EmptyState-d65bab5b.js +1 -0
- package/dist/EmptyState-e404b05d.mjs +36 -0
- package/dist/Events-cdfbca78.js +1 -0
- package/dist/Events-e9dd58f7.mjs +123 -0
- package/dist/Feed-22464fcd.js +1 -0
- package/dist/Feed-6e96d3dd.mjs +124 -0
- package/dist/Feed-793b3eef.mjs +146 -0
- package/dist/Feed-7b80704d.mjs +361 -0
- package/dist/Feed-98b47c6f.js +1 -0
- package/dist/Feed-b30ef609.js +1 -0
- package/dist/Feed-c5d4390a.js +1 -0
- package/dist/Feed-d114330c.mjs +112 -0
- package/dist/Field-e2a43424.js +1 -0
- package/dist/Field-e5ad88d3.mjs +75 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
- package/dist/IconChevronRight-a55f838e.js +1 -0
- package/dist/IconChevronRight-fae9d012.mjs +28 -0
- package/dist/IconCommunity-468dc457.mjs +65 -0
- package/dist/IconCommunity-b339e806.js +1 -0
- package/dist/IconCross-5bf93179.js +1 -0
- package/dist/IconCross-84cb1292.mjs +28 -0
- package/dist/IconEdit-9edfd74d.mjs +21 -0
- package/dist/IconEdit-c0469b45.js +1 -0
- package/dist/Image-245c003d.mjs +480 -0
- package/dist/Image-35d31936.js +9 -0
- package/dist/LabelGooglePlay-24feb437.mjs +31 -0
- package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
- package/dist/LeftoverAdd-08d9fb54.mjs +228 -0
- package/dist/LeftoverAdd-fc673884.js +1 -0
- package/dist/Leftovers-296c0042.js +1 -0
- package/dist/Leftovers-685d9f19.mjs +136 -0
- package/dist/Loader-21f016da.js +1 -0
- package/dist/Loader-cd422786.mjs +41 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Members-2cb2ff58.mjs +114 -0
- package/dist/Members-85534d1f.js +1 -0
- package/dist/Menu-b5d6a0c7.js +1 -0
- package/dist/Menu-dd7645c1.mjs +13 -0
- package/dist/MenuItem-56ae7f94.js +1 -0
- package/dist/MenuItem-6296d02f.mjs +63 -0
- package/dist/Orders-b64e8cb9.js +1 -0
- package/dist/Orders-ff30db05.mjs +75 -0
- package/dist/Organizations-0cb37d68.js +1 -0
- package/dist/Organizations-d6ef2113.mjs +73 -0
- package/dist/Payments-53e5fecf.js +1 -0
- package/dist/Payments-82e545e1.mjs +87 -0
- package/dist/PlaceholderUserpic-47f6f319.js +1 -0
- package/dist/Popup-0915427c.mjs +74 -0
- package/dist/Popup-795f5c88.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Product-5994a8c9.mjs +653 -0
- package/dist/Product-68fa1e9e.js +7 -0
- package/dist/ProductEdit-64207814.mjs +296 -0
- package/dist/ProductEdit-a434240f.js +1 -0
- package/dist/ProductsBackoffice-0c93f9b6.js +1 -0
- package/dist/ProductsBackoffice-3d987c60.mjs +86 -0
- package/dist/ProfileBlogposts-0b81d964.js +1 -0
- package/dist/ProfileBlogposts-b59992cf.mjs +79 -0
- package/dist/ProfileEvents-3f7ca2c1.js +1 -0
- package/dist/ProfileEvents-bbdd62e7.mjs +70 -0
- package/dist/ProfileOrganizations-4734c02e.mjs +73 -0
- package/dist/ProfileOrganizations-d55ee487.js +1 -0
- package/dist/Publics-0762210a.js +1 -0
- package/dist/Publics-660e851c.mjs +45 -0
- package/dist/SelectMulti-58704d69.mjs +1038 -0
- package/dist/SelectMulti-c25765cf.js +1 -0
- package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
- package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
- package/dist/SkeletonEvent-8690422d.mjs +16 -0
- package/dist/SkeletonEvent-eb284de8.js +1 -0
- package/dist/SkeletonEventShort-6c9e3940.js +1 -0
- package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
- package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
- package/dist/SkeletonOrganization-8690422d.mjs +16 -0
- package/dist/Socials-31c06635.mjs +74 -0
- package/dist/Socials-cceaeaf2.js +1 -0
- package/dist/Tab-054b61f7.mjs +46 -0
- package/dist/Tab-2c1e4224.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/addMembersQuantity-7147aa4a.js +89 -0
- package/dist/addMembersQuantity-eac999f0.mjs +90 -0
- package/dist/auth-06d35b82.js +7 -0
- package/dist/auth-ec618cb3.mjs +627 -0
- package/dist/auth.client.cjs +7 -7
- package/dist/auth.client.js +22 -19
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/auth.validation-0ce9e326.js +1 -0
- package/dist/auth.validation-ba3606bf.mjs +24 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +235 -59
- package/dist/categories-82b28618.js +1 -0
- package/dist/categories-df3240a7.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +233 -227
- package/dist/community.server.js +217 -189
- package/dist/community.server.mjs +217 -189
- package/dist/components/Field/Field.vue.d.ts +58 -2
- package/dist/components/Field/Field.vue.d.ts.map +1 -1
- package/dist/components/UploadImage/UploadImage.vue.d.ts +1 -1
- package/dist/dribbble-8e8e169b.js +1 -0
- package/dist/dribbble-ae37c2ac.mjs +127 -0
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +1793 -1888
- package/dist/events.server.js +100 -210
- package/dist/events.server.mjs +100 -210
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/icons.client.cjs +1 -0
- package/dist/icons.client.js +84 -0
- package/dist/inputs.validation-d7cef32b.js +1 -0
- package/dist/inputs.validation-db65277a.mjs +83 -0
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +40 -64
- package/dist/leftovers-66951de6.js +1 -0
- package/dist/leftovers-be37c7a5.mjs +67 -0
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +7 -4
- package/dist/mailing-76895d59.mjs +50 -0
- package/dist/mailing-9659b3c4.js +49 -0
- package/dist/main.css +1 -1
- package/dist/memberships-12210953.mjs +68 -0
- package/dist/memberships-393765d8.js +1 -0
- package/dist/metadata.schema-147f9902.mjs +212 -0
- package/dist/metadata.schema-93397f9f.js +211 -0
- package/dist/metadata.schema-a539dd65.mjs +210 -0
- package/dist/metadata.schema-e4fe5c57.js +209 -0
- package/dist/modules/community/components/blocks/FooterBlogpost.vue.d.ts +1 -1
- package/dist/modules/community/components/sections/Feed.vue.d.ts +4 -3
- package/dist/modules/events/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/events/components/sections/List.vue.d.ts +3 -3
- package/dist/modules/globals/components/blocks/CardFooter.vue.d.ts +8 -0
- package/dist/modules/globals/components/blocks/CardHeader.vue.d.ts +15 -0
- package/dist/modules/globals/components/sections/Feed.vue.d.ts +69 -0
- package/dist/modules/orders/components/pages/EditOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Favorites.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/History.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Orders.vue.d.ts +2 -0
- package/dist/modules/orders/components/pages/ViewOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/sections/Form.vue.d.ts +1 -0
- package/dist/modules/organizations/components/blocks/CardDepartment.vue.d.ts +7 -0
- package/dist/modules/organizations/components/blocks/User.vue.d.ts +1 -1
- package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +1 -1
- package/dist/modules/organizations/components/pages/Members.vue.d.ts +2 -0
- package/dist/modules/organizations/components/sections/Department2.vue.d.ts +7 -0
- package/dist/modules/organizations/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/organizations/components/sections/FeedDepartments.vue.d.ts +8 -0
- package/dist/modules/payments/components/pages/Payments.vue.d.ts +2 -0
- package/dist/modules/products/components/blocks/CardLeftover.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/CardPosition.vue.d.ts +11 -0
- package/dist/modules/products/components/blocks/CardProduct.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/LeftoverPositions.vue.d.ts +0 -1
- package/dist/modules/products/components/pages/ProductsBackoffice.vue.d.ts +2 -0
- package/dist/modules/products/components/sections/FilterProducts.vue.d.ts +9 -0
- package/dist/modules/products/components/sections/SortProducts.vue.d.ts +10 -0
- package/dist/modules/reports/components/sections/FormReport.vue.d.ts +3 -3
- package/dist/modules/spots/components/blocks/CardSpot.vue.d.ts +7 -0
- package/dist/modules/spots/components/blocks/SpotMemberModify.vue.d.ts +11 -0
- package/dist/modules/spots/components/blocks/SpotSub.vue.d.ts +6 -0
- package/dist/modules/spots/components/pages/Spot.vue.d.ts +7 -0
- package/dist/modules/spots/components/pages/SpotEdit.vue.d.ts +2 -0
- package/dist/modules/spots/components/sections/Feed.vue.d.ts +8 -0
- package/dist/modules/spots/components/sections/PlaceModify.vue.d.ts +9 -0
- package/dist/modules/spots/components/sections/Places.vue.d.ts +9 -0
- package/dist/modules/wallet/components/pages/Wallet.vue.d.ts +2 -0
- package/dist/orders-13c10d49.mjs +85 -0
- package/dist/orders-37f041aa.js +1 -0
- package/dist/organizations-4d18a2e2.js +1 -0
- package/dist/organizations-6ed907e3.mjs +122 -0
- package/dist/organizations.client-01593e4d.js +3 -0
- package/dist/organizations.client-1b9fa66e.mjs +2997 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +75 -51
- package/dist/organizations.server.js +9 -20
- package/dist/organizations.server.mjs +9 -20
- package/dist/products-7960bbd4.js +1 -0
- package/dist/products-bf5783aa.mjs +108 -0
- package/dist/prometheus-framework.cjs.js +17 -17
- package/dist/prometheus-framework.es.js +771 -758
- package/dist/states.validation-03f7cd49.js +1 -0
- package/dist/states.validation-50e3a5a0.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +212 -256
- package/dist/users.server.js +1 -1
- package/dist/users.server.mjs +1 -1
- package/package.json +5 -1
- package/src/components/Field/Field.vue +34 -9
- package/src/components/SelectMulti/SelectMulti.vue +18 -22
- package/src/modules/auth/store/auth.js +34 -15
- package/src/modules/backoffice/components/pages/Dashboard.vue +91 -0
- package/src/modules/backoffice/router/admin.js +0 -28
- package/src/modules/backoffice/router/backoffice.js +131 -4
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/pages/Blog.vue +1 -0
- package/src/modules/community/components/sections/Comments.vue +1 -1
- package/src/modules/community/components/sections/Feed.vue +6 -0
- package/src/modules/community/controllers/blog.controller.js +129 -285
- package/src/modules/community/controllers/reactions.controller.js +2 -0
- package/src/modules/community/controllers/utils/queryProcessor.js +56 -0
- package/src/modules/community/controllers/utils/queryProcessorReactions.js +63 -0
- package/src/modules/community/store/blogposts.js +5 -5
- package/src/modules/events/components/blocks/CardEvent.vue +2 -3
- package/src/modules/events/components/pages/Events.vue +4 -4
- package/src/modules/events/components/sections/Feed.vue +4 -4
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/events/controllers/events.controller.js +8 -6
- package/src/modules/events/controllers/utils/queryProcessor.js +111 -1
- package/src/modules/events/models/event.model.js +0 -4
- package/src/modules/events/store/events.js +5 -7
- package/src/{components/CardHeader → modules/globals/components/blocks}/CardHeader.vue +31 -4
- package/src/modules/globals/components/sections/Feed.vue +136 -0
- package/src/modules/globals/controllers/utils/queryProcessor.js +19 -117
- package/src/modules/globals/models/engagement.schema.js +29 -25
- package/src/modules/globals/utils/mailing.js +1 -1
- package/src/modules/icons/icons.client.js +51 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/marketplace/components/pages/Catalog.vue +3 -4
- package/src/modules/marketplace/router/marketplace.js +0 -11
- package/src/modules/middlewares/client/auth.validation.js +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -2
- package/src/modules/orders/components/pages/EditOrder.vue +238 -0
- package/src/modules/{backoffice → orders}/components/pages/Favorites.vue +2 -2
- package/src/modules/orders/components/pages/Order.vue +28 -34
- package/src/modules/orders/components/pages/Orders.vue +90 -0
- package/src/modules/{backoffice/components/pages/History.vue → orders/components/pages/ViewOrder.vue} +0 -8
- package/src/modules/orders/components/sections/Form.vue +52 -34
- package/src/modules/orders/controllers/orders.controller.js +102 -72
- package/src/modules/orders/models/order.model.js +30 -22
- package/src/modules/orders/router/orders.router.js +30 -0
- package/src/modules/orders/routes/orders.routes.js +23 -13
- package/src/modules/orders/store/orders.js +67 -40
- package/src/modules/organizations/components/{sections/Department.vue → blocks/CardDepartment.vue} +1 -10
- package/src/modules/organizations/components/blocks/CardOrganization.vue +13 -9
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +3 -3
- package/src/modules/organizations/components/{sections/MembersTab.vue → pages/Members.vue} +23 -8
- package/src/modules/organizations/components/pages/Organization.vue +80 -46
- package/src/modules/organizations/components/pages/Organizations.vue +45 -90
- package/src/modules/organizations/components/sections/{StructureTab.vue → FeedDepartments.vue} +5 -5
- package/src/modules/organizations/components/sections/Organizations.vue +1 -2
- package/src/modules/organizations/components/sections/Publics.vue +3 -2
- package/src/modules/organizations/controllers/organizations.controller.js +8 -21
- package/src/modules/organizations/controllers/organizations.new.controller.js +372 -0
- package/src/modules/organizations/controllers/utils/addUserStatusFields.js +53 -48
- package/src/modules/organizations/controllers/utils/queryProcessor.js +87 -0
- package/src/modules/organizations/controllers/utils/queryProcessorOrganizations.js +25 -0
- package/src/modules/organizations/organizations.client.js +42 -46
- package/src/modules/organizations/router/departments.router.js +29 -0
- package/src/modules/organizations/router/members.router.js +19 -0
- package/src/modules/organizations/router/organizations.js +12 -88
- package/src/modules/organizations/router/organizations.router.js +38 -0
- package/src/modules/organizations/router/products.router.js +24 -0
- package/src/modules/organizations/store/departments.js +108 -0
- package/src/modules/{backoffice/components/admin/Orders.vue → payments/components/pages/Payments.vue} +0 -15
- package/src/modules/products/components/blocks/{Leftover.vue → CardLeftover.vue} +21 -12
- package/src/modules/products/components/blocks/CardPosition.vue +84 -0
- package/src/modules/products/components/blocks/LeftoverPositions.vue +65 -136
- package/src/modules/products/components/pages/LeftoverAdd.vue +133 -88
- package/src/modules/products/components/pages/Leftovers.vue +91 -64
- package/src/modules/products/components/pages/Product.vue +3 -3
- package/src/modules/products/components/pages/Products.vue +42 -263
- package/src/modules/products/components/pages/ProductsBackoffice.vue +92 -0
- package/src/modules/products/components/sections/FilterProducts.vue +180 -0
- package/src/modules/products/components/sections/PopularProducts.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +18 -3
- package/src/modules/products/components/sections/SortProducts.vue +76 -0
- package/src/modules/products/controllers/leftovers.controller.js +51 -45
- package/src/modules/products/controllers/modifications.controller.js +66 -0
- package/src/modules/products/controllers/products.controller.js +67 -111
- package/src/modules/products/models/leftover.model.js +12 -9
- package/src/modules/products/models/product.model.js +1 -0
- package/src/modules/products/router/products.router.js +46 -0
- package/src/modules/products/routes/products.routes.js +4 -9
- package/src/modules/products/store/leftovers.js +56 -59
- package/src/modules/products/store/products.js +21 -22
- package/src/modules/spots/components/blocks/CardSpot.vue +104 -0
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +92 -0
- package/src/modules/spots/components/blocks/SpotSub.vue +24 -0
- package/src/modules/spots/components/pages/Map.vue +2 -2
- package/src/modules/spots/components/pages/Spot.vue +107 -0
- package/src/modules/spots/components/pages/SpotEdit.vue +319 -0
- package/src/modules/spots/components/sections/Feed.vue +64 -0
- package/src/modules/spots/controllers/spots.controller.js +83 -0
- package/src/modules/spots/models/spot.model.js +72 -0
- package/src/modules/spots/router/spots.js +34 -1
- package/src/modules/spots/routes/spots.routes.js +31 -0
- package/src/modules/spots/store/spots.js +15 -15
- package/src/modules/users/components/pages/Profile.vue +2 -3
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/styles/components/block.scss +2 -4
- package/src/modules/backoffice/components/admin/LeftoverAdd.vue +0 -157
- package/src/modules/backoffice/components/admin/Leftovers.vue +0 -119
- package/src/modules/backoffice/components/admin/Order.vue +0 -199
- package/src/modules/backoffice/components/admin/Product.vue +0 -28
- package/src/modules/backoffice/components/admin/Products.vue +0 -82
- package/src/modules/backoffice/components/pages/Organizations.vue +0 -104
- package/src/modules/community/controllers/blog.new.controller.js +0 -290
- package/src/modules/organizations/components/blocks/DepartmentSubDepartmentModify.vue +0 -92
- package/src/modules/organizations/components/elements/ButtonFollow.vue +0 -84
- package/src/modules/organizations/components/pages/OrganizationsAccount.vue +0 -110
- package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +0 -18
- /package/src/{components/CardFooter → modules/globals/components/blocks}/CardFooter.vue +0 -0
- /package/src/modules/{orders/controllers → payments/controller}/payments.controller.js +0 -0
- /package/src/modules/{orders → payments}/routes/payments.routes.js +0 -0
- /package/src/modules/{orders → payments}/store/payments.js +0 -0
- /package/src/modules/products/components/blocks/{ProductCard.vue → CardProduct.vue} +0 -0
- /package/src/modules/{organizations → spots}/components/sections/PlaceModify.vue +0 -0
- /package/src/modules/{organizations → spots}/components/sections/Places.vue +0 -0
- /package/src/modules/{backoffice → wallet}/components/pages/Wallet.vue +0 -0
@@ -0,0 +1,146 @@
|
|
1
|
+
import { ref as o, onMounted as z, openBlock as r, createElementBlock as u, createVNode as m, TransitionGroup as b, withCtx as g, Fragment as y, renderList as v, createBlock as p, createCommentVNode as d, Transition as S, normalizeClass as w } from "vue";
|
2
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
3
|
+
import { _ as O } from "./EmptyState-e404b05d.mjs";
|
4
|
+
import { _ as C } from "./CardOrganization-e920be73.mjs";
|
5
|
+
import { S as N } from "./SkeletonOrganization-8690422d.mjs";
|
6
|
+
import { a as k } from "./organizations-6ed907e3.mjs";
|
7
|
+
const D = { class: "feed" }, E = {
|
8
|
+
__name: "Feed",
|
9
|
+
props: {
|
10
|
+
category: {
|
11
|
+
type: String,
|
12
|
+
default: null
|
13
|
+
},
|
14
|
+
selectedDate: {
|
15
|
+
type: String,
|
16
|
+
default: null
|
17
|
+
},
|
18
|
+
organization: {
|
19
|
+
type: String,
|
20
|
+
default: null
|
21
|
+
},
|
22
|
+
owner: {
|
23
|
+
type: String,
|
24
|
+
default: null
|
25
|
+
},
|
26
|
+
user: {
|
27
|
+
type: [String, Number],
|
28
|
+
default: null
|
29
|
+
},
|
30
|
+
member: {
|
31
|
+
type: [String, Number],
|
32
|
+
default: null
|
33
|
+
},
|
34
|
+
subscriber: {
|
35
|
+
type: [String, Number],
|
36
|
+
default: null
|
37
|
+
},
|
38
|
+
sortOrder: {
|
39
|
+
type: String,
|
40
|
+
default: "desc"
|
41
|
+
},
|
42
|
+
participant: {
|
43
|
+
type: String,
|
44
|
+
default: null
|
45
|
+
},
|
46
|
+
period: {
|
47
|
+
type: String,
|
48
|
+
default: null
|
49
|
+
},
|
50
|
+
status: {
|
51
|
+
type: String,
|
52
|
+
default: null
|
53
|
+
}
|
54
|
+
},
|
55
|
+
setup(f) {
|
56
|
+
const e = f, t = o([]), n = o(!1), l = o(!0), c = o(0), i = o(20), _ = async () => {
|
57
|
+
if (n.value) {
|
58
|
+
c.value += i.value;
|
59
|
+
const a = await k.read({
|
60
|
+
skip: c.value,
|
61
|
+
limit: i.value,
|
62
|
+
category: e.category,
|
63
|
+
sortOrder: e.sortOrder,
|
64
|
+
member: e.member,
|
65
|
+
subscriber: e.subscriber,
|
66
|
+
onlyuser: e.onlyuser,
|
67
|
+
user: e.user,
|
68
|
+
date: e.selectedDate,
|
69
|
+
owner: e.owner,
|
70
|
+
organization: e.organization,
|
71
|
+
period: e.period,
|
72
|
+
status: e.status
|
73
|
+
});
|
74
|
+
a.length === 0 ? n.value = !1 : n.value = !0, t.value = [...t.value, ...a];
|
75
|
+
}
|
76
|
+
};
|
77
|
+
return z(async () => {
|
78
|
+
l.value = !0, console.log(e.selectedDate);
|
79
|
+
const a = await k.read({
|
80
|
+
skip: c.value,
|
81
|
+
limit: i.value,
|
82
|
+
category: e.category,
|
83
|
+
member: e.member,
|
84
|
+
subscriber: e.subscriber,
|
85
|
+
onlyuser: e.onlyuser,
|
86
|
+
sortOrder: e.sortOrder,
|
87
|
+
user: e.user,
|
88
|
+
owner: e.owner,
|
89
|
+
date: e.selectedDate,
|
90
|
+
organization: e.organization,
|
91
|
+
period: e.period,
|
92
|
+
status: e.status
|
93
|
+
});
|
94
|
+
a.length === 0 ? n.value = !1 : n.value = !0, t.value = a, l.value = !1;
|
95
|
+
}), (a, L) => (r(), u("section", D, [
|
96
|
+
m(b, {
|
97
|
+
tag: "ul",
|
98
|
+
name: "fade",
|
99
|
+
class: "o-hidden bg-grey radius-big"
|
100
|
+
}, {
|
101
|
+
default: g(() => [
|
102
|
+
l.value ? (r(!0), u(y, { key: 0 }, v(i.value, (s) => (r(), p(N, { key: s }))), 128)) : d("", !0)
|
103
|
+
]),
|
104
|
+
_: 1
|
105
|
+
}),
|
106
|
+
m(S, { name: "fade" }, {
|
107
|
+
default: g(() => [
|
108
|
+
!l.value && t.value.length < 1 ? (r(), p(O, {
|
109
|
+
key: 0,
|
110
|
+
title: "No Organizations Found",
|
111
|
+
description: "Currently, there are no organizations available. Please check back later.",
|
112
|
+
class: "pd-medium mn-thin bg-grey radius-big"
|
113
|
+
})) : d("", !0)
|
114
|
+
]),
|
115
|
+
_: 1
|
116
|
+
}),
|
117
|
+
m(b, {
|
118
|
+
tag: "ul",
|
119
|
+
name: "fade",
|
120
|
+
class: "container"
|
121
|
+
}, {
|
122
|
+
default: g(() => [
|
123
|
+
!l.value && t.value.length > 0 ? (r(!0), u(y, { key: 0 }, v(t.value, (s, h) => (r(), p(C, {
|
124
|
+
onClick: ($) => a.$router.push({ name: "Organization", params: { _id: s._id } }),
|
125
|
+
key: s._id,
|
126
|
+
organization: s,
|
127
|
+
user: f.user,
|
128
|
+
type: "normal",
|
129
|
+
class: w(["w-100 radius-big mn-medium", {
|
130
|
+
"br-b br-solid br-black-transp-10": h !== t.value.length - 1
|
131
|
+
}])
|
132
|
+
}, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : d("", !0),
|
133
|
+
n.value && t.value.length > 0 ? (r(), u("button", {
|
134
|
+
key: 1,
|
135
|
+
onClick: _,
|
136
|
+
class: "w-100 bg-main button"
|
137
|
+
}, "Load more")) : d("", !0)
|
138
|
+
]),
|
139
|
+
_: 1
|
140
|
+
})
|
141
|
+
]));
|
142
|
+
}
|
143
|
+
};
|
144
|
+
export {
|
145
|
+
E as _
|
146
|
+
};
|
@@ -0,0 +1,361 @@
|
|
1
|
+
import { ref as g, computed as m, openBlock as n, createElementBlock as i, normalizeClass as p, createVNode as S, unref as C, createElementVNode as f, createCommentVNode as l, createBlock as w, withModifiers as L, toDisplayString as v, renderSlot as O, reactive as R, watch as N, onMounted as j, TransitionGroup as I, withCtx as P, Fragment as M, renderList as F, Transition as V } from "vue";
|
2
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
3
|
+
import { _ as B } from "./EmptyState-e404b05d.mjs";
|
4
|
+
import { _ as H, b as Y } from "./Chips-9d81b215.mjs";
|
5
|
+
import { I as q } from "./IconEdit-9edfd74d.mjs";
|
6
|
+
import { useRouter as A } from "vue-router";
|
7
|
+
import { S as G } from "./SkeletonEvent-8690422d.mjs";
|
8
|
+
import { a as J } from "./index-a661083c.mjs";
|
9
|
+
import { s as U } from "./globals-96ba60e4.mjs";
|
10
|
+
const K = {
|
11
|
+
key: 0,
|
12
|
+
class: "o-hidden pos-relative bg-grey mn-small w-100"
|
13
|
+
}, Q = ["src"], W = ["src"], X = { class: "w-max mn-r-thin pd-thin radius-small t-semi bg-main" }, Z = {
|
14
|
+
key: 0,
|
15
|
+
class: "t-semi"
|
16
|
+
}, _ = { class: "t-semi" }, ee = {
|
17
|
+
key: 0,
|
18
|
+
class: "t-semi uppercase"
|
19
|
+
}, te = {
|
20
|
+
key: 1,
|
21
|
+
class: "cursor-pointer mn-thin flex-nowrap flex w-100"
|
22
|
+
}, ae = {
|
23
|
+
key: 0,
|
24
|
+
class: ""
|
25
|
+
}, re = {
|
26
|
+
key: 1,
|
27
|
+
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"
|
28
|
+
}, ne = {
|
29
|
+
key: 2,
|
30
|
+
class: "mn-small p-big"
|
31
|
+
}, se = {
|
32
|
+
__name: "CardEvent",
|
33
|
+
props: ["event", "user", "short", "type"],
|
34
|
+
setup(e) {
|
35
|
+
const t = e;
|
36
|
+
g(/* @__PURE__ */ new Date()), A(), m(() => t.event.content.find((a) => a.type.name === "ImageUpload")), m(() => t.event.content.find((a) => a.type.name === "Textarea"));
|
37
|
+
const s = m(() => {
|
38
|
+
const a = /* @__PURE__ */ new Date(), c = Date.UTC(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate(), a.getUTCHours(), a.getUTCMinutes(), a.getUTCSeconds()), r = new Date(t.event.date.start), o = Date.UTC(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate(), r.getUTCHours(), r.getUTCMinutes(), r.getUTCSeconds()) - c;
|
39
|
+
if (o < 0)
|
40
|
+
return "Finished";
|
41
|
+
if (o === 0)
|
42
|
+
return "Starting Now";
|
43
|
+
{
|
44
|
+
const k = Math.floor(o / 1e3), T = Math.floor(k / 60), D = Math.floor(T / 60), z = Math.floor(D / 24);
|
45
|
+
return z > 0 ? `${z} days until event` : D > 0 ? `${D} hours until event` : T > 0 ? `${T} minutes until event` : `${k} seconds until event`;
|
46
|
+
}
|
47
|
+
}), u = m(() => {
|
48
|
+
const a = new Date(t.event.date.start), c = { day: "2-digit", month: "2-digit" };
|
49
|
+
return a.toLocaleDateString(void 0, c);
|
50
|
+
}), d = m(() => {
|
51
|
+
console.log(t.event.date.start), console.log(t.event.date.end);
|
52
|
+
const a = new Date(t.event.date.start), c = new Date(t.event.date.end), r = new Intl.DateTimeFormat(void 0, { hour: "2-digit", minute: "2-digit", hourCycle: "h23" }).format(a), x = new Intl.DateTimeFormat(void 0, { hour: "2-digit", minute: "2-digit", hourCycle: "h23" }).format(c);
|
53
|
+
return `${r}-${x}`;
|
54
|
+
}), y = m(() => {
|
55
|
+
const a = t.event.name;
|
56
|
+
return a.length > 26 ? `${a.substring(0, 22)}…` : a;
|
57
|
+
});
|
58
|
+
return (a, c) => (n(), i("article", {
|
59
|
+
class: p([{
|
60
|
+
"flex-nowrap flex-v-center flex": e.type === "short"
|
61
|
+
}, "pos-relative"])
|
62
|
+
}, [
|
63
|
+
S(H, {
|
64
|
+
class: p({
|
65
|
+
"mn-small pd-medium": e.type !== "short",
|
66
|
+
"flex-child-order-last flex-child mn-l-small": e.type === "short"
|
67
|
+
}),
|
68
|
+
entity: e.event,
|
69
|
+
entityType: "event",
|
70
|
+
user: e.user,
|
71
|
+
owner: e.event.owner,
|
72
|
+
creator: e.event.creator,
|
73
|
+
members: e.event.numberOfTickets,
|
74
|
+
membersPhotos: e.event.participantsPhotos,
|
75
|
+
type: e.type,
|
76
|
+
dateFormatted: C(s)
|
77
|
+
}, null, 8, ["class", "entity", "user", "owner", "creator", "members", "membersPhotos", "type", "dateFormatted"]),
|
78
|
+
e.event.cover && e.type !== "short" ? (n(), i("div", K, [
|
79
|
+
f("img", {
|
80
|
+
src: (a.FILE_SERVER_URL || "") + e.event.cover,
|
81
|
+
alt: "Event image",
|
82
|
+
class: "pos-relative z-index-1 d-block mn-auto h-20r"
|
83
|
+
}, null, 8, Q),
|
84
|
+
f("img", {
|
85
|
+
src: (a.FILE_SERVER_URL || "") + e.event.cover,
|
86
|
+
alt: "Event Background",
|
87
|
+
class: "z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",
|
88
|
+
style: { transform: "scale(1.5)", filter: "blur(2rem)", "-webkit-filter": "blur(2rem)" }
|
89
|
+
}, null, 8, W)
|
90
|
+
])) : l("", !0),
|
91
|
+
f("section", {
|
92
|
+
class: p(["pos-relative w-100", { "pd-t-zero pd-medium": e.type !== "short" }])
|
93
|
+
}, [
|
94
|
+
e.user === e.event.creator.target._id ? (n(), w(q, {
|
95
|
+
key: 0,
|
96
|
+
onClick: c[0] || (c[0] = L((r) => a.$router.push({
|
97
|
+
name: "Edit Event",
|
98
|
+
params: {
|
99
|
+
url: e.event.url
|
100
|
+
}
|
101
|
+
}), ["stop"])),
|
102
|
+
class: "z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
|
103
|
+
})) : l("", !0),
|
104
|
+
f("div", {
|
105
|
+
class: p([{ "mn-small": e.type !== "short" }, "flex-v-center flex-nowrap flex"])
|
106
|
+
}, [
|
107
|
+
f("div", X, [
|
108
|
+
e.type !== "short" ? (n(), i("span", Z, v(C(u)) + " | ", 1)) : l("", !0),
|
109
|
+
f("span", _, v(C(d)), 1)
|
110
|
+
]),
|
111
|
+
e.type === "short" ? (n(), i("span", ee, v(C(y)), 1)) : l("", !0)
|
112
|
+
], 2),
|
113
|
+
e.type !== "short" ? (n(), i("div", te, [
|
114
|
+
e.type !== "short" ? (n(), i("h3", ae, v(e.event.name), 1)) : l("", !0),
|
115
|
+
e.event.status === "draft" ? (n(), i("div", re, v(e.event.status), 1)) : l("", !0)
|
116
|
+
])) : l("", !0),
|
117
|
+
e.type !== "short" ? (n(), i("p", ne, v(e.event.description), 1)) : l("", !0),
|
118
|
+
O(a.$slots, "default"),
|
119
|
+
e.type !== "short" && e.event.tags.length > 0 ? (n(), w(Y, {
|
120
|
+
key: 3,
|
121
|
+
chips: e.event.tags
|
122
|
+
}, null, 8, ["chips"])) : l("", !0)
|
123
|
+
], 2)
|
124
|
+
], 2));
|
125
|
+
}
|
126
|
+
}, E = J.create({ baseURL: process.env.API_URL, withCredentials: !0 }), h = R({
|
127
|
+
all: [],
|
128
|
+
filter: {
|
129
|
+
// query
|
130
|
+
tags: [],
|
131
|
+
period: "",
|
132
|
+
date: null
|
133
|
+
// pagination
|
134
|
+
},
|
135
|
+
pagination: {
|
136
|
+
page: 1,
|
137
|
+
perPage: 18
|
138
|
+
},
|
139
|
+
// Sort
|
140
|
+
sort: {
|
141
|
+
current: "popularity",
|
142
|
+
ascending: !1
|
143
|
+
},
|
144
|
+
current: {
|
145
|
+
_id: "",
|
146
|
+
cover: "",
|
147
|
+
url: "",
|
148
|
+
status: "",
|
149
|
+
name: "",
|
150
|
+
tags: [],
|
151
|
+
date: {
|
152
|
+
start: null,
|
153
|
+
false: null
|
154
|
+
},
|
155
|
+
views: 0,
|
156
|
+
content: []
|
157
|
+
}
|
158
|
+
});
|
159
|
+
async function $(e = {}) {
|
160
|
+
e.params = e.params || {}, e.params.skip = e.skip || 0, e.params.limit = e.limit || 9, e.params.tags = e.tags || [], e.phase && (e.params = { phase: e.phase }), e.url && (e.params = { url: e.url }), e.period && (e.params.period = e.period), e.category && (e.params.category = e.category), e.organization && (e.params.organization = e.organization), e.date && (e.params.date = e.date), e.participant && (e.params.participant = e.participant), e.owner && (e.params.owner = e.owner), e.creator && (e.params.creator = e.creator), e.user && (e.params.user = e.user), e.sortOrder && (e.params.sortOrder = e.sortOrder), e.sortParam && (e.params.sortParam = e.sortParam), e.params.skip = e.skip || 0, e.params.limit = e.limit || 10;
|
161
|
+
try {
|
162
|
+
console.log("Request params:" + e.params);
|
163
|
+
const t = await E.get("/api/events/read", { params: e.params });
|
164
|
+
return console.log(e.params), e.url ? b(t.data, "current") : b(t.data, "all"), Promise.resolve(t.data);
|
165
|
+
} catch (t) {
|
166
|
+
return U(t), Promise.reject(t);
|
167
|
+
}
|
168
|
+
}
|
169
|
+
async function le(e) {
|
170
|
+
return E.post("/api/events/create", e).then(
|
171
|
+
(t) => (b(t.data, "current"), Promise.resolve(t.data)),
|
172
|
+
(t) => (U(t), Promise.reject(t))
|
173
|
+
);
|
174
|
+
}
|
175
|
+
async function ie(e) {
|
176
|
+
return E.post("/api/events/update", e).then(
|
177
|
+
(t) => (b(t.data, "current"), Promise.resolve(t.data)),
|
178
|
+
(t) => (U(t), Promise.reject(t))
|
179
|
+
);
|
180
|
+
}
|
181
|
+
async function ue(e) {
|
182
|
+
return await E.post("/api/events/delete", { _id: e }).then(
|
183
|
+
(t) => {
|
184
|
+
const s = h.all.findIndex((u) => u._id === e);
|
185
|
+
return s !== -1 && h.all.splice(s, 1), Promise.resolve(t.data);
|
186
|
+
},
|
187
|
+
(t) => (U(t), Promise.reject(t))
|
188
|
+
);
|
189
|
+
}
|
190
|
+
function b(e, t) {
|
191
|
+
h[t] = e;
|
192
|
+
}
|
193
|
+
function ce() {
|
194
|
+
h.current = {
|
195
|
+
_id: "",
|
196
|
+
cover: "",
|
197
|
+
url: "",
|
198
|
+
phase: "",
|
199
|
+
name: "",
|
200
|
+
tags: [],
|
201
|
+
date: {
|
202
|
+
start: null,
|
203
|
+
false: null
|
204
|
+
},
|
205
|
+
views: 0,
|
206
|
+
content: []
|
207
|
+
};
|
208
|
+
}
|
209
|
+
N(h, (e, t) => {
|
210
|
+
});
|
211
|
+
const be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
212
|
+
__proto__: null,
|
213
|
+
clean: ce,
|
214
|
+
create: le,
|
215
|
+
read: $,
|
216
|
+
remove: ue,
|
217
|
+
set: b,
|
218
|
+
state: h,
|
219
|
+
update: ie
|
220
|
+
}, Symbol.toStringTag, { value: "Module" })), oe = { class: "feed" }, ke = {
|
221
|
+
__name: "Feed",
|
222
|
+
props: {
|
223
|
+
category: {
|
224
|
+
type: String,
|
225
|
+
default: null
|
226
|
+
},
|
227
|
+
selectedDate: {
|
228
|
+
type: String,
|
229
|
+
default: null
|
230
|
+
},
|
231
|
+
organization: {
|
232
|
+
type: String,
|
233
|
+
default: null
|
234
|
+
},
|
235
|
+
owner: {
|
236
|
+
type: String,
|
237
|
+
default: null
|
238
|
+
},
|
239
|
+
creator: {
|
240
|
+
type: String,
|
241
|
+
default: null
|
242
|
+
},
|
243
|
+
user: {
|
244
|
+
type: [String, Number],
|
245
|
+
default: null
|
246
|
+
},
|
247
|
+
sortOrder: {
|
248
|
+
type: String,
|
249
|
+
default: "desc"
|
250
|
+
},
|
251
|
+
participant: {
|
252
|
+
type: String,
|
253
|
+
default: null
|
254
|
+
},
|
255
|
+
period: {
|
256
|
+
type: String,
|
257
|
+
default: null
|
258
|
+
},
|
259
|
+
phase: {
|
260
|
+
type: String,
|
261
|
+
default: null
|
262
|
+
}
|
263
|
+
},
|
264
|
+
setup(e) {
|
265
|
+
const t = e, s = g([]), u = g(!1), d = g(!0), y = g(0), a = g(20), c = async () => {
|
266
|
+
if (u.value) {
|
267
|
+
y.value += a.value;
|
268
|
+
const r = await $({
|
269
|
+
skip: y.value,
|
270
|
+
limit: a.value,
|
271
|
+
category: t.category,
|
272
|
+
sortOrder: t.sortOrder,
|
273
|
+
participant: t.participant,
|
274
|
+
creator: t.creator,
|
275
|
+
user: t.user,
|
276
|
+
date: t.selectedDate,
|
277
|
+
owner: t.owner,
|
278
|
+
organization: t.organization,
|
279
|
+
period: t.period,
|
280
|
+
phase: t.phase
|
281
|
+
});
|
282
|
+
r.length === 0 ? u.value = !1 : u.value = !0, s.value = [...s.value, ...r];
|
283
|
+
}
|
284
|
+
};
|
285
|
+
return j(async () => {
|
286
|
+
d.value = !0, console.log(t.selectedDate);
|
287
|
+
const r = await $({
|
288
|
+
skip: y.value,
|
289
|
+
limit: a.value,
|
290
|
+
category: t.category,
|
291
|
+
participant: t.participant,
|
292
|
+
sortOrder: t.sortOrder,
|
293
|
+
user: t.user,
|
294
|
+
owner: t.owner,
|
295
|
+
creator: t.creator,
|
296
|
+
date: t.selectedDate,
|
297
|
+
organization: t.organization,
|
298
|
+
period: t.period,
|
299
|
+
phase: t.phase
|
300
|
+
});
|
301
|
+
r.length === 0 ? u.value = !1 : u.value = !0, s.value = r, d.value = !1;
|
302
|
+
}), (r, x) => (n(), i("section", oe, [
|
303
|
+
S(I, {
|
304
|
+
tag: "ul",
|
305
|
+
name: "scaleTransition",
|
306
|
+
class: "o-hidden bg-grey radius-big"
|
307
|
+
}, {
|
308
|
+
default: P(() => [
|
309
|
+
d.value ? (n(!0), i(M, { key: 0 }, F(a.value, (o) => (n(), w(G, { key: o }))), 128)) : l("", !0)
|
310
|
+
]),
|
311
|
+
_: 1
|
312
|
+
}),
|
313
|
+
S(V, { name: "scaleTransition" }, {
|
314
|
+
default: P(() => [
|
315
|
+
!d.value && s.value.length < 1 ? (n(), w(B, {
|
316
|
+
key: 0,
|
317
|
+
title: "No Events Found",
|
318
|
+
description: "Currently, there are no events available. Please check back later.",
|
319
|
+
class: "pd-medium mn-thin bg-grey radius-big"
|
320
|
+
})) : l("", !0)
|
321
|
+
]),
|
322
|
+
_: 1
|
323
|
+
}),
|
324
|
+
S(I, {
|
325
|
+
tag: "ul",
|
326
|
+
name: "scaleTransition",
|
327
|
+
class: "container"
|
328
|
+
}, {
|
329
|
+
default: P(() => [
|
330
|
+
!d.value && s.value.length > 0 ? (n(!0), i(M, { key: 0 }, F(s.value, (o, k) => (n(), w(se, {
|
331
|
+
onClick: (T) => r.$router.push({ name: "Event", params: { url: o.url } }),
|
332
|
+
key: o._id,
|
333
|
+
event: o,
|
334
|
+
user: e.user,
|
335
|
+
type: "normal",
|
336
|
+
class: p(["bg-grey radius-big mn-medium", {
|
337
|
+
"br-b br-solid br-black-transp-10": k !== s.value.length - 1
|
338
|
+
}])
|
339
|
+
}, null, 8, ["onClick", "event", "user", "class"]))), 128)) : l("", !0),
|
340
|
+
u.value && s.value.length > 0 ? (n(), i("button", {
|
341
|
+
key: 1,
|
342
|
+
onClick: c,
|
343
|
+
class: "w-100 bg-main button"
|
344
|
+
}, "Load more")) : l("", !0)
|
345
|
+
]),
|
346
|
+
_: 1
|
347
|
+
})
|
348
|
+
]));
|
349
|
+
}
|
350
|
+
};
|
351
|
+
export {
|
352
|
+
ke as _,
|
353
|
+
se as a,
|
354
|
+
le as b,
|
355
|
+
ce as c,
|
356
|
+
ue as d,
|
357
|
+
be as e,
|
358
|
+
$ as r,
|
359
|
+
h as s,
|
360
|
+
ie as u
|
361
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),d=require("./SkeletonEvent-eb284de8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const m=require("./EmptyState-d65bab5b.js");require("vue-i18n");const p={class:"feed"},f={__name:"Feed",props:{states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null})}},setup(s){const t=s,o=e.ref([]),a=e.ref(!0);let i=e.ref(!0),r=e.ref(t.options.skip?t.options.skip:0),l=e.ref(t.options.limit?t.options.limit:10);e.computed(()=>({skip:r.value,limit:l.value,...t.options}));const u=async()=>{if(a.value){r.value+=l.value;const n=await t.store.read({skip:r.value,limit:l.value,...t.options});n.length===0&&(a.value=!1),o.value=[...o.value,...n]}};return e.onMounted(async()=>{console.log(t.options);const n=await t.store.read({skip:r.value,limit:l.value,...t.options});n.length===0?a.value=!1:a.value=!0,o.value=n,i.value=!1}),(n,k)=>(e.openBlock(),e.createElementBlock("section",p,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(l),c=>(e.openBlock(),e.createBlock(d.SkeletonEvent,{key:c}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(i)&&o.value.length<1?(e.openBlock(),e.createBlock(m._sfc_main,{key:0,title:s.states.empty.title,description:s.states.empty.description,class:"pd-medium mn-thin bg-grey radius-big"},null,8,["title","description"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"cols-1 gap-thin"},{default:e.withCtx(()=>[!e.unref(i)&&o.value.length>0?e.renderSlot(n.$slots,"default",{key:0,items:o.value,user:n.user}):e.createCommentVNode("",!0),a.value&&o.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:u,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:3})]))}};exports._sfc_main=f;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const m=require("./EmptyState-d65bab5b.js"),p=require("./CardOrganization-d93c9bdb.js"),f=require("./SkeletonOrganization-5c09cfc5.js"),c=require("./organizations-4d18a2e2.js"),b={class:"feed"},y={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(u){const t=u,r=e.ref([]),n=e.ref(!1),o=e.ref(!0),s=e.ref(0),i=e.ref(20),d=async()=>{if(n.value){s.value+=i.value;const a=await c.actions.read({skip:s.value,limit:i.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=[...r.value,...a]}};return e.onMounted(async()=>{o.value=!0,console.log(t.selectedDate);const a=await c.actions.read({skip:s.value,limit:i.value,category:t.category,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,sortOrder:t.sortOrder,user:t.user,owner:t.owner,date:t.selectedDate,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=a,o.value=!1}),(a,k)=>(e.openBlock(),e.createElementBlock("section",b,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[o.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(i.value,l=>(e.openBlock(),e.createBlock(f.SkeletonOrganization,{key:l}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!o.value&&r.value.length<1?(e.openBlock(),e.createBlock(m._sfc_main,{key:0,title:"No Organizations Found",description:"Currently, there are no organizations available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!o.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(l,g)=>(e.openBlock(),e.createBlock(p._sfc_main,{onClick:v=>a.$router.push({name:"Organization",params:{_id:l._id}}),key:l._id,organization:l,user:u.user,type:"normal",class:e.normalizeClass(["w-100 radius-big mn-medium",{"br-b br-solid br-black-transp-10":g!==r.value.length-1}])},null,8,["onClick","organization","user","class"]))),128)):e.createCommentVNode("",!0),n.value&&r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports._sfc_main=y;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./Loader-21f016da.js"),m=require("./EmptyState-d65bab5b.js"),i=require("./CardBlogpost-cc208f93.js"),f={__name:"Feed",props:{category:{type:String,default:null},limit:{type:Number,default:7},skip:{type:Number,default:0},owner:{type:String,default:null},creator:{type:String,default:null},following:{type:String,default:null},status:{type:String,default:"published"},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(u){const t=u,l=e.ref([]),r=e.ref(!0);let o=e.ref(!0),n=e.ref(t.skip),s=e.ref(t.limit);const d=async()=>{if(r.value){n.value+=s.value;const a=await i.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,creator:t.creator,status:t.status,period:t.period});a.length===0&&(r.value=!1),l.value=[...l.value,...a]}};return e.onMounted(async()=>{const a=await i.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,status:t.status,creator:t.creator,period:t.period});a.length===0?r.value=!1:r.value=!0,l.value=a,o.value=!1}),(a,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createBlock(p.Loader,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(o)&&l.value.length<1?(e.openBlock(),e.createBlock(m._sfc_main,{key:0,title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(a.$attrs.class)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>(e.openBlock(),e.createBlock(i._sfc_main,{key:c._id,blogpost:c,user:u.user,class:"mn-medium"},null,8,["blogpost","user"]))),128)),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[r.value&&l.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:1})],2))]),_:1})],64))}};exports._sfc_main=f;
|
@@ -0,0 +1,112 @@
|
|
1
|
+
import { ref as l, computed as h, onMounted as b, openBlock as n, createElementBlock as m, createVNode as d, TransitionGroup as f, withCtx as v, unref as u, Fragment as _, renderList as S, createBlock as g, createCommentVNode as c, Transition as w, renderSlot as L } from "vue";
|
2
|
+
import { S as T } from "./SkeletonEvent-8690422d.mjs";
|
3
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
4
|
+
import { _ as j } from "./EmptyState-e404b05d.mjs";
|
5
|
+
import "vue-i18n";
|
6
|
+
const O = { class: "feed" }, N = {
|
7
|
+
__name: "Feed",
|
8
|
+
props: {
|
9
|
+
states: {
|
10
|
+
type: Object,
|
11
|
+
default: () => ({
|
12
|
+
empty: {
|
13
|
+
title: String,
|
14
|
+
description: String
|
15
|
+
}
|
16
|
+
})
|
17
|
+
},
|
18
|
+
store: {
|
19
|
+
type: Object,
|
20
|
+
default: () => ({
|
21
|
+
read: Function,
|
22
|
+
state: Object
|
23
|
+
})
|
24
|
+
},
|
25
|
+
options: {
|
26
|
+
type: Object,
|
27
|
+
default: () => ({
|
28
|
+
category: null,
|
29
|
+
limit: 20,
|
30
|
+
skip: 0,
|
31
|
+
owner: null,
|
32
|
+
creator: null,
|
33
|
+
user: null,
|
34
|
+
status: null,
|
35
|
+
period: null
|
36
|
+
})
|
37
|
+
}
|
38
|
+
},
|
39
|
+
setup(p) {
|
40
|
+
const e = p, a = l([]), s = l(!0);
|
41
|
+
let o = l(!0), r = l(e.options.skip ? e.options.skip : 0), i = l(e.options.limit ? e.options.limit : 10);
|
42
|
+
h(() => ({
|
43
|
+
skip: r.value,
|
44
|
+
limit: i.value,
|
45
|
+
...e.options
|
46
|
+
}));
|
47
|
+
const k = async () => {
|
48
|
+
if (s.value) {
|
49
|
+
r.value += i.value;
|
50
|
+
const t = await e.store.read({
|
51
|
+
skip: r.value,
|
52
|
+
limit: i.value,
|
53
|
+
...e.options
|
54
|
+
});
|
55
|
+
t.length === 0 && (s.value = !1), a.value = [...a.value, ...t];
|
56
|
+
}
|
57
|
+
};
|
58
|
+
return b(async () => {
|
59
|
+
console.log(e.options);
|
60
|
+
const t = await e.store.read({
|
61
|
+
skip: r.value,
|
62
|
+
limit: i.value,
|
63
|
+
...e.options
|
64
|
+
});
|
65
|
+
t.length === 0 ? s.value = !1 : s.value = !0, a.value = t, o.value = !1;
|
66
|
+
}), (t, B) => (n(), m("section", O, [
|
67
|
+
d(f, {
|
68
|
+
tag: "ul",
|
69
|
+
name: "scaleTransition",
|
70
|
+
class: "o-hidden bg-grey radius-big"
|
71
|
+
}, {
|
72
|
+
default: v(() => [
|
73
|
+
u(o) ? (n(!0), m(_, { key: 0 }, S(u(i), (y) => (n(), g(T, { key: y }))), 128)) : c("", !0)
|
74
|
+
]),
|
75
|
+
_: 1
|
76
|
+
}),
|
77
|
+
d(w, { name: "scaleTransition" }, {
|
78
|
+
default: v(() => [
|
79
|
+
!u(o) && a.value.length < 1 ? (n(), g(j, {
|
80
|
+
key: 0,
|
81
|
+
title: p.states.empty.title,
|
82
|
+
description: p.states.empty.description,
|
83
|
+
class: "pd-medium mn-thin bg-grey radius-big"
|
84
|
+
}, null, 8, ["title", "description"])) : c("", !0)
|
85
|
+
]),
|
86
|
+
_: 1
|
87
|
+
}),
|
88
|
+
d(f, {
|
89
|
+
tag: "ul",
|
90
|
+
name: "scaleTransition",
|
91
|
+
class: "cols-1 gap-thin"
|
92
|
+
}, {
|
93
|
+
default: v(() => [
|
94
|
+
!u(o) && a.value.length > 0 ? L(t.$slots, "default", {
|
95
|
+
key: 0,
|
96
|
+
items: a.value,
|
97
|
+
user: t.user
|
98
|
+
}) : c("", !0),
|
99
|
+
s.value && a.value.length > 0 ? (n(), m("button", {
|
100
|
+
key: 1,
|
101
|
+
onClick: k,
|
102
|
+
class: "w-100 bg-main button"
|
103
|
+
}, " Load more ")) : c("", !0)
|
104
|
+
]),
|
105
|
+
_: 3
|
106
|
+
})
|
107
|
+
]));
|
108
|
+
}
|
109
|
+
};
|
110
|
+
export {
|
111
|
+
N as _
|
112
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");const d=require("./_plugin-vue_export-helper-f246444f.js"),i={key:0,class:"t-transp mn-r-small"},u={class:"w-100"},c=["type","value","placeholder"],m=["value","placeholder"],f={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1},emits:["update:field","focus","blur"],setup(l,{emit:a}){const r=l,o=e.ref(r.field);return(s,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[s.$attrs.class,{"bg-fourth-nano":l.validation}],"flex-center flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",u,[l.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:t[0]||(t[0]=n=>o.value=a("update:field",n.target.value)),onFocus:t[1]||(t[1]=n=>a("focus",n)),onBlur:t[2]||(t[2]=n=>a("blur",n)),type:l.type,class:"w-100",value:l.field,placeholder:l.placeholder},null,40,c)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:t[3]||(t[3]=n=>o.value=a("update:field",n.target.value)),onFocus:t[4]||(t[4]=n=>a("focus",n)),onBlur:t[5]||(t[5]=n=>a("blur",n)),class:"w-100",value:l.field,placeholder:l.placeholder},null,40,m))]),e.renderSlot(s.$slots,"default",{},void 0,!0),l.symbol?(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("span",null,e.toDisplayString(l.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},p=d._export_sfc(k,[["__scopeId","data-v-f4a29b0d"]]);exports.Field=p;
|