Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Blaze update to 1.10.2 and update flow router to ostrio:flow-router-extra #280

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .meteor/.finished-upgraders
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ notices-for-facebook-graph-api-2
1.4.3-split-account-service-packages
1.5-add-dynamic-import-package
1.7-split-underscore-from-meteor-base
1.8.3-split-jquery-from-blaze
24 changes: 11 additions & 13 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# meteor libraries
[email protected]
ecmascript@0.11.0
ecmascript@0.14.3
[email protected]
[email protected]
[email protected]
Expand All @@ -18,13 +18,13 @@ [email protected]

# ui
[email protected]
reactive-dict@1.2.0
reactive-dict@1.3.0
[email protected]
aldeed:template-extension
percolate:momentum

# data
mongo@1.5.0
mongo@1.10.0
aldeed:simple-schema
aldeed:collection2
dburles:collection-helpers
Expand All @@ -33,29 +33,27 @@ mdg:validated-method
mdg:validation-error

# routing
kadira:flow-router
kadira:blaze-layout
arillo:flow-router-helpers
zimme:active-route
ostrio:flow-router-extra

# i18n
tap:i18n

# accounts
accounts-password@1.5.1
accounts-password@1.6.0
useraccounts:core
useraccounts:unstyled
useraccounts:flow-routing
mealsunite:flow-routing-extra # useraccounts routes for flow-routing-extra
kadira:blaze-layout # needed by mealsunite:flow-routing-extra
softwarerero:accounts-t9n

# mobile
[email protected]
mobile-experience@1.0.5
mobile-experience@1.1.0
chriswessels:hammer

# production
juliancwirko:postcss
standard-minifier-js@2.3.4
standard-minifier-js@2.6.0
[email protected]
app-prod-security

Expand All @@ -70,9 +68,9 @@ practicalmeteor:sinon
meteortesting:mocha
hwillson:stub-collections
johanbrook:publication-collector
shell-server@0.3.1
shell-server@0.5.0
dburles:factory

# security
[email protected]
dynamic-import@0.4.0
dynamic-import@0.5.2
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
METEOR@1.7.0.1
METEOR@1.10.2
109 changes: 55 additions & 54 deletions .meteor/versions
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
accounts-base@1.4.2
accounts-password@1.5.1
accounts-base@1.6.0
accounts-password@1.6.0
aldeed:[email protected]
aldeed:[email protected]
aldeed:[email protected]
Expand All @@ -8,24 +8,23 @@ aldeed:[email protected]
aldeed:[email protected]
[email protected]
[email protected]
arillo:[email protected]
[email protected]
autoupdate@1.4.0
babel-compiler@7.1.0
babel-runtime@1.2.2
[email protected].11
[email protected].10
[email protected].2
autoupdate@1.6.0
babel-compiler@7.5.3
babel-runtime@1.5.0
[email protected].12
[email protected].11
[email protected].4
[email protected]
[email protected]
boilerplate-generator@1.5.0
boilerplate-generator@1.7.0
[email protected]
[email protected]
[email protected]
[email protected]
caching-compiler@1.1.12
[email protected].2
callback-hook@1.1.0
caching-compiler@1.2.2
[email protected].3
callback-hook@1.3.0
cfs:[email protected]
[email protected]
chriswessels:[email protected]
Expand All @@ -34,93 +33,97 @@ [email protected]
dburles:[email protected]
dburles:[email protected]
[email protected]
[email protected].2
[email protected].3
[email protected]
[email protected]
ddp-server@2.2.0
ddp-server@2.3.1
[email protected]
[email protected].0
dynamic-import@0.4.0
ecmascript@0.11.0
[email protected].1
dynamic-import@0.5.2
ecmascript@0.14.3
[email protected]
ecmascript-runtime-client@0.7.1
ecmascript-runtime-server@0.7.0
[email protected].0
ecmascript-runtime-client@0.10.0
ecmascript-runtime-server@0.9.0
[email protected].1
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected].1
hwillson:[email protected].8
[email protected].2
hwillson:[email protected].9
[email protected]
[email protected]
johanbrook:[email protected]
[email protected]
juliancwirko:[email protected]
kadira:[email protected]
kadira:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
lmieulet:[email protected]
[email protected]
[email protected]
mdg:validated-method@1.1.0
mdg:validated-method@1.2.0
mdg:[email protected]
[email protected]
mealsunite:[email protected]
[email protected]
[email protected]
meteorspark:[email protected]
meteortesting:[email protected]
meteortesting:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
npm-mongo@3.0.7
npm-mongo@3.7.0
[email protected]
[email protected]
ostrio:[email protected]
percolate:[email protected]
percolate:[email protected]_1
practicalmeteor:[email protected]_1
practicalmeteor:[email protected]
practicalmeteor:[email protected]_2
[email protected].1
[email protected].2
raix:[email protected]
random@1.1.0
random@1.2.0
[email protected]
reactive-dict@1.2.0
reactive-dict@1.3.0
[email protected]
reload@1.2.0
reload@1.3.0
[email protected]
reywood:publish-composite@1.6.0
routepolicy@1.0.13
reywood:publish-composite@1.7.3
routepolicy@1.1.0
[email protected]
session@1.1.7
session@1.2.0
[email protected]
shell-server@0.3.1
shell-server@0.5.0
simple:[email protected]
simple:[email protected]
simple:[email protected]
simple:[email protected]
simple:[email protected]
simple:[email protected]
socket-stream-client@0.2.1
socket-stream-client@0.3.0
softwarerero:[email protected]
[email protected]
[email protected]
srp@1.0.10
standard-minifier-js@2.3.4
srp@1.1.0
standard-minifier-js@2.6.0
tap:[email protected]
[email protected]
[email protected]
Expand All @@ -129,11 +132,9 @@ [email protected]
[email protected]
[email protected]
[email protected]
url@1.2.0
url@1.3.0
useraccounts:[email protected]
useraccounts:[email protected]
useraccounts:[email protected]
webapp@1.6.0
webapp@1.9.1
[email protected]
xolvio:[email protected]
zimme:[email protected]
xolvio:[email protected]
1 change: 1 addition & 0 deletions imports/startup/both/useraccounts-configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { AccountsTemplates } from 'meteor/useraccounts:core';
*/

AccountsTemplates.configure({
defaultLayoutType: 'blaze',
showForgotPasswordLink: true,
defaultTemplate: 'Auth_page',
defaultLayout: 'App_body',
Expand Down
2 changes: 1 addition & 1 deletion imports/startup/client/routes.app-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Meteor } from 'meteor/meteor';
import { Tracker } from 'meteor/tracker';
import { DDP } from 'meteor/ddp-client';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
import { assert } from 'meteor/practicalmeteor:chai';
import { Promise } from 'meteor/promise';
import { $ } from 'meteor/jquery';
Expand Down
14 changes: 7 additions & 7 deletions imports/startup/client/routes.js
Original file line number Diff line number Diff line change
@@ -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 to load these templates
import '../../ui/layouts/app-body.js';
Expand All @@ -13,20 +12,21 @@ import '../../ui/accounts/accounts-templates.js';
FlowRouter.route('/lists/:_id', {
name: 'Lists.show',
action() {
BlazeLayout.render('App_body', { main: 'Lists_show_page' });
this.render('App_body', { main: 'Lists_show_page' });

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.render('App_body', 'Lists_show_page');

},
});

FlowRouter.route('/', {
name: 'App.home',
action() {
BlazeLayout.render('App_body', { main: 'app_rootRedirector' });
this.render('App_body', { main: 'app_rootRedirector' });

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.render('App_body', 'app_rootRedirector');

},
});

// the App_notFound template is used for unknown routes and missing lists
FlowRouter.notFound = {
FlowRouter.route('*', {
name: "NotFound",
action() {
BlazeLayout.render('App_body', { main: 'App_notFound' });
this.render('App_body', { main: 'App_notFound' });

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.render('App_body', 'App_notFound');

},
};
});
2 changes: 1 addition & 1 deletion imports/ui/components/lists-show.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Mongo } from 'meteor/mongo';
import { ReactiveDict } from 'meteor/reactive-dict';
import { Tracker } from 'meteor/tracker';
import { $ } from 'meteor/jquery';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
import { TAPi18n } from 'meteor/tap:i18n';

Expand Down
7 changes: 3 additions & 4 deletions imports/ui/layouts/app-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { Meteor } from 'meteor/meteor';
import { ReactiveVar } from 'meteor/reactive-var';
import { ReactiveDict } from 'meteor/reactive-dict';
import { Template } from 'meteor/templating';
import { ActiveRoute } from 'meteor/zimme:active-route';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
import { TAPi18n } from 'meteor/tap:i18n';
import { T9n } from 'meteor/softwarerero:accounts-t9n';
import { _ } from 'meteor/underscore';
Expand Down Expand Up @@ -69,7 +68,7 @@ Template.App_body.helpers({
] });
},
activeListClass(list) {
const active = ActiveRoute.name('Lists.show')
const active = FlowRouter.current().route.name === 'Lists.show'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import { FlowRouter , RouterHelpers } from 'meteor/ostrio:flow-router-extra';

RouterHelpers.name('Lists.show');

See docs for more details

&& FlowRouter.getParam('_id') === list._id;

return active && 'active';
Expand Down Expand Up @@ -121,7 +120,7 @@ Template.App_body.events({
Meteor.logout();

// if we are on a private list, we'll need to go to a public one
if (ActiveRoute.name('Lists.show')) {
if (FlowRouter.current().route.name === 'Lists.show') {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import { FlowRouter , RouterHelpers } from 'meteor/ostrio:flow-router-extra';

RouterHelpers.name('Lists.show');

See docs for more details

// TODO -- test this code path
const list = Lists.findOne(FlowRouter.getParam('_id'));
if (list.userId) {
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/client/lists-show-page.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import StubCollections from 'meteor/hwillson:stub-collections';
import { Template } from 'meteor/templating';
import { _ } from 'meteor/underscore';
import { $ } from 'meteor/jquery';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
import { sinon } from 'meteor/practicalmeteor:sinon';


Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/lists-show-page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Template } from 'meteor/templating';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';

import { Lists } from '../../api/lists/lists.js';

Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/root-redirector.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
import { Lists } from '../../api/lists/lists.js';

import './root-redirector.html';
Expand Down
Loading