Replace kadira:flow-router with ostrio:flow-router-extra

see issue #11014
This commit is contained in:
Victor Parpoil
2020-05-05 11:26:26 +02:00
parent 71f67d9dba
commit 189aaa4768
2 changed files with 5 additions and 7 deletions

View File

@@ -19,9 +19,8 @@ ecmascript # Enable ECMAScript2015+ syntax in app code
typescript # Enable TypeScript syntax in .ts and .tsx modules
shell-server # Server-side component of the `meteor shell` command
kadira:flow-router # FlowRouter is a very simple router for Meteor
kadira:blaze-layout # Layout manager for blaze (works well with FlowRouter)
less # Leaner CSS language
ostrio:flow-router-extra # FlowRouter is a very simple router for Meteor
less # Leaner CSS language
meteortesting:mocha # A package for writing and running your meteor app and package tests with mocha
johanbrook:publication-collector # Test a Meteor publication by collecting its output

View File

@@ -1,5 +1,4 @@
import { FlowRouter } from 'meteor/kadira:flow-router';
import { BlazeLayout } from 'meteor/kadira:blaze-layout';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
// Import needed templates
import '../../ui/layouts/body/body.js';
@@ -10,12 +9,12 @@ import '../../ui/pages/not-found/not-found.js';
FlowRouter.route('/', {
name: 'App.home',
action() {
BlazeLayout.render('App_body', { main: 'App_home' });
this.render('App_body', { main: 'App_home' });
},
});
FlowRouter.notFound = {
action() {
BlazeLayout.render('App_body', { main: 'App_notFound' });
this.render('App_body', { main: 'App_notFound' });
},
};