-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge pull request #8 and improve doc and examples
- Loading branch information
Michael Klein
committed
Sep 13, 2015
1 parent
98371b1
commit 9650e4e
Showing
25 changed files
with
471 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* CSS declarations go here */ | ||
body { | ||
margin: 40px auto; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/** | ||
* example configuration for the beadcrumb package | ||
*/ | ||
|
||
// default values for the breadcrumb package are stored in the router configuration object as well | ||
Router.configure({ | ||
layoutTemplate: 'layout', | ||
defaultBreadcrumbTitle: 'My Default Title' | ||
}); | ||
|
||
// Level 0 | ||
Router.route('/', { | ||
name: 'dashboard', | ||
template: 'dashboard', | ||
title: 'Dashboard', | ||
data: {name: 'Gandalf'} | ||
}); | ||
|
||
Router.route('/analytics', { | ||
name: 'analytics', | ||
parent: 'dashboard', | ||
template: 'analytics', | ||
title: 'Analytics' | ||
}); | ||
|
||
Router.route('/analytics/books', { | ||
name: 'analytics.books', | ||
parent: 'analytics', | ||
template: 'analyticsBooks', | ||
title: 'Category Books' | ||
}); | ||
|
||
Router.route('/tags', { | ||
name: 'tags', | ||
parent: 'dashboard', | ||
template: 'tags', | ||
title: 'Taglist' | ||
}); | ||
|
||
Router.route('/tag/:_name', { | ||
name: 'tag', | ||
parent: 'tags', | ||
template: 'tagDetail', | ||
title: 'Detailpage for :_name', | ||
data: function () { | ||
return this.params; | ||
}, | ||
}); | ||
|
||
Router.route('/default-title', { | ||
name: 'default.title', | ||
parent: 'dashboard', | ||
template: 'defaulttitle' | ||
}); | ||
|
||
Router.route('/function-title/:_someparam', { | ||
name: 'function.title', | ||
parent: 'dashboard', | ||
template: 'functiontitle', | ||
data: { | ||
firstname: 'Gandalf', | ||
lastname: 'the Grey' | ||
}, | ||
title: function() { | ||
var data = this.data(); | ||
console.log('Our data object for this route:'); | ||
console.log(data); | ||
console.log(''); | ||
console.log('all given parameters for this route:'); | ||
console.log(this.params); | ||
return 'Dynamic Title for '+data.firstname+' for route details: '+this.params['_someparam']; | ||
} | ||
}); | ||
|
||
/** | ||
* example page specific stuff below here, just for demonstration purpose | ||
* you do not need this to make the breadcrumb package work | ||
*/ | ||
|
||
// register a iron router template helper to check if the route is active | ||
UI.registerHelper('isActiveRoute', function(routeName) { | ||
var currentRoute = Router.current(); | ||
return currentRoute && routeName === currentRoute.route.getName() ? 'active' : ''; | ||
}); | ||
|
||
// init tooltips for the example page | ||
if (Meteor.isClient) { | ||
Template.layout.rendered = function() { | ||
$('[data-toggle="tooltip"]').tooltip({'trigger':'manual'}); | ||
$('[data-toggle="tooltip"]').tooltip('show'); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# This file contains information which helps Meteor properly upgrade your | ||
# app when you run 'meteor update'. You should check it into version control | ||
# with your project. | ||
|
||
notices-for-0.9.0 | ||
notices-for-0.9.1 | ||
0.9.4-platform-file | ||
notices-for-facebook-graph-api-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file contains a token that is unique to your project. | ||
# Check it into your repository along with the rest of this directory. | ||
# It can be used for purposes such as: | ||
# - ensuring you don't accidentally deploy one app on top of another | ||
# - providing package authors with aggregated statistics | ||
|
||
16e61x41u2eo8xds80ox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Meteor packages used by this project, one per line. | ||
# | ||
# 'meteor add' and 'meteor remove' will edit this file for you, | ||
# but you can also edit it by hand. | ||
|
||
meteor-platform | ||
iron:router | ||
monbro:iron-router-breadcrumb | ||
mizzao:bootstrap-3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
server | ||
browser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[email protected] |
File renamed without changes.
0
examples/basic/meteor.css → examples/simple/meteor.css
100644 → 100755
File renamed without changes.
0
examples/basic/meteor.html → examples/simple/meteor.html
100644 → 100755
File renamed without changes.
0
examples/basic/meteor.js → examples/simple/meteor.js
100644 → 100755
File renamed without changes.
Oops, something went wrong.