@ozdao/prometheus-framework 0.2.250 → 0.2.251
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +8 -9
- package/dist/builder.mjs +8 -9
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +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/community/components/sections/HotPosts.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +0 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.cjs +35 -13
- package/dist/prometheus-framework/src/modules/events/events.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.js +41 -19
- package/dist/prometheus-framework/src/modules/events/events.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +95 -91
- package/dist/prometheus-framework/src/modules/events/router/events.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +94 -90
- package/dist/prometheus-framework/src/modules/events/router/events.js.map +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/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/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/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/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/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.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/organizations/router/organizations.cjs +2 -10
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +3 -11
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +590 -590
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +590 -590
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/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/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- 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/layouts/Spots.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +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/package.json +1 -1
- package/src/builder/webpack/webpack.config.spa.js +7 -7
- package/src/modules/events/components/elements/ButtonCheck.vue +11 -11
- package/src/modules/events/components/pages/EventsBackoffice.vue +1 -1
- package/src/modules/events/events.client.js +43 -18
- package/src/modules/events/router/events.js +79 -66
- package/src/modules/governance/governance.client.js +62 -0
- package/src/modules/governance/governance.server.js +56 -0
- package/src/modules/organizations/router/organizations.js +4 -11
@@ -1,10 +1,10 @@
|
|
1
|
-
import layoutEvents from '../components/layouts/layoutEvents.vue'
|
2
1
|
import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
|
3
2
|
|
4
|
-
|
5
|
-
{
|
6
|
-
|
7
|
-
|
3
|
+
export function createEventRoutes(prefix = '', options = {}) {
|
4
|
+
const nameWithPrefix = (name) => prefix ? `${prefix}${name}` : name;
|
5
|
+
|
6
|
+
const routes = {
|
7
|
+
path: options.basePath || 'events',
|
8
8
|
meta: {
|
9
9
|
title: {
|
10
10
|
en: 'Events',
|
@@ -12,71 +12,84 @@ const eventsRoutes = [
|
|
12
12
|
},
|
13
13
|
title_hide: true
|
14
14
|
},
|
15
|
-
children: [
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
15
|
+
children: [
|
16
|
+
{
|
17
|
+
path: '',
|
18
|
+
name: nameWithPrefix('Events'),
|
19
|
+
meta: {
|
20
|
+
title: {
|
21
|
+
en: 'Events',
|
22
|
+
ru: 'События'
|
23
|
+
},
|
24
|
+
title_hide: true
|
22
25
|
},
|
23
|
-
|
26
|
+
component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/Events.vue')
|
24
27
|
},
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
28
|
+
{
|
29
|
+
path: 'backoffice',
|
30
|
+
name: nameWithPrefix('Events Backoffice'),
|
31
|
+
meta: {
|
32
|
+
title: {
|
33
|
+
en: 'Manage Events',
|
34
|
+
ru: 'Управление Событиями'
|
35
|
+
},
|
36
|
+
authorize: options.backofficeAuthorize || []
|
37
|
+
},
|
38
|
+
component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/EventsBackoffice.vue')
|
34
39
|
},
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
40
|
+
{
|
41
|
+
path: 'create',
|
42
|
+
name: nameWithPrefix('Create Event'),
|
43
|
+
meta: {
|
44
|
+
title: {
|
45
|
+
en: 'Create Event',
|
46
|
+
ru: 'Создать Событие'
|
47
|
+
},
|
48
|
+
authorize: options.createEventAuthorize || []
|
49
|
+
},
|
50
|
+
component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/EditEvent.vue')
|
45
51
|
},
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
}
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
52
|
+
{
|
53
|
+
path: ':url',
|
54
|
+
name: nameWithPrefix('Event'),
|
55
|
+
meta: {
|
56
|
+
title: {
|
57
|
+
en: 'Event',
|
58
|
+
ru: 'Событие'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/Event.vue')
|
62
|
+
},
|
63
|
+
{
|
64
|
+
path: ':url/edit',
|
65
|
+
name: nameWithPrefix('Edit Event'),
|
66
|
+
meta: {
|
67
|
+
title: {
|
68
|
+
en: 'Edit Event',
|
69
|
+
ru: 'Редактировать Событие'
|
70
|
+
},
|
71
|
+
authorize: options.editEventAuthorize || []
|
72
|
+
},
|
73
|
+
component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/EditEvent.vue')
|
74
|
+
},
|
75
|
+
{
|
76
|
+
path: ':url/edit/tickets',
|
77
|
+
name: nameWithPrefix('Edit Event Tickets'),
|
78
|
+
meta: {
|
79
|
+
title: {
|
80
|
+
en: 'Event Tickets',
|
81
|
+
ru: 'Билеты События'
|
82
|
+
},
|
83
|
+
authorize: options.editTicketsAuthorize || []
|
84
|
+
},
|
85
|
+
component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/EditEventTickets.vue')
|
76
86
|
}
|
77
|
-
|
78
|
-
component: () => import(/* webpackChunkName: 'EditEvent' */ '../components/pages/EditEventTickets.vue')
|
87
|
+
]
|
79
88
|
}
|
80
|
-
];
|
81
89
|
|
82
|
-
|
90
|
+
return routes;
|
91
|
+
}
|
92
|
+
|
93
|
+
// Example usage:
|
94
|
+
// const eventsRoutes = createEventRoutes('Admin', { basePath: 'admin/events' });
|
95
|
+
// export default eventsRoutes;
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import * as storeInitiatives from './store/initiatives.js';
|
2
|
+
import * as storeTasks from './store/tasks.js';
|
3
|
+
import * as storeVotings from './store/votings.js';
|
4
|
+
import * as storeRewards from './store/rewards.js';
|
5
|
+
|
6
|
+
// Router
|
7
|
+
import routerGovernance from './router/governance.router.js';
|
8
|
+
|
9
|
+
// Example initialization function for the Governance module
|
10
|
+
function initializeGovernance(app, store, router, options = {}) {
|
11
|
+
const route = options.route || 'Home';
|
12
|
+
|
13
|
+
router.addRoute(route, routerGovernance);
|
14
|
+
|
15
|
+
store.addStore('initiatives', storeInitiatives);
|
16
|
+
store.addStore('tasks', storeTasks);
|
17
|
+
store.addStore('votings', storeVotings);
|
18
|
+
store.addStore('rewards', storeRewards);
|
19
|
+
}
|
20
|
+
|
21
|
+
const ModuleGovernance = {
|
22
|
+
initialize: initializeGovernance,
|
23
|
+
views: {
|
24
|
+
store: {
|
25
|
+
storeInitiatives,
|
26
|
+
storeTasks,
|
27
|
+
storeVotings,
|
28
|
+
storeVotes,
|
29
|
+
storeRewards
|
30
|
+
},
|
31
|
+
router: {
|
32
|
+
routerGovernance
|
33
|
+
},
|
34
|
+
components: {
|
35
|
+
// Pages
|
36
|
+
Initiatives,
|
37
|
+
Initiative,
|
38
|
+
InitiativeCreate,
|
39
|
+
Tasks,
|
40
|
+
Task,
|
41
|
+
TaskCreate,
|
42
|
+
Votings,
|
43
|
+
Voting,
|
44
|
+
VotingCreate,
|
45
|
+
// Blocks
|
46
|
+
CardInitiativeItem,
|
47
|
+
CardTaskItem,
|
48
|
+
CardVotingItem,
|
49
|
+
// Sections
|
50
|
+
FormInitiativeDetails,
|
51
|
+
FormTaskDetails,
|
52
|
+
FormVotingDetails,
|
53
|
+
VoteForm,
|
54
|
+
// Partials
|
55
|
+
RewardDisplay,
|
56
|
+
VotingResult,
|
57
|
+
VoteDisplay,
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
export default ModuleGovernance;
|
@@ -0,0 +1,56 @@
|
|
1
|
+
|
2
|
+
const ModelInitiative = require('./models/initiative.model.js');
|
3
|
+
const ModelTask = require('./models/task.model.js');
|
4
|
+
const ModelVoting = require('./models/voting.model.js');
|
5
|
+
const ModelVote = require('./models/vote.model.js');
|
6
|
+
|
7
|
+
const RoutesInitiative = require('./routes/initiatives.routes.js');
|
8
|
+
const RoutesTask = require('./routes/tasks.routes.js');
|
9
|
+
const RoutesVoting = require('./routes/votings.routes.js');
|
10
|
+
const RoutesVote = require('./routes/votes.routes.js');
|
11
|
+
|
12
|
+
const FactoryInitiative = require('./controllers/initiatives.controller.js');
|
13
|
+
const FactoryTask = require('./controllers/tasks.controller.js');
|
14
|
+
const FactoryVoting = require('./controllers/votings.controller.js');
|
15
|
+
const FactoryVote = require('./controllers/votes.controller.js');
|
16
|
+
|
17
|
+
const CRUD = require('@pf/src/modules/globals/controllers/classes/globals.crud');
|
18
|
+
|
19
|
+
function initializeGovernance(app, db, origins, publicPath) {
|
20
|
+
// Setup models in the database object
|
21
|
+
db.initiative = ModelInitiative(db);
|
22
|
+
db.task = ModelTask(db);
|
23
|
+
db.voting = ModelVoting(db);
|
24
|
+
db.vote = ModelVote(db);
|
25
|
+
|
26
|
+
// Setup routes if the app object is provided
|
27
|
+
if (app) {
|
28
|
+
RoutesInitiative(app, db, origins, publicPath);
|
29
|
+
RoutesTask(app, db, origins, publicPath);
|
30
|
+
RoutesVoting(app, db, origins, publicPath);
|
31
|
+
RoutesVote(app, db, origins, publicPath);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
// Exporting controllers, routes, and models
|
36
|
+
module.exports = {
|
37
|
+
initialize: initializeGovernance,
|
38
|
+
models: {
|
39
|
+
ModelInitiative,
|
40
|
+
ModelTask,
|
41
|
+
ModelVoting,
|
42
|
+
ModelVote
|
43
|
+
},
|
44
|
+
routes: {
|
45
|
+
RoutesInitiative,
|
46
|
+
RoutesTask,
|
47
|
+
RoutesVoting,
|
48
|
+
RoutesVote
|
49
|
+
},
|
50
|
+
controllers: {
|
51
|
+
FactoryInitiative,
|
52
|
+
FactoryTask,
|
53
|
+
FactoryVoting,
|
54
|
+
FactoryVote
|
55
|
+
}
|
56
|
+
};
|
@@ -4,7 +4,7 @@ import membersRoutes from './members.router.js';
|
|
4
4
|
import departmentRoutes from './departments.router.js'
|
5
5
|
|
6
6
|
import productRoutes from '@pf/src/modules/products/router/products.router.js'
|
7
|
-
import
|
7
|
+
import { createEventRoutes } from '@pf/src/modules/events/router/events';
|
8
8
|
import categoriesRoutes from '@pf/src/modules/products/router/categories.router.js'
|
9
9
|
import leftoversRoutes from '@pf/src/modules/products/router/leftovers.router.js'
|
10
10
|
|
@@ -16,6 +16,8 @@ import backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.ro
|
|
16
16
|
|
17
17
|
import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
|
18
18
|
|
19
|
+
const eventsRoutes = createEventRoutes('Organization_');
|
20
|
+
|
19
21
|
const organizations = [{
|
20
22
|
path: 'organizations',
|
21
23
|
component: layoutEmpty,
|
@@ -67,16 +69,7 @@ const organizations = [{
|
|
67
69
|
...membersRoutes,
|
68
70
|
...departmentRoutes,
|
69
71
|
...productRoutes,
|
70
|
-
|
71
|
-
...route,
|
72
|
-
path: route.path,
|
73
|
-
name: `Organization_${route.name}`,
|
74
|
-
meta: {
|
75
|
-
...route.meta,
|
76
|
-
organizationScoped: true
|
77
|
-
},
|
78
|
-
props: true
|
79
|
-
})),
|
72
|
+
eventsRoutes,
|
80
73
|
...categoriesRoutes,
|
81
74
|
...leftoversRoutes,
|
82
75
|
...paymentsRoutes,
|