@ozdao/prometheus-framework 0.2.48 → 0.2.51
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +27 -25
- package/dist/auth.server.mjs +27 -25
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/index-3981e903.mjs +217 -0
- package/dist/index-4eecfdb9.js +216 -0
- package/dist/main-203b36b6.mjs +13628 -0
- package/dist/main-_b1_i8mt.mjs +13606 -0
- package/dist/main-a7ae4ce5.js +91 -0
- package/dist/main-uiQFxEks.js +91 -0
- package/dist/main.css +1 -1
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -3
- package/dist/node_modules/vue-select/dist/vue-select.es.js +49 -645
- package/dist/organizations.server.js +35 -43
- package/dist/organizations.server.mjs +35 -43
- package/dist/products.server.js +107 -24
- package/dist/products.server.mjs +107 -24
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -225
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.js +6 -6
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +44 -32
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +45 -44
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +5 -5
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +22 -21
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +49 -42
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +48 -15
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +38 -37
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +249 -61
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +78 -45
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +160 -86
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +52 -54
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +20 -26
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +40 -46
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +34 -30
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +30 -28
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +33 -28
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +123 -113
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/web-7p76PGnO.mjs +55 -0
- package/dist/web-c63f0ecc.js +1 -0
- package/dist/web-d8173758.mjs +55 -0
- package/dist/web-dn8vgptQ.js +1 -0
- package/package.json +1 -1
- package/src/components/SelectMulti/SelectMulti.vue +1 -1
- package/src/modules/auth/components/pages/Invite.vue +17 -6
- package/src/modules/auth/controllers/auth.controller.js +24 -16
- package/src/modules/auth/controllers/invites.controller.js +17 -8
- package/src/modules/auth/store/auth.js +8 -1
- package/src/modules/auth/store/invites.js +1 -0
- package/src/modules/globals/store/globals.js +5 -1
- package/src/modules/landing/components/blocks/MapBlock.vue +37 -0
- package/src/modules/landing/components/pages/404.vue +3 -0
- package/src/modules/landing/components/pages/Governance.vue +155 -0
- package/src/modules/landing/components/pages/Home.vue +52 -0
- package/src/modules/landing/components/pages/Hotel.vue +54 -0
- package/src/modules/landing/components/pages/Page.vue +184 -0
- package/src/modules/landing/components/sections/AboutSection.vue +69 -0
- package/src/modules/landing/components/sections/Examples.vue +90 -0
- package/src/modules/landing/components/sections/FeatureSection.vue +80 -0
- package/src/modules/landing/components/sections/GiftSection.vue +63 -0
- package/src/modules/landing/components/sections/HeroSection.vue +74 -0
- package/src/modules/landing/components/sections/HowItWorksSection.vue +88 -0
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +131 -0
- package/src/modules/landing/components/sections/InstagramSection.vue +181 -0
- package/src/modules/landing/components/sections/MapSection.vue +91 -0
- package/src/modules/landing/components/sections/SectionsSection.vue +69 -0
- package/src/modules/landing/components/sections/SliderFeatures.vue +131 -0
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +116 -0
- package/src/modules/landing/router/landing.js +34 -0
- package/src/modules/middlewares/server/verifySignUp.js +4 -0
- package/src/modules/mobile/components/BottomNavigation/BottomNavigation.vue +86 -0
- package/src/modules/mobile/components/BottomSheet/BottomSheet.vue +86 -0
- package/src/modules/mobile/components/NavigationBar/NavigationBar.vue +132 -0
- package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +195 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +52 -44
- package/src/modules/organizations/components/blocks/User.vue +42 -10
- package/src/modules/organizations/components/pages/Department.vue +7 -6
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +110 -134
- package/src/modules/organizations/components/pages/Members.vue +85 -26
- package/src/modules/organizations/components/pages/Organization.vue +59 -4
- package/src/modules/organizations/components/sections/MembersAdd.vue +27 -34
- package/src/modules/organizations/components/sections/Organizations.vue +0 -1
- package/src/modules/organizations/controllers/memberships.controller.js +33 -26
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/department.model.js +0 -19
- package/src/modules/organizations/models/membership.model.js +4 -0
- package/src/modules/organizations/organizations.client.js +1 -6
- package/src/modules/organizations/store/departments.js +48 -44
- package/src/modules/organizations/store/memberships.js +11 -3
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/pages/Product.vue +6 -1
- package/src/modules/products/components/pages/ProductEdit.vue +48 -28
- package/src/modules/products/controllers/products.controller.js +99 -33
- package/src/modules/products/models/product.model.js +16 -1
- package/src/modules/products/store/products.js +1 -1
- package/src/modules/users/components/pages/ProfileOrganizations.vue +41 -7
- package/src/styles/layout.scss +1 -1
- package/src/modules/organizations/components/sections/FeedDepartments.vue +0 -64
- package/src/modules/organizations/components/sections/MembersList.vue +0 -85
- package/src/modules/organizations/store/invites.js +0 -93
@@ -0,0 +1,195 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="pos-fixed pos-t-0 pos-l-0 w-100 h-100vh z-index-6 bg-white flex embla" ref="emblaNode">
|
3
|
+
<div class="w-100 embla__container z-index-1">
|
4
|
+
<div
|
5
|
+
v-for="(slide, index) in walkthrough"
|
6
|
+
:key="index"
|
7
|
+
class="flex-center pd-thin t-center flex-column flex embla__slide"
|
8
|
+
:style="{ opacity: tweenSlides.length ? tweenSlides[index] : undefined, transform: tweenSlides[index] ? `scale(${tweenSlides[index]})` : '' }"
|
9
|
+
>
|
10
|
+
<img class="w-100" :src="require(`@/assets/images/walkthrough/walkthrough_${index}.png`).default">
|
11
|
+
<h3 class="mn-b-thin">{{slide.title}}</h3>
|
12
|
+
<p class="p-big t-transp">{{slide.subtitle}}</p>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div
|
16
|
+
class="flex-center flex-column flex pd-big embla__slide"
|
17
|
+
>
|
18
|
+
<img
|
19
|
+
src="/logo/logo_square.svg"
|
20
|
+
class="i-extra radius-medium mn-b-small"
|
21
|
+
>
|
22
|
+
<h2 class="t-center mn-b-small">Welcome to The Commune</h2>
|
23
|
+
<p class="p-medium t-transp mn-b-semi mn-r-auto mn-l-auto t-center">Join our community to connect, share, and learn from the best. Discover new opportunities and grow with us!</p>
|
24
|
+
|
25
|
+
<button @click="openFirstRoute('Sign Up')" class="w-100 bg-main button mn-b-thin">Sign Up</button>
|
26
|
+
<button @click="openFirstRoute('Sign In')" class="w-100 bg-white button mn-b-semi">Sign In</button>
|
27
|
+
|
28
|
+
<p class="p-medium text-center mn-b-thin">Or explore as a guest:</p>
|
29
|
+
<button @click="setFirstUseFalse()" class="button bg-white w-100">Continue without registration</button>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<WavesBackground
|
35
|
+
:style="{ transform: tweenValues[0] ? `translateX(${tweenValues[0]}%)` : '' }"
|
36
|
+
class="pos-fixed pos-t-0 pos-l-0 z-index-0"
|
37
|
+
/>
|
38
|
+
<!-- <ColorsBackground
|
39
|
+
:style="{ transform: tweenValues[0] ? `translateX(${tweenValues[0]}%)` : '' }"
|
40
|
+
class="pos-fixed pos-t-0 pos-l-0 z-index-0"
|
41
|
+
/> -->
|
42
|
+
|
43
|
+
<div class="z-index-5 flex-nowrap flex flex-center gap-small w-100 embla__dots">
|
44
|
+
<div
|
45
|
+
v-for="(snap, index) in scrollSnaps"
|
46
|
+
:key="index"
|
47
|
+
@click="scrollTo(index)"
|
48
|
+
:class="[
|
49
|
+
'embla__dot i-small radius-extra br-solid br-main br-2px',
|
50
|
+
{ 'bg-grey': index !== selectedIndex },
|
51
|
+
{ 'bg-main': index === selectedIndex }
|
52
|
+
]"
|
53
|
+
>
|
54
|
+
</div>
|
55
|
+
|
56
|
+
<div @click.native="setFirstUseFalse()" class="pd-small radius-small br-solid br-main br-2px uppercase t-semi t-main pos-absolute pos-r-10">
|
57
|
+
skip
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
</template>
|
63
|
+
|
64
|
+
<script setup>
|
65
|
+
import { ref, onMounted } from 'vue';
|
66
|
+
import { useRoute, useRouter } from 'vue-router'
|
67
|
+
|
68
|
+
import emblaCarouselVue from 'embla-carousel-vue'; // Assuming a Vue version exists
|
69
|
+
|
70
|
+
import WavesBackground from '@/components/icons/backgrounds/WavesBackground.vue'
|
71
|
+
import ColorsBackground from '@/components/icons/backgrounds/ColorsBackground.vue'
|
72
|
+
|
73
|
+
const props = defineProps(['slides', 'options']);
|
74
|
+
const emits = defineEmits(['updateFirstUse'])
|
75
|
+
const router = useRouter()
|
76
|
+
|
77
|
+
// Set firstUse
|
78
|
+
import { Preferences } from '@capacitor/preferences';
|
79
|
+
|
80
|
+
async function setFirstUseFalse() {
|
81
|
+
await Preferences.set({
|
82
|
+
key: 'first-use',
|
83
|
+
value: JSON.stringify(false),
|
84
|
+
});
|
85
|
+
|
86
|
+
emits('updateFirstUse', false);
|
87
|
+
}
|
88
|
+
|
89
|
+
async function openFirstRoute(routeName) {
|
90
|
+
await router.push({name: routeName})
|
91
|
+
|
92
|
+
await Preferences.set({
|
93
|
+
key: 'first-use',
|
94
|
+
value: JSON.stringify(false),
|
95
|
+
});
|
96
|
+
|
97
|
+
emits('updateFirstUse', false);
|
98
|
+
}
|
99
|
+
// Set Slider
|
100
|
+
let walkthrough = [{
|
101
|
+
title: 'Communicate',
|
102
|
+
subtitle: 'Write posts, comments and put likes.'
|
103
|
+
},{
|
104
|
+
title: 'Party & Fun',
|
105
|
+
subtitle: 'Check the calendar for new events.'
|
106
|
+
},{
|
107
|
+
title: 'Discover',
|
108
|
+
subtitle: 'Browse the gallery of photos.'
|
109
|
+
}]
|
110
|
+
|
111
|
+
const [emblaNode, emblaApi] = emblaCarouselVue({ loop: false })
|
112
|
+
|
113
|
+
const selectedIndex = ref(0);
|
114
|
+
const scrollSnaps = ref([]);
|
115
|
+
const TWEEN_FACTOR = 3
|
116
|
+
const tweenValues = ref([])
|
117
|
+
const tweenSlides = ref([])
|
118
|
+
|
119
|
+
const scrollTo = (index) => emblaApi.value && emblaApi.value.scrollTo(index);
|
120
|
+
|
121
|
+
const onInit = (embla) => {
|
122
|
+
scrollSnaps.value = emblaApi.value.scrollSnapList();
|
123
|
+
};
|
124
|
+
|
125
|
+
const onSelect = (embla) => {
|
126
|
+
selectedIndex.value = emblaApi.value.selectedScrollSnap();
|
127
|
+
};
|
128
|
+
|
129
|
+
const onScroll = (embla) => {
|
130
|
+
const engine = emblaApi.value.internalEngine()
|
131
|
+
const scrollProgress = emblaApi.value.scrollProgress()
|
132
|
+
|
133
|
+
const stylesOpacity = emblaApi.value.scrollSnapList().map((scrollSnap, index) => {
|
134
|
+
let diffToTarget = scrollSnap - scrollProgress
|
135
|
+
|
136
|
+
if (engine.options.loop) {
|
137
|
+
engine.slideLooper.loopPoints.forEach((loopItem) => {
|
138
|
+
const target = loopItem.target()
|
139
|
+
if (index === loopItem.index && target !== 0) {
|
140
|
+
const sign = Math.sign(target)
|
141
|
+
if (sign === -1) diffToTarget = scrollSnap - (1 + scrollProgress)
|
142
|
+
if (sign === 1) diffToTarget = scrollSnap + (1 - scrollProgress)
|
143
|
+
}
|
144
|
+
})
|
145
|
+
}
|
146
|
+
const tweenValue = 1 - Math.abs(diffToTarget * TWEEN_FACTOR)
|
147
|
+
return Math.min(Math.max(tweenValue, 0), 1)
|
148
|
+
})
|
149
|
+
|
150
|
+
tweenSlides.value = stylesOpacity
|
151
|
+
|
152
|
+
const styles = emblaApi.value.scrollSnapList().map((scrollSnap, index) => {
|
153
|
+
let diffToTarget = scrollSnap - scrollProgress
|
154
|
+
|
155
|
+
if (engine.options.loop) {
|
156
|
+
engine.slideLooper.loopPoints.forEach((loopItem) => {
|
157
|
+
const target = loopItem.target()
|
158
|
+
if (index === loopItem.index && target !== 0) {
|
159
|
+
const sign = Math.sign(target)
|
160
|
+
if (sign === -1) diffToTarget = scrollSnap - (1 + scrollProgress)
|
161
|
+
if (sign === 1) diffToTarget = scrollSnap + (1 - scrollProgress)
|
162
|
+
}
|
163
|
+
})
|
164
|
+
}
|
165
|
+
return diffToTarget * (1 / TWEEN_FACTOR) * 100
|
166
|
+
})
|
167
|
+
|
168
|
+
tweenValues.value = styles
|
169
|
+
}
|
170
|
+
|
171
|
+
|
172
|
+
onMounted(async() => {
|
173
|
+
onInit(emblaApi);
|
174
|
+
onSelect(emblaApi);
|
175
|
+
onScroll(emblaApi);
|
176
|
+
|
177
|
+
emblaApi.value.on('reInit', onInit);
|
178
|
+
emblaApi.value.on('reInit', onSelect);
|
179
|
+
emblaApi.value.on('select', onSelect);
|
180
|
+
emblaApi.value.on('scroll', onScroll)
|
181
|
+
});
|
182
|
+
</script>
|
183
|
+
|
184
|
+
<style lang="scss">
|
185
|
+
.embla {
|
186
|
+
overflow: hidden;
|
187
|
+
}
|
188
|
+
.embla__container {
|
189
|
+
display: flex;
|
190
|
+
}
|
191
|
+
.embla__slide {
|
192
|
+
flex: 0 0 100%;
|
193
|
+
min-width: 0;
|
194
|
+
}
|
195
|
+
</style>
|
@@ -3,12 +3,12 @@
|
|
3
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
|
-
<svg @click="$router.push(`/
|
6
|
+
<svg @click="$router.push(`/organizations/${props.organization}/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">
|
7
7
|
<path d="M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z" fill="rgb(var(--black))"/>
|
8
8
|
</svg>
|
9
9
|
|
10
10
|
<h3
|
11
|
-
@click="$router.push(`/
|
11
|
+
@click="$router.push(`/organizations/${props.organization}/departments/${department._id}`)"
|
12
12
|
class="mn-b-small w-100"
|
13
13
|
v-html="department.profile.name"
|
14
14
|
/>
|
@@ -67,7 +67,7 @@
|
|
67
67
|
<template #content>
|
68
68
|
<ul>
|
69
69
|
<li v-if="department.subdepartments.length < 1">В отделе еще нет подотделов</li>
|
70
|
-
<DepartmentSub v-for="(subdepartmentsartment, index) in department.subdepartments" @click="$router.push(`/
|
70
|
+
<DepartmentSub v-for="(subdepartmentsartment, index) in department.subdepartments" @click="$router.push(`/organization/departments/${subdepartmentsartment._id}`)" :key="index" class="br-b br-solid br-grey" :department="subdepartmentsartment" />
|
71
71
|
</ul>
|
72
72
|
</template>
|
73
73
|
</Spoiler>
|
@@ -1,76 +1,84 @@
|
|
1
1
|
<template>
|
2
2
|
<div>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
|
4
|
+
<div class="br-grey radius-small mn-small">
|
5
|
+
{{memberForm.id}}
|
6
|
+
<SelectMulti
|
7
|
+
v-if="props.member === null"
|
8
|
+
v-model="memberForm.user"
|
9
|
+
:options="users"
|
10
|
+
:multiple="false"
|
11
|
+
:taggable="false"
|
12
|
+
placeholder="Type to search or add type of organization"
|
13
|
+
class="mn-b-semi bg-grey pd-medium radius-small"
|
14
|
+
/>
|
15
|
+
|
11
16
|
<div v-else class="pd-small br-grey br-1px br-solid">
|
12
|
-
{{
|
17
|
+
{{ memberForm.user.name ? memberForm.user.name : 'Безымянный' }}, {{memberForm.user.id}}
|
13
18
|
</div>
|
19
|
+
<Field
|
20
|
+
v-model:field="memberForm.position"
|
21
|
+
label="Должность"
|
22
|
+
placeholder="Название должности"
|
23
|
+
class="bg-white "
|
24
|
+
:validation="organizationName"
|
25
|
+
/>
|
14
26
|
</div>
|
15
27
|
|
16
|
-
<button :disabled="!
|
17
|
-
Добавить
|
28
|
+
<button :disabled="!memberForm.user._id || !memberForm.position" @click="submitForm" class="w-100 button bg-blue t-white">
|
29
|
+
{{ props.member !== null ? "Редактировать участника" : "Добавить участника" }}
|
18
30
|
</button>
|
19
31
|
|
20
|
-
<button
|
21
|
-
Удалить
|
22
|
-
</button>
|
32
|
+
<button v-if="props.member !== null" @click="removeMember" class="w-100 button bg-red t-white">
|
33
|
+
Удалить участника
|
34
|
+
</button>
|
23
35
|
</div>
|
24
36
|
</template>
|
25
37
|
|
26
38
|
<script setup>
|
27
|
-
import { ref, computed } from "vue";
|
28
|
-
|
39
|
+
import { ref, watch, computed } from "vue";
|
40
|
+
// Import components
|
41
|
+
import SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue'
|
29
42
|
import Field from "@pf/src/components/Field/Field.vue";
|
30
43
|
import Select from "@pf/src/components/Select/Select.vue";
|
44
|
+
|
31
45
|
const props = defineProps({
|
32
46
|
isPopupOpen: Boolean,
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
alldepartments: Array,
|
47
|
+
member: Number,
|
48
|
+
members: Array,
|
49
|
+
users: Array,
|
37
50
|
});
|
38
51
|
|
39
|
-
const emits = defineEmits(['callback',
|
52
|
+
const emits = defineEmits(['callback','remove'])
|
40
53
|
|
41
|
-
const
|
42
|
-
|
54
|
+
const memberForm = ref({
|
55
|
+
user: "",
|
56
|
+
position: "",
|
43
57
|
});
|
44
58
|
|
45
|
-
if (props.
|
46
|
-
|
59
|
+
if (props.member !== null) {
|
60
|
+
memberForm.value = props.members[props.member]
|
47
61
|
}
|
48
62
|
|
49
|
-
|
50
|
-
|
51
|
-
if (departments.some((dept) => dept._id === department._id)) {
|
52
|
-
return false;
|
53
|
-
}
|
54
|
-
if (editingDepartment._id === department._id) {
|
55
|
-
return false;
|
56
|
-
}
|
57
|
-
return true;
|
58
|
-
});
|
59
|
-
}
|
63
|
+
import * as inputsValidation from '@pf/src/modules/middlewares/client/inputs.validation'
|
64
|
+
const placeValidation = ref(null)
|
60
65
|
|
61
|
-
const filteredDepartments = computed(() => {
|
62
|
-
return filterDepartments(props.alldepartments, props.departments, props.maindepartment);
|
63
|
-
});
|
64
66
|
|
65
67
|
async function submitForm() {
|
66
|
-
|
67
|
-
|
68
|
+
if (props.member !== null) {
|
69
|
+
props.members[props.member] = memberForm.value
|
70
|
+
emits("callback");
|
71
|
+
} else {
|
72
|
+
props.members.push(memberForm.value);
|
73
|
+
emits("callback");
|
74
|
+
}
|
68
75
|
}
|
69
76
|
|
70
77
|
async function removeMember() {
|
71
|
-
|
72
|
-
|
78
|
+
props.members.splice(props.member, 1);
|
79
|
+
emits("callback");
|
73
80
|
}
|
81
|
+
|
74
82
|
</script>
|
75
83
|
|
76
84
|
<style scoped>
|
@@ -89,4 +97,4 @@ input {
|
|
89
97
|
border: 1px solid #ccc;
|
90
98
|
border-radius: 5px;
|
91
99
|
}
|
92
|
-
</style>
|
100
|
+
</style>
|
@@ -1,23 +1,55 @@
|
|
1
1
|
<template>
|
2
|
-
<div class="
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
<div class="">
|
3
|
+
<img
|
4
|
+
v-if="user.profile?.photo.length > 0 && type !== 'short'"
|
5
|
+
:src="(FILE_SERVER_URL || '') + member.profile.photo"
|
6
|
+
class="radius-medium object-fit-cover mn-r-thin i-thin"
|
7
|
+
|
8
|
+
@click.stop="$router.push({
|
9
|
+
name: user.type === 'user' ? 'User Profile' : 'Organization',
|
10
|
+
params: {
|
11
|
+
_id: user._id
|
12
|
+
}
|
13
|
+
})"
|
14
|
+
/>
|
15
|
+
{{user}}123
|
16
|
+
<PlaceholderUserpic
|
17
|
+
v-if="!user.profile?.photo && type !== 'short'"
|
18
|
+
class="radius-medium mn-r-thin i-thin"
|
19
|
+
|
20
|
+
@click.stop="$router.push({
|
21
|
+
name: 'User Profile',
|
22
|
+
params: {
|
23
|
+
_id: user._id
|
24
|
+
}
|
25
|
+
})"
|
26
|
+
/>
|
27
|
+
<!-- <div class="user-card__info"> -->
|
28
|
+
<!-- <p class="user-card__name">{{ user.profile?.name || 'Безымянный' }}</p> -->
|
29
|
+
<!-- </div> -->
|
30
|
+
<div class="mn-r-auto">
|
31
|
+
<span class=" mn-r-small">{{user.profile?.email}} {{user.profile?.phone}}</span>
|
32
|
+
<span class="t-transp">{{user.role}}</span>
|
33
|
+
<br>
|
34
|
+
<span class="mn-r-auto t-transp">Member since (date) {{user.createdAt}}</span>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div v-if="user.position !== 'Основатель'" class="mn-l-medium flex-v-center flex">
|
38
|
+
<button @click="removeMember(user)" class="button-small button">×</button>
|
39
|
+
</div>
|
40
|
+
|
8
41
|
</div>
|
9
42
|
</template>
|
10
43
|
|
11
44
|
<script setup>
|
12
45
|
|
46
|
+
|
47
|
+
import PlaceholderUserpic from '@pf/src/modules/icons/placeholders/PlaceholderUserpic.vue'
|
48
|
+
|
13
49
|
const props = defineProps({
|
14
50
|
user: {
|
15
51
|
type: Object,
|
16
52
|
required: true
|
17
|
-
},
|
18
|
-
position: {
|
19
|
-
type: String,
|
20
|
-
required: true
|
21
53
|
}
|
22
54
|
// Define other props here
|
23
55
|
});
|
@@ -1,12 +1,13 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="for-transition w-100">
|
3
3
|
|
4
|
-
<div id="dash" class="pd-medium bg-grey">
|
4
|
+
<div v-if="departments.state.department" id="dash" class="pd-medium bg-grey">
|
5
5
|
<section class="mn-b-medium radius-medium pd-semi bg-white">
|
6
6
|
<div class="flex-nowrap flex mn-b-small">
|
7
|
-
<h2 class="w-100">{{ departments.state.department.name }}</h2>
|
8
7
|
|
9
|
-
<
|
8
|
+
<h2 class="w-100">{{ departments.state.department.profile.name }}</h2>
|
9
|
+
|
10
|
+
<svg @click="$router.push(`/organizations/${route.params._id}/departments/${route.params.department}/edit`)" class="i-regular t-transp" width="652" height="652" viewBox="0 0 652 652" fill="none" xmlns="http://www.w3.org/2000/svg">
|
10
11
|
<path d="M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z" fill="rgb(var(--black))"/>
|
11
12
|
</svg>
|
12
13
|
|
@@ -22,7 +23,7 @@
|
|
22
23
|
class="br-b br-solid br-grey"
|
23
24
|
v-for="(member, index) in departments.state.department.members"
|
24
25
|
:key="index"
|
25
|
-
:user="member
|
26
|
+
:user="member"
|
26
27
|
:position="member.position"
|
27
28
|
@click="$router.push(`/app/profile/${member.user._id}`)"
|
28
29
|
/>
|
@@ -46,12 +47,12 @@ import { useRoute, useRouter } from 'vue-router';
|
|
46
47
|
import Spoiler from '@pf/src/components/Spoiler/Spoiler.vue';
|
47
48
|
import DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';
|
48
49
|
import User from '@pf/src/modules/organizations/components/blocks/User.vue';
|
49
|
-
import * as departments from '@pf/src/modules/
|
50
|
+
import * as departments from '@pf/src/modules/organizations/store/departments';
|
50
51
|
|
51
52
|
const router = useRouter();
|
52
53
|
const route = useRoute();
|
53
54
|
|
54
|
-
await departments.actions.readOne(route.params.
|
55
|
+
await departments.actions.readOne(route.params.department);
|
55
56
|
</script>
|
56
57
|
|
57
58
|
<style scoped>
|