mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updating framework to meteor 3 and later
This commit is contained in:
parent
717994508a
commit
cca29bc591
58 changed files with 2332 additions and 1611 deletions
|
|
@ -1,132 +1,134 @@
|
|||
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
|
||||
|
||||
FlowRouter.route('/dashboard', {
|
||||
name: 'home',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: "dashboard" });
|
||||
this.render('MainLayout', { main: "dashboard" });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/', {
|
||||
name: 'homeNoRoute',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: "dashboard" });
|
||||
this.render('MainLayout', { main: "dashboard" });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/', {
|
||||
name: 'homeNotLoggedIn',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { notLoggedIn: "login" });
|
||||
this.render('MainLayout', { notLoggedIn: "login" });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/login', {
|
||||
name: 'login',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { notLoggedIn: "login" });
|
||||
this.render('MainLayout', { notLoggedIn: "login" });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/reg', {
|
||||
name: 'reg',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { notLoggedIn: "reg" });
|
||||
this.render('MainLayout', { notLoggedIn: "reg" });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/userMgmt', {
|
||||
name: 'userMgmt',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'userMgmt' });
|
||||
this.render('MainLayout', { main: 'userMgmt' });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/manageStore', {
|
||||
name: 'storeMgmt',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'storeMgmt' });
|
||||
this.render('MainLayout', { main: 'storeMgmt' });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/manage', {
|
||||
name: 'mgmtPage',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'mgmtPage' });
|
||||
this.render('MainLayout', { main: 'mgmtPage' });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/manageProduct', {
|
||||
name: 'manageProduct',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'prodMgmt' });
|
||||
this.render('MainLayout', { main: 'prodMgmt' });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/manageLists', {
|
||||
name: 'manageLists',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'listMgmt' });
|
||||
this.render('MainLayout', { main: 'listMgmt' });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/mylists', {
|
||||
name: 'mylists',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'listsMain' });
|
||||
this.render('MainLayout', { main: 'listsMain' });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/listItems', {
|
||||
name: 'listItems',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'listItemsMain' });
|
||||
this.render('MainLayout', { main: 'listItemsMain' });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/mymenus', {
|
||||
name: 'mymenus',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'mainMenu' });
|
||||
this.render('MainLayout', { main: 'mainMenu' });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/menuItems', {
|
||||
name: 'menuItems',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'menuItems' });
|
||||
this.render('MainLayout', { main: 'menuItems' });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/taskHome', {
|
||||
name: 'taskHome',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'taskHome' });
|
||||
this.render('MainLayout', { main: 'taskHome' });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/myTasks', {
|
||||
name: 'myTasks',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'myTasks' });
|
||||
this.render('MainLayout', { main: 'myTasks' });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/systemAdmin', {
|
||||
name: 'systemAdmin',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'systemAdmin' });
|
||||
this.render('MainLayout', { main: 'systemAdmin' });
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/cleanUp', {
|
||||
name: 'cleanUp',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'cleanUp'});
|
||||
this.render('MainLayout', { main: 'cleanUp'});
|
||||
}
|
||||
});
|
||||
|
||||
FlowRouter.route('/mySettings', {
|
||||
name: 'mySettings',
|
||||
action() {
|
||||
BlazeLayout.render('MainLayout', { main: 'userConfig'});
|
||||
this.render('MainLayout', { main: 'userConfig'});
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue