-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
132 changed files
with
12,709 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,4 @@ | ||
node_modules | ||
settings-demo.json | ||
settings-staging.json | ||
settings-production.json |
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,17 @@ | ||
# 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 | ||
1.2.0-standard-minifiers-package | ||
1.2.0-meteor-platform-split | ||
1.2.0-cordova-changes | ||
1.2.0-breaking-changes | ||
1.3.0-split-minifiers-package | ||
1.4.0-remove-old-dev-bundle-link | ||
1.4.1-add-shell-server-package | ||
1.4.3-split-account-service-packages | ||
1.5-add-dynamic-import-package |
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 | ||
|
||
16be20efyo0qb53r01o |
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,35 @@ | ||
# 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-base@1.1.0 # Packages every Meteor app needs to have | ||
mobile-experience@1.0.4 # Packages for a great mobile UX | ||
mongo@1.2.0 # The database Meteor supports right now | ||
reactive-var@1.0.11 # Reactive variable for tracker | ||
tracker@1.1.3 # Meteor's client-side reactive programming library | ||
|
||
standard-minifier-css@1.3.4 # CSS minifier run for production mode | ||
standard-minifier-js@2.1.1 # JS minifier run for production mode | ||
es5-shim@4.6.15 # ECMAScript 5 compatibility for older browsers. | ||
ecmascript@0.8.2 # Enable ECMAScript2015+ syntax in app code | ||
shell-server@0.2.4 # Server-side component of the `meteor shell` command | ||
|
||
react-meteor-data | ||
alanning:roles | ||
fourseven:scss | ||
twbs:bootstrap | ||
accounts-base@1.3.2 | ||
accounts-password@1.4.0 | ||
service-configuration@1.0.11 | ||
accounts-facebook@1.2.1 | ||
accounts-github@1.3.0 | ||
accounts-google@1.2.0 | ||
themeteorchef:bert | ||
fortawesome:fontawesome | ||
aldeed:collection2-core@2.0.1 | ||
audit-argument-checks@1.0.7 | ||
ddp-rate-limiter@1.0.7 | ||
dynamic-import@0.1.1 | ||
static-html |
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.5.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,104 @@ | ||
accounts-base@1.3.3 | ||
accounts-facebook@1.2.1 | ||
accounts-github@1.3.0 | ||
accounts-google@1.2.0 | ||
accounts-oauth@1.1.15 | ||
accounts-password@1.4.0 | ||
alanning:roles@1.2.16 | ||
aldeed:collection2-core@2.0.1 | ||
allow-deny@1.0.9 | ||
audit-argument-checks@1.0.7 | ||
autoupdate@1.3.12 | ||
babel-compiler@6.20.0 | ||
babel-runtime@1.0.1 | ||
base64@1.0.10 | ||
binary-heap@1.0.10 | ||
blaze@2.3.2 | ||
blaze-tools@1.0.10 | ||
boilerplate-generator@1.2.0 | ||
caching-compiler@1.1.9 | ||
caching-html-compiler@1.1.2 | ||
callback-hook@1.0.10 | ||
check@1.2.5 | ||
ddp@1.3.1 | ||
ddp-client@2.1.3 | ||
ddp-common@1.2.9 | ||
ddp-rate-limiter@1.0.7 | ||
ddp-server@2.0.2 | ||
deps@1.0.12 | ||
diff-sequence@1.0.7 | ||
dynamic-import@0.1.3 | ||
ecmascript@0.8.2 | ||
ecmascript-runtime@0.4.1 | ||
ecmascript-runtime-client@0.4.3 | ||
ecmascript-runtime-server@0.4.1 | ||
ejson@1.0.14 | ||
email@1.2.3 | ||
es5-shim@4.6.15 | ||
facebook-oauth@1.3.2 | ||
fastclick@1.0.13 | ||
fortawesome:fontawesome@4.7.0 | ||
fourseven:scss@4.5.4 | ||
geojson-utils@1.0.10 | ||
github-oauth@1.2.0 | ||
google-oauth@1.2.4 | ||
hot-code-push@1.0.4 | ||
html-tools@1.0.11 | ||
htmljs@1.0.11 | ||
http@1.2.12 | ||
id-map@1.0.9 | ||
jquery@1.11.10 | ||
launch-screen@1.1.1 | ||
livedata@1.0.18 | ||
localstorage@1.1.1 | ||
logging@1.1.17 | ||
meteor@1.7.2 | ||
meteor-base@1.1.0 | ||
minifier-css@1.2.16 | ||
minifier-js@2.1.3 | ||
minimongo@1.3.1 | ||
mobile-experience@1.0.4 | ||
mobile-status-bar@1.0.14 | ||
modules@0.10.0 | ||
modules-runtime@0.8.0 | ||
mongo@1.2.2 | ||
mongo-dev-server@1.0.1 | ||
mongo-id@1.0.6 | ||
npm-bcrypt@0.9.3 | ||
npm-mongo@2.2.30 | ||
oauth@1.1.13 | ||
oauth2@1.1.11 | ||
observe-sequence@1.0.16 | ||
ordered-dict@1.0.9 | ||
promise@0.9.0 | ||
raix:eventemitter@0.1.3 | ||
random@1.0.10 | ||
rate-limit@1.0.8 | ||
react-meteor-data@0.2.13 | ||
reactive-dict@1.1.9 | ||
reactive-var@1.0.11 | ||
reload@1.1.11 | ||
retry@1.0.9 | ||
routepolicy@1.0.12 | ||
service-configuration@1.0.11 | ||
session@1.1.7 | ||
sha@1.0.9 | ||
shell-server@0.2.4 | ||
spacebars@1.0.15 | ||
spacebars-compiler@1.1.3 | ||
srp@1.0.10 | ||
standard-minifier-css@1.3.5 | ||
standard-minifier-js@2.1.1 | ||
static-html@1.2.2 | ||
templating@1.3.2 | ||
templating-compiler@1.3.3 | ||
templating-runtime@1.3.2 | ||
templating-tools@1.1.2 | ||
themeteorchef:bert@2.1.3 | ||
tmeasday:check-npm-versions@0.3.1 | ||
tracker@1.1.3 | ||
twbs:bootstrap@3.3.6 | ||
underscore@1.0.10 | ||
url@1.1.0 | ||
webapp@1.3.19 | ||
webapp-hashing@1.0.9 |
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,13 @@ | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Pup</title> | ||
<meta name="description" content="A description for the application."> | ||
<meta name="viewport" content="initial-scale=1, minimal-ui, maximum-scale=1, minimum-scale=1" /> | ||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" /> | ||
<link rel="shortcut icon" type="image/png" href="/favicon.png?v1" sizes="16x16 32x32 64x64"> | ||
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-precomposed.png"> | ||
</head> | ||
|
||
<body> | ||
<div id="react-root"></div> | ||
</body> |
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 @@ | ||
import '../imports/startup/client'; |
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,51 @@ | ||
/* eslint-disable consistent-return */ | ||
|
||
import { Mongo } from 'meteor/mongo'; | ||
import SimpleSchema from 'simpl-schema'; | ||
|
||
const Documents = new Mongo.Collection('Documents'); | ||
|
||
Documents.allow({ | ||
insert: () => false, | ||
update: () => false, | ||
remove: () => false, | ||
}); | ||
|
||
Documents.deny({ | ||
insert: () => true, | ||
update: () => true, | ||
remove: () => true, | ||
}); | ||
|
||
Documents.schema = new SimpleSchema({ | ||
owner: { | ||
type: String, | ||
label: 'The ID of the user this document belongs to.', | ||
}, | ||
createdAt: { | ||
type: String, | ||
label: 'The date this document was created.', | ||
autoValue() { | ||
if (this.isInsert) return (new Date()).toISOString(); | ||
}, | ||
}, | ||
updatedAt: { | ||
type: String, | ||
label: 'The date this document was last updated.', | ||
autoValue() { | ||
if (this.isInsert || this.isUpdate) return (new Date()).toISOString(); | ||
}, | ||
}, | ||
title: { | ||
type: String, | ||
label: 'The title of the document.', | ||
}, | ||
body: { | ||
type: String, | ||
label: 'The body of the document.', | ||
}, | ||
}); | ||
|
||
Documents.attachSchema(Documents.schema); | ||
|
||
export default Documents; |
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,53 @@ | ||
import { Meteor } from 'meteor/meteor'; | ||
import { check } from 'meteor/check'; | ||
import Documents from './Documents'; | ||
import rateLimit from '../../modules/rate-limit'; | ||
|
||
Meteor.methods({ | ||
'documents.insert': function documentsInsert(doc) { | ||
check(doc, { | ||
title: String, | ||
body: String, | ||
}); | ||
|
||
try { | ||
return Documents.insert({ owner: this.userId, ...doc }); | ||
} catch (exception) { | ||
throw new Meteor.Error('500', exception); | ||
} | ||
}, | ||
'documents.update': function documentsUpdate(doc) { | ||
check(doc, { | ||
_id: String, | ||
title: String, | ||
body: String, | ||
}); | ||
|
||
try { | ||
const documentId = doc._id; | ||
Documents.update(documentId, { $set: doc }); | ||
return documentId; // Return _id so we can redirect to document after update. | ||
} catch (exception) { | ||
throw new Meteor.Error('500', exception); | ||
} | ||
}, | ||
'documents.remove': function documentsRemove(documentId) { | ||
check(documentId, String); | ||
|
||
try { | ||
return Documents.remove(documentId); | ||
} catch (exception) { | ||
throw new Meteor.Error('500', exception); | ||
} | ||
}, | ||
}); | ||
|
||
rateLimit({ | ||
methods: [ | ||
'documents.insert', | ||
'documents.update', | ||
'documents.remove', | ||
], | ||
limit: 5, | ||
timeRange: 1000, | ||
}); |
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,13 @@ | ||
import { Meteor } from 'meteor/meteor'; | ||
import { check } from 'meteor/check'; | ||
import Documents from '../Documents'; | ||
|
||
Meteor.publish('documents', function documents() { | ||
return Documents.find({ owner: this.userId }); | ||
}); | ||
|
||
// Note: documents.view is also used when editing an existing document. | ||
Meteor.publish('documents.view', function documentsView(documentId) { | ||
check(documentId, String); | ||
return Documents.find({ _id: documentId, owner: this.userId }); | ||
}); |
Oops, something went wrong.