@ozdao/prometheus-framework 0.2.211 → 0.2.213
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +2 -2
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +2 -2
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +41 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +41 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js.map +1 -0
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +1 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.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 +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +5 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +7 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +15 -7
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +15 -7
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +56 -4
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +56 -4
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.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 +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +139 -0
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js +139 -0
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +5 -10
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +5 -10
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +850 -850
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +850 -850
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +2 -2
- 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/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.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/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/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +14 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +18 -8
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +3 -3
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +0 -22
- package/src/modules/community/components/pages/Blog.vue +1 -1
- package/src/modules/globals/views/components/layouts/App.vue +10 -2
- package/src/modules/globals/views/components/layouts/Client.vue +57 -46
- package/src/modules/globals/views/store/globals.js +69 -6
- package/src/modules/icons/logos/Logotype.vue +0 -4
- package/src/modules/icons/skeletons/SkeletonBlogpost.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonEvent.vue +3 -3
- package/src/modules/icons/skeletons/SkeletonEventShort.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +3 -3
- package/src/modules/organizations/components/sections/Organizations.vue +0 -1
- package/src/modules/organizations/organizations.client.js +2 -2
- package/src/modules/users/components/pages/ProfileEdit.vue +11 -0
- /package/src/modules/organizations/components/sections/{DetailsTab.vue → DetailsTabSection.vue} +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Blog.vue.cjs","sources":["../../../../../../../src/modules/community/components/pages/Blog.vue"],"sourcesContent":["<template>\n <section
|
1
|
+
{"version":3,"file":"Blog.vue.cjs","sources":["../../../../../../../src/modules/community/components/pages/Blog.vue"],"sourcesContent":["<template>\n <section>\n <Feed\n v-model:sort=\"blog.state.sort\"\n :showLoadMore=\"false\"\n :states=\"{\n empty: {\n title: 'No Blog Posts Found',\n description: 'Currently, there are no posts available in this blog. Please check back later.'\n },\n }\"\n :store=\"{\n read: (options) => blog.read(options)\n }\"\n :options=\"{\n limit: 15,\n category: route.params.category,\n period: route.query.period,\n status: 'published',\n user: auth.state.user._id,\n following: route.params.category === 'following' ? auth.state.user._id : null,\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"row-1 gap-thin\"\n >\n <CardBlogpost \n v-for=\"item in items\" \n :key=\"item._id\" \n :blogpost=\"item\" \n :user=\"auth.state.user._id\" \n class=\"h-max-40r mn-b-medium\"\n />\n </Feed>\n </section>\n</template>\n\n\n<script setup=\"props\">\n import { ref, computed, onMounted, watch } from 'vue';\n import { useRoute, useRouter } from 'vue-router';\n\n import Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue';\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';\n\n // Import state\n import * as blog from '@pf/src/modules/community/store/blogposts.js';\n import * as auth from '@pf/src/modules/auth/views/store/auth'\n\n // State\n const route = useRoute();\n const router = useRouter();\n\n // if (!route.params.category) {\n // route.params.category = 'popular'\n // }\n \n onMounted(() => {\n\n if (route.query) {\n const query = route.query;\n\n const newFilterValue = {\n tags: query.tags ? query.tags.split(',') : [],\n period: query.period ? query.period : null,\n };\n\n // проверяем наличие категории в route.params и добавляем ее в фильтр\n // if (route.params.category) {\n // newFilterValue.category = route.params.category;\n // }\n\n blog.state.filter = newFilterValue;\n }\n \n });\n\n watch(() => blog.state.filter, (newFilterValue, oldFilterValue) => {\n // Переводим фильтр в формат query\n const query = { ...route.query };\n\n // Удаляем старые значения фильтра из query\n Object.keys(oldFilterValue).forEach(key => {\n if (query[key]) {\n delete query[key];\n }\n });\n\n // Добавляем новые значения фильтра в query\n const newQueryValues = Object.fromEntries(\n Object.entries(newFilterValue)\n .filter(([key, value]) => (Array.isArray(value) && value.length > 0) || (typeof value === 'string' && value))\n .map(([key, value]) => [key, Array.isArray(value) ? value.join(',') : value])\n );\n Object.assign(query, newQueryValues);\n\n // Обновляем маршрут с новым query\n router.replace({ query });\n }, { deep: true })\n</script>\n\n<style lang=\"scss\">\n\n</style>\n"],"names":["useRoute","useRouter","onMounted","blog.state","watch"],"mappings":";;;;;;;;;;;;;AAqDE,UAAM,QAAQA,UAAAA;AACd,UAAM,SAASC,UAAAA;AAMfC,QAAAA,UAAU,MAAM;AAEd,UAAI,MAAM,OAAO;AACf,cAAM,QAAQ,MAAM;AAEpB,cAAM,iBAAiB;AAAA,UACrB,MAAM,MAAM,OAAO,MAAM,KAAK,MAAM,GAAG,IAAI,CAAE;AAAA,UAC7C,QAAQ,MAAM,SAAS,MAAM,SAAS;AAAA,QAC9C;AAOMC,kBAAU,MAAC,SAAS;AAAA,MACrB;AAAA,IAEL,CAAG;AAEDC,QAAAA,MAAM,MAAMD,UAAU,MAAC,QAAQ,CAAC,gBAAgB,mBAAmB;AAEjE,YAAM,QAAQ,EAAE,GAAG,MAAM,MAAK;AAG9B,aAAO,KAAK,cAAc,EAAE,QAAQ,SAAO;AACzC,YAAI,MAAM,GAAG,GAAG;AACd,iBAAO,MAAM,GAAG;AAAA,QACjB;AAAA,MACP,CAAK;AAGD,YAAM,iBAAiB,OAAO;AAAA,QAC5B,OAAO,QAAQ,cAAc,EAC1B,OAAO,CAAC,CAAC,KAAK,KAAK,MAAO,MAAM,QAAQ,KAAK,KAAK,MAAM,SAAS,KAAO,OAAO,UAAU,YAAY,KAAM,EAC3G,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,MAAM,QAAQ,KAAK,IAAI,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC;AAAA,MACpF;AACI,aAAO,OAAO,OAAO,cAAc;AAGnC,aAAO,QAAQ,EAAE,MAAK,CAAE;AAAA,IAC5B,GAAK,EAAE,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -6,7 +6,6 @@ import _sfc_main$1 from "../../../../components/Feed/Feed.vue.js";
|
|
6
6
|
import _sfc_main$2 from "../blocks/CardBlogpost.vue.js";
|
7
7
|
import { state, read } from "../../store/blogposts.js";
|
8
8
|
import { state as state$1 } from "../../../auth/views/store/auth.js";
|
9
|
-
const _hoisted_1 = { class: "bg-white" };
|
10
9
|
const _sfc_main = {
|
11
10
|
__name: "Blog",
|
12
11
|
setup(__props) {
|
@@ -36,7 +35,7 @@ const _sfc_main = {
|
|
36
35
|
router.replace({ query });
|
37
36
|
}, { deep: true });
|
38
37
|
return (_ctx, _cache) => {
|
39
|
-
return openBlock(), createElementBlock("section",
|
38
|
+
return openBlock(), createElementBlock("section", null, [
|
40
39
|
createVNode(_sfc_main$1, {
|
41
40
|
sort: state.sort,
|
42
41
|
"onUpdate:sort": _cache[0] || (_cache[0] = ($event) => state.sort = $event),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Blog.vue.js","sources":["../../../../../../../src/modules/community/components/pages/Blog.vue"],"sourcesContent":["<template>\n <section
|
1
|
+
{"version":3,"file":"Blog.vue.js","sources":["../../../../../../../src/modules/community/components/pages/Blog.vue"],"sourcesContent":["<template>\n <section>\n <Feed\n v-model:sort=\"blog.state.sort\"\n :showLoadMore=\"false\"\n :states=\"{\n empty: {\n title: 'No Blog Posts Found',\n description: 'Currently, there are no posts available in this blog. Please check back later.'\n },\n }\"\n :store=\"{\n read: (options) => blog.read(options)\n }\"\n :options=\"{\n limit: 15,\n category: route.params.category,\n period: route.query.period,\n status: 'published',\n user: auth.state.user._id,\n following: route.params.category === 'following' ? auth.state.user._id : null,\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"row-1 gap-thin\"\n >\n <CardBlogpost \n v-for=\"item in items\" \n :key=\"item._id\" \n :blogpost=\"item\" \n :user=\"auth.state.user._id\" \n class=\"h-max-40r mn-b-medium\"\n />\n </Feed>\n </section>\n</template>\n\n\n<script setup=\"props\">\n import { ref, computed, onMounted, watch } from 'vue';\n import { useRoute, useRouter } from 'vue-router';\n\n import Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue';\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';\n\n // Import state\n import * as blog from '@pf/src/modules/community/store/blogposts.js';\n import * as auth from '@pf/src/modules/auth/views/store/auth'\n\n // State\n const route = useRoute();\n const router = useRouter();\n\n // if (!route.params.category) {\n // route.params.category = 'popular'\n // }\n \n onMounted(() => {\n\n if (route.query) {\n const query = route.query;\n\n const newFilterValue = {\n tags: query.tags ? query.tags.split(',') : [],\n period: query.period ? query.period : null,\n };\n\n // проверяем наличие категории в route.params и добавляем ее в фильтр\n // if (route.params.category) {\n // newFilterValue.category = route.params.category;\n // }\n\n blog.state.filter = newFilterValue;\n }\n \n });\n\n watch(() => blog.state.filter, (newFilterValue, oldFilterValue) => {\n // Переводим фильтр в формат query\n const query = { ...route.query };\n\n // Удаляем старые значения фильтра из query\n Object.keys(oldFilterValue).forEach(key => {\n if (query[key]) {\n delete query[key];\n }\n });\n\n // Добавляем новые значения фильтра в query\n const newQueryValues = Object.fromEntries(\n Object.entries(newFilterValue)\n .filter(([key, value]) => (Array.isArray(value) && value.length > 0) || (typeof value === 'string' && value))\n .map(([key, value]) => [key, Array.isArray(value) ? value.join(',') : value])\n );\n Object.assign(query, newQueryValues);\n\n // Обновляем маршрут с новым query\n router.replace({ query });\n }, { deep: true })\n</script>\n\n<style lang=\"scss\">\n\n</style>\n"],"names":["blog.state"],"mappings":";;;;;;;;;;;AAqDE,UAAM,QAAQ;AACd,UAAM,SAAS;AAMf,cAAU,MAAM;AAEd,UAAI,MAAM,OAAO;AACf,cAAM,QAAQ,MAAM;AAEpB,cAAM,iBAAiB;AAAA,UACrB,MAAM,MAAM,OAAO,MAAM,KAAK,MAAM,GAAG,IAAI,CAAE;AAAA,UAC7C,QAAQ,MAAM,SAAS,MAAM,SAAS;AAAA,QAC9C;AAOMA,cAAW,SAAS;AAAA,MACrB;AAAA,IAEL,CAAG;AAED,UAAM,MAAMA,MAAW,QAAQ,CAAC,gBAAgB,mBAAmB;AAEjE,YAAM,QAAQ,EAAE,GAAG,MAAM,MAAK;AAG9B,aAAO,KAAK,cAAc,EAAE,QAAQ,SAAO;AACzC,YAAI,MAAM,GAAG,GAAG;AACd,iBAAO,MAAM,GAAG;AAAA,QACjB;AAAA,MACP,CAAK;AAGD,YAAM,iBAAiB,OAAO;AAAA,QAC5B,OAAO,QAAQ,cAAc,EAC1B,OAAO,CAAC,CAAC,KAAK,KAAK,MAAO,MAAM,QAAQ,KAAK,KAAK,MAAM,SAAS,KAAO,OAAO,UAAU,YAAY,KAAM,EAC3G,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,MAAM,QAAQ,KAAK,IAAI,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC;AAAA,MACpF;AACI,aAAO,OAAO,OAAO,cAAc;AAGnC,aAAO,QAAQ,EAAE,MAAK,CAAE;AAAA,IAC5B,GAAK,EAAE,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const vue_f36acd1f = require("../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs");
|
5
|
-
;/* empty css
|
5
|
+
;/* empty css */
|
6
6
|
const EmptyState = require("../../../../components/EmptyState/EmptyState.vue.cjs");
|
7
7
|
const CardBlogpost = require("../blocks/CardBlogpost.vue.cjs");
|
8
8
|
const SkeletonBlogpost = require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref, onMounted, withAsyncContext, computed, openBlock, createElementBlock, createVNode, TransitionGroup, withCtx, Fragment, renderList, createCommentVNode, Transition, createBlock, createElementVNode } from "vue";
|
2
2
|
import { u as useHead } from "../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
|
3
|
-
/* empty css
|
3
|
+
/* empty css */
|
4
4
|
import _sfc_main$1 from "../../../../components/EmptyState/EmptyState.vue.js";
|
5
5
|
import _sfc_main$2 from "../blocks/CardBlogpost.vue.js";
|
6
6
|
import SkeletonBlogpost from "../../../icons/skeletons/SkeletonBlogpost.vue.js";
|
@@ -4,8 +4,8 @@ const vue = require("vue");
|
|
4
4
|
;/* empty css */
|
5
5
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
6
6
|
;/* empty css */
|
7
|
-
;/* empty css
|
8
|
-
;/* empty css
|
7
|
+
;/* empty css */
|
8
|
+
;/* empty css */
|
9
9
|
require("axios");
|
10
10
|
;/* empty css */
|
11
11
|
const CardBlogpost = require("../blocks/CardBlogpost.vue.cjs");
|
@@ -2,8 +2,8 @@ import { withAsyncContext, ref, computed, openBlock, createElementBlock, createE
|
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
4
4
|
/* empty css */
|
5
|
-
/* empty css
|
6
|
-
/* empty css
|
5
|
+
/* empty css */
|
6
|
+
/* empty css */
|
7
7
|
import "axios";
|
8
8
|
/* empty css */
|
9
9
|
import _sfc_main$1 from "../blocks/CardBlogpost.vue.js";
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs
CHANGED
@@ -11,7 +11,7 @@ const BlockTags = require("../../../../components/FieldTags/BlockTags.vue.cjs");
|
|
11
11
|
const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
|
12
12
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
13
13
|
const SelectMulti = require("../../../../components/SelectMulti/SelectMulti.vue.cjs");
|
14
|
-
const Button = require("../../../../components/Button/Button.
|
14
|
+
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
15
15
|
const vueRouter = require("vue-router");
|
16
16
|
const blogposts = require("../../store/blogposts.cjs");
|
17
17
|
const auth = require("../../../auth/views/store/auth.cjs");
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js
CHANGED
@@ -9,7 +9,7 @@ import _sfc_main$3 from "../../../../components/FieldTags/BlockTags.vue.js";
|
|
9
9
|
import _sfc_main$4 from "../../../../components/Checkbox/Checkbox.vue.js";
|
10
10
|
import Field from "../../../../components/Field/Field.vue2.js";
|
11
11
|
import SelectMulti from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
12
|
-
import _sfc_main$5 from "../../../../components/Button/Button.
|
12
|
+
import _sfc_main$5 from "../../../../components/Button/Button.vue2.js";
|
13
13
|
import { useRoute, useRouter } from "vue-router";
|
14
14
|
import { read, clean, state as state$1, update, create, remove } from "../../store/blogposts.js";
|
15
15
|
import { state } from "../../../auth/views/store/auth.js";
|
package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
;/* empty css
|
4
|
+
;/* empty css */
|
5
5
|
;/* empty css */
|
6
6
|
;/* empty css */
|
7
7
|
;/* empty css */
|
8
|
-
;/* empty css
|
8
|
+
;/* empty css */
|
9
9
|
;/* empty css */
|
10
10
|
const Slider = require("../../../../components/Slider/Slider.vue.cjs");
|
11
11
|
const CardBlogpost = require("../blocks/CardBlogpost.vue.cjs");
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, withCtx, createBlock } from "vue";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
/* empty css */
|
5
5
|
/* empty css */
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$1 from "../../../../components/Slider/Slider.vue.js";
|
9
9
|
import _sfc_main$2 from "../blocks/CardBlogpost.vue.js";
|
package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const vue = require("vue");
|
4
4
|
const vueQrcodeReader = require("../../../../../../node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs");
|
5
5
|
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
6
|
-
const Button = require("../../../../components/Button/Button.
|
6
|
+
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
7
7
|
const tickets = require("../../store/tickets.cjs");
|
8
8
|
;/* empty css */
|
9
9
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, createElementVNode, unref, pushScopeId, popScopeId } from "vue";
|
2
2
|
import { QrcodeStream as Ii } from "../../../../../../node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js";
|
3
3
|
import _sfc_main$2 from "../../../../components/Popup/Popup.vue.js";
|
4
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
4
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import { actions } from "../../store/tickets.js";
|
6
6
|
/* empty css */
|
7
7
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
const Button = require("../../../../components/Button/Button.
|
4
|
+
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
5
5
|
require("../../../auth/views/store/auth.cjs");
|
6
6
|
const tickets = require("../../store/tickets.cjs");
|
7
7
|
;/* empty css */
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { openBlock, createBlock, withCtx, createTextVNode, toDisplayString } from "vue";
|
2
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
2
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue2.js";
|
3
3
|
import "../../../auth/views/store/auth.js";
|
4
4
|
import { actions } from "../../store/tickets.js";
|
5
5
|
/* empty css */
|
@@ -16,7 +16,7 @@ const SelectMulti = require("../../../../components/SelectMulti/SelectMulti.vue.
|
|
16
16
|
const Upload = require("../../../../components/Upload/Upload.vue.cjs");
|
17
17
|
const UploadImage = require("../../../../components/UploadImage/UploadImage.vue.cjs");
|
18
18
|
const EditImages = require("../../../../components/EditImages/EditImages.vue.cjs");
|
19
|
-
const Button = require("../../../../components/Button/Button.
|
19
|
+
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
20
20
|
const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
|
21
21
|
const vueRouter = require("vue-router");
|
22
22
|
const events = require("../../store/events.cjs");
|
@@ -14,7 +14,7 @@ import SelectMulti from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
|
14
14
|
import Upload from "../../../../components/Upload/Upload.vue.js";
|
15
15
|
import _sfc_main$1 from "../../../../components/UploadImage/UploadImage.vue.js";
|
16
16
|
import _sfc_main$3 from "../../../../components/EditImages/EditImages.vue.js";
|
17
|
-
import _sfc_main$9 from "../../../../components/Button/Button.
|
17
|
+
import _sfc_main$9 from "../../../../components/Button/Button.vue2.js";
|
18
18
|
import _sfc_main$5 from "../../../icons/navigation/IconDelete.vue.js";
|
19
19
|
import { useRoute, useRouter } from "vue-router";
|
20
20
|
import { read, clean, state as state$1, update, create, remove } from "../../store/events.js";
|
package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs
CHANGED
@@ -5,7 +5,7 @@ const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
|
5
5
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
6
6
|
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
7
7
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
8
|
-
const Button = require("../../../../components/Button/Button.
|
8
|
+
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
9
9
|
const ButtonCheck = require("../elements/ButtonCheck.vue.cjs");
|
10
10
|
const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
|
11
11
|
const IconAdd = require("../../../icons/navigation/IconAdd.vue.cjs");
|
package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js
CHANGED
@@ -3,7 +3,7 @@ import _sfc_main$6 from "../../../../components/Feed/Feed.vue.js";
|
|
3
3
|
import _sfc_main$2 from "../../../../components/Block/Block.vue.js";
|
4
4
|
import _sfc_main$1 from "../../../../components/Popup/Popup.vue.js";
|
5
5
|
import Field from "../../../../components/Field/Field.vue2.js";
|
6
|
-
import _sfc_main$5 from "../../../../components/Button/Button.
|
6
|
+
import _sfc_main$5 from "../../../../components/Button/Button.vue2.js";
|
7
7
|
import ButtonCheck from "../elements/ButtonCheck.vue.js";
|
8
8
|
import _sfc_main$4 from "../../../icons/navigation/IconDelete.vue.js";
|
9
9
|
import _sfc_main$3 from "../../../icons/navigation/IconAdd.vue.js";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
;/* empty css
|
4
|
+
;/* empty css */
|
5
5
|
const EmptyState = require("../../../../components/EmptyState/EmptyState.vue.cjs");
|
6
6
|
const HeroEvent = require("../sections/HeroEvent.vue.cjs");
|
7
7
|
const SectionMainGuest = require("../sections/SectionMainGuest.vue.cjs");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, onMounted, openBlock, createElementBlock, createVNode, TransitionGroup, withCtx, Fragment, renderList, createCommentVNode, Transition, createBlock, normalizeStyle, createElementVNode, normalizeClass, resolveDynamicComponent, mergeProps } from "vue";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
import _sfc_main$1 from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import HeroEvent from "../sections/HeroEvent.vue.js";
|
5
5
|
import _sfc_main$2 from "../sections/SectionMainGuest.vue.js";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
;/* empty css
|
4
|
+
;/* empty css */
|
5
5
|
const EmptyState = require("../../../../components/EmptyState/EmptyState.vue.cjs");
|
6
6
|
const CardEvent = require("../blocks/CardEvent.vue.cjs");
|
7
7
|
const SkeletonEvent = require("../../../icons/skeletons/SkeletonEvent.vue.cjs");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, onMounted, openBlock, createElementBlock, createVNode, TransitionGroup, withCtx, Fragment, renderList, createBlock, createCommentVNode, Transition } from "vue";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
import _sfc_main$1 from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import _sfc_main$2 from "../blocks/CardEvent.vue.js";
|
5
5
|
import SkeletonEvent from "../../../icons/skeletons/SkeletonEvent.vue.js";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
;/* empty css
|
4
|
+
;/* empty css */
|
5
5
|
const EmptyState = require("../../../../components/EmptyState/EmptyState.vue.cjs");
|
6
6
|
const CardEvent = require("../blocks/CardEvent.vue.cjs");
|
7
7
|
const SkeletonEventShort = require("../../../icons/skeletons/SkeletonEventShort.vue.cjs");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, onMounted, openBlock, createElementBlock, createVNode, TransitionGroup, withCtx, Fragment, renderList, createBlock, createCommentVNode, Transition, normalizeClass } from "vue";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
import _sfc_main$1 from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import _sfc_main$2 from "../blocks/CardEvent.vue.js";
|
5
5
|
import SkeletonEventShort from "../../../icons/skeletons/SkeletonEventShort.vue.js";
|
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const vue = require("vue");
|
4
4
|
const vueRouter = require("vue-router");
|
5
5
|
;/* empty css */
|
6
|
-
const Button = require("../../../../components/Button/Button.
|
6
|
+
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
7
7
|
;/* empty css */
|
8
8
|
const Chips = require("../../../../components/Chips/Chips.vue.cjs");
|
9
9
|
;/* empty css */
|
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref, openBlock, createElementBlock, createVNode, unref, isRef, withCtx, Fragment, renderList, createElementVNode, toDisplayString, createBlock, createCommentVNode, createTextVNode } from "vue";
|
2
2
|
import { useRoute } from "vue-router";
|
3
3
|
/* empty css */
|
4
|
-
import _sfc_main$9 from "../../../../components/Button/Button.
|
4
|
+
import _sfc_main$9 from "../../../../components/Button/Button.vue2.js";
|
5
5
|
/* empty css */
|
6
6
|
import _sfc_main$4 from "../../../../components/Chips/Chips.vue.js";
|
7
7
|
/* empty css */
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const Checkbox = require("../../../../../components/Checkbox/Checkbox.vue.cjs");
|
5
|
-
const Spoiler = require("../../../../../components/Spoiler/Spoiler.
|
5
|
+
const Spoiler = require("../../../../../components/Spoiler/Spoiler.vue.cjs");
|
6
6
|
const IconChevronBottom = require("../../../../icons/navigation/IconChevronBottom.vue.cjs");
|
7
7
|
const _hoisted_1 = { class: "w-100 o-scroll" };
|
8
8
|
const _hoisted_2 = { class: "cursor-pointer w-100 flex-v-center flex-nowrap flex" };
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { mergeModels, useModel, openBlock, createElementBlock, Fragment, renderList, createBlock, withCtx, createElementVNode, toDisplayString, createVNode, normalizeClass } from "vue";
|
2
2
|
import _sfc_main$2 from "../../../../../components/Checkbox/Checkbox.vue.js";
|
3
|
-
import _sfc_main$1 from "../../../../../components/Spoiler/Spoiler.
|
3
|
+
import _sfc_main$1 from "../../../../../components/Spoiler/Spoiler.vue.js";
|
4
4
|
import IconChevronBottom from "../../../../icons/navigation/IconChevronBottom.vue.js";
|
5
5
|
const _hoisted_1 = { class: "w-100 o-scroll" };
|
6
6
|
const _hoisted_2 = { class: "cursor-pointer w-100 flex-v-center flex-nowrap flex" };
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs
CHANGED
@@ -6,8 +6,8 @@ const PlaceholderUserpic = require("../../../../icons/placeholders/PlaceholderUs
|
|
6
6
|
const FormReport = require("../../../../reports/components/sections/FormReport.vue.cjs");
|
7
7
|
const Tooltip = require("../../../../../components/Tooltip/Tooltip.vue2.cjs");
|
8
8
|
const Dropdown = require("../../../../../components/Dropdown/Dropdown.vue.cjs");
|
9
|
-
;/* empty css
|
10
|
-
;/* empty css
|
9
|
+
;/* empty css */
|
10
|
+
;/* empty css */
|
11
11
|
require("../../../../auth/views/store/auth.cjs");
|
12
12
|
require("../../../../organizations/store/memberships.cjs");
|
13
13
|
const IconEllipsis = require("../../../../icons/navigation/IconEllipsis.vue.cjs");
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js
CHANGED
@@ -4,8 +4,8 @@ import PlaceholderUserpic from "../../../../icons/placeholders/PlaceholderUserpi
|
|
4
4
|
import _sfc_main$4 from "../../../../reports/components/sections/FormReport.vue.js";
|
5
5
|
import _sfc_main$1 from "../../../../../components/Tooltip/Tooltip.vue2.js";
|
6
6
|
import _sfc_main$2 from "../../../../../components/Dropdown/Dropdown.vue.js";
|
7
|
-
/* empty css
|
8
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
|
+
/* empty css */
|
9
9
|
import "../../../../auth/views/store/auth.js";
|
10
10
|
import "../../../../organizations/store/memberships.js";
|
11
11
|
import _sfc_main$3 from "../../../../icons/navigation/IconEllipsis.vue.js";
|
@@ -86,6 +86,11 @@ const _sfc_main = {
|
|
86
86
|
const updateFirstUse = (value) => {
|
87
87
|
FirstUse.value = value;
|
88
88
|
};
|
89
|
+
vue.onBeforeMount(async () => {
|
90
|
+
const { value } = await index.Preferences.get({ key: "darkmode" });
|
91
|
+
const isDarkMode = value ? JSON.parse(value) : false;
|
92
|
+
globals.actions.setTheme(isDarkMode);
|
93
|
+
});
|
89
94
|
vue.onMounted(async () => {
|
90
95
|
await getFirstUse();
|
91
96
|
if (page) show.value = true;
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"App.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/layouts/App.vue"],"sourcesContent":["<template>\n <transition \n name=\"scaleTransition\" \n mode=\"out-in\"\n >\n <section \n v-if=\"FirstUse && route.meta.walkthrough\"\n class=\"w-100 h-100\" \n >\n <component \n :is=\"route.meta.walkthrough\"\n name=\"Walkthrough\"\n @updateFirstUse=\"updateFirstUse\" \n :slides=\"[1,2,3]\" \n class=\"tab\"\n >\n </component>\n </section>\n </transition>\n\n <transition name=\"moveFromTop\" mode=\"out-in\" appear>\n <component\n v-if=\"route.meta.sidebar && globals.state.isOpenSidebar\"\n :is=\"route.meta.sidebar\"\n :stateSidebar=\"globals.state.isOpenSidebar\" \n @closeSidebar=\"() => { \n globals.state.isOpenSidebar = !globals.state.isOpenSidebar \n }\"\n\n class=\"transition-ease-in-out pos-absolute w-70 z-index-0 bg-light\"\n :class=\"{\n 'pos-l-70-negative': !globals.state.isOpenSidebar,\n 'pos-l-0': globals.state.isOpenSidebar\n }\"\n v-slot=\"{ Component }\"\n >\n <component\n v-if=\"route.meta.navigation\"\n :is=\"route.meta.navigation\"\n class=\"h3 pd-big cols-1\" \n />\n </component>\n </transition>\n\n <router-view \n v-slot=\"{ Component }\"\n :class=\"{\n 'pos-l-70': globals.state.isOpenSidebar,\n 'pos-l-0': !globals.state.isOpenSidebar,\n 'pd-t-extra': MOBILE_APP === 'ios'\n }\"\n @click=\"globals.state.isOpenSidebar ? a => globals.state.isOpenSidebar = false : a => {console.log('not succes')}\"\n class=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative\"\n >\n <component ref=\"page\" :is=\"Component\"/>\n </router-view>\n</template>\n\n<script setup>\n import { computed, ref, onMounted, defineAsyncComponent } from 'vue'\n import { useHead } from '@unhead/vue'\n import { useI18n } from 'vue-i18n'\n import { useRoute } from 'vue-router'\n\n import * as globals from '@pf/src/modules/globals/views/store/globals'\n\n const props = defineProps({\n messages: {\n type: Object,\n required: true\n },\n logotype: {\n type: Object\n },\n })\n /////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n /////////////////////////////\n // META\n /////////////////////////////\n const { t, locale } = useI18n({\n messages: props.messages\n })\n\n const current_url = computed(() => removeTrailingSlash(`${base_url}${route.path}`));\n\n const route = useRoute();\n\n const languages = ['en', 'ru'];\n const base_url = 'https://weeder.delivery';\n\n function removeTrailingSlash(url) {\n return url.endsWith('/') ? url.slice(0, -1) : url;\n }\n // Используйте эту функцию, чтобы удалить слэш в конце URL\n const metadata = computed(() => {return {\n title: t('meta.title'),\n description: t('meta.description'),\n meta: [\n { charset: 'utf-8' },\n { name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no' },\n { hid: 'description', name: 'description', content: t('meta.description') },\n { hid: 'keywords', name: 'keywords', content: t('meta.keywords') },\n { hid: 'og:title', property: 'og:title', content: t('meta.og.title') },\n { hid: 'og:description', property: 'og:description', content: t('meta.og.description') },\n { hid: 'og:image', property: 'og:image', content: base_url + '/favicon/cover.jpg' },\n { hid: 'og:url', property: 'og:url', content: current_url.value },\n { hid: 'twitter:title', name: 'twitter:title', content: t('meta.twitter.title') },\n { hid: 'twitter:description', name: 'twitter:description', content: t('meta.twitter.description') },\n { hid: 'twitter:image', name: 'twitter:image', content: base_url + '/favicon/cover.jpg' },\n { hid: 'twitter:card', name: 'twitter:card', content: t('meta.twitter.card') },\n ],\n link: [\n { hid: 'canonical', rel: 'canonical', href: current_url.value },\n ...generateAlternateLinks.value,\n ],\n htmlAttrs: { lang: t('meta.htmlAttrs.lang')}\n }});\n\n const generateAlternateLinks = computed(() => {\n return languages.map(lang => {\n let newPath = route.path;\n\n if (route.params.locale) {\n newPath = newPath.replace(`/${route.params.locale}`, `/${lang}`);\n } else {\n newPath = `/${lang}${newPath}`;\n }\n const href = removeTrailingSlash(`${base_url}${newPath}`);\n return { \n hid: 'alternate', \n rel: 'alternate', \n hreflang: lang, \n href: href\n };\n });\n });\n\n useHead(metadata.value)\n /////////////////////////////\n // FIRST USE\n /////////////////////////////\n const FirstUse = ref(false);\n\n import { Preferences } from '@capacitor/preferences';\n\n async function getFirstUse() {\n const ret = await Preferences.get({ key: 'first-use' });\n FirstUse.value = ret.value ? JSON.parse(ret.value) : true;\n }\n\n const updateFirstUse = (value) => {\n FirstUse.value = value;\n }\n\n onMounted(async () => {\n await getFirstUse()\n if (page) show.value = true\n });\n</script>"],"names":["ref","useI18n","computed","useRoute","useHead","Preferences","onMounted"],"mappings":";;;;;;;;;;;;AA8FE,MAAM,WAAW;;;;;;;;;;;;;AA5BjB,UAAM,QAAQ;AAad,QAAI,OAAOA,IAAG,IAAC,KAAK;AAEpB,UAAM,OAAOA,IAAG,IAAC,IAAI;AAIrB,UAAM,EAAE,GAAG,OAAQ,IAAGC,gBAAQ;AAAA,MAC5B,UAAU,MAAM;AAAA,IACpB,CAAG;AAED,UAAM,cAAcC,IAAAA,SAAS,MAAM,oBAAoB,GAAG,QAAQ,GAAG,MAAM,IAAI,EAAE,CAAC;AAElF,UAAM,QAAQC,UAAAA;AAEd,UAAM,YAAY,CAAC,MAAM,IAAI;AAG7B,aAAS,oBAAoB,KAAK;AAChC,aAAO,IAAI,SAAS,GAAG,IAAI,IAAI,MAAM,GAAG,EAAE,IAAI;AAAA,IAC/C;AAED,UAAM,WAAWD,aAAS,MAAM;AAAC,aAAO;AAAA,QACtC,OAAO,EAAE,YAAY;AAAA,QACrB,aAAa,EAAE,kBAAkB;AAAA,QACjC,MAAM;AAAA,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AC7B;AACD,cAAM,OAAO,oBAAoB,GAAG,QAAQ,GAAG,OAAO,EAAE;AACxD,eAAO;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,UAAU;AAAA,UACV;AAAA,QACR;AAAA,MACA,CAAK;AAAA,IACL,CAAG;AAEDE,iBAAO,EAAC,SAAS,KAAK;AAItB,UAAM,WAAWJ,QAAI,KAAK;AAI1B,mBAAe,cAAc;AAC3B,YAAM,MAAM,MAAMK,kBAAY,IAAI,EAAE,KAAK,YAAW,CAAE;AACtD,eAAS,QAAQ,IAAI,QAAQ,KAAK,MAAM,IAAI,KAAK,IAAI;AAAA,IACtD;AAED,UAAM,iBAAiB,CAAC,UAAU;AAChC,eAAS,QAAQ;AAAA,IAClB;AAEDC,QAAAA,UAAU,YAAY;AACpB,YAAM,YAAa;AACnB,UAAI,KAAM,MAAK,QAAQ;AAAA,IAC3B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"App.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/layouts/App.vue"],"sourcesContent":["<template>\n <transition \n name=\"scaleTransition\" \n mode=\"out-in\"\n >\n <section \n v-if=\"FirstUse && route.meta.walkthrough\"\n class=\"w-100 h-100\" \n >\n <component \n :is=\"route.meta.walkthrough\"\n name=\"Walkthrough\"\n @updateFirstUse=\"updateFirstUse\" \n :slides=\"[1,2,3]\" \n class=\"tab\"\n >\n </component>\n </section>\n </transition>\n\n <transition name=\"moveFromTop\" mode=\"out-in\" appear>\n <component\n v-if=\"route.meta.sidebar && globals.state.isOpenSidebar\"\n :is=\"route.meta.sidebar\"\n :stateSidebar=\"globals.state.isOpenSidebar\" \n @closeSidebar=\"() => { \n globals.state.isOpenSidebar = !globals.state.isOpenSidebar \n }\"\n\n class=\"transition-ease-in-out pos-absolute w-70 z-index-0 bg-light\"\n :class=\"{\n 'pos-l-70-negative': !globals.state.isOpenSidebar,\n 'pos-l-0': globals.state.isOpenSidebar\n }\"\n v-slot=\"{ Component }\"\n >\n <component\n v-if=\"route.meta.navigation\"\n :is=\"route.meta.navigation\"\n class=\"h3 pd-big cols-1\" \n />\n </component>\n </transition>\n\n <router-view \n v-slot=\"{ Component }\"\n :class=\"{\n 'pos-l-70': globals.state.isOpenSidebar,\n 'pos-l-0': !globals.state.isOpenSidebar,\n 'pd-t-extra': MOBILE_APP === 'ios'\n }\"\n @click=\"globals.state.isOpenSidebar ? a => globals.state.isOpenSidebar = false : a => { console.log('not succes') }\"\n class=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative\"\n >\n <component ref=\"page\" :is=\"Component\"/>\n </router-view>\n</template>\n\n<script setup>\n import { computed, ref, onMounted, defineAsyncComponent, onBeforeMount } from 'vue'\n import { useHead } from '@unhead/vue'\n import { useI18n } from 'vue-i18n'\n import { useRoute } from 'vue-router'\n\n import * as globals from '@pf/src/modules/globals/views/store/globals'\n\n const props = defineProps({\n messages: {\n type: Object,\n required: true\n },\n logotype: {\n type: Object\n },\n })\n /////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n /////////////////////////////\n // META\n /////////////////////////////\n const { t, locale } = useI18n({\n messages: props.messages\n })\n\n const current_url = computed(() => removeTrailingSlash(`${base_url}${route.path}`));\n\n const route = useRoute();\n\n const languages = ['en', 'ru'];\n const base_url = 'https://weeder.delivery';\n\n function removeTrailingSlash(url) {\n return url.endsWith('/') ? url.slice(0, -1) : url;\n }\n // Используйте эту функцию, чтобы удалить слэш в конце URL\n const metadata = computed(() => {return {\n title: t('meta.title'),\n description: t('meta.description'),\n meta: [\n { charset: 'utf-8' },\n { name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no' },\n { hid: 'description', name: 'description', content: t('meta.description') },\n { hid: 'keywords', name: 'keywords', content: t('meta.keywords') },\n { hid: 'og:title', property: 'og:title', content: t('meta.og.title') },\n { hid: 'og:description', property: 'og:description', content: t('meta.og.description') },\n { hid: 'og:image', property: 'og:image', content: base_url + '/favicon/cover.jpg' },\n { hid: 'og:url', property: 'og:url', content: current_url.value },\n { hid: 'twitter:title', name: 'twitter:title', content: t('meta.twitter.title') },\n { hid: 'twitter:description', name: 'twitter:description', content: t('meta.twitter.description') },\n { hid: 'twitter:image', name: 'twitter:image', content: base_url + '/favicon/cover.jpg' },\n { hid: 'twitter:card', name: 'twitter:card', content: t('meta.twitter.card') },\n ],\n link: [\n { hid: 'canonical', rel: 'canonical', href: current_url.value },\n ...generateAlternateLinks.value,\n ],\n htmlAttrs: { lang: t('meta.htmlAttrs.lang')}\n }});\n\n const generateAlternateLinks = computed(() => {\n return languages.map(lang => {\n let newPath = route.path;\n\n if (route.params.locale) {\n newPath = newPath.replace(`/${route.params.locale}`, `/${lang}`);\n } else {\n newPath = `/${lang}${newPath}`;\n }\n const href = removeTrailingSlash(`${base_url}${newPath}`);\n return { \n hid: 'alternate', \n rel: 'alternate', \n hreflang: lang, \n href: href\n };\n });\n });\n\n useHead(metadata.value)\n /////////////////////////////\n // FIRST USE\n /////////////////////////////\n const FirstUse = ref(false);\n\n import { Preferences } from '@capacitor/preferences';\n\n async function getFirstUse() {\n const ret = await Preferences.get({ key: 'first-use' });\n FirstUse.value = ret.value ? JSON.parse(ret.value) : true;\n }\n\n const updateFirstUse = (value) => {\n FirstUse.value = value;\n }\n\n onBeforeMount(async()=>{\n const { value } = await Preferences.get({ key: 'darkmode' });\n const isDarkMode = value ? JSON.parse(value) : false;\n \n // Устанавливаем тему\n globals.actions.setTheme(isDarkMode);\n })\n\n onMounted(async () => {\n await getFirstUse()\n if (page) show.value = true\n });\n</script>"],"names":["ref","useI18n","computed","useRoute","useHead","Preferences","onBeforeMount","globals.actions","onMounted"],"mappings":";;;;;;;;;;;;AA8FE,MAAM,WAAW;;;;;;;;;;;;;AA5BjB,UAAM,QAAQ;AAad,QAAI,OAAOA,IAAG,IAAC,KAAK;AA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nB,UAAI,KAAM,MAAK,QAAQ;AAAA,IAC3B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, Transition, withCtx, unref, createBlock, resolveDynamicComponent, createCommentVNode, normalizeClass } from "vue";
|
1
|
+
import { ref, computed, onBeforeMount, onMounted, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, Transition, withCtx, unref, createBlock, resolveDynamicComponent, createCommentVNode, normalizeClass } from "vue";
|
2
2
|
import { u as useHead } from "../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
|
3
3
|
import { useI18n } from "vue-i18n";
|
4
4
|
import { useRoute } from "vue-router";
|
5
|
-
import { state } from "../../store/globals.js";
|
5
|
+
import { actions, state } from "../../store/globals.js";
|
6
6
|
import { Preferences } from "../../../../../../node_modules/@capacitor/preferences/dist/esm/index.js";
|
7
7
|
const _hoisted_1 = {
|
8
8
|
key: 0,
|
@@ -84,6 +84,11 @@ const _sfc_main = {
|
|
84
84
|
const updateFirstUse = (value) => {
|
85
85
|
FirstUse.value = value;
|
86
86
|
};
|
87
|
+
onBeforeMount(async () => {
|
88
|
+
const { value } = await Preferences.get({ key: "darkmode" });
|
89
|
+
const isDarkMode = value ? JSON.parse(value) : false;
|
90
|
+
actions.setTheme(isDarkMode);
|
91
|
+
});
|
87
92
|
onMounted(async () => {
|
88
93
|
await getFirstUse();
|
89
94
|
if (page) show.value = true;
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"App.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/layouts/App.vue"],"sourcesContent":["<template>\n <transition \n name=\"scaleTransition\" \n mode=\"out-in\"\n >\n <section \n v-if=\"FirstUse && route.meta.walkthrough\"\n class=\"w-100 h-100\" \n >\n <component \n :is=\"route.meta.walkthrough\"\n name=\"Walkthrough\"\n @updateFirstUse=\"updateFirstUse\" \n :slides=\"[1,2,3]\" \n class=\"tab\"\n >\n </component>\n </section>\n </transition>\n\n <transition name=\"moveFromTop\" mode=\"out-in\" appear>\n <component\n v-if=\"route.meta.sidebar && globals.state.isOpenSidebar\"\n :is=\"route.meta.sidebar\"\n :stateSidebar=\"globals.state.isOpenSidebar\" \n @closeSidebar=\"() => { \n globals.state.isOpenSidebar = !globals.state.isOpenSidebar \n }\"\n\n class=\"transition-ease-in-out pos-absolute w-70 z-index-0 bg-light\"\n :class=\"{\n 'pos-l-70-negative': !globals.state.isOpenSidebar,\n 'pos-l-0': globals.state.isOpenSidebar\n }\"\n v-slot=\"{ Component }\"\n >\n <component\n v-if=\"route.meta.navigation\"\n :is=\"route.meta.navigation\"\n class=\"h3 pd-big cols-1\" \n />\n </component>\n </transition>\n\n <router-view \n v-slot=\"{ Component }\"\n :class=\"{\n 'pos-l-70': globals.state.isOpenSidebar,\n 'pos-l-0': !globals.state.isOpenSidebar,\n 'pd-t-extra': MOBILE_APP === 'ios'\n }\"\n @click=\"globals.state.isOpenSidebar ? a => globals.state.isOpenSidebar = false : a => {console.log('not succes')}\"\n class=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative\"\n >\n <component ref=\"page\" :is=\"Component\"/>\n </router-view>\n</template>\n\n<script setup>\n import { computed, ref, onMounted, defineAsyncComponent } from 'vue'\n import { useHead } from '@unhead/vue'\n import { useI18n } from 'vue-i18n'\n import { useRoute } from 'vue-router'\n\n import * as globals from '@pf/src/modules/globals/views/store/globals'\n\n const props = defineProps({\n messages: {\n type: Object,\n required: true\n },\n logotype: {\n type: Object\n },\n })\n /////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n /////////////////////////////\n // META\n /////////////////////////////\n const { t, locale } = useI18n({\n messages: props.messages\n })\n\n const current_url = computed(() => removeTrailingSlash(`${base_url}${route.path}`));\n\n const route = useRoute();\n\n const languages = ['en', 'ru'];\n const base_url = 'https://weeder.delivery';\n\n function removeTrailingSlash(url) {\n return url.endsWith('/') ? url.slice(0, -1) : url;\n }\n // Используйте эту функцию, чтобы удалить слэш в конце URL\n const metadata = computed(() => {return {\n title: t('meta.title'),\n description: t('meta.description'),\n meta: [\n { charset: 'utf-8' },\n { name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no' },\n { hid: 'description', name: 'description', content: t('meta.description') },\n { hid: 'keywords', name: 'keywords', content: t('meta.keywords') },\n { hid: 'og:title', property: 'og:title', content: t('meta.og.title') },\n { hid: 'og:description', property: 'og:description', content: t('meta.og.description') },\n { hid: 'og:image', property: 'og:image', content: base_url + '/favicon/cover.jpg' },\n { hid: 'og:url', property: 'og:url', content: current_url.value },\n { hid: 'twitter:title', name: 'twitter:title', content: t('meta.twitter.title') },\n { hid: 'twitter:description', name: 'twitter:description', content: t('meta.twitter.description') },\n { hid: 'twitter:image', name: 'twitter:image', content: base_url + '/favicon/cover.jpg' },\n { hid: 'twitter:card', name: 'twitter:card', content: t('meta.twitter.card') },\n ],\n link: [\n { hid: 'canonical', rel: 'canonical', href: current_url.value },\n ...generateAlternateLinks.value,\n ],\n htmlAttrs: { lang: t('meta.htmlAttrs.lang')}\n }});\n\n const generateAlternateLinks = computed(() => {\n return languages.map(lang => {\n let newPath = route.path;\n\n if (route.params.locale) {\n newPath = newPath.replace(`/${route.params.locale}`, `/${lang}`);\n } else {\n newPath = `/${lang}${newPath}`;\n }\n const href = removeTrailingSlash(`${base_url}${newPath}`);\n return { \n hid: 'alternate', \n rel: 'alternate', \n hreflang: lang, \n href: href\n };\n });\n });\n\n useHead(metadata.value)\n /////////////////////////////\n // FIRST USE\n /////////////////////////////\n const FirstUse = ref(false);\n\n import { Preferences } from '@capacitor/preferences';\n\n async function getFirstUse() {\n const ret = await Preferences.get({ key: 'first-use' });\n FirstUse.value = ret.value ? JSON.parse(ret.value) : true;\n }\n\n const updateFirstUse = (value) => {\n FirstUse.value = value;\n }\n\n onMounted(async () => {\n await getFirstUse()\n if (page) show.value = true\n });\n</script>"],"names":[],"mappings":";;;;;;;;;;AA8FE,MAAM,WAAW;;;;;;;;;;;;;AA5BjB,UAAM,QAAQ;AAad,QAAI,OAAO,IAAI,KAAK;AAEpB,UAAM,OAAO,IAAI,IAAI;AAIrB,UAAM,EAAE,GAAG,OAAQ,IAAG,QAAQ;AAAA,MAC5B,UAAU,MAAM;AAAA,IACpB,CAAG;AAED,UAAM,cAAc,SAAS,MAAM,oBAAoB,GAAG,QAAQ,GAAG,MAAM,IAAI,EAAE,CAAC;AAElF,UAAM,QAAQ;AAEd,UAAM,YAAY,CAAC,MAAM,IAAI;AAG7B,aAAS,oBAAoB,KAAK;AAChC,aAAO,IAAI,SAAS,GAAG,IAAI,IAAI,MAAM,GAAG,EAAE,IAAI;AAAA,IAC/C;AAED,UAAM,WAAW,SAAS,MAAM;AAAC,aAAO;AAAA,QACtC,OAAO,EAAE,YAAY;AAAA,QACrB,aAAa,EAAE,kBAAkB;AAAA,QACjC,MAAM;AAAA,UACF,EAAE,SAAS,QAAS;AAAA,UACpB,EAAE,MAAM,YAAY,SAAS,wDAAyD;AAAA,UACtF,EAAE,KAAK,eAAe,MAAM,eAAe,SAAS,EAAE,kBAAkB,EAAG;AAAA,UAC3E,EAAE,KAAK,YAAY,MAAM,YAAY,SAAS,EAAE,eAAe,EAAG;AAAA,UAClE,EAAE,KAAK,YAAY,UAAU,YAAY,SAAS,EAAE,eAAe,EAAG;AAAA,UACtE,EAAE,KAAK,kBAAkB,UAAU,kBAAkB,SAAS,EAAE,qBAAqB,EAAG;AAAA,UACxF,EAAE,KAAK,YAAY,UAAU,YAAY,SAAS,WAAW,qBAAsB;AAAA,UACnF,EAAE,KAAK,UAAU,UAAU,UAAU,SAAS,YAAY,MAAO;AAAA,UACjE,EAAE,KAAK,iBAAiB,MAAM,iBAAiB,SAAS,E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C3B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"App.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/layouts/App.vue"],"sourcesContent":["<template>\n <transition \n name=\"scaleTransition\" \n mode=\"out-in\"\n >\n <section \n v-if=\"FirstUse && route.meta.walkthrough\"\n class=\"w-100 h-100\" \n >\n <component \n :is=\"route.meta.walkthrough\"\n name=\"Walkthrough\"\n @updateFirstUse=\"updateFirstUse\" \n :slides=\"[1,2,3]\" \n class=\"tab\"\n >\n </component>\n </section>\n </transition>\n\n <transition name=\"moveFromTop\" mode=\"out-in\" appear>\n <component\n v-if=\"route.meta.sidebar && globals.state.isOpenSidebar\"\n :is=\"route.meta.sidebar\"\n :stateSidebar=\"globals.state.isOpenSidebar\" \n @closeSidebar=\"() => { \n globals.state.isOpenSidebar = !globals.state.isOpenSidebar \n }\"\n\n class=\"transition-ease-in-out pos-absolute w-70 z-index-0 bg-light\"\n :class=\"{\n 'pos-l-70-negative': !globals.state.isOpenSidebar,\n 'pos-l-0': globals.state.isOpenSidebar\n }\"\n v-slot=\"{ Component }\"\n >\n <component\n v-if=\"route.meta.navigation\"\n :is=\"route.meta.navigation\"\n class=\"h3 pd-big cols-1\" \n />\n </component>\n </transition>\n\n <router-view \n v-slot=\"{ Component }\"\n :class=\"{\n 'pos-l-70': globals.state.isOpenSidebar,\n 'pos-l-0': !globals.state.isOpenSidebar,\n 'pd-t-extra': MOBILE_APP === 'ios'\n }\"\n @click=\"globals.state.isOpenSidebar ? a => globals.state.isOpenSidebar = false : a => { console.log('not succes') }\"\n class=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative\"\n >\n <component ref=\"page\" :is=\"Component\"/>\n </router-view>\n</template>\n\n<script setup>\n import { computed, ref, onMounted, defineAsyncComponent, onBeforeMount } from 'vue'\n import { useHead } from '@unhead/vue'\n import { useI18n } from 'vue-i18n'\n import { useRoute } from 'vue-router'\n\n import * as globals from '@pf/src/modules/globals/views/store/globals'\n\n const props = defineProps({\n messages: {\n type: Object,\n required: true\n },\n logotype: {\n type: Object\n },\n })\n /////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n /////////////////////////////\n // META\n /////////////////////////////\n const { t, locale } = useI18n({\n messages: props.messages\n })\n\n const current_url = computed(() => removeTrailingSlash(`${base_url}${route.path}`));\n\n const route = useRoute();\n\n const languages = ['en', 'ru'];\n const base_url = 'https://weeder.delivery';\n\n function removeTrailingSlash(url) {\n return url.endsWith('/') ? url.slice(0, -1) : url;\n }\n // Используйте эту функцию, чтобы удалить слэш в конце URL\n const metadata = computed(() => {return {\n title: t('meta.title'),\n description: t('meta.description'),\n meta: [\n { charset: 'utf-8' },\n { name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no' },\n { hid: 'description', name: 'description', content: t('meta.description') },\n { hid: 'keywords', name: 'keywords', content: t('meta.keywords') },\n { hid: 'og:title', property: 'og:title', content: t('meta.og.title') },\n { hid: 'og:description', property: 'og:description', content: t('meta.og.description') },\n { hid: 'og:image', property: 'og:image', content: base_url + '/favicon/cover.jpg' },\n { hid: 'og:url', property: 'og:url', content: current_url.value },\n { hid: 'twitter:title', name: 'twitter:title', content: t('meta.twitter.title') },\n { hid: 'twitter:description', name: 'twitter:description', content: t('meta.twitter.description') },\n { hid: 'twitter:image', name: 'twitter:image', content: base_url + '/favicon/cover.jpg' },\n { hid: 'twitter:card', name: 'twitter:card', content: t('meta.twitter.card') },\n ],\n link: [\n { hid: 'canonical', rel: 'canonical', href: current_url.value },\n ...generateAlternateLinks.value,\n ],\n htmlAttrs: { lang: t('meta.htmlAttrs.lang')}\n }});\n\n const generateAlternateLinks = computed(() => {\n return languages.map(lang => {\n let newPath = route.path;\n\n if (route.params.locale) {\n newPath = newPath.replace(`/${route.params.locale}`, `/${lang}`);\n } else {\n newPath = `/${lang}${newPath}`;\n }\n const href = removeTrailingSlash(`${base_url}${newPath}`);\n return { \n hid: 'alternate', \n rel: 'alternate', \n hreflang: lang, \n href: href\n };\n });\n });\n\n useHead(metadata.value)\n /////////////////////////////\n // FIRST USE\n /////////////////////////////\n const FirstUse = ref(false);\n\n import { Preferences } from '@capacitor/preferences';\n\n async function getFirstUse() {\n const ret = await Preferences.get({ key: 'first-use' });\n FirstUse.value = ret.value ? JSON.parse(ret.value) : true;\n }\n\n const updateFirstUse = (value) => {\n FirstUse.value = value;\n }\n\n onBeforeMount(async()=>{\n const { value } = await Preferences.get({ key: 'darkmode' });\n const isDarkMode = value ? JSON.parse(value) : false;\n \n // Устанавливаем тему\n globals.actions.setTheme(isDarkMode);\n })\n\n onMounted(async () => {\n await getFirstUse()\n if (page) show.value = true\n });\n</script>"],"names":["globals.actions"],"mappings":";;;;;;;;;;AA8FE,MAAM,WAAW;;;;;;;;;;;;;AA5BjB,UAAM,QAAQ;AAad,QAAI,OAAO,IAAI,KAAK;AAEpB,UAAM,OAAO,IAAI,IAAI;AAIrB,UAAM,EAAE,GAAG,OAAQ,IAAG,QAAQ;AAAA,MAC5B,UAAU,MAAM;AAAA,IACpB,CAAG;AAED,UAAM,cAAc,SAAS,MAAM,oBAAoB,GAAG,QAAQ,GAAG,MAAM,IAAI,EAAE,CAAC;AAElF,UAAM,QAAQ;AAEd,UAAM,YAAY,CAAC,MAAM,IAAI;AAG7B,aAAS,oBAAoB,KAAK;AAChC,aAAO,IAAI,SAAS,GAAG,IAAI,IAAI,MAAM,GAAG,EAAE,IAAI;AAAA,IAC/C;AAED,UAAM,WAAW,SAAS,MAAM;AAAC,aAAO;AAAA,QACtC,OAAO,EAAE,YAAY;AAAA,QACrB,aAAa,EAAE,kBAAkB;AAAA,QACjC,MAAM;AAAA,UACF,EAAE,SAAS,QAAS;AAAA,UACpB,EAAE,MAAM,YAAY,SAAS,wDAAyD;AAAA,UACtF,EAAE,KAAK,eAAe,MAAM,eAAe,SAAS,EAAE,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,UACV;AAAA,QACR;AAAA,MACA,CAAK;AAAA,IACL,CAAG;AAED,YAAQ,SAAS,KAAK;AAItB,UAAM,WAAW,IAAI,KAAK;AAI1B,mBAAe,cAAc;AAC3B,YAAM,MAAM,MAAM,YAAY,IAAI,EAAE,KAAK,YAAW,CAAE;AACtD,eAAS,QAAQ,IAAI,QAAQ,KAAK,MAAM,IAAI,KAAK,IAAI;AAAA,IACtD;AAED,UAAM,iBAAiB,CAAC,UAAU;AAChC,eAAS,QAAQ;AAAA,IAClB;AAED,kBAAc,YAAS;AACrB,YAAM,EAAE,MAAO,IAAG,MAAM,YAAY,IAAI,EAAE,KAAK,WAAU,CAAE;AAC3D,YAAM,aAAa,QAAQ,KAAK,MAAM,KAAK,IAAI;AAG/CA,cAAgB,SAAS,UAAU;AAAA,IACvC,CAAG;AAED,cAAU,YAAY;AACpB,YAAM,YAAa;AACnB,UAAI,KAAM,MAAK,QAAQ;AAAA,IAC3B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs
CHANGED
@@ -5,7 +5,7 @@ const vueRouter = require("vue-router");
|
|
5
5
|
const globals = require("../../store/globals.cjs");
|
6
6
|
const Status = require("../../../../../components/Status/Status.vue.cjs");
|
7
7
|
const Popup = require("../../../../../components/Popup/Popup.vue.cjs");
|
8
|
-
const Loader = require("../../../../../components/Loader/Loader.
|
8
|
+
const Loader = require("../../../../../components/Loader/Loader.vue2.cjs");
|
9
9
|
const NavigationBar = require("../partials/NavigationBar.vue.cjs");
|
10
10
|
const LocationSelection = require("../partials/LocationSelection.vue.cjs");
|
11
11
|
const ShopCart = require("../../../../orders/components/partials/ShopCart.vue.cjs");
|
@@ -41,7 +41,6 @@ const _sfc_main = {
|
|
41
41
|
scrollOffset.value = event.target.scrollTop;
|
42
42
|
if (scrollOffset.value > 50 && !isScrolled) {
|
43
43
|
isScrolled = true;
|
44
|
-
header.value.$el.classList.add("scrolled");
|
45
44
|
const firstRect = header.value.$el.getBoundingClientRect();
|
46
45
|
const invert = -firstRect.top;
|
47
46
|
header.value.$el.style.transform = `translateY(${invert}px)`;
|
@@ -50,7 +49,6 @@ const _sfc_main = {
|
|
50
49
|
}, 0);
|
51
50
|
} else if (scrollOffset.value <= 75 && isScrolled) {
|
52
51
|
isScrolled = false;
|
53
|
-
header.value.$el.classList.remove("scrolled");
|
54
52
|
const firstRect = header.value.$el.getBoundingClientRect();
|
55
53
|
const invert = firstRect.top;
|
56
54
|
header.value.$el.style.transform = `translateY(${invert}px)`;
|
@@ -81,6 +79,7 @@ const _sfc_main = {
|
|
81
79
|
if (page.value) show.value = true;
|
82
80
|
});
|
83
81
|
return (_ctx, _cache) => {
|
82
|
+
var _a, _b;
|
84
83
|
const _component_router_view = vue.resolveComponent("router-view");
|
85
84
|
const _component_BottomNavigation = vue.resolveComponent("BottomNavigation");
|
86
85
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
@@ -135,7 +134,8 @@ const _sfc_main = {
|
|
135
134
|
]),
|
136
135
|
_: 1
|
137
136
|
}),
|
138
|
-
vue.
|
137
|
+
vue.unref(route).meta.header.location ? (vue.openBlock(), vue.createBlock(Popup.default, {
|
138
|
+
key: 1,
|
139
139
|
onClosePopup: closeLocationPopup,
|
140
140
|
isPopupOpen: globals.state.isOpenLocationPopup,
|
141
141
|
class: "bg-white pd-semi w-m-33r radius-big"
|
@@ -144,7 +144,7 @@ const _sfc_main = {
|
|
144
144
|
vue.createVNode(LocationSelection.default)
|
145
145
|
]),
|
146
146
|
_: 1
|
147
|
-
}, 8, ["isPopupOpen"]),
|
147
|
+
}, 8, ["isPopupOpen"])) : vue.createCommentVNode("", true),
|
148
148
|
vue.createElementVNode("section", {
|
149
149
|
id: "screen",
|
150
150
|
ref: "screen",
|
@@ -183,10 +183,18 @@ const _sfc_main = {
|
|
183
183
|
}, 8, ["class"])
|
184
184
|
]),
|
185
185
|
_: 1
|
186
|
-
}))
|
186
|
+
})),
|
187
|
+
vue.createVNode(_component_router_view, { name: "defaultBottom" }, {
|
188
|
+
default: vue.withCtx(({ Component, route: route2 }) => [
|
189
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(Component)))
|
190
|
+
]),
|
191
|
+
_: 1
|
192
|
+
}),
|
193
|
+
((_a = vue.unref(route).meta.radio) == null ? void 0 : _a.page) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(route).meta.radio.page), { key: 0 })) : vue.createCommentVNode("", true)
|
187
194
|
], 544),
|
195
|
+
((_b = vue.unref(route).meta.radio) == null ? void 0 : _b.player) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(route).meta.radio.player), { key: 2 })) : vue.createCommentVNode("", true),
|
188
196
|
_ctx.MOBILE_APP && vue.unref(route).meta.title_hide ? (vue.openBlock(), vue.createBlock(_component_BottomNavigation, {
|
189
|
-
key:
|
197
|
+
key: 3,
|
190
198
|
class: "pd-small z-index-2"
|
191
199
|
})) : vue.createCommentVNode("", true)
|
192
200
|
]);
|