Skip to content

Commit f7dc048

Browse files
committed
update index
1 parent cf881de commit f7dc048

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node_modules/
66
public/
77
.deploy*/
88
src/_drafts
9+
.avoscloud/

server.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
var express = require('express');
2+
var AV = require('leanengine');
3+
var path = require('path');
4+
var app = express();
5+
6+
var port = process.env.LEANCLOUD_APP_PORT || 3000;
7+
8+
AV.init({
9+
appId: process.env.LEANCLOUD_APP_ID,
10+
appKey: process.env.LEANCLOUD_APP_KEY,
11+
masterKey: process.env.LEANCLOUD_APP_MASTER_KEY
12+
});
13+
app.enable('trust proxy');
14+
app.use(AV.express());
15+
app.use(AV.Cloud.HttpsRedirect());
16+
app.use(express.static(__dirname + '/public'));
17+
app.get('/', function(req, res) {
18+
res.sendFile(path.resolve('./public/index.html'))
19+
});
20+
21+
app.listen(port);

themes/vue/layout/index.ejs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
</div><div class="right">
1212
<h2 class="vue">Vue.js 2.0 中文</h2>
1313
<h1>
14-
先进的<br>JavaScript 框架
14+
渐进式<br>JavaScript 框架
1515
</h1>
1616
<p>
1717
<a class="button" href="/guide/">起步</a>
1818
<a class="button white" href="https://github.com/vuejs/vue" target="_blank">GITHUB</a>
19-
<a class="button white" href="https://vuefe.leanapp.cn" target="_blank">HTTPS站点</a>
2019
</p>
2120
</div>
2221
</div>

themes/vue/layout/partials/main_menu.ejs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
<li><a href="/vuex/" class="nav-link<%- page.path.match(/vuex/) ? ' current' : '' %>">vuex</a></li>
66
<li><a href="/examples/" class="nav-link<%- page.path.match(/examples/) ? ' current' : '' %>">示例</a></li>
77
<li><a href="https://webpack2.leanapp.cn" target="_blank">webpack</a></li>
8-
<li><a href="https://vuefe.leanapp.cn" target="_blank">HTTPS站点</a></li>
98
<li><a href="/more/" class="nav-link<%- page.path.match(/more/) ? ' current' : '' %>">更多</a></li>
109
<%- partial('partials/community_dropdown') %>

0 commit comments

Comments
 (0)