-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added babelrc and stage-2 preset (#1329) * Meteor 1.4.1.1 (#1331) * [email protected] - [email protected] - updated Meteor packages, collections2 * version 0.15.2 * move plugin loader from startup to reaction-cli (#1332) * preserve custom profile fields in Accounts.onCreateUser (#1335) * copy deprecated cfs:gridfs to local and update npm deps (#1336)
- Loading branch information
1 parent
889687a
commit 52aecd0
Showing
22 changed files
with
670 additions
and
175 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,3 @@ | ||
{ | ||
"presets": ["stage-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 |
---|---|---|
|
@@ -18,7 +18,7 @@ juliancwirko:postcss # CSS post-processing plugin (replaces standard-mi | |
[email protected] # a minifier plugin used for Meteor apps by default | ||
[email protected] # ReactiveDict whose contents are preserved across Hot Code Push | ||
[email protected] # Meteor transparent reactive programming library | ||
[email protected].11 | ||
[email protected].12 | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
|
@@ -34,7 +34,7 @@ [email protected] | |
[email protected] | ||
amplify | ||
mdg:validated-method | ||
shell-server | ||
shell-server@0.2.1 | ||
|
||
# Meteor Auth Packages | ||
[email protected] | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
[email protected] | ||
[email protected].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
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 @@ | ||
node_modules |
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 directory and the files immediately inside it are automatically generated | ||
when you change this package's NPM dependencies. Commit the files in this | ||
directory (npm-shrinkwrap.json, .gitignore, and this README) to source control | ||
so that others run the same versions of sub-dependencies. | ||
|
||
You should NOT check in the node_modules directory that Meteor automatically | ||
creates; if you are using git, the .gitignore file tells git to ignore it. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,5 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
before_install: | ||
- "curl -L http://git.io/s0Zu-w | /bin/sh" |
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,29 @@ | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
cfs:[email protected] | ||
cfs:[email protected] | ||
cfs:[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected]_2 | ||
[email protected] | ||
[email protected] | ||
local-test:cfs:[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
raix:[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] |
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,20 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2013 [@raix](https://github.com/raix) and [@aldeed](https://github.com/aldeed), aka Morten N.O. Nørgaard Henriksen, [email protected] | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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,48 @@ | ||
cfs:gridfs | ||
========================= | ||
|
||
NOTE: This package is under active development right now (2014-3-31). It has | ||
bugs and the API may continue to change. Please help test it and fix bugs, | ||
but don't use in production yet. | ||
|
||
A Meteor package that adds [GridFS](http://docs.mongodb.org/manual/core/gridfs/) file storage for | ||
[CollectionFS](https://github.com/CollectionFS/Meteor-CollectionFS). When you | ||
use this storage adapter, file data is stored in chunks in your MongoDB database. | ||
|
||
## Installation | ||
|
||
Install using Meteorite. When in a Meteor app directory, enter: | ||
|
||
``` | ||
$ meteor add cfs:gridfs | ||
``` | ||
|
||
## Usage | ||
|
||
```js | ||
var imageStore = new FS.Store.GridFS("images", { | ||
mongoUrl: 'mongodb://127.0.0.1:27017/test/', // optional, defaults to Meteor's local MongoDB | ||
mongoOptions: {...}, // optional, see note below | ||
transformWrite: myTransformWriteFunction, //optional | ||
transformRead: myTransformReadFunction, //optional | ||
maxTries: 1, // optional, default 5 | ||
chunkSize: 1024*1024 // optional, default GridFS chunk size in bytes (can be overridden per file). | ||
// Default: 2MB. Reasonable range: 512KB - 4MB | ||
}); | ||
|
||
Images = new FS.Collection("images", { | ||
stores: [imageStore] | ||
}); | ||
``` | ||
|
||
More control over the MongoDB connection is available by specifying [MongoClient.connect options](http://mongodb.github.io/node-mongodb-native/driver-articles/mongoclient.html#mongoclient-connect-options) as a `mongoOptions` attribute in the options object on the constructor. | ||
|
||
Refer to the [CollectionFS](https://github.com/CollectionFS/Meteor-CollectionFS) | ||
package documentation for more information. | ||
|
||
## API | ||
|
||
[For Users](https://github.com/CollectionFS/Meteor-CollectionFS/blob/master/packages/gridfs/api.md) | ||
|
||
[For Contributors](https://github.com/CollectionFS/Meteor-CollectionFS/blob/master/packages/gridfs/internal.api.md) | ||
|
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 @@ | ||
## cfs-gridfs Public API ## | ||
|
||
GridFS storage adapter for CollectionFS | ||
|
||
_API documentation automatically generated by [docmeteor](https://github.com/raix/docmeteor)._ | ||
|
||
- | ||
|
||
### <a name="FS.Store.GridFS"></a>new *fsStore*.GridFS(name, options) <sub><i>Server</i></sub> ### | ||
|
||
*This method __GridFS__ is defined in `FS.Store`* | ||
|
||
__Arguments__ | ||
|
||
* __name__ *{String}* | ||
|
||
The store name | ||
|
||
* __options__ *{Object}* | ||
* __beforeSave__ *{Function}* (Optional) | ||
|
||
Function to run before saving a file from the server. The context of the function will be the `FS.File` instance we're saving. The function may alter its properties. | ||
|
||
* __maxTries__ *{Number}* (Optional, Default = 5) | ||
|
||
Max times to attempt saving a file | ||
|
||
|
||
__Returns__ *{FS.StorageAdapter}* | ||
An instance of FS.StorageAdapter. | ||
|
||
|
||
Creates a GridFS store instance on the server. Inherits from FS.StorageAdapter | ||
type. | ||
|
||
> ```FS.Store.GridFS = function(name, options) { ...``` [gridfs.server.js:16](gridfs.server.js#L16) | ||
|
||
- | ||
|
||
### <a name="FS.Store.GridFS"></a>new *fsStore*.GridFS(name, options) <sub><i>Client</i></sub> ### | ||
|
||
*This method __GridFS__ is defined in `FS.Store`* | ||
|
||
__Arguments__ | ||
|
||
* __name__ *{String}* | ||
|
||
The store name | ||
|
||
* __options__ *{Object}* | ||
* __beforeSave__ *{Function}* (Optional) | ||
|
||
Function to run before saving a file from the client. The context of the function will be the `FS.File` instance we're saving. The function may alter its properties. | ||
|
||
* __maxTries__ *{Number}* (Optional, Default = 5) | ||
|
||
Max times to attempt saving a file | ||
|
||
|
||
__Returns__ *{undefined}* | ||
|
||
|
||
Creates a GridFS store instance on the client, which is just a shell object | ||
storing some info. | ||
|
||
> ```FS.Store.GridFS = function(name, options) { ...``` [gridfs.client.js:13](gridfs.client.js#L13) | ||
|
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,21 @@ | ||
/** | ||
* @public | ||
* @constructor | ||
* @param {String} name - The store name | ||
* @param {Object} options | ||
* @param {Function} [options.beforeSave] - Function to run before saving a file from the client. The context of the function will be the `FS.File` instance we're saving. The function may alter its properties. | ||
* @param {Number} [options.maxTries=5] - Max times to attempt saving a file | ||
* @returns {undefined} | ||
* | ||
* Creates a GridFS store instance on the client, which is just a shell object | ||
* storing some info. | ||
*/ | ||
FS.Store.GridFS = function(name, options) { | ||
var self = this; | ||
if (!(self instanceof FS.Store.GridFS)) | ||
throw new Error('FS.Store.GridFS missing keyword "new"'); | ||
|
||
return new FS.StorageAdapter(name, options, { | ||
typeName: 'storage.gridfs' | ||
}); | ||
}; |
Oops, something went wrong.