Skip to content

Commit

Permalink
update screenshot & tweak index-page
Browse files Browse the repository at this point in the history
  • Loading branch information
nomospace committed Oct 3, 2012
1 parent 30bbe01 commit 694c52a
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion controllers/inbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var imap, mailObject = {};

var inboxPage;

emitter.setMaxListeners(0);
emitter.setMaxListeners(100);
moment.lang('zh-cn');

emitter.on('messages', function(res) {
Expand Down
3 changes: 3 additions & 0 deletions controllers/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function(req, res) {
res.partial('../README.md');
};
Binary file modified demo/ScreenShot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/javascripts/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$(function() {
$.get('/ajax/mail/index').done(function(result) {
$('#J_content').html(result);
});
});
2 changes: 2 additions & 0 deletions routes.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var index = require('./controllers/index');
var site = require('./controllers/site');
var sign = require('./controllers/sign');
var mail = require('./controllers/mail');
Expand Down Expand Up @@ -31,6 +32,7 @@ module.exports = function(app) {
app.get('/mail/compose', compose.index);

// ajax
app.get('/ajax/mail/index', index);
app.get('/ajax/mail/inbox', inbox.getAll);
app.get('/ajax/mail/flagged', inbox.getFlagged);
app.get('/ajax/mail/seen', inbox.getSeen);
Expand Down
7 changes: 2 additions & 5 deletions views/mail/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<%- include side.html %>

<div class="main-body" id="J_content">
<pre>
<%- include ../../README.md %>
</pre>
</div>
<div class="main-body" id="J_content"></div>
<script src="/javascripts/index.js"></script>
5 changes: 2 additions & 3 deletions views/mail/mail.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<div class="main-body mail-page" id="J_content">
<div class="btn-groups clearfix" id="J_toolbar">
<div class="btn-group">
<button class="btn"><a href="/mail/inbox">返回</a> </button>
<a href="/mail/inbox"><button class="btn">返回</button></a>
</div>
<div class="btn-group">
<button class="btn"><a href="/mail/inbox/<%=id%>/compose">回复</a> </button>
<a href="/mail/inbox/<%=id%>/compose"><button class="btn">回复</button></a>
</div>
<!--<div class="btn-group">-->
<!--<button class="btn">转发 </button>-->
Expand All @@ -20,7 +20,6 @@
<li><a href="#">已读邮件</a></li>
<li><a href="#">未读邮件</a></li>
<li><a href="#">已删除</a></li>
<li class="divider"></li>
<li><a href="#">垃圾邮件</a></li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion views/sign/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<p><%= config.description %></p>
<p>目前支持的邮箱有:</p>
<ul>
<li>gmail</li>
<li>163</li>
<li>126</li>
<li>gmail</li>
<li>sina.cn</li>
</ul>
</div>
Expand Down

0 comments on commit 694c52a

Please sign in to comment.