@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.
Files changed (21) hide show
  1. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
  2. package/dist/prometheus-framework/src/modules/auth/auth.client.js.map +1 -1
  3. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +1 -1
  4. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs.map +1 -1
  5. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +2 -2
  6. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
  7. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -2
  8. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs.map +1 -1
  9. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -3
  10. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +1 -1
  11. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +10 -1
  12. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
  13. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +10 -1
  14. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
  15. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +476 -476
  16. package/dist/prometheus-framework/src/modules/pages/pages.client.js +476 -476
  17. package/package.json +1 -1
  18. package/src/modules/auth/auth.client.js +0 -7
  19. package/src/modules/auth/views/middlewares/auth.validation.js +1 -1
  20. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +2 -2
  21. package/src/modules/organizations/router/organizations.js +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.2.227",
3
+ "version": "0.2.228",
4
4
  "description": "Web3 Framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",
@@ -25,13 +25,6 @@ function initializeAuth(app, store, router, options = {}) {
25
25
  const route = options.route || 'Home';
26
26
 
27
27
  router.addRoute(route, routerAuth);
28
-
29
- // const homeRoute = router.getRoutes().find(routes => routes.name === route);
30
-
31
- // if (homeRoute && process.env.MOBILE_APP) {
32
- // homeRoute.beforeEnter = homeRoute.beforeEnter || [];
33
- // homeRoute.beforeEnter.push(validationAuth.initUser);
34
- // }
35
28
 
36
29
  store.addStore('auth', storeAuth);
37
30
  store.addStore('twofa', storeTwofa);
@@ -9,7 +9,7 @@ function resetUser(to, from, next) {
9
9
  }
10
10
 
11
11
  async function initUser(to, from, next) {
12
- await auth.initialize();
12
+ await auth.actions.initialize();
13
13
  next()
14
14
  }
15
15
 
@@ -2,7 +2,7 @@
2
2
  <div class="">
3
3
  <h1 class="pd-medium radius-medium bg-light mn-b-small">Welcome to Backoffice</h1>
4
4
 
5
- {{auth.state.accesses}}
5
+ <!-- {{auth.state.accesses}} -->
6
6
 
7
7
  <Menu
8
8
  class="bg-light mn-b-semi"
@@ -99,7 +99,7 @@
99
99
  <MenuItem
100
100
  v-if="hasAccess(route.params._id, 'events', 'read', auth.state.accesses)"
101
101
  @click="router.push({
102
- name: 'Events Backoffice',
102
+ name: 'Organization_Events Backoffice',
103
103
  params: {
104
104
  _id: route.params._id
105
105
  }
@@ -67,7 +67,16 @@ const organizations = [{
67
67
  ...membersRoutes,
68
68
  ...departmentRoutes,
69
69
  ...productRoutes,
70
- ...eventsRoutes,
70
+ ...eventsRoutes.map(route => ({
71
+ ...route,
72
+ path: route.path,
73
+ name: `Organization_${route.name}`,
74
+ meta: {
75
+ ...route.meta,
76
+ organizationScoped: true
77
+ },
78
+ props: true
79
+ })),
71
80
  ...categoriesRoutes,
72
81
  ...leftoversRoutes,
73
82
  ...paymentsRoutes,