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 configWatcher = $scope.$watch(function() { | |
return config.game; | |
}, function(current) { | |
if (current) { | |
vm.ready = true; | |
configWatcher(); | |
} | |
}); |
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 configWatcher = $scope.$watch(function() { | |
return config.game; | |
}, function(current) { | |
if (current) { | |
vm.ready = true; | |
configWatcher(); | |
} | |
}); |
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
this.validate = function() { | |
var defer = $q.defer(); | |
service.getStatus().then( | |
function() { | |
defer.resolve(); | |
}, | |
function(response) { | |
defer.reject({ | |
message: response.message |
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
this.validate = function() { | |
return service.getStatus().then(function(response) { | |
return response.data; | |
}).catch(function(response) { | |
return response.message; | |
}); | |
} |
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
this.validate = function() { | |
return service.getStatus().then(function(response) { | |
return response.data; | |
}); | |
}; |
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
getContainers(params, meta) { | |
let query = resourceQueries.loadQuery('selectContainers'); | |
let connection; | |
return dbConnect.getConnectionAsync().then((dbConnection) => { | |
connection = dbConnection; | |
return connection.queryAsync(query, params).then((result) => { | |
return resourceParser.parseContainersFromDb(result); | |
}); | |
}).catch((exception) => { |
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 preload(source) { | |
var deferred = $q.defer(); | |
var img = angular.element('<img>'); | |
img.on('load', deferred.resolve); | |
img.on('error', deferred.reject); | |
img.attr('src', source); | |
return deferred.promise; | |
} |
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 preload(source) { | |
return $q(function(resolve, reject) { | |
var img = angular.element('<img>'); | |
img.on('load', resolve); | |
img.on('error', reject); | |
img.attr('src', source); | |
}); | |
} |
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 pmx = require('pmx'); | |
pmx.action('SevenService:ConfirmTransaction', (reply) => { | |
// You must reply to action | |
reply({success : true}); | |
}); |
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
pmx.action('SevenService:ConfirmTransaction', (param, reply) => { | |
reply({success : param}); | |
}); |
OlderNewer