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
'use strict'; | |
angular.module('crmApp') | |
.filter('isEmptyObject', function () { | |
return function (obj) { | |
return angular.equals({}, obj); | |
}; | |
}); |
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
'use strict'; | |
angular.module('crmApp') | |
.directive('match', function () { | |
return { | |
restrict: 'A', | |
require: 'ngModel', | |
scope: { | |
match: '=' | |
}, |
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
description "starts an survey tools node server" | |
author "JG <[email protected]>" | |
start on (local-filesystems and net-device-up) | |
stop on shutdown | |
respawn | |
respawn limit 5 60 | |
# Start the process |
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
// define new module myApp-mock | |
angular.module('myApp-mock', ['ngMockE2E']) | |
// we want to use $httpBackend mock | |
.run(function($httpBackend) { | |
$httpBackend.whenGET(/.*/).passThrough(); | |
$httpBackend.whenPOST(/^http:\/\/labdemcap.*/).respond(function (method, url, data) { | |
data = JSON.parse(data); | |
var sapFunction = 'sap_function'; | |
sapFunction = data.service.request[sapFunction]; |
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
'use strict'; | |
angular.module('tradecore') | |
.constant('Config', { | |
baseUrl: 'http://62.26.167.30/tca' | |
}) | |
.config(function ($provide, $httpProvider) { | |
$provide.factory('errorHandlerInterceptor', function ($q) { | |
// be careful when injecting services here | |
// circular dependencies will occur when injecting services that use $http |
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
// inspired by http://codepen.io/anon/pen/fGatk | |
// don't use on :before in older Webkits (e.g iOS6) - http://css-tricks.com/pseudo-element-animationstransitions-bug-fixed-in-webkit/ | |
@mixin loading($radius, $width, $bgColor, $fgColor) { | |
display:inline-block; | |
width: $radius; | |
height: $radius; | |
@include border-radius(50%); | |
background-color: transparent; | |
animation: rotate .75s infinite linear; |
NewerOlder