This file contains hidden or 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
| const Db = require('sharedb').DB; | |
| const Redis = require('redis'); | |
| module.exports = class ShareDbRedis extends Db { | |
| constructor (options) { | |
| super(options); | |
| this.client = options.client || Redis.createClient(options); | |
| this.ttl = options.ttl || 60 * 60 * 24; |
This file contains hidden or 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
| /** | |
| * An AngularJS directive for Dropzone.js, http://www.dropzonejs.com/ | |
| * | |
| * Usage: | |
| * | |
| * <div ng-app="app" ng-controller="SomeCtrl as ctrl"> | |
| * <button dropzone="ctrl.dropzoneConfig"> | |
| * Drag and drop files here or click to upload | |
| * </button> | |
| * </div> |