Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦中观雨
cat
提交
d4331f2b
C
cat
项目概览
梦中观雨
/
cat
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
cat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d4331f2b
编写于
7月 21, 2014
作者:
Y
youyong205
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify the cat tab nav
上级
7d88b750
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
52 addition
and
51 deletion
+52
-51
cat-home/src/main/java/com/dianping/cat/report/ReportPage.java
...ome/src/main/java/com/dianping/cat/report/ReportPage.java
+6
-6
cat-home/src/main/java/com/dianping/cat/report/view/NavigationBar.java
...main/java/com/dianping/cat/report/view/NavigationBar.java
+11
-8
cat-home/src/main/java/com/dianping/cat/system/SystemPage.java
...ome/src/main/java/com/dianping/cat/system/SystemPage.java
+2
-2
cat-home/src/main/resources/META-INF/wizard/webapp/wizard.xml
...home/src/main/resources/META-INF/wizard/webapp/wizard.xml
+9
-9
cat-home/src/main/resources/chrome/cat/cat.js
cat-home/src/main/resources/chrome/cat/cat.js
+1
-1
cat-home/src/main/webapp/WEB-INF/tags/body.tag
cat-home/src/main/webapp/WEB-INF/tags/body.tag
+23
-15
cat-home/src/main/webapp/jsp/report/bug/bug.jsp
cat-home/src/main/webapp/jsp/report/bug/bug.jsp
+0
-1
cat-home/src/main/webapp/jsp/report/bug/bugHistory.jsp
cat-home/src/main/webapp/jsp/report/bug/bugHistory.jsp
+0
-1
cat-home/src/main/webapp/jsp/report/exceptionAlert/alert.jsp
cat-home/src/main/webapp/jsp/report/exceptionAlert/alert.jsp
+0
-1
cat-home/src/main/webapp/jsp/report/exceptionAlert/alertHistory.jsp
...rc/main/webapp/jsp/report/exceptionAlert/alertHistory.jsp
+0
-1
cat-home/src/main/webapp/jsp/report/heavy/heavy.jsp
cat-home/src/main/webapp/jsp/report/heavy/heavy.jsp
+0
-1
cat-home/src/main/webapp/jsp/report/heavy/heavyHistory.jsp
cat-home/src/main/webapp/jsp/report/heavy/heavyHistory.jsp
+0
-1
cat-home/src/main/webapp/jsp/report/service/service.jsp
cat-home/src/main/webapp/jsp/report/service/service.jsp
+0
-1
cat-home/src/main/webapp/jsp/report/service/serviceHistory.jsp
...ome/src/main/webapp/jsp/report/service/serviceHistory.jsp
+0
-1
cat-home/src/main/webapp/jsp/report/summary/summary.jsp
cat-home/src/main/webapp/jsp/report/summary/summary.jsp
+0
-1
cat-home/src/main/webapp/jsp/report/top/top.jsp
cat-home/src/main/webapp/jsp/report/top/top.jsp
+0
-1
未找到文件。
cat-home/src/main/java/com/dianping/cat/report/ReportPage.java
浏览文件 @
d4331f2b
...
...
@@ -21,7 +21,7 @@ public enum ReportPage implements Page {
DASHBOARD
(
"dashboard"
,
"dashboard"
,
"Dashboard"
,
"Dashboard"
,
false
),
MATRIX
(
"matrix"
,
"matrix"
,
"Matrix"
,
"Matrix"
,
tru
e
),
MATRIX
(
"matrix"
,
"matrix"
,
"Matrix"
,
"Matrix"
,
fals
e
),
CROSS
(
"cross"
,
"cross"
,
"Cross"
,
"Cross"
,
true
),
...
...
@@ -37,19 +37,19 @@ public enum ReportPage implements Page {
EXTERNALERROR
(
"externalError"
,
"externalError"
,
"externalError"
,
"ExternalError"
,
true
),
STATISTICS
(
"statistics"
,
"statistics"
,
"Statistics"
,
"Statistics"
,
tru
e
),
STATISTICS
(
"statistics"
,
"statistics"
,
"Statistics"
,
"Statistics"
,
fals
e
),
ALTERATION
(
"alteration"
,
"alteration"
,
"Change"
,
"Alteration"
,
tru
e
),
ALTERATION
(
"alteration"
,
"alteration"
,
"Change"
,
"Alteration"
,
fals
e
),
MONITOR
(
"monitor"
,
"monitor"
,
"Monitor"
,
"Monitor"
,
true
),
NETWORK
(
"network"
,
"network"
,
"Network"
,
"Network"
,
tru
e
),
NETWORK
(
"network"
,
"network"
,
"Network"
,
"Network"
,
fals
e
),
USERMONITOR
(
"userMonitor"
,
"userMonitor"
,
"Monitor"
,
"UserMonitor"
,
true
),
SYSTEM
(
"system"
,
"system"
,
"System"
,
"System"
,
tru
e
),
SYSTEM
(
"system"
,
"system"
,
"System"
,
"System"
,
fals
e
),
CDN
(
"cdn"
,
"cdn"
,
"Cdn"
,
"Cdn"
,
tru
e
),
CDN
(
"cdn"
,
"cdn"
,
"Cdn"
,
"Cdn"
,
fals
e
),
APP
(
"app"
,
"app"
,
"App"
,
"App"
,
true
),
...
...
cat-home/src/main/java/com/dianping/cat/report/view/NavigationBar.java
浏览文件 @
d4331f2b
...
...
@@ -24,9 +24,9 @@ public class NavigationBar {
ReportPage
.
METRIC
,
ReportPage
.
USERMONITOR
,
ReportPage
.
APP
,
ReportPage
.
TRANSACTION
,
ReportPage
.
EVENT
,
...
...
@@ -39,10 +39,12 @@ public class NavigationBar {
ReportPage
.
CACHE
,
ReportPage
.
MATRIX
,
ReportPage
.
DEPENDENCY
,
ReportPage
.
STATE
,
ReportPage
.
MATRIX
,
ReportPage
.
NETWORK
,
ReportPage
.
CDN
,
...
...
@@ -51,11 +53,12 @@ public class NavigationBar {
ReportPage
.
ALTERATION
,
ReportPage
.
STATE
,
ReportPage
.
STATISTICS
,
SystemPage
.
ALARM
,
ReportPage
.
LOGVIEW
,
};
SystemPage
.
CONFIG
,
ReportPage
.
LOGVIEW
,
};
}
}
cat-home/src/main/java/com/dianping/cat/system/SystemPage.java
浏览文件 @
d4331f2b
...
...
@@ -5,11 +5,11 @@ import org.unidal.web.mvc.annotation.ModuleMeta;
public
enum
SystemPage
implements
Page
{
ALARM
(
"alarm"
,
"alarm"
,
"Alarm"
,
"Alarm"
,
tru
e
),
ALARM
(
"alarm"
,
"alarm"
,
"Alarm"
,
"Alarm"
,
fals
e
),
LOGIN
(
"login"
,
"login"
,
"Login"
,
"Login"
,
false
),
CONFIG
(
"config"
,
"config"
,
"Config"
,
"Config"
,
tru
e
),
CONFIG
(
"config"
,
"config"
,
"Config"
,
"Config"
,
fals
e
),
PLUGIN
(
"plugin"
,
"plugin"
,
"Plugin"
,
"Plugin"
,
true
);
...
...
cat-home/src/main/resources/META-INF/wizard/webapp/wizard.xml
浏览文件 @
d4331f2b
...
...
@@ -26,7 +26,7 @@
<page
name=
"dashboard"
title=
"Dashboard"
path=
"dashboard"
standalone=
"false"
>
<description>
Dashboard
</description>
</page>
<page
name=
"matrix"
title=
"Matrix"
path=
"matrix"
view=
"/jsp/report/matrix/matrix.jsp"
>
<page
name=
"matrix"
title=
"Matrix"
path=
"matrix"
view=
"/jsp/report/matrix/matrix.jsp"
standalone=
"false"
>
<description>
Matrix
</description>
</page>
<page
name=
"cross"
title=
"Cross"
path=
"cross"
view=
"/jsp/report/cross/cross.jsp"
>
...
...
@@ -35,7 +35,7 @@
<page
name=
"cache"
title=
"Cache"
path=
"cache"
view=
"/jsp/report/cache/cache.jsp"
>
<description>
Cache
</description>
</page>
<page
name=
"state"
title=
"State"
path=
"state"
view=
"/jsp/report/state/state.jsp"
>
<page
name=
"state"
title=
"State"
path=
"state"
view=
"/jsp/report/state/state.jsp"
standalone=
"false"
>
<description>
State
</description>
</page>
<page
name=
"top"
title=
"Top"
path=
"top"
view=
"/jsp/report/top/top.jsp"
>
...
...
@@ -50,25 +50,25 @@
<page
name=
"externalError"
title=
"externalError"
path=
"externalError"
template=
"default"
>
<description>
ExternalError
</description>
</page>
<page
name=
"statistics"
title=
"Statistics"
path=
"statistics"
view=
"/jsp/report/bug/bug.jsp"
template=
"default"
>
<page
name=
"statistics"
title=
"Statistics"
path=
"statistics"
view=
"/jsp/report/bug/bug.jsp"
template=
"default"
standalone=
"false"
>
<description>
Statistics
</description>
</page>
<page
name=
"alteration"
title=
"Change"
path=
"alteration"
template=
"default"
>
<page
name=
"alteration"
title=
"Change"
path=
"alteration"
template=
"default"
standalone=
"false"
>
<description>
Alteration
</description>
</page>
<page
name=
"monitor"
title=
"Monitor"
path=
"monitor"
template=
"default"
>
<description>
Monitor
</description>
</page>
<page
name=
"network"
title=
"Network"
path=
"network"
template=
"default"
>
<page
name=
"network"
title=
"Network"
path=
"network"
template=
"default"
standalone=
"false"
>
<description>
Network
</description>
</page>
<page
name=
"userMonitor"
title=
"Monitor"
path=
"userMonitor"
template=
"default"
>
<description>
UserMonitor
</description>
</page>
<page
name=
"system"
title=
"System"
path=
"system"
template=
"default"
>
<page
name=
"system"
title=
"System"
path=
"system"
template=
"default"
standalone=
"false"
>
<description>
System
</description>
</page>
<page
name=
"cdn"
title=
"Cdn"
path=
"cdn"
template=
"default"
>
<page
name=
"cdn"
title=
"Cdn"
path=
"cdn"
template=
"default"
standalone=
"false"
>
<description>
Cdn
</description>
</page>
<page
name=
"app"
title=
"App"
path=
"app"
template=
"default"
>
...
...
@@ -76,13 +76,13 @@
</page>
</module>
<module
name=
"system"
path=
"s"
default=
"false"
>
<page
name=
"alarm"
title=
"Alarm"
default=
"true"
path=
"alarm"
view=
"/jsp/system/alarm/alarm.jsp"
>
<page
name=
"alarm"
title=
"Alarm"
default=
"true"
path=
"alarm"
view=
"/jsp/system/alarm/alarm.jsp"
standalone=
"false"
>
<description>
Alarm
</description>
</page>
<page
name=
"login"
title=
"Login"
default=
"true"
path=
"login"
standalone=
"false"
>
<description>
Login
</description>
</page>
<page
name=
"config"
title=
"Config"
path=
"config"
view=
"/jsp/system/project/project.jsp"
>
<page
name=
"config"
title=
"Config"
path=
"config"
view=
"/jsp/system/project/project.jsp"
standalone=
"false"
>
<description>
Config
</description>
</page>
<page
name=
"plugin"
title=
"Plugin"
path=
"plugin"
view=
"/jsp/system/plugin/plugin.jsp"
>
...
...
cat-home/src/main/resources/chrome/cat/cat.js
浏览文件 @
d4331f2b
...
...
@@ -69,7 +69,7 @@ function TabManager() {
var
value
=
headers
[
i
][
"
value
"
];
console
.
debug
(
"
\t
"
+
name
+
"
:
"
+
value
);
}
if
(
tabId
<=
0
)
{
if
(
tabId
<=
0
)
{
return
;
}
...
...
cat-home/src/main/webapp/WEB-INF/tags/body.tag
浏览文件 @
d4331f2b
...
...
@@ -18,26 +18,18 @@
<res:useCss
value=
'${res.css.local.tiny_css}'
media=
"screen and (max-width: 1050px)"
target=
"head-css"
/>
<res:useCss
value=
'${res.css.local.large_css}'
media=
"screen and (min-width: 1050px)"
target=
"head-css"
/>
</head>
<body>
<div
class=
"navbar navbar-inverse"
>
<div
class=
"navbar-inner"
>
<div
class=
"container-fluid"
>
<a
class=
"brand"
href=
"/cat/r/home?domain=${model.domain}&ip=${model.ipAddress}&date=${model.date}&reportType=${payload.reportType}&op=${payload.action.name}"
>
CAT
</a>
<a
class=
"brand"
style=
"padding-right:20px"
href=
"/cat/r/home?domain=${model.domain}&ip=${model.ipAddress}&date=${model.date}&reportType=${payload.reportType}&op=${payload.action.name}"
>
CAT
</a>
<div
class=
"nav-collapse collapse"
>
<div
class=
"nav pull-right"
>
<c:forEach
var=
"page"
items=
"${navBar.systemPages}"
>
<c:if
test=
"${page.standalone}"
>
<li
${
model.page.name =
=
page.name
?
'
class=
"active"
'
:
''}
><a
href=
"${model.webapp}/${page.moduleName}/${page.path}"
>
${page.title}
</a></li>
</c:if>
<c:if
test=
"${not page.standalone and model.page.name == page.name}"
>
<li
class=
"active"
><a
href=
"#"
>
${page.title}
</a></li>
</c:if>
</c:forEach>
<div
class=
"nav pull-right"
>
<li
id=
"loginInfo"
></li>
</div>
<ul
class=
"nav"
>
<ul
class=
"nav"
>
<c:forEach
var=
"page"
items=
"${navBar.visiblePages}"
>
<c:if
test=
"${page.standalone}"
>
<li
${
model.page.name =
=
page.name
?
'
class=
"active"
'
:
''}
><a
...
...
@@ -48,7 +40,23 @@
<li
class=
"active"
><a
href=
"#"
>
${page.title}
</a></li>
</c:if>
</c:forEach>
</ul>
</ul>
<ul
class=
"nav"
>
<li
class=
"dropdown"
><a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Other
<b
class=
"caret"
></b></a>
<ul
class=
"dropdown-menu"
>
<li
class=
"nav-header"
>
Report
</li>
<li><a
style=
"padding:3px 30px"
href=
"/cat/r/matrix?domain=${model.domain}&ip=${model.ipAddress}&date=${model.date}&reportType=${payload.reportType}&op=${payload.action.name}"
>
matrix
</a></li>
<li><a
style=
"padding:3px 30px"
href=
"/cat/r/network?domain=${model.domain}&ip=${model.ipAddress}&date=${model.date}&reportType=${payload.reportType}&op=${payload.action.name}"
>
network
</a></li>
<li><a
style=
"padding:3px 30px"
href=
"/cat/r/cdn?domain=${model.domain}&ip=${model.ipAddress}&date=${model.date}&reportType=${payload.reportType}&op=${payload.action.name}"
>
cdn
</a></li>
<li><a
style=
"padding:3px 30px"
href=
"/cat/r/system?domain=${model.domain}&ip=${model.ipAddress}&date=${model.date}&reportType=${payload.reportType}&op=${payload.action.name}"
>
system
</a></li>
<li><a
style=
"padding:3px 30px"
href=
"/cat/r/change?domain=${model.domain}&ip=${model.ipAddress}&date=${model.date}&reportType=${payload.reportType}&op=${payload.action.name}"
>
change
</a></li>
<li><a
style=
"padding:3px 30px"
href=
"/cat/r/statistics?domain=${model.domain}&ip=${model.ipAddress}&date=${model.date}&reportType=${payload.reportType}&op=${payload.action.name}"
>
statistics
</a></li>
<li
class=
"nav-header"
>
System
</li>
<li><a
style=
"padding:3px 30px"
href=
"/cat/s/alarm?domain=${model.domain}&ip=${model.ipAddress}&date=${model.date}&reportType=${payload.reportType}&op=${payload.action.name}"
>
alarm
</a></li>
<li><a
style=
"padding:3px 30px"
href=
"/cat/s/config?domain=${model.domain}&ip=${model.ipAddress}&date=${model.date}&reportType=${payload.reportType}&op=${payload.action.name}"
>
config
</a></li>
</ul>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</div>
...
...
cat-home/src/main/webapp/jsp/report/bug/bug.jsp
浏览文件 @
d4331f2b
...
...
@@ -9,7 +9,6 @@
<a:body>
<res:useCss
value=
'
${
res
.
css
.
local
.
table_css
}
'
target=
"head-css"
/>
<res:useJs
value=
"
${
res
.
js
.
local
[
'bootstrap.min.js'
]
}
"
target=
"head-js"
/>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
...
...
cat-home/src/main/webapp/jsp/report/bug/bugHistory.jsp
浏览文件 @
d4331f2b
...
...
@@ -9,7 +9,6 @@
<a:body>
<res:useCss
value=
'
${
res
.
css
.
local
.
table_css
}
'
target=
"head-css"
/>
<res:useJs
value=
"
${
res
.
js
.
local
[
'bootstrap.min.js'
]
}
"
target=
"head-js"
/>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
'
#bug
'
).
addClass
(
'
active
'
);
...
...
cat-home/src/main/webapp/jsp/report/exceptionAlert/alert.jsp
浏览文件 @
d4331f2b
...
...
@@ -9,7 +9,6 @@
<a:body>
<res:useCss
value=
'
${
res
.
css
.
local
.
table_css
}
'
target=
"head-css"
/>
<res:useJs
value=
"
${
res
.
js
.
local
[
'bootstrap.min.js'
]
}
"
target=
"head-js"
/>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
'
#alert
'
).
addClass
(
'
active
'
);
...
...
cat-home/src/main/webapp/jsp/report/exceptionAlert/alertHistory.jsp
浏览文件 @
d4331f2b
...
...
@@ -9,7 +9,6 @@
<a:body>
<res:useCss
value=
'
${
res
.
css
.
local
.
table_css
}
'
target=
"head-css"
/>
<res:useJs
value=
"
${
res
.
js
.
local
[
'bootstrap.min.js'
]
}
"
target=
"head-js"
/>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
'
#alert
'
).
addClass
(
'
active
'
);
...
...
cat-home/src/main/webapp/jsp/report/heavy/heavy.jsp
浏览文件 @
d4331f2b
...
...
@@ -9,7 +9,6 @@
<a:body>
<res:useCss
value=
'
${
res
.
css
.
local
.
table_css
}
'
target=
"head-css"
/>
<res:useJs
value=
"
${
res
.
js
.
local
[
'bootstrap.min.js'
]
}
"
target=
"head-js"
/>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
...
...
cat-home/src/main/webapp/jsp/report/heavy/heavyHistory.jsp
浏览文件 @
d4331f2b
...
...
@@ -9,7 +9,6 @@
<a:body>
<res:useCss
value=
'
${
res
.
css
.
local
.
table_css
}
'
target=
"head-css"
/>
<res:useJs
value=
"
${
res
.
js
.
local
[
'bootstrap.min.js'
]
}
"
target=
"head-js"
/>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
'
#heavy
'
).
addClass
(
'
active
'
);
...
...
cat-home/src/main/webapp/jsp/report/service/service.jsp
浏览文件 @
d4331f2b
...
...
@@ -9,7 +9,6 @@
<a:body>
<res:useCss
value=
'
${
res
.
css
.
local
.
table_css
}
'
target=
"head-css"
/>
<res:useJs
value=
"
${
res
.
js
.
local
[
'bootstrap.min.js'
]
}
"
target=
"head-js"
/>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
...
...
cat-home/src/main/webapp/jsp/report/service/serviceHistory.jsp
浏览文件 @
d4331f2b
...
...
@@ -9,7 +9,6 @@
<a:body>
<res:useCss
value=
'
${
res
.
css
.
local
.
table_css
}
'
target=
"head-css"
/>
<res:useJs
value=
"
${
res
.
js
.
local
[
'bootstrap.min.js'
]
}
"
target=
"head-js"
/>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
...
...
cat-home/src/main/webapp/jsp/report/summary/summary.jsp
浏览文件 @
d4331f2b
...
...
@@ -9,7 +9,6 @@
<a:body>
<res:useCss
value=
'
${
res
.
css
.
local
.
table_css
}
'
target=
"head-css"
/>
<res:useJs
value=
"
${
res
.
js
.
local
[
'bootstrap.min.js'
]
}
"
target=
"head-js"
/>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
'
#summary
'
).
addClass
(
'
active
'
);
...
...
cat-home/src/main/webapp/jsp/report/top/top.jsp
浏览文件 @
d4331f2b
...
...
@@ -18,7 +18,6 @@
</style>
<a:body>
<res:useCss
value=
'
${
res
.
css
.
local
.
table_css
}
'
target=
"head-css"
/>
<res:useJs
value=
"
${
res
.
js
.
local
[
'bootstrap.min.js'
]
}
"
target=
"head-js"
/>
<div
class=
"report"
>
<table
class=
"header"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录