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
'use strict'; | |
angular.module('ccApp') | |
.factory('Popover', | |
function ($compile, $templateCache, $timeout, $http) { | |
var popoverEnabled = true, openTimeout, $popover, $layer, popoverTarget; | |
function isPopoverVisible() { | |
return $popover.is(':visible'); | |
} |
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
'use strict'; | |
angular.module('angularjs.module') | |
.directive('multiSelect', function ($modal, $templateCache, gettextCatalog) { | |
return { | |
restrict: 'A', | |
priority: 1000, | |
scope: { |
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
'use strict'; | |
angular.module('convertiser.components.manager') | |
.directive('changeStatus', | |
function ($state, | |
$modal, | |
gettextCatalog, | |
flash, | |
alertHelper, |
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
'use strict'; | |
/** | |
* Module dependencies | |
*/ | |
var actionUtil = require('sails/lib/hooks/blueprints/actionUtil'), | |
_ = sails.lodash; | |
var async = require('sails/node_modules/async'); | |
/** |
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
'use strict'; | |
/** | |
* Module dependencies | |
*/ | |
var actionUtil = require('sails/lib/hooks/blueprints/actionUtil'); | |
var util = require('util'); | |
/** | |
* HikeController |
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
angular.module('lk').controller('HikesFormCtrl', Controller); | |
function Controller(city, languagesData, hike, $state, $scope, $upload, settings, toastr, $http) { | |
var self = this; | |
var uploadedImageId; | |
self.isNew = !hike.id; | |
self.data = hike; | |
self.imageState = { | |
name: '', |
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
### | |
Dialogs Controller | |
@author Alexei Antipov <[email protected]> | |
### | |
define [], () -> | |
'use strict' | |
class DialogsCtrl |
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
const _deps = [ | |
'$scope', | |
'$log', | |
'$state', | |
'notify', | |
'GuinnessApi', | |
'campaign', | |
'campaignUsers', | |
'teamMembers', | |
'user' |
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 React from "react"; | |
import ReactDOM from "react-dom"; | |
import { fromPairs, map, pick } from "ramda"; | |
/** | |
* Wraps a React component into Angular component. Returns a new Angular component. | |
* | |
* Usage: angular.module('some.module').component('newAngularComponent', react2angular(MyReactComponent)) | |
* (the usage is the same as in similar lib https://github.com/coatue-oss/react2angular) | |
*/ |