add ui config server

This commit is contained in:
加里
2014-09-11 10:22:08 +08:00
parent bc5659b14f
commit b51236d678
14 changed files with 604 additions and 40 deletions

View File

@@ -2,10 +2,13 @@
background: #000;
height: 42px;
position: relative;
-webkit-box-shadow: 0px 3px 23px 0px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0px 3px 23px 0px rgba(50, 50, 50, 0.75);
box-shadow: 0px 3px 23px 0px rgba(50, 50, 50, 0.75);
}
.topHead h1{
color: rgb(204,204,204);
color: #CCCCCC;
display: inline-block;
}
@@ -17,6 +20,17 @@
color: #777;
}
.ruleDesc{
background: #88C4FE;
border-bottom: 1px solid #333;
}
.ruleDesc h4{
color: #333;
line-height: 25px;
margin: 0;
}
.mainTableWrapper{
margin-top: 0;
}

3
web/footer.html Normal file
View File

@@ -0,0 +1,3 @@
</body>
</html>

2
web/header.html Normal file
View File

@@ -0,0 +1,2 @@

View File

@@ -5,6 +5,8 @@
<link rel="stylesheet" href="/css/uikit.gradient.min.css" />
<link rel="stylesheet" href="/css/page.css" />
<link rel="icon" type="image/png" href="/favico.png" />
<script charset="utf-8" id="seajsnode"src="http://static.alipayobjects.com/seajs/??seajs/2.2.0/sea.js,seajs-combo/1.0.1/seajs-combo.js,seajs-style/1.0.2/seajs-style.js"></script>
</head>
<body>
<div class="topHead">
@@ -12,8 +14,11 @@
<a href="#" class="J_clearBtn"><span class="topBtn">Clear Logs(Ctrl+X)</span></a>
<a href="#" class="J_statusBtn"><span class="topBtn">Stop</span></a>
<a href="#" class="J_statusBtn btn_disable"><span class="topBtn">Resume</span></a>
<a href="http://localhost:8080"><span class="topBtn">Config Local Response(beta)</span></a>
</div>
<div class="ruleDesc">
<h4>rule : <strong>{{rule}}</strong></h4>
</div>
<div class="mainTableWrapper J_mainTable">
<table class="uk-table uk-table-condensed uk-table-hover">
<thead>
@@ -90,8 +95,7 @@
<% } %>
</script>
<script charset="utf-8" id="seajsnode"src="http://static.alipayobjects.com/seajs/??seajs/2.2.0/sea.js,seajs-combo/1.0.1/seajs-combo.js,seajs-style/1.0.2/seajs-style.js"></script>
<script src="/page.js"></script>
</body>
</html>
</html>

View File

@@ -1,11 +1,11 @@
seajs.config({
base: 'http://static.alipayobjects.com/',
alias: {
'$' : 'jquery/jquery/1.7.2/jquery',
'Backbone' : 'gallery/backbone/1.1.2/backbone.js',
'Underscore': 'gallery/underscore/1.6.0/underscore.js'
}
});
base: 'http://static.alipayobjects.com/',
alias: {
'$' : 'jquery/jquery/1.7.2/jquery',
'Backbone' : 'gallery/backbone/1.1.2/backbone.js',
'Underscore': 'gallery/underscore/1.6.0/underscore.js'
}
});
seajs.use(['$','Underscore' ,'Backbone'], function($, _, Backbone) {
Backbone.$ = $;