Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
蜕变的菜鸟
glances
提交
00d9f6ae
G
glances
项目概览
蜕变的菜鸟
/
glances
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
glances
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
00d9f6ae
编写于
8月 05, 2018
作者:
N
nicolargo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Upgrade RestFul API to api/3
上级
172fc2ca
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
8 deletion
+8
-8
glances/outputs/glances_bottle.py
glances/outputs/glances_bottle.py
+1
-1
glances/outputs/static/js/components/help/controller.js
glances/outputs/static/js/components/help/controller.js
+1
-1
glances/outputs/static/js/services/stats.js
glances/outputs/static/js/services/stats.js
+5
-5
glances/outputs/static/public/glances.js
glances/outputs/static/public/glances.js
+0
-0
glances/outputs/static/public/glances.map.js
glances/outputs/static/public/glances.map.js
+0
-0
unitest-restful.py
unitest-restful.py
+1
-1
未找到文件。
glances/outputs/glances_bottle.py
浏览文件 @
00d9f6ae
...
...
@@ -73,7 +73,7 @@ def compress(func):
class
GlancesBottle
(
object
):
"""This class manages the Bottle Web server."""
API_VERSION
=
'
2
'
API_VERSION
=
'
3
'
def
__init__
(
self
,
config
=
None
,
args
=
None
):
# Init config
...
...
glances/outputs/static/js/components/help/controller.js
浏览文件 @
00d9f6ae
...
...
@@ -2,7 +2,7 @@
export
default
function
GlancesHelpController
(
$http
)
{
var
vm
=
this
;
$http
.
get
(
'
api/
2
/help
'
).
then
(
function
(
response
)
{
$http
.
get
(
'
api/
3
/help
'
).
then
(
function
(
response
)
{
vm
.
help
=
response
.
data
;
});
}
glances/outputs/static/js/services/stats.js
浏览文件 @
00d9f6ae
...
...
@@ -34,13 +34,13 @@ function GlancesStats ($http, $q, $rootScope, $timeout, GlancesPluginHelper, REF
};
// load limits to init GlancePlugin helper
$http
.
get
(
'
api/
2
/all/limits
'
).
then
(
function
(
response
)
{
$http
.
get
(
'
api/
3
/all/limits
'
).
then
(
function
(
response
)
{
GlancesPluginHelper
.
setLimits
(
response
.
data
);
});
$http
.
get
(
'
api/
2
/config
'
).
then
(
function
(
response
)
{
$http
.
get
(
'
api/
3
/config
'
).
then
(
function
(
response
)
{
angular
.
extend
(
CONFIG
,
response
.
data
);
});
$http
.
get
(
'
api/
2
/args
'
).
then
(
function
(
response
)
{
$http
.
get
(
'
api/
3
/args
'
).
then
(
function
(
response
)
{
angular
.
extend
(
ARGUMENTS
,
response
.
data
);
});
...
...
@@ -58,13 +58,13 @@ function GlancesStats ($http, $q, $rootScope, $timeout, GlancesPluginHelper, REF
}
var
getAllStats
=
function
()
{
return
$http
.
get
(
'
api/
2
/all
'
).
then
(
function
(
response
)
{
return
$http
.
get
(
'
api/
3
/all
'
).
then
(
function
(
response
)
{
return
response
.
data
;
});
};
var
getAllViews
=
function
()
{
return
$http
.
get
(
'
api/
2
/all/views
'
).
then
(
function
(
response
)
{
return
$http
.
get
(
'
api/
3
/all/views
'
).
then
(
function
(
response
)
{
return
response
.
data
;
});
};
...
...
glances/outputs/static/public/glances.js
浏览文件 @
00d9f6ae
此差异由.gitattributes 抑制。
glances/outputs/static/public/glances.map.js
浏览文件 @
00d9f6ae
此差异由.gitattributes 抑制。
unitest-restful.py
浏览文件 @
00d9f6ae
...
...
@@ -32,7 +32,7 @@ from glances.compat import text_type
import
requests
SERVER_PORT
=
61234
API_VERSION
=
2
API_VERSION
=
3
URL
=
"http://localhost:{}/api/{}"
.
format
(
SERVER_PORT
,
API_VERSION
)
pid
=
None
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录