@ozdao/prometheus-framework 0.0.88 → 0.0.90
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs → Breadcrumbs.vue_vue_type_style_index_0_lang-d9c6e4d1.mjs} +8 -7
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e32a3041.js +1 -0
- package/dist/{ButtonFollow-728aab73.mjs → ButtonFollow-5e19fc49.mjs} +7 -6
- package/dist/ButtonFollow-959861db.js +1 -0
- package/dist/CardOrganization-01c2e248.mjs +210 -0
- package/dist/CardOrganization-1be3651b.js +1 -0
- package/dist/{CardHeader-925a972b.js → Chips-2a0d9bfe.js} +1 -1
- package/dist/Chips-f0b7ce36.mjs +110 -0
- package/dist/{Feed-a31c43c2.mjs → Feed-8bbb7077.mjs} +100 -95
- package/dist/{Feed-dc8b66bf.mjs → Feed-986ddd21.mjs} +114 -126
- package/dist/Feed-a2870bbf.js +1 -0
- package/dist/Feed-f987d8bb.js +1 -0
- package/dist/IconEdit-823ddda9.js +1 -0
- package/dist/IconEdit-f0ad8b9a.mjs +205 -0
- package/dist/{Image-9a870c88.js → Image-0f2814f0.js} +2 -2
- package/dist/{Image-6c7584f5.mjs → Image-9e90a5f6.mjs} +2 -2
- package/dist/{PlaceholderUserpic-2221dbf2.mjs → PlaceholderUserpic-14c6ea7e.mjs} +1 -1
- package/dist/PlaceholderUserpic-20d58460.js +1 -0
- package/dist/{Popup-105ef2c3.js → Popup-0106ee0c.js} +1 -1
- package/dist/{Popup-0c791801.mjs → Popup-31c7ffc6.mjs} +1 -1
- package/dist/{Product-2fbf9d99.js → Product-54854cd1.js} +2 -2
- package/dist/{Product-1724d88d.mjs → Product-58a83c67.mjs} +19 -18
- package/dist/ProductEdit-36e5cfdd.js +1 -0
- package/dist/{ProductEdit-20709821.mjs → ProductEdit-56752bbe.mjs} +32 -31
- package/dist/{ProfileBlogposts-fb014bc6.mjs → ProfileBlogposts-67e1bd8f.mjs} +13 -12
- package/dist/ProfileBlogposts-a798df3d.js +1 -0
- package/dist/{ProfileComments-58094a50.mjs → ProfileComments-17352b6a.mjs} +9 -8
- package/dist/ProfileComments-473c3413.js +1 -0
- package/dist/{ProfileEvents-5d206e3d.mjs → ProfileEvents-76166bc5.mjs} +15 -14
- package/dist/ProfileEvents-cdebd612.js +1 -0
- package/dist/ProfileLikes-da6303a4.js +1 -0
- package/dist/{ProfileLikes-503712ec.mjs → ProfileLikes-f838ff5e.mjs} +13 -12
- package/dist/ProfileOrganizations-5348e892.js +1 -0
- package/dist/{ProfileOrganizations-32ab1e30.mjs → ProfileOrganizations-58ebfe44.mjs} +9 -8
- package/dist/Publics-e14d36ed.js +1 -0
- package/dist/{Publics-9ebffff1.mjs → Publics-fcb1f708.mjs} +17 -16
- package/dist/{Tab-fcb73759.mjs → Tab-a243605d.mjs} +1 -1
- package/dist/{UploadImage-441e8526.js → UploadImage-73d66f27.js} +1 -1
- package/dist/{UploadImage-d33b293e.mjs → UploadImage-a3ef4012.mjs} +1 -1
- package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
- package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
- package/dist/{auth-8b5aac7a.mjs → auth-5217f6a5.mjs} +13 -17
- package/dist/auth-5a58f8cb.js +8 -0
- package/dist/auth.client.cjs +8 -8
- package/dist/auth.client.js +18 -17
- package/dist/{auth.validation-093babe9.mjs → auth.validation-9f87ea95.mjs} +1 -1
- package/dist/{auth.validation-a18510e8.js → auth.validation-be05e981.js} +1 -1
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +28 -26
- package/dist/community.server.js +7 -167
- package/dist/community.server.mjs +7 -167
- package/dist/components/Address/Address.vue.d.ts.map +1 -1
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Field/Field.vue.d.ts.map +1 -1
- package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
- package/dist/components/FieldPhone/FieldPhone.vue.d.ts +1 -1
- package/dist/components/FieldPhone/FieldPhone.vue.d.ts.map +1 -1
- package/dist/components/LocationMarker/LocationMarker.vue.d.ts.map +1 -1
- package/dist/components/Map/Map.vue.d.ts.map +1 -1
- package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/SelectMulti/SelectMulti.vue.d.ts.map +1 -1
- package/dist/components/Spoiler/Spoiler.vue.d.ts.map +1 -1
- package/dist/components/Tab/Tab.vue.d.ts.map +1 -1
- package/dist/components/Text/Text.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
- package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +26 -24
- package/dist/{inputs.validation-6960f71b.mjs → inputs.validation-14e8e01f.mjs} +4 -4
- package/dist/landing.client.cjs +1 -0
- package/dist/landing.client.js +132 -0
- package/dist/main.css +1 -1
- package/dist/modules/icons/labels/LabelAppStore.vue.d.ts +2 -0
- package/dist/modules/icons/labels/LabelGooglePlay.vue.d.ts +2 -0
- package/dist/modules/{community/components/blocks/HeaderBlogpost.vue.d.ts → landing/components/sections/MobileApp.vue.d.ts} +3 -3
- package/dist/{organizations-1b4c84ee.mjs → organizations-2adff182.mjs} +3 -3
- package/dist/organizations-e97a0f85.js +1 -0
- package/dist/{organizations.client-253c8068.mjs → organizations.client-88d41199.mjs} +998 -1139
- package/dist/organizations.client-d21a22ec.js +3 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +36 -35
- package/dist/organizations.server.js +7 -3
- package/dist/organizations.server.mjs +7 -3
- package/dist/prometheus-framework.cjs.js +19 -19
- package/dist/prometheus-framework.es.js +2173 -2165
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +266 -256
- package/dist/users.server.js +2 -2
- package/dist/users.server.mjs +2 -2
- package/package.json +6 -2
- package/src/components/Field/Field.vue +2 -1
- package/src/components/Text/Text.vue +3 -1
- package/src/modules/community/community.server.js +0 -2
- package/src/modules/community/components/blocks/CardBlogpost.vue +8 -0
- package/src/modules/community/components/pages/Blog.vue +1 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +2 -1
- package/src/modules/community/controllers/blog.controller.js +5 -1
- package/src/modules/events/components/pages/EditEvent.vue +2 -1
- package/src/modules/icons/labels/LabelAppStore.vue +32 -0
- package/src/modules/icons/labels/LabelGooglePlay.vue +48 -0
- package/src/modules/landing/components/sections/MobileApp.vue +125 -0
- package/src/modules/landing/landing.client.js +7 -0
- package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -1
- package/src/modules/organizations/components/blocks/Socials.vue +16 -3
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +39 -15
- package/src/modules/organizations/components/sections/DetailsTab.vue +13 -9
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/organization.model.js +6 -2
- package/src/modules/organizations/store/organizations.js +2 -2
- package/src/modules/users/components/pages/Profile.vue +26 -11
- package/src/modules/users/components/pages/ProfileEdit.vue +28 -10
- package/src/modules/users/models/user.model.js +2 -2
- package/src/modules/users/store/users.js +1 -2
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0216f2b0.js +0 -7
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0cb41a82.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2809e848.mjs +0 -219
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2af7f63b.mjs +0 -80
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-451d2614.mjs +0 -80
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-474eb4c2.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-5ea8b4fa.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs +0 -138
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-85119a4e.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-8cb3c120.mjs +0 -185
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-a477dfc6.mjs +0 -138
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-c6f3a0f0.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-d777ad17.mjs +0 -80
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-dd037bbf.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e133a3c6.mjs +0 -80
- package/dist/ButtonFollow-0d83a04a.mjs +0 -130
- package/dist/ButtonFollow-1aca37e0.mjs +0 -130
- package/dist/ButtonFollow-1b655344.js +0 -1
- package/dist/ButtonFollow-2ce169ca.js +0 -1
- package/dist/ButtonFollow-6bbf3e24.mjs +0 -130
- package/dist/ButtonFollow-6cd2efa2.mjs +0 -130
- package/dist/ButtonFollow-b29bd420.mjs +0 -130
- package/dist/ButtonFollow-c4680999.js +0 -1
- package/dist/ButtonFollow-c9484003.mjs +0 -130
- package/dist/ButtonFollow-d983e174.js +0 -1
- package/dist/ButtonFollow-f630623a.js +0 -1
- package/dist/ButtonFollow-f9c5dc7a.js +0 -1
- package/dist/CardHeader-2d7e5d49.mjs +0 -76
- package/dist/CardHeader-2ef6618e.mjs +0 -96
- package/dist/CardHeader-377cfc4b.js +0 -1
- package/dist/CardHeader-39f75e85.mjs +0 -76
- package/dist/CardHeader-88de7b20.mjs +0 -76
- package/dist/CardHeader-ce5a1a75.mjs +0 -96
- package/dist/CardHeader-ddf82318.js +0 -1
- package/dist/CardHeader-dff9c71a.js +0 -1
- package/dist/CardHeader-e15eb618.js +0 -1
- package/dist/CardHeader-e517c801.mjs +0 -76
- package/dist/CardOrganization-0291683b.js +0 -1
- package/dist/CardOrganization-1384ff9a.mjs +0 -320
- package/dist/CardOrganization-21de52b3.js +0 -1
- package/dist/CardOrganization-3c42e14f.mjs +0 -320
- package/dist/CardOrganization-4859370e.mjs +0 -320
- package/dist/CardOrganization-58b54995.js +0 -1
- package/dist/CardOrganization-91e79698.mjs +0 -320
- package/dist/CardOrganization-9841dbe0.js +0 -1
- package/dist/CardOrganization-a05f3a19.js +0 -1
- package/dist/CardOrganization-a75b523d.mjs +0 -63
- package/dist/CardOrganization-d462e158.mjs +0 -320
- package/dist/CardOrganization-ee5c34ab.js +0 -1
- package/dist/CardOrganization-f70bd169.mjs +0 -202
- package/dist/CardOrganization-ffa585a7.js +0 -1
- package/dist/Comments-1aec0e5e.js +0 -1
- package/dist/Comments-5ed669ea.mjs +0 -74
- package/dist/Comments-63f154a6.js +0 -9
- package/dist/Comments-641516f8.mjs +0 -76
- package/dist/Comments-646c73ee.js +0 -1
- package/dist/Comments-6ff58c26.js +0 -1
- package/dist/Comments-7c4f2715.js +0 -1
- package/dist/Comments-81feeb4a.mjs +0 -76
- package/dist/Comments-9427a0eb.mjs +0 -76
- package/dist/Comments-b5821190.mjs +0 -76
- package/dist/Comments-b620bae6.js +0 -1
- package/dist/Comments-b6e32958.js +0 -1
- package/dist/Comments-c092550f.mjs +0 -76
- package/dist/Comments-c5afa4d6.mjs +0 -459
- package/dist/Comments-d2a8fd0f.mjs +0 -76
- package/dist/DepartmentEdit-305a0f5d.mjs +0 -374
- package/dist/DepartmentEdit-6abd59e1.js +0 -1
- package/dist/DepartmentEdit-9e6fe007.mjs +0 -374
- package/dist/DepartmentEdit-d98c2239.js +0 -1
- package/dist/EditProductImages-04ec4326.js +0 -1
- package/dist/EditProductImages-11510b66.js +0 -1
- package/dist/EditProductImages-1d4b44a9.mjs +0 -236
- package/dist/EditProductImages-4246db75.mjs +0 -236
- package/dist/EditProductImages-42f9f665.mjs +0 -236
- package/dist/EditProductImages-61ff4321.mjs +0 -236
- package/dist/EditProductImages-98d13eb0.js +0 -1
- package/dist/EditProductImages-9f25f39f.mjs +0 -236
- package/dist/EditProductImages-b1b05c03.js +0 -1
- package/dist/EditProductImages-c7daafb2.mjs +0 -236
- package/dist/EditProductImages-cf67d31b.js +0 -1
- package/dist/EditProductImages-cfb1856e.mjs +0 -237
- package/dist/EditProductImages-d9228ad0.js +0 -1
- package/dist/EditProductImages-ec630dbf.js +0 -1
- package/dist/EditProductImages-f983f473.mjs +0 -236
- package/dist/EmptyState-1214f70b.mjs +0 -36
- package/dist/EmptyState-23c13029.js +0 -1
- package/dist/Feed-0b549674.js +0 -1
- package/dist/Feed-193dd1df.mjs +0 -342
- package/dist/Feed-26bf6bef.js +0 -1
- package/dist/Feed-2f9a1922.mjs +0 -334
- package/dist/Feed-31523f38.js +0 -1
- package/dist/Feed-51e4e232.js +0 -1
- package/dist/Feed-531de2d5.js +0 -1
- package/dist/Feed-55c5907a.js +0 -1
- package/dist/Feed-5c9e4e74.mjs +0 -340
- package/dist/Feed-706cd7c0.mjs +0 -383
- package/dist/Feed-8009e4f8.js +0 -1
- package/dist/Feed-81d5802e.mjs +0 -355
- package/dist/Feed-83ef5666.js +0 -1
- package/dist/Feed-8fd41524.js +0 -1
- package/dist/Feed-91eff3af.mjs +0 -393
- package/dist/Feed-926cf4f3.mjs +0 -355
- package/dist/Feed-932d976d.js +0 -1
- package/dist/Feed-962e009b.js +0 -1
- package/dist/Feed-a82ae26b.js +0 -1
- package/dist/Feed-aa3bd30a.js +0 -1
- package/dist/Feed-b8eeb4e7.js +0 -1
- package/dist/Feed-bd7b1a45.js +0 -1
- package/dist/Feed-c0007a83.mjs +0 -383
- package/dist/Feed-c93012c7.mjs +0 -346
- package/dist/Feed-ca8e0e22.mjs +0 -423
- package/dist/Feed-d2e5978c.mjs +0 -342
- package/dist/Feed-d4220f74.mjs +0 -340
- package/dist/Feed-d8e33aed.mjs +0 -397
- package/dist/Feed-df5bbb3c.mjs +0 -346
- package/dist/Feed-e5fb4972.mjs +0 -397
- package/dist/Feed-e8fb21ed.js +0 -1
- package/dist/Feed-e91b36ea.mjs +0 -390
- package/dist/Feed-ecf37814.mjs +0 -367
- package/dist/Feed-f4cad6c3.js +0 -1
- package/dist/Field-740d5a17.mjs +0 -60
- package/dist/Field-a1770ccf.js +0 -1
- package/dist/Field-ada86df2.js +0 -1
- package/dist/Field-e839d9ca.mjs +0 -60
- package/dist/Footer.vue_vue_type_style_index_0_lang-0ea8fbf8.js +0 -1
- package/dist/Footer.vue_vue_type_style_index_0_lang-2f7f46f1.js +0 -7
- package/dist/Footer.vue_vue_type_style_index_0_lang-39d2aa14.mjs +0 -37
- package/dist/Footer.vue_vue_type_style_index_0_lang-4ed993c7.mjs +0 -1
- package/dist/HeaderBlogpost-59dd9a6b.mjs +0 -93
- package/dist/HeaderBlogpost-8ec43cd0.js +0 -1
- package/dist/IconEdit-736c89be.js +0 -1
- package/dist/IconEdit-e9fd4c6c.mjs +0 -21
- package/dist/PlaceholderUserpic-1a6cf257.mjs +0 -28
- package/dist/PlaceholderUserpic-3bf126ee.js +0 -1
- package/dist/PlaceholderUserpic-3c1b9f7b.mjs +0 -28
- package/dist/PlaceholderUserpic-43e5ab23.js +0 -1
- package/dist/PlaceholderUserpic-4fe04ec9.mjs +0 -28
- package/dist/PlaceholderUserpic-52966e09.js +0 -1
- package/dist/PlaceholderUserpic-9085715c.mjs +0 -28
- package/dist/PlaceholderUserpic-995da0fc.mjs +0 -28
- package/dist/PlaceholderUserpic-b27c51f7.js +0 -1
- package/dist/PlaceholderUserpic-d64d6dd5.js +0 -1
- package/dist/PlaceholderUserpic-e44ccca8.mjs +0 -28
- package/dist/PlaceholderUserpic-fe8bd48d.js +0 -1
- package/dist/Popup-70f6a8c0.mjs +0 -76
- package/dist/Popup-82fb2c8a.mjs +0 -76
- package/dist/Popup-9479e39a.js +0 -1
- package/dist/Popup.vue_vue_type_style_index_0_lang-0cbf3253.js +0 -1
- package/dist/Popup.vue_vue_type_style_index_0_lang-22048704.mjs +0 -280
- package/dist/Popup.vue_vue_type_style_index_0_lang-28b9af00.mjs +0 -280
- package/dist/Popup.vue_vue_type_style_index_0_lang-4f16907f.mjs +0 -924
- package/dist/Popup.vue_vue_type_style_index_0_lang-5b5f9cd7.js +0 -5
- package/dist/Popup.vue_vue_type_style_index_0_lang-769e7cf5.js +0 -5
- package/dist/Popup.vue_vue_type_style_index_0_lang-8981c189.mjs +0 -280
- package/dist/Popup.vue_vue_type_style_index_0_lang-931f265a.js +0 -1
- package/dist/Popup.vue_vue_type_style_index_0_lang-a191c190.js +0 -1
- package/dist/Popup.vue_vue_type_style_index_0_lang-a9351a87.js +0 -1
- package/dist/Popup.vue_vue_type_style_index_0_lang-d05075a7.mjs +0 -280
- package/dist/Popup.vue_vue_type_style_index_0_lang-f2c0cfb5.mjs +0 -924
- package/dist/Product-0195429b.js +0 -1
- package/dist/Product-035252c0.js +0 -1
- package/dist/Product-05cc1386.mjs +0 -687
- package/dist/Product-151f4473.mjs +0 -904
- package/dist/Product-19cc3654.js +0 -7
- package/dist/Product-2f3d592f.mjs +0 -837
- package/dist/Product-334f8bf4.mjs +0 -904
- package/dist/Product-35904a9b.js +0 -7
- package/dist/Product-3c64a352.mjs +0 -904
- package/dist/Product-45a6e7bd.mjs +0 -687
- package/dist/Product-4a5f985d.mjs +0 -837
- package/dist/Product-60e14832.mjs +0 -904
- package/dist/Product-67efba5c.js +0 -7
- package/dist/Product-6c37ef35.js +0 -7
- package/dist/Product-7087b358.mjs +0 -837
- package/dist/Product-96195a8e.js +0 -7
- package/dist/Product-a94d8b65.js +0 -7
- package/dist/Product-b440df7f.js +0 -7
- package/dist/Product-c3a77d07.mjs +0 -837
- package/dist/Product-c8441f02.js +0 -7
- package/dist/Product-cf9cfe65.mjs +0 -904
- package/dist/Product-df622dc0.mjs +0 -837
- package/dist/Product-eb2b6725.js +0 -7
- package/dist/Product-f4dbd969.mjs +0 -837
- package/dist/Product-f819b17e.js +0 -7
- package/dist/Product-fb63c7cd.js +0 -7
- package/dist/ProductEdit-04760699.js +0 -1
- package/dist/ProductEdit-177c1f16.mjs +0 -113
- package/dist/ProductEdit-1e990a92.js +0 -1
- package/dist/ProductEdit-20bda9f1.mjs +0 -113
- package/dist/ProductEdit-39adf62f.mjs +0 -113
- package/dist/ProductEdit-4d6f3720.js +0 -1
- package/dist/ProductEdit-57484f1e.mjs +0 -349
- package/dist/ProductEdit-5e419719.mjs +0 -113
- package/dist/ProductEdit-5f9a55b6.mjs +0 -113
- package/dist/ProductEdit-765f4780.js +0 -1
- package/dist/ProductEdit-9e579dd7.mjs +0 -113
- package/dist/ProductEdit-a81d13b9.js +0 -1
- package/dist/ProductEdit-b98883d8.js +0 -1
- package/dist/ProductEdit-c3c6341d.js +0 -1
- package/dist/ProductEdit-c5067942.mjs +0 -113
- package/dist/ProductEdit-ca271287.js +0 -1
- package/dist/ProductEdit-e2d47403.mjs +0 -113
- package/dist/ProductEdit-ef301baa.js +0 -1
- package/dist/ProfileBlogposts-00424109.js +0 -1
- package/dist/ProfileBlogposts-03658199.js +0 -1
- package/dist/ProfileBlogposts-11bfd9dc.js +0 -1
- package/dist/ProfileBlogposts-317742ee.mjs +0 -56
- package/dist/ProfileBlogposts-4341ca89.mjs +0 -46
- package/dist/ProfileBlogposts-55037a06.mjs +0 -56
- package/dist/ProfileBlogposts-65a7a5e0.mjs +0 -56
- package/dist/ProfileBlogposts-79d5c858.mjs +0 -63
- package/dist/ProfileBlogposts-892fdcf8.mjs +0 -56
- package/dist/ProfileBlogposts-dc11090e.js +0 -1
- package/dist/ProfileBlogposts-e55e30ae.js +0 -1
- package/dist/ProfileBlogposts-e9a7381e.js +0 -1
- package/dist/ProfileBlogposts-eca9916c.js +0 -1
- package/dist/ProfileBlogposts-ffa10f34.mjs +0 -63
- package/dist/ProfileComments-0396b55c.js +0 -1
- package/dist/ProfileComments-08d1670d.mjs +0 -43
- package/dist/ProfileComments-2e2a3a7a.mjs +0 -42
- package/dist/ProfileComments-34eb560b.mjs +0 -43
- package/dist/ProfileComments-48f3d4bc.mjs +0 -43
- package/dist/ProfileComments-5884d09f.mjs +0 -43
- package/dist/ProfileComments-66651060.mjs +0 -43
- package/dist/ProfileComments-677731b3.js +0 -1
- package/dist/ProfileComments-730c2f73.js +0 -1
- package/dist/ProfileComments-82791682.js +0 -1
- package/dist/ProfileComments-b6a688cd.js +0 -1
- package/dist/ProfileComments-b919f021.js +0 -1
- package/dist/ProfileComments-d3966a83.mjs +0 -43
- package/dist/ProfileComments-f5f260ec.js +0 -1
- package/dist/ProfileEvents-05485e20.js +0 -1
- package/dist/ProfileEvents-138ae25e.mjs +0 -55
- package/dist/ProfileEvents-1cfe6858.mjs +0 -55
- package/dist/ProfileEvents-20695376.mjs +0 -55
- package/dist/ProfileEvents-20e9da99.mjs +0 -46
- package/dist/ProfileEvents-45c4b137.mjs +0 -55
- package/dist/ProfileEvents-676239cc.js +0 -1
- package/dist/ProfileEvents-6e6c253b.mjs +0 -46
- package/dist/ProfileEvents-858e9471.mjs +0 -55
- package/dist/ProfileEvents-85a88674.mjs +0 -55
- package/dist/ProfileEvents-89def76b.js +0 -1
- package/dist/ProfileEvents-94d7b407.js +0 -1
- package/dist/ProfileEvents-b057d374.js +0 -1
- package/dist/ProfileEvents-b5431cd6.js +0 -1
- package/dist/ProfileEvents-b8a76b6e.js +0 -1
- package/dist/ProfileEvents-c1e04ac1.mjs +0 -46
- package/dist/ProfileEvents-cd75d80b.js +0 -1
- package/dist/ProfileEvents-cebebb17.js +0 -1
- package/dist/ProfileEvents-d53e7729.mjs +0 -46
- package/dist/ProfileEvents-d8e16509.js +0 -1
- package/dist/ProfileEvents-ddaf8fba.mjs +0 -55
- package/dist/ProfileEvents-ffe0e6f3.js +0 -1
- package/dist/ProfileLikes-0668b718.js +0 -1
- package/dist/ProfileLikes-2f3a4488.js +0 -1
- package/dist/ProfileLikes-405c2636.js +0 -1
- package/dist/ProfileLikes-4242bca5.mjs +0 -43
- package/dist/ProfileLikes-4a57f637.mjs +0 -43
- package/dist/ProfileLikes-7f965631.mjs +0 -43
- package/dist/ProfileLikes-854276f0.js +0 -1
- package/dist/ProfileLikes-8ccf6815.js +0 -1
- package/dist/ProfileLikes-a78900c0.js +0 -1
- package/dist/ProfileLikes-b5ac7f48.mjs +0 -43
- package/dist/ProfileLikes-c32c420b.mjs +0 -43
- package/dist/ProfileLikes-c4c87300.mjs +0 -42
- package/dist/ProfileLikes-c899e3df.js +0 -1
- package/dist/ProfileLikes-d978b084.mjs +0 -43
- package/dist/ProfileOrganizations-04cc9d6d.mjs +0 -198
- package/dist/ProfileOrganizations-0b76e38f.js +0 -1
- package/dist/ProfileOrganizations-0e202612.js +0 -1
- package/dist/ProfileOrganizations-13748b09.js +0 -1
- package/dist/ProfileOrganizations-1990d0cc.js +0 -1
- package/dist/ProfileOrganizations-2633e9e4.mjs +0 -198
- package/dist/ProfileOrganizations-3f305f4e.mjs +0 -210
- package/dist/ProfileOrganizations-46b6e015.mjs +0 -202
- package/dist/ProfileOrganizations-4ffaf01c.js +0 -1
- package/dist/ProfileOrganizations-50fce34e.js +0 -1
- package/dist/ProfileOrganizations-567e87e1.mjs +0 -210
- package/dist/ProfileOrganizations-5abfcc59.js +0 -1
- package/dist/ProfileOrganizations-5d681498.mjs +0 -202
- package/dist/ProfileOrganizations-704f628b.js +0 -1
- package/dist/ProfileOrganizations-b83f6720.js +0 -1
- package/dist/ProfileOrganizations-c58a4fb9.js +0 -1
- package/dist/ProfileOrganizations-c7688210.js +0 -1
- package/dist/ProfileOrganizations-ca9a95a1.js +0 -1
- package/dist/ProfileOrganizations-dbc8a6cd.mjs +0 -214
- package/dist/ProfileOrganizations-dc7210f1.mjs +0 -214
- package/dist/ProfileOrganizations-e4fd2b05.mjs +0 -202
- package/dist/ProfileOrganizations-f6e00809.mjs +0 -214
- package/dist/ProfileOrganizations-feef34df.mjs +0 -112
- package/dist/Publics-07d5bbc4.js +0 -1
- package/dist/Publics-122d9fc7.mjs +0 -1078
- package/dist/Publics-13c48a23.mjs +0 -47
- package/dist/Publics-17009745.mjs +0 -1926
- package/dist/Publics-213e0e9e.mjs +0 -44
- package/dist/Publics-21f24533.mjs +0 -44
- package/dist/Publics-3f277c17.js +0 -1
- package/dist/Publics-450a6715.mjs +0 -1926
- package/dist/Publics-49dbeafc.js +0 -1
- package/dist/Publics-501c9f27.js +0 -1
- package/dist/Publics-54134615.mjs +0 -47
- package/dist/Publics-889c25fc.js +0 -1
- package/dist/Publics-8bea4201.mjs +0 -44
- package/dist/Publics-8d94ee66.js +0 -1
- package/dist/Publics-a030da8f.js +0 -1
- package/dist/Publics-aca585c3.js +0 -1
- package/dist/Publics-b0fad2b0.mjs +0 -1926
- package/dist/Publics-becb1486.js +0 -1
- package/dist/Publics-c6f6b824.js +0 -1
- package/dist/Publics-c9d5aa74.js +0 -1
- package/dist/Publics-fbc8d2db.mjs +0 -1926
- package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs +0 -1
- package/dist/Tab-054b61f7.mjs +0 -46
- package/dist/Tab-1ca0fe66.js +0 -1
- package/dist/Tab-58cd105f.mjs +0 -46
- package/dist/Tab-b0a7ac11.js +0 -1
- package/dist/Tab-c67fbf51.mjs +0 -46
- package/dist/Tab-f04c185d.js +0 -1
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +0 -1
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +0 -1
- package/dist/Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-0b4edb09.js +0 -1
- package/dist/Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-5531689e.mjs +0 -123
- package/dist/UploadImage-1b8c18c4.mjs +0 -99
- package/dist/UploadImage-34bc4a3f.mjs +0 -99
- package/dist/UploadImage-4e91bd99.js +0 -1
- package/dist/UploadImage-74280ea3.mjs +0 -99
- package/dist/UploadImage-75b1a18a.js +0 -1
- package/dist/UploadImage-7c502f96.js +0 -1
- package/dist/UploadImage-96408782.mjs +0 -99
- package/dist/UploadImage-9abb7116.js +0 -1
- package/dist/UploadImage-b1acc48f.mjs +0 -99
- package/dist/UploadImage-c81c3b76.js +0 -1
- package/dist/UploadImage-cd6de241.js +0 -1
- package/dist/UploadImage-d1dbc280.mjs +0 -99
- package/dist/UploadImage-ff8f9a0c.mjs +0 -83
- package/dist/auth-07c01b19.js +0 -8
- package/dist/auth-18f80fef.mjs +0 -1501
- package/dist/auth-35ef1791.mjs +0 -1502
- package/dist/auth-50bd4ebb.js +0 -8
- package/dist/auth-5aa8e90c.js +0 -8
- package/dist/auth-708eebcb.mjs +0 -1446
- package/dist/auth-78fd9408.js +0 -8
- package/dist/auth-7dff19e4.js +0 -8
- package/dist/auth-84680727.mjs +0 -1501
- package/dist/auth-ab40831d.js +0 -8
- package/dist/auth-d102dac0.mjs +0 -1501
- package/dist/auth-f81f3598.mjs +0 -1439
- package/dist/auth.validation-1fb0cb4f.js +0 -1
- package/dist/auth.validation-29113f37.mjs +0 -20
- package/dist/auth.validation-2d33e8c7.mjs +0 -20
- package/dist/auth.validation-2e8ee994.js +0 -1
- package/dist/auth.validation-6923140f.js +0 -1
- package/dist/auth.validation-69488f55.mjs +0 -20
- package/dist/auth.validation-6bccabd6.mjs +0 -20
- package/dist/auth.validation-9cfd985b.mjs +0 -20
- package/dist/auth.validation-9f7c7948.js +0 -1
- package/dist/auth.validation-b644ee65.js +0 -1
- package/dist/auth.validation-f23a7238.mjs +0 -21
- package/dist/categories-75b7d14b.js +0 -1
- package/dist/categories-86b2d45b.mjs +0 -225
- package/dist/categories-d669f3af.mjs +0 -225
- package/dist/components/FieldPhone/<script>.vue.d.ts +0 -547
- package/dist/globals-d7a54bb4.js +0 -1
- package/dist/globals-f538c0ef.mjs +0 -87
- package/dist/inputs.validation-498d8ec9.js +0 -1
- package/dist/inputs.validation-5732152a.mjs +0 -93
- package/dist/inputs.validation-c473ebe7.mjs +0 -93
- package/dist/inputs.validation-c53e01a2.js +0 -1
- package/dist/modules/community/components/blocks/CardOrganization.vue.d.ts +0 -8
- package/dist/modules/community/components/elements/Bullets.vue.d.ts +0 -15
- package/dist/modules/community/components/elements/Caption.vue.d.ts +0 -15
- package/dist/modules/community/components/elements/H2.vue.d.ts +0 -16
- package/dist/modules/community/components/elements/Image.vue.d.ts +0 -8
- package/dist/modules/community/components/elements/ImageUpload.vue.d.ts +0 -9
- package/dist/modules/community/components/elements/Textarea.vue.d.ts +0 -16
- package/dist/modules/community/components/pages/BlogPost.old.vue.d.ts +0 -2
- package/dist/modules/community/components/sections/Publics.vue.d.ts +0 -2
- package/dist/modules/events/components/layouts/Events.vue.d.ts +0 -2
- package/dist/modules/organizations/components/blocks/CardOrganizationSocial.vue.d.ts +0 -8
- package/dist/organizations-0e9ff7ca.mjs +0 -319
- package/dist/organizations-35fe2db4.js +0 -1
- package/dist/organizations-4d74e13b.js +0 -1
- package/dist/organizations-5f9c7fbd.js +0 -1
- package/dist/organizations-6c1450fa.mjs +0 -153
- package/dist/organizations-773c328c.mjs +0 -319
- package/dist/organizations-a9b86de7.mjs +0 -319
- package/dist/organizations-af43bda4.js +0 -1
- package/dist/organizations-b3df0859.js +0 -1
- package/dist/organizations-c77ea9d0.js +0 -1
- package/dist/organizations-d4307861.mjs +0 -319
- package/dist/organizations-dd07ba2c.js +0 -1
- package/dist/organizations-fb1a2214.mjs +0 -319
- package/dist/organizations.client-3b4eb66e.mjs +0 -2898
- package/dist/organizations.client-4e29c957.js +0 -3
- package/dist/organizations.client-686845be.mjs +0 -3179
- package/dist/organizations.client-71c9abde.mjs +0 -2898
- package/dist/organizations.client-99bfc474.js +0 -3
- package/dist/organizations.client-ba59ed4e.js +0 -3
- package/dist/organizations.client-c60d7659.js +0 -3
- package/src/modules/community/controllers/blog.old.controller.js +0 -207
package/dist/Feed-193dd1df.mjs
DELETED
@@ -1,342 +0,0 @@
|
|
1
|
-
import { reactive as E, watch as I, openBlock as r, createElementBlock as o, toDisplayString as m, createCommentVNode as p, createElementVNode as v, ref as d, createTextVNode as N, computed as R, createVNode as b, normalizeClass as U, unref as y, renderSlot as O, onMounted as T, Transition as x, withCtx as P, createBlock as $, Fragment as V, renderList as F } from "vue";
|
2
|
-
import { _ as M } from "./EmptyState-1214f70b.mjs";
|
3
|
-
import { a as z, _ as A } from "./auth-d102dac0.mjs";
|
4
|
-
import { _ as D } from "./CardHeader-e517c801.mjs";
|
5
|
-
import { useRouter as B } from "vue-router";
|
6
|
-
import { s as k } from "./globals-f538c0ef.mjs";
|
7
|
-
const _ = z.create({ baseURL: process.env.API_URL, withCredentials: !0 });
|
8
|
-
_.defaults.withCredentials = !0;
|
9
|
-
const g = E({
|
10
|
-
all: [],
|
11
|
-
filter: {
|
12
|
-
// query
|
13
|
-
tags: [],
|
14
|
-
period: ""
|
15
|
-
// pagination
|
16
|
-
},
|
17
|
-
pagination: {
|
18
|
-
page: 1,
|
19
|
-
perPage: 18
|
20
|
-
},
|
21
|
-
// Sort
|
22
|
-
sort: {
|
23
|
-
current: "popularity",
|
24
|
-
ascending: !1
|
25
|
-
},
|
26
|
-
current: {
|
27
|
-
_id: "",
|
28
|
-
url: "",
|
29
|
-
status: "",
|
30
|
-
name: "",
|
31
|
-
tags: [],
|
32
|
-
owner: {},
|
33
|
-
date: "",
|
34
|
-
views: 0,
|
35
|
-
content: []
|
36
|
-
}
|
37
|
-
});
|
38
|
-
async function C(e = {}) {
|
39
|
-
e.params = e.params || {}, e.params.skip = e.skip || 0, e.params.limit = e.limit || 9, e.params.tags = e.tags || [], e.period && (e.params.period = e.period), e.url && (e.params = { url: e.url }), e.category && (e.params.category = e.category), e.organization && (e.params.organization = e.organization), e.owner && (e.params.owner = e.owner), e.user && (e.params.user = e.user), e.params.skip = e.skip || 0, e.params.limit = e.limit || 10;
|
40
|
-
try {
|
41
|
-
console.log("Request params:" + e.params);
|
42
|
-
const t = await _.get("/api/blog/read", { params: e.params });
|
43
|
-
return e.url ? h(t.data, "current") : h(t.data, "all"), Promise.resolve(t.data);
|
44
|
-
} catch (t) {
|
45
|
-
return k(t), Promise.reject(t);
|
46
|
-
}
|
47
|
-
}
|
48
|
-
async function q(e) {
|
49
|
-
return _.post("/api/blog/create", e).then(
|
50
|
-
(t) => (h(t.data, "current"), Promise.resolve(t.data)),
|
51
|
-
(t) => (k(t), Promise.reject(t))
|
52
|
-
);
|
53
|
-
}
|
54
|
-
async function G(e) {
|
55
|
-
return _.post("/api/blog/update", e).then(
|
56
|
-
(t) => (h(t.data, "current"), Promise.resolve(t.data)),
|
57
|
-
(t) => (k(t), Promise.reject(t))
|
58
|
-
);
|
59
|
-
}
|
60
|
-
async function H(e) {
|
61
|
-
return await _.delete(`/api/blog/delete/${e}`).then(
|
62
|
-
(t) => {
|
63
|
-
const a = g.all.findIndex((s) => s._id === e);
|
64
|
-
return a !== -1 && g.all.splice(a, 1), Promise.resolve(t.data);
|
65
|
-
},
|
66
|
-
(t) => (k(t), Promise.reject(t))
|
67
|
-
);
|
68
|
-
}
|
69
|
-
function h(e, t) {
|
70
|
-
g[t] = e;
|
71
|
-
}
|
72
|
-
function J() {
|
73
|
-
g.current = {
|
74
|
-
_id: "",
|
75
|
-
url: "",
|
76
|
-
status: "",
|
77
|
-
name: "",
|
78
|
-
tags: [],
|
79
|
-
author: "",
|
80
|
-
owner: "",
|
81
|
-
date: "",
|
82
|
-
views: 0,
|
83
|
-
content: []
|
84
|
-
};
|
85
|
-
}
|
86
|
-
function K(e) {
|
87
|
-
const t = {
|
88
|
-
order: g.project.content.length + 1,
|
89
|
-
type: e.type,
|
90
|
-
data: e.data,
|
91
|
-
class: e.class,
|
92
|
-
content: e.content
|
93
|
-
};
|
94
|
-
g.project.content.push(t);
|
95
|
-
}
|
96
|
-
I(g, (e, t) => {
|
97
|
-
});
|
98
|
-
const _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
99
|
-
__proto__: null,
|
100
|
-
blockAdd: K,
|
101
|
-
clean: J,
|
102
|
-
create: q,
|
103
|
-
read: C,
|
104
|
-
remove: H,
|
105
|
-
set: h,
|
106
|
-
state: g,
|
107
|
-
update: G
|
108
|
-
}, Symbol.toStringTag, { value: "Module" })), Q = {
|
109
|
-
props: {
|
110
|
-
progress: {
|
111
|
-
type: Number,
|
112
|
-
default: null
|
113
|
-
},
|
114
|
-
status: {
|
115
|
-
type: String,
|
116
|
-
default: null
|
117
|
-
}
|
118
|
-
}
|
119
|
-
}, W = { class: "circular-loader" }, X = /* @__PURE__ */ v("svg", { viewBox: "25 25 50 50" }, [
|
120
|
-
/* @__PURE__ */ v("circle", {
|
121
|
-
cx: "50",
|
122
|
-
cy: "50",
|
123
|
-
r: "20",
|
124
|
-
fill: "none",
|
125
|
-
"stroke-width": "4",
|
126
|
-
"stroke-miterlimit": "10"
|
127
|
-
})
|
128
|
-
], -1), Y = {
|
129
|
-
key: 0,
|
130
|
-
class: "progress-text"
|
131
|
-
}, Z = {
|
132
|
-
key: 1,
|
133
|
-
class: "uppercase t-semi w-m-10r status-text"
|
134
|
-
};
|
135
|
-
function ee(e, t, a, s, u, l) {
|
136
|
-
return r(), o("div", W, [
|
137
|
-
X,
|
138
|
-
a.progress ? (r(), o("div", Y, m(a.progress), 1)) : p("", !0),
|
139
|
-
a.status ? (r(), o("div", Z, m(a.status), 1)) : p("", !0)
|
140
|
-
]);
|
141
|
-
}
|
142
|
-
const te = /* @__PURE__ */ A(Q, [["render", ee]]), ae = { class: "t-semi br-top-dark flex-nowrap flex-nojustify flex" }, re = /* @__PURE__ */ v("span", { class: "mn-r-small mn-l-small d-block" }, "·", -1), se = { class: "cursor-pointer" }, le = /* @__PURE__ */ v("span", { class: "mn-r-small mn-l-small d-block" }, "·", -1), oe = {
|
143
|
-
__name: "FooterBlogpost",
|
144
|
-
props: ["blogpost", "owner", "user"],
|
145
|
-
setup(e) {
|
146
|
-
const t = e;
|
147
|
-
B();
|
148
|
-
const a = process.env.NODE_ENV === "production";
|
149
|
-
var s = "https://api.ozdao.dev", u = "http://localhost:8081";
|
150
|
-
const l = z.create({ baseURL: a ? s : u }), n = d(t.blogpost.numberOfReactions), f = d(t.blogpost.isReacted), i = d(t.blogpost.reactionId);
|
151
|
-
async function S(j) {
|
152
|
-
if (!t.user) {
|
153
|
-
alert("Please login to add a reaction");
|
154
|
-
return;
|
155
|
-
}
|
156
|
-
try {
|
157
|
-
const c = await l.post("/api/reactions/create", {
|
158
|
-
target: t.blogpost._id,
|
159
|
-
type: "blogpost",
|
160
|
-
user: t.user,
|
161
|
-
class: "like"
|
162
|
-
});
|
163
|
-
c.data.reaction.class === "like" && (n.value += 1, f.value = !0, i.value = c.data.reaction._id);
|
164
|
-
} catch (c) {
|
165
|
-
console.error(c), alert("Error adding reaction. Please try again later.");
|
166
|
-
}
|
167
|
-
}
|
168
|
-
async function w(j) {
|
169
|
-
if (!t.user) {
|
170
|
-
alert("Please login to add a reaction");
|
171
|
-
return;
|
172
|
-
}
|
173
|
-
try {
|
174
|
-
const c = await l.delete("/api/reactions/delete/" + i.value);
|
175
|
-
n.value -= 1, f.value = !1, i.value = null;
|
176
|
-
} catch {
|
177
|
-
alert("Error adding reaction. Please try again later.");
|
178
|
-
}
|
179
|
-
}
|
180
|
-
return (j, c) => (r(), o("footer", ae, [
|
181
|
-
N(" 👁️ " + m(e.blogpost.views) + " ", 1),
|
182
|
-
re,
|
183
|
-
v("div", se, [
|
184
|
-
f.value ? p("", !0) : (r(), o("div", {
|
185
|
-
key: 0,
|
186
|
-
class: "cursor-pointer",
|
187
|
-
onClick: c[0] || (c[0] = (L) => S())
|
188
|
-
}, " 👍 " + m(n.value), 1)),
|
189
|
-
f.value ? (r(), o("div", {
|
190
|
-
key: 1,
|
191
|
-
class: "cursor-pointer",
|
192
|
-
onClick: c[1] || (c[1] = (L) => w())
|
193
|
-
}, " 👍 " + m(n.value), 1)) : p("", !0)
|
194
|
-
]),
|
195
|
-
le,
|
196
|
-
N(" 💬 " + m(e.blogpost.numberOfComments), 1)
|
197
|
-
]));
|
198
|
-
}
|
199
|
-
}, ne = { class: "br-solid br-1px br-grey radius-big" }, ce = ["src"], ie = { class: "pd-t-zero pd-medium" }, ue = {
|
200
|
-
key: 0,
|
201
|
-
class: "mn-small t-transp p-big"
|
202
|
-
}, de = {
|
203
|
-
__name: "CardBlogpost",
|
204
|
-
props: ["blogpost", "user", "type"],
|
205
|
-
setup(e) {
|
206
|
-
const t = e, a = B(), s = R(() => t.blogpost.content.find((l) => l.type.name === "ImageUpload")), u = R(() => t.blogpost.content.find((l) => l.type.name === "Textarea"));
|
207
|
-
return (l, n) => (r(), o("article", ne, [
|
208
|
-
b(D, {
|
209
|
-
class: U({
|
210
|
-
"mn-small pd-medium": e.type !== "short",
|
211
|
-
"flex-child-order-last flex-child mn-l-small": e.type === "short"
|
212
|
-
}),
|
213
|
-
owner: e.blogpost.owner,
|
214
|
-
creator: e.blogpost.creator,
|
215
|
-
date: e.blogpost.createdAt
|
216
|
-
}, null, 8, ["class", "owner", "creator", "date"]),
|
217
|
-
y(s) && e.type !== "blogpostPage" ? (r(), o("img", {
|
218
|
-
key: 0,
|
219
|
-
src: y(s).content,
|
220
|
-
alt: "Blog post image",
|
221
|
-
class: "mn-medium object-fit-cover w-100 h-20r"
|
222
|
-
}, null, 8, ce)) : p("", !0),
|
223
|
-
v("section", ie, [
|
224
|
-
v("h3", {
|
225
|
-
onClick: n[0] || (n[0] = (f) => y(a).push({
|
226
|
-
name: "BlogPost",
|
227
|
-
params: {
|
228
|
-
url: e.blogpost.url
|
229
|
-
}
|
230
|
-
})),
|
231
|
-
class: "cursor-pointer mn-thin"
|
232
|
-
}, m(e.blogpost.name), 1),
|
233
|
-
y(u) && e.type !== "blogpostPage" ? (r(), o("p", ue, m(y(u).content.slice(0, 120)) + "... ", 1)) : p("", !0),
|
234
|
-
O(l.$slots, "default")
|
235
|
-
]),
|
236
|
-
b(oe, {
|
237
|
-
class: "pd-t-zero pd-medium",
|
238
|
-
blogpost: e.blogpost,
|
239
|
-
user: e.user
|
240
|
-
}, null, 8, ["blogpost", "user"])
|
241
|
-
]));
|
242
|
-
}
|
243
|
-
}, me = { class: "feed" }, pe = { key: 1 }, we = {
|
244
|
-
__name: "Feed",
|
245
|
-
props: {
|
246
|
-
category: {
|
247
|
-
type: String,
|
248
|
-
default: null
|
249
|
-
},
|
250
|
-
owner: {
|
251
|
-
type: String,
|
252
|
-
default: null
|
253
|
-
},
|
254
|
-
user: {
|
255
|
-
type: [String, Number],
|
256
|
-
default: null
|
257
|
-
},
|
258
|
-
period: {
|
259
|
-
type: String,
|
260
|
-
default: null
|
261
|
-
}
|
262
|
-
},
|
263
|
-
setup(e) {
|
264
|
-
const t = e, a = d([]), s = d(!0);
|
265
|
-
let u = d(!0), l = d(0), n = d(2);
|
266
|
-
const f = async () => {
|
267
|
-
if (s.value) {
|
268
|
-
l.value += n.value;
|
269
|
-
const i = await C({
|
270
|
-
skip: l.value,
|
271
|
-
limit: n.value,
|
272
|
-
category: t.category,
|
273
|
-
user: t.user,
|
274
|
-
owner: t.owner,
|
275
|
-
period: t.period
|
276
|
-
});
|
277
|
-
i.length === 0 && (s.value = !1), a.value = [...a.value, ...i];
|
278
|
-
}
|
279
|
-
};
|
280
|
-
return T(async () => {
|
281
|
-
const i = await C({
|
282
|
-
skip: l.value,
|
283
|
-
limit: n.value,
|
284
|
-
category: t.category,
|
285
|
-
user: t.user,
|
286
|
-
owner: t.owner,
|
287
|
-
period: t.period
|
288
|
-
});
|
289
|
-
i.length === 0 ? s.value = !1 : s.value = !0, a.value = i, u.value = !1;
|
290
|
-
}), (i, S) => (r(), o("section", me, [
|
291
|
-
b(x, { name: "fade" }, {
|
292
|
-
default: P(() => [
|
293
|
-
y(u) ? (r(), $(te, {
|
294
|
-
key: 0,
|
295
|
-
class: "z-index-5 pos-t-50 left-t-50 pos-absolute"
|
296
|
-
})) : p("", !0)
|
297
|
-
]),
|
298
|
-
_: 1
|
299
|
-
}),
|
300
|
-
b(x, { name: "fade" }, {
|
301
|
-
default: P(() => [
|
302
|
-
!y(u) && a.value.length < 1 ? (r(), $(M, {
|
303
|
-
key: 0,
|
304
|
-
title: "No Blog Posts Found",
|
305
|
-
description: "Currently, there are no posts available in this blog. Please check back later.",
|
306
|
-
class: "pd-medium mn-thin bg-grey radius-big"
|
307
|
-
})) : (r(), o("div", pe, [
|
308
|
-
(r(!0), o(V, null, F(a.value, (w) => (r(), $(de, {
|
309
|
-
key: w._id,
|
310
|
-
blogpost: w,
|
311
|
-
user: e.user,
|
312
|
-
class: "mn-medium"
|
313
|
-
}, null, 8, ["blogpost", "user"]))), 128)),
|
314
|
-
b(x, { name: "fade" }, {
|
315
|
-
default: P(() => [
|
316
|
-
s.value && a.value.length > 0 ? (r(), o("button", {
|
317
|
-
key: 0,
|
318
|
-
onClick: f,
|
319
|
-
class: "w-100 bg-main button"
|
320
|
-
}, " Load more ")) : p("", !0)
|
321
|
-
]),
|
322
|
-
_: 1
|
323
|
-
})
|
324
|
-
]))
|
325
|
-
]),
|
326
|
-
_: 1
|
327
|
-
})
|
328
|
-
]));
|
329
|
-
}
|
330
|
-
};
|
331
|
-
export {
|
332
|
-
te as L,
|
333
|
-
we as _,
|
334
|
-
q as a,
|
335
|
-
de as b,
|
336
|
-
J as c,
|
337
|
-
oe as d,
|
338
|
-
_e as e,
|
339
|
-
C as r,
|
340
|
-
g as s,
|
341
|
-
G as u
|
342
|
-
};
|
package/dist/Feed-26bf6bef.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),$=require("./EmptyState-23c13029.js"),k=require("./auth-50bd4ebb.js"),C=require("./HeaderBlogpost-8ec43cd0.js"),_=require("vue-router"),y=require("./globals-d7a54bb4.js"),p=k.axios.create({baseURL:process.env.API_URL,withCredentials:!0});p.defaults.withCredentials=!0;const u=e.reactive({all:[],filter:{tags:[],period:""},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",url:"",status:"",name:"",tags:[],owner:{},date:"",views:0,content:[]}});async function f(t={}){t.params=t.params||{},t.params.skip=t.skip||0,t.params.limit=t.limit||9,t.params.tags=t.tags||[],t.period&&(t.params.period=t.period),t.url&&(t.params={url:t.url}),t.category&&(t.params.category=t.category),t.organization&&(t.params.organization=t.organization),t.owner&&(t.params.owner=t.owner),t.user&&(t.params.user=t.user),t.params.skip=t.skip||0,t.params.limit=t.limit||10;try{console.log("Request params:"+t.params);const r=await p.get("/api/blog/read",{params:t.params});return t.url?m(r.data,"current"):m(r.data,"all"),Promise.resolve(r.data)}catch(r){return y.setError(r),Promise.reject(r)}}async function w(t){return p.post("/api/blog/create",t).then(r=>(m(r.data,"current"),Promise.resolve(r.data)),r=>(y.setError(r),Promise.reject(r)))}async function h(t){return p.post("/api/blog/update",t).then(r=>(m(r.data,"current"),Promise.resolve(r.data)),r=>(y.setError(r),Promise.reject(r)))}async function P(t){return await p.delete(`/api/blog/delete/${t}`).then(r=>{const a=u.all.findIndex(o=>o._id===t);return a!==-1&&u.all.splice(a,1),Promise.resolve(r.data)},r=>(y.setError(r),Promise.reject(r)))}function m(t,r){u[r]=t}function B(){u.current={_id:"",url:"",status:"",name:"",tags:[],author:"",owner:"",date:"",views:0,content:[]}}function S(t){const r={order:u.project.content.length+1,type:t.type,data:t.data,class:t.class,content:t.content};u.project.content.push(r)}e.watch(u,(t,r)=>{});const z=Object.freeze(Object.defineProperty({__proto__:null,blockAdd:S,clean:B,create:w,read:f,remove:P,set:m,state:u,update:h},Symbol.toStringTag,{value:"Module"})),R={class:"t-semi br-top-dark flex-nowrap flex-nojustify flex"},j=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),D={class:"cursor-pointer"},L=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),E={__name:"FooterBlogpost",props:["blogpost","owner"],setup(t){const r=t;_.useRouter();const a=process.env.NODE_ENV==="production";var o="https://api.ozdao.dev",i="http://localhost:8081";const n=k.axios.create({baseURL:a?o:i}),s=e.ref(r.blogpost.reactionsCount),d=e.ref(r.blogpost.isReacted),c=e.ref(r.blogpost.reactionId);async function v(b){if(!r.owner){alert("Please login to add a reaction");return}try{const l=await n.post("/reactions/create",{source:r.blogpost._id,type:"like",owner:r.owner});l.data.reaction.type==="like"&&(s.value+=1,d.value=!0,c.value=l.data.reaction._id)}catch(l){console.error(l),alert("Error adding reaction. Please try again later.")}}async function g(b){if(!r.owner){alert("Please login to add a reaction");return}try{const l=await n.delete("/reactions/delete/"+c.value);s.value-=1,d.value=!1,c.value=null}catch{alert("Error adding reaction. Please try again later.")}}return(b,l)=>(e.openBlock(),e.createElementBlock("footer",R,[e.createTextVNode(" 👁️ "+e.toDisplayString(t.blogpost.views)+" ",1),j,e.createElementVNode("div",D,[d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"cursor-pointer",onClick:l[0]||(l[0]=V=>v())}," 👍 "+e.toDisplayString(s.value),1)),d.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cursor-pointer",onClick:l[1]||(l[1]=V=>g())}," 👍 "+e.toDisplayString(s.value),1)):e.createCommentVNode("",!0)]),L,e.createTextVNode(" 💬 "+e.toDisplayString(t.blogpost.commentsCount),1)]))}},q={props:{progress:{type:Number,default:null},status:{type:String,default:null}}},T={class:"circular-loader"},I=e.createElementVNode("svg",{viewBox:"25 25 50 50"},[e.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})],-1),U={key:0,class:"progress-text"},F={key:1,class:"uppercase t-semi w-m-10r status-text"};function M(t,r,a,o,i,n){return e.openBlock(),e.createElementBlock("div",T,[I,a.progress?(e.openBlock(),e.createElementBlock("div",U,e.toDisplayString(a.progress),1)):e.createCommentVNode("",!0),a.status?(e.openBlock(),e.createElementBlock("div",F,e.toDisplayString(a.status),1)):e.createCommentVNode("",!0)])}const N=k._export_sfc(q,[["render",M]]),O={class:"br-solid br-1px br-grey radius-big"},A=["src"],H={class:"pd-t-zero pd-medium"},G={key:0,class:"mn-small t-transp p-big"},x={__name:"CardBlogpost",props:["blogpost","owner"],setup(t){const r=t,a=_.useRouter(),o=e.computed(()=>r.blogpost.content.find(n=>n.type.name==="ImageUpload")),i=e.computed(()=>r.blogpost.content.find(n=>n.type.name==="Textarea"));return(n,s)=>(e.openBlock(),e.createElementBlock("article",O,[e.createVNode(C._sfc_main,{blogpost:t.blogpost,owner:t.blogpost.owner,organization:t.blogpost.organization,class:"pd-medium"},null,8,["blogpost","owner","organization"]),e.unref(o)?(e.openBlock(),e.createElementBlock("img",{key:0,src:e.unref(o).content,alt:"Blog post image",class:"mn-medium object-fit-cover w-100 h-20r"},null,8,A)):e.createCommentVNode("",!0),e.createElementVNode("section",H,[e.createElementVNode("h3",{onClick:s[0]||(s[0]=d=>e.unref(a).push({name:"BlogPost",params:{url:t.blogpost.url}})),class:"cursor-pointer mn-thin"},e.toDisplayString(t.blogpost.name),1),e.unref(i)?(e.openBlock(),e.createElementBlock("p",G,e.toDisplayString(e.unref(i).content.slice(0,120))+"...",1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default")]),e.createVNode(E,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,owner:t.owner},null,8,["blogpost","owner"])]))}},J={class:"feed"},K={key:1},Q={__name:"Feed",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(t){const r=t,a=e.ref([]),o=e.ref(!0);let i=e.ref(!0),n=e.ref(0),s=e.ref(2);const d=async()=>{if(o.value){n.value+=s.value;const c=await f({skip:n.value,limit:s.value,category:r.category,user:r.user,owner:r.owner,organization:r.organization,period:r.period});c.length===0&&(o.value=!1),a.value=[...a.value,...c]}};return e.onMounted(async()=>{const c=await f({skip:n.value,limit:s.value,category:r.category,user:r.user,owner:r.owner,organization:r.organization,period:r.period});c.length===0?o.value=!1:o.value=!0,a.value=c,i.value=!1}),(c,v)=>(e.openBlock(),e.createElementBlock("section",J,[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(),e.createBlock(N,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!e.unref(i)&&a.value.length<1?(e.openBlock(),e.createBlock($._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",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,g=>(e.openBlock(),e.createBlock(x,{key:g._id,blogpost:g,owner:t.user,class:"mn-medium"},null,8,["blogpost","owner"]))),128)),o.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]))]),_:1})]))}};exports.Loader=N;exports._sfc_main=Q;exports._sfc_main$1=E;exports._sfc_main$2=x;exports.blogposts=z;exports.clean=B;exports.create=w;exports.read=f;exports.state=u;exports.update=h;
|
package/dist/Feed-2f9a1922.mjs
DELETED
@@ -1,334 +0,0 @@
|
|
1
|
-
import { reactive as E, watch as I, ref as d, openBlock as r, createElementBlock as n, createTextVNode as C, toDisplayString as m, createElementVNode as y, createCommentVNode as p, computed as S, createVNode as h, unref as v, renderSlot as U, onMounted as T, Transition as j, withCtx as N, createBlock as x, Fragment as V, renderList as F } from "vue";
|
2
|
-
import { _ as M } from "./EmptyState-1214f70b.mjs";
|
3
|
-
import { a as B, _ as O } from "./auth-f81f3598.mjs";
|
4
|
-
import { _ as A } from "./HeaderBlogpost-59dd9a6b.mjs";
|
5
|
-
import { useRouter as R } from "vue-router";
|
6
|
-
import { s as k } from "./globals-f538c0ef.mjs";
|
7
|
-
const _ = B.create({ baseURL: process.env.API_URL, withCredentials: !0 });
|
8
|
-
_.defaults.withCredentials = !0;
|
9
|
-
const g = E({
|
10
|
-
all: [],
|
11
|
-
filter: {
|
12
|
-
// query
|
13
|
-
tags: [],
|
14
|
-
period: ""
|
15
|
-
// pagination
|
16
|
-
},
|
17
|
-
pagination: {
|
18
|
-
page: 1,
|
19
|
-
perPage: 18
|
20
|
-
},
|
21
|
-
// Sort
|
22
|
-
sort: {
|
23
|
-
current: "popularity",
|
24
|
-
ascending: !1
|
25
|
-
},
|
26
|
-
current: {
|
27
|
-
_id: "",
|
28
|
-
url: "",
|
29
|
-
status: "",
|
30
|
-
name: "",
|
31
|
-
tags: [],
|
32
|
-
owner: {},
|
33
|
-
date: "",
|
34
|
-
views: 0,
|
35
|
-
content: []
|
36
|
-
}
|
37
|
-
});
|
38
|
-
async function $(e = {}) {
|
39
|
-
e.params = e.params || {}, e.params.skip = e.skip || 0, e.params.limit = e.limit || 9, e.params.tags = e.tags || [], e.period && (e.params.period = e.period), e.url && (e.params = { url: e.url }), e.category && (e.params.category = e.category), e.organization && (e.params.organization = e.organization), e.owner && (e.params.owner = e.owner), e.user && (e.params.user = e.user), e.params.skip = e.skip || 0, e.params.limit = e.limit || 10;
|
40
|
-
try {
|
41
|
-
console.log("Request params:" + e.params);
|
42
|
-
const t = await _.get("/api/blog/read", { params: e.params });
|
43
|
-
return e.url ? b(t.data, "current") : b(t.data, "all"), Promise.resolve(t.data);
|
44
|
-
} catch (t) {
|
45
|
-
return k(t), Promise.reject(t);
|
46
|
-
}
|
47
|
-
}
|
48
|
-
async function D(e) {
|
49
|
-
return _.post("/api/blog/create", e).then(
|
50
|
-
(t) => (b(t.data, "current"), Promise.resolve(t.data)),
|
51
|
-
(t) => (k(t), Promise.reject(t))
|
52
|
-
);
|
53
|
-
}
|
54
|
-
async function q(e) {
|
55
|
-
return _.post("/api/blog/update", e).then(
|
56
|
-
(t) => (b(t.data, "current"), Promise.resolve(t.data)),
|
57
|
-
(t) => (k(t), Promise.reject(t))
|
58
|
-
);
|
59
|
-
}
|
60
|
-
async function G(e) {
|
61
|
-
return await _.delete(`/api/blog/delete/${e}`).then(
|
62
|
-
(t) => {
|
63
|
-
const a = g.all.findIndex((s) => s._id === e);
|
64
|
-
return a !== -1 && g.all.splice(a, 1), Promise.resolve(t.data);
|
65
|
-
},
|
66
|
-
(t) => (k(t), Promise.reject(t))
|
67
|
-
);
|
68
|
-
}
|
69
|
-
function b(e, t) {
|
70
|
-
g[t] = e;
|
71
|
-
}
|
72
|
-
function H() {
|
73
|
-
g.current = {
|
74
|
-
_id: "",
|
75
|
-
url: "",
|
76
|
-
status: "",
|
77
|
-
name: "",
|
78
|
-
tags: [],
|
79
|
-
author: "",
|
80
|
-
owner: "",
|
81
|
-
date: "",
|
82
|
-
views: 0,
|
83
|
-
content: []
|
84
|
-
};
|
85
|
-
}
|
86
|
-
function J(e) {
|
87
|
-
const t = {
|
88
|
-
order: g.project.content.length + 1,
|
89
|
-
type: e.type,
|
90
|
-
data: e.data,
|
91
|
-
class: e.class,
|
92
|
-
content: e.content
|
93
|
-
};
|
94
|
-
g.project.content.push(t);
|
95
|
-
}
|
96
|
-
I(g, (e, t) => {
|
97
|
-
});
|
98
|
-
const _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
99
|
-
__proto__: null,
|
100
|
-
blockAdd: J,
|
101
|
-
clean: H,
|
102
|
-
create: D,
|
103
|
-
read: $,
|
104
|
-
remove: G,
|
105
|
-
set: b,
|
106
|
-
state: g,
|
107
|
-
update: q
|
108
|
-
}, Symbol.toStringTag, { value: "Module" })), K = { class: "t-semi br-top-dark flex-nowrap flex-nojustify flex" }, Q = /* @__PURE__ */ y("span", { class: "mn-r-small mn-l-small d-block" }, "·", -1), W = { class: "cursor-pointer" }, X = /* @__PURE__ */ y("span", { class: "mn-r-small mn-l-small d-block" }, "·", -1), Y = {
|
109
|
-
__name: "FooterBlogpost",
|
110
|
-
props: ["blogpost", "owner"],
|
111
|
-
setup(e) {
|
112
|
-
const t = e;
|
113
|
-
R();
|
114
|
-
const a = process.env.NODE_ENV === "production";
|
115
|
-
var s = "https://api.ozdao.dev", u = "http://localhost:8081";
|
116
|
-
const o = B.create({ baseURL: a ? s : u }), l = d(t.blogpost.reactionsCount), f = d(t.blogpost.isReacted), c = d(t.blogpost.reactionId);
|
117
|
-
async function P(z) {
|
118
|
-
if (!t.owner) {
|
119
|
-
alert("Please login to add a reaction");
|
120
|
-
return;
|
121
|
-
}
|
122
|
-
try {
|
123
|
-
const i = await o.post("/reactions/create", {
|
124
|
-
source: t.blogpost._id,
|
125
|
-
type: "like",
|
126
|
-
owner: t.owner
|
127
|
-
});
|
128
|
-
i.data.reaction.type === "like" && (l.value += 1, f.value = !0, c.value = i.data.reaction._id);
|
129
|
-
} catch (i) {
|
130
|
-
console.error(i), alert("Error adding reaction. Please try again later.");
|
131
|
-
}
|
132
|
-
}
|
133
|
-
async function w(z) {
|
134
|
-
if (!t.owner) {
|
135
|
-
alert("Please login to add a reaction");
|
136
|
-
return;
|
137
|
-
}
|
138
|
-
try {
|
139
|
-
const i = await o.delete("/reactions/delete/" + c.value);
|
140
|
-
l.value -= 1, f.value = !1, c.value = null;
|
141
|
-
} catch {
|
142
|
-
alert("Error adding reaction. Please try again later.");
|
143
|
-
}
|
144
|
-
}
|
145
|
-
return (z, i) => (r(), n("footer", K, [
|
146
|
-
C(" 👁️ " + m(e.blogpost.views) + " ", 1),
|
147
|
-
Q,
|
148
|
-
y("div", W, [
|
149
|
-
f.value ? p("", !0) : (r(), n("div", {
|
150
|
-
key: 0,
|
151
|
-
class: "cursor-pointer",
|
152
|
-
onClick: i[0] || (i[0] = (L) => P())
|
153
|
-
}, " 👍 " + m(l.value), 1)),
|
154
|
-
f.value ? (r(), n("div", {
|
155
|
-
key: 1,
|
156
|
-
class: "cursor-pointer",
|
157
|
-
onClick: i[1] || (i[1] = (L) => w())
|
158
|
-
}, " 👍 " + m(l.value), 1)) : p("", !0)
|
159
|
-
]),
|
160
|
-
X,
|
161
|
-
C(" 💬 " + m(e.blogpost.commentsCount), 1)
|
162
|
-
]));
|
163
|
-
}
|
164
|
-
}, Z = {
|
165
|
-
props: {
|
166
|
-
progress: {
|
167
|
-
type: Number,
|
168
|
-
default: null
|
169
|
-
},
|
170
|
-
status: {
|
171
|
-
type: String,
|
172
|
-
default: null
|
173
|
-
}
|
174
|
-
}
|
175
|
-
}, ee = { class: "circular-loader" }, te = /* @__PURE__ */ y("svg", { viewBox: "25 25 50 50" }, [
|
176
|
-
/* @__PURE__ */ y("circle", {
|
177
|
-
cx: "50",
|
178
|
-
cy: "50",
|
179
|
-
r: "20",
|
180
|
-
fill: "none",
|
181
|
-
"stroke-width": "4",
|
182
|
-
"stroke-miterlimit": "10"
|
183
|
-
})
|
184
|
-
], -1), ae = {
|
185
|
-
key: 0,
|
186
|
-
class: "progress-text"
|
187
|
-
}, re = {
|
188
|
-
key: 1,
|
189
|
-
class: "uppercase t-semi w-m-10r status-text"
|
190
|
-
};
|
191
|
-
function se(e, t, a, s, u, o) {
|
192
|
-
return r(), n("div", ee, [
|
193
|
-
te,
|
194
|
-
a.progress ? (r(), n("div", ae, m(a.progress), 1)) : p("", !0),
|
195
|
-
a.status ? (r(), n("div", re, m(a.status), 1)) : p("", !0)
|
196
|
-
]);
|
197
|
-
}
|
198
|
-
const oe = /* @__PURE__ */ O(Z, [["render", se]]), ne = { class: "br-solid br-1px br-grey radius-big" }, le = ["src"], ie = { class: "pd-t-zero pd-medium" }, ce = {
|
199
|
-
key: 0,
|
200
|
-
class: "mn-small t-transp p-big"
|
201
|
-
}, ue = {
|
202
|
-
__name: "CardBlogpost",
|
203
|
-
props: ["blogpost", "owner"],
|
204
|
-
setup(e) {
|
205
|
-
const t = e, a = R(), s = S(() => t.blogpost.content.find((o) => o.type.name === "ImageUpload")), u = S(() => t.blogpost.content.find((o) => o.type.name === "Textarea"));
|
206
|
-
return (o, l) => (r(), n("article", ne, [
|
207
|
-
h(A, {
|
208
|
-
blogpost: e.blogpost,
|
209
|
-
owner: e.blogpost.owner,
|
210
|
-
organization: e.blogpost.organization,
|
211
|
-
class: "pd-medium"
|
212
|
-
}, null, 8, ["blogpost", "owner", "organization"]),
|
213
|
-
v(s) ? (r(), n("img", {
|
214
|
-
key: 0,
|
215
|
-
src: v(s).content,
|
216
|
-
alt: "Blog post image",
|
217
|
-
class: "mn-medium object-fit-cover w-100 h-20r"
|
218
|
-
}, null, 8, le)) : p("", !0),
|
219
|
-
y("section", ie, [
|
220
|
-
y("h3", {
|
221
|
-
onClick: l[0] || (l[0] = (f) => v(a).push({ name: "BlogPost", params: { url: e.blogpost.url } })),
|
222
|
-
class: "cursor-pointer mn-thin"
|
223
|
-
}, m(e.blogpost.name), 1),
|
224
|
-
v(u) ? (r(), n("p", ce, m(v(u).content.slice(0, 120)) + "...", 1)) : p("", !0),
|
225
|
-
U(o.$slots, "default")
|
226
|
-
]),
|
227
|
-
h(Y, {
|
228
|
-
class: "pd-t-zero pd-medium",
|
229
|
-
blogpost: e.blogpost,
|
230
|
-
owner: e.owner
|
231
|
-
}, null, 8, ["blogpost", "owner"])
|
232
|
-
]));
|
233
|
-
}
|
234
|
-
}, de = { class: "feed" }, me = { key: 1 }, we = {
|
235
|
-
__name: "Feed",
|
236
|
-
props: {
|
237
|
-
category: {
|
238
|
-
type: String,
|
239
|
-
default: null
|
240
|
-
},
|
241
|
-
organization: {
|
242
|
-
type: String,
|
243
|
-
default: null
|
244
|
-
},
|
245
|
-
owner: {
|
246
|
-
type: String,
|
247
|
-
default: null
|
248
|
-
},
|
249
|
-
user: {
|
250
|
-
type: [String, Number],
|
251
|
-
default: null
|
252
|
-
},
|
253
|
-
period: {
|
254
|
-
type: String,
|
255
|
-
default: null
|
256
|
-
}
|
257
|
-
},
|
258
|
-
setup(e) {
|
259
|
-
const t = e, a = d([]), s = d(!0);
|
260
|
-
let u = d(!0), o = d(0), l = d(2);
|
261
|
-
const f = async () => {
|
262
|
-
if (s.value) {
|
263
|
-
o.value += l.value;
|
264
|
-
const c = await $({
|
265
|
-
skip: o.value,
|
266
|
-
limit: l.value,
|
267
|
-
category: t.category,
|
268
|
-
user: t.user,
|
269
|
-
owner: t.owner,
|
270
|
-
organization: t.organization,
|
271
|
-
period: t.period
|
272
|
-
});
|
273
|
-
c.length === 0 && (s.value = !1), a.value = [...a.value, ...c];
|
274
|
-
}
|
275
|
-
};
|
276
|
-
return T(async () => {
|
277
|
-
const c = await $({
|
278
|
-
skip: o.value,
|
279
|
-
limit: l.value,
|
280
|
-
category: t.category,
|
281
|
-
user: t.user,
|
282
|
-
owner: t.owner,
|
283
|
-
organization: t.organization,
|
284
|
-
period: t.period
|
285
|
-
});
|
286
|
-
c.length === 0 ? s.value = !1 : s.value = !0, a.value = c, u.value = !1;
|
287
|
-
}), (c, P) => (r(), n("section", de, [
|
288
|
-
h(j, { name: "fade" }, {
|
289
|
-
default: N(() => [
|
290
|
-
v(u) ? (r(), x(oe, {
|
291
|
-
key: 0,
|
292
|
-
class: "z-index-5 pos-t-50 left-t-50 pos-absolute"
|
293
|
-
})) : p("", !0)
|
294
|
-
]),
|
295
|
-
_: 1
|
296
|
-
}),
|
297
|
-
h(j, { name: "fade" }, {
|
298
|
-
default: N(() => [
|
299
|
-
!v(u) && a.value.length < 1 ? (r(), x(M, {
|
300
|
-
key: 0,
|
301
|
-
title: "No Blog Posts Found",
|
302
|
-
description: "Currently, there are no posts available in this blog. Please check back later.",
|
303
|
-
class: "pd-medium mn-thin bg-grey radius-big"
|
304
|
-
})) : (r(), n("div", me, [
|
305
|
-
(r(!0), n(V, null, F(a.value, (w) => (r(), x(ue, {
|
306
|
-
key: w._id,
|
307
|
-
blogpost: w,
|
308
|
-
owner: e.user,
|
309
|
-
class: "mn-medium"
|
310
|
-
}, null, 8, ["blogpost", "owner"]))), 128)),
|
311
|
-
s.value && a.value.length > 0 ? (r(), n("button", {
|
312
|
-
key: 0,
|
313
|
-
onClick: f,
|
314
|
-
class: "w-100 bg-main button"
|
315
|
-
}, "Load more")) : p("", !0)
|
316
|
-
]))
|
317
|
-
]),
|
318
|
-
_: 1
|
319
|
-
})
|
320
|
-
]));
|
321
|
-
}
|
322
|
-
};
|
323
|
-
export {
|
324
|
-
oe as L,
|
325
|
-
we as _,
|
326
|
-
D as a,
|
327
|
-
Y as b,
|
328
|
-
H as c,
|
329
|
-
ue as d,
|
330
|
-
_e as e,
|
331
|
-
$ as r,
|
332
|
-
g as s,
|
333
|
-
q as u
|
334
|
-
};
|