mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
add show aliases, management, interface_types
This commit is contained in:
@@ -127,7 +127,19 @@ App.ShowFilesRoute = Ember.Route.extend({
|
||||
App.ShowAPIsRoute = Ember.Route.extend({
|
||||
setupController: function(controller) {
|
||||
App.showAPIsController.load();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
App.ShowAliasesRoute = Ember.Route.extend({
|
||||
setupController: function(controller) {
|
||||
App.showAliasesController.load();
|
||||
}
|
||||
});
|
||||
|
||||
App.ShowManagementsRoute = Ember.Route.extend({
|
||||
setupController: function(controller) {
|
||||
App.showManagementsController.load();
|
||||
}
|
||||
});
|
||||
|
||||
App.ShowSaysRoute = Ember.Route.extend({
|
||||
@@ -148,6 +160,12 @@ App.ShowInterfacesRoute = Ember.Route.extend({
|
||||
}
|
||||
});
|
||||
|
||||
App.ShowInterfaceTypesRoute = Ember.Route.extend({
|
||||
setupController: function(controller) {
|
||||
App.showInterfaceTypesController.load();
|
||||
}
|
||||
});
|
||||
|
||||
App.ShowTasksRoute = Ember.Route.extend({
|
||||
setupController: function(controller) {
|
||||
App.showTasksController.load();
|
||||
@@ -176,9 +194,12 @@ App.Router.map(function(){
|
||||
this.route("showCodecs");
|
||||
this.route("showFiles");
|
||||
this.route("showAPIs");
|
||||
this.route("showAliases");
|
||||
this.route("showManagements");
|
||||
this.route("showSays");
|
||||
this.route("showChats");
|
||||
this.route("showInterfaces");
|
||||
this.route("showInterfaceTypes");
|
||||
this.route("showTasks");
|
||||
this.route("showLimits");
|
||||
this.route("show");
|
||||
@@ -471,6 +492,40 @@ App.showModulesController = Ember.ArrayController.create({
|
||||
}
|
||||
});
|
||||
|
||||
App.showAliasesController = Ember.ArrayController.create({
|
||||
content: [],
|
||||
init: function(){
|
||||
},
|
||||
load: function() {
|
||||
var me = this;
|
||||
$.getJSON("/txtapi/show?aliases%20as%20json", function(data){
|
||||
me.set('total', data.row_count);
|
||||
me.content.clear();
|
||||
if (data.row_count == 0) return;
|
||||
|
||||
me.pushObjects(data.rows);
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
App.showManagementsController = Ember.ArrayController.create({
|
||||
content: [],
|
||||
init: function(){
|
||||
},
|
||||
load: function() {
|
||||
var me = this;
|
||||
$.getJSON("/txtapi/show?management%20as%20json", function(data){
|
||||
me.set('total', data.row_count);
|
||||
me.content.clear();
|
||||
if (data.row_count == 0) return;
|
||||
|
||||
me.pushObjects(data.rows);
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
App.showSaysController = Ember.ArrayController.create({
|
||||
content: [],
|
||||
init: function(){
|
||||
@@ -522,6 +577,23 @@ App.showInterfacesController = Ember.ArrayController.create({
|
||||
}
|
||||
});
|
||||
|
||||
App.showInterfaceTypesController = Ember.ArrayController.create({
|
||||
content: [],
|
||||
init: function(){
|
||||
},
|
||||
load: function() {
|
||||
var me = this;
|
||||
$.getJSON("/txtapi/show?interface_types%20as%20json", function(data){
|
||||
me.set('total', data.row_count);
|
||||
me.content.clear();
|
||||
if (data.row_count == 0) return;
|
||||
|
||||
me.pushObjects(data.rows);
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
App.showTasksController = Ember.ArrayController.create({
|
||||
content: [],
|
||||
init: function(){
|
||||
|
Reference in New Issue
Block a user