Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 42e5740
Showing
27 changed files
with
537 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"public": { | ||
"env": "devel" | ||
} | ||
} |
Empty file.
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 @@ | ||
client/compatibility | ||
packages |
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,132 @@ | ||
{ | ||
// JSHint Meteor Configuration File | ||
// Match the Meteor Style Guide | ||
// | ||
// By @raix with contributions from @aldeed and @awatson1978 | ||
// Source https://github.com/raix/Meteor-jshintrc | ||
// | ||
// See http://jshint.com/docs/ for more details | ||
|
||
"maxerr" : 50, // {int} Maximum error before stopping | ||
|
||
// Enforcing | ||
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) | ||
"camelcase" : true, // true: Identifiers must be in camelCase | ||
"curly" : true, // true: Require {} for every new block or scope | ||
"eqeqeq" : true, // true: Require triple equals (===) for comparison | ||
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty() | ||
"immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());` | ||
"indent" : 2, // {int} Number of spaces to use for indentation | ||
"latedef" : false, // true: Require variables/functions to be defined before being used | ||
"newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()` | ||
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee` | ||
"noempty" : true, // true: Prohibit use of empty blocks | ||
"nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment) | ||
"plusplus" : false, // true: Prohibit use of `++` & `--` | ||
"quotmark" : false, // Quotation mark consistency: | ||
// false : do nothing (default) | ||
// true : ensure whatever is used is consistent | ||
// "single" : require single quotes | ||
// "double" : require double quotes | ||
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks) | ||
"unused" : true, // true: Require all defined variables be used | ||
"strict" : false, // true: Requires all functions run in ES5 Strict Mode | ||
"trailing" : true, // true: Prohibit trailing whitespaces | ||
"maxparams" : false, // {int} Max number of formal params allowed per function | ||
"maxdepth" : false, // {int} Max depth of nested blocks (within functions) | ||
"maxstatements" : false, // {int} Max number statements per function | ||
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function | ||
"maxlen" : 80, // {int} Max number of characters per line | ||
|
||
// Relaxing | ||
"asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons) | ||
"boss" : false, // true: Tolerate assignments where comparisons would be expected | ||
"debug" : false, // true: Allow debugger statements e.g. browser breakpoints. | ||
"eqnull" : false, // true: Tolerate use of `== null` | ||
"es5" : false, // true: Allow ES5 syntax (ex: getters and setters) | ||
"esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`) | ||
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features) | ||
// (ex: `for each`, multiple try/catch, function expression…) | ||
"evil" : false, // true: Tolerate use of `eval` and `new Function()` | ||
"expr" : false, // true: Tolerate `ExpressionStatement` as Programs | ||
"funcscope" : false, // true: Tolerate defining variables inside control statements" | ||
"globalstrict" : true, // true: Allow global "use strict" (also enables 'strict') | ||
"iterator" : false, // true: Tolerate using the `__iterator__` property | ||
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block | ||
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings | ||
"laxcomma" : false, // true: Tolerate comma-first style coding | ||
"loopfunc" : false, // true: Tolerate functions being defined in loops | ||
"multistr" : false, // true: Tolerate multi-line strings | ||
"proto" : false, // true: Tolerate using the `__proto__` property | ||
"scripturl" : false, // true: Tolerate script-targeted URLs | ||
"smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment | ||
"shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;` | ||
"sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation | ||
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;` | ||
"validthis" : false, // true: Tolerate using this in a non-constructor function | ||
|
||
// Environments | ||
"browser" : true, // Web Browser (window, document, etc) | ||
"couch" : false, // CouchDB | ||
"devel" : true, // Development/debugging (alert, confirm, etc) | ||
"dojo" : false, // Dojo Toolkit | ||
"jquery" : false, // jQuery | ||
"mootools" : false, // MooTools | ||
"node" : false, // Node.js | ||
"nonstandard" : false, // Widely adopted globals (escape, unescape, etc) | ||
"prototypejs" : false, // Prototype and Scriptaculous | ||
"rhino" : false, // Rhino | ||
"worker" : false, // Web Workers | ||
"wsh" : false, // Windows Scripting Host | ||
"yui" : false, // Yahoo User Interface | ||
//"meteor" : false, // Meteor.js | ||
|
||
// Legacy | ||
"nomen" : false, // true: Prohibit dangling `_` in variables | ||
"onevar" : false, // true: Allow only one `var` statement per function | ||
"passfail" : false, // true: Stop on first error | ||
"white" : false, // true: Check against strict whitespace and indentation rules | ||
|
||
// Custom globals, from http://docs.meteor.com, in the order they appear there | ||
"globals" : { | ||
"Meteor": false, | ||
"DDP": false, | ||
"Session": false, | ||
"Accounts": false, | ||
"Template": false, | ||
"Match": false, | ||
"check": false, | ||
"Deps": false, | ||
"EJSON": false, | ||
"HTTP": false, | ||
"Email": false, | ||
"Assets": false, | ||
"Handlebars": false, // https://github.com/meteor/meteor/wiki/Handlebars | ||
|
||
// Meteor internals | ||
"DDPServer": false, | ||
"global": false, | ||
"Log": false, | ||
"MongoInternals": false, | ||
"process": false, | ||
"WebApp": false, | ||
"WebAppInternals": false, | ||
|
||
// globals useful when creating Meteor packages | ||
"Package": false, | ||
"Npm": false, | ||
"Tinytest": false, | ||
|
||
// common Meteor packages | ||
"Random": false, | ||
"_": false, // Underscore.js | ||
"$": false, // jQuery | ||
"Router": false, // iron-router | ||
"RouteController": false, // iron-router | ||
|
||
// Meteor Generate | ||
"AppController": false, | ||
"db": false | ||
} | ||
} | ||
|
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 | ||
|
||
1szn02aozzin1lvs9j |
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,19 @@ | ||
# Meteor packages used by this project, one per line. | ||
# Check this file (and the other files in this directory) into your repository. | ||
# | ||
# 'meteor add' and 'meteor remove' will edit this file for you, | ||
# but you can also edit it by hand. | ||
|
||
meteor-platform | ||
browser-policy | ||
accounts-ui | ||
accounts-password | ||
|
||
meteorhacks:flow-layout | ||
meteorhacks:flow-router | ||
|
||
avital:react-in-blaze | ||
#grigio:babel | ||
|
||
kevohagan:sweetalert | ||
fourseven:scss |
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 @@ | ||
METEOR@1.1.0.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,69 @@ | ||
accounts-base@1.2.0 | ||
accounts-password@1.1.1 | ||
accounts-ui@1.1.5 | ||
accounts-ui-unstyled@1.1.7 | ||
autoupdate@1.2.1 | ||
avital:react-in-blaze@0.0.3 | ||
base64@1.0.3 | ||
binary-heap@1.0.3 | ||
blaze@2.1.2 | ||
blaze-tools@1.0.3 | ||
boilerplate-generator@1.0.3 | ||
browser-policy@1.0.4 | ||
browser-policy-common@1.0.3 | ||
browser-policy-content@1.0.4 | ||
browser-policy-framing@1.0.4 | ||
callback-hook@1.0.3 | ||
check@1.0.5 | ||
coffeescript@1.0.6 | ||
cosmos:browserify@0.1.4 | ||
ddp@1.1.0 | ||
deps@1.0.7 | ||
ejson@1.0.6 | ||
email@1.0.6 | ||
fastclick@1.0.3 | ||
fourseven:scss@3.1.1 | ||
geojson-utils@1.0.3 | ||
hipertracker:reactjs@0.0.12 | ||
html-tools@1.0.4 | ||
htmljs@1.0.4 | ||
http@1.1.0 | ||
id-map@1.0.3 | ||
jquery@1.11.3_2 | ||
json@1.0.3 | ||
kevohagan:sweetalert@0.5.0 | ||
launch-screen@1.0.2 | ||
less@1.0.14 | ||
livedata@1.0.13 | ||
localstorage@1.0.3 | ||
logging@1.0.7 | ||
meteor@1.1.6 | ||
meteor-platform@1.2.2 | ||
meteorhacks:flow-layout@1.4.0 | ||
meteorhacks:flow-router@1.9.0 | ||
minifiers@1.1.5 | ||
minimongo@1.0.8 | ||
mobile-status-bar@1.0.3 | ||
mongo@1.1.0 | ||
npm-bcrypt@0.7.8_2 | ||
observe-sequence@1.0.6 | ||
ordered-dict@1.0.3 | ||
random@1.0.3 | ||
reactive-dict@1.1.0 | ||
reactive-var@1.0.5 | ||
reload@1.1.3 | ||
retry@1.0.3 | ||
routepolicy@1.0.5 | ||
service-configuration@1.0.4 | ||
session@1.1.0 | ||
sha@1.0.3 | ||
spacebars@1.0.6 | ||
spacebars-compiler@1.0.6 | ||
srp@1.0.3 | ||
templating@1.1.1 | ||
tracker@1.0.7 | ||
ui@1.0.6 | ||
underscore@1.0.3 | ||
url@1.0.4 | ||
webapp@1.2.0 | ||
webapp-hashing@1.0.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,5 @@ | ||
/*global db:true */ | ||
|
||
// provides a global namespace for our mongo collections | ||
db = {}; | ||
|
Empty file.
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,68 @@ | ||
// User 'model' namespace | ||
// allows your code to read a bit nicer with a | ||
// few convenience methods and abstracts away the db | ||
// in case we ever switch dbs in the future | ||
|
||
/*global User:true */ | ||
|
||
User = { | ||
// returns user {Object} of current user or | ||
// returns empty object if not logged in to prevent | ||
// undefined if chaining helper methods | ||
current: function() { | ||
return (Meteor.user()) ? Meteor.user() : {}; | ||
}, | ||
|
||
// returns the user's id {String} | ||
id: function() { | ||
return Meteor.userId(); | ||
}, | ||
|
||
// returns user profile {Object} | ||
profile: function() { | ||
if (Meteor.user() && Meteor.user().profile) { | ||
return Meteor.user().profile; | ||
} else { | ||
return {}; | ||
} | ||
}, | ||
|
||
// returns first role {String} in user's role array if found | ||
role: function() { | ||
var user = Meteor.user(); | ||
if (user && user.roles) { | ||
return user.roles[0]; | ||
} | ||
}, | ||
|
||
// returns user email {String} | ||
email: function() { | ||
var user = Meteor.users.findOne(this.id()); | ||
if (user && user.emails && user.emails[0]) { | ||
return user.emails[0].address; | ||
} | ||
}, | ||
|
||
// returns {Bool} | ||
loggedIn: function() { | ||
return !!Meteor.userId(); | ||
}, | ||
|
||
// returns {Bool} | ||
loggedOut: function() { | ||
return !this.loggedIn(); | ||
}, | ||
|
||
// returns {Bool} | ||
loggingIn: function() { | ||
return Meteor.loggingIn(); | ||
}, | ||
|
||
// returns {Bool} | ||
notLoggingIn: function() { | ||
return !Meteor.loggingIn(); | ||
} | ||
|
||
// CRUD | ||
}; | ||
|
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 @@ | ||
Meteor.startup(function() { | ||
console.log("Client Ready"); | ||
}); | ||
|
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,16 @@ | ||
<!-- | ||
Footer is using Blaze since it doesn't | ||
have any complex state or scripting | ||
--> | ||
|
||
<template name='Footer'> | ||
<div class="footer"> | ||
|
||
<div class="nav"> | ||
<a href="/feed-example">Feed Example</a> | ||
<a href="/about">Static Page Example</a> | ||
</div> | ||
|
||
</div> | ||
</template> | ||
|
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,46 @@ | ||
.footer { | ||
background: #2D2D2D; | ||
color: white; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 50px; | ||
|
||
a { | ||
color: #767676; | ||
&:hover { color: darken(white, 20%); } | ||
&:active { color: darken(white, 30%); } | ||
} | ||
|
||
.nav { | ||
margin-top: 5px; | ||
a { margin-right: 15px; } | ||
} | ||
} | ||
|
||
// XXX move to component | ||
.header { | ||
background: $primary; | ||
height: 50px; | ||
color: white; | ||
font-size: 14px; | ||
|
||
.container { display: flex; } | ||
|
||
.nav { | ||
margin: 18px 0 0 40px; | ||
a { margin-right: 15px; } | ||
} | ||
|
||
.logo { | ||
padding-top: 14px; | ||
font-size: 20px; | ||
} | ||
|
||
|
||
a { | ||
color: white; | ||
&:hover { color: darken(white, 20%); } | ||
&:active { color: darken(white, 30%); } | ||
} | ||
} |
Oops, something went wrong.