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
| var extend = require('util')._extend; | |
| var async = require('async'); | |
| var Waterline = require('../node_modules/sails/node_modules/waterline'); | |
| var couchdb = require('sails-couchdb-orm'); | |
| var config = require('../config/adapters').adapters.couchdb; | |
| couchdb.config = extend(couchdb.defaults, config); | |
| module.exports = bootstrap; |
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
| callback: function (req, res) { | |
| passport.callback(req, res, function (err, user) { | |
| //sails.log.debug("API -> Controllers->AuthControllers->Callback: Found our user, now lets log them in",user); | |
| req.login(user, function (err) { | |
| // If an error was thrown, redirect the user to the login which should | |
| // take care of rendering the error messages. | |
| if (err) { | |
| var redirect = req.param('action') === 'register' ? '/#user/register' : '/#user/login'; | |
| if(req.wantsJSON === true) { | |
| res.json(err.status_code || 403,{ |
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
| <script type="text/javascript"> | |
| /* | |
| * This allows you to receive reporting from a series | |
| * of Jasmine tests in the form of a Jasmine Custom | |
| * Reporter that talks back to the strider server. | |
| */ | |
| (function(){ | |
| // Tiny Ajax Post | |
| var post = function (url, json, cb){ | |
| var req; |
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
| body, .slide-master-content-alt { | |
| font-family: "Gill Sans Light", "Gill Sans MT", Tahoma, Geneva, sans-serif; | |
| background-color: rgb(15, 126, 205); | |
| background-image: url(http://www.browserswarm.com/ext/browserswarm-plugin/honeycomb-bg.jpg); | |
| } | |
| h1 { | |
| background: none; | |
| color: rgb(18,102,192); | |
| text-shadow: -1px -1px 2px #333; | |
| font-family: "nevisBold", arial, sans-serif; |
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
| Failed to load resource: the server responded with a status of 404 (Not Found) http://www.browserswarm.com/javascripts/config/jelly_config.js | |
| Error: Argument 'Jelly_configCtrl' is not a function, got undefined | |
| at assertArg (http://www.browserswarm.com/javascripts/lib/angular.js:1063:11) | |
| at assertArgFn (http://www.browserswarm.com/javascripts/lib/angular.js:1073:3) | |
| at http://www.browserswarm.com/javascripts/lib/angular.js:5365:9 | |
| at http://www.browserswarm.com/javascripts/lib/angular.js:4937:17 | |
| at forEach (http://www.browserswarm.com/javascripts/lib/angular.js:155:20) | |
| at nodeLinkFn (http://www.browserswarm.com/javascripts/lib/angular.js:4922:11) | |
| at compositeLinkFn (http://www.browserswarm.com/javascripts/lib/angular.js:4550:15) | |
| at compositeLinkFn (http://www.browserswarm.com/javascripts/lib/angular.js:4553:13) |
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
| // Run all the things... | |
| run: function( done ) { | |
| // Ensure build path exists | |
| anvil.fs.ensurePath( this.config.buildPath , function ( err ) { | |
| if( err ) { | |
| anvil.log.error( err ); | |
| done(); | |
| } | |
| }); |
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
| var sass = require('node-sass'); | |
| var sassCompilerFactory = function( _, anvil ) { | |
| var compile = _.compose( marked, showdown ); | |
| return anvil.plugin( { | |
| name: "anvil.sass", | |
| configure: function( config, command, done ) { | |
| anvil.addCompiler( ".sass", this ); |
NewerOlder