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
/** | |
* Created by klaus.machado on 25/06/2015. | |
*/ | |
function SimpleDebug() | |
{ | |
var labels = { | |
"APP": { | |
"color": "#000000" | |
}, | |
"EXAMPLE": { |
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
/** | |
* Config classes which will be used at gulp-setup. | |
*/ | |
module.exports = function () { | |
var gRoutes = require("./gulp-routes")(); | |
function getPath(path, type) | |
{ | |
if (typeof path === "undefined") { | |
path = ""; |
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
Rest = function () | |
{ | |
var entitySufix = "Entity"; | |
var dataTransformer = new DataTransformer(); | |
this.get = function (entityName, data) { | |
var entity = new window[entityName + entitySufix](data); | |
dataTransformer.setFields(entity.fields); | |
dataTransformer.setHide(entity.hide); |
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
.notificacao { | |
width: 100%; | |
min-height: 20px; | |
position: fixed; | |
top: -1000px; | |
left: 0; | |
z-index: 250; | |
min-width: 250px; | |
} |
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 installment(value, minInstallmentValue, maxInstallmentsNumber) { | |
minInstallmentValue = minInstallmentValue ? minInstallmentValue : 1; | |
maxInstallmentsNumber = maxInstallmentsNumber ? maxInstallmentsNumber : 12; | |
var installments = []; | |
var Installment = {quantity: 0, value: 0}; | |
var installmentsNumber = Math.floor(value / minInstallmentValue); | |
if (!installmentsNumber) |
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
var LOG_TAG = "ScoreKeeper"; | |
var ScoreKeeper = { | |
/** | |
* @param {Team[]} | |
*/ | |
teams: [], | |
init: function initF(teamAName, teamBName) { | |
console.log("%c INIT", "color: #FF0000; font-weight: bolder;", LOG_TAG); |
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
/** | |
* Created by klauskpm | |
*/ | |
(function () { | |
'use strict'; | |
app | |
.factory('contrastService', ContrastService); | |
ContrastService.$inject = ['storageService']; |
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 () { | |
var Contrast = { | |
storage: 'contrastState', | |
cssClass: 'contrast', | |
currentState: null, | |
check: checkContrast, | |
getState: getContrastState, | |
setState: setContrastState, | |
toogle: toogleContrast, | |
updateView: updateViewContrast |
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
import FooComponent from 'your-module/components/foo'; | |
import BarComponent from 'your-module/components/bar'; | |
import FooBarComponent from 'your-module/components/foo-bar'; |
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
import { FooComponent, BarComponent, FooBarComponent } from 'your-module'; |