@ozdao/prometheus-framework 0.1.35 → 0.1.37
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-568b55bb.js +1 -0
- package/dist/BackofficeGallery-b4105137.mjs +306 -0
- package/dist/BlockTags-8cddaef7.js +1 -0
- package/dist/BlockTags-ee310572.mjs +853 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Button-7643c9aa.js +1 -0
- package/dist/Button-9e1a9284.mjs +226 -0
- package/dist/ButtonToggleMembership-15f149cb.js +1 -0
- package/dist/ButtonToggleMembership-3bb9139e.mjs +90 -0
- package/dist/CardBlogpost-38016b80.mjs +246 -0
- package/dist/CardBlogpost-cc208f93.js +1 -0
- package/dist/CardOrganization-d93c9bdb.js +1 -0
- package/dist/CardOrganization-e920be73.mjs +234 -0
- package/dist/CardProduct-92affca1.js +1 -0
- package/dist/CardProduct-fca53299.mjs +193 -0
- package/dist/Checkbox-5dbe7b23.mjs +62 -0
- package/dist/Checkbox-76f09248.js +1 -0
- package/dist/Chips-9d81b215.mjs +214 -0
- package/dist/Chips-d47704e6.js +1 -0
- package/dist/Community-87522a04.mjs +132 -0
- package/dist/Community-aef23aee.js +1 -0
- package/dist/Dashboard-91d73bc5.js +1 -0
- package/dist/Dashboard-ea9035bc.mjs +152 -0
- package/dist/Dropdown-31115457.js +1 -0
- package/dist/Dropdown-cab3605b.mjs +146 -0
- package/dist/EULA-aba6a807.js +1 -0
- package/dist/EditOrder-94bbebff.mjs +221 -0
- package/dist/EditOrder-c070d474.js +1 -0
- package/dist/EmptyState-d65bab5b.js +1 -0
- package/dist/EmptyState-e404b05d.mjs +36 -0
- package/dist/Events-cdfbca78.js +1 -0
- package/dist/Events-e9dd58f7.mjs +123 -0
- package/dist/Feed-22464fcd.js +1 -0
- package/dist/Feed-6e96d3dd.mjs +124 -0
- package/dist/Feed-793b3eef.mjs +146 -0
- package/dist/Feed-7b80704d.mjs +361 -0
- package/dist/Feed-98b47c6f.js +1 -0
- package/dist/Feed-b30ef609.js +1 -0
- package/dist/Feed-c5d4390a.js +1 -0
- package/dist/Feed-d114330c.mjs +112 -0
- package/dist/Field-e2a43424.js +1 -0
- package/dist/Field-e5ad88d3.mjs +75 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
- package/dist/IconChevronRight-a55f838e.js +1 -0
- package/dist/IconChevronRight-fae9d012.mjs +28 -0
- package/dist/IconCommunity-468dc457.mjs +65 -0
- package/dist/IconCommunity-b339e806.js +1 -0
- package/dist/IconCross-5bf93179.js +1 -0
- package/dist/IconCross-84cb1292.mjs +28 -0
- package/dist/IconEdit-9edfd74d.mjs +21 -0
- package/dist/IconEdit-c0469b45.js +1 -0
- package/dist/Image-245c003d.mjs +480 -0
- package/dist/Image-35d31936.js +9 -0
- package/dist/LabelGooglePlay-24feb437.mjs +31 -0
- package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
- package/dist/LeftoverAdd-08d9fb54.mjs +228 -0
- package/dist/LeftoverAdd-fc673884.js +1 -0
- package/dist/Leftovers-296c0042.js +1 -0
- package/dist/Leftovers-685d9f19.mjs +136 -0
- package/dist/Loader-21f016da.js +1 -0
- package/dist/Loader-cd422786.mjs +41 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Members-2cb2ff58.mjs +114 -0
- package/dist/Members-85534d1f.js +1 -0
- package/dist/Menu-b5d6a0c7.js +1 -0
- package/dist/Menu-dd7645c1.mjs +13 -0
- package/dist/MenuItem-56ae7f94.js +1 -0
- package/dist/MenuItem-6296d02f.mjs +63 -0
- package/dist/Orders-b64e8cb9.js +1 -0
- package/dist/Orders-ff30db05.mjs +75 -0
- package/dist/Organizations-0cb37d68.js +1 -0
- package/dist/Organizations-d6ef2113.mjs +73 -0
- package/dist/Payments-53e5fecf.js +1 -0
- package/dist/Payments-82e545e1.mjs +87 -0
- package/dist/PlaceholderUserpic-47f6f319.js +1 -0
- package/dist/Popup-0915427c.mjs +74 -0
- package/dist/Popup-795f5c88.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Product-5994a8c9.mjs +653 -0
- package/dist/Product-68fa1e9e.js +7 -0
- package/dist/ProductEdit-64207814.mjs +296 -0
- package/dist/ProductEdit-a434240f.js +1 -0
- package/dist/ProductsBackoffice-0c93f9b6.js +1 -0
- package/dist/ProductsBackoffice-3d987c60.mjs +86 -0
- package/dist/ProfileBlogposts-0b81d964.js +1 -0
- package/dist/ProfileBlogposts-b59992cf.mjs +79 -0
- package/dist/ProfileEvents-3f7ca2c1.js +1 -0
- package/dist/ProfileEvents-bbdd62e7.mjs +70 -0
- package/dist/ProfileOrganizations-4734c02e.mjs +73 -0
- package/dist/ProfileOrganizations-d55ee487.js +1 -0
- package/dist/Publics-0762210a.js +1 -0
- package/dist/Publics-660e851c.mjs +45 -0
- package/dist/SelectMulti-58704d69.mjs +1038 -0
- package/dist/SelectMulti-c25765cf.js +1 -0
- package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
- package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
- package/dist/SkeletonEvent-8690422d.mjs +16 -0
- package/dist/SkeletonEvent-eb284de8.js +1 -0
- package/dist/SkeletonEventShort-6c9e3940.js +1 -0
- package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
- package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
- package/dist/SkeletonOrganization-8690422d.mjs +16 -0
- package/dist/Socials-31c06635.mjs +74 -0
- package/dist/Socials-cceaeaf2.js +1 -0
- package/dist/Tab-054b61f7.mjs +46 -0
- package/dist/Tab-2c1e4224.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/addMembersQuantity-7147aa4a.js +89 -0
- package/dist/addMembersQuantity-eac999f0.mjs +90 -0
- package/dist/auth-06d35b82.js +7 -0
- package/dist/auth-ec618cb3.mjs +627 -0
- package/dist/auth.client.cjs +7 -7
- package/dist/auth.client.js +22 -19
- package/dist/auth.server.js +7 -7
- package/dist/auth.server.mjs +7 -7
- package/dist/auth.validation-0ce9e326.js +1 -0
- package/dist/auth.validation-ba3606bf.mjs +24 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +235 -59
- package/dist/categories-82b28618.js +1 -0
- package/dist/categories-df3240a7.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +233 -227
- package/dist/community.server.js +223 -195
- package/dist/community.server.mjs +223 -195
- package/dist/components/Field/Field.vue.d.ts +58 -2
- package/dist/components/Field/Field.vue.d.ts.map +1 -1
- package/dist/components/UploadImage/UploadImage.vue.d.ts +1 -1
- package/dist/dribbble-8e8e169b.js +1 -0
- package/dist/dribbble-ae37c2ac.mjs +127 -0
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +1793 -1888
- package/dist/events.server.js +106 -216
- package/dist/events.server.mjs +106 -216
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/icons.client.cjs +1 -0
- package/dist/icons.client.js +84 -0
- package/dist/inputs.validation-d7cef32b.js +1 -0
- package/dist/inputs.validation-db65277a.mjs +83 -0
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +40 -64
- package/dist/leftovers-66951de6.js +1 -0
- package/dist/leftovers-be37c7a5.mjs +67 -0
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +7 -4
- package/dist/mailing-76895d59.mjs +50 -0
- package/dist/mailing-9659b3c4.js +49 -0
- package/dist/main.css +1 -1
- package/dist/memberships-12210953.mjs +68 -0
- package/dist/memberships-393765d8.js +1 -0
- package/dist/metadata.schema-147f9902.mjs +212 -0
- package/dist/metadata.schema-93397f9f.js +211 -0
- package/dist/metadata.schema-a539dd65.mjs +210 -0
- package/dist/metadata.schema-e4fe5c57.js +209 -0
- package/dist/modules/community/components/blocks/FooterBlogpost.vue.d.ts +1 -1
- package/dist/modules/community/components/sections/Feed.vue.d.ts +4 -3
- package/dist/modules/events/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/events/components/sections/List.vue.d.ts +3 -3
- package/dist/modules/globals/components/blocks/CardFooter.vue.d.ts +8 -0
- package/dist/modules/globals/components/blocks/CardHeader.vue.d.ts +15 -0
- package/dist/modules/globals/components/sections/Feed.vue.d.ts +69 -0
- package/dist/modules/orders/components/pages/EditOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Favorites.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/History.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Orders.vue.d.ts +2 -0
- package/dist/modules/orders/components/pages/ViewOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/sections/Form.vue.d.ts +1 -0
- package/dist/modules/organizations/components/blocks/CardDepartment.vue.d.ts +7 -0
- package/dist/modules/organizations/components/blocks/User.vue.d.ts +1 -1
- package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +1 -1
- package/dist/modules/organizations/components/pages/Members.vue.d.ts +2 -0
- package/dist/modules/organizations/components/sections/Department2.vue.d.ts +7 -0
- package/dist/modules/organizations/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/organizations/components/sections/FeedDepartments.vue.d.ts +8 -0
- package/dist/modules/payments/components/pages/Payments.vue.d.ts +2 -0
- package/dist/modules/products/components/blocks/CardLeftover.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/CardPosition.vue.d.ts +11 -0
- package/dist/modules/products/components/blocks/CardProduct.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/LeftoverPositions.vue.d.ts +0 -1
- package/dist/modules/products/components/pages/ProductsBackoffice.vue.d.ts +2 -0
- package/dist/modules/products/components/sections/FilterProducts.vue.d.ts +9 -0
- package/dist/modules/products/components/sections/SortProducts.vue.d.ts +10 -0
- package/dist/modules/reports/components/sections/FormReport.vue.d.ts +3 -3
- package/dist/modules/spots/components/blocks/CardSpot.vue.d.ts +7 -0
- package/dist/modules/spots/components/blocks/SpotMemberModify.vue.d.ts +11 -0
- package/dist/modules/spots/components/blocks/SpotSub.vue.d.ts +6 -0
- package/dist/modules/spots/components/pages/Spot.vue.d.ts +7 -0
- package/dist/modules/spots/components/pages/SpotEdit.vue.d.ts +2 -0
- package/dist/modules/spots/components/sections/Feed.vue.d.ts +8 -0
- package/dist/modules/spots/components/sections/PlaceModify.vue.d.ts +9 -0
- package/dist/modules/spots/components/sections/Places.vue.d.ts +9 -0
- package/dist/modules/wallet/components/pages/Wallet.vue.d.ts +2 -0
- package/dist/orders-13c10d49.mjs +85 -0
- package/dist/orders-37f041aa.js +1 -0
- package/dist/organizations-4d18a2e2.js +1 -0
- package/dist/organizations-6ed907e3.mjs +122 -0
- package/dist/organizations.client-01593e4d.js +3 -0
- package/dist/organizations.client-1b9fa66e.mjs +2997 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +75 -51
- package/dist/organizations.server.js +9 -20
- package/dist/organizations.server.mjs +9 -20
- package/dist/products-7960bbd4.js +1 -0
- package/dist/products-bf5783aa.mjs +108 -0
- package/dist/prometheus-framework.cjs.js +17 -17
- package/dist/prometheus-framework.es.js +771 -758
- package/dist/states.validation-03f7cd49.js +1 -0
- package/dist/states.validation-50e3a5a0.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +214 -258
- package/dist/users.server.js +1 -1
- package/dist/users.server.mjs +1 -1
- package/package.json +2 -119
- package/src/components/Field/Field.vue +34 -9
- package/src/components/SelectMulti/SelectMulti.vue +18 -22
- package/src/modules/auth/routes/auth.routes.js +9 -6
- package/src/modules/auth/store/auth.js +34 -15
- package/src/modules/backoffice/components/pages/Dashboard.vue +91 -0
- package/src/modules/backoffice/router/admin.js +0 -28
- package/src/modules/backoffice/router/backoffice.js +131 -4
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/pages/Blog.vue +1 -0
- package/src/modules/community/components/sections/Comments.vue +1 -1
- package/src/modules/community/components/sections/Feed.vue +6 -0
- package/src/modules/community/controllers/blog.controller.js +129 -285
- package/src/modules/community/controllers/reactions.controller.js +2 -0
- package/src/modules/community/controllers/utils/queryProcessor.js +56 -0
- package/src/modules/community/controllers/utils/queryProcessorReactions.js +63 -0
- package/src/modules/community/routes/blog.routes.js +10 -6
- package/src/modules/community/store/blogposts.js +5 -5
- package/src/modules/events/components/blocks/CardEvent.vue +2 -3
- package/src/modules/events/components/pages/Events.vue +4 -4
- package/src/modules/events/components/sections/Feed.vue +4 -4
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/events/controllers/events.controller.js +8 -6
- package/src/modules/events/controllers/utils/queryProcessor.js +111 -1
- package/src/modules/events/models/event.model.js +0 -4
- package/src/modules/events/routes/events.routes.js +9 -6
- package/src/modules/events/store/events.js +5 -7
- package/src/{components/CardHeader → modules/globals/components/blocks}/CardHeader.vue +31 -4
- package/src/modules/globals/components/sections/Feed.vue +136 -0
- package/src/modules/globals/controllers/utils/queryProcessor.js +19 -117
- package/src/modules/globals/models/engagement.schema.js +29 -25
- package/src/modules/globals/utils/mailing.js +1 -1
- package/src/modules/icons/icons.client.js +51 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/marketplace/components/pages/Catalog.vue +3 -4
- package/src/modules/marketplace/router/marketplace.js +0 -11
- package/src/modules/middlewares/client/auth.validation.js +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -2
- package/src/modules/orders/components/pages/EditOrder.vue +238 -0
- package/src/modules/{backoffice → orders}/components/pages/Favorites.vue +2 -2
- package/src/modules/orders/components/pages/Order.vue +28 -34
- package/src/modules/orders/components/pages/Orders.vue +90 -0
- package/src/modules/{backoffice/components/pages/History.vue → orders/components/pages/ViewOrder.vue} +0 -8
- package/src/modules/orders/components/sections/Form.vue +52 -34
- package/src/modules/orders/controllers/orders.controller.js +102 -72
- package/src/modules/orders/models/order.model.js +30 -22
- package/src/modules/orders/router/orders.router.js +30 -0
- package/src/modules/orders/routes/orders.routes.js +23 -13
- package/src/modules/orders/store/orders.js +67 -40
- package/src/modules/organizations/components/{sections/Department.vue → blocks/CardDepartment.vue} +1 -10
- package/src/modules/organizations/components/blocks/CardOrganization.vue +13 -9
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +3 -3
- package/src/modules/organizations/components/{sections/MembersTab.vue → pages/Members.vue} +23 -8
- package/src/modules/organizations/components/pages/Organization.vue +80 -46
- package/src/modules/organizations/components/pages/Organizations.vue +45 -90
- package/src/modules/organizations/components/sections/{StructureTab.vue → FeedDepartments.vue} +5 -5
- package/src/modules/organizations/components/sections/Organizations.vue +1 -2
- package/src/modules/organizations/components/sections/Publics.vue +3 -2
- package/src/modules/organizations/controllers/organizations.controller.js +8 -21
- package/src/modules/organizations/controllers/organizations.new.controller.js +372 -0
- package/src/modules/organizations/controllers/utils/addUserStatusFields.js +53 -48
- package/src/modules/organizations/controllers/utils/queryProcessor.js +87 -0
- package/src/modules/organizations/controllers/utils/queryProcessorOrganizations.js +25 -0
- package/src/modules/organizations/organizations.client.js +42 -46
- package/src/modules/organizations/router/departments.router.js +29 -0
- package/src/modules/organizations/router/members.router.js +19 -0
- package/src/modules/organizations/router/organizations.js +12 -88
- package/src/modules/organizations/router/organizations.router.js +38 -0
- package/src/modules/organizations/router/products.router.js +24 -0
- package/src/modules/organizations/store/departments.js +108 -0
- package/src/modules/{backoffice/components/admin/Orders.vue → payments/components/pages/Payments.vue} +0 -15
- package/src/modules/products/components/blocks/{Leftover.vue → CardLeftover.vue} +21 -12
- package/src/modules/products/components/blocks/CardPosition.vue +84 -0
- package/src/modules/products/components/blocks/LeftoverPositions.vue +65 -136
- package/src/modules/products/components/pages/LeftoverAdd.vue +133 -88
- package/src/modules/products/components/pages/Leftovers.vue +91 -64
- package/src/modules/products/components/pages/Product.vue +3 -3
- package/src/modules/products/components/pages/Products.vue +42 -263
- package/src/modules/products/components/pages/ProductsBackoffice.vue +92 -0
- package/src/modules/products/components/sections/FilterProducts.vue +180 -0
- package/src/modules/products/components/sections/PopularProducts.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +18 -3
- package/src/modules/products/components/sections/SortProducts.vue +76 -0
- package/src/modules/products/controllers/leftovers.controller.js +51 -45
- package/src/modules/products/controllers/modifications.controller.js +66 -0
- package/src/modules/products/controllers/products.controller.js +67 -111
- package/src/modules/products/models/leftover.model.js +12 -9
- package/src/modules/products/models/product.model.js +1 -0
- package/src/modules/products/router/products.router.js +46 -0
- package/src/modules/products/routes/products.routes.js +4 -9
- package/src/modules/products/store/leftovers.js +56 -59
- package/src/modules/products/store/products.js +21 -22
- package/src/modules/spots/components/blocks/CardSpot.vue +104 -0
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +92 -0
- package/src/modules/spots/components/blocks/SpotSub.vue +24 -0
- package/src/modules/spots/components/pages/Map.vue +2 -2
- package/src/modules/spots/components/pages/Spot.vue +107 -0
- package/src/modules/spots/components/pages/SpotEdit.vue +319 -0
- package/src/modules/spots/components/sections/Feed.vue +64 -0
- package/src/modules/spots/controllers/spots.controller.js +83 -0
- package/src/modules/spots/models/spot.model.js +72 -0
- package/src/modules/spots/router/spots.js +34 -1
- package/src/modules/spots/routes/spots.routes.js +31 -0
- package/src/modules/spots/store/spots.js +15 -15
- package/src/modules/users/components/pages/Profile.vue +2 -3
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/styles/components/block.scss +2 -4
- package/src/modules/backoffice/components/admin/LeftoverAdd.vue +0 -157
- package/src/modules/backoffice/components/admin/Leftovers.vue +0 -119
- package/src/modules/backoffice/components/admin/Order.vue +0 -199
- package/src/modules/backoffice/components/admin/Product.vue +0 -28
- package/src/modules/backoffice/components/admin/Products.vue +0 -82
- package/src/modules/backoffice/components/pages/Organizations.vue +0 -104
- package/src/modules/community/controllers/blog.new.controller.js +0 -290
- package/src/modules/organizations/components/blocks/DepartmentSubDepartmentModify.vue +0 -92
- package/src/modules/organizations/components/elements/ButtonFollow.vue +0 -84
- package/src/modules/organizations/components/pages/OrganizationsAccount.vue +0 -110
- package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +0 -18
- /package/src/{components/CardFooter → modules/globals/components/blocks}/CardFooter.vue +0 -0
- /package/src/modules/{orders/controllers → payments/controller}/payments.controller.js +0 -0
- /package/src/modules/{orders → payments}/routes/payments.routes.js +0 -0
- /package/src/modules/{orders → payments}/store/payments.js +0 -0
- /package/src/modules/products/components/blocks/{ProductCard.vue → CardProduct.vue} +0 -0
- /package/src/modules/{organizations → spots}/components/sections/PlaceModify.vue +0 -0
- /package/src/modules/{organizations → spots}/components/sections/Places.vue +0 -0
- /package/src/modules/{backoffice → wallet}/components/pages/Wallet.vue +0 -0
@@ -2,14 +2,11 @@
|
|
2
2
|
import { reactive, ref, computed, toRefs, watch } from "vue";
|
3
3
|
// Axios
|
4
4
|
import axios from 'axios';
|
5
|
-
|
6
|
-
const $axios = axios.create({baseURL:
|
5
|
+
// Setup Axios
|
6
|
+
const $axios = axios.create({baseURL: process.env.API_URL, withCredentials: true})
|
7
7
|
// Globals
|
8
8
|
import { setError } from '@pf/src/modules/globals/store/globals'
|
9
9
|
|
10
|
-
// ////////
|
11
|
-
// State
|
12
|
-
// ////////
|
13
10
|
const state = reactive({
|
14
11
|
all: [],
|
15
12
|
current: {
|
@@ -41,43 +38,77 @@ const state = reactive({
|
|
41
38
|
}
|
42
39
|
});
|
43
40
|
|
44
|
-
// ////////
|
45
|
-
// Actions
|
46
|
-
// ////////
|
47
|
-
|
48
41
|
const actions = {
|
49
|
-
async
|
50
|
-
|
51
|
-
.
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
42
|
+
async create(order) {
|
43
|
+
try {
|
44
|
+
state.current.items = order
|
45
|
+
|
46
|
+
console.log(state.current)
|
47
|
+
const response = await $axios.post('/api/orders/create', state.current);
|
48
|
+
|
49
|
+
console.log(response)
|
50
|
+
state.all.push(response.data);
|
51
|
+
} catch (error) {
|
52
|
+
setError(error);
|
53
|
+
}
|
54
|
+
},
|
55
|
+
|
56
|
+
async read(orderID) {
|
57
|
+
try {
|
58
|
+
const response = await $axios.get(`/api/orders/read`);
|
59
|
+
console.log(response)
|
60
|
+
state.all = response.data;
|
61
|
+
} catch (error) {
|
62
|
+
setError(error);
|
63
|
+
}
|
64
|
+
},
|
65
|
+
|
66
|
+
async update(orderID, order) {
|
67
|
+
try {
|
68
|
+
const response = await $axios.post(`/api/orders/${orderID}`, order);
|
69
|
+
const index = state.all.findIndex(o => o._id === orderID);
|
70
|
+
if (index !== -1) {
|
71
|
+
state.all[index] = response.data;
|
72
|
+
}
|
73
|
+
} catch (error) {
|
74
|
+
setError(error);
|
75
|
+
}
|
58
76
|
},
|
59
77
|
|
60
|
-
async
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
});
|
78
|
+
async confirm(orderID) {
|
79
|
+
try {
|
80
|
+
const response = await $axios.post(`/api/orders/confirm/${orderID}`);
|
81
|
+
const index = state.all.findIndex(o => o._id === orderID);
|
82
|
+
if (index !== -1) {
|
83
|
+
state.all[index] = response.data;
|
84
|
+
}
|
85
|
+
} catch (error) {
|
86
|
+
setError(error);
|
87
|
+
}
|
88
|
+
},
|
89
|
+
|
90
|
+
async changePaymentStatus(orderID, status) {
|
91
|
+
try {
|
92
|
+
const response = await $axios.post(`/api/orders/payment/${orderID}`, { status });
|
93
|
+
const index = state.all.findIndex(o => o._id === orderID);
|
94
|
+
if (index !== -1) {
|
95
|
+
state.all[index] = response.data;
|
96
|
+
}
|
97
|
+
} catch (error) {
|
98
|
+
setError(error);
|
99
|
+
}
|
100
|
+
},
|
101
|
+
|
102
|
+
async delete(orderID) {
|
103
|
+
try {
|
104
|
+
await $axios.delete(`/api/orders/${orderID}`);
|
105
|
+
state.all = state.all.filter(o => o._id !== orderID);
|
106
|
+
} catch (error) {
|
107
|
+
setError(error);
|
108
|
+
}
|
75
109
|
},
|
76
110
|
}
|
77
111
|
|
78
|
-
// ////////
|
79
|
-
// History
|
80
|
-
// ////////
|
81
112
|
|
82
113
|
const history = []
|
83
114
|
|
@@ -87,10 +118,6 @@ watch(state, (newState, oldState) => {
|
|
87
118
|
history.push(newState)
|
88
119
|
})
|
89
120
|
|
90
|
-
// ////////
|
91
|
-
// Export
|
92
|
-
// ////////
|
93
|
-
|
94
121
|
export {
|
95
122
|
state,
|
96
123
|
actions
|
package/src/modules/organizations/components/{sections/Department.vue → blocks/CardDepartment.vue}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="radius-big o-hidden cols-2-1_3">
|
3
|
-
<Map :location="{lat: department.location.coordinates[1] ,lng: department.location.coordinates[0]}" class=""/>
|
3
|
+
<!-- <Map :location="{lat: department.location.coordinates[1] ,lng: department.location.coordinates[0]}" class=""/> -->
|
4
4
|
|
5
5
|
<div class="pd-medium w-100">
|
6
6
|
<svg @click="$router.push(`/app/organization/${props.organization._id}/departments/${department._id}/edit`)" class="i-regular pos-absolute pos-r-0 pos-t-0 t-transp" width="652" height="652" viewBox="0 0 652 652" fill="none" xmlns="http://www.w3.org/2000/svg">
|
@@ -12,14 +12,6 @@
|
|
12
12
|
class="mn-small w-100"
|
13
13
|
v-html="department.profile.name"
|
14
14
|
/>
|
15
|
-
|
16
|
-
<p
|
17
|
-
@click="$router.push(`/app/organization/${props.organization._id}/departments/${department._id}`)"
|
18
|
-
class="mn-small p-big w-100"
|
19
|
-
v-html="department.address"
|
20
|
-
/>
|
21
|
-
|
22
|
-
|
23
15
|
|
24
16
|
<Spoiler
|
25
17
|
class="
|
@@ -90,7 +82,6 @@ import { ref } from 'vue';
|
|
90
82
|
import Spoiler from '@pf/src/components/Spoiler/Spoiler.vue';
|
91
83
|
import Map from '@pf/src/components/Map/Map.vue';
|
92
84
|
|
93
|
-
|
94
85
|
import DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';
|
95
86
|
import User from '@pf/src/modules/organizations/components/blocks/User.vue';
|
96
87
|
|
@@ -37,15 +37,19 @@
|
|
37
37
|
|
38
38
|
<div>
|
39
39
|
<p class="mn-thin ">{{organization.numberOfSubscribers}} followers</p>
|
40
|
-
|
41
|
-
|
42
|
-
|
40
|
+
<ButtonToggleMembership
|
41
|
+
v-if="
|
42
|
+
user?._id
|
43
|
+
&& organization.owner !== user._id
|
44
|
+
"
|
45
|
+
:user="user._id"
|
43
46
|
:type="'organization'"
|
44
|
-
:
|
45
|
-
:
|
46
|
-
:
|
47
|
-
|
48
|
-
@updateMembership="
|
47
|
+
:role="'subscriber'"
|
48
|
+
:target="organization._id"
|
49
|
+
:status="organization.isSubscriber"
|
50
|
+
:text="{create: 'Follow', remove: 'Unfollow'}"
|
51
|
+
@updateMembership="event => handleMembershipUpdate(event, 'isSubscriber', 'numberOfSubscribers')"
|
52
|
+
class="w-min"
|
49
53
|
/>
|
50
54
|
|
51
55
|
</div>
|
@@ -84,7 +88,7 @@
|
|
84
88
|
|
85
89
|
import Text from '@pf/src/components/Text/Text.vue'
|
86
90
|
|
87
|
-
import
|
91
|
+
import ButtonToggleMembership from '@pf/src/modules/organizations/components/elements/ButtonToggleMembership.vue'
|
88
92
|
|
89
93
|
const props = defineProps({
|
90
94
|
user: String,
|
@@ -107,7 +107,7 @@
|
|
107
107
|
<div class="bg-grey pd-medium o-hidden radius-big">
|
108
108
|
<h3 class="mn-semi">Location</h3>
|
109
109
|
<Address
|
110
|
-
apiKey="
|
110
|
+
:apiKey="GOOGLE_MAPS_API_KEY"
|
111
111
|
:address="departments.state.department.address"
|
112
112
|
:location="departments.state.department.location"
|
113
113
|
label="Address"
|
@@ -128,7 +128,7 @@
|
|
128
128
|
<LocationMarker
|
129
129
|
:address="departments.state.department.address"
|
130
130
|
:location="departments.state.department.location"
|
131
|
-
apiKey="
|
131
|
+
:apiKey="GOOGLE_MAPS_API_KEY"
|
132
132
|
class="radius-big o-hidden"
|
133
133
|
@update:location="newLocation => {
|
134
134
|
departments.state.department.location = newLocation;
|
@@ -232,7 +232,7 @@ import Popup from "@pf/src/components/Popup/Popup.vue";
|
|
232
232
|
import EditArray from "@pf/src/modules/organizations/components/blocks/EditArray.vue";
|
233
233
|
import DepartmentSub from "@pf/src/modules/organizations/components/blocks/DepartmentSub.vue";
|
234
234
|
import DepartmentMemberModify from "@pf/src/modules/organizations/components/blocks/DepartmentMemberModify.vue";
|
235
|
-
import DepartmentSubDepartmentModify from "@pf/src/modules/organizations/components/blocks/
|
235
|
+
import DepartmentSubDepartmentModify from "@pf/src/modules/organizations/components/blocks/DepartmentMemberModify.vue";
|
236
236
|
import User from '@pf/src/modules/organizations/components/blocks/User.vue';
|
237
237
|
|
238
238
|
import * as departments from "@pf/src/modules/spots/store/spots";
|
@@ -6,8 +6,13 @@
|
|
6
6
|
<p class="t-transp p-big">Добавляйте новых участников организации и настраивайте права доступа.</p>
|
7
7
|
</section>
|
8
8
|
|
9
|
+
<MenuItem @click="router.push({name: 'User Events', params: {_id: route.params._id}})" class="cursor-pointer">
|
10
|
+
<IconEvents class="i-semi" :icon="true"/>
|
11
|
+
<span>Departments</span>
|
12
|
+
</MenuItem>
|
13
|
+
|
9
14
|
<MembersAdd
|
10
|
-
:organization="
|
15
|
+
:organization="organizationData"
|
11
16
|
@send-invite="handleSendInvite"
|
12
17
|
/>
|
13
18
|
|
@@ -23,21 +28,31 @@
|
|
23
28
|
</template>
|
24
29
|
|
25
30
|
<script setup>
|
26
|
-
import { ref } from 'vue';
|
31
|
+
import { ref,onMounted } from 'vue';
|
32
|
+
import { useRoute, useRouter } from 'vue-router'
|
27
33
|
import MembersAdd from '@pf/src/modules/organizations/components/sections/MembersAdd.vue';
|
28
34
|
import MembersList from '@pf/src/modules/organizations/components/sections/MembersList.vue';
|
35
|
+
// Mobile Module
|
36
|
+
import Menu from '@pf/src/modules/mobile/components/Menu/Menu.vue'
|
37
|
+
import MenuItem from '@pf/src/modules/mobile/components/Menu/MenuItem.vue'
|
38
|
+
|
39
|
+
import * as auth from '@pf/src/modules/auth/store/auth'
|
29
40
|
import * as invites from '@pf/src/modules/organizations/store/invites';
|
30
41
|
import * as members from '@pf/src/modules/organizations/store/memberships';
|
42
|
+
import * as organization from '@pf/src/modules/organizations/store/organizations'
|
43
|
+
|
44
|
+
const route = useRoute()
|
31
45
|
|
32
|
-
const
|
33
|
-
organization: Object,
|
34
|
-
memberships: Array
|
35
|
-
});
|
46
|
+
const organizationData = ref(null)
|
36
47
|
|
37
|
-
|
48
|
+
onMounted(async () => {
|
49
|
+
organizationData.value = (await organization.actions.read({_id: route.params._id, user: auth.state.user._id}))[0]
|
50
|
+
await members.actions.read(route.params._id)
|
51
|
+
await invites.actions.read(organizationData.value._id);
|
52
|
+
})
|
38
53
|
|
39
54
|
async function handleSendInvite(invite) {
|
40
|
-
await invites.actions.create(
|
55
|
+
await invites.actions.create(organizationData.value._id, invite);
|
41
56
|
}
|
42
57
|
|
43
58
|
async function removeMember(member) {
|
@@ -1,10 +1,7 @@
|
|
1
1
|
<template>
|
2
2
|
<div v-if="organizationData" class="pd-thin for-transition w-100">
|
3
3
|
|
4
|
-
<!-- <
|
5
|
-
<Breadcrumbs class="pd-medium bg-grey radius-big"/>
|
6
|
-
</div> -->
|
7
|
-
|
4
|
+
<!-- <Breadcrumbs class="mn-thin pd-medium bg-grey radius-big"/> -->
|
8
5
|
<!-- <pre>{{organization.state.current}}</pre> -->
|
9
6
|
|
10
7
|
<DetailsTab
|
@@ -13,55 +10,88 @@
|
|
13
10
|
class="mn-semi"
|
14
11
|
/>
|
15
12
|
|
16
|
-
|
17
|
-
|
13
|
+
<section
|
14
|
+
@click="router.push({
|
15
|
+
name: 'Organization Members',
|
16
|
+
params: {
|
17
|
+
_id: route.params._id
|
18
|
+
}
|
19
|
+
})"
|
20
|
+
class="
|
21
|
+
mn-semi
|
22
|
+
bg-grey
|
23
|
+
radius-big
|
24
|
+
pd-medium
|
25
|
+
"
|
26
|
+
>
|
27
|
+
<p>34 members</p>
|
28
|
+
</section>
|
29
|
+
|
30
|
+
<!-- <Menu class="mn-semi bg-grey">
|
31
|
+
<MenuItem @click="router.push({name: 'User Blogposts', params: {_id: route.params._id}})" class="cursor-pointer">
|
32
|
+
<IconCommunity class="i-semi" :icon="true"/>
|
33
|
+
<span>Legal</span>
|
34
|
+
</MenuItem>
|
35
|
+
</Menu> -->
|
36
|
+
|
37
|
+
<!-- <FeedDepartments
|
38
|
+
:organization="organization.state.current"
|
39
|
+
:memberships="memberships.state.memberships"
|
40
|
+
/>
|
41
|
+
|
42
|
+
<Members
|
43
|
+
:organization="organization.state.current"
|
44
|
+
:memberships="memberships.state.memberships"
|
45
|
+
/> -->
|
18
46
|
|
19
47
|
<Tab
|
20
48
|
v-model:selected="tabOrganization"
|
21
49
|
:tabs="[
|
50
|
+
|
51
|
+
{ name: 'Community', value: 'community' },
|
52
|
+
{ name: 'Products', value: 'products' },
|
22
53
|
{ name: 'Events', value: 'events' },
|
23
|
-
{ name: '
|
54
|
+
{ name: 'Spots', value: 'spots' }
|
24
55
|
]"
|
25
56
|
class="mn-small o-hidden h5 radius-big bg-grey"
|
26
57
|
/>
|
58
|
+
|
59
|
+
<div class="pos-relative">
|
60
|
+
|
61
|
+
<transition name="slide-fade">
|
62
|
+
<FeedCommunity
|
63
|
+
v-if="tabOrganization === 'community'"
|
64
|
+
:user="auth.state.user._id"
|
65
|
+
:owner="route.params._id"
|
66
|
+
/>
|
67
|
+
</transition>
|
68
|
+
|
27
69
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
/>
|
35
|
-
</transition>
|
36
|
-
|
37
|
-
|
38
|
-
<transition name="slide-fade">
|
39
|
-
<FeedCommunity
|
40
|
-
v-if="tabOrganization === 'community'"
|
41
|
-
:user="auth.state.user._id"
|
42
|
-
:owner="route.params._id"
|
43
|
-
/>
|
44
|
-
</transition>
|
45
|
-
|
46
|
-
|
47
|
-
<!-- <transition name="slide-fade">
|
48
|
-
<div v-if="tabOrganization === 'spots'">
|
49
|
-
<StructureTab
|
50
|
-
|
51
|
-
:organization="organization.state.current"
|
52
|
-
:memberships="memberships.state.memberships"
|
70
|
+
<transition name="slide-fade">
|
71
|
+
<FeedEvents
|
72
|
+
v-if="tabOrganization === 'events'"
|
73
|
+
:user="auth.state.user._id"
|
74
|
+
:owner="route.params._id"
|
75
|
+
:sortOrder="'asc'"
|
53
76
|
/>
|
54
|
-
</
|
55
|
-
</transition>
|
56
|
-
|
57
|
-
<transition name="slide-fade">
|
58
|
-
<Products
|
59
|
-
v-if="tabOrganization === 'products'"
|
60
|
-
:organization="organization.state.current"
|
61
|
-
/>
|
62
|
-
</transition> -->
|
63
|
-
|
77
|
+
</transition>
|
64
78
|
|
79
|
+
<transition name="slide-fade">
|
80
|
+
<Products
|
81
|
+
v-if="tabOrganization === 'products'"
|
82
|
+
:organization="organization.state.current"
|
83
|
+
/>
|
84
|
+
</transition>
|
85
|
+
|
86
|
+
<transition name="slide-fade">
|
87
|
+
<div v-if="tabOrganization === 'spots'">
|
88
|
+
<FeedSpots
|
89
|
+
:organization="organization.state.current"
|
90
|
+
:memberships="memberships.state.memberships"
|
91
|
+
/>
|
92
|
+
</div>
|
93
|
+
</transition>
|
94
|
+
</div>
|
65
95
|
</div>
|
66
96
|
</template>
|
67
97
|
|
@@ -71,16 +101,20 @@
|
|
71
101
|
// Import components
|
72
102
|
import Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'
|
73
103
|
import Tab from '@pf/src/components/Tab/Tab.vue'
|
74
|
-
|
104
|
+
// Mobile Module
|
105
|
+
import Menu from '@pf/src/modules/mobile/components/Menu/Menu.vue'
|
106
|
+
import MenuItem from '@pf/src/modules/mobile/components/Menu/MenuItem.vue'
|
75
107
|
// Feeds
|
76
|
-
import
|
108
|
+
import FeedEvents from '@pf/src/modules/events/components/sections/Feed.vue';
|
77
109
|
import FeedCommunity from '@pf/src/modules/community/components/sections/Feed.vue';
|
110
|
+
// Spots
|
111
|
+
import FeedSpots from '@pf/src/modules/spots/components/sections/Feed.vue';
|
78
112
|
|
79
113
|
// Local
|
80
114
|
import DetailsTab from '@pf/src/modules/organizations/components/sections/DetailsTab.vue'
|
81
115
|
import Products from '@pf/src/modules/products/components/pages/Products.vue'
|
82
|
-
import
|
83
|
-
import
|
116
|
+
import FeedDepartments from '@pf/src/modules/organizations/components/sections/FeedDepartments.vue'
|
117
|
+
import Members from '@pf/src/modules/organizations/components/pages/Members.vue'
|
84
118
|
// Import state
|
85
119
|
import * as auth from '@pf/src/modules/auth/store/auth'
|
86
120
|
import * as organization from '@pf/src/modules/organizations/store/organizations'
|
@@ -1,79 +1,57 @@
|
|
1
1
|
<template>
|
2
|
-
<div class="
|
3
|
-
<header class="flex-v-center flex-nowrap flex
|
4
|
-
|
2
|
+
<div class="pd-thin">
|
3
|
+
<header class="mn-medium flex-v-center flex-nowrap flex">
|
4
|
+
<h2 class="mn-r-medium">Groups</h2>
|
5
|
+
<button
|
6
|
+
v-if="auth.state.user._id === route.params._id"
|
7
|
+
@click="$router.push({
|
8
|
+
name: 'Create Organization'
|
9
|
+
})"
|
10
|
+
class="radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second">
|
11
|
+
+
|
12
|
+
</button>
|
5
13
|
</header>
|
6
14
|
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
<svg @click.stop="$router.push({name: 'Organization Edit', params: {_id: organization._id}})" class="t-transp hover-scale-1 z-index-1 pos-absolute pos-t-regular pos-r-regular i-medium" width="13" height="12" viewBox="0 0 13 12" xmlns="http://www.w3.org/2000/svg">
|
33
|
-
<path fill="black" d="M6.41357 11.979C9.6831 11.979 12.3901 9.26611 12.3901 6.00244C12.3901 2.73291 9.67724 0.0258789 6.40771 0.0258789C3.14404 0.0258789 0.437008 2.73291 0.437008 6.00244C0.437008 9.26611 3.1499 11.979 6.41357 11.979ZM6.41357 10.9829C3.64795 10.9829 1.43896 8.76807 1.43896 6.00244C1.43896 3.23682 3.64209 1.02197 6.40771 1.02197C9.17334 1.02197 11.3882 3.23682 11.394 6.00244C11.3999 8.76807 9.1792 10.9829 6.41357 10.9829ZM8.72802 4.36182L9.1499 3.93408C9.3374 3.74072 9.35498 3.52979 9.1792 3.34814L9.04443 3.21924C8.86865 3.0376 8.65185 3.06104 8.46435 3.24854L8.03662 3.67041L8.72802 4.36182ZM4.53271 8.53955L8.37646 4.71338L7.68505 4.02197L3.84716 7.84814L3.51318 8.62158C3.45459 8.76807 3.59521 8.89697 3.72412 8.8501L4.53271 8.53955Z" />
|
34
|
-
</svg>
|
35
|
-
|
36
|
-
<p class="t-black p-small">
|
37
|
-
{{organization.profile.description.slice(0, 120) + '...'}}
|
38
|
-
</p>
|
39
|
-
</div>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
|
15
|
+
<Tab
|
16
|
+
v-model:selected="tabOrganization"
|
17
|
+
:tabs="[
|
18
|
+
{ name: 'Member', value: 'member' },
|
19
|
+
{ name: 'Follower', value: 'follower' }
|
20
|
+
]"
|
21
|
+
class="mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
22
|
+
/>
|
23
|
+
|
24
|
+
<transition name="slide-fade">
|
25
|
+
<Feed
|
26
|
+
v-if="tabOrganization === 'member'"
|
27
|
+
:user="auth.state.user._id"
|
28
|
+
:owner="route.params._id"
|
29
|
+
/>
|
30
|
+
</transition>
|
31
|
+
|
32
|
+
<transition name="slide-fade">
|
33
|
+
<Feed
|
34
|
+
v-if="tabOrganization === 'follower'"
|
35
|
+
:user="auth.state.user._id"
|
36
|
+
:subscriber="route.params._id"
|
37
|
+
/>
|
38
|
+
</transition>
|
43
39
|
</div>
|
44
40
|
</template>
|
45
41
|
|
46
42
|
<script setup>
|
47
|
-
import {
|
43
|
+
import { watch, ref } from 'vue'
|
48
44
|
import { useRoute, useRouter } from 'vue-router'
|
49
|
-
//
|
50
|
-
import Cookies from 'js-cookie'
|
51
|
-
// Import components
|
52
|
-
// Global
|
45
|
+
// Components
|
53
46
|
import Tab from '@pf/src/components/Tab/Tab.vue'
|
54
|
-
import
|
55
|
-
import Select from '@pf/src/components/Select/Select.vue'
|
56
|
-
import Button from '@pf/src/components/Button/Button.vue'
|
57
|
-
// Local
|
58
|
-
import DetailsTab from '@pf/src/modules/organizations/components/sections/DetailsTab.vue'
|
59
|
-
import StructureTab from '@pf/src/modules/organizations/components/sections/StructureTab.vue'
|
60
|
-
import MembersTab from '@pf/src/modules/organizations/components/sections/MembersTab.vue'
|
61
|
-
// Blocks
|
62
|
-
import EmptyState from '@pf/src/modules/organizations/components/blocks/EmptyState.vue'
|
63
|
-
import Unit from '@pf/src/modules/organizations/components/sections/Unit.vue'
|
64
|
-
// Import state
|
65
|
-
import * as auth from '@pf/src/modules/auth/store/auth'
|
66
|
-
import * as organization from '@pf/src/modules/organizations/store/organizations'
|
67
|
-
import * as memberships from '@pf/src/modules/organizations/store/memberships'
|
68
|
-
|
47
|
+
import Feed from '@pf/src/modules/organizations/components/sections/Feed.vue';
|
69
48
|
|
70
|
-
|
71
|
-
//
|
72
|
-
const
|
73
|
-
const
|
74
|
-
//
|
75
|
-
|
76
|
-
let tab = route.query.tab ? route.query.tab : 'details';
|
49
|
+
import * as auth from '@pf/src/modules/auth/store/auth';
|
50
|
+
// Accessing router
|
51
|
+
const route = useRoute()
|
52
|
+
const router = useRouter()
|
53
|
+
// State
|
54
|
+
let tab = route.query.tab ? route.query.tab : 'member';
|
77
55
|
|
78
56
|
const tabOrganization = ref(tab)
|
79
57
|
|
@@ -82,27 +60,4 @@
|
|
82
60
|
watch(tabOrganization, (newValue) => {
|
83
61
|
router.replace({ query: { ...route.query, tab: newValue } });
|
84
62
|
});
|
85
|
-
</script>
|
86
|
-
|
87
|
-
<style lang="scss">
|
88
|
-
.slide-fade-enter-active {
|
89
|
-
// min-height: 100vh;
|
90
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
91
|
-
}
|
92
|
-
|
93
|
-
.slide-fade-leave-active {
|
94
|
-
// min-height: 100vh;
|
95
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
96
|
-
}
|
97
|
-
|
98
|
-
.slide-fade-enter-from,
|
99
|
-
.slide-fade-leave-to {
|
100
|
-
min-height: 0;
|
101
|
-
position: absolute;
|
102
|
-
transform: translateX(20px);
|
103
|
-
opacity: 0;
|
104
|
-
left: 0;
|
105
|
-
top: 0;
|
106
|
-
}
|
107
|
-
|
108
|
-
</style>
|
63
|
+
</script>
|
package/src/modules/organizations/components/sections/{StructureTab.vue → FeedDepartments.vue}
RENAMED
@@ -6,11 +6,11 @@
|
|
6
6
|
title="You don't have any spots yet."
|
7
7
|
description="Add spots to your hub."
|
8
8
|
action="Add spot"
|
9
|
-
:callback="() => $router.push(`/
|
9
|
+
:callback="() => $router.push(`/organization/${props.organization._id}/departments/create`)"
|
10
10
|
/>
|
11
11
|
|
12
12
|
<div>
|
13
|
-
<
|
13
|
+
<CardDepartment
|
14
14
|
v-for="(department, index) in FirstLevelDepartments"
|
15
15
|
:key="index"
|
16
16
|
:department="department"
|
@@ -19,7 +19,7 @@
|
|
19
19
|
/>
|
20
20
|
<button
|
21
21
|
v-if="FirstLevelDepartments.length > 0 && auth.state.user._id === organization.owner"
|
22
|
-
@click="$router.push(`/
|
22
|
+
@click="$router.push(`/organization/${props.organization._id}/departments/create`)"
|
23
23
|
class="mn-thin button w-100"
|
24
24
|
>
|
25
25
|
Add spot
|
@@ -33,8 +33,8 @@
|
|
33
33
|
import { ref, computed } from 'vue';
|
34
34
|
import Tab from '@pf/src/components/Tab/Tab.vue';
|
35
35
|
import EmptyState from '@pf/src/modules/organizations/components/blocks/EmptyState.vue';
|
36
|
-
import
|
37
|
-
import { state as departmentState, actions as departmentActions } from '@pf/src/modules/
|
36
|
+
import CardDepartment from '@pf/src/modules/organizations/components/blocks/CardDepartment.vue';
|
37
|
+
import { state as departmentState, actions as departmentActions } from '@pf/src/modules/organizations/store/departments';
|
38
38
|
import * as auth from '@pf/src/modules/auth/store/auth'
|
39
39
|
|
40
40
|
const props = defineProps({
|
@@ -37,8 +37,7 @@
|
|
37
37
|
import Button from '@pf/src/components/Button/Button.vue'
|
38
38
|
// Local
|
39
39
|
import DetailsTab from '@pf/src/modules/organizations/components/sections/DetailsTab.vue'
|
40
|
-
import
|
41
|
-
import MembersTab from '@pf/src/modules/organizations/components/sections/MembersTab.vue'
|
40
|
+
import FeedDepartments from '@pf/src/modules/organizations/components/sections/FeedDepartments.vue'
|
42
41
|
import CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'
|
43
42
|
// Blocks
|
44
43
|
import EmptyState from '@pf/src/modules/organizations/components/blocks/EmptyState.vue'
|