Skip to content

Commit

Permalink
完成一个可供使用的微博版本。
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangJingTao committed Jun 5, 2015
1 parent dda0e21 commit 420e9df
Show file tree
Hide file tree
Showing 7 changed files with 674 additions and 23 deletions.
2 changes: 1 addition & 1 deletion grails-app/controllers/WeiboController.groovy
Expand Up @@ -119,7 +119,7 @@ class WeiboController {
}
if (passed){
def access_token = wu.accessToken
def map = [access_token:access_token,feature:feature]
def map = [access_token:access_token,feature:feature,count:count,page:page]
def result = ""
try {
result = weiboHttpsService.get(host,uri,map)
Expand Down
1 change: 1 addition & 0 deletions grails-app/services/CookieService.groovy
Expand Up @@ -24,6 +24,7 @@ class CookieService {

def setCookie(String name,String value,HttpServletResponse response){
Cookie cookie = new Cookie(name,value);
cookie.setMaxAge(86400)
response.addCookie(cookie);
}
}
6 changes: 5 additions & 1 deletion grails-app/views/layouts/main.gsp
Expand Up @@ -106,7 +106,7 @@
<i class="fa fa-bars"></i>
</button>
<a class="navbar-brand page-scroll" href="#page-top">
<i class="fa fa-play-circle"></i> <span class="light">Start</span> Toy
<i class="fa fa-play-circle"></i> <span class="light">Start</span>
</a>
</div>

Expand Down Expand Up @@ -202,6 +202,10 @@
<span class="badge">2015-05-26</span>
Git Webhooks服务,Git代码更新自动同步到本站!
</li>
<li class="list-group-item">
<span class="badge">2015-05-20</span>
<a href="/weibo">Sleep微博服务</a>,不断完善中。
</li>
</ul>
</div>
</div>
Expand Down
34 changes: 19 additions & 15 deletions grails-app/views/weibo/home.gsp
Expand Up @@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>SleepWeibo:Burn After Reading</title>
<title>SleepWeibo 0.1</title>
<!-- jQuery -->
<script src="/main/js/jquery.js"></script>
<script src="/js/masonry.pkgd.min.js"></script>
Expand All @@ -23,29 +23,33 @@
<script src="/js/responsive/responsive-nav.min.js"></script>
<link href="/css/responsive/responsive-nav.css" rel="stylesheet">
<link href="/css/doc.min.css" rel="stylesheet">
<script src="/js/jquery.slides.js"></script>

<script src="/js/weibo.js"></script>
<link href="/css/weibo.css" rel="stylesheet">
</head>

<body>
<div class="border" id="home"></div>

<div class="wrapper">
<div id="nav">
<ul>
<li class="active"><a href="home">首页</a></li>
<li><a href="#features">收藏</a></li>
<li><a href="#">关于</a></li>
</ul>
</div>
<a href="#nav-toggle" id="nav-toggle" aria-hidden="false">Menu</a>
</div>

<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="col-md-12" style="z-index: 99999">
<div class="wrapper">
<div id="nav">
<ul>
<li class="active"><a href="home">首页</a></li>
<li><a href="#features">收藏</a></li>
<li><a href="#">关于</a></li>
</ul>
</div>
<br>
<a href="#nav-toggle" id="nav-toggle" aria-hidden="false">Menu</a>
</div>
</div>
<br>
<div class="col-md-8 col-md-offset-2" style="z-index: 100">
<input type="hidden" id="scope" value="0">
<ul class="nav nav-tabs">
<ul class="nav nav-tabs" style="z-index: 100">
<li role="presentation" class="active" id="nav0"><a href="#">全部</a></li>
<li role="presentation" id="nav1"><a href="#">原创</a></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion web-app/css/nav.css

Large diffs are not rendered by default.

0 comments on commit 420e9df

Please sign in to comment.