panel.app.tables.app.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of splout-server Show documentation
Show all versions of splout-server Show documentation
Splout SQL is a read only, horizontally scalable and
partitioned SQL database that plays well with Hadoop.
The newest version!
var tablesApp = angular.module('tablesApp', [
'ui.bootstrap',
'ngRoute',
'angularSpinner',
'ajoslin.promise-tracker',
'tablesControllers']);
tablesApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/:tablespace', {
templateUrl: 'partials/tablespace-tables.html',
controller: 'TablesCtrl'
}).
when('/', {
templateUrl: 'partials/tablespace-tables.html',
controller: 'TablesCtrl'
}).
otherwise({
redirectTo: function (routeParams, path, search) {
return '/';
}
});
}]);
tablesApp.filter('array', function() {
return function(items) {
var filtered = [];
angular.forEach(items, function(item) {
filtered.push(item);
});
return filtered;
};
});