Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
-布谷鸟-
nosqlclient
提交
06d87213
N
nosqlclient
项目概览
-布谷鸟-
/
nosqlclient
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nosqlclient
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
06d87213
编写于
1月 18, 2016
作者:
S
Sercan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
connect, and serverStatus commands fix
上级
ca08cc06
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
21 addition
and
13 deletion
+21
-13
client/views/layouts/top_navbar/top_navbar.html
client/views/layouts/top_navbar/top_navbar.html
+1
-1
client/views/layouts/top_navbar/top_navbar.js
client/views/layouts/top_navbar/top_navbar.js
+9
-0
client/views/pages/admin_queries/admin_queries.js
client/views/pages/admin_queries/admin_queries.js
+1
-1
client/views/pages/database_dump_restore/database_dump_restore.js
...iews/pages/database_dump_restore/database_dump_restore.js
+1
-1
client/views/pages/database_stats/database_stats.html
client/views/pages/database_stats/database_stats.html
+1
-1
client/views/pages/database_stats/database_stats.js
client/views/pages/database_stats/database_stats.js
+8
-9
未找到文件。
client/views/layouts/top_navbar/top_navbar.html
浏览文件 @
06d87213
...
...
@@ -47,7 +47,7 @@
</div>
<div
class=
"modal-body"
>
{{> ReactiveDatatable tableData=reactiveDataFunction options=optionsObject }}
<button
type=
"button"
class=
"btn btn-block btn-outline btn-primary"
data-toggle=
"modal"
<button
id=
"btnCreateNewConnection"
type=
"button"
class=
"btn btn-block btn-outline btn-primary"
data-toggle=
"modal"
data-target=
"#connectionCreateModal"
>
Create New
</button>
</div>
...
...
client/views/layouts/top_navbar/top_navbar.js
浏览文件 @
06d87213
...
...
@@ -80,6 +80,15 @@ Template.topNavbar.helpers({
});
Template
.
topNavbar
.
events
({
'
click #btnCreateNewConnection
'
:
function
(
e
)
{
$
(
'
#inputConnectionName
'
).
val
(
''
);
$
(
'
#inputHost
'
).
val
(
''
);
$
(
'
#inputPort
'
).
val
(
'
27017
'
);
$
(
'
#inputDatabaseName
'
).
val
(
''
);
$
(
'
#inputUser
'
).
val
(
''
);
$
(
'
#inputPassword
'
).
val
(
''
);
},
'
click #btnConnectionList
'
:
function
(
e
)
{
if
(
!
Session
.
get
(
Template
.
strSessionConnection
))
{
$
(
'
#DataTables_Table_0
'
).
DataTable
().
$
(
'
tr.selected
'
).
removeClass
(
'
selected
'
);
...
...
client/views/pages/admin_queries/admin_queries.js
浏览文件 @
06d87213
...
...
@@ -2,7 +2,7 @@
* Created by RSercan on 10.1.2016.
*/
Template
.
adminQueries
.
onRendered
(
function
()
{
if
(
!
Session
.
get
(
Template
.
strSessionCo
nnection
))
{
if
(
!
Session
.
get
(
Template
.
strSessionCo
llectionNames
))
{
Router
.
go
(
'
databaseStats
'
);
return
;
}
...
...
client/views/pages/database_dump_restore/database_dump_restore.js
浏览文件 @
06d87213
...
...
@@ -2,7 +2,7 @@
* Created by RSercan on 17.1.2016.
*/
Template
.
databaseDumpRestore
.
onRendered
(
function
()
{
if
(
!
Session
.
get
(
Template
.
strSessionCo
nnection
))
{
if
(
!
Session
.
get
(
Template
.
strSessionCo
llectionNames
))
{
Router
.
go
(
'
databaseStats
'
);
return
;
}
...
...
client/views/pages/database_stats/database_stats.html
浏览文件 @
06d87213
...
...
@@ -149,7 +149,7 @@
</h1>
<small>
To see the statistics of your database, simply
<strong>
enable
</strong>
<i>
show database statistics
</i>
setting
<strong>
enable
</strong>
<i>
show database statistics
</i>
setting
<div
id=
"errorMessage"
></div>
</small>
</div>
</div>
...
...
client/views/pages/database_stats/database_stats.js
浏览文件 @
06d87213
...
...
@@ -54,7 +54,7 @@ Template.databaseStats.onRendered(function () {
// fetch stats only once.
Template
.
databaseStats
.
fetchStats
();
}
if
(
Session
.
get
(
Template
.
strSessionCo
nnection
))
{
if
(
Session
.
get
(
Template
.
strSessionCo
llectionNames
))
{
toastr
.
info
(
"
It can take a few seconds to populate charts !
"
);
}
});
...
...
@@ -66,7 +66,7 @@ Template.databaseStats.onDestroyed(function () {
});
Template
.
databaseStats
.
initOperationCountersChart
=
function
(
data
)
{
if
(
Session
.
get
(
Template
.
strSessionCo
nnection
))
{
if
(
Session
.
get
(
Template
.
strSessionCo
llectionNames
))
{
if
(
data
==
undefined
||
data
.
length
==
0
)
{
$
(
'
#divOperationCountersChart
'
).
html
(
'
This feature is not supported on this platform (OS)
'
);
return
;
...
...
@@ -103,7 +103,7 @@ Template.databaseStats.initOperationCountersChart = function (data) {
};
Template
.
databaseStats
.
initNetworkChart
=
function
(
data
)
{
if
(
Session
.
get
(
Template
.
strSessionCo
nnection
))
{
if
(
Session
.
get
(
Template
.
strSessionCo
llectionNames
))
{
if
(
data
==
undefined
||
data
.
length
==
0
)
{
$
(
'
#divNetworkChart
'
).
html
(
'
This feature is not supported on this platform (OS)
'
);
return
;
...
...
@@ -145,7 +145,7 @@ Template.databaseStats.initNetworkChart = function (data) {
};
Template
.
databaseStats
.
initConnectionsChart
=
function
(
data
,
availableConnections
)
{
if
(
Session
.
get
(
Template
.
strSessionCo
nnection
))
{
if
(
Session
.
get
(
Template
.
strSessionCo
llectionNames
))
{
if
(
data
==
undefined
||
data
.
length
==
0
)
{
$
(
'
#divHeapMemoryChart
'
).
html
(
'
This feature is not supported on this platform (OS)
'
);
return
;
...
...
@@ -181,7 +181,7 @@ Template.databaseStats.initConnectionsChart = function (data, availableConnectio
};
Template
.
databaseStats
.
initMemoryChart
=
function
(
data
,
text
)
{
if
(
Session
.
get
(
Template
.
strSessionCo
nnection
))
{
if
(
Session
.
get
(
Template
.
strSessionCo
llectionNames
))
{
if
(
data
==
undefined
||
data
.
length
==
0
)
{
$
(
'
#divHeapMemoryChart
'
).
html
(
'
This feature is not supported on this platform (OS)
'
);
return
;
...
...
@@ -251,7 +251,7 @@ Template.databaseStats.helpers({
});
Template
.
databaseStats
.
fetchStats
=
function
()
{
if
(
Session
.
get
(
Template
.
strSessionCo
nnection
))
{
if
(
Session
.
get
(
Template
.
strSessionCo
llectionNames
))
{
var
connection
=
Connections
.
findOne
({
_id
:
Session
.
get
(
Template
.
strSessionConnection
)});
Meteor
.
call
(
"
dbStats
"
,
connection
,
function
(
err
,
result
)
{
if
(
err
||
result
.
error
)
{
...
...
@@ -266,7 +266,7 @@ Template.databaseStats.fetchStats = function () {
};
Template
.
databaseStats
.
fetchStatus
=
function
()
{
if
(
Session
.
get
(
Template
.
strSessionCo
nnection
))
{
if
(
Session
.
get
(
Template
.
strSessionCo
llectionNames
))
{
var
connection
=
Connections
.
findOne
({
_id
:
Session
.
get
(
Template
.
strSessionConnection
)});
Meteor
.
call
(
"
serverStatus
"
,
connection
,
function
(
err
,
result
)
{
if
(
err
||
result
.
error
)
{
...
...
@@ -278,8 +278,7 @@ Template.databaseStats.fetchStatus = function () {
}
Session
.
set
(
Template
.
strSessionServerStatus
,
undefined
);
clearInterval
(
interval
);
toastr
.
error
(
"
Couldn't fetch serverStatus,
"
+
errorMessage
);
$
(
'
#errorMessage
'
).
html
(
"
Couldn't fetch serverStatus,
"
+
errorMessage
);
}
else
{
Session
.
set
(
Template
.
strSessionServerStatus
,
result
.
result
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录