Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
-布谷鸟-
nosqlclient
提交
28de29c3
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,体验更适合开发者的 AI 搜索 >>
提交
28de29c3
编写于
5月 19, 2016
作者:
S
Sercan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
under heavy development #62
上级
79c68950
变更
16
展开全部
隐藏空白更改
内联
并排
Showing
16 changed file
with
278 addition
and
26 deletion
+278
-26
client/plugins/jquery-ui/jquery-ui.min.css
client/plugins/jquery-ui/jquery-ui.min.css
+6
-0
client/plugins/jquery-ui/jquery-ui.min.js
client/plugins/jquery-ui/jquery-ui.min.js
+9
-0
client/views/layouts/navigation/navigation.html
client/views/layouts/navigation/navigation.html
+7
-0
client/views/pages/admin_queries/admin_queries.js
client/views/pages/admin_queries/admin_queries.js
+1
-9
client/views/pages/aggregate_pipeline/aggregate_pipeline.html
...nt/views/pages/aggregate_pipeline/aggregate_pipeline.html
+90
-0
client/views/pages/aggregate_pipeline/aggregate_pipeline.js
client/views/pages/aggregate_pipeline/aggregate_pipeline.js
+91
-0
client/views/pages/aggregate_pipeline/stages/number_stage/number_stage.html
.../aggregate_pipeline/stages/number_stage/number_stage.html
+8
-0
client/views/pages/aggregate_pipeline/stages/number_stage/number_stage.js
...es/aggregate_pipeline/stages/number_stage/number_stage.js
+3
-0
client/views/pages/aggregate_pipeline/stages/object_stage/object_stage.html
.../aggregate_pipeline/stages/object_stage/object_stage.html
+8
-0
client/views/pages/aggregate_pipeline/stages/object_stage/object_stage.js
...es/aggregate_pipeline/stages/object_stage/object_stage.js
+32
-0
client/views/pages/aggregate_pipeline/stages/string_stage/string_stage.html
.../aggregate_pipeline/stages/string_stage/string_stage.html
+8
-0
client/views/pages/aggregate_pipeline/stages/string_stage/string_stage.js
...es/aggregate_pipeline/stages/string_stage/string_stage.js
+3
-0
client/views/pages/browse_collection/browse_collection.js
client/views/pages/browse_collection/browse_collection.js
+1
-5
client/views/pages/edit_document/edit_document.js
client/views/pages/edit_document/edit_document.js
+1
-5
client/views/pages/settings/settings.js
client/views/pages/settings/settings.js
+2
-7
lib/routers/aggregate_pipeline.js
lib/routers/aggregate_pipeline.js
+8
-0
未找到文件。
client/plugins/jquery-ui/jquery-ui.min.css
0 → 100644
浏览文件 @
28de29c3
/*! jQuery UI - v1.11.4 - 2015-05-11
* http://jqueryui.com
* Includes: core.css, draggable.css, resizable.css, selectable.css, sortable.css
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
.ui-helper-hidden
{
display
:
none
}
.ui-helper-hidden-accessible
{
border
:
0
;
clip
:
rect
(
0
0
0
0
);
height
:
1px
;
margin
:
-1px
;
overflow
:
hidden
;
padding
:
0
;
position
:
absolute
;
width
:
1px
}
.ui-helper-reset
{
margin
:
0
;
padding
:
0
;
border
:
0
;
outline
:
0
;
line-height
:
1.3
;
text-decoration
:
none
;
font-size
:
100%
;
list-style
:
none
}
.ui-helper-clearfix
:before
,
.ui-helper-clearfix
:after
{
content
:
""
;
display
:
table
;
border-collapse
:
collapse
}
.ui-helper-clearfix
:after
{
clear
:
both
}
.ui-helper-clearfix
{
min-height
:
0
}
.ui-helper-zfix
{
width
:
100%
;
height
:
100%
;
top
:
0
;
left
:
0
;
position
:
absolute
;
opacity
:
0
;
filter
:
Alpha
(
Opacity
=
0
)}
.ui-front
{
z-index
:
100
}
.ui-state-disabled
{
cursor
:
default
!important
}
.ui-icon
{
display
:
block
;
text-indent
:
-99999px
;
overflow
:
hidden
;
background-repeat
:
no-repeat
}
.ui-widget-overlay
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
}
.ui-draggable-handle
{
-ms-touch-action
:
none
;
touch-action
:
none
}
.ui-resizable
{
position
:
relative
}
.ui-resizable-handle
{
position
:
absolute
;
font-size
:
0.1px
;
display
:
block
;
-ms-touch-action
:
none
;
touch-action
:
none
}
.ui-resizable-disabled
.ui-resizable-handle
,
.ui-resizable-autohide
.ui-resizable-handle
{
display
:
none
}
.ui-resizable-n
{
cursor
:
n-resize
;
height
:
7px
;
width
:
100%
;
top
:
-5px
;
left
:
0
}
.ui-resizable-s
{
cursor
:
s-resize
;
height
:
7px
;
width
:
100%
;
bottom
:
-5px
;
left
:
0
}
.ui-resizable-e
{
cursor
:
e-resize
;
width
:
7px
;
right
:
-5px
;
top
:
0
;
height
:
100%
}
.ui-resizable-w
{
cursor
:
w-resize
;
width
:
7px
;
left
:
-5px
;
top
:
0
;
height
:
100%
}
.ui-resizable-se
{
cursor
:
se-resize
;
width
:
12px
;
height
:
12px
;
right
:
1px
;
bottom
:
1px
}
.ui-resizable-sw
{
cursor
:
sw-resize
;
width
:
9px
;
height
:
9px
;
left
:
-5px
;
bottom
:
-5px
}
.ui-resizable-nw
{
cursor
:
nw-resize
;
width
:
9px
;
height
:
9px
;
left
:
-5px
;
top
:
-5px
}
.ui-resizable-ne
{
cursor
:
ne-resize
;
width
:
9px
;
height
:
9px
;
right
:
-5px
;
top
:
-5px
}
.ui-selectable
{
-ms-touch-action
:
none
;
touch-action
:
none
}
.ui-selectable-helper
{
position
:
absolute
;
z-index
:
100
;
border
:
1px
dotted
black
}
.ui-sortable-handle
{
-ms-touch-action
:
none
;
touch-action
:
none
}
\ No newline at end of file
client/plugins/jquery-ui/jquery-ui.min.js
0 → 100644
浏览文件 @
28de29c3
此差异已折叠。
点击以展开。
client/views/layouts/navigation/navigation.html
浏览文件 @
28de29c3
...
...
@@ -92,6 +92,13 @@
class=
"nav-label"
>
Easy Edit
</span>
</a>
</li>
<li
class=
"{{isActiveRoute regex='aggregatePipeline'}}"
>
<a
class=
"aNavigations"
href=
"{{pathFor route='aggregatePipeline'}}"
><i
class=
"fa fa-tasks"
></i>
<span
class=
"nav-label"
>
Aggregate
</span>
</a>
</li>
</ul>
</li>
...
...
client/views/pages/admin_queries/admin_queries.js
浏览文件 @
28de29c3
...
...
@@ -18,15 +18,7 @@ Template.adminQueries.onRendered(function () {
});
cmb
.
chosen
();
$
(
'
#aConvertIsoDates
'
).
iCheck
({
checkboxClass
:
'
icheckbox_square-green
'
});
$
(
'
#aConvertObjectIds
'
).
iCheck
({
checkboxClass
:
'
icheckbox_square-green
'
});
$
(
'
#aRunOnAdminDB
'
).
iCheck
({
$
(
'
#aConvertIsoDates, #aConvertObjectIds, #aRunOnAdminDB
'
).
iCheck
({
checkboxClass
:
'
icheckbox_square-green
'
});
...
...
client/views/pages/aggregate_pipeline/aggregate_pipeline.html
0 → 100644
浏览文件 @
28de29c3
<template
name=
"aggregatePipeline"
>
{{#if isConnected}}
{{> pageHeading title='Aggregate' }}
<div
class=
"wrapper wrapper-content animated fadeInRight"
>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5>
Collection
<small>
Collection to execute this aggregation at
</small>
</h5>
<div
class=
"ibox-tools"
>
<a
id=
"aConvertIsoDates"
class=
"i-checks"
style=
"display: none;"
data-toggle=
"tooltip"
title=
"Enable/Disable YYYY-MM-DD HH:MM:ss formatted strings to ISODate conversion"
>
<input
id=
"inputConvertIsoDates"
type=
"checkbox"
value=
""
class=
"form-control"
checked=
""
style=
"position: absolute; opacity: 0;"
/>
</a>
<a
id=
"aConvertObjectIds"
class=
"i-checks"
style=
"display: none;"
data-toggle=
"tooltip"
title=
"Enable/Disable valid ObjectID strings to ObjectID conversion"
>
<input
id=
"inputConvertObjectIDs"
type=
"checkbox"
value=
""
class=
"form-control"
checked=
""
style=
"position: absolute; opacity: 0;"
/>
</a>
</div>
</div>
<div
class=
"ibox-content"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-1 control-label"
>
Collection
</label>
<div
class=
"col-lg-11"
>
<select
id=
"cmbCollections"
data-placeholder=
"Choose a collection..."
class=
"chosen-select form-control"
tabindex=
"-1"
>
<option></option>
</select>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<div
class=
"ibox"
>
<div
class=
"ibox-content"
>
<h3>
Stages
</h3>
<p
class=
"small"
><i
class=
"fa fa-hand-o-up"
></i>
Drag stages between list
</p>
<div
class=
"form-group"
>
<select
id=
"cmbStageQueries"
data-placeholder=
"Choose a stage query.."
class=
"chosen-select form-control col-lg-10"
tabindex=
"-1"
>
<option></option>
<option>
$project
</option>
<option>
$match
</option>
<option>
$redact
</option>
<option>
$limit
</option>
<option>
$skip
</option>
<option>
$unwind
</option>
<option>
$group
</option>
<option>
$sample
</option>
<option>
$sort
</option>
<option>
$geoNear
</option>
<option>
$lookup
</option>
<option>
$out
</option>
<option>
$indexStats
</option>
</select>
</div>
<ul
class=
"sortable-list agile-list"
id=
"stages"
>
</ul>
</div>
</div>
</div>
</div>
</div>
{{/if}}
</template>
\ No newline at end of file
client/views/pages/aggregate_pipeline/aggregate_pipeline.js
0 → 100644
浏览文件 @
28de29c3
/**
* Created by RSercan on 14.5.2016.
*/
var
stageNumbers
;
Template
.
aggregatePipeline
.
onRendered
(
function
()
{
if
(
Session
.
get
(
Template
.
strSessionCollectionNames
)
==
undefined
)
{
Router
.
go
(
'
databaseStats
'
);
return
;
}
$
(
"
#stages
"
).
sortable
({
connectWith
:
"
.connectList
"
});
$
(
'
#cmbStageQueries
'
).
chosen
();
$
(
'
#aConvertIsoDates, #aConvertObjectIds
'
).
iCheck
({
checkboxClass
:
'
icheckbox_square-green
'
});
stageNumbers
=
0
;
Template
.
aggregatePipeline
.
initializeCollectionsCombobox
();
});
Template
.
aggregatePipeline
.
helpers
({
'
getStageTemplate
'
:
function
()
{
if
(
Session
.
get
(
Template
.
strSessionAggregateStageName
))
{
switch
(
Session
.
get
(
Template
.
strSessionAggregateStageName
))
{
case
'
$limit
'
:
return
'
numberStage
'
;
case
'
$skip
'
:
return
'
numberStage
'
;
case
'
$out
'
:
return
'
stringStage
'
;
default
:
return
'
objectStage
'
;
}
}
},
'
getStageName
'
:
function
()
{
return
{
name
:
Session
.
get
(
Template
.
strSessionAggregateStageName
)};
}
});
Template
.
aggregatePipeline
.
events
({
'
change #cmbStageQueries
'
:
function
(
e
)
{
var
cmb
=
$
(
"
#cmbStageQueries
"
);
var
query
=
cmb
.
chosen
().
val
();
if
(
query
)
{
var
liElement
=
'
<li class="success-element" id="stage
'
+
stageNumbers
+
'
">
'
+
query
+
'
<div class="agile-detail">
'
+
'
<a id="remove-stage-element" href="#" data-number="
'
+
stageNumbers
+
'
" class="pull-right btn btn-xs btn-white"><i class="fa fa-remove"></i> Remove</a>
'
+
'
<input id="inputNumberStage" min="0" type="number" class="form-control">
'
+
'
</div> </li>
'
;
$
(
'
#stages
'
).
append
(
liElement
);
Session
.
set
(
Template
.
strSessionAggregateStageName
,
query
);
cmb
.
val
(
''
).
trigger
(
'
chosen:updated
'
);
stageNumbers
++
;
}
},
'
click #remove-stage-element
'
:
function
(
e
)
{
e
.
preventDefault
();
var
stageId
=
'
#stage
'
+
$
(
e
.
target
).
data
(
'
number
'
);
$
(
stageId
).
remove
();
}
});
Template
.
aggregatePipeline
.
initializeCollectionsCombobox
=
function
()
{
var
cmb
=
$
(
'
#cmbCollections
'
);
cmb
.
append
(
$
(
"
<optgroup id='optGroupCollections' label='Collections'></optgroup>
"
));
var
cmbOptGroupCollection
=
cmb
.
find
(
'
#optGroupCollections
'
);
var
collectionNames
=
Session
.
get
(
Template
.
strSessionCollectionNames
);
$
.
each
(
collectionNames
,
function
(
index
,
value
)
{
cmbOptGroupCollection
.
append
(
$
(
"
<option></option>
"
)
.
attr
(
"
value
"
,
value
.
name
)
.
text
(
value
.
name
));
});
cmb
.
chosen
();
cmb
.
on
(
'
change
'
,
function
(
evt
,
params
)
{
var
selectedCollection
=
params
.
selected
;
if
(
selectedCollection
)
{
Template
.
getDistinctKeysForAutoComplete
(
selectedCollection
);
}
});
};
\ No newline at end of file
client/views/pages/aggregate_pipeline/stages/number_stage/number_stage.html
0 → 100644
浏览文件 @
28de29c3
<template
name=
"numberStage"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-1 control-label"
>
{{name}}
</label>
<div
class=
"col-lg-11"
>
<input
id=
"inputNumberStage"
min=
"0"
type=
"number"
class=
"form-control"
>
</div>
</div>
</template>
\ No newline at end of file
client/views/pages/aggregate_pipeline/stages/number_stage/number_stage.js
0 → 100644
浏览文件 @
28de29c3
/**
* Created by RSercan on 15.5.2016.
*/
client/views/pages/aggregate_pipeline/stages/object_stage/object_stage.html
0 → 100644
浏览文件 @
28de29c3
<template
name=
"objectStage"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-1 control-label"
>
{{name}}
</label>
<div
id=
"divObjectStage"
class=
"col-lg-11"
>
<textarea
id=
"txtObjectStage"
class=
"form-control"
></textarea>
</div>
</div>
</template>
\ No newline at end of file
client/views/pages/aggregate_pipeline/stages/object_stage/object_stage.js
0 → 100644
浏览文件 @
28de29c3
/**
* Created by RSercan on 15.5.2016.
*/
Template
.
objectStage
.
onRendered
(
function
()
{
var
divSelector
=
$
(
'
#divObjectStage
'
);
var
codeMirror
;
if
(
!
divSelector
.
data
(
'
editor
'
))
{
codeMirror
=
CodeMirror
.
fromTextArea
(
document
.
getElementById
(
'
txtObjectStage
'
),
{
mode
:
"
javascript
"
,
theme
:
"
neat
"
,
styleActiveLine
:
true
,
lineNumbers
:
true
,
lineWrapping
:
false
,
extraKeys
:
{
"
Ctrl-Q
"
:
function
(
cm
)
{
cm
.
foldCode
(
cm
.
getCursor
());
},
"
Ctrl-Space
"
:
"
autocomplete
"
},
foldGutter
:
true
,
gutters
:
[
"
CodeMirror-linenumbers
"
,
"
CodeMirror-foldgutter
"
]
});
codeMirror
.
setSize
(
'
%100
'
,
100
);
divSelector
.
data
(
'
editor
'
,
codeMirror
);
}
else
{
codeMirror
=
divSelector
.
data
(
'
editor
'
);
}
});
\ No newline at end of file
client/views/pages/aggregate_pipeline/stages/string_stage/string_stage.html
0 → 100644
浏览文件 @
28de29c3
<template
name=
"stringStage"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-1 control-label"
>
{{name}}
</label>
<div
class=
"col-lg-11"
>
<input
type=
"text"
class=
"form-control"
id=
'txtStringStage'
/>
</div>
</div>
</template>
\ No newline at end of file
client/views/pages/aggregate_pipeline/stages/string_stage/string_stage.js
0 → 100644
浏览文件 @
28de29c3
/**
* Created by RSercan on 15.5.2016.
*/
client/views/pages/browse_collection/browse_collection.js
浏览文件 @
28de29c3
...
...
@@ -22,11 +22,7 @@ Template.browseCollection.onRendered(function () {
Template
.
queryHistories
.
initQueryHistories
();
});
$
(
'
#aConvertIsoDates
'
).
iCheck
({
checkboxClass
:
'
icheckbox_square-green
'
});
$
(
'
#aConvertObjectIds
'
).
iCheck
({
$
(
'
#aConvertIsoDates, #aConvertObjectIds
'
).
iCheck
({
checkboxClass
:
'
icheckbox_square-green
'
});
...
...
client/views/pages/edit_document/edit_document.js
浏览文件 @
28de29c3
...
...
@@ -10,11 +10,7 @@ Template.editDocument.onRendered(function () {
Template
.
editDocument
.
initializeCollectionsCombobox
();
Session
.
set
(
Template
.
strSessionEasyEditID
,
undefined
);
$
(
'
#aConvertIsoDates
'
).
iCheck
({
checkboxClass
:
'
icheckbox_square-green
'
});
$
(
'
#aConvertObjectIds
'
).
iCheck
({
$
(
'
#aConvertIsoDates, #aConvertObjectIds
'
).
iCheck
({
checkboxClass
:
'
icheckbox_square-green
'
});
...
...
client/views/pages/settings/settings.js
浏览文件 @
28de29c3
...
...
@@ -2,16 +2,11 @@
* Created by RSercan on 9.1.2016.
*/
Template
.
settings
.
onRendered
(
function
()
{
$
(
'
#divAutoCompleteFields
'
).
iCheck
({
$
(
'
#divAutoCompleteFields
, #divShowDBStats
'
).
iCheck
({
checkboxClass
:
'
icheckbox_square-green
'
});
$
(
'
#divShowDBStats
'
).
iCheck
({
checkboxClass
:
'
icheckbox_square-green
'
});
$
(
'
#cmbScale
'
).
chosen
();
$
(
'
#cmbResultView
'
).
chosen
();
$
(
'
#cmbScale, #cmbResultView
'
).
chosen
();
Template
.
settings
.
load
();
});
...
...
lib/routers/aggregate_pipeline.js
0 → 100644
浏览文件 @
28de29c3
/**
* Created by sercan on 16.02.2016.
*/
Router
.
route
(
'
/aggregatePipeline
'
,
{
waitOn
:
function
()
{
return
[
Meteor
.
subscribe
(
'
settings
'
),
Meteor
.
subscribe
(
'
connections
'
)];
}
});
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录