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
module.exports = function(grunt) { | |
'use strict'; | |
// Project configuration. | |
grunt.initConfig({ | |
jade: { | |
local: { | |
options: { | |
data: function() { | |
return require('./jade/getIndexData')('local'); | |
} |
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
module.exports = function(grunt) { | |
'use strict'; | |
// Project configuration. | |
grunt.initConfig({ | |
jade: { | |
local: { | |
options: { | |
data: function() { | |
return require('./jade/getIndexData')('local'); | |
} |
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
// This file is generated from index.jade | |
doctype html | |
html(lang="en", ng-app="dv.web", ng-controller="MainCtrl", ng-class="{'auth': authenticated, 'anon': !authenticated, 'small-screen': smallScreen}") | |
head | |
// create global DV object | |
script. | |
window.DV = {}; | |
window.DV.BASE_URL = '#{BASE_URL}'; | |
window.DV.FBAPI = '#{FBAPI}'; | |
window.DV.onDev = #{onDev}; |
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 fs = require('fs'); | |
var _ = require('lodash-node'); | |
var glob = require('glob'); | |
var address = require('address'); | |
module.exports = function(env) { | |
'use strict'; | |
var topScripts = [ | |
'bower_components/angular/angular.js' | |
]; |
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
function getWatchers(root) { | |
root = angular.element(root || document.documentElement); | |
var watcherCount = 0; | |
function getElemWatchers(element) { | |
var isolateWatchers = getWatchersFromScope(element.data().$isolateScope); | |
var scopeWatchers = getWatchersFromScope(element.data().$scope); | |
var watchers = scopeWatchers.concat(isolateWatchers); | |
angular.forEach(element.children(), function (childElement) { | |
watchers = watchers.concat(getElemWatchers(angular.element(childElement))); |
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
angular.module('kcd.directives').directive('kcdRecompile', ['$parse', function($parse) { | |
'use strict'; | |
return { | |
transclude: true, | |
link: function link(scope, $el, attrs, ctrls, transclude) { | |
var previousElements; | |
compile(); | |
function compile() { |
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
<div kcd-recompile="recompileAllTheThings" use-boolean> | |
<div ng-repeat="thing in ::things" kcd-recompile="thing.recompileCount"> | |
<img ng-src="{{::thing.getImage()}}"> | |
<span>{{::thing.name}}</span> | |
<button ng-click="thing.recompileCount=thing.recompileCount+1">Recompile This Thing</button> | |
</div> | |
</div> | |
<button ng-click="recompileAllTheThings=true">Recompile All Things!</button> |
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
(function() { | |
window.getAllEventListeners = getAllEventListeners; | |
function getAllEventListeners(root) { | |
root = root || document.documentElement; | |
var listeners = mapListeners(getEventListeners(root), root); | |
eachArray(root.children, function(child) { | |
listeners = listeners.concat(getAllEventListeners(child)); | |
}); |
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
angular.module('pk.web.services').provider('StateUtils', function(_, FILE_ROOT, API_V1_URL) { | |
'use strict'; | |
var rootUrl = '/'; | |
var templateRoot = FILE_ROOT + 'components/pk.web/app/'; | |
var divView = '<div ui-view></div>'; | |
var absoluteDivView = '<div class="position-relative"><div ui-view class="animated-view"></div></div>'; | |
var injector; | |
_.extend(this, { | |
rootUrl: rootUrl, | |
templates: { |
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
{ | |
"name": "react-components-library", | |
"version": "0.0.0", | |
"description": "A library of react components.", | |
"private": true, | |
"scripts": { | |
"test": "./script/test", | |
"start": "node server.js", | |
"dev": "./script/dev", | |
"run": "./script/run" |