@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
@@ -1,113 +0,0 @@
|
|
1
|
-
import { withAsyncContext as u, openBlock as s, createElementBlock as c, createElementVNode as t, createVNode as o, unref as x, withCtx as y, createTextVNode as z, Fragment as k, renderList as w, createBlock as N } from "vue";
|
2
|
-
import { useRoute as P, useRouter as C } from "vue-router";
|
3
|
-
import { a as I, _ as $, s as E, C as L } from "./Popup.vue_vue_type_style_index_0_lang-4f16907f.mjs";
|
4
|
-
import "./Field-e839d9ca.mjs";
|
5
|
-
import "./Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs";
|
6
|
-
import { b as A } from "./auth-f81f3598.mjs";
|
7
|
-
import "vue-i18n";
|
8
|
-
import { _ as B, a as m, b as V } from "./EditProductImages-42f9f665.mjs";
|
9
|
-
import { a as d, s as e } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-8cb3c120.mjs";
|
10
|
-
import "./globals-f538c0ef.mjs";
|
11
|
-
import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
12
|
-
const D = { class: "for-transition w-100" }, M = { class: "pd-b-zero pd-t-zero pd-thin" }, R = { class: "pd-thin" }, S = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, T = {
|
13
|
-
key: 0,
|
14
|
-
class: "mn-r-auto"
|
15
|
-
}, F = {
|
16
|
-
key: 1,
|
17
|
-
class: "mn-r-auto"
|
18
|
-
}, j = { class: "flex-nowrap flex pd-thin" }, q = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, G = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, H = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Profile", -1), J = { class: "mn-semi" }, K = /* @__PURE__ */ t("h5", null, "Categories", -1), O = { class: "" }, Q = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, U = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Images", -1), le = {
|
19
|
-
__name: "ProductEdit",
|
20
|
-
async setup(W) {
|
21
|
-
let i, r;
|
22
|
-
const a = P(), _ = C();
|
23
|
-
[i, r] = u(() => I.fetchCategories()), await i, r(), a.params.product && ([i, r] = u(() => d.read({ _id: a.params.product })), await i, r());
|
24
|
-
function p() {
|
25
|
-
e.current.information.push({ name: "", value: "" });
|
26
|
-
}
|
27
|
-
function f(n) {
|
28
|
-
e.current.information.splice(n, 1);
|
29
|
-
}
|
30
|
-
function h() {
|
31
|
-
e.current.localization.push({ locale: "", text: "" });
|
32
|
-
}
|
33
|
-
function g(n) {
|
34
|
-
e.current.localization.splice(n, 1);
|
35
|
-
}
|
36
|
-
function b() {
|
37
|
-
a.params.product ? d.update(a.params.product, e.current) : d.create(a.params._id, e.current);
|
38
|
-
}
|
39
|
-
function v() {
|
40
|
-
_.push({ name: "ProductEdit", params: { _id: a.params._id, product: e.current._id } });
|
41
|
-
}
|
42
|
-
return (n, X) => (s(), c("div", D, [
|
43
|
-
t("div", M, [
|
44
|
-
o($, { class: "pd-medium bg-grey radius-big" })
|
45
|
-
]),
|
46
|
-
t("div", R, [
|
47
|
-
t("header", S, [
|
48
|
-
x(a).params.product ? (s(), c("h1", T, "Edit Product")) : (s(), c("h1", F, "Create Product")),
|
49
|
-
t("section", j, [
|
50
|
-
o(A, {
|
51
|
-
submit: b,
|
52
|
-
callback: v
|
53
|
-
}, {
|
54
|
-
default: y(() => [
|
55
|
-
z("Save Product")
|
56
|
-
]),
|
57
|
-
_: 1
|
58
|
-
})
|
59
|
-
])
|
60
|
-
])
|
61
|
-
]),
|
62
|
-
t("div", q, [
|
63
|
-
t("div", G, [
|
64
|
-
H,
|
65
|
-
o(B, {
|
66
|
-
product: e.current
|
67
|
-
}, null, 8, ["product"]),
|
68
|
-
t("div", J, [
|
69
|
-
K,
|
70
|
-
(s(!0), c(k, null, w(E.all, (l, Y) => (s(), N(L, {
|
71
|
-
label: l.name,
|
72
|
-
name: "categories",
|
73
|
-
value: l.url,
|
74
|
-
class: "w-100 mn-t-small bg-white radius-small pd-small",
|
75
|
-
radio: e.current.category
|
76
|
-
}, null, 8, ["label", "value", "radio"]))), 256))
|
77
|
-
]),
|
78
|
-
o(m, {
|
79
|
-
items: e.current.information,
|
80
|
-
title: "Parameters",
|
81
|
-
emptyMessage: "No parameters",
|
82
|
-
addButtonLabel: "Add parameter",
|
83
|
-
keyName: "name",
|
84
|
-
valueName: "value",
|
85
|
-
onAddInfo: p,
|
86
|
-
onDeleteInfo: f
|
87
|
-
}, null, 8, ["items"]),
|
88
|
-
o(m, {
|
89
|
-
items: e.current.localization,
|
90
|
-
title: "Localization",
|
91
|
-
emptyMessage: "No localizations",
|
92
|
-
addButtonLabel: "Add localization",
|
93
|
-
keyName: "locale",
|
94
|
-
valueName: "text",
|
95
|
-
onAddInfo: h,
|
96
|
-
onDeleteInfo: g
|
97
|
-
}, null, 8, ["items"])
|
98
|
-
]),
|
99
|
-
t("div", O, [
|
100
|
-
t("div", Q, [
|
101
|
-
U,
|
102
|
-
o(V, {
|
103
|
-
product: e.current
|
104
|
-
}, null, 8, ["product"])
|
105
|
-
])
|
106
|
-
])
|
107
|
-
])
|
108
|
-
]));
|
109
|
-
}
|
110
|
-
};
|
111
|
-
export {
|
112
|
-
le as default
|
113
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=require("vue-router"),n=require("./organizations.client-c60d7659.js");require("./inputs.validation-24ae76b9.js");const p=require("./auth-5aa8e90c.js"),k=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js");require("vue-i18n");const y=require("./Publics-3f277c17.js"),x=require("./vuex.esm-bundler-e8cf3cd2.js"),E=require("./vue-draggable-next.esm-bundler-80731ae0.js");require("./globals-928eb13c.js");require("./Tab-6f0a4909.js");require("./ButtonFollow-2ce169ca.js");require("./Feed-8fd41524.js");require("./EmptyState-7658d7d6.js");require("./CardHeader-925a972b.js");require("./PlaceholderUserpic-d64d6dd5.js");require("./Feed-55c5907a.js");require("./IconEdit-736c89be.js");require("./organizations-af43bda4.js");require("./UploadImage-441e8526.js");require("./CardOrganization-ee5c34ab.js");const V={class:"mn-big flex-column flex"},w={__name:"EditProductInfo",props:{product:Object},setup(c){const s=c,o=x.useStore();return e.toRefs(s),(t,l)=>(e.openBlock(),e.createElementBlock("div",V,[e.createTextVNode(e.toDisplayString(e.unref(o).products.current)+" ",1),e.createVNode(y.Select,{options:["unpublished","published","archivied"],select:e.unref(o).products.state.current.status,"onUpdate:select":l[0]||(l[0]=r=>e.unref(o).products.state.current.status=r),placeholder:"Display product",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["select"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.name,"onUpdate:field":l[1]||(l[1]=r=>e.unref(o).products.state.current.name=r),placeholder:"Введите название",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.price,"onUpdate:field":l[2]||(l[2]=r=>e.unref(o).products.state.current.price=r),placeholder:"Введите цену",class:"w-100 mn-small bg-white radius-small pd-medium",type:"number"},null,8,["field"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.description,"onUpdate:field":l[3]||(l[3]=r=>e.unref(o).products.state.current.description=r),placeholder:"Введите описание",class:"w-100 mn-small bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])]))}},B={class:"mn-big"},C={class:"mn-small flex-nowrap flex"},$={class:"mn-r-thin"},q={class:"flex-column flex"},P={key:0,class:"w-100 mn-small"},z=["onClick"],D=e.createElementVNode("svg",{class:"i-small",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",fill:"#8a8a8a","fill-rule":"evenodd"})],-1),I=[D],N={__name:"EditParameters",props:{items:{type:Array,default:()=>[]},title:String,addButtonLabel:String,emptyMessage:String,keyName:String,valueName:String},emits:["add-info","delete-info"],setup(c,{emit:s}){const o=c;function t(){s("add-info",{})}function l(a){s("delete-info",a)}const{items:r,title:m,emptyMessage:_,addButtonLabel:d,keyName:i,valueName:f}=e.toRefs(o);return(a,v)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",C,[e.createElementVNode("h5",$,e.toDisplayString(e.unref(m)),1),e.createElementVNode("button",{onClick:t,class:"i-small pd-thin button-delete button"},"+")]),e.createElementVNode("div",q,[e.unref(r).length==0?(e.openBlock(),e.createElementBlock("p",P,e.toDisplayString(e.unref(_)),1)):e.createCommentVNode("",!0),e.unref(r).length==0?(e.openBlock(),e.createBlock(p._sfc_main,{key:1,onClick:t,class:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(u,g)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-medium w-100 flex-nowrap flex",key:g},[e.createVNode(p.Field,{field:u[e.unref(i)],"onUpdate:field":h=>u[e.unref(i)]=h,placeholder:"Название параметра",class:"w-100 mn-r-small bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(p.Field,{field:u[e.unref(f)],"onUpdate:field":h=>u[e.unref(f)]=h,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:h=>l(g),class:"mn-l-small button"},I,8,z)]))),128))])]))}},S=e.createElementVNode("div",{class:"flex-v-center flex-h-center flex w-100 h-100"}," upload ",-1),U={__name:"UploadImageMultiple",props:["uploadPath"],emits:["update:images"],setup(c,{emit:s}){const o=c,t=e.ref([]),l=e.ref(null);function r(){l.value.click()}async function m(d){let i=d.target.files,f=new FormData;for(let a=0;a<i.length;a++)f.append("file",i[a]);try{(await p.axios.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(o.uploadPath)}`,f,{headers:{"Content-Type":"multipart/form-data"}})).data.forEach(u=>{t.value.push(u.filepath)}),s("update:images",t.value)}catch(a){console.error(a)}}function _(d){d.preventDefault(),m({target:{files:d.dataTransfer.files}})}return(d,i)=>(e.openBlock(),e.createElementBlock("div",{onClick:r,onDrop:_,onDragover:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"])),class:"flex-v-center flex-h-center flex"},[S,e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:l,onChange:m,multiple:"",style:{display:"none"}},null,544)],32))}},L={key:0,class:"mn-big"},A={class:"flex-column block"},F=["src"],R=["onClick"],T={__name:"EditProductImages",props:{product:Object},setup(c){function s(t){console.log(t),console.log(n.state.current.images),n.state.current.images.push(...t)}function o(t){n.state.current.images.splice(t,1)}return(t,l)=>(e.openBlock(),e.createElementBlock("div",null,[c.product.images.length<1?(e.openBlock(),e.createElementBlock("p",L," The product doesn't have any images yet. ")):e.createCommentVNode("",!0),e.createVNode(e.unref(E.VueDraggableNext),{class:"cols-4 dragArea list-group w-full",list:c.product.images,sort:!0,onChange:t.log},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.product.images,(r,m)=>(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("img",{class:"w-100 mn-small",src:r},null,8,F),e.createElementVNode("a",{onClick:_=>o(m),class:"w-100 br-grey br-solid br-1px button"},"Удалить",8,R)]))),256))]),_:1},8,["list","onChange"]),e.createVNode(U,{"onUpdate:images":s,uploadPath:"organizations/"+t.$route.params._id+"/products",class:"mn-t-semi pd-small w-100 button bg-main"},null,8,["uploadPath"])]))}};const M={class:"for-transition w-100"},j={class:"pd-b-zero pd-t-zero pd-thin"},O={class:"pd-thin"},G={class:"flex-nowrap flex bg-grey pd-medium radius-big"},H={key:0,class:"mn-r-auto"},J={key:1,class:"mn-r-auto"},K={class:"flex-nowrap flex pd-thin"},Q={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},W={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},X=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),Y={class:"mn-semi"},Z=e.createElementVNode("h5",null,"Categories",-1),ee={class:""},te={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},ne=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),oe={__name:"ProductEdit",async setup(c){let s,o;const t=b.useRoute(),l=b.useRouter();[s,o]=e.withAsyncContext(()=>n.actions.fetchCategories()),await s,o(),t.params.product&&([s,o]=e.withAsyncContext(()=>n.actions$1.read({_id:t.params.product})),await s,o());function r(){n.state.current.information.push({name:"",value:""})}function m(a){n.state.current.information.splice(a,1)}function _(){n.state.current.localization.push({locale:"",text:""})}function d(a){n.state.current.localization.splice(a,1)}function i(){t.params.product?n.actions$1.update(t.params.product,n.state.current):n.actions$1.create(t.params._id,n.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:t.params._id,product:n.state.current._id}})}return(a,v)=>(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",j,[e.createVNode(n._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",O,[e.createElementVNode("header",G,[e.unref(t).params.product?(e.openBlock(),e.createElementBlock("h1",H,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",J,"Create Product")),e.createElementVNode("section",K,[e.createVNode(p._sfc_main,{submit:i,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",Q,[e.createElementVNode("div",W,[X,e.createVNode(w,{product:n.state.current},null,8,["product"]),e.createElementVNode("div",Y,[Z,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.state$1.all,(u,g)=>(e.openBlock(),e.createBlock(k.Checkbox,{label:u.name,name:"categories",value:u.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:n.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(N,{items:n.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:r,onDeleteInfo:m},null,8,["items"]),e.createVNode(N,{items:n.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:_,onDeleteInfo:d},null,8,["items"])]),e.createElementVNode("div",ee,[e.createElementVNode("div",te,[ne,e.createVNode(T,{product:n.state.current},null,8,["product"])])])])]))}};exports.default=oe;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),t=require("./categories-75b7d14b.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const f=require("./auth-5aa8e90c.js"),g=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-c6f3a0f0.js");require("vue-i18n");const s=require("./EditProductImages-11510b66.js");require("./globals-928eb13c.js");require("./vuex.esm-bundler-e8cf3cd2.js");require("./vue-draggable-next.esm-bundler-80731ae0.js");const N={class:"for-transition w-100"},b={class:"pd-b-zero pd-t-zero pd-thin"},v={class:"pd-thin"},E={class:"flex-nowrap flex bg-grey pd-medium radius-big"},y={key:0,class:"mn-r-auto"},V={key:1,class:"mn-r-auto"},k={class:"flex-nowrap flex pd-thin"},x={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},B={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},q=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),w={class:"mn-semi"},z=e.createElementVNode("h5",null,"Categories",-1),P={class:""},I={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},C=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),$={__name:"ProductEdit",async setup(A){let o,r;const a=i.useRoute(),d=i.useRouter();[o,r]=e.withAsyncContext(()=>t.actions.fetchCategories()),await o,r(),a.params.product&&([o,r]=e.withAsyncContext(()=>t.actions$1.read({_id:a.params.product})),await o,r());function l(){t.state.current.information.push({name:"",value:""})}function u(n){t.state.current.information.splice(n,1)}function m(){t.state.current.localization.push({locale:"",text:""})}function _(n){t.state.current.localization.splice(n,1)}function p(){a.params.product?t.actions$1.update(a.params.product,t.state.current):t.actions$1.create(a.params._id,t.state.current)}function h(){d.push({name:"ProductEdit",params:{_id:a.params._id,product:t.state.current._id}})}return(n,L)=>(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("div",b,[e.createVNode(t._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",v,[e.createElementVNode("header",E,[e.unref(a).params.product?(e.openBlock(),e.createElementBlock("h1",y,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",V,"Create Product")),e.createElementVNode("section",k,[e.createVNode(f._sfc_main,{submit:p,callback:h},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",x,[e.createElementVNode("div",B,[q,e.createVNode(s._sfc_main,{product:t.state.current},null,8,["product"]),e.createElementVNode("div",w,[z,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state$1.all,(c,S)=>(e.openBlock(),e.createBlock(g.Checkbox,{label:c.name,name:"categories",value:c.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(s._sfc_main$1,{items:t.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:l,onDeleteInfo:u},null,8,["items"]),e.createVNode(s._sfc_main$1,{items:t.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:m,onDeleteInfo:_},null,8,["items"])]),e.createElementVNode("div",P,[e.createElementVNode("div",I,[C,e.createVNode(s._sfc_main$2,{product:t.state.current},null,8,["product"])])])])]))}};exports.default=$;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),t=require("./Popup.vue_vue_type_style_index_0_lang-0cbf3253.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const f=require("./auth-07c01b19.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-dd037bbf.js");require("vue-i18n");const s=require("./EditProductImages-04ec4326.js");require("./globals-d7a54bb4.js");require("./vuex.esm-bundler-e8cf3cd2.js");require("./vue-draggable-next.esm-bundler-80731ae0.js");const g={class:"for-transition w-100"},N={class:"pd-b-zero pd-t-zero pd-thin"},v={class:"pd-thin"},b={class:"flex-nowrap flex bg-grey pd-medium radius-big"},E={key:0,class:"mn-r-auto"},y={key:1,class:"mn-r-auto"},V={class:"flex-nowrap flex pd-thin"},k={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},x={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},B=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),q={class:"mn-semi"},P=e.createElementVNode("h5",null,"Categories",-1),w={class:""},z={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},I=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),C={__name:"ProductEdit",async setup($){let o,r;const a=i.useRoute(),d=i.useRouter();[o,r]=e.withAsyncContext(()=>t.actions.fetchCategories()),await o,r(),a.params.product&&([o,r]=e.withAsyncContext(()=>t.actions$1.read({_id:a.params.product})),await o,r());function l(){t.state.current.information.push({name:"",value:""})}function u(n){t.state.current.information.splice(n,1)}function m(){t.state.current.localization.push({locale:"",text:""})}function _(n){t.state.current.localization.splice(n,1)}function p(){a.params.product?t.actions$1.update(a.params.product,t.state.current):t.actions$1.create(a.params._id,t.state.current)}function h(){d.push({name:"ProductEdit",params:{_id:a.params._id,product:t.state.current._id}})}return(n,A)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",N,[e.createVNode(t._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",v,[e.createElementVNode("header",b,[e.unref(a).params.product?(e.openBlock(),e.createElementBlock("h1",E,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",y,"Create Product")),e.createElementVNode("section",V,[e.createVNode(f._sfc_main,{submit:p,callback:h},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",k,[e.createElementVNode("div",x,[B,e.createVNode(s._sfc_main,{product:t.state.current},null,8,["product"]),e.createElementVNode("div",q,[P,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state$1.all,(c,L)=>(e.openBlock(),e.createBlock(t.Checkbox,{label:c.name,name:"categories",value:c.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(s._sfc_main$1,{items:t.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:l,onDeleteInfo:u},null,8,["items"]),e.createVNode(s._sfc_main$1,{items:t.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:m,onDeleteInfo:_},null,8,["items"])]),e.createElementVNode("div",w,[e.createElementVNode("div",z,[I,e.createVNode(s._sfc_main$2,{product:t.state.current},null,8,["product"])])])])]))}};exports.default=C;
|
@@ -1,113 +0,0 @@
|
|
1
|
-
import { withAsyncContext as u, openBlock as s, createElementBlock as c, createElementVNode as t, createVNode as o, unref as x, withCtx as y, createTextVNode as z, Fragment as k, renderList as w, createBlock as N } from "vue";
|
2
|
-
import { useRoute as P, useRouter as C } from "vue-router";
|
3
|
-
import { a as I, b as d, _ as $, s as e, c as E } from "./categories-d669f3af.mjs";
|
4
|
-
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
5
|
-
import { b as L } from "./auth-35ef1791.mjs";
|
6
|
-
import { C as A } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs";
|
7
|
-
import "vue-i18n";
|
8
|
-
import { _ as B, a as m, b as V } from "./EditProductImages-61ff4321.mjs";
|
9
|
-
import "./globals-96ba60e4.mjs";
|
10
|
-
import "./vuex.esm-bundler-57d8b6ba.mjs";
|
11
|
-
import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
12
|
-
const D = { class: "for-transition w-100" }, M = { class: "pd-b-zero pd-t-zero pd-thin" }, R = { class: "pd-thin" }, S = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, T = {
|
13
|
-
key: 0,
|
14
|
-
class: "mn-r-auto"
|
15
|
-
}, F = {
|
16
|
-
key: 1,
|
17
|
-
class: "mn-r-auto"
|
18
|
-
}, j = { class: "flex-nowrap flex pd-thin" }, q = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, G = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, H = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Profile", -1), J = { class: "mn-semi" }, K = /* @__PURE__ */ t("h5", null, "Categories", -1), O = { class: "" }, Q = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, U = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Images", -1), le = {
|
19
|
-
__name: "ProductEdit",
|
20
|
-
async setup(W) {
|
21
|
-
let i, r;
|
22
|
-
const a = P(), _ = C();
|
23
|
-
[i, r] = u(() => I.fetchCategories()), await i, r(), a.params.product && ([i, r] = u(() => d.read({ _id: a.params.product })), await i, r());
|
24
|
-
function p() {
|
25
|
-
e.current.information.push({ name: "", value: "" });
|
26
|
-
}
|
27
|
-
function f(n) {
|
28
|
-
e.current.information.splice(n, 1);
|
29
|
-
}
|
30
|
-
function h() {
|
31
|
-
e.current.localization.push({ locale: "", text: "" });
|
32
|
-
}
|
33
|
-
function b(n) {
|
34
|
-
e.current.localization.splice(n, 1);
|
35
|
-
}
|
36
|
-
function g() {
|
37
|
-
a.params.product ? d.update(a.params.product, e.current) : d.create(a.params._id, e.current);
|
38
|
-
}
|
39
|
-
function v() {
|
40
|
-
_.push({ name: "ProductEdit", params: { _id: a.params._id, product: e.current._id } });
|
41
|
-
}
|
42
|
-
return (n, X) => (s(), c("div", D, [
|
43
|
-
t("div", M, [
|
44
|
-
o($, { class: "pd-medium bg-grey radius-big" })
|
45
|
-
]),
|
46
|
-
t("div", R, [
|
47
|
-
t("header", S, [
|
48
|
-
x(a).params.product ? (s(), c("h1", T, "Edit Product")) : (s(), c("h1", F, "Create Product")),
|
49
|
-
t("section", j, [
|
50
|
-
o(L, {
|
51
|
-
submit: g,
|
52
|
-
callback: v
|
53
|
-
}, {
|
54
|
-
default: y(() => [
|
55
|
-
z("Save Product")
|
56
|
-
]),
|
57
|
-
_: 1
|
58
|
-
})
|
59
|
-
])
|
60
|
-
])
|
61
|
-
]),
|
62
|
-
t("div", q, [
|
63
|
-
t("div", G, [
|
64
|
-
H,
|
65
|
-
o(B, {
|
66
|
-
product: e.current
|
67
|
-
}, null, 8, ["product"]),
|
68
|
-
t("div", J, [
|
69
|
-
K,
|
70
|
-
(s(!0), c(k, null, w(E.all, (l, Y) => (s(), N(A, {
|
71
|
-
label: l.name,
|
72
|
-
name: "categories",
|
73
|
-
value: l.url,
|
74
|
-
class: "w-100 mn-t-small bg-white radius-small pd-small",
|
75
|
-
radio: e.current.category
|
76
|
-
}, null, 8, ["label", "value", "radio"]))), 256))
|
77
|
-
]),
|
78
|
-
o(m, {
|
79
|
-
items: e.current.information,
|
80
|
-
title: "Parameters",
|
81
|
-
emptyMessage: "No parameters",
|
82
|
-
addButtonLabel: "Add parameter",
|
83
|
-
keyName: "name",
|
84
|
-
valueName: "value",
|
85
|
-
onAddInfo: p,
|
86
|
-
onDeleteInfo: f
|
87
|
-
}, null, 8, ["items"]),
|
88
|
-
o(m, {
|
89
|
-
items: e.current.localization,
|
90
|
-
title: "Localization",
|
91
|
-
emptyMessage: "No localizations",
|
92
|
-
addButtonLabel: "Add localization",
|
93
|
-
keyName: "locale",
|
94
|
-
valueName: "text",
|
95
|
-
onAddInfo: h,
|
96
|
-
onDeleteInfo: b
|
97
|
-
}, null, 8, ["items"])
|
98
|
-
]),
|
99
|
-
t("div", O, [
|
100
|
-
t("div", Q, [
|
101
|
-
U,
|
102
|
-
o(V, {
|
103
|
-
product: e.current
|
104
|
-
}, null, 8, ["product"])
|
105
|
-
])
|
106
|
-
])
|
107
|
-
])
|
108
|
-
]));
|
109
|
-
}
|
110
|
-
};
|
111
|
-
export {
|
112
|
-
le as default
|
113
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("vue-router"),s=require("./Popup.vue_vue_type_style_index_0_lang-5b5f9cd7.js");require("./Field-ada86df2.js");require("./Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js");const g=require("./auth-50bd4ebb.js");require("vue-i18n");const c=require("./EditProductImages-cf67d31b.js"),t=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0216f2b0.js");require("./globals-d7a54bb4.js");require("./vue-draggable-next.esm-bundler-80731ae0.js");const N={class:"for-transition w-100"},v={class:"pd-b-zero pd-t-zero pd-thin"},b={class:"pd-thin"},y={class:"flex-nowrap flex bg-grey pd-medium radius-big"},E={key:0,class:"mn-r-auto"},V={key:1,class:"mn-r-auto"},k={class:"flex-nowrap flex pd-thin"},x={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},B={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},q=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),P={class:"mn-semi"},w=e.createElementVNode("h5",null,"Categories",-1),z={class:""},I={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},C=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),A={__name:"ProductEdit",async setup(L){let o,n;const a=d.useRoute(),l=d.useRouter();[o,n]=e.withAsyncContext(()=>s.actions.fetchCategories()),await o,n(),a.params.product&&([o,n]=e.withAsyncContext(()=>t.actions.read({_id:a.params.product})),await o,n());function u(){t.state.current.information.push({name:"",value:""})}function m(r){t.state.current.information.splice(r,1)}function _(){t.state.current.localization.push({locale:"",text:""})}function p(r){t.state.current.localization.splice(r,1)}function h(){a.params.product?t.actions.update(a.params.product,t.state.current):t.actions.create(a.params._id,t.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:a.params._id,product:t.state.current._id}})}return(r,S)=>(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("div",v,[e.createVNode(s._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",b,[e.createElementVNode("header",y,[e.unref(a).params.product?(e.openBlock(),e.createElementBlock("h1",E,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",V,"Create Product")),e.createElementVNode("section",k,[e.createVNode(g._sfc_main,{submit:h,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",x,[e.createElementVNode("div",B,[q,e.createVNode(c._sfc_main,{product:t.state.current},null,8,["product"]),e.createElementVNode("div",P,[w,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.state.all,(i,M)=>(e.openBlock(),e.createBlock(s.Checkbox,{label:i.name,name:"categories",value:i.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(c._sfc_main$1,{items:t.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:u,onDeleteInfo:m},null,8,["items"]),e.createVNode(c._sfc_main$1,{items:t.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:_,onDeleteInfo:p},null,8,["items"])]),e.createElementVNode("div",z,[e.createElementVNode("div",I,[C,e.createVNode(c._sfc_main$2,{product:t.state.current},null,8,["product"])])])])]))}};exports.default=A;
|
@@ -1,113 +0,0 @@
|
|
1
|
-
import { withAsyncContext as u, openBlock as s, createElementBlock as c, createElementVNode as t, createVNode as o, unref as x, withCtx as y, createTextVNode as z, Fragment as k, renderList as w, createBlock as N } from "vue";
|
2
|
-
import { useRoute as P, useRouter as C } from "vue-router";
|
3
|
-
import { a as I, b as d, _ as $, s as e, c as E, C as L } from "./Popup.vue_vue_type_style_index_0_lang-28b9af00.mjs";
|
4
|
-
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
5
|
-
import { b as A } from "./auth-d102dac0.mjs";
|
6
|
-
import "./Breadcrumbs.vue_vue_type_style_index_0_lang-e133a3c6.mjs";
|
7
|
-
import "vue-i18n";
|
8
|
-
import { _ as B, a as m, b as V } from "./EditProductImages-4246db75.mjs";
|
9
|
-
import "./globals-f538c0ef.mjs";
|
10
|
-
import "./vuex.esm-bundler-57d8b6ba.mjs";
|
11
|
-
import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
12
|
-
const D = { class: "for-transition w-100" }, M = { class: "pd-b-zero pd-t-zero pd-thin" }, R = { class: "pd-thin" }, S = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, T = {
|
13
|
-
key: 0,
|
14
|
-
class: "mn-r-auto"
|
15
|
-
}, F = {
|
16
|
-
key: 1,
|
17
|
-
class: "mn-r-auto"
|
18
|
-
}, j = { class: "flex-nowrap flex pd-thin" }, q = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, G = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, H = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Profile", -1), J = { class: "mn-semi" }, K = /* @__PURE__ */ t("h5", null, "Categories", -1), O = { class: "" }, Q = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, U = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Images", -1), le = {
|
19
|
-
__name: "ProductEdit",
|
20
|
-
async setup(W) {
|
21
|
-
let i, r;
|
22
|
-
const a = P(), _ = C();
|
23
|
-
[i, r] = u(() => I.fetchCategories()), await i, r(), a.params.product && ([i, r] = u(() => d.read({ _id: a.params.product })), await i, r());
|
24
|
-
function p() {
|
25
|
-
e.current.information.push({ name: "", value: "" });
|
26
|
-
}
|
27
|
-
function h(n) {
|
28
|
-
e.current.information.splice(n, 1);
|
29
|
-
}
|
30
|
-
function f() {
|
31
|
-
e.current.localization.push({ locale: "", text: "" });
|
32
|
-
}
|
33
|
-
function b(n) {
|
34
|
-
e.current.localization.splice(n, 1);
|
35
|
-
}
|
36
|
-
function g() {
|
37
|
-
a.params.product ? d.update(a.params.product, e.current) : d.create(a.params._id, e.current);
|
38
|
-
}
|
39
|
-
function v() {
|
40
|
-
_.push({ name: "ProductEdit", params: { _id: a.params._id, product: e.current._id } });
|
41
|
-
}
|
42
|
-
return (n, X) => (s(), c("div", D, [
|
43
|
-
t("div", M, [
|
44
|
-
o($, { class: "pd-medium bg-grey radius-big" })
|
45
|
-
]),
|
46
|
-
t("div", R, [
|
47
|
-
t("header", S, [
|
48
|
-
x(a).params.product ? (s(), c("h1", T, "Edit Product")) : (s(), c("h1", F, "Create Product")),
|
49
|
-
t("section", j, [
|
50
|
-
o(A, {
|
51
|
-
submit: g,
|
52
|
-
callback: v
|
53
|
-
}, {
|
54
|
-
default: y(() => [
|
55
|
-
z("Save Product")
|
56
|
-
]),
|
57
|
-
_: 1
|
58
|
-
})
|
59
|
-
])
|
60
|
-
])
|
61
|
-
]),
|
62
|
-
t("div", q, [
|
63
|
-
t("div", G, [
|
64
|
-
H,
|
65
|
-
o(B, {
|
66
|
-
product: e.current
|
67
|
-
}, null, 8, ["product"]),
|
68
|
-
t("div", J, [
|
69
|
-
K,
|
70
|
-
(s(!0), c(k, null, w(E.all, (l, Y) => (s(), N(L, {
|
71
|
-
label: l.name,
|
72
|
-
name: "categories",
|
73
|
-
value: l.url,
|
74
|
-
class: "w-100 mn-t-small bg-white radius-small pd-small",
|
75
|
-
radio: e.current.category
|
76
|
-
}, null, 8, ["label", "value", "radio"]))), 256))
|
77
|
-
]),
|
78
|
-
o(m, {
|
79
|
-
items: e.current.information,
|
80
|
-
title: "Parameters",
|
81
|
-
emptyMessage: "No parameters",
|
82
|
-
addButtonLabel: "Add parameter",
|
83
|
-
keyName: "name",
|
84
|
-
valueName: "value",
|
85
|
-
onAddInfo: p,
|
86
|
-
onDeleteInfo: h
|
87
|
-
}, null, 8, ["items"]),
|
88
|
-
o(m, {
|
89
|
-
items: e.current.localization,
|
90
|
-
title: "Localization",
|
91
|
-
emptyMessage: "No localizations",
|
92
|
-
addButtonLabel: "Add localization",
|
93
|
-
keyName: "locale",
|
94
|
-
valueName: "text",
|
95
|
-
onAddInfo: f,
|
96
|
-
onDeleteInfo: b
|
97
|
-
}, null, 8, ["items"])
|
98
|
-
]),
|
99
|
-
t("div", O, [
|
100
|
-
t("div", Q, [
|
101
|
-
U,
|
102
|
-
o(V, {
|
103
|
-
product: e.current
|
104
|
-
}, null, 8, ["product"])
|
105
|
-
])
|
106
|
-
])
|
107
|
-
])
|
108
|
-
]));
|
109
|
-
}
|
110
|
-
};
|
111
|
-
export {
|
112
|
-
le as default
|
113
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=require("vue-router"),n=require("./organizations.client-99bfc474.js");require("./inputs.validation-24ae76b9.js");const p=require("./auth-5aa8e90c.js"),k=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js");require("vue-i18n");const y=require("./Publics-3f277c17.js"),x=require("./vuex.esm-bundler-e8cf3cd2.js"),E=require("./vue-draggable-next.esm-bundler-80731ae0.js");require("./globals-928eb13c.js");require("./Tab-6f0a4909.js");require("./ButtonFollow-2ce169ca.js");require("./Feed-51e4e232.js");require("./EmptyState-7658d7d6.js");require("./CardHeader-925a972b.js");require("./PlaceholderUserpic-d64d6dd5.js");require("./Feed-55c5907a.js");require("./IconEdit-736c89be.js");require("./organizations-af43bda4.js");require("./UploadImage-441e8526.js");require("./CardOrganization-ee5c34ab.js");const V={class:"mn-big flex-column flex"},w={__name:"EditProductInfo",props:{product:Object},setup(c){const s=c,o=x.useStore();return e.toRefs(s),(t,l)=>(e.openBlock(),e.createElementBlock("div",V,[e.createTextVNode(e.toDisplayString(e.unref(o).products.current)+" ",1),e.createVNode(y.Select,{options:["unpublished","published","archivied"],select:e.unref(o).products.state.current.status,"onUpdate:select":l[0]||(l[0]=r=>e.unref(o).products.state.current.status=r),placeholder:"Display product",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["select"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.name,"onUpdate:field":l[1]||(l[1]=r=>e.unref(o).products.state.current.name=r),placeholder:"Введите название",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.price,"onUpdate:field":l[2]||(l[2]=r=>e.unref(o).products.state.current.price=r),placeholder:"Введите цену",class:"w-100 mn-small bg-white radius-small pd-medium",type:"number"},null,8,["field"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.description,"onUpdate:field":l[3]||(l[3]=r=>e.unref(o).products.state.current.description=r),placeholder:"Введите описание",class:"w-100 mn-small bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])]))}},B={class:"mn-big"},C={class:"mn-small flex-nowrap flex"},$={class:"mn-r-thin"},q={class:"flex-column flex"},P={key:0,class:"w-100 mn-small"},z=["onClick"],D=e.createElementVNode("svg",{class:"i-small",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",fill:"#8a8a8a","fill-rule":"evenodd"})],-1),I=[D],N={__name:"EditParameters",props:{items:{type:Array,default:()=>[]},title:String,addButtonLabel:String,emptyMessage:String,keyName:String,valueName:String},emits:["add-info","delete-info"],setup(c,{emit:s}){const o=c;function t(){s("add-info",{})}function l(a){s("delete-info",a)}const{items:r,title:m,emptyMessage:_,addButtonLabel:d,keyName:i,valueName:f}=e.toRefs(o);return(a,v)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",C,[e.createElementVNode("h5",$,e.toDisplayString(e.unref(m)),1),e.createElementVNode("button",{onClick:t,class:"i-small pd-thin button-delete button"},"+")]),e.createElementVNode("div",q,[e.unref(r).length==0?(e.openBlock(),e.createElementBlock("p",P,e.toDisplayString(e.unref(_)),1)):e.createCommentVNode("",!0),e.unref(r).length==0?(e.openBlock(),e.createBlock(p._sfc_main,{key:1,onClick:t,class:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(u,g)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-medium w-100 flex-nowrap flex",key:g},[e.createVNode(p.Field,{field:u[e.unref(i)],"onUpdate:field":h=>u[e.unref(i)]=h,placeholder:"Название параметра",class:"w-100 mn-r-small bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(p.Field,{field:u[e.unref(f)],"onUpdate:field":h=>u[e.unref(f)]=h,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:h=>l(g),class:"mn-l-small button"},I,8,z)]))),128))])]))}},S=e.createElementVNode("div",{class:"flex-v-center flex-h-center flex w-100 h-100"}," upload ",-1),U={__name:"UploadImageMultiple",props:["uploadPath"],emits:["update:images"],setup(c,{emit:s}){const o=c,t=e.ref([]),l=e.ref(null);function r(){l.value.click()}async function m(d){let i=d.target.files,f=new FormData;for(let a=0;a<i.length;a++)f.append("file",i[a]);try{(await p.axios.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(o.uploadPath)}`,f,{headers:{"Content-Type":"multipart/form-data"}})).data.forEach(u=>{t.value.push(u.filepath)}),s("update:images",t.value)}catch(a){console.error(a)}}function _(d){d.preventDefault(),m({target:{files:d.dataTransfer.files}})}return(d,i)=>(e.openBlock(),e.createElementBlock("div",{onClick:r,onDrop:_,onDragover:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"])),class:"flex-v-center flex-h-center flex"},[S,e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:l,onChange:m,multiple:"",style:{display:"none"}},null,544)],32))}},L={key:0,class:"mn-big"},A={class:"flex-column block"},F=["src"],R=["onClick"],T={__name:"EditProductImages",props:{product:Object},setup(c){function s(t){console.log(t),console.log(n.state.current.images),n.state.current.images.push(...t)}function o(t){n.state.current.images.splice(t,1)}return(t,l)=>(e.openBlock(),e.createElementBlock("div",null,[c.product.images.length<1?(e.openBlock(),e.createElementBlock("p",L," The product doesn't have any images yet. ")):e.createCommentVNode("",!0),e.createVNode(e.unref(E.VueDraggableNext),{class:"cols-4 dragArea list-group w-full",list:c.product.images,sort:!0,onChange:t.log},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.product.images,(r,m)=>(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("img",{class:"w-100 mn-small",src:r},null,8,F),e.createElementVNode("a",{onClick:_=>o(m),class:"w-100 br-grey br-solid br-1px button"},"Удалить",8,R)]))),256))]),_:1},8,["list","onChange"]),e.createVNode(U,{"onUpdate:images":s,uploadPath:"organizations/"+t.$route.params._id+"/products",class:"mn-t-semi pd-small w-100 button bg-main"},null,8,["uploadPath"])]))}};const M={class:"for-transition w-100"},j={class:"pd-b-zero pd-t-zero pd-thin"},O={class:"pd-thin"},G={class:"flex-nowrap flex bg-grey pd-medium radius-big"},H={key:0,class:"mn-r-auto"},J={key:1,class:"mn-r-auto"},K={class:"flex-nowrap flex pd-thin"},Q={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},W={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},X=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),Y={class:"mn-semi"},Z=e.createElementVNode("h5",null,"Categories",-1),ee={class:""},te={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},ne=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),oe={__name:"ProductEdit",async setup(c){let s,o;const t=b.useRoute(),l=b.useRouter();[s,o]=e.withAsyncContext(()=>n.actions.fetchCategories()),await s,o(),t.params.product&&([s,o]=e.withAsyncContext(()=>n.actions$1.read({_id:t.params.product})),await s,o());function r(){n.state.current.information.push({name:"",value:""})}function m(a){n.state.current.information.splice(a,1)}function _(){n.state.current.localization.push({locale:"",text:""})}function d(a){n.state.current.localization.splice(a,1)}function i(){t.params.product?n.actions$1.update(t.params.product,n.state.current):n.actions$1.create(t.params._id,n.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:t.params._id,product:n.state.current._id}})}return(a,v)=>(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",j,[e.createVNode(n._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",O,[e.createElementVNode("header",G,[e.unref(t).params.product?(e.openBlock(),e.createElementBlock("h1",H,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",J,"Create Product")),e.createElementVNode("section",K,[e.createVNode(p._sfc_main,{submit:i,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",Q,[e.createElementVNode("div",W,[X,e.createVNode(w,{product:n.state.current},null,8,["product"]),e.createElementVNode("div",Y,[Z,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.state$1.all,(u,g)=>(e.openBlock(),e.createBlock(k.Checkbox,{label:u.name,name:"categories",value:u.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:n.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(N,{items:n.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:r,onDeleteInfo:m},null,8,["items"]),e.createVNode(N,{items:n.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:_,onDeleteInfo:d},null,8,["items"])]),e.createElementVNode("div",ee,[e.createElementVNode("div",te,[ne,e.createVNode(T,{product:n.state.current},null,8,["product"])])])])]))}};exports.default=oe;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("vue-router"),d=require("./Tab-b0a7ac11.js"),l=require("./Feed-932d976d.js"),s=require("./auth-78fd9408.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-7658d7d6.js");require("./CardHeader-dff9c71a.js");require("./PlaceholderUserpic-3bf126ee.js");require("./globals-d7a54bb4.js");require("vue-i18n");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),f={__name:"ProfileBlogposts",setup(q){const t=a.useRoute(),i=a.useRouter();let c=t.query.tab?t.query.tab:"posts";const r=e.ref(c);return t.query.tab=r.value,e.watch(r,u=>{i.push({query:{...t.query,tab:u}})}),(u,o)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,s.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:o[0]||(o[0]=n=>u.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),s.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createBlock(d._sfc_main,{key:0,selected:r.value,"onUpdate:selected":o[1]||(o[1]=n=>r.value=n),tabs:[{name:"My posts",value:"posts"},{name:"Following",value:"following"}],class:"mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),r.value==="posts"?(e.openBlock(),e.createBlock(l._sfc_main,{key:1,user:s.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0),r.value==="following"?(e.openBlock(),e.createBlock(l._sfc_main,{key:2,user:s.state.user._id,category:"following"},null,8,["user"])):e.createCommentVNode("",!0)]))}};exports.default=f;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("vue-router"),i=require("./Tab-1ca0fe66.js"),c=require("./Feed-26bf6bef.js");require("./Field-ada86df2.js");require("./auth-50bd4ebb.js");require("./globals-d7a54bb4.js");require("vue-i18n");require("./EmptyState-23c13029.js");require("./HeaderBlogpost-8ec43cd0.js");const d={class:"pd-thin"},m={class:"mn-medium flex-v-center flex-nowrap flex"},p=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),b={__name:"ProfileBlogposts",setup(q){const r=n.useRoute(),a=n.useRouter();let l=r.query.tab?r.query.tab:"posts";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,o=>{a.push({query:{...r.query,tab:o}})}),(o,s)=>(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("header",m,[p,e.createElementVNode("button",{onClick:s[0]||(s[0]=u=>o.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"},"+")]),e.createVNode(i._sfc_main,{selected:t.value,"onUpdate:selected":s[1]||(s[1]=u=>t.value=u),tabs:[{name:"My posts",value:"posts"},{name:"Following",value:"hubs"}],class:"mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="posts"?(e.openBlock(),e.createBlock(c._sfc_main,{key:0,user:e.unref(r).params._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]))}};exports.default=b;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("vue-router"),d=require("./Tab-f04c185d.js"),l=require("./Feed-e8fb21ed.js"),s=require("./auth-ab40831d.js");require("./Field-a1770ccf.js");require("./EmptyState-23c13029.js");require("./CardHeader-e15eb618.js");require("./PlaceholderUserpic-52966e09.js");require("./globals-d7a54bb4.js");require("vue-i18n");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),f={__name:"ProfileBlogposts",setup(q){const t=a.useRoute(),i=a.useRouter();let c=t.query.tab?t.query.tab:"posts";const r=e.ref(c);return t.query.tab=r.value,e.watch(r,u=>{i.push({query:{...t.query,tab:u}})}),(u,o)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,s.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:o[0]||(o[0]=n=>u.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),s.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createBlock(d._sfc_main,{key:0,selected:r.value,"onUpdate:selected":o[1]||(o[1]=n=>r.value=n),tabs:[{name:"My posts",value:"posts"},{name:"Following",value:"following"}],class:"mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),r.value==="posts"?(e.openBlock(),e.createBlock(l._sfc_main,{key:1,user:s.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0),r.value==="following"?(e.openBlock(),e.createBlock(l._sfc_main,{key:2,user:s.state.user._id,category:"following"},null,8,["user"])):e.createCommentVNode("",!0)]))}};exports.default=f;
|
@@ -1,56 +0,0 @@
|
|
1
|
-
import { ref as f, watch as g, openBlock as r, createElementBlock as m, createElementVNode as d, unref as i, createCommentVNode as s, createBlock as n } from "vue";
|
2
|
-
import { useRoute as b, useRouter as y } from "vue-router";
|
3
|
-
import { _ as v } from "./Tab-054b61f7.mjs";
|
4
|
-
import { _ as p } from "./Feed-193dd1df.mjs";
|
5
|
-
import { s as a } from "./auth-d102dac0.mjs";
|
6
|
-
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
7
|
-
import "./EmptyState-1214f70b.mjs";
|
8
|
-
import "./CardHeader-e517c801.mjs";
|
9
|
-
import "./PlaceholderUserpic-3c1b9f7b.mjs";
|
10
|
-
import "./globals-f538c0ef.mjs";
|
11
|
-
import "vue-i18n";
|
12
|
-
const h = { class: "pd-thin" }, w = { class: "mn-medium flex-v-center flex-nowrap flex" }, k = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, "Posts", -1), M = {
|
13
|
-
__name: "ProfileBlogposts",
|
14
|
-
setup(q) {
|
15
|
-
const e = b(), c = y();
|
16
|
-
let _ = e.query.tab ? e.query.tab : "posts";
|
17
|
-
const t = f(_);
|
18
|
-
return e.query.tab = t.value, g(t, (u) => {
|
19
|
-
c.push({ query: { ...e.query, tab: u } });
|
20
|
-
}), (u, o) => (r(), m("div", h, [
|
21
|
-
d("header", w, [
|
22
|
-
k,
|
23
|
-
a.user._id === i(e).params._id ? (r(), m("button", {
|
24
|
-
key: 0,
|
25
|
-
onClick: o[0] || (o[0] = (l) => u.$router.push({
|
26
|
-
name: "Create BlogPost"
|
27
|
-
})),
|
28
|
-
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
29
|
-
}, " + ")) : s("", !0)
|
30
|
-
]),
|
31
|
-
a.user._id === i(e).params._id ? (r(), n(v, {
|
32
|
-
key: 0,
|
33
|
-
selected: t.value,
|
34
|
-
"onUpdate:selected": o[1] || (o[1] = (l) => t.value = l),
|
35
|
-
tabs: [
|
36
|
-
{ name: "My posts", value: "posts" },
|
37
|
-
{ name: "Following", value: "following" }
|
38
|
-
],
|
39
|
-
class: "mn-r-medium o-hidden h5 radius-big bg-grey"
|
40
|
-
}, null, 8, ["selected"])) : s("", !0),
|
41
|
-
t.value === "posts" ? (r(), n(p, {
|
42
|
-
key: 1,
|
43
|
-
user: a.user._id,
|
44
|
-
owner: i(e).params._id
|
45
|
-
}, null, 8, ["user", "owner"])) : s("", !0),
|
46
|
-
t.value === "following" ? (r(), n(p, {
|
47
|
-
key: 2,
|
48
|
-
user: a.user._id,
|
49
|
-
category: "following"
|
50
|
-
}, null, 8, ["user"])) : s("", !0)
|
51
|
-
]));
|
52
|
-
}
|
53
|
-
};
|
54
|
-
export {
|
55
|
-
M as default
|
56
|
-
};
|
@@ -1,46 +0,0 @@
|
|
1
|
-
import { ref as l, watch as p, openBlock as n, createElementBlock as c, createElementVNode as s, createVNode as d, createBlock as _, unref as u, createCommentVNode as f } from "vue";
|
2
|
-
import { useRoute as b, useRouter as h } from "vue-router";
|
3
|
-
import { _ as v } from "./Tab-fcb73759.mjs";
|
4
|
-
import { _ as g } from "./Feed-2f9a1922.mjs";
|
5
|
-
import "./Field-e839d9ca.mjs";
|
6
|
-
import "./auth-f81f3598.mjs";
|
7
|
-
import "./globals-f538c0ef.mjs";
|
8
|
-
import "vue-i18n";
|
9
|
-
import "./EmptyState-1214f70b.mjs";
|
10
|
-
import "./HeaderBlogpost-59dd9a6b.mjs";
|
11
|
-
const y = { class: "pd-thin" }, w = { class: "mn-medium flex-v-center flex-nowrap flex" }, k = /* @__PURE__ */ s("h2", { class: "mn-r-medium" }, "Posts", -1), F = {
|
12
|
-
__name: "ProfileBlogposts",
|
13
|
-
setup(q) {
|
14
|
-
const e = b(), i = h();
|
15
|
-
let m = e.query.tab ? e.query.tab : "posts";
|
16
|
-
const t = l(m);
|
17
|
-
return e.query.tab = t.value, p(t, (r) => {
|
18
|
-
i.push({ query: { ...e.query, tab: r } });
|
19
|
-
}), (r, o) => (n(), c("div", y, [
|
20
|
-
s("header", w, [
|
21
|
-
k,
|
22
|
-
s("button", {
|
23
|
-
onClick: o[0] || (o[0] = (a) => r.$router.push({ name: "Create BlogPost" })),
|
24
|
-
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
25
|
-
}, "+")
|
26
|
-
]),
|
27
|
-
d(v, {
|
28
|
-
selected: t.value,
|
29
|
-
"onUpdate:selected": o[1] || (o[1] = (a) => t.value = a),
|
30
|
-
tabs: [
|
31
|
-
{ name: "My posts", value: "posts" },
|
32
|
-
{ name: "Following", value: "hubs" }
|
33
|
-
],
|
34
|
-
class: "mn-r-medium o-hidden h5 radius-big bg-grey"
|
35
|
-
}, null, 8, ["selected"]),
|
36
|
-
t.value === "posts" ? (n(), _(g, {
|
37
|
-
key: 0,
|
38
|
-
user: u(e).params._id,
|
39
|
-
owner: u(e).params._id
|
40
|
-
}, null, 8, ["user", "owner"])) : f("", !0)
|
41
|
-
]));
|
42
|
-
}
|
43
|
-
};
|
44
|
-
export {
|
45
|
-
F as default
|
46
|
-
};
|
@@ -1,56 +0,0 @@
|
|
1
|
-
import { ref as f, watch as g, openBlock as r, createElementBlock as m, createElementVNode as d, unref as i, createCommentVNode as s, createBlock as n } from "vue";
|
2
|
-
import { useRoute as b, useRouter as y } from "vue-router";
|
3
|
-
import { _ as v } from "./Tab-054b61f7.mjs";
|
4
|
-
import { _ as p } from "./Feed-e5fb4972.mjs";
|
5
|
-
import { s as a } from "./auth-84680727.mjs";
|
6
|
-
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
7
|
-
import "./EmptyState-1214f70b.mjs";
|
8
|
-
import "./CardHeader-88de7b20.mjs";
|
9
|
-
import "./PlaceholderUserpic-4fe04ec9.mjs";
|
10
|
-
import "./globals-f538c0ef.mjs";
|
11
|
-
import "vue-i18n";
|
12
|
-
const h = { class: "pd-thin" }, w = { class: "mn-medium flex-v-center flex-nowrap flex" }, k = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, "Posts", -1), M = {
|
13
|
-
__name: "ProfileBlogposts",
|
14
|
-
setup(q) {
|
15
|
-
const e = b(), c = y();
|
16
|
-
let _ = e.query.tab ? e.query.tab : "posts";
|
17
|
-
const t = f(_);
|
18
|
-
return e.query.tab = t.value, g(t, (u) => {
|
19
|
-
c.push({ query: { ...e.query, tab: u } });
|
20
|
-
}), (u, o) => (r(), m("div", h, [
|
21
|
-
d("header", w, [
|
22
|
-
k,
|
23
|
-
a.user._id === i(e).params._id ? (r(), m("button", {
|
24
|
-
key: 0,
|
25
|
-
onClick: o[0] || (o[0] = (l) => u.$router.push({
|
26
|
-
name: "Create BlogPost"
|
27
|
-
})),
|
28
|
-
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
29
|
-
}, " + ")) : s("", !0)
|
30
|
-
]),
|
31
|
-
a.user._id === i(e).params._id ? (r(), n(v, {
|
32
|
-
key: 0,
|
33
|
-
selected: t.value,
|
34
|
-
"onUpdate:selected": o[1] || (o[1] = (l) => t.value = l),
|
35
|
-
tabs: [
|
36
|
-
{ name: "My posts", value: "posts" },
|
37
|
-
{ name: "Following", value: "following" }
|
38
|
-
],
|
39
|
-
class: "mn-r-medium o-hidden h5 radius-big bg-grey"
|
40
|
-
}, null, 8, ["selected"])) : s("", !0),
|
41
|
-
t.value === "posts" ? (r(), n(p, {
|
42
|
-
key: 1,
|
43
|
-
user: a.user._id,
|
44
|
-
owner: i(e).params._id
|
45
|
-
}, null, 8, ["user", "owner"])) : s("", !0),
|
46
|
-
t.value === "following" ? (r(), n(p, {
|
47
|
-
key: 2,
|
48
|
-
user: a.user._id,
|
49
|
-
category: "following"
|
50
|
-
}, null, 8, ["user"])) : s("", !0)
|
51
|
-
]));
|
52
|
-
}
|
53
|
-
};
|
54
|
-
export {
|
55
|
-
M as default
|
56
|
-
};
|