Skip to content

Commit

Permalink
Bug fix & other improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
ntzyz committed Oct 12, 2017
1 parent 6c91ff7 commit c106068
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ Description=A naive blog framework
[Service]
WorkingDirectory=$(pwd)
ExecStart=npm run start
Environment="NODE_ENV=production"
ExecStart=$(which node) $(pwd)/index
" | sudo tee /lib/systemd/system/new-blog.service
```

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
简单的自用博客框架,使用 `Vue.js`, `Express``MongoDB` 完成。

[![Build Status](https://travis-ci.org/ntzyz/new-blog.svg?branch=master)](https://travis-ci.org/ntzyz/new-blog)
[![Coverage Status](https://coveralls.io/repos/github/ntzyz/new-blog/badge.svg?branch=test)](https://coveralls.io/github/ntzyz/new-blog?branch=test)
[![Coverage Status](https://coveralls.io/repos/github/ntzyz/new-blog/badge.svg?branch=master)](https://coveralls.io/github/ntzyz/new-blog?branch=master)

## Todo
- [X] 重构至上一版进度
Expand All @@ -15,3 +15,5 @@
- [ ] Gallery
- [X] 服务端渲染
- [X] 单元测试与 ESlint
- [ ] 文本框组件样式
- [ ] 移动端侧边栏访问
2 changes: 1 addition & 1 deletion src/components/admin/AccessLogs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default {
beforeMount () {
api.log.fetchLogs({ token: this.$store.state.token }).then(logs => {
this.logs = logs;
this.socket = io.connect(window.location.host, { path: '/api/ws/', query: `token=${this.$store.state.token}` });
this.socket = io.connect(window.location.host, { path: `${config.api}/ws/`, query: `token=${this.$store.state.token}` });
this.socket.on('log', text => {
this.logs.push(text);
setTimeout(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/config.sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default {
title: 'ntzyz\'s space',
subtitle: '∠( ᐛ 」∠)_',
api: {
'url': 'https://new.ntzyz.cn/api'
url: process.env.VUE_ENV === 'server' ? 'https://new.ntzyz.cn/api' : '/api'
},
components: {
title: true,
Expand Down
2 changes: 1 addition & 1 deletion src/style/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ button:focus {
}

article img {
width: 100%;
max-width: 100%;
}

a, a:link, a:visited, a:active, a:hover {
Expand Down

0 comments on commit c106068

Please sign in to comment.