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
default_platform :ios | |
platform :ios do | |
before_all do | |
# ENV["SLACK_URL"] = "https://hooks.slack.com/services/..." | |
# cocoapods | |
# increment_build_number |
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
$stateProvider.state('tab.feeds', { | |
url: 'feeds', | |
views: { | |
'tab-feeds': { | |
templateUrl: 'features/feeds/feeds.html', | |
controller: 'FeedsCtrl' | |
} | |
} | |
}.state('tab.feeds/feed', { | |
url: 'feeds/:feed', |
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('mlz.openurl', []) | |
.factory('OpenUrlService', ['$log', '$location', '$rootScope', '$ionicHistory', function ($log, $location, $rootScope, $ionicHistory) { | |
var openUrl = function (url) { | |
$log.debug('Handling open URL ' + url); | |
// Stop it from caching the first view as one to return when the app opens | |
$ionicHistory.nextViewOptions({ | |
historyRoot: true, |
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
if ('cordova' in window) { | |
// Create a sticky event for handling the app being opened via a custom URL | |
cordova.addStickyDocumentEventHandler('handleopenurl'); | |
} | |
function handleOpenURL (url) { | |
cordova.fireDocumentEvent('handleopenurl', { url: url }); | |
}; |
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
app.factory('NetworkActivityInterceptor', ['$q', '$injector', function ($q, $injector) { | |
var NetworkActivity; | |
return { | |
request: function (config) { | |
NetworkActivity = $injector.get('NetworkActivity'); | |
if (NetworkActivity.enabled) { | |
var $cordovaNetwork = $injector.get('$cordovaNetwork'); |
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 mlz-ui-table-view="items" mlz-ui-table-view-row-height="100" mlz-ui-table-view-buffer="20"> | |
<div class="mlz-ui-table-view-wrapper"> | |
<div ng-repeat="item in tableView.buffer.items track by item.$$position"> | |
<dt ng-bind="item.name"></dt> | |
<dd ng-bind="item.details"></dd> | |
</div> | |
</div> | |
</div> |
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
Ext.define('HOD.overrides.TreeDnD', {}, function() { | |
Ext.override(Ext.tree.ViewDropZone, { | |
onContainerOver : function(dd, e, data) { | |
var defaultCls = this.dropNotAllowed; | |
if (this.allowContainerDrops) | |
defaultCls = this.dropAllowed; | |
return e.getTarget('.' + this.indicatorCls) ? this.currentCls : defaultCls; | |
}, |
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
// In my controller control config | |
'organisation positions treeview': { | |
beforedrop: this.updatePositions, | |
drop: this.saveHierarchy | |
}, | |
// The update positions function. | |
updatePositions: function(node, source, model, pos, dropFn, options) { |