Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
-布谷鸟-
nosqlclient
提交
b4eddc7b
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,发现更多精彩内容 >>
提交
b4eddc7b
编写于
4月 21, 2017
作者:
R
rsercano
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
eslint issues fix
上级
d542c0c5
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
24 addition
and
17 deletion
+24
-17
.eslintrc
.eslintrc
+6
-0
client/imports/views/layouts/navigation/add_collection/options/add_collection_options.js
...vigation/add_collection/options/add_collection_options.js
+1
-0
client/imports/views/layouts/navigation/filter_collection/filter_collection.js
...layouts/navigation/filter_collection/filter_collection.js
+1
-0
client/imports/views/layouts/navigation/navigation.js
client/imports/views/layouts/navigation/navigation.js
+3
-5
client/imports/views/pages/index_management/add_index/add_index.html
...rts/views/pages/index_management/add_index/add_index.html
+3
-3
client/imports/views/pages/index_management/add_index/add_index.js
...ports/views/pages/index_management/add_index/add_index.js
+3
-2
client/imports/views/pages/index_management/index_management.js
.../imports/views/pages/index_management/index_management.js
+3
-3
client/imports/views/pages/stored_functions/stored_functions.js
.../imports/views/pages/stored_functions/stored_functions.js
+4
-3
client/imports/views/query_templates/collection/group/group.js
...t/imports/views/query_templates/collection/group/group.js
+0
-1
未找到文件。
.eslintrc
浏览文件 @
b4eddc7b
extends:
eslint:recommended
rules:
no-alert
camelcase
no-duplicate-imports
no-useless-constructor
parserOptions:
sourceType: module
...
...
client/imports/views/layouts/navigation/add_collection/options/add_collection_options.js
浏览文件 @
b4eddc7b
...
...
@@ -3,6 +3,7 @@ import {Session} from "meteor/session";
import
Enums
from
"
/lib/imports/enums
"
;
import
Helper
from
"
/client/imports/helper
"
;
import
"
./add_collection_options.html
"
;
import
$
from
"
jquery
"
;
export
const
getOptions
=
function
()
{
const
result
=
{};
...
...
client/imports/views/layouts/navigation/filter_collection/filter_collection.js
浏览文件 @
b4eddc7b
...
...
@@ -3,6 +3,7 @@ import {Session} from "meteor/session";
import
Helper
from
"
/client/imports/helper
"
;
import
"
./filter_collection.html
"
;
import
{
excludedCollectionsByFilter
,
filterRegex
,
setExcludedCollectionsByFilter
,
setFilterRegex
}
from
"
../navigation
"
;
import
$
from
"
jquery
"
;
require
(
'
datatables.net
'
)(
window
,
$
);
require
(
'
datatables.net-buttons
'
)(
window
,
$
);
...
...
client/imports/views/layouts/navigation/navigation.js
浏览文件 @
b4eddc7b
...
...
@@ -13,6 +13,8 @@ import {resetForm as resetRenameForm} from "./rename_collection/rename_collectio
import
{
resetForm
as
resetValidationRulesForm
}
from
"
./validation_rules/validation_rules
"
;
import
{
initializeFilterTable
}
from
"
./filter_collection/filter_collection
"
;
import
"
./navigation.html
"
;
import
$
from
"
jquery
"
;
const
toastr
=
require
(
'
toastr
'
);
...
...
@@ -25,11 +27,7 @@ export const setFilterRegex = function (regex) {
};
const
isFiltered
=
function
()
{
if
(
filterRegex
.
get
()
||
excludedCollectionsByFilter
.
get
().
length
!==
0
)
{
return
true
;
}
return
false
;
return
filterRegex
.
get
()
||
excludedCollectionsByFilter
.
get
().
length
!==
0
;
};
const
dropAllCollections
=
function
()
{
...
...
client/imports/views/pages/index_management/add_index/add_index.html
浏览文件 @
b4eddc7b
...
...
@@ -238,7 +238,7 @@
</h5>
</div>
<div
id=
"div2dOptions"
class=
"panel-collapse collapse"
aria-expanded=
"false"
style=
"height: 0
px
;"
>
style=
"height: 0;"
>
<div
class=
"panel-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
...
...
@@ -279,7 +279,7 @@
</div>
<div
id=
"div2dSphereOptions"
class=
"panel-collapse collapse"
aria-expanded=
"false"
style=
"height: 0
px
;"
>
style=
"height: 0;"
>
<div
class=
"panel-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
...
...
@@ -305,7 +305,7 @@
</div>
<div
id=
"divGeoHaystackOptions"
class=
"panel-collapse collapse"
aria-expanded=
"false"
style=
"height: 0
px
;"
>
style=
"height: 0;"
>
<div
class=
"panel-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
...
...
client/imports/views/pages/index_management/add_index/add_index.js
浏览文件 @
b4eddc7b
...
...
@@ -137,9 +137,10 @@ const addFieldWeight = function (fieldName, val) {
const
prepareFieldWeights
=
function
()
{
const
divFieldWeight
=
$
(
'
.divFieldWeight:visible
'
);
const
divFieldSelector
=
$
(
'
.divField
'
);
//add weights for TEXT index fields
for
(
let
divField
of
$
(
'
.divField
'
)
)
{
for
(
let
divField
of
divFieldSelector
)
{
divField
=
$
(
divField
);
const
fieldVal
=
divField
.
find
(
'
.cmbIndexTypes
'
).
val
();
const
fieldName
=
divField
.
find
(
'
.txtFieldName
'
).
val
();
...
...
@@ -163,7 +164,7 @@ const prepareFieldWeights = function () {
const
weightName
=
div
.
find
(
'
.txtFieldWeightName
'
).
val
();
let
found
=
false
;
for
(
let
divField
of
$
(
'
.divField
'
)
)
{
for
(
let
divField
of
divFieldSelector
)
{
divField
=
$
(
divField
);
const
fieldName
=
divField
.
find
(
'
.txtFieldName
'
).
val
();
const
fieldVal
=
divField
.
find
(
'
.cmbIndexTypes
'
).
val
();
...
...
client/imports/views/pages/index_management/index_management.js
浏览文件 @
b4eddc7b
...
...
@@ -108,9 +108,9 @@ const populateTableData = function (indexInfo, stats, indexStats) {
if
(
obj
.
key
&&
Object
.
prototype
.
toString
.
call
(
obj
.
key
)
===
'
[object Object]
'
)
{
for
(
let
field
in
obj
.
key
)
{
if
(
field
===
'
_fts
'
||
field
===
'
_ftsx
'
)
{
continue
;
}
if
(
field
===
'
_fts
'
||
field
===
'
_ftsx
'
)
continue
;
if
(
!
obj
.
key
.
hasOwnProperty
(
field
))
continue
;
if
(
obj
.
key
[
field
]
===
1
)
{
index
.
asc_fields
.
push
(
field
);
}
else
if
(
obj
.
key
[
field
]
===
-
1
)
{
...
...
client/imports/views/pages/stored_functions/stored_functions.js
浏览文件 @
b4eddc7b
...
...
@@ -62,16 +62,17 @@ Template.storedFunctions.onRendered(function () {
let
connections
=
this
.
subscribe
(
'
connections
'
);
let
modal
=
$
(
'
#editStoredFunctionModal
'
);
modal
.
on
(
'
shown.bs.modal
'
,
function
()
{
Helper
.
initializeCodeMirror
(
$
(
'
#divStoredFunction
'
),
'
txtStoredFunction
'
);
const
divStoredFunction
=
$
(
'
#divStoredFunction
'
);
Helper
.
initializeCodeMirror
(
divStoredFunction
,
'
txtStoredFunction
'
);
if
(
modal
.
data
(
'
selected
'
))
{
const
data
=
modal
.
data
(
'
selected
'
);
$
(
'
#storedFunctionModalTitle
'
).
html
(
data
.
_id
);
$
(
'
#inputStoredFunctionName
'
).
val
(
data
.
_id
);
Helper
.
setCodeMirrorValue
(
$
(
'
#divStoredFunction
'
)
,
data
.
value
.
$code
,
$
(
'
#txtStoredFunction
'
))
Helper
.
setCodeMirrorValue
(
divStoredFunction
,
data
.
value
.
$code
,
$
(
'
#txtStoredFunction
'
))
}
else
{
$
(
'
#storedFunctionModalTitle
'
).
html
(
'
Add Stored Function
'
);
$
(
'
#inputStoredFunctionName
'
).
val
(
''
);
Helper
.
setCodeMirrorValue
(
$
(
'
#divStoredFunction
'
)
,
''
,
$
(
'
#txtStoredFunction
'
))
Helper
.
setCodeMirrorValue
(
divStoredFunction
,
''
,
$
(
'
#txtStoredFunction
'
))
}
});
...
...
client/imports/views/query_templates/collection/group/group.js
浏览文件 @
b4eddc7b
...
...
@@ -6,7 +6,6 @@ import {Template} from "meteor/templating";
import
{
Meteor
}
from
"
meteor/meteor
"
;
import
{
Session
}
from
"
meteor/session
"
;
import
Helper
from
"
/client/imports/helper
"
;
import
Enums
from
"
/lib/imports/enums
"
;
import
{
initExecuteQuery
}
from
"
/client/imports/views/pages/browse_collection/browse_collection
"
;
import
"
./group.html
"
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录