Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
68f1d34d
提交
68f1d34d
authored
6月 04, 2013
作者:
Seven Du
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add show aliases, management, interface_types
上级
15a30c7f
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
137 行增加
和
5 行删除
+137
-5
fsportal.js
htdocs/portal/assets/js/fsportal.js
+73
-1
index.html
htdocs/portal/index.html
+64
-4
没有找到文件。
htdocs/portal/assets/js/fsportal.js
浏览文件 @
68f1d34d
...
@@ -130,6 +130,18 @@ App.ShowAPIsRoute = Ember.Route.extend({
...
@@ -130,6 +130,18 @@ App.ShowAPIsRoute = Ember.Route.extend({
}
}
});
});
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
({
App
.
ShowSaysRoute
=
Ember
.
Route
.
extend
({
setupController
:
function
(
controller
)
{
setupController
:
function
(
controller
)
{
App
.
showSaysController
.
load
();
App
.
showSaysController
.
load
();
...
@@ -148,6 +160,12 @@ App.ShowInterfacesRoute = 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
({
App
.
ShowTasksRoute
=
Ember
.
Route
.
extend
({
setupController
:
function
(
controller
)
{
setupController
:
function
(
controller
)
{
App
.
showTasksController
.
load
();
App
.
showTasksController
.
load
();
...
@@ -176,9 +194,12 @@ App.Router.map(function(){
...
@@ -176,9 +194,12 @@ App.Router.map(function(){
this
.
route
(
"showCodecs"
);
this
.
route
(
"showCodecs"
);
this
.
route
(
"showFiles"
);
this
.
route
(
"showFiles"
);
this
.
route
(
"showAPIs"
);
this
.
route
(
"showAPIs"
);
this
.
route
(
"showAliases"
);
this
.
route
(
"showManagements"
);
this
.
route
(
"showSays"
);
this
.
route
(
"showSays"
);
this
.
route
(
"showChats"
);
this
.
route
(
"showChats"
);
this
.
route
(
"showInterfaces"
);
this
.
route
(
"showInterfaces"
);
this
.
route
(
"showInterfaceTypes"
);
this
.
route
(
"showTasks"
);
this
.
route
(
"showTasks"
);
this
.
route
(
"showLimits"
);
this
.
route
(
"showLimits"
);
this
.
route
(
"show"
);
this
.
route
(
"show"
);
...
@@ -471,6 +492,40 @@ App.showModulesController = Ember.ArrayController.create({
...
@@ -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
({
App
.
showSaysController
=
Ember
.
ArrayController
.
create
({
content
:
[],
content
:
[],
init
:
function
(){
init
:
function
(){
...
@@ -522,6 +577,23 @@ App.showInterfacesController = Ember.ArrayController.create({
...
@@ -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
({
App
.
showTasksController
=
Ember
.
ArrayController
.
create
({
content
:
[],
content
:
[],
init
:
function
(){
init
:
function
(){
...
...
htdocs/portal/index.html
浏览文件 @
68f1d34d
...
@@ -277,6 +277,48 @@
...
@@ -277,6 +277,48 @@
<
/div
>
<
/div
>
</script>
</script>
<script
type=
"text/x-handlebars"
data-template-name=
"showAliases"
>
<
h1
>
Aliases
<
/h1
>
<
div
>
<
table
class
=
"table"
>
<
tr
>
<
th
>
Sticky
<
/th
>
<
th
>
Alias
<
/th
>
<
th
>
Command
<
/th
>
<
th
>
Hostname
<
/th
>
<
/tr
>
{{
#
each
App
.
showAliasesController
.
content
}}
<
tr
>
<
td
>
{{
sticky
}}
<
/td
>
<
td
>
{{
alias
}}
<
/td
>
<
td
>
{{
command
}}
<
/td
>
<
td
>
{{
hostname
}}
<
/td
>
<
/tr
>
{{
/
each
}}
<
/table
>
<
/div
>
</script>
<script
type=
"text/x-handlebars"
data-template-name=
"showManagements"
>
<
h1
>
Say
<
/h1
>
<
div
>
<
table
class
=
"table"
>
<
tr
>
<
th
>
Type
<
/th
>
<
th
>
Name
<
/th
>
<
th
>
iKey
<
/th
>
<
/tr
>
{{
#
each
App
.
showManagementsController
.
content
}}
<
tr
>
<
td
>
{{
type
}}
<
/td
>
<
td
>
{{
name
}}
<
/td
>
<
td
>
{{
ikey
}}
<
/td
>
<
/tr
>
{{
/
each
}}
<
/table
>
<
/div
>
</script>
<script
type=
"text/x-handlebars"
data-template-name=
"showSays"
>
<script
type=
"text/x-handlebars"
data-template-name=
"showSays"
>
<
h1
>
Say
<
/h1
>
<
h1
>
Say
<
/h1
>
<
div
>
<
div
>
...
@@ -337,6 +379,24 @@
...
@@ -337,6 +379,24 @@
<
/div
>
<
/div
>
</script>
</script>
<script
type=
"text/x-handlebars"
data-template-name=
"showInterfaceTypes"
>
<
h1
>
Interface
Types
<
/h1
>
<
div
>
<
table
class
=
"table"
>
<
tr
>
<
th
>
Type
<
/th
>
<
th
>
Total
<
/th
>
<
/tr
>
{{
#
each
App
.
showInterfaceTypesController
.
content
}}
<
tr
>
<
td
>
{{
type
}}
<
/td
>
<
td
>
{{
total
}}
<
/td
>
<
/tr
>
{{
/
each
}}
<
/table
>
<
/div
>
</script>
<script
type=
"text/x-handlebars"
data-template-name=
"showTasks"
>
<script
type=
"text/x-handlebars"
data-template-name=
"showTasks"
>
<
h1
>
Tasks
<
/h1
>
<
h1
>
Tasks
<
/h1
>
<
div
>
<
div
>
...
@@ -390,15 +450,15 @@
...
@@ -390,15 +450,15 @@
{{
#
linkTo
"showCodecs"
}}
Codecs
{{
/linkTo}}
|
{{
#
linkTo
"showCodecs"
}}
Codecs
{{
/linkTo}}
|
{{
#
linkTo
"showFiles"
}}
Files
{{
/linkTo}}
|
{{
#
linkTo
"showFiles"
}}
Files
{{
/linkTo}}
|
{{
#
linkTo
"showAPIs"
}}
APIs
{{
/linkTo}}
|
{{
#
linkTo
"showAPIs"
}}
APIs
{{
/linkTo}}
|
{{
#
linkTo
"showAliases"
}}
Aliases
{{
/linkTo}}
|
Aliases
|
Complete
|
Complete
|
{{
#
linkTo
"showChats"
}}
Chat
{{
/
linkTo
}}
|
{{
#
linkTo
"showChats"
}}
Chat
{{
/
linkTo
}}
|
Management
|
{{
#
linkTo
"showManagements"
}}
Management
{{
/
linkTo
}}
|
Nat_map
|
Nat_map
|
{{
#
linkTo
"showSays"
}}
Say
{{
/
linkTo
}}
|
{{
#
linkTo
"showSays"
}}
Say
{{
/
linkTo
}}
|
{{
#
linkTo
"showInterfaces"
}}
Interfaces
{{
/
linkTo
}}
|
{{
#
linkTo
"showInterfaces"
}}
Interfaces
{{
/
linkTo
}}
|
Interface_types
|
{{
#
linkTo
"showInterfaceTypes"
}}
InterfaceTypes
{{
/
linkTo
}}
|
{{
#
linkTo
"showTasks"
}}
Tasks
{{
/
linkTo
}}
|
{{
#
linkTo
"showTasks"
}}
Tasks
{{
/
linkTo
}}
|
{{
#
linkTo
"showLimits"
}}
Limits
{{
/
linkTo
}}
{{
#
linkTo
"showLimits"
}}
Limits
{{
/
linkTo
}}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论