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
// TODO: ADD ERROR CONDITIONS | |
function onRequest(request, response, modules) { | |
// setup modules | |
var logger = modules.logger; | |
var db = modules.collectionAccess; | |
// set up the start/end date for the kickstart | |
var startDate = Date.parse(request.body.startDate); | |
var endDate = Date.parse(request.body.endDate); |
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
[{ | |
"name": "Healthy Contraints Thing", | |
"url": "http://www.google.com", | |
"_acl": { | |
"creator": "532a4c67759f26b46ad3d5c4" | |
}, | |
"_kmd": { | |
"lmt": "2014-03-28T20:54:28.211Z", | |
"ect": "2014-03-28T20:54:28.211Z" | |
}, |
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
// TODO: ADD ERROR CONDITIONS | |
function onRequest(request, response, modules) { | |
// setup modules | |
var db = modules.collectionAccess; | |
// set up the start/end date for the kickstart | |
var startDate = Date.parse(request.body.startDate); | |
var endDate = Date.parse(request.body.endDate); |
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
(function(module) { | |
try { | |
module = angular.module('appViews'); | |
} catch (e) { | |
module = angular.module('appViews', []); | |
} | |
module.run(['$templateCache', function($templateCache) { | |
$templateCache.put('views/main.html', | |
'<div ng-include="" src="\'views/topbar/topbar.html\'"></div><div class="container"><div class="row"><div class="col-lg-12"><div class="alert alert-danger text-center" ng-show="error"><strong>{{ error.description }}</strong></div></div></div><div class="row"><div class="col-lg-12"><div class="jumbotron"><div class="row"><div class="col-lg-6"><h1>productizer</h1><p class="larger">An Intraprenuers\' tool for Lean-a-fying the Enterprise</p><button ng-show="!user" class="btn btn-primary btn-lg" style="background:rgba(14, 118, 168, 1.0);border:0;" ng-click="socialLogin(\'linkedIn\')"><i class="ion-social-linkedin"></i> LinkedIn Login</button></div><div class="col-lg-3"><h4 class="text-uppercase">Login</h4><form name="register" ng-submit="standardLogin()"><div class="form-group"><input name="lo |
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
describe('productizer.io : login & register', function() { | |
beforeEach(function () { | |
var productizer = require('../productizer.js'); | |
productizer.get(); | |
}); | |
it('should allow user to successfully log in and out', function() { | |
productizer.login('dmackerman@gmail.com', 'ferrari0'); | |
expect(productizer.pageHeader.getText()).toContain('Dashboard'); |
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
--- | |
app/ | |
css/ | |
app.css | |
bootstrap.css | |
img/ | |
pizzas/ | |
large-pizza.jpg | |
small-pizza.jpg | |
js/ |
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
templateUrl: function(params) { // params are the current $stateParams | |
return myTemplates[params.pageId]; } | |
} |
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
Ext.ns('IbwUi.controls'); | |
IbwUi.controls.ComboBoxJSON = Ext.extend(Ext.form.ComboBox, { | |
url: '', | |
root: '', | |
valueField: 'id', | |
displayField: 'name', | |
listWidth: 200, | |
width: 200, |
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
function updateControls() { | |
var routes = availableRoutes(); | |
// Remove the 'enabled' class from all directions | |
[ dom.controlsLeft, dom.controlsRight, dom.controlsUp, dom.controlsDown ].forEach( function( node ) { | |
node.classList.remove( 'enabled' ); | |
} ) | |
if( routes.left ) dom.controlsLeft.classList.add( 'enabled' ); | |
if( routes.right ) dom.controlsRight.classList.add( 'enabled' ); |
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
function availableRoutes() { | |
var horizontalSlides = document.querySelectorAll(HORIZONTAL_SLIDES_SELECTOR); | |
var verticalSlides = document.querySelectorAll(VERTICAL_SLIDES_SELECTOR); | |
return { | |
left: indexh > 0, | |
right: indexh < horizontalSlides.length - 1, | |
up: indexv > 0, | |
down: indexv < verticalSlides.length - 1 | |
}; |