Authored by mlge

no message

package com.ui.ctrl;
import com.ui.http.HttpRestClient;
import com.ui.model.BaseResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
@RequestMapping("dashboard")
public class DashboardCtrl {
@Autowired
private HttpRestClient httpClient;
@RequestMapping("/toDashboard")
public ModelAndView toDashboard() {
public ModelAndView toDashboard(Model model) {
BaseResponse response=httpClient.defaultGet("/dashboardPortal/queryAll", BaseResponse.class);
if(response!=null&&response.getCode()==200){
model.addAttribute("portalMap",response.getData());
}
return new ModelAndView("dashBoard/dashBoard");
}
... ...
... ... @@ -67,266 +67,38 @@
<div class="widget-box">
<div class="row">
<%--<div class="col-sm-6 col-md-4 col-lg-3 ">
<div class="thumbnail">
<div style="width:90%;height:150px;background-color: rebeccapurple;margin:0 auto;" class="jumbotron">
<h2 style="color:white">运维相关系统</h2>
</div>
<div class="caption">
<h3>
开发运维监控信息
</h3>
<p><a href="http://dev.yohops.com" target="_blank">http://dev.yohops.com</a></p>
<br>
<h3>
grafana指标
</h3>
<p><a href="http://g.yohops.com" target="_blank">http://g.yohops.com</a></p>
<br>
<h3>
zookeeper
</h3>
<p><a href="http://zk.yohops.com" target="_blank">http://zk.yohops.com</a></p>
<br>
<h3>
hystrix监控
</h3>
<p><a href="http://www.yohops.com/hystrix/aws" target="_blank">http://www.yohops.com/hystrix/aws</a></p>
<p><a href="http://www.yohops.com/hystrix/qcloud" target="_blank">http://www.yohops.com/hystrix/qcloud</a></p>
<br>
<h3>
微服务监控
</h3>
<p><a href="http://aws-monitor.yohops.com/" target="_blank">http://aws-monitor.yohops.com</a></p>
<p><a href="http://qq-monitor.yohops.com" target="_blank">http://qq-monitor.yohops.com</a></p>
<br>
<h3>
rabbitmq
</h3>
<p>aws交易&nbsp;<a href="http://rabbit-aws.yohops.com/" target="_blank">http://rabbit-aws.yohops.com</a></p>
<p>aws通用&nbsp;<a href="http://rabbit-aws-common.yohops.com/" target="_blank">http://rabbit-aws-common.yohops.com</a></p>
<p>qq交易&nbsp;&nbsp;&nbsp;<a href="http://rabbit-qq.yohops.com/" target="_blank">http://rabbit-qq.yohops.com</a></p>
<p>qq通用&nbsp;&nbsp;&nbsp;<a href="http://rabbit-qq-common.yohops.com/" target="_blank">http://rabbit-qq-common.yohops.com</a></p>
<p>crm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://rabbitmq-crm.yohops.com" target="_blank">http://rabbitmq-crm.yohops.com</a></p>
<br>
</div>
</div>
</div>--%>
<c:forEach items="${portalMap}" var="m" varStatus="mq">
<div class="col-sm-12 col-md-6 col-lg-4 ">
<div class="thumbnail" style="height:860px;">
<div style="width:90%;height:150px;background-color: rebeccapurple;margin:0 auto;" class="jumbotron">
<h2 style="color:white">运维相关系统</h2>
<div class="thumbnail" style="height:780px;">
<div style="width:90%;height:150px;
<c:if test="${mq.index == 0}">background-color: rebeccapurple;</c:if>
<c:if test="${mq.index == 1}">background-color: #0C5F61;</c:if>
<c:if test="${mq.index == 2}">background-color: #82BD4A;</c:if>
margin:0 auto;" class="jumbotron">
<h2 style="color:white">${m.key}</h2>
</div>
<div class="caption">
<h3>
开发运维监控信息
</h3>
<p><a href="http://dev.yohops.com" target="_blank">http://dev.yohops.com</a></p>
<h3>
grafana指标
</h3>
<p><a href="http://g.yohops.com" target="_blank">http://g.yohops.com</a></p>
<h3>
zookeeper
</h3>
<p><a href="http://zk.yohops.com" target="_blank">http://zk.yohops.com</a></p>
<h3>
hystrix监控
</h3>
<p><a href="http://www.yohops.com/hystrix/aws" target="_blank">http://www.yohops.com/hystrix/aws</a></p>
<p><a href="http://www.yohops.com/hystrix/qcloud" target="_blank">http://www.yohops.com/hystrix/qcloud</a></p>
<h3>
rabbitmq
</h3>
<p>aws交易&nbsp;<a href="http://rabbit-aws.yohops.com/" target="_blank">http://rabbit-aws.yohops.com</a></p>
<p>aws通用&nbsp;<a href="http://rabbit-aws-common.yohops.com/" target="_blank">http://rabbit-aws-common.yohops.com</a></p>
<p>qq交易&nbsp;&nbsp;&nbsp;<a href="http://rabbit-qq.yohops.com/" target="_blank">http://rabbit-qq.yohops.com</a></p>
<p>qq通用&nbsp;&nbsp;&nbsp;<a href="http://rabbit-qq-common.yohops.com/" target="_blank">http://rabbit-qq-common.yohops.com</a></p>
<p>crm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://rabbitmq-crm.yohops.com" target="_blank">http://rabbitmq-crm.yohops.com</a></p>
<c:forEach items="${m.value}" var="portalSecondMap">
<h3>
${portalSecondMap.key}
</h3>
<c:forEach items="${portalSecondMap.value}" var="portal">
<p>
<c:if test="${portal.text!=null && portal.text !=''}">
<span>${portal.text}</span>
</c:if>
<a href="${portal.link}" target="_blank">${portal.link}</a></p>
</c:forEach>
</c:forEach>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-4 ">
<div class="thumbnail" style="height:860px;">
<div style="width:90%;height:150px;background-color:#0C5F61;margin:0 auto; " class="jumbotron">
<h2 style="color:white">开发相关系统</h2>
</div>
<div class="caption">
<h3>
研发管理系统
</h3>
<p><a href="http://qmc.yohops.com" target="_blank">http://qmc.yohops.com</a></p>
<h3>
APP日志查询
</h3>
<p><a href="http://alog.yohops.com/" target="_blank">http://alog.yohops.com</a></p>
<h3>
YOHO接口文档
</h3>
<p><a href="http://apidoc.yohops.com/" target="_blank">http://apidoc.yohops.com</a></p>
<h3>
YOHO!任务调度
</h3>
<p><a href="http://new0schedule.yohops.com/sched-web/login.jsp" target="_blank">http://new0schedule.yohops.com/sched-web/login.jsp</a></p>
<h3>
confluence
</h3>
<p><a href="http://wiki.yohocorp.com" target="_blank">http://wiki.yohocorp.com</a></p>
<h3>
superset
</h3>
<p><a href="http://superset.yohops.com/login/" target="_blank">http://superset.yohops.com/login/</a></p>
<h3>
biee
</h3>
<p><a href="http://data.yoho.cn/analytics/saw.dll?bieehome" target="_blank">http://data.yoho.cn/analytics/saw.dll?bieehome</a></p>
<h3>
redmine
</h3>
<p><a href="http://redmine.yoho.cn/" target="_blank">http://redmine.yoho.cn</a></p>
<h3>
nexus
</h3>
<p><a href="http://192.168.102.168:18081/nexus/#welcome" target="_blank">http://192.168.102.168:18081/nexus/</a></p>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-4 ">
<div class="thumbnail" style="height:650px;">
<div style="width:90%;height:150px;background-color:#82BD4A;margin:0 auto; " class="jumbotron">
<h2 style="color:white">公司相关系统</h2>
</div>
<div class="caption">
<h3>
OA
</h3>
<p><a href="http://oa.yoho.cn:8090" target="_blank">http://oa.yoho.cn:8090</a></p>
<h3>
IT网
</h3>
<p><a href="http://yoho.yohocorp.com/" target="_blank">http://yoho.yohocorp.com/</a></p>
</div>
</div>
</div>
</c:forEach>
</div>
<%--<div class="panel panel-danger">
<div class="panel-heading">
<h3 class="panel-title">Panel title</h3>
</div>
<div class="panel-body">
<div class="jumbotron">
<a class="btn btn-primary btn-lg" style="margin:10px;" href="#" role="button">Learn more</a>
<a class="btn btn-primary btn-lg" style="margin:10px;" href="#" role="button">Learn more2</a>
<a class="btn btn-primary btn-lg" style="margin:10px;" href="#" role="button">Learn more3</a>
<a class="btn btn-primary btn-lg" style="margin:10px;" href="#" role="button">Learn more4</a>
</div>
</div>
&lt;%&ndash;<div class="panel-footer">Panel footer</div>&ndash;%&gt;
</div>--%>
<%--<div class="panel panel-primary">...</div>
<div class="panel panel-success">...</div>
<div class="panel panel-info">...</div>
<div class="panel panel-warning">...</div>
<div class="panel panel-danger">...</div>--%>
<%--<div class="col-lg-3 col-md-6" style="margin-top: 45px; width: 33.3%;">
<div class="panel panel-primary">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3" style="margin-left: 25px;">
<i class="fa fa-globe fa-5x"></i>
</div>
<div class="col-xs-9 text-right" style="width: 250px;margin-left: 25px;">
<div>rabbitmq dashboard</div>
</div>
</div>
</div>
<a href="http://rabbit-aws.yohops.com/" target="_blank">
<div class="panel-footer">
<span class="pull-left">aws交易</span> <span class="pull-right"><i
class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>
</div>
</a> <a href="http://rabbit-aws-common.yohops.com/" target="_blank">
<div class="panel-footer">
<span class="pull-left">aws通用</span> <span class="pull-right"><i
class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>
</div>
</a> <a href="http://rabbit-qq.yohops.com/" target="_blank">
<div class="panel-footer">
<span class="pull-left">qq交易</span> <span class="pull-right"><i
class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>
</div>
</a> <a href="http://rabbit-qq-common.yohops.com/" target="_blank">
<div class="panel-footer">
<span class="pull-left">qq通用</span> <span class="pull-right"><i
class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>
</div>
</a>
<a href="http://rabbitmq-crm.yohops.com" target="_blank">
<div class="panel-footer">
<span class="pull-left">crm</span> <span class="pull-right"><i
class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>
</div>
</a>
</div>
</div>--%>
</div>
</div>
... ...
... ... @@ -250,7 +250,8 @@
if(rowContent){
var annoteTypeNum=rowContent.indexOf("--");
if(annoteTypeNum>0){
newArry.push(rowContent.substr(0,annoteTypeNum));
// newArry.push(rowContent.substr(0,annoteTypeNum));
newArry.push(rowContent);
}else if(annoteTypeNum==0){
//去掉
}else{
... ...