Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wrr-cat
apollo
提交
d5e09898
apollo
项目概览
wrr-cat
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
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,发现更多精彩内容 >>
提交
d5e09898
编写于
5月 09, 2016
作者:
L
lepdou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
样式优化
上级
9c84dccb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
68 addition
and
37 deletion
+68
-37
apollo-portal/src/main/resources/static/config.html
apollo-portal/src/main/resources/static/config.html
+33
-30
apollo-portal/src/main/resources/static/scripts/PageCommon.js
...lo-portal/src/main/resources/static/scripts/PageCommon.js
+4
-0
apollo-portal/src/main/resources/static/scripts/controller/app/ConfigBaseInfoController.js
...static/scripts/controller/app/ConfigBaseInfoController.js
+1
-1
apollo-portal/src/main/resources/static/scripts/controller/app/ConfigNamespaceController.js
...tatic/scripts/controller/app/ConfigNamespaceController.js
+3
-0
apollo-portal/src/main/resources/static/styles/common-style.css
...-portal/src/main/resources/static/styles/common-style.css
+27
-6
未找到文件。
apollo-portal/src/main/resources/static/config.html
浏览文件 @
d5e09898
...
...
@@ -22,6 +22,7 @@
<!--具体配置信息-->
<div
class=
"row config-info-container"
>
<!--tag导航-->
<div
class=
"col-md-3"
ng-controller=
"ConfigBaseInfoController"
>
<div
id=
"treeview"
></div>
...
...
@@ -124,6 +125,7 @@
</div>
</div>
<!--namespaces-->
<div
class=
"col-md-9 config-item-container"
ng-controller=
"ConfigNamespaceController"
>
<div
ng-repeat=
"namespace in namespaces"
>
<div
class=
"panel"
>
...
...
@@ -131,10 +133,10 @@
<div
class=
"row"
>
<div
class=
"col-md-4"
>
<b>
{{namespace.namespace.namespaceName}}
</b>
<span
class=
"label label-
info"
ng-show=
"namespace.itemModifiedCnt > 0"
>
有修改,可发布
<span
class=
"label label-
primary"
ng-show=
"namespace.itemModifiedCnt > 0"
>
有修改
<span
class=
"badge"
>
{{namespace.itemModifiedCnt}}
</span></span>
</div>
<div
class=
"col-md-
7
"
>
<div
class=
"col-md-
4
"
>
<div
class=
"btn-toolbar"
role=
"toolbar"
aria-label=
"..."
>
<div
class=
"btn-group"
role=
"group"
aria-label=
"..."
>
<button
type=
"button"
data-toggle=
"modal"
data-target=
"#releaseModal"
...
...
@@ -142,25 +144,26 @@
ng-disabled=
"namespace.isTextEditing"
ng-click=
"prepareReleaseNamespace(namespace)"
>
发布
</button>
<!--<button type="button"-->
<!--class="btn btn-default btn-sm J_tableview_btn">回滚-->
<!--</button>-->
<!--<button type="button"-->
<!--class="btn btn-default btn-sm J_historyview_btn">-->
<!--查看历史版本-->
<!--</button>-->
</div>
<div
class=
"btn-group"
role=
"group"
aria-label=
"..."
>
<div
class=
"btn-group"
role=
"group"
>
<!--<button type="button"-->
<!--class="btn btn-default btn-sm J_tableview_btn">授权-->
<!--</button>-->
<a
type=
"button"
target=
"_blank"
href=
"config/sync.html?#/appid={{pageContext.appId}}&env={{pageContext.env}}&clusterName={{pageContext.clusterName}}&namespaceName={{namespace.namespace.namespaceName}}"
class=
"btn btn-default btn-sm J_tableview_btn"
>
同步
</a>
</div>
<button
type=
"button"
class=
"btn btn-default btn-sm J_tableview_btn"
>
回滚
</button>
<button
type=
"button"
class=
"btn btn-default btn-sm J_historyview_btn"
>
查看历史版本
</button>
<button
type=
"button"
class=
"btn btn-default btn-sm J_tableview_btn"
>
授权
</button>
<a
type=
"button"
target=
"_blank"
href=
"config/sync.html?#/appid={{pageContext.appId}}&env={{pageContext.env}}&clusterName={{pageContext.clusterName}}&namespaceName={{namespace.namespace.namespaceName}}"
class=
"btn btn-default btn-sm J_tableview_btn"
>
同步
</a>
</div>
</div>
</div>
<div
class=
"col-md-3"
>
<div
class=
"btn-toolbar"
role=
"toolbar"
aria-label=
"..."
>
<div
class=
"btn-group"
role=
"group"
aria-label=
"..."
>
<button
type=
"button"
class=
"btn btn-default btn-sm J_tableview_btn"
...
...
@@ -170,27 +173,27 @@
class=
"btn btn-default btn-sm J_tableview_btn"
ng-click=
"switchView(namespace, 'table')"
>
表格
</button>
<
!--<button type="button"-->
<!--class="btn btn-default btn-sm J_historyview_btn"-->
<!--ng-click="switchView(namespace, 'history')">--
>
<!--更改日志-->
<
!--</button>--
>
<
button
type=
"button"
class=
"btn btn-default btn-sm J_historyview_btn"
ng-click=
"switchView(namespace, 'history')"
>
更改历史
<
/button
>
</div>
</div>
</div>
<div
class=
"col-md-1 text-right"
>
<a
data-to
ggle=
"tooltip"
data-placement=
"top
"
title=
"取消修改"
<a
data-to
oltip=
"tooltip"
data-placement=
"bottom
"
title=
"取消修改"
ng-show=
"namespace.isTextEditing"
ng-click=
"toggleTextEditStatus(namespace)"
>
<span
class=
"glyphicon glyphicon-remove"
aria-hidden=
"true"
></span>
</a>
<a
data-to
ggle=
"tooltip"
data-placement=
"top
"
title=
"修改配置"
<a
data-to
oltip=
"tooltip"
data-placement=
"bottom
"
title=
"修改配置"
ng-show=
"!namespace.isTextEditing && namespace.viewType == 'text'"
ng-click=
"toggleTextEditStatus(namespace)"
>
<span
class=
"glyphicon glyphicon-pencil"
aria-hidden=
"true"
></span>
</a>
<a
data-toggle=
"modal"
data-target=
"#commitModal"
<a
data-tooltip=
"tooltip"
data-placement=
"bottom"
title=
"提交修改"
data-toggle=
"modal"
data-target=
"#commitModal"
ng-show=
"namespace.isTextEditing"
ng-click=
"saveDraft(namespace)"
>
<span
class=
"glyphicon glyphicon-ok"
aria-hidden=
"true"
></span>
</a>
...
...
@@ -199,7 +202,7 @@
</header>
<!--text view-->
<textarea
class=
"form-control"
rows=
"{{namespace.itemCnt}}"
<textarea
class=
"form-control"
rows=
"{{namespace.itemCnt}}"
style=
"border-radius: 0px"
ng-show=
"namespace.viewType == 'text'"
ng-disabled=
"!namespace.isTextEditing"
ng-model=
"namespace.text"
>
{{namespace.text}}
...
...
apollo-portal/src/main/resources/static/scripts/PageCommon.js
浏览文件 @
d5e09898
...
...
@@ -10,3 +10,7 @@ $(document).ready(function () {
zindex
:
'
1000
'
});
});
$
(
function
()
{
$
(
'
[data-toggle="tooltip"]
'
).
tooltip
()
});
apollo-portal/src/main/resources/static/scripts/controller/app/ConfigBaseInfoController.js
浏览文件 @
d5e09898
...
...
@@ -42,7 +42,7 @@ application_module.controller("ConfigBaseInfoController",
navTree
.
push
(
node
);
});
$
(
'
#treeview
'
).
treeview
({
color
:
"
#
428bca
"
,
color
:
"
#
797979
"
,
showBorder
:
true
,
data
:
navTree
,
levels
:
99
,
...
...
apollo-portal/src/main/resources/static/scripts/controller/app/ConfigNamespaceController.js
浏览文件 @
d5e09898
...
...
@@ -33,6 +33,9 @@ application_module.controller("ConfigNamespaceController",
item
.
isTextEditing
=
false
;
});
}
setInterval
(
function
()
{
$
(
'
[data-tooltip="tooltip"]
'
).
tooltip
();
},
2500
);
},
function
(
result
)
{
toastr
.
error
(
AppUtil
.
errorMsg
(
result
),
"
加载配置信息出错
"
);
...
...
apollo-portal/src/main/resources/static/styles/common-style.css
浏览文件 @
d5e09898
...
...
@@ -15,17 +15,17 @@ a {
cursor
:
pointer
;
}
.i-20
{
.i-20
{
height
:
20px
;
width
:
20px
;
}
.i-25-20
{
.i-25-20
{
height
:
20px
;
width
:
25px
;
}
.i-15
{
.i-15
{
height
:
15px
;
width
:
15px
;
}
...
...
@@ -109,6 +109,9 @@ table th {
margin-top
:
20px
;
}
.node-treeview
{
color
:
#797979
;
}
.apps
.apps-description
{
color
:
gray
;
font-family
:
"Apple Color Emoji"
;
...
...
@@ -150,7 +153,6 @@ table th {
#config-info
{
min-height
:
500px
;
/*background-color: #ffffff;*/
}
#config-info
.nav
{
...
...
@@ -182,6 +184,24 @@ table th {
padding-top
:
19px
;
}
.config-item-container
.panel
{
border-radius
:
0px
;
}
.config-item-container
.panel-heading
b
{
font-size
:
18px
;
}
.config-item-container
.panel-heading
.badge
{
padding
:
1px
4px
;
background
:
#ffffff
;
color
:
#0f0f0f
;
}
.config-item-container
.form-control
[
disabled
]
{
background
:
#ffffff
;
border
:
0px
;
}
.config-item-container
.config-items
{
height
:
500px
;
overflow
:
scroll
;
...
...
@@ -195,10 +215,11 @@ table th {
table-layout
:
fixed
;
}
.namespace-view-table
tr
{
.namespace-view-table
tr
{
cursor
:
pointer
;
}
.namespace-view-table
td
{
word-wrap
:
break-word
;
}
...
...
@@ -258,7 +279,7 @@ table th {
padding-bottom
:
4px
;
}
.list-group-item
.btn-title
{
.list-group-item
.btn-title
{
color
:
gray
;
font-family
:
"Apple Color Emoji"
;
font-size
:
16px
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录