Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wrr-cat
apollo
提交
f3708887
apollo
项目概览
wrr-cat
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f3708887
编写于
8月 31, 2016
作者:
J
Jason Song
提交者:
GitHub
8月 31, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #397 from lepdou/search_item
bugfix: add view items
上级
588029d6
583b098e
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
7 addition
and
7 deletion
+7
-7
apollo-portal/src/main/resources/static/scripts/directive/namespace-panel-directive.js
...ces/static/scripts/directive/namespace-panel-directive.js
+6
-6
apollo-portal/src/main/resources/static/views/component/namespace-panel.html
...ain/resources/static/views/component/namespace-panel.html
+1
-1
未找到文件。
apollo-portal/src/main/resources/static/scripts/directive/namespace-panel-directive.js
浏览文件 @
f3708887
...
@@ -65,7 +65,7 @@ directive_module.directive('apollonspanel',
...
@@ -65,7 +65,7 @@ directive_module.directive('apollonspanel',
function
initNamespace
(
namespace
,
viewType
)
{
function
initNamespace
(
namespace
,
viewType
)
{
namespace
.
showSearchInput
=
false
;
namespace
.
showSearchInput
=
false
;
namespace
.
sourceItems
=
namespace
.
items
;
namespace
.
viewItems
=
namespace
.
items
;
namespace
.
isPropertiesFormat
=
namespace
.
format
==
'
properties
'
;
namespace
.
isPropertiesFormat
=
namespace
.
format
==
'
properties
'
;
namespace
.
isTextEditing
=
false
;
namespace
.
isTextEditing
=
false
;
namespace
.
instanceViewType
=
namespace_instance_view_type
.
LATEST_RELEASE
;
namespace
.
instanceViewType
=
namespace_instance_view_type
.
LATEST_RELEASE
;
...
@@ -345,7 +345,7 @@ directive_module.directive('apollonspanel',
...
@@ -345,7 +345,7 @@ directive_module.directive('apollonspanel',
function
parseModel2Text
(
namespace
)
{
function
parseModel2Text
(
namespace
)
{
if
(
namespace
.
sourceI
tems
.
length
==
0
)
{
if
(
namespace
.
i
tems
.
length
==
0
)
{
namespace
.
itemCnt
=
MIN_ROW_SIZE
;
namespace
.
itemCnt
=
MIN_ROW_SIZE
;
return
""
;
return
""
;
}
}
...
@@ -360,7 +360,7 @@ directive_module.directive('apollonspanel',
...
@@ -360,7 +360,7 @@ directive_module.directive('apollonspanel',
}
}
function
parseNotPropertiesText
(
namespace
)
{
function
parseNotPropertiesText
(
namespace
)
{
var
text
=
namespace
.
sourceI
tems
[
0
].
item
.
value
;
var
text
=
namespace
.
i
tems
[
0
].
item
.
value
;
var
lineNum
=
text
.
split
(
"
\n
"
).
length
;
var
lineNum
=
text
.
split
(
"
\n
"
).
length
;
namespace
.
itemCnt
=
lineNum
<
MIN_ROW_SIZE
?
MIN_ROW_SIZE
:
lineNum
;
namespace
.
itemCnt
=
lineNum
<
MIN_ROW_SIZE
?
MIN_ROW_SIZE
:
lineNum
;
return
text
;
return
text
;
...
@@ -369,7 +369,7 @@ directive_module.directive('apollonspanel',
...
@@ -369,7 +369,7 @@ directive_module.directive('apollonspanel',
function
parsePropertiesText
(
namespace
)
{
function
parsePropertiesText
(
namespace
)
{
var
result
=
""
;
var
result
=
""
;
var
itemCnt
=
0
;
var
itemCnt
=
0
;
namespace
.
sourceI
tems
.
forEach
(
function
(
item
)
{
namespace
.
i
tems
.
forEach
(
function
(
item
)
{
//deleted key
//deleted key
if
(
!
item
.
item
.
dataChangeLastModifiedBy
)
{
if
(
!
item
.
item
.
dataChangeLastModifiedBy
)
{
return
;
return
;
...
@@ -398,13 +398,13 @@ directive_module.directive('apollonspanel',
...
@@ -398,13 +398,13 @@ directive_module.directive('apollonspanel',
function
searchItems
(
namespace
)
{
function
searchItems
(
namespace
)
{
var
searchKey
=
namespace
.
searchKey
.
toLowerCase
();
var
searchKey
=
namespace
.
searchKey
.
toLowerCase
();
var
items
=
[];
var
items
=
[];
namespace
.
sourceI
tems
.
forEach
(
function
(
item
)
{
namespace
.
i
tems
.
forEach
(
function
(
item
)
{
var
key
=
item
.
item
.
key
;
var
key
=
item
.
item
.
key
;
if
(
key
&&
key
.
toLowerCase
().
indexOf
(
searchKey
)
>=
0
){
if
(
key
&&
key
.
toLowerCase
().
indexOf
(
searchKey
)
>=
0
){
items
.
push
(
item
);
items
.
push
(
item
);
}
}
});
});
namespace
.
i
tems
=
items
;
namespace
.
viewI
tems
=
items
;
}
}
function
lockCheck
(
namespace
)
{
function
lockCheck
(
namespace
)
{
...
...
apollo-portal/src/main/resources/static/views/component/namespace-panel.html
浏览文件 @
f3708887
...
@@ -176,7 +176,7 @@
...
@@ -176,7 +176,7 @@
</thead>
</thead>
<tbody>
<tbody>
<tr
ng-repeat=
"config in namespace.
i
tems"
ng-class=
"{warning:config.isModified}"
<tr
ng-repeat=
"config in namespace.
viewI
tems"
ng-class=
"{warning:config.isModified}"
ng-if=
"config.item.key && !config.isDeleted"
>
ng-if=
"config.item.key && !config.isDeleted"
>
<td
width=
"20%"
title=
"{{config.item.key}}"
>
<td
width=
"20%"
title=
"{{config.item.key}}"
>
<span
ng-bind=
"config.item.key | limitTo: 250"
></span>
<span
ng-bind=
"config.item.key | limitTo: 250"
></span>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录