@ozdao/prometheus-framework 0.2.212 → 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/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
- 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/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/modules/auth/views/components/layouts/Auth.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +3 -3
- 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/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.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/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +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/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 +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- 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/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/ButtonCheck.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +2 -2
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +4 -4
- 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/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +2 -2
- 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/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.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 +3 -3
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +5 -5
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +5 -5
- 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/FormAddCustomer.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.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 +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +3 -3
- 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.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +1015 -1015
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +1015 -1015
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- 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/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 +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +3 -3
- 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/ProductEdit.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +3 -3
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- 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/reports/components/sections/FormReport.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +2 -2
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +3 -3
- 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 +16 -6
- 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 +20 -10
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js.map +1 -1
- 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/views/components/blocks/CardDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- 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/users/components/pages/ProfileEdit.vue +11 -0
@@ -8,7 +8,6 @@ const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
|
8
8
|
const CardBlogpost = require("../blocks/CardBlogpost.vue.cjs");
|
9
9
|
const blogposts = require("../../store/blogposts.cjs");
|
10
10
|
const auth = require("../../../auth/views/store/auth.cjs");
|
11
|
-
const _hoisted_1 = { class: "bg-white" };
|
12
11
|
const _sfc_main = {
|
13
12
|
__name: "Blog",
|
14
13
|
setup(__props) {
|
@@ -38,7 +37,7 @@ const _sfc_main = {
|
|
38
37
|
router.replace({ query });
|
39
38
|
}, { deep: true });
|
40
39
|
return (_ctx, _cache) => {
|
41
|
-
return vue.openBlock(), vue.createElementBlock("section",
|
40
|
+
return vue.openBlock(), vue.createElementBlock("section", null, [
|
42
41
|
vue.createVNode(Feed.default, {
|
43
42
|
sort: blogposts.state.sort,
|
44
43
|
"onUpdate:sort": _cache[0] || (_cache[0] = ($event) => blogposts.state.sort = $event),
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -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
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
6
|
+
;/* empty css */
|
6
7
|
;/* empty css */
|
7
8
|
;/* empty css */
|
8
|
-
;/* empty css */
|
9
9
|
require("axios");
|
10
10
|
;/* empty css */
|
11
11
|
const CardBlogpost = require("../blocks/CardBlogpost.vue.cjs");
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { withAsyncContext, ref, computed, openBlock, createElementBlock, createElementVNode, unref, Fragment, renderList, createBlock, withCtx, pushScopeId, popScopeId } from "vue";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
/* empty css */
|
4
5
|
/* empty css */
|
5
6
|
/* 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
@@ -4,14 +4,14 @@ const vue = require("vue");
|
|
4
4
|
require("isomorphic-dompurify");
|
5
5
|
;/* empty css */
|
6
6
|
const Constructor = require("../../../constructor/components/sections/Constructor.vue.cjs");
|
7
|
-
const Popup = require("../../../../components/Popup/Popup.
|
7
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
8
8
|
;/* empty css */
|
9
9
|
;/* empty css */
|
10
10
|
const BlockTags = require("../../../../components/FieldTags/BlockTags.vue.cjs");
|
11
11
|
const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
|
12
|
-
const Field = require("../../../../components/Field/Field.
|
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
@@ -2,14 +2,14 @@ import { ref, onMounted, computed, openBlock, createElementBlock, createElementV
|
|
2
2
|
import "isomorphic-dompurify";
|
3
3
|
/* empty css */
|
4
4
|
import _sfc_main$1 from "../../../constructor/components/sections/Constructor.vue.js";
|
5
|
-
import _sfc_main$2 from "../../../../components/Popup/Popup.
|
5
|
+
import _sfc_main$2 from "../../../../components/Popup/Popup.vue.js";
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$3 from "../../../../components/FieldTags/BlockTags.vue.js";
|
9
9
|
import _sfc_main$4 from "../../../../components/Checkbox/Checkbox.vue.js";
|
10
|
-
import Field from "../../../../components/Field/Field.
|
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
@@ -4,8 +4,8 @@ const vue = require("vue");
|
|
4
4
|
;/* empty css */
|
5
5
|
;/* empty css */
|
6
6
|
;/* empty css */
|
7
|
-
;/* empty css
|
8
|
-
;/* empty css
|
7
|
+
;/* 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");
|
@@ -2,8 +2,8 @@ import { resolveComponent, openBlock, createElementBlock, createElementVNode, cr
|
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
/* empty css */
|
5
|
-
/* empty css
|
6
|
-
/* empty css
|
5
|
+
/* 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";
|
@@ -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 Field = require("../../../../components/Field/Field.
|
4
|
+
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
5
5
|
const _hoisted_1 = { class: "mn-b-thin w-100 pd-medium bg-white radius-medium" };
|
6
6
|
const _hoisted_2 = ["innerHTML"];
|
7
7
|
const _hoisted_3 = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, openBlock, createElementBlock, createVNode, createElementVNode } from "vue";
|
2
|
-
import Field from "../../../../components/Field/Field.
|
2
|
+
import Field from "../../../../components/Field/Field.vue2.js";
|
3
3
|
const _hoisted_1 = { class: "mn-b-thin w-100 pd-medium bg-white radius-medium" };
|
4
4
|
const _hoisted_2 = ["innerHTML"];
|
5
5
|
const _hoisted_3 = {
|
package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const vueQrcodeReader = require("../../../../../../node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs");
|
5
|
-
const Popup = require("../../../../components/Popup/Popup.
|
6
|
-
const Button = require("../../../../components/Button/Button.
|
5
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
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
|
-
import _sfc_main$2 from "../../../../components/Popup/Popup.
|
4
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
3
|
+
import _sfc_main$2 from "../../../../components/Popup/Popup.vue.js";
|
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 */
|
@@ -8,15 +8,15 @@ const vueDatepicker = require("../../../../../../node_modules/@vuepic/vue-datepi
|
|
8
8
|
;/* empty css */
|
9
9
|
;/* empty css */
|
10
10
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
11
|
-
const Popup = require("../../../../components/Popup/Popup.
|
12
|
-
const Field = require("../../../../components/Field/Field.
|
11
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
12
|
+
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
13
13
|
const BlockTags = require("../../../../components/FieldTags/BlockTags.vue.cjs");
|
14
14
|
const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
|
15
15
|
const SelectMulti = require("../../../../components/SelectMulti/SelectMulti.vue.cjs");
|
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");
|
@@ -6,15 +6,15 @@ import Vn from "../../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-d
|
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$4 from "../../../../components/Block/Block.vue.js";
|
9
|
-
import _sfc_main$7 from "../../../../components/Popup/Popup.
|
10
|
-
import Field from "../../../../components/Field/Field.
|
9
|
+
import _sfc_main$7 from "../../../../components/Popup/Popup.vue.js";
|
10
|
+
import Field from "../../../../components/Field/Field.vue2.js";
|
11
11
|
import _sfc_main$8 from "../../../../components/FieldTags/BlockTags.vue.js";
|
12
12
|
import _sfc_main$2 from "../../../../components/Checkbox/Checkbox.vue.js";
|
13
13
|
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
@@ -3,9 +3,9 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const vue = require("vue");
|
4
4
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
5
5
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
6
|
-
const Popup = require("../../../../components/Popup/Popup.
|
7
|
-
const Field = require("../../../../components/Field/Field.
|
8
|
-
const Button = require("../../../../components/Button/Button.
|
6
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
7
|
+
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
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
@@ -1,9 +1,9 @@
|
|
1
1
|
import { ref, onMounted, unref, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, Fragment, renderList, createTextVNode, toDisplayString, createBlock, createCommentVNode } from "vue";
|
2
2
|
import _sfc_main$6 from "../../../../components/Feed/Feed.vue.js";
|
3
3
|
import _sfc_main$2 from "../../../../components/Block/Block.vue.js";
|
4
|
-
import _sfc_main$1 from "../../../../components/Popup/Popup.
|
5
|
-
import Field from "../../../../components/Field/Field.
|
6
|
-
import _sfc_main$5 from "../../../../components/Button/Button.
|
4
|
+
import _sfc_main$1 from "../../../../components/Popup/Popup.vue.js";
|
5
|
+
import Field from "../../../../components/Field/Field.vue2.js";
|
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";
|
@@ -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 Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
5
|
-
const Popup = require("../../../../components/Popup/Popup.
|
5
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
6
6
|
const PhotoViewer = require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs");
|
7
7
|
const SectionPageTitle = require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs");
|
8
8
|
const gallery = require("../../store/gallery.cjs");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref, openBlock, createElementBlock, createVNode, withCtx, unref, isRef, Fragment, renderList, createElementVNode } from "vue";
|
2
2
|
import _sfc_main$4 from "../../../../components/Feed/Feed.vue.js";
|
3
|
-
import _sfc_main$2 from "../../../../components/Popup/Popup.
|
3
|
+
import _sfc_main$2 from "../../../../components/Popup/Popup.vue.js";
|
4
4
|
import _sfc_main$3 from "../../../../components/PhotoViewer/PhotoViewer.vue.js";
|
5
5
|
import _sfc_main$1 from "../../../globals/views/components/sections/SectionPageTitle.vue.js";
|
6
6
|
import gallery from "../../store/gallery.js";
|
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const vueRouter = require("vue-router");
|
5
|
-
;/* empty css
|
6
|
-
const Button = require("../../../../components/Button/Button.
|
7
|
-
;/* empty css
|
5
|
+
;/* empty css */
|
6
|
+
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
7
|
+
;/* empty css */
|
8
8
|
const Chips = require("../../../../components/Chips/Chips.vue.cjs");
|
9
9
|
;/* empty css */
|
10
|
-
const Popup = require("../../../../components/Popup/Popup.
|
10
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
11
11
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
12
12
|
const PhotoViewer = require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs");
|
13
13
|
const auth = require("../../../auth/views/store/auth.cjs");
|
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js
CHANGED
@@ -1,11 +1,11 @@
|
|
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
|
-
/* empty css
|
4
|
-
import _sfc_main$9 from "../../../../components/Button/Button.
|
5
|
-
/* empty css
|
3
|
+
/* empty css */
|
4
|
+
import _sfc_main$9 from "../../../../components/Button/Button.vue2.js";
|
5
|
+
/* empty css */
|
6
6
|
import _sfc_main$4 from "../../../../components/Chips/Chips.vue.js";
|
7
7
|
/* empty css */
|
8
|
-
import _sfc_main$5 from "../../../../components/Popup/Popup.
|
8
|
+
import _sfc_main$5 from "../../../../components/Popup/Popup.vue.js";
|
9
9
|
import _sfc_main$2 from "../../../../components/Feed/Feed.vue.js";
|
10
10
|
import _sfc_main$6 from "../../../../components/PhotoViewer/PhotoViewer.vue.js";
|
11
11
|
import { state } from "../../../auth/views/store/auth.js";
|
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/BlockSearch.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 IconSearch = require("../../../../icons/navigation/IconSearch.vue.cjs");
|
5
|
-
const Field = require("../../../../../components/Field/Field.
|
5
|
+
const Field = require("../../../../../components/Field/Field.vue2.cjs");
|
6
6
|
const _hoisted_1 = { class: "flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-big" };
|
7
7
|
const _sfc_main = {
|
8
8
|
__name: "BlockSearch",
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref, openBlock, createElementBlock, createVNode } from "vue";
|
2
2
|
import _sfc_main$1 from "../../../../icons/navigation/IconSearch.vue.js";
|
3
|
-
import Field from "../../../../../components/Field/Field.
|
3
|
+
import Field from "../../../../../components/Field/Field.vue2.js";
|
4
4
|
const _hoisted_1 = { class: "flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-big" };
|
5
5
|
const _sfc_main = {
|
6
6
|
__name: "BlockSearch",
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs
CHANGED
@@ -7,7 +7,7 @@ const FormReport = require("../../../../reports/components/sections/FormReport.v
|
|
7
7
|
const Tooltip = require("../../../../../components/Tooltip/Tooltip.vue2.cjs");
|
8
8
|
const Dropdown = require("../../../../../components/Dropdown/Dropdown.vue.cjs");
|
9
9
|
;/* empty css */
|
10
|
-
;/* 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
@@ -5,7 +5,7 @@ import _sfc_main$4 from "../../../../reports/components/sections/FormReport.vue.
|
|
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
7
|
/* empty css */
|
8
|
-
/* 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,UACF,EAAE,SAAS,QAAS;AAAA,UACpB,EAAE,MAAM,YAAY,SAAS,wDAAyD;AAAA,UACtF,EAAE,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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;AAEpB,UAAM,OAAOA,IAAG,IAAC,IAAI;AAIrB,UAAM,EAAE,GAAG,OAAQ,IAAGC,gBAAQ;A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -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 getFirstU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;;;;;;;"}
|
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,kBAAkB,EAAG;AAAA,UAC3E,EAAE,KAAK,YAAY,MAAM,YAAY,SAAS,EAAE,eAAe,EAAG;AAA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