@ozdao/prometheus-framework 0.2.225 → 0.2.227
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +2 -2
- package/dist/builder.mjs +2 -2
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Status/Status.vue.cjs +7 -2
- package/dist/prometheus-framework/src/components/Status/Status.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Status/Status.vue.js +7 -2
- package/dist/prometheus-framework/src/components/Status/Status.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +4 -0
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.js +4 -0
- package/dist/prometheus-framework/src/modules/auth/auth.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +5 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +5 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
- 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/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/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- 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/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/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 +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -1
- 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 +2 -1
- 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/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/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- 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/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.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/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/Members.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +526 -526
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +526 -526
- 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/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- 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/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/EditLeftover.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- 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/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +8 -3
- package/dist/tickets.controller-BGJZtL9V.mjs +408 -0
- package/dist/tickets.controller-DUsBFD24.js +407 -0
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/package.json +1 -1
- package/src/builder/templates/page.js +1 -1
- package/src/builder/webpack/webpack.config.spa.js +1 -1
- package/src/components/Status/Status.vue +4 -2
- package/src/modules/auth/auth.client.js +13 -0
- package/src/modules/events/controllers/utils/templateEmail.js +1 -1
- package/src/modules/events/controllers/utils/templateTicket.js +25 -19
- package/src/modules/globals/views/components/layouts/Client.vue +1 -0
package/dist/builder.js
CHANGED
@@ -62,7 +62,7 @@ var page = `
|
|
62
62
|
<link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#5bbad5">
|
63
63
|
<meta name="msapplication-TileColor" content="#000000">
|
64
64
|
<meta name="theme-color" content="#ffffff">
|
65
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
|
65
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
66
66
|
{{{ head }}}
|
67
67
|
<!-- Sign in with Apple -->
|
68
68
|
<!-- <script type="text/javascript" src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"></script> -->
|
@@ -727,7 +727,7 @@ var webpack_config_spa = (projectRoot) => {
|
|
727
727
|
htmlAttrs: 'lang="en"',
|
728
728
|
headAttrs: "",
|
729
729
|
bodyAttrs: "",
|
730
|
-
head: '<meta name="description" content="Example">',
|
730
|
+
// head: '<meta name="description" content="Example">',
|
731
731
|
body: ""
|
732
732
|
};
|
733
733
|
const data = {
|
package/dist/builder.mjs
CHANGED
@@ -39,7 +39,7 @@ var page = `
|
|
39
39
|
<link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#5bbad5">
|
40
40
|
<meta name="msapplication-TileColor" content="#000000">
|
41
41
|
<meta name="theme-color" content="#ffffff">
|
42
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
|
42
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
43
43
|
{{{ head }}}
|
44
44
|
<!-- Sign in with Apple -->
|
45
45
|
<!-- <script type="text/javascript" src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"></script> -->
|
@@ -704,7 +704,7 @@ var webpack_config_spa = (projectRoot) => {
|
|
704
704
|
htmlAttrs: 'lang="en"',
|
705
705
|
headAttrs: "",
|
706
706
|
bodyAttrs: "",
|
707
|
-
head: '<meta name="description" content="Example">',
|
707
|
+
// head: '<meta name="description" content="Example">',
|
708
708
|
body: ""
|
709
709
|
};
|
710
710
|
const data = {
|
package/dist/events.server.js
CHANGED
@@ -6,7 +6,7 @@ const queryProcessor$2 = require("./queryProcessor-CcsJEUBr.js");
|
|
6
6
|
const metadata_schema = require("./metadata.schema-6slGhpQS.js");
|
7
7
|
const require$$1 = require("stripe");
|
8
8
|
const index = require("./index-CsS7qx1d.js");
|
9
|
-
const tickets_controller = require("./tickets.controller-
|
9
|
+
const tickets_controller = require("./tickets.controller-DUsBFD24.js");
|
10
10
|
const common_schema = require("./common.schema-BFhpUXUt.js");
|
11
11
|
const engagement_schema = require("./engagement.schema-D-9md46B.js");
|
12
12
|
const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
|
package/dist/events.server.mjs
CHANGED
@@ -4,7 +4,7 @@ import { q as queryProcessor$2 } from "./queryProcessor-CU4A6Y4N.mjs";
|
|
4
4
|
import { s as seoFriendlyUrl, m as metadata_schema } from "./metadata.schema-CK5e2O3f.mjs";
|
5
5
|
import require$$1 from "stripe";
|
6
6
|
import { m as middlewares } from "./index-UIHE6Rk3.mjs";
|
7
|
-
import { t as tickets_controller } from "./tickets.controller-
|
7
|
+
import { t as tickets_controller } from "./tickets.controller-BGJZtL9V.mjs";
|
8
8
|
import { c as common_schema } from "./common.schema-ChBVARrs.mjs";
|
9
9
|
import { e as engagement_schema } from "./engagement.schema-CCdSLKd4.mjs";
|
10
10
|
import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
|
@@ -15,7 +15,12 @@ const _sfc_main = {
|
|
15
15
|
show: Boolean,
|
16
16
|
data: Object
|
17
17
|
},
|
18
|
-
|
18
|
+
emits: "close",
|
19
|
+
setup(__props, { emit: __emit }) {
|
20
|
+
const emits = __emit;
|
21
|
+
function closeError() {
|
22
|
+
emits("close");
|
23
|
+
}
|
19
24
|
return (_ctx, _cache) => {
|
20
25
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
21
26
|
vue.createElementVNode("div", _hoisted_2, [
|
@@ -24,7 +29,7 @@ const _sfc_main = {
|
|
24
29
|
_hoisted_4
|
25
30
|
]),
|
26
31
|
vue.createVNode(IconCross.default, {
|
27
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
32
|
+
onClick: _cache[0] || (_cache[0] = ($event) => closeError()),
|
28
33
|
class: "cursor-pointer hover-scale-1 i-regular z-index-5"
|
29
34
|
})
|
30
35
|
])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Status.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Status.vue.cjs","sources":["../../../../../src/components/Status/Status.vue"],"sourcesContent":["<template>\n\t<div class=\"pd-small error-wrapper\">\n\t\t<div class=\"\n\t\t\tflex-nowrap flex\n\t\t\tradius-small\n\t\t\tpd-small\n\t\t\tt-white \n\t\t\tbg-fourth\n\t\t\">\n\t\t\t<p class=\"w-100\">\n\t\t\t\t{{data.message}}\n\t\t\t\t<!-- <span class=\"t-semi\">Ошибка: {{status}} </span> -->\n\t\t\t\t<br>\n\t\t\t\t<!-- <span>Сообщение: {{message}}</span> -->\n\t\t\t</p>\n\t\t\t\n\t\t\t<IconCross @click=\"closeError()\" class=\"cursor-pointer hover-scale-1 i-regular z-index-5\"/>\n\t\t</div>\n\t</div>\n</template>\n\n\n<script setup=\"props\">\n\timport { computed } from 'vue'\n\timport IconCross from '@pf/src/modules/icons/navigation/IconCross.vue';\n\n\tconst emits = defineEmits('close')\n\n\tconst props = defineProps({\n\t status: String,\n\t message: String,\n\t show: Boolean,\n\t data: Object\n\t})\n\n\tfunction closeError () {\n\t\temits('close')\n\t} \n</script>\n\n<style lang=\"scss\">\n\t.error-wrapper {\n\t\tposition: fixed;\n\t\tleft: 0;\n\t\tright: 0;\n\t\topacity: 0.9\n\t}\n</style>\n\n\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AA0BC,UAAM,QAAQ;AASd,aAAS,aAAc;AACtB,YAAM,OAAO;AAAA,IACb;;;;;;;;;;;;;;;;;;"}
|
@@ -13,7 +13,12 @@ const _sfc_main = {
|
|
13
13
|
show: Boolean,
|
14
14
|
data: Object
|
15
15
|
},
|
16
|
-
|
16
|
+
emits: "close",
|
17
|
+
setup(__props, { emit: __emit }) {
|
18
|
+
const emits = __emit;
|
19
|
+
function closeError() {
|
20
|
+
emits("close");
|
21
|
+
}
|
17
22
|
return (_ctx, _cache) => {
|
18
23
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
19
24
|
createElementVNode("div", _hoisted_2, [
|
@@ -22,7 +27,7 @@ const _sfc_main = {
|
|
22
27
|
_hoisted_4
|
23
28
|
]),
|
24
29
|
createVNode(_sfc_main$1, {
|
25
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
30
|
+
onClick: _cache[0] || (_cache[0] = ($event) => closeError()),
|
26
31
|
class: "cursor-pointer hover-scale-1 i-regular z-index-5"
|
27
32
|
})
|
28
33
|
])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Status.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Status.vue.js","sources":["../../../../../src/components/Status/Status.vue"],"sourcesContent":["<template>\n\t<div class=\"pd-small error-wrapper\">\n\t\t<div class=\"\n\t\t\tflex-nowrap flex\n\t\t\tradius-small\n\t\t\tpd-small\n\t\t\tt-white \n\t\t\tbg-fourth\n\t\t\">\n\t\t\t<p class=\"w-100\">\n\t\t\t\t{{data.message}}\n\t\t\t\t<!-- <span class=\"t-semi\">Ошибка: {{status}} </span> -->\n\t\t\t\t<br>\n\t\t\t\t<!-- <span>Сообщение: {{message}}</span> -->\n\t\t\t</p>\n\t\t\t\n\t\t\t<IconCross @click=\"closeError()\" class=\"cursor-pointer hover-scale-1 i-regular z-index-5\"/>\n\t\t</div>\n\t</div>\n</template>\n\n\n<script setup=\"props\">\n\timport { computed } from 'vue'\n\timport IconCross from '@pf/src/modules/icons/navigation/IconCross.vue';\n\n\tconst emits = defineEmits('close')\n\n\tconst props = defineProps({\n\t status: String,\n\t message: String,\n\t show: Boolean,\n\t data: Object\n\t})\n\n\tfunction closeError () {\n\t\temits('close')\n\t} \n</script>\n\n<style lang=\"scss\">\n\t.error-wrapper {\n\t\tposition: fixed;\n\t\tleft: 0;\n\t\tright: 0;\n\t\topacity: 0.9\n\t}\n</style>\n\n\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA0BC,UAAM,QAAQ;AASd,aAAS,aAAc;AACtB,YAAM,OAAO;AAAA,IACb;;;;;;;;;;;;;;;;;"}
|
@@ -3,6 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const auth = require("./views/store/auth.cjs");
|
4
4
|
const twofa = require("./views/store/twofa.cjs");
|
5
5
|
const auth$1 = require("./views/router/auth.cjs");
|
6
|
+
const auth_validation = require("./views/middlewares/auth.validation.cjs");
|
6
7
|
const Auth = require("./views/components/layouts/Auth.vue.cjs");
|
7
8
|
const EnterCode = require("./views/components/pages/EnterCode.vue.cjs");
|
8
9
|
const Invite = require("./views/components/pages/Invite.vue.cjs");
|
@@ -27,6 +28,9 @@ const ModuleAuth = {
|
|
27
28
|
router: {
|
28
29
|
routerAuth: auth$1.default
|
29
30
|
},
|
31
|
+
middlewares: {
|
32
|
+
validationAuth: auth_validation
|
33
|
+
},
|
30
34
|
components: {
|
31
35
|
// Layout
|
32
36
|
Auth: Auth.default,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.client.cjs","sources":["../../../../../src/modules/auth/auth.client.js"],"sourcesContent":["// Store\nimport * as storeAuth from './views/store/auth.js';\nimport * as storeTwofa from './views/store/twofa.js';\n\n// Router\nimport routerAuth from './views/router/auth.js';\n\n// Views\nimport Auth from './views/components/layouts/Auth.vue';\nimport EnterCode from './views/components/pages/EnterCode.vue';\nimport Invite from './views/components/pages/Invite.vue';\nimport EnterPassword from './views/components/pages/EnterPassword.vue';\nimport ResetPassword from './views/components/pages/ResetPassword.vue';\nimport SignUp from './views/components/pages/SignUp.vue';\nimport SignIn from './views/components/pages/SignIn.vue';\n\n// Importing sections components\nimport SliderFeatures from './views/components/sections/SliderFeatures.vue';\n\n// Пример функции инициализации для модуля аутентификации\nfunction initializeAuth(app, store, router, options = {}) {\n const route = options.route || 'Home';\n \n router.addRoute(route, routerAuth);\n \n store.addStore('auth', storeAuth);\n store.addStore('twofa', storeTwofa);\n}\n\nconst ModuleAuth = {\n initialize: initializeAuth,\n views: {\n store: {\n storeAuth,\n storeTwofa\n },\n router: {\n routerAuth\n },\n components: {\n // Layout\n Auth,\n // Pages\n EnterCode,\n Invite,\n EnterPassword,\n ResetPassword,\n SignUp,\n SignIn,\n // Sections\n SliderFeatures\n }\n }\n}\n\nexport default ModuleAuth"],"names":["routerAuth","storeAuth","storeTwofa","Auth","EnterCode","Invite","EnterPassword","ResetPassword","SignUp","SignIn","SliderFeatures"],"mappings":"
|
1
|
+
{"version":3,"file":"auth.client.cjs","sources":["../../../../../src/modules/auth/auth.client.js"],"sourcesContent":["// Store\nimport * as storeAuth from './views/store/auth.js';\nimport * as storeTwofa from './views/store/twofa.js';\n\n// Router\nimport routerAuth from './views/router/auth.js';\n\n// Middlewares\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\n// Views\nimport Auth from './views/components/layouts/Auth.vue';\nimport EnterCode from './views/components/pages/EnterCode.vue';\nimport Invite from './views/components/pages/Invite.vue';\nimport EnterPassword from './views/components/pages/EnterPassword.vue';\nimport ResetPassword from './views/components/pages/ResetPassword.vue';\nimport SignUp from './views/components/pages/SignUp.vue';\nimport SignIn from './views/components/pages/SignIn.vue';\n\n// Importing sections components\nimport SliderFeatures from './views/components/sections/SliderFeatures.vue';\n\n// Пример функции инициализации для модуля аутентификации\nfunction initializeAuth(app, store, router, options = {}) {\n const route = options.route || 'Home';\n \n router.addRoute(route, routerAuth);\n\n // const homeRoute = router.getRoutes().find(routes => routes.name === route);\n \n // if (homeRoute && process.env.MOBILE_APP) {\n // homeRoute.beforeEnter = homeRoute.beforeEnter || [];\n // homeRoute.beforeEnter.push(validationAuth.initUser);\n // }\n \n store.addStore('auth', storeAuth);\n store.addStore('twofa', storeTwofa);\n}\n\nconst ModuleAuth = {\n initialize: initializeAuth,\n views: {\n store: {\n storeAuth,\n storeTwofa\n },\n router: {\n routerAuth\n },\n middlewares: {\n validationAuth\n },\n components: {\n // Layout\n Auth,\n // Pages\n EnterCode,\n Invite,\n EnterPassword,\n ResetPassword,\n SignUp,\n SignIn,\n // Sections\n SliderFeatures\n }\n }\n}\n\nexport default ModuleAuth"],"names":["routerAuth","storeAuth","storeTwofa","validationAuth","Auth","EnterCode","Invite","EnterPassword","ResetPassword","SignUp","SignIn","SliderFeatures"],"mappings":";;;;;;;;;;;;;;AAuBA,SAAS,eAAe,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AACxD,QAAM,QAAQ,QAAQ,SAAS;AAE/B,SAAO,SAAS,OAAOA,OAAAA,OAAU;AASjC,QAAM,SAAS,QAAQC,IAAS;AAChC,QAAM,SAAS,SAASC,KAAU;AACpC;AAEK,MAAC,aAAa;AAAA,EACjB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,OAAO;AAAA,MACX,WAAMD;AAAAA,MACN,YAAMC;AAAAA,IACD;AAAA,IACD,QAAQ;AAAA,MACZ,YAAMF,OAAU;AAAA,IACX;AAAA,IACD,aAAa;AAAA,MACjB,gBAAMG;AAAAA,IACD;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,MAAMC,KAAI;AAAA;AAAA,MAEV,WAAMC,UAAS;AAAA,MACf,QAAMC,OAAM;AAAA,MACZ,eAAMC,cAAa;AAAA,MACnB,eAAMC,cAAa;AAAA,MACnB,QAAMC,OAAM;AAAA,MACZ,QAAMC,OAAM;AAAA;AAAA,MAEZ,gBAAMC,eAAc;AAAA,IACf;AAAA,EACF;AACH;;"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import * as auth from "./views/store/auth.js";
|
2
2
|
import * as twofa from "./views/store/twofa.js";
|
3
3
|
import auth$1 from "./views/router/auth.js";
|
4
|
+
import * as auth_validation from "./views/middlewares/auth.validation.js";
|
4
5
|
import _sfc_main from "./views/components/layouts/Auth.vue.js";
|
5
6
|
import _sfc_main$1 from "./views/components/pages/EnterCode.vue.js";
|
6
7
|
import _sfc_main$2 from "./views/components/pages/Invite.vue.js";
|
@@ -25,6 +26,9 @@ const ModuleAuth = {
|
|
25
26
|
router: {
|
26
27
|
routerAuth: auth$1
|
27
28
|
},
|
29
|
+
middlewares: {
|
30
|
+
validationAuth: auth_validation
|
31
|
+
},
|
28
32
|
components: {
|
29
33
|
// Layout
|
30
34
|
Auth: _sfc_main,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.client.js","sources":["../../../../../src/modules/auth/auth.client.js"],"sourcesContent":["// Store\nimport * as storeAuth from './views/store/auth.js';\nimport * as storeTwofa from './views/store/twofa.js';\n\n// Router\nimport routerAuth from './views/router/auth.js';\n\n// Views\nimport Auth from './views/components/layouts/Auth.vue';\nimport EnterCode from './views/components/pages/EnterCode.vue';\nimport Invite from './views/components/pages/Invite.vue';\nimport EnterPassword from './views/components/pages/EnterPassword.vue';\nimport ResetPassword from './views/components/pages/ResetPassword.vue';\nimport SignUp from './views/components/pages/SignUp.vue';\nimport SignIn from './views/components/pages/SignIn.vue';\n\n// Importing sections components\nimport SliderFeatures from './views/components/sections/SliderFeatures.vue';\n\n// Пример функции инициализации для модуля аутентификации\nfunction initializeAuth(app, store, router, options = {}) {\n const route = options.route || 'Home';\n \n router.addRoute(route, routerAuth);\n \n store.addStore('auth', storeAuth);\n store.addStore('twofa', storeTwofa);\n}\n\nconst ModuleAuth = {\n initialize: initializeAuth,\n views: {\n store: {\n storeAuth,\n storeTwofa\n },\n router: {\n routerAuth\n },\n components: {\n // Layout\n Auth,\n // Pages\n EnterCode,\n Invite,\n EnterPassword,\n ResetPassword,\n SignUp,\n SignIn,\n // Sections\n SliderFeatures\n }\n }\n}\n\nexport default ModuleAuth"],"names":["routerAuth","storeAuth","storeTwofa","Auth","EnterCode","Invite","EnterPassword","ResetPassword","SignUp","SignIn","SliderFeatures"],"mappings":"
|
1
|
+
{"version":3,"file":"auth.client.js","sources":["../../../../../src/modules/auth/auth.client.js"],"sourcesContent":["// Store\nimport * as storeAuth from './views/store/auth.js';\nimport * as storeTwofa from './views/store/twofa.js';\n\n// Router\nimport routerAuth from './views/router/auth.js';\n\n// Middlewares\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\n// Views\nimport Auth from './views/components/layouts/Auth.vue';\nimport EnterCode from './views/components/pages/EnterCode.vue';\nimport Invite from './views/components/pages/Invite.vue';\nimport EnterPassword from './views/components/pages/EnterPassword.vue';\nimport ResetPassword from './views/components/pages/ResetPassword.vue';\nimport SignUp from './views/components/pages/SignUp.vue';\nimport SignIn from './views/components/pages/SignIn.vue';\n\n// Importing sections components\nimport SliderFeatures from './views/components/sections/SliderFeatures.vue';\n\n// Пример функции инициализации для модуля аутентификации\nfunction initializeAuth(app, store, router, options = {}) {\n const route = options.route || 'Home';\n \n router.addRoute(route, routerAuth);\n\n // const homeRoute = router.getRoutes().find(routes => routes.name === route);\n \n // if (homeRoute && process.env.MOBILE_APP) {\n // homeRoute.beforeEnter = homeRoute.beforeEnter || [];\n // homeRoute.beforeEnter.push(validationAuth.initUser);\n // }\n \n store.addStore('auth', storeAuth);\n store.addStore('twofa', storeTwofa);\n}\n\nconst ModuleAuth = {\n initialize: initializeAuth,\n views: {\n store: {\n storeAuth,\n storeTwofa\n },\n router: {\n routerAuth\n },\n middlewares: {\n validationAuth\n },\n components: {\n // Layout\n Auth,\n // Pages\n EnterCode,\n Invite,\n EnterPassword,\n ResetPassword,\n SignUp,\n SignIn,\n // Sections\n SliderFeatures\n }\n }\n}\n\nexport default ModuleAuth"],"names":["routerAuth","storeAuth","storeTwofa","validationAuth","Auth","EnterCode","Invite","EnterPassword","ResetPassword","SignUp","SignIn","SliderFeatures"],"mappings":";;;;;;;;;;;;AAuBA,SAAS,eAAe,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AACxD,QAAM,QAAQ,QAAQ,SAAS;AAE/B,SAAO,SAAS,OAAOA,MAAU;AASjC,QAAM,SAAS,QAAQC,IAAS;AAChC,QAAM,SAAS,SAASC,KAAU;AACpC;AAEK,MAAC,aAAa;AAAA,EACjB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,OAAO;AAAA,MACX,WAAMD;AAAAA,MACN,YAAMC;AAAAA,IACD;AAAA,IACD,QAAQ;AAAA,MACZ,YAAMF;AAAAA,IACD;AAAA,IACD,aAAa;AAAA,MACjB,gBAAMG;AAAAA,IACD;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,MAAMC;AAAAA;AAAAA,MAEN,WAAMC;AAAAA,MACN,QAAMC;AAAAA,MACN,eAAMC;AAAAA,MACN,eAAMC;AAAAA,MACN,QAAMC;AAAAA,MACN,QAAMC;AAAAA;AAAAA,MAEN,gBAAMC;AAAAA,IACD;AAAA,EACF;AACH;"}
|
@@ -8,6 +8,10 @@ function resetUser(to, from, next) {
|
|
8
8
|
auth.state.user.password = "";
|
9
9
|
auth.state.user.passwordRepeat = "";
|
10
10
|
}
|
11
|
+
async function initUser(to, from, next) {
|
12
|
+
await (void 0)();
|
13
|
+
next();
|
14
|
+
}
|
11
15
|
function checkUser(to, from, next) {
|
12
16
|
if (auth.state.user.phone === "" && auth.state.user.email === "") {
|
13
17
|
next("/auth/signin");
|
@@ -43,6 +47,7 @@ async function requiresAdmin(to, from, next) {
|
|
43
47
|
next();
|
44
48
|
}
|
45
49
|
exports.checkUser = checkUser;
|
50
|
+
exports.initUser = initUser;
|
46
51
|
exports.requiresAdmin = requiresAdmin;
|
47
52
|
exports.requiresAuth = requiresAuth;
|
48
53
|
exports.requiresNoAuth = requiresNoAuth;
|
package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.validation.cjs","sources":["../../../../../../../src/modules/auth/views/middlewares/auth.validation.js"],"sourcesContent":["import * as auth from '@pf/src/modules/auth/views/store/auth'\n\nfunction resetUser(to, from, next) {\n next()\n auth.state.user.phone = ''\n auth.state.user.email = ''\n auth.state.user.password = ''\n auth.state.user.passwordRepeat = ''\n}\n\nasync function initUser(to, from, next) {\n await auth.initialize();\n next()\n}\n\n\n// Check state before open\nfunction checkUser(to, from, next) {\n if (auth.state.user.phone === '' && auth.state.user.email === '') {\n next('/auth/signin')\n } else {\n next()\n }\n}\n\nfunction requiresNoAuth(to, from, next) {\n\n const isLogin = auth.state.access.status;\n\n console.log(isLogin)\n console.log(auth.state.access)\n\n console.log('')\n\n if (isLogin) {\n\n console.log('havee login')\n return next('/profile/' + auth.state.user._id);\n }\n\n console.log('not have login')\n\n next();\n}\n\nfunction requiresAuth(to, from, next) {\n const isLogin = auth.state.access.status;\n\n if (isLogin !== true) {\n return next('/auth/signin');\n }\n\n next();\n}\n\nasync function requiresAdmin(to, from, next) {\n\n const isAdmin = auth.state.access.roles?.includes('ROLE_ADMIN') ? auth.state.access.roles.includes('ROLE_ADMIN') : false;\n\n if (isAdmin !== true) {\n return next('/401');\n }\n\n next();\n}\n\n\n\nexport {\n requiresNoAuth,\n requiresAuth,\n requiresAdmin,\n resetUser,\n checkUser,\n initUser\n}"],"names":["auth.state"],"mappings":";;;AAEA,SAAS,UAAU,IAAI,MAAM,MAAM;AACjC,OAAM;AACNA,aAAW,KAAK,QAAQ;AACxBA,aAAW,KAAK,QAAQ;AACxBA,aAAW,KAAK,WAAW;AAC3BA,aAAW,KAAK,iBAAiB;AACnC;
|
1
|
+
{"version":3,"file":"auth.validation.cjs","sources":["../../../../../../../src/modules/auth/views/middlewares/auth.validation.js"],"sourcesContent":["import * as auth from '@pf/src/modules/auth/views/store/auth'\n\nfunction resetUser(to, from, next) {\n next()\n auth.state.user.phone = ''\n auth.state.user.email = ''\n auth.state.user.password = ''\n auth.state.user.passwordRepeat = ''\n}\n\nasync function initUser(to, from, next) {\n await auth.initialize();\n next()\n}\n\n\n// Check state before open\nfunction checkUser(to, from, next) {\n if (auth.state.user.phone === '' && auth.state.user.email === '') {\n next('/auth/signin')\n } else {\n next()\n }\n}\n\nfunction requiresNoAuth(to, from, next) {\n\n const isLogin = auth.state.access.status;\n\n console.log(isLogin)\n console.log(auth.state.access)\n\n console.log('')\n\n if (isLogin) {\n\n console.log('havee login')\n return next('/profile/' + auth.state.user._id);\n }\n\n console.log('not have login')\n\n next();\n}\n\nfunction requiresAuth(to, from, next) {\n const isLogin = auth.state.access.status;\n\n if (isLogin !== true) {\n return next('/auth/signin');\n }\n\n next();\n}\n\nasync function requiresAdmin(to, from, next) {\n\n const isAdmin = auth.state.access.roles?.includes('ROLE_ADMIN') ? auth.state.access.roles.includes('ROLE_ADMIN') : false;\n\n if (isAdmin !== true) {\n return next('/401');\n }\n\n next();\n}\n\n\n\nexport {\n requiresNoAuth,\n requiresAuth,\n requiresAdmin,\n resetUser,\n checkUser,\n initUser\n}"],"names":["auth.state","auth.initialize"],"mappings":";;;AAEA,SAAS,UAAU,IAAI,MAAM,MAAM;AACjC,OAAM;AACNA,aAAW,KAAK,QAAQ;AACxBA,aAAW,KAAK,QAAQ;AACxBA,aAAW,KAAK,WAAW;AAC3BA,aAAW,KAAK,iBAAiB;AACnC;AAEA,eAAe,SAAS,IAAI,MAAM,MAAM;AACtC,QAAMC,SAAe;AACrB,OAAM;AACR;AAIA,SAAS,UAAU,IAAI,MAAM,MAAM;AACjC,MAAID,KAAU,MAAC,KAAK,UAAU,MAAMA,KAAAA,MAAW,KAAK,UAAU,IAAI;AAChE,SAAK,cAAc;AAAA,EACvB,OAAS;AACL,SAAM;AAAA,EACP;AACH;AAEA,SAAS,eAAe,IAAI,MAAM,MAAM;AAEtC,QAAM,UAAUA,KAAAA,MAAW,OAAO;AAElC,UAAQ,IAAI,OAAO;AACjB,UAAQ,IAAIA,KAAU,MAAC,MAAM;AAE/B,UAAQ,IAAI,EAAE;AAEd,MAAI,SAAS;AAEX,YAAQ,IAAI,aAAa;AACzB,WAAO,KAAK,cAAcA,KAAU,MAAC,KAAK,GAAG;AAAA,EAC9C;AAED,UAAQ,IAAI,gBAAgB;AAE5B;AACF;AAEA,SAAS,aAAa,IAAI,MAAM,MAAM;AACpC,QAAM,UAAUA,KAAAA,MAAW,OAAO;AAElC,MAAI,YAAY,MAAM;AACpB,WAAO,KAAK,cAAc;AAAA,EAC3B;AAED;AACF;AAEA,eAAe,cAAc,IAAI,MAAM,MAAM;;AAE3C,QAAM,YAAUA,UAAU,MAAC,OAAO,UAAlBA,mBAAyB,SAAS,iBAAgBA,KAAU,MAAC,OAAO,MAAM,SAAS,YAAY,IAAI;AAEnH,MAAI,YAAY,MAAM;AACpB,WAAO,KAAK,MAAM;AAAA,EACnB;AAED;AACF;;;;;;;"}
|
@@ -6,6 +6,10 @@ function resetUser(to, from, next) {
|
|
6
6
|
state.user.password = "";
|
7
7
|
state.user.passwordRepeat = "";
|
8
8
|
}
|
9
|
+
async function initUser(to, from, next) {
|
10
|
+
await (void 0)();
|
11
|
+
next();
|
12
|
+
}
|
9
13
|
function checkUser(to, from, next) {
|
10
14
|
if (state.user.phone === "" && state.user.email === "") {
|
11
15
|
next("/auth/signin");
|
@@ -42,6 +46,7 @@ async function requiresAdmin(to, from, next) {
|
|
42
46
|
}
|
43
47
|
export {
|
44
48
|
checkUser,
|
49
|
+
initUser,
|
45
50
|
requiresAdmin,
|
46
51
|
requiresAuth,
|
47
52
|
requiresNoAuth,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.validation.js","sources":["../../../../../../../src/modules/auth/views/middlewares/auth.validation.js"],"sourcesContent":["import * as auth from '@pf/src/modules/auth/views/store/auth'\n\nfunction resetUser(to, from, next) {\n next()\n auth.state.user.phone = ''\n auth.state.user.email = ''\n auth.state.user.password = ''\n auth.state.user.passwordRepeat = ''\n}\n\nasync function initUser(to, from, next) {\n await auth.initialize();\n next()\n}\n\n\n// Check state before open\nfunction checkUser(to, from, next) {\n if (auth.state.user.phone === '' && auth.state.user.email === '') {\n next('/auth/signin')\n } else {\n next()\n }\n}\n\nfunction requiresNoAuth(to, from, next) {\n\n const isLogin = auth.state.access.status;\n\n console.log(isLogin)\n console.log(auth.state.access)\n\n console.log('')\n\n if (isLogin) {\n\n console.log('havee login')\n return next('/profile/' + auth.state.user._id);\n }\n\n console.log('not have login')\n\n next();\n}\n\nfunction requiresAuth(to, from, next) {\n const isLogin = auth.state.access.status;\n\n if (isLogin !== true) {\n return next('/auth/signin');\n }\n\n next();\n}\n\nasync function requiresAdmin(to, from, next) {\n\n const isAdmin = auth.state.access.roles?.includes('ROLE_ADMIN') ? auth.state.access.roles.includes('ROLE_ADMIN') : false;\n\n if (isAdmin !== true) {\n return next('/401');\n }\n\n next();\n}\n\n\n\nexport {\n requiresNoAuth,\n requiresAuth,\n requiresAdmin,\n resetUser,\n checkUser,\n initUser\n}"],"names":["auth.state"],"mappings":";AAEA,SAAS,UAAU,IAAI,MAAM,MAAM;AACjC,OAAM;AACNA,QAAW,KAAK,QAAQ;AACxBA,QAAW,KAAK,QAAQ;AACxBA,QAAW,KAAK,WAAW;AAC3BA,QAAW,KAAK,iBAAiB;AACnC;
|
1
|
+
{"version":3,"file":"auth.validation.js","sources":["../../../../../../../src/modules/auth/views/middlewares/auth.validation.js"],"sourcesContent":["import * as auth from '@pf/src/modules/auth/views/store/auth'\n\nfunction resetUser(to, from, next) {\n next()\n auth.state.user.phone = ''\n auth.state.user.email = ''\n auth.state.user.password = ''\n auth.state.user.passwordRepeat = ''\n}\n\nasync function initUser(to, from, next) {\n await auth.initialize();\n next()\n}\n\n\n// Check state before open\nfunction checkUser(to, from, next) {\n if (auth.state.user.phone === '' && auth.state.user.email === '') {\n next('/auth/signin')\n } else {\n next()\n }\n}\n\nfunction requiresNoAuth(to, from, next) {\n\n const isLogin = auth.state.access.status;\n\n console.log(isLogin)\n console.log(auth.state.access)\n\n console.log('')\n\n if (isLogin) {\n\n console.log('havee login')\n return next('/profile/' + auth.state.user._id);\n }\n\n console.log('not have login')\n\n next();\n}\n\nfunction requiresAuth(to, from, next) {\n const isLogin = auth.state.access.status;\n\n if (isLogin !== true) {\n return next('/auth/signin');\n }\n\n next();\n}\n\nasync function requiresAdmin(to, from, next) {\n\n const isAdmin = auth.state.access.roles?.includes('ROLE_ADMIN') ? auth.state.access.roles.includes('ROLE_ADMIN') : false;\n\n if (isAdmin !== true) {\n return next('/401');\n }\n\n next();\n}\n\n\n\nexport {\n requiresNoAuth,\n requiresAuth,\n requiresAdmin,\n resetUser,\n checkUser,\n initUser\n}"],"names":["auth.state","auth.initialize"],"mappings":";AAEA,SAAS,UAAU,IAAI,MAAM,MAAM;AACjC,OAAM;AACNA,QAAW,KAAK,QAAQ;AACxBA,QAAW,KAAK,QAAQ;AACxBA,QAAW,KAAK,WAAW;AAC3BA,QAAW,KAAK,iBAAiB;AACnC;AAEA,eAAe,SAAS,IAAI,MAAM,MAAM;AACtC,QAAMC,SAAe;AACrB,OAAM;AACR;AAIA,SAAS,UAAU,IAAI,MAAM,MAAM;AACjC,MAAID,MAAW,KAAK,UAAU,MAAMA,MAAW,KAAK,UAAU,IAAI;AAChE,SAAK,cAAc;AAAA,EACvB,OAAS;AACL,SAAM;AAAA,EACP;AACH;AAEA,SAAS,eAAe,IAAI,MAAM,MAAM;AAEtC,QAAM,UAAUA,MAAW,OAAO;AAElC,UAAQ,IAAI,OAAO;AACjB,UAAQ,IAAIA,MAAW,MAAM;AAE/B,UAAQ,IAAI,EAAE;AAEd,MAAI,SAAS;AAEX,YAAQ,IAAI,aAAa;AACzB,WAAO,KAAK,cAAcA,MAAW,KAAK,GAAG;AAAA,EAC9C;AAED,UAAQ,IAAI,gBAAgB;AAE5B;AACF;AAEA,SAAS,aAAa,IAAI,MAAM,MAAM;AACpC,QAAM,UAAUA,MAAW,OAAO;AAElC,MAAI,YAAY,MAAM;AACpB,WAAO,KAAK,cAAc;AAAA,EAC3B;AAED;AACF;AAEA,eAAe,cAAc,IAAI,MAAM,MAAM;;AAE3C,QAAM,YAAUA,WAAW,OAAO,UAAlBA,mBAAyB,SAAS,iBAAgBA,MAAW,OAAO,MAAM,SAAS,YAAY,IAAI;AAEnH,MAAI,YAAY,MAAM;AACpB,WAAO,KAAK,MAAM;AAAA,EACnB;AAED;AACF;"}
|
@@ -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
|
require("../../../../components/Menu/MenuItem.vue.cjs");
|
6
6
|
;/* empty css */
|
7
7
|
const vueRouter = require("vue-router");
|
package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs
CHANGED
@@ -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 Menu = require("../../../../components/Menu/Menu.
|
4
|
+
const Menu = require("../../../../components/Menu/Menu.vue2.cjs");
|
5
5
|
const MenuItem = require("../../../../components/Menu/MenuItem.vue.cjs");
|
6
6
|
;/* empty css */
|
7
7
|
const IconProducts = require("../../../icons/entities/IconProducts.vue.cjs");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, onMounted, openBlock, createElementBlock, createVNode, withCtx, unref, createElementVNode } from "vue";
|
2
|
-
import _sfc_main$1 from "../../../../components/Menu/Menu.
|
2
|
+
import _sfc_main$1 from "../../../../components/Menu/Menu.vue2.js";
|
3
3
|
import _sfc_main$2 from "../../../../components/Menu/MenuItem.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
import _sfc_main$3 from "../../../icons/entities/IconProducts.vue.js";
|
package/dist/prometheus-framework/src/modules/community/components/layouts/Community.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 vueRouter = require("vue-router");
|
5
|
-
const Select = require("../../../../components/Select/Select.
|
5
|
+
const Select = require("../../../../components/Select/Select.vue2.cjs");
|
6
6
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
7
7
|
const CardOrganization = require("../../../organizations/components/blocks/CardOrganization.vue.cjs");
|
8
8
|
const IconFeatured = require("../../../icons/entities/IconFeatured.vue.cjs");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, createVNode, createTextVNode, createCommentVNode, createBlock, withCtx, Transition, resolveDynamicComponent, Fragment, renderList } from "vue";
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
3
|
-
import Select from "../../../../components/Select/Select.
|
3
|
+
import Select from "../../../../components/Select/Select.vue2.js";
|
4
4
|
import _sfc_main$5 from "../../../../components/Feed/Feed.vue.js";
|
5
5
|
import _sfc_main$6 from "../../../organizations/components/blocks/CardOrganization.vue.js";
|
6
6
|
import _sfc_main$1 from "../../../icons/entities/IconFeatured.vue.js";
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const vue = require("vue");
|
4
4
|
;/* empty css */
|
5
5
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
6
|
-
;/* empty css
|
6
|
+
;/* empty css */
|
7
7
|
;/* empty css */
|
8
8
|
;/* empty css */
|
9
9
|
require("axios");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { withAsyncContext, ref, computed, openBlock, createElementBlock, createElementVNode, unref, Fragment, renderList, createBlock, withCtx, pushScopeId, popScopeId } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
/* empty css
|
4
|
+
/* empty css */
|
5
5
|
/* empty css */
|
6
6
|
/* empty css */
|
7
7
|
import "axios";
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs
CHANGED
@@ -4,7 +4,7 @@ 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.vue2.cjs");
|
8
8
|
;/* empty css */
|
9
9
|
;/* empty css */
|
10
10
|
const BlockTags = require("../../../../components/FieldTags/BlockTags.vue.cjs");
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js
CHANGED
@@ -2,7 +2,7 @@ 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.vue2.js";
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$3 from "../../../../components/FieldTags/BlockTags.vue.js";
|
package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.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 index = require("../../../../../../node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.cjs");
|
5
|
-
const Popup = require("../../../../components/Popup/Popup.
|
5
|
+
const Popup = require("../../../../components/Popup/Popup.vue2.cjs");
|
6
6
|
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
7
7
|
const tickets = require("../../store/tickets.cjs");
|
8
8
|
;/* empty css */
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, pushScopeId, popScopeId, createElementVNode } from "vue";
|
2
2
|
import { BarcodeScanner } from "../../../../../../node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js";
|
3
|
-
import _sfc_main$2 from "../../../../components/Popup/Popup.
|
3
|
+
import _sfc_main$2 from "../../../../components/Popup/Popup.vue2.js";
|
4
4
|
import _sfc_main$1 from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import { actions } from "../../store/tickets.js";
|
6
6
|
/* empty css */
|
@@ -8,7 +8,7 @@ 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.
|
11
|
+
const Popup = require("../../../../components/Popup/Popup.vue2.cjs");
|
12
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");
|
@@ -6,7 +6,7 @@ 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.
|
9
|
+
import _sfc_main$7 from "../../../../components/Popup/Popup.vue2.js";
|
10
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";
|
package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs
CHANGED
@@ -3,7 +3,7 @@ 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.
|
6
|
+
const Popup = require("../../../../components/Popup/Popup.vue2.cjs");
|
7
7
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
8
8
|
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
9
9
|
const ButtonCheck = require("../elements/ButtonCheck.vue.cjs");
|
package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
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.
|
4
|
+
import _sfc_main$1 from "../../../../components/Popup/Popup.vue2.js";
|
5
5
|
import Field from "../../../../components/Field/Field.vue2.js";
|
6
6
|
import _sfc_main$5 from "../../../../components/Button/Button.vue2.js";
|
7
7
|
import ButtonCheck from "../elements/ButtonCheck.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.vue2.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.vue2.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
@@ -4,10 +4,10 @@ const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
5
5
|
;/* empty css */
|
6
6
|
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
7
|
-
;/* empty css
|
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.vue2.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
@@ -2,10 +2,10 @@ import { ref, openBlock, createElementBlock, createVNode, unref, isRef, withCtx,
|
|
2
2
|
import { useRoute } from "vue-router";
|
3
3
|
/* empty css */
|
4
4
|
import _sfc_main$9 from "../../../../components/Button/Button.vue2.js";
|
5
|
-
/* empty css
|
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.vue2.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/layouts/Client.vue.cjs
CHANGED
@@ -4,7 +4,7 @@ const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
5
5
|
const globals = require("../../store/globals.cjs");
|
6
6
|
const Status = require("../../../../../components/Status/Status.vue.cjs");
|
7
|
-
const Popup = require("../../../../../components/Popup/Popup.
|
7
|
+
const Popup = require("../../../../../components/Popup/Popup.vue2.cjs");
|
8
8
|
const Loader = require("../../../../../components/Loader/Loader.vue2.cjs");
|
9
9
|
const BottomNavigationBar = require("../partials/BottomNavigationBar.vue.cjs");
|
10
10
|
const NavigationBar = require("../partials/NavigationBar.vue.cjs");
|
@@ -141,6 +141,7 @@ const _sfc_main = {
|
|
141
141
|
globals.state.error.show ? (vue.openBlock(), vue.createBlock(Status.default, {
|
142
142
|
key: 0,
|
143
143
|
data: globals.state.error,
|
144
|
+
onClose: _cache[0] || (_cache[0] = ($event) => globals.state.error.show = false),
|
144
145
|
class: "z-index-7"
|
145
146
|
}, null, 8, ["data"])) : vue.createCommentVNode("", true),
|
146
147
|
vue.createVNode(vue.Transition, {
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Client.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/layouts/Client.vue"],"sourcesContent":["<template>\n\t<div id=\"app-wrapper\" class=\"pos-relative\">\n\t\t<transition name=\"moveFromTop\" appear>\n\t\t\t<Loader v-if=\"!page\" class=\"pos-fixed\"/>\n\t\t</transition>\n\n\t\t<header \n\t\t\tv-if=\"!MOBILE_APP && route.meta.header.component\"\n\t\t\tid=\"header\" \n\t\t\tclass=\"\n\t\t\t\tpd-thin \n\t\t\t\tgap-micro\n\t\t\t\tflex-justify-between\n\t\t\t\tflex-nowrap\n\t\t\t\tflex\n\t\t\t\th-4r\n\t\t\t\tw-100\n\t\t\t\tz-index-2 \n\t\t\t\tpos-relative pos-t-0\n\t\t\t\"\n\t\t\t:class=\"{\n\t \t\t't-black bg-white': headerTheme === 'light',\n\t \t\t't-white bg-black': headerTheme === 'dark' \n\t \t}\"\n\t\t>\n <component\n ref=\"header\" \n :is=\"route.meta.header.component\"\n :theme=\"headerTheme\"\n :logotype=\"route.meta.header.logotype\"\n :location=\"route.meta.header.location\"\n >\n <component\n v-if=\"route.meta.navigation\"\n :is=\"route.meta.navigation\"\n class=\"mn-l-auto desktop-only\"\n />\n </component>\n\t </header>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n\t\t\t<NavigationBar\n\t\t \tv-if=\"MOBILE_APP\"\n\t\t \t:logotype=\"route.meta.header.logotype\"\n\t\t />\n\t\t</transition>\n\n\t <Popup \n\t \tv-if=\"route.meta.header.location\"\n\t \t@close-popup=\"closeLocationPopup\" \n\t \t:isPopupOpen=\"globals.state.isOpenLocationPopup\"\n\t \tclass=\"bg-white pd-semi w-m-33r radius-big\"\n\t >\t\n\t \t<LocationSelection />\n\t </Popup>\n\n\t\t<section \n\t\t\tid=\"screen\" \n\t\t\tref=\"screen\"\n\t\t\t@scroll=\"handleScroll\"\n\t\t\tclass=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-y-scroll o-x-hidden\"\n\t\t>\n\t\t\t<ShopCart />\n\n\t\t\t<!-- <section v-if=\"!route.meta?.breadcrumbs?.hide\" class=\"pd-thin pd-b-zero\">\n\t\t\t\t<Breadcrumbs \n\t\t\t\t\tv-if=\"!MOBILE_APP\"\n\t\t\t\t\tclass=\"bg-light pd-small radius-big\"\n\t\t\t\t/>\n\t\t\t</section> -->\n\n\t\t\t<Suspense>\n\t\t\t\t<router-view \n\t\t\t\t\tv-slot=\"{ Component, route }\" \n\t\t\t\t\t:class=\"{'mn-b-extra': MOBILE_APP}\"\n\t\t\t\t>\n\t\t\t\t\t<Status \n\t\t\t\t\t\tv-if=\"globals.state.error.show\" \n\t\t\t\t\t\t:data=\"globals.state.error\"\n\t\t\t\t\t\tclass=\"z-index-7\" \n\t\t\t\t\t/>\n\n\t\t\t\t\t<transition @before-enter=\"scrollTop\" name=\"scaleTransition\" mode=\"out-in\" appear>\n\t\t \t<component \n\t\t \t\tref=\"page\" \n\t\t \t\t:is=\"Component\" \n\t\t \t\t:key=\"route.path\"\n\t\t \t/>\n\t\t \t<!-- Key пока выключил непонятно какие проблемы это вызовет -->\n\t\t \t<!-- -->\n\t\t </transition>\n\n\t\t <!-- <Footer /> -->\n\t\t\t\t</router-view>\n\t\t\t</Suspense>\n\n\t\t\t<router-view \n\t\t\t\tname=\"defaultBottom\"\n\t\t\t\tv-slot=\"{ Component, route }\" \n\t\t\t>\n\t\t\t\t<component \n \t\t:is=\"Component\" \n \t/>\n\t\t\t</router-view>\n\n\t\t\t<component\n\t\t \tv-if=\"route.meta.radio?.page\"\n :is=\"route.meta.radio.page\"\n />\n \n\t\t</section>\n\n\t\t<component\n\t \tv-if=\"route.meta.radio?.player\"\n :is=\"route.meta.radio.player\"\n />\n\n <BottomNavigationBar \n v-if=\"MOBILE_APP && route.meta.title_hide\"\n class=\"pd-small z-index-2\"\n />\n\t</div>\n</template>\n\n\n\n<script setup>\n\timport { computed, ref, onMounted } from 'vue';\n\t// Router\n\timport { useRoute } from 'vue-router';\n\t// Store\n\timport * as globals from '@pf/src/modules/globals/views/store/globals';\n\t// Partials\n\timport Status from '@pf/src/components/Status/Status.vue';\n\timport Popup from '@pf/src/components/Popup/Popup.vue';\n\t// import Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\timport Loader from '@pf/src/components/Loader/Loader.vue';\n\n\timport BottomNavigationBar from '@pf/src/modules/globals/views/components/partials/BottomNavigationBar.vue';\n\n\timport NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue';\n\timport LocationSelection from '@pf/src/modules/globals/views/components/partials/LocationSelection.vue';\n\t// import Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'\n\n\timport ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue';\n\t/////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n\t/////////////////////////////\n\t// CREATED\n\t/////////////////////////////\n\tconst route = useRoute()\n\t// const router = useRouter()\n\t// Ref Code\n\tconst referalCode = ref(route.query.referalCode);\n\t/////////////////////////////\n\t// Methods\n\t/////////////////////////////\n\tfunction closeLocationPopup() {\n\t globals.state.isOpenLocationPopup = false;\n\t}\n\tfunction scrollTop(){\n\t\tdocument.getElementById('app').scrollIntoView();\n\t}\n\t// Scrolling header\n\tconst scrollOffset = ref(0)\n\tlet isScrolled = false\n\tconst header = ref(null)\n\n\tconst headerTheme = computed(() => {\n\t\tif (scrollOffset.value > 50) {\n\t\t\treturn 'light'\n\t\t} else {\n\t\t\treturn route.meta.header_theme || 'light'\n\t\t}\n\t})\n\n\tconst handleScroll = () => {\n\t scrollOffset.value = event.target.scrollTop\n\t};\n\n\tonMounted(async () => {\n\t\t \n\t\tif ('serviceWorker' in navigator) {\n\t \twindow.addEventListener('load', () => {\n\t \tnavigator.serviceWorker.register('/service-worker.js').then(registration => {\n\t \tconsole.log('SW registered: ', registration);\n\t \t}).catch(registrationError => {\n\t \tconsole.log('SW registration failed: ', registrationError);\n\t \t});\n\t });\n\t \t}\n\t\t\n\t\tconst savedPosition = localStorage.getItem('position');\n\n\t if (savedPosition) {\n\t globals.state.position = JSON.parse(savedPosition);\n\t } else {\n \t\tglobals.state.isOpenLocationPopup = true;\n\t }\n\n\t\tif (referalCode.value) {\n\t\t localStorage.setItem('referalCode', referalCode.value);\n\t\t}\n\n\t\tif (page.value) show.value = true\n\t});\n</script>\n\n<style lang=\"scss\">;\t\n\t.scaleIn-enter-active,\n\t.scaleIn-leave-active {\n\t\ttransform: scale(1); \n\t\ttransition: all 0.5s ease; \n\t}\n\t.scaleIn-enter-from,\n\t.scaleIn-leave-to {\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease; \n\t}\n\n\t.moveFromTop-enter-active,\n\t.moveFromTop-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTop-enter-from,\n\t.moveFromTop-leave-to {\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\n\t.moveFromTopAbsolute-enter-active,\n\t.moveFromTopAbsolute-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTopAbsolute-enter-from,\n\t.moveFromTopAbsolute-leave-to {\n\t\tposition: absolute;\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\t.ScaleOut-enter-active,\n\t.ScaleOut-leave-active {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t\ttransition: all 0.3s ease; \n\t\t\n\t}\n\t.ScaleOut-enter-from,\n\t.ScaleOut-leave-to {\n\t\topacity: 0;\n\t\ttransform: scale(0.9);\n\t\ttransition: all 0.3s ease;\n\t}\n\t.slide-fade-enter-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-leave-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-enter-from,\n\t.slide-fade-leave-to {\n\t\tmin-height: 0;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n\t.scaleTransition-5px-enter-active,\n .scaleTransition-5px-leave-active {\n transform: translateY(0px); \n opacity: 1;\n z-index: 1;\n transition: all 0.2s ease;\n }\n\n .scaleTransition-5px-enter-from,\n .scaleTransition-5px-leave-to {\n opacity: 0;\n z-index: 0;\n position: absolute;\n transform: translateY(-30px); \n transition: all 0.2s ease;\n }\n\n .scaleTransition-enter-from,\n .scaleTransition-leave-to {\n opacity: 0;\n z-index: 0;\n position: absolute;\n width: inherit;\n height: inherit;\n display: block;\n transform: translateY(-30px); \n transition: all 0.5s ease;\n }\n\n .scaleTransition-enter-active,\n .scaleTransition-leave-active {\n transform: translateY(0px); \n opacity: 1;\n z-index: 1;\n transition: all 0.5s ease;\n }\n .scaleTransition-enter-from,\n .scaleTransition-leave-to {\n opacity: 0;\n z-index: 0;\n position: absolute;\n width: inherit;\n height: inherit;\n display: block;\n transform: translateY(-30px); \n transition: all 0.5s ease;\n }\n\n .scaleIn-enter-active,\n .scaleIn-leave-active {\n // background: red;\n transition: all 0.5s ease;\n > section,div { transform-origin: 0 0; transform: translateZ(0px); transition: all 0.5s ease; }\n }\n .scaleIn-enter-from,\n .scaleIn-leave-to {\n opacity: 0;\n > section,div { transform: translateZ(-30px); transition: all 0.5s ease; }\n transform: scale(0.95);\n }\n</style>"],"names":["ref","useRoute","globals.state","computed","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqJE,QAAI,OAAOA,IAAG,IAAC,KAAK;AAEpB,UAAM,OAAOA,IAAG,IAAC,IAAI;AAItB,UAAM,QAAQC,UAAAA,SAAU;AAGxB,UAAM,cAAcD,IAAG,IAAC,MAAM,MAAM,WAAW;AAI/C,aAAS,qBAAqB;AAC5BE,cAAa,MAAC,sBAAsB;AAAA,IACrC;AACD,aAAS,YAAW;AACnB,eAAS,eAAe,KAAK,EAAE,eAAc;AAAA,IAC7C;AAED,UAAM,eAAeF,IAAG,IAAC,CAAC;AAE1B,UAAM,SAASA,IAAG,IAAC,IAAI;AAEvB,UAAM,cAAcG,IAAAA,SAAS,MAAM;AAClC,UAAI,aAAa,QAAQ,IAAI;AAC5B,eAAO;AAAA,MACV,OAAS;AACN,eAAO,MAAM,KAAK,gBAAgB;AAAA,MAClC;AAAA,IACH,CAAE;AAED,UAAM,eAAe,MAAM;AACzB,mBAAa,QAAQ,MAAM,OAAO;AAAA,IACrC;AAECC,QAAAA,UAAU,YAAY;AAErB,UAAI,mBAAmB,WAAW;AAC/B,eAAO,iBAAiB,QAAQ,MAAM;AACpC,oBAAU,cAAc,SAAS,oBAAoB,EAAE,KAAK,kBAAgB;AAC1E,oBAAQ,IAAI,mBAAmB,YAAY;AAAA,UACpD,CAAQ,EAAE,MAAM,uBAAqB;AAC5B,oBAAQ,IAAI,4BAA4B,iBAAiB;AAAA,UAClE,CAAQ;AAAA,QACR,CAAK;AAAA,MACD;AAEF,YAAM,gBAAgB,aAAa,QAAQ,UAAU;AAEpD,UAAI,eAAe;AACjBF,gBAAAA,MAAc,WAAW,KAAK,MAAM,aAAa;AAAA,MACtD,OAAU;AACNA,gBAAa,MAAC,sBAAsB;AAAA,MACpC;AAEF,UAAI,YAAY,OAAO;AACrB,qBAAa,QAAQ,eAAe,YAAY,KAAK;AAAA,MACtD;AAED,UAAI,KAAK,MAAO,MAAK,QAAQ;AAAA,IAC/B,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"Client.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/layouts/Client.vue"],"sourcesContent":["<template>\n\t<div id=\"app-wrapper\" class=\"pos-relative\">\n\t\t<transition name=\"moveFromTop\" appear>\n\t\t\t<Loader v-if=\"!page\" class=\"pos-fixed\"/>\n\t\t</transition>\n\n\t\t<header \n\t\t\tv-if=\"!MOBILE_APP && route.meta.header.component\"\n\t\t\tid=\"header\" \n\t\t\tclass=\"\n\t\t\t\tpd-thin \n\t\t\t\tgap-micro\n\t\t\t\tflex-justify-between\n\t\t\t\tflex-nowrap\n\t\t\t\tflex\n\t\t\t\th-4r\n\t\t\t\tw-100\n\t\t\t\tz-index-2 \n\t\t\t\tpos-relative pos-t-0\n\t\t\t\"\n\t\t\t:class=\"{\n\t \t\t't-black bg-white': headerTheme === 'light',\n\t \t\t't-white bg-black': headerTheme === 'dark' \n\t \t}\"\n\t\t>\n <component\n ref=\"header\" \n :is=\"route.meta.header.component\"\n :theme=\"headerTheme\"\n :logotype=\"route.meta.header.logotype\"\n :location=\"route.meta.header.location\"\n >\n <component\n v-if=\"route.meta.navigation\"\n :is=\"route.meta.navigation\"\n class=\"mn-l-auto desktop-only\"\n />\n </component>\n\t </header>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n\t\t\t<NavigationBar\n\t\t \tv-if=\"MOBILE_APP\"\n\t\t \t:logotype=\"route.meta.header.logotype\"\n\t\t />\n\t\t</transition>\n\n\t <Popup \n\t \tv-if=\"route.meta.header.location\"\n\t \t@close-popup=\"closeLocationPopup\" \n\t \t:isPopupOpen=\"globals.state.isOpenLocationPopup\"\n\t \tclass=\"bg-white pd-semi w-m-33r radius-big\"\n\t >\t\n\t \t<LocationSelection />\n\t </Popup>\n\n\t\t<section \n\t\t\tid=\"screen\" \n\t\t\tref=\"screen\"\n\t\t\t@scroll=\"handleScroll\"\n\t\t\tclass=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-y-scroll o-x-hidden\"\n\t\t>\n\t\t\t<ShopCart />\n\n\t\t\t<!-- <section v-if=\"!route.meta?.breadcrumbs?.hide\" class=\"pd-thin pd-b-zero\">\n\t\t\t\t<Breadcrumbs \n\t\t\t\t\tv-if=\"!MOBILE_APP\"\n\t\t\t\t\tclass=\"bg-light pd-small radius-big\"\n\t\t\t\t/>\n\t\t\t</section> -->\n\n\t\t\t<Suspense>\n\t\t\t\t<router-view \n\t\t\t\t\tv-slot=\"{ Component, route }\" \n\t\t\t\t\t:class=\"{'mn-b-extra': MOBILE_APP}\"\n\t\t\t\t>\n\t\t\t\t\t<Status \n\t\t\t\t\t\tv-if=\"globals.state.error.show\" \n\t\t\t\t\t\t:data=\"globals.state.error\"\n\t\t\t\t\t\t@close=\"globals.state.error.show = false\"\n\t\t\t\t\t\tclass=\"z-index-7\" \n\t\t\t\t\t/>\n\n\t\t\t\t\t<transition @before-enter=\"scrollTop\" name=\"scaleTransition\" mode=\"out-in\" appear>\n\t\t \t<component \n\t\t \t\tref=\"page\" \n\t\t \t\t:is=\"Component\" \n\t\t \t\t:key=\"route.path\"\n\t\t \t/>\n\t\t \t<!-- Key пока выключил непонятно какие проблемы это вызовет -->\n\t\t \t<!-- -->\n\t\t </transition>\n\n\t\t <!-- <Footer /> -->\n\t\t\t\t</router-view>\n\t\t\t</Suspense>\n\n\t\t\t<router-view \n\t\t\t\tname=\"defaultBottom\"\n\t\t\t\tv-slot=\"{ Component, route }\" \n\t\t\t>\n\t\t\t\t<component \n \t\t:is=\"Component\" \n \t/>\n\t\t\t</router-view>\n\n\t\t\t<component\n\t\t \tv-if=\"route.meta.radio?.page\"\n :is=\"route.meta.radio.page\"\n />\n \n\t\t</section>\n\n\t\t<component\n\t \tv-if=\"route.meta.radio?.player\"\n :is=\"route.meta.radio.player\"\n />\n\n <BottomNavigationBar \n v-if=\"MOBILE_APP && route.meta.title_hide\"\n class=\"pd-small z-index-2\"\n />\n\t</div>\n</template>\n\n\n\n<script setup>\n\timport { computed, ref, onMounted } from 'vue';\n\t// Router\n\timport { useRoute } from 'vue-router';\n\t// Store\n\timport * as globals from '@pf/src/modules/globals/views/store/globals';\n\t// Partials\n\timport Status from '@pf/src/components/Status/Status.vue';\n\timport Popup from '@pf/src/components/Popup/Popup.vue';\n\t// import Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\timport Loader from '@pf/src/components/Loader/Loader.vue';\n\n\timport BottomNavigationBar from '@pf/src/modules/globals/views/components/partials/BottomNavigationBar.vue';\n\n\timport NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue';\n\timport LocationSelection from '@pf/src/modules/globals/views/components/partials/LocationSelection.vue';\n\t// import Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'\n\n\timport ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue';\n\t/////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n\t/////////////////////////////\n\t// CREATED\n\t/////////////////////////////\n\tconst route = useRoute()\n\t// const router = useRouter()\n\t// Ref Code\n\tconst referalCode = ref(route.query.referalCode);\n\t/////////////////////////////\n\t// Methods\n\t/////////////////////////////\n\tfunction closeLocationPopup() {\n\t globals.state.isOpenLocationPopup = false;\n\t}\n\tfunction scrollTop(){\n\t\tdocument.getElementById('app').scrollIntoView();\n\t}\n\t// Scrolling header\n\tconst scrollOffset = ref(0)\n\tlet isScrolled = false\n\tconst header = ref(null)\n\n\tconst headerTheme = computed(() => {\n\t\tif (scrollOffset.value > 50) {\n\t\t\treturn 'light'\n\t\t} else {\n\t\t\treturn route.meta.header_theme || 'light'\n\t\t}\n\t})\n\n\tconst handleScroll = () => {\n\t scrollOffset.value = event.target.scrollTop\n\t};\n\n\tonMounted(async () => {\n\t\t \n\t\tif ('serviceWorker' in navigator) {\n\t \twindow.addEventListener('load', () => {\n\t \tnavigator.serviceWorker.register('/service-worker.js').then(registration => {\n\t \tconsole.log('SW registered: ', registration);\n\t \t}).catch(registrationError => {\n\t \tconsole.log('SW registration failed: ', registrationError);\n\t \t});\n\t });\n\t \t}\n\t\t\n\t\tconst savedPosition = localStorage.getItem('position');\n\n\t if (savedPosition) {\n\t globals.state.position = JSON.parse(savedPosition);\n\t } else {\n \t\tglobals.state.isOpenLocationPopup = true;\n\t }\n\n\t\tif (referalCode.value) {\n\t\t localStorage.setItem('referalCode', referalCode.value);\n\t\t}\n\n\t\tif (page.value) show.value = true\n\t});\n</script>\n\n<style lang=\"scss\">;\t\n\t.scaleIn-enter-active,\n\t.scaleIn-leave-active {\n\t\ttransform: scale(1); \n\t\ttransition: all 0.5s ease; \n\t}\n\t.scaleIn-enter-from,\n\t.scaleIn-leave-to {\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease; \n\t}\n\n\t.moveFromTop-enter-active,\n\t.moveFromTop-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTop-enter-from,\n\t.moveFromTop-leave-to {\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\n\t.moveFromTopAbsolute-enter-active,\n\t.moveFromTopAbsolute-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTopAbsolute-enter-from,\n\t.moveFromTopAbsolute-leave-to {\n\t\tposition: absolute;\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\t.ScaleOut-enter-active,\n\t.ScaleOut-leave-active {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t\ttransition: all 0.3s ease; \n\t\t\n\t}\n\t.ScaleOut-enter-from,\n\t.ScaleOut-leave-to {\n\t\topacity: 0;\n\t\ttransform: scale(0.9);\n\t\ttransition: all 0.3s ease;\n\t}\n\t.slide-fade-enter-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-leave-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-enter-from,\n\t.slide-fade-leave-to {\n\t\tmin-height: 0;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n\t.scaleTransition-5px-enter-active,\n .scaleTransition-5px-leave-active {\n transform: translateY(0px); \n opacity: 1;\n z-index: 1;\n transition: all 0.2s ease;\n }\n\n .scaleTransition-5px-enter-from,\n .scaleTransition-5px-leave-to {\n opacity: 0;\n z-index: 0;\n position: absolute;\n transform: translateY(-30px); \n transition: all 0.2s ease;\n }\n\n .scaleTransition-enter-from,\n .scaleTransition-leave-to {\n opacity: 0;\n z-index: 0;\n position: absolute;\n width: inherit;\n height: inherit;\n display: block;\n transform: translateY(-30px); \n transition: all 0.5s ease;\n }\n\n .scaleTransition-enter-active,\n .scaleTransition-leave-active {\n transform: translateY(0px); \n opacity: 1;\n z-index: 1;\n transition: all 0.5s ease;\n }\n .scaleTransition-enter-from,\n .scaleTransition-leave-to {\n opacity: 0;\n z-index: 0;\n position: absolute;\n width: inherit;\n height: inherit;\n display: block;\n transform: translateY(-30px); \n transition: all 0.5s ease;\n }\n\n .scaleIn-enter-active,\n .scaleIn-leave-active {\n // background: red;\n transition: all 0.5s ease;\n > section,div { transform-origin: 0 0; transform: translateZ(0px); transition: all 0.5s ease; }\n }\n .scaleIn-enter-from,\n .scaleIn-leave-to {\n opacity: 0;\n > section,div { transform: translateZ(-30px); transition: all 0.5s ease; }\n transform: scale(0.95);\n }\n</style>"],"names":["ref","useRoute","globals.state","computed","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsJE,QAAI,OAAOA,IAAG,IAAC,KAAK;AAEpB,UAAM,OAAOA,IAAG,IAAC,IAAI;AAItB,UAAM,QAAQC,UAAAA,SAAU;AAGxB,UAAM,cAAcD,IAAG,IAAC,MAAM,MAAM,WAAW;AAI/C,aAAS,qBAAqB;AAC5BE,cAAa,MAAC,sBAAsB;AAAA,IACrC;AACD,aAAS,YAAW;AACnB,eAAS,eAAe,KAAK,EAAE,eAAc;AAAA,IAC7C;AAED,UAAM,eAAeF,IAAG,IAAC,CAAC;AAE1B,UAAM,SAASA,IAAG,IAAC,IAAI;AAEvB,UAAM,cAAcG,IAAAA,SAAS,MAAM;AAClC,UAAI,aAAa,QAAQ,IAAI;AAC5B,eAAO;AAAA,MACV,OAAS;AACN,eAAO,MAAM,KAAK,gBAAgB;AAAA,MAClC;AAAA,IACH,CAAE;AAED,UAAM,eAAe,MAAM;AACzB,mBAAa,QAAQ,MAAM,OAAO;AAAA,IACrC;AAECC,QAAAA,UAAU,YAAY;AAErB,UAAI,mBAAmB,WAAW;AAC/B,eAAO,iBAAiB,QAAQ,MAAM;AACpC,oBAAU,cAAc,SAAS,oBAAoB,EAAE,KAAK,kBAAgB;AAC1E,oBAAQ,IAAI,mBAAmB,YAAY;AAAA,UACpD,CAAQ,EAAE,MAAM,uBAAqB;AAC5B,oBAAQ,IAAI,4BAA4B,iBAAiB;AAAA,UAClE,CAAQ;AAAA,QACR,CAAK;AAAA,MACD;AAEF,YAAM,gBAAgB,aAAa,QAAQ,UAAU;AAEpD,UAAI,eAAe;AACjBF,gBAAAA,MAAc,WAAW,KAAK,MAAM,aAAa;AAAA,MACtD,OAAU;AACNA,gBAAa,MAAC,sBAAsB;AAAA,MACpC;AAEF,UAAI,YAAY,OAAO;AACrB,qBAAa,QAAQ,eAAe,YAAY,KAAK;AAAA,MACtD;AAED,UAAI,KAAK,MAAO,MAAK,QAAQ;AAAA,IAC/B,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js
CHANGED
@@ -2,7 +2,7 @@ import { ref, computed, onMounted, resolveComponent, openBlock, createElementBlo
|
|
2
2
|
import { useRoute } from "vue-router";
|
3
3
|
import { state } from "../../store/globals.js";
|
4
4
|
import _sfc_main$5 from "../../../../../components/Status/Status.vue.js";
|
5
|
-
import _sfc_main$2 from "../../../../../components/Popup/Popup.
|
5
|
+
import _sfc_main$2 from "../../../../../components/Popup/Popup.vue2.js";
|
6
6
|
import Loader from "../../../../../components/Loader/Loader.vue2.js";
|
7
7
|
import _sfc_main$6 from "../partials/BottomNavigationBar.vue.js";
|
8
8
|
import _sfc_main$1 from "../partials/NavigationBar.vue.js";
|
@@ -139,6 +139,7 @@ const _sfc_main = {
|
|
139
139
|
state.error.show ? (openBlock(), createBlock(_sfc_main$5, {
|
140
140
|
key: 0,
|
141
141
|
data: state.error,
|
142
|
+
onClose: _cache[0] || (_cache[0] = ($event) => state.error.show = false),
|
142
143
|
class: "z-index-7"
|
143
144
|
}, null, 8, ["data"])) : createCommentVNode("", true),
|
144
145
|
createVNode(Transition, {
|