@ozdao/prometheus-framework 0.2.227 → 0.2.228
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +10 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +10 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +476 -476
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +476 -476
- package/package.json +1 -1
- package/src/modules/auth/auth.client.js +0 -7
- package/src/modules/auth/views/middlewares/auth.validation.js +1 -1
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +2 -2
- package/src/modules/organizations/router/organizations.js +10 -1
@@ -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// 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
|
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 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;AAEjC,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 +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// 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
|
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 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;AAEjC,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;"}
|
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","auth.
|
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.actions.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.actions"],"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,KAAAA,QAAa;AACnB,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;;;;;;;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { state } from "../store/auth.js";
|
1
|
+
import { state, actions } from "../store/auth.js";
|
2
2
|
function resetUser(to, from, next) {
|
3
3
|
next();
|
4
4
|
state.user.phone = "";
|
@@ -7,7 +7,7 @@ function resetUser(to, from, next) {
|
|
7
7
|
state.user.passwordRepeat = "";
|
8
8
|
}
|
9
9
|
async function initUser(to, from, next) {
|
10
|
-
await (
|
10
|
+
await actions.initialize();
|
11
11
|
next();
|
12
12
|
}
|
13
13
|
function checkUser(to, from, next) {
|
@@ -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","auth.
|
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.actions.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.actions"],"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,QAAa;AACnB,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;"}
|
@@ -36,7 +36,6 @@ const _sfc_main = {
|
|
36
36
|
return (_ctx, _cache) => {
|
37
37
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
38
38
|
_hoisted_2,
|
39
|
-
vue.createTextVNode(" " + vue.toDisplayString(auth.state.accesses) + " ", 1),
|
40
39
|
vue.createVNode(Menu.default, { class: "bg-light mn-b-semi" }, {
|
41
40
|
default: vue.withCtx(() => [
|
42
41
|
_ctx.hasAccess(vue.unref(route).params._id, "members", "read", auth.state.accesses) ? (vue.openBlock(), vue.createBlock(MenuItem.default, {
|
@@ -142,7 +141,7 @@ const _sfc_main = {
|
|
142
141
|
_ctx.hasAccess(vue.unref(route).params._id, "events", "read", auth.state.accesses) ? (vue.openBlock(), vue.createBlock(MenuItem.default, {
|
143
142
|
key: 5,
|
144
143
|
onClick: _cache[5] || (_cache[5] = ($event) => vue.unref(router).push({
|
145
|
-
name: "
|
144
|
+
name: "Organization_Events Backoffice",
|
146
145
|
params: {
|
147
146
|
_id: vue.unref(route).params._id
|
148
147
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"OrganizationBackoffice.vue.cjs","sources":["../../../../../../../src/modules/organizations/components/pages/OrganizationBackoffice.vue"],"sourcesContent":["<template>\n\t<div class=\"\">\n\t\t<h1 class=\"pd-medium radius-medium bg-light mn-b-small\">Welcome to Backoffice</h1>\n\t\t\n\t\t{{auth.state.accesses}}
|
1
|
+
{"version":3,"file":"OrganizationBackoffice.vue.cjs","sources":["../../../../../../../src/modules/organizations/components/pages/OrganizationBackoffice.vue"],"sourcesContent":["<template>\n\t<div class=\"\">\n\t\t<h1 class=\"pd-medium radius-medium bg-light mn-b-small\">Welcome to Backoffice</h1>\n\t\t\n\t\t<!-- {{auth.state.accesses}} -->\n\n\t\t<Menu \n\t\t\tclass=\"bg-light mn-b-semi\"\n\t\t>\n\t\t\t<MenuItem \n\t\t\t\tv-if=\"hasAccess(route.params._id, 'members', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Organization Members', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\"\n\t\t >\n\t\t \t<IconGroups class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tMembers\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <!-- <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Community', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tCommunity\n\t\t </span>\n\t\t </MenuItem> -->\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'products', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Products', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconProducts class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tProducts\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'leftovers', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Leftovers', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconLeftovers class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tLeftovers\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'orders', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Orders', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconOrders class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tOrders\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Gallery', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconGallery class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tGallery\n\t\t </span>\n\t\t </MenuItem>\n\t\t \n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'events', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Organization_Events Backoffice', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconEvents class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tEvents\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <!-- <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Payments', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tPayments\n\t\t </span>\n\t\t </MenuItem> -->\n\t\t</Menu>\n\n\t\t<!-- <Menu \n\t\t\tclass=\"bg-light\"\n\t\t>\n\t\t\t<MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Organizations', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tOrganizations\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Reports', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tReports\n\t\t </span>\n\t\t </MenuItem>\n\t\t</Menu> -->\n\t</div>\n</template>\n\n<script setup=\"props\">\n/////////////////////////////\n// COMPONENT DEPENDENCIES\n/////////////////////////////\nimport { ref, onMounted } from 'vue';\n\n// Mobile Module\nimport Menu from '@pf/src/components/Menu/Menu.vue'\nimport MenuItem from '@pf/src/components/Menu/MenuItem.vue'\nimport SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue'\n\nimport IconProducts from '@pf/src/modules/icons/entities/IconProducts.vue'\nimport IconEvents from '@pf/src/modules/icons/entities/IconEvents.vue'\nimport IconGroups from '@pf/src/modules/icons/entities/IconGroups.vue'\nimport IconCommunity from '@pf/src/modules/icons/entities/IconCommunity.vue'\nimport IconGallery from '@pf/src/modules/icons/entities/IconGallery.vue'\nimport IconOrders from '@pf/src/modules/icons/entities/IconOrders.vue'\nimport IconLeftovers from '@pf/src/modules/icons/entities/IconLeftovers.vue'\n/////////////////////////////\n// HELPERS\n/////////////////////////////\nimport { useRoute, useRouter } from 'vue-router'\n\nimport * as auth from '@pf/src/modules/auth/views/store/auth'\n\nimport * as organizations from '@pf/src/modules/organizations/store/organizations'\n\nconst route = useRoute()\nconst router = useRouter()\n/////////////////////////////\n// CREATED\n/////////////////////////////\nconst props = defineProps({\n favorites: Array,\n});\n\nconst selectedOrganization = ref(null);\nconst publics = ref([]);\n/////////////////////////////\n// MOUNTED\n/////////////////////////////\nonMounted(async () =>{\n})\n</script>\n\n<style lang=\"scss\">\n</style>"],"names":["useRoute","useRouter","ref","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0LA,UAAM,QAAQA,UAAAA,SAAU;AACxB,UAAM,SAASC,UAAAA,UAAW;AAQGC,QAAG,IAAC,IAAI;AACrBA,QAAG,IAAC,EAAE;AAItBC,QAAAA,UAAU,YAAW;AAAA,IACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref, onMounted, openBlock, createElementBlock,
|
1
|
+
import { ref, onMounted, openBlock, createElementBlock, createVNode, withCtx, unref, createBlock, createCommentVNode, createElementVNode } from "vue";
|
2
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 */
|
@@ -34,7 +34,6 @@ const _sfc_main = {
|
|
34
34
|
return (_ctx, _cache) => {
|
35
35
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
36
36
|
_hoisted_2,
|
37
|
-
createTextVNode(" " + toDisplayString(state.accesses) + " ", 1),
|
38
37
|
createVNode(_sfc_main$1, { class: "bg-light mn-b-semi" }, {
|
39
38
|
default: withCtx(() => [
|
40
39
|
_ctx.hasAccess(unref(route).params._id, "members", "read", state.accesses) ? (openBlock(), createBlock(_sfc_main$2, {
|
@@ -140,7 +139,7 @@ const _sfc_main = {
|
|
140
139
|
_ctx.hasAccess(unref(route).params._id, "events", "read", state.accesses) ? (openBlock(), createBlock(_sfc_main$2, {
|
141
140
|
key: 5,
|
142
141
|
onClick: _cache[5] || (_cache[5] = ($event) => unref(router).push({
|
143
|
-
name: "
|
142
|
+
name: "Organization_Events Backoffice",
|
144
143
|
params: {
|
145
144
|
_id: unref(route).params._id
|
146
145
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"OrganizationBackoffice.vue.js","sources":["../../../../../../../src/modules/organizations/components/pages/OrganizationBackoffice.vue"],"sourcesContent":["<template>\n\t<div class=\"\">\n\t\t<h1 class=\"pd-medium radius-medium bg-light mn-b-small\">Welcome to Backoffice</h1>\n\t\t\n\t\t{{auth.state.accesses}}
|
1
|
+
{"version":3,"file":"OrganizationBackoffice.vue.js","sources":["../../../../../../../src/modules/organizations/components/pages/OrganizationBackoffice.vue"],"sourcesContent":["<template>\n\t<div class=\"\">\n\t\t<h1 class=\"pd-medium radius-medium bg-light mn-b-small\">Welcome to Backoffice</h1>\n\t\t\n\t\t<!-- {{auth.state.accesses}} -->\n\n\t\t<Menu \n\t\t\tclass=\"bg-light mn-b-semi\"\n\t\t>\n\t\t\t<MenuItem \n\t\t\t\tv-if=\"hasAccess(route.params._id, 'members', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Organization Members', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\"\n\t\t >\n\t\t \t<IconGroups class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tMembers\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <!-- <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Community', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tCommunity\n\t\t </span>\n\t\t </MenuItem> -->\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'products', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Products', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconProducts class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tProducts\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'leftovers', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Leftovers', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconLeftovers class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tLeftovers\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'orders', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Orders', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconOrders class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tOrders\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Gallery', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconGallery class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tGallery\n\t\t </span>\n\t\t </MenuItem>\n\t\t \n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'events', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Organization_Events Backoffice', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconEvents class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tEvents\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <!-- <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Payments', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tPayments\n\t\t </span>\n\t\t </MenuItem> -->\n\t\t</Menu>\n\n\t\t<!-- <Menu \n\t\t\tclass=\"bg-light\"\n\t\t>\n\t\t\t<MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Organizations', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tOrganizations\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Reports', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tReports\n\t\t </span>\n\t\t </MenuItem>\n\t\t</Menu> -->\n\t</div>\n</template>\n\n<script setup=\"props\">\n/////////////////////////////\n// COMPONENT DEPENDENCIES\n/////////////////////////////\nimport { ref, onMounted } from 'vue';\n\n// Mobile Module\nimport Menu from '@pf/src/components/Menu/Menu.vue'\nimport MenuItem from '@pf/src/components/Menu/MenuItem.vue'\nimport SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue'\n\nimport IconProducts from '@pf/src/modules/icons/entities/IconProducts.vue'\nimport IconEvents from '@pf/src/modules/icons/entities/IconEvents.vue'\nimport IconGroups from '@pf/src/modules/icons/entities/IconGroups.vue'\nimport IconCommunity from '@pf/src/modules/icons/entities/IconCommunity.vue'\nimport IconGallery from '@pf/src/modules/icons/entities/IconGallery.vue'\nimport IconOrders from '@pf/src/modules/icons/entities/IconOrders.vue'\nimport IconLeftovers from '@pf/src/modules/icons/entities/IconLeftovers.vue'\n/////////////////////////////\n// HELPERS\n/////////////////////////////\nimport { useRoute, useRouter } from 'vue-router'\n\nimport * as auth from '@pf/src/modules/auth/views/store/auth'\n\nimport * as organizations from '@pf/src/modules/organizations/store/organizations'\n\nconst route = useRoute()\nconst router = useRouter()\n/////////////////////////////\n// CREATED\n/////////////////////////////\nconst props = defineProps({\n favorites: Array,\n});\n\nconst selectedOrganization = ref(null);\nconst publics = ref([]);\n/////////////////////////////\n// MOUNTED\n/////////////////////////////\nonMounted(async () =>{\n})\n</script>\n\n<style lang=\"scss\">\n</style>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA0LA,UAAM,QAAQ,SAAU;AACxB,UAAM,SAAS,UAAW;AAQG,QAAI,IAAI;AACrB,QAAI,EAAE;AAItB,cAAU,YAAW;AAAA,IACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -63,7 +63,16 @@ const organizations = [{
|
|
63
63
|
...members_router.default,
|
64
64
|
...departments_router.default,
|
65
65
|
...products_router.default,
|
66
|
-
...events.default
|
66
|
+
...events.default.map((route) => ({
|
67
|
+
...route,
|
68
|
+
path: route.path,
|
69
|
+
name: `Organization_${route.name}`,
|
70
|
+
meta: {
|
71
|
+
...route.meta,
|
72
|
+
organizationScoped: true
|
73
|
+
},
|
74
|
+
props: true
|
75
|
+
})),
|
67
76
|
...categories_router.default,
|
68
77
|
...leftovers_router.default,
|
69
78
|
...payments_router.default,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"organizations.cjs","sources":["../../../../../../src/modules/organizations/router/organizations.js"],"sourcesContent":["import layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';\n\nimport membersRoutes from './members.router.js';\nimport departmentRoutes from './departments.router.js'\n\nimport productRoutes from '@pf/src/modules/products/router/products.router.js'\nimport eventsRoutes from '@pf/src/modules/events/router/events';\nimport categoriesRoutes from '@pf/src/modules/products/router/categories.router.js'\nimport leftoversRoutes from '@pf/src/modules/products/router/leftovers.router.js'\n\nimport paymentsRoutes from '@pf/src/modules/wallet/views/router/payments.router.js'\nimport ordersBackofficeRoutes from '@pf/src/modules/orders/router/orders.backoffice.router.js'\nimport galleryBackofficeRoutes from '@pf/src/modules/gallery/router/gallery.backoffice.router.js'\n\nimport backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'\n\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst organizations = [{\n path: 'organizations',\n component: layoutEmpty,\n meta: {\n title: {\n en: 'Organizations',\n ru: 'Организации'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n children: [{\n path: 'create',\n name: 'Create Organization',\n meta: {\n title: {\n en: 'Create Organization',\n ru: 'Создать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue')\n },{\n path: ':_id',\n name: 'OrganizationRoot',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n },\n component: layoutEmpty,\n children: [\n {\n path: '',\n name: 'Organization',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n component: () => import('@pf/src/modules/organizations/components/pages/Organization.vue'),\n },\n ...membersRoutes,\n ...departmentRoutes,\n ...productRoutes,\n ...eventsRoutes,\n ...categoriesRoutes,\n ...leftoversRoutes,\n ...paymentsRoutes,\n ...ordersBackofficeRoutes,\n ...galleryBackofficeRoutes,\n ...backofficeRoutes \n ],\n },{\n path: ':_id/edit',\n name: 'Organization Edit',\n meta: {\n title: {\n en: 'Edit Organization',\n ru: 'Редактировать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue'),\n }]\n}];\n\nexport default organizations;\n"],"names":["layoutEmpty","validationAuth.requiresAuth","membersRoutes","departmentRoutes","productRoutes","eventsRoutes","categoriesRoutes","leftoversRoutes","paymentsRoutes","ordersBackofficeRoutes","galleryBackofficeRoutes","backofficeRoutes"],"mappings":";;;;;;;;;;;;;;AAkBK,MAAC,gBAAgB,CAAC;AAAA,EACrB,MAAM;AAAA,EACN,WAAWA,MAAW;AAAA,EACtB,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,IAAI;AAAA,MACJ,IAAI;AAAA,IACL;AAAA,IACD,aAAa;AAAA,MACX,QAAQ;AAAA,IACT;AAAA,EACF;AAAA,EACD,UAAU,CAAC;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,aAAa,CAACC,gBAAAA,YAA2B;AAAA,IACzC,WAAW,MAAM,QAAA,QAAA,EAAA,KAAA,MAAA,QAAO,8CAAqE,CAAC;AAAA,EAClG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAWD,MAAW;AAAA,IACtB,UAAU;AAAA,MACR;AAAA,QACE,MAAM;AAAA,QACN,MAAM;AAAA,QACN,MAAM;AAAA,UACJ,OAAO;AAAA,YACL,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,UACD,aAAa;AAAA,YACX,QAAQ;AAAA,UACT;AAAA,QACF;AAAA,QACD,WAAW,MAAM,QAAA,QAAA,EAAA,KAAA,MAAA,QAAO,0CAAiE,CAAC;AAAA,MAC3F;AAAA,MACD,GAAGE,eAAa;AAAA,MAChB,GAAGC,mBAAgB;AAAA,MACnB,GAAGC,gBAAa;AAAA,MAChB,GAAGC,OAAY;AAAA,MACf,GAAGC,kBAAgB;AAAA,MACnB,GAAGC,iBAAe;AAAA,MAClB,GAAGC,gBAAc;AAAA,MACjB,GAAGC,yBAAsB;AAAA,MACzB,GAAGC,0BAAuB;AAAA,MAC1B,GAAGC,kBAAgB;AAAA,IACpB;AAAA,EACL,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,aAAa,CAACV,gBAAAA,YAA2B;AAAA,IACzC,WAAW,MAAM,QAAA,QAAA,EAAA,KAAA,MAAA,QAAO,8CAAqE,CAAC;AAAA,EAClG,CAAG;AACH,CAAC;;"}
|
1
|
+
{"version":3,"file":"organizations.cjs","sources":["../../../../../../src/modules/organizations/router/organizations.js"],"sourcesContent":["import layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';\n\nimport membersRoutes from './members.router.js';\nimport departmentRoutes from './departments.router.js'\n\nimport productRoutes from '@pf/src/modules/products/router/products.router.js'\nimport eventsRoutes from '@pf/src/modules/events/router/events';\nimport categoriesRoutes from '@pf/src/modules/products/router/categories.router.js'\nimport leftoversRoutes from '@pf/src/modules/products/router/leftovers.router.js'\n\nimport paymentsRoutes from '@pf/src/modules/wallet/views/router/payments.router.js'\nimport ordersBackofficeRoutes from '@pf/src/modules/orders/router/orders.backoffice.router.js'\nimport galleryBackofficeRoutes from '@pf/src/modules/gallery/router/gallery.backoffice.router.js'\n\nimport backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'\n\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst organizations = [{\n path: 'organizations',\n component: layoutEmpty,\n meta: {\n title: {\n en: 'Organizations',\n ru: 'Организации'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n children: [{\n path: 'create',\n name: 'Create Organization',\n meta: {\n title: {\n en: 'Create Organization',\n ru: 'Создать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue')\n },{\n path: ':_id',\n name: 'OrganizationRoot',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n },\n component: layoutEmpty,\n children: [\n {\n path: '',\n name: 'Organization',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n component: () => import('@pf/src/modules/organizations/components/pages/Organization.vue'),\n },\n ...membersRoutes,\n ...departmentRoutes,\n ...productRoutes,\n ...eventsRoutes.map(route => ({\n ...route,\n path: route.path,\n name: `Organization_${route.name}`,\n meta: {\n ...route.meta,\n organizationScoped: true\n },\n props: true\n })),\n ...categoriesRoutes,\n ...leftoversRoutes,\n ...paymentsRoutes,\n ...ordersBackofficeRoutes,\n ...galleryBackofficeRoutes,\n ...backofficeRoutes \n ],\n },{\n path: ':_id/edit',\n name: 'Organization Edit',\n meta: {\n title: {\n en: 'Edit Organization',\n ru: 'Редактировать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue'),\n }]\n}];\n\nexport default organizations;\n"],"names":["layoutEmpty","validationAuth.requiresAuth","membersRoutes","departmentRoutes","productRoutes","eventsRoutes","categoriesRoutes","leftoversRoutes","paymentsRoutes","ordersBackofficeRoutes","galleryBackofficeRoutes","backofficeRoutes"],"mappings":";;;;;;;;;;;;;;AAkBK,MAAC,gBAAgB,CAAC;AAAA,EACrB,MAAM;AAAA,EACN,WAAWA,MAAW;AAAA,EACtB,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,IAAI;AAAA,MACJ,IAAI;AAAA,IACL;AAAA,IACD,aAAa;AAAA,MACX,QAAQ;AAAA,IACT;AAAA,EACF;AAAA,EACD,UAAU,CAAC;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,aAAa,CAACC,gBAAAA,YAA2B;AAAA,IACzC,WAAW,MAAM,QAAA,QAAA,EAAA,KAAA,MAAA,QAAO,8CAAqE,CAAC;AAAA,EAClG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAWD,MAAW;AAAA,IACtB,UAAU;AAAA,MACR;AAAA,QACE,MAAM;AAAA,QACN,MAAM;AAAA,QACN,MAAM;AAAA,UACJ,OAAO;AAAA,YACL,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,UACD,aAAa;AAAA,YACX,QAAQ;AAAA,UACT;AAAA,QACF;AAAA,QACD,WAAW,MAAM,QAAA,QAAA,EAAA,KAAA,MAAA,QAAO,0CAAiE,CAAC;AAAA,MAC3F;AAAA,MACD,GAAGE,eAAa;AAAA,MAChB,GAAGC,mBAAgB;AAAA,MACnB,GAAGC,gBAAa;AAAA,MAChB,GAAGC,OAAY,QAAC,IAAI,YAAU;AAAA,QAC5B,GAAG;AAAA,QACH,MAAM,MAAM;AAAA,QACZ,MAAM,gBAAgB,MAAM,IAAI;AAAA,QAChC,MAAM;AAAA,UACJ,GAAG,MAAM;AAAA,UACT,oBAAoB;AAAA,QACrB;AAAA,QACD,OAAO;AAAA,MACf,EAAQ;AAAA,MACF,GAAGC,kBAAgB;AAAA,MACnB,GAAGC,iBAAe;AAAA,MAClB,GAAGC,gBAAc;AAAA,MACjB,GAAGC,yBAAsB;AAAA,MACzB,GAAGC,0BAAuB;AAAA,MAC1B,GAAGC,kBAAgB;AAAA,IACpB;AAAA,EACL,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,aAAa,CAACV,gBAAAA,YAA2B;AAAA,IACzC,WAAW,MAAM,QAAA,QAAA,EAAA,KAAA,MAAA,QAAO,8CAAqE,CAAC;AAAA,EAClG,CAAG;AACH,CAAC;;"}
|
@@ -61,7 +61,16 @@ const organizations = [{
|
|
61
61
|
...membersRoutes,
|
62
62
|
...departmentRoutes,
|
63
63
|
...productRoutes,
|
64
|
-
...eventsRoutes
|
64
|
+
...eventsRoutes.map((route) => ({
|
65
|
+
...route,
|
66
|
+
path: route.path,
|
67
|
+
name: `Organization_${route.name}`,
|
68
|
+
meta: {
|
69
|
+
...route.meta,
|
70
|
+
organizationScoped: true
|
71
|
+
},
|
72
|
+
props: true
|
73
|
+
})),
|
65
74
|
...categoriesRoutes,
|
66
75
|
...productRoutes$1,
|
67
76
|
...payments,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"organizations.js","sources":["../../../../../../src/modules/organizations/router/organizations.js"],"sourcesContent":["import layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';\n\nimport membersRoutes from './members.router.js';\nimport departmentRoutes from './departments.router.js'\n\nimport productRoutes from '@pf/src/modules/products/router/products.router.js'\nimport eventsRoutes from '@pf/src/modules/events/router/events';\nimport categoriesRoutes from '@pf/src/modules/products/router/categories.router.js'\nimport leftoversRoutes from '@pf/src/modules/products/router/leftovers.router.js'\n\nimport paymentsRoutes from '@pf/src/modules/wallet/views/router/payments.router.js'\nimport ordersBackofficeRoutes from '@pf/src/modules/orders/router/orders.backoffice.router.js'\nimport galleryBackofficeRoutes from '@pf/src/modules/gallery/router/gallery.backoffice.router.js'\n\nimport backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'\n\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst organizations = [{\n path: 'organizations',\n component: layoutEmpty,\n meta: {\n title: {\n en: 'Organizations',\n ru: 'Организации'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n children: [{\n path: 'create',\n name: 'Create Organization',\n meta: {\n title: {\n en: 'Create Organization',\n ru: 'Создать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue')\n },{\n path: ':_id',\n name: 'OrganizationRoot',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n },\n component: layoutEmpty,\n children: [\n {\n path: '',\n name: 'Organization',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n component: () => import('@pf/src/modules/organizations/components/pages/Organization.vue'),\n },\n ...membersRoutes,\n ...departmentRoutes,\n ...productRoutes,\n ...eventsRoutes,\n ...categoriesRoutes,\n ...leftoversRoutes,\n ...paymentsRoutes,\n ...ordersBackofficeRoutes,\n ...galleryBackofficeRoutes,\n ...backofficeRoutes \n ],\n },{\n path: ':_id/edit',\n name: 'Organization Edit',\n meta: {\n title: {\n en: 'Edit Organization',\n ru: 'Редактировать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue'),\n }]\n}];\n\nexport default organizations;\n"],"names":["validationAuth.requiresAuth","leftoversRoutes","paymentsRoutes","ordersBackofficeRoutes","galleryBackofficeRoutes"],"mappings":";;;;;;;;;;;;AAkBK,MAAC,gBAAgB,CAAC;AAAA,EACrB,MAAM;AAAA,EACN,WAAW;AAAA,EACX,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,IAAI;AAAA,MACJ,IAAI;AAAA,IACL;AAAA,IACD,aAAa;AAAA,MACX,QAAQ;AAAA,IACT;AAAA,EACF;AAAA,EACD,UAAU,CAAC;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,aAAa,CAACA,YAA2B;AAAA,IACzC,WAAW,MAAM,OAAO,6CAAqE;AAAA,EACjG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW;AAAA,IACX,UAAU;AAAA,MACR;AAAA,QACE,MAAM;AAAA,QACN,MAAM;AAAA,QACN,MAAM;AAAA,UACJ,OAAO;AAAA,YACL,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,UACD,aAAa;AAAA,YACX,QAAQ;AAAA,UACT;AAAA,QACF;AAAA,QACD,WAAW,MAAM,OAAO,yCAAiE;AAAA,MAC1F;AAAA,MACD,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,
|
1
|
+
{"version":3,"file":"organizations.js","sources":["../../../../../../src/modules/organizations/router/organizations.js"],"sourcesContent":["import layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';\n\nimport membersRoutes from './members.router.js';\nimport departmentRoutes from './departments.router.js'\n\nimport productRoutes from '@pf/src/modules/products/router/products.router.js'\nimport eventsRoutes from '@pf/src/modules/events/router/events';\nimport categoriesRoutes from '@pf/src/modules/products/router/categories.router.js'\nimport leftoversRoutes from '@pf/src/modules/products/router/leftovers.router.js'\n\nimport paymentsRoutes from '@pf/src/modules/wallet/views/router/payments.router.js'\nimport ordersBackofficeRoutes from '@pf/src/modules/orders/router/orders.backoffice.router.js'\nimport galleryBackofficeRoutes from '@pf/src/modules/gallery/router/gallery.backoffice.router.js'\n\nimport backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'\n\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst organizations = [{\n path: 'organizations',\n component: layoutEmpty,\n meta: {\n title: {\n en: 'Organizations',\n ru: 'Организации'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n children: [{\n path: 'create',\n name: 'Create Organization',\n meta: {\n title: {\n en: 'Create Organization',\n ru: 'Создать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue')\n },{\n path: ':_id',\n name: 'OrganizationRoot',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n },\n component: layoutEmpty,\n children: [\n {\n path: '',\n name: 'Organization',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n component: () => import('@pf/src/modules/organizations/components/pages/Organization.vue'),\n },\n ...membersRoutes,\n ...departmentRoutes,\n ...productRoutes,\n ...eventsRoutes.map(route => ({\n ...route,\n path: route.path,\n name: `Organization_${route.name}`,\n meta: {\n ...route.meta,\n organizationScoped: true\n },\n props: true\n })),\n ...categoriesRoutes,\n ...leftoversRoutes,\n ...paymentsRoutes,\n ...ordersBackofficeRoutes,\n ...galleryBackofficeRoutes,\n ...backofficeRoutes \n ],\n },{\n path: ':_id/edit',\n name: 'Organization Edit',\n meta: {\n title: {\n en: 'Edit Organization',\n ru: 'Редактировать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue'),\n }]\n}];\n\nexport default organizations;\n"],"names":["validationAuth.requiresAuth","leftoversRoutes","paymentsRoutes","ordersBackofficeRoutes","galleryBackofficeRoutes"],"mappings":";;;;;;;;;;;;AAkBK,MAAC,gBAAgB,CAAC;AAAA,EACrB,MAAM;AAAA,EACN,WAAW;AAAA,EACX,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,IAAI;AAAA,MACJ,IAAI;AAAA,IACL;AAAA,IACD,aAAa;AAAA,MACX,QAAQ;AAAA,IACT;AAAA,EACF;AAAA,EACD,UAAU,CAAC;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,aAAa,CAACA,YAA2B;AAAA,IACzC,WAAW,MAAM,OAAO,6CAAqE;AAAA,EACjG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW;AAAA,IACX,UAAU;AAAA,MACR;AAAA,QACE,MAAM;AAAA,QACN,MAAM;AAAA,QACN,MAAM;AAAA,UACJ,OAAO;AAAA,YACL,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,UACD,aAAa;AAAA,YACX,QAAQ;AAAA,UACT;AAAA,QACF;AAAA,QACD,WAAW,MAAM,OAAO,yCAAiE;AAAA,MAC1F;AAAA,MACD,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG,aAAa,IAAI,YAAU;AAAA,QAC5B,GAAG;AAAA,QACH,MAAM,MAAM;AAAA,QACZ,MAAM,gBAAgB,MAAM,IAAI;AAAA,QAChC,MAAM;AAAA,UACJ,GAAG,MAAM;AAAA,UACT,oBAAoB;AAAA,QACrB;AAAA,QACD,OAAO;AAAA,MACf,EAAQ;AAAA,MACF,GAAG;AAAA,MACH,GAAGC;AAAAA,MACH,GAAGC;AAAAA,MACH,GAAGC;AAAAA,MACH,GAAGC;AAAAA,MACH,GAAG;AAAA,IACJ;AAAA,EACL,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,aAAa,CAACJ,YAA2B;AAAA,IACzC,WAAW,MAAM,OAAO,6CAAqE;AAAA,EACjG,CAAG;AACH,CAAC;"}
|