Skip to content

Commit

Permalink
v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joehecn committed Nov 15, 2017
1 parent 10eb3d8 commit e5deeed
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ npm run lint
- [x] F 修复 侧边栏分组人数在切换用户后不对 - 分组对应用户 v0.1.0
- [x] N 新增 自定义 图灵key v0.1.0
- [x] N 新增 心跳图标 v0.1.0
- [x] F 修复 导出好友点取消按键弹出错误提示框
- [x] F 修复 导出好友取消键弹错误框 v0.1.1
- [x] F 修复 选择好友后,搜索框清空 v0.1.1
- [x] N 新增 版本更新项列表 v0.1.1

## 依赖
This project was generated with [electron-vue](https://github.com/SimulatedGREG/electron-vue)@[de85f81](https://github.com/SimulatedGREG/electron-vue/tree/de85f81890c01500113738bfe57bef136f9fbf52) using [vue-cli](https://github.com/vuejs/vue-cli). Documentation about the original structure can be found [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html).
## 相关项目
https://github.com/Urinx/WeixinBot
## 参考
http://blog.csdn.net/mengfanzhong/article/details/53190083
https://segmentfault.com/a/1190000004471678
## License
MIT
6 changes: 3 additions & 3 deletions build/github/latest-mac.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.0",
"releaseDate": "2017-11-09T03:47:40.668Z",
"url": "https://github.com/joehecn/j/releases/download/v0.1.0/j-0.1.0-mac.zip"
"version": "0.1.1",
"releaseDate": "2017-11-15T01:39:01.174Z",
"url": "https://github.com/joehecn/j/releases/download/v0.1.1/j-0.1.1-mac.zip"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "j",
"version": "v0.1.0",
"version": "v0.1.1",
"author": "joehe <leanbrown@live.cn>",
"description": "An electron-vue project",
"main": "./dist/electron/main.js",
Expand Down
13 changes: 12 additions & 1 deletion src/renderer/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,21 @@ Window.prototype.joehe_global_js_method = (url) => {
// 检查版本
getReleases().then(res => {
if (res.tag_name !== version) {
let msgArr = []
const arr = res.body.split('[x]')
const len = arr.length

for (let i = 1; i < len; i++) {
msgArr.push(`- ${arr[i].split(res.tag_name)[0]}`)
}

const msgBody = msgArr.join('<br>')

const message = `<a style="text-decoration: none;" href="javascript:void(0);" onclick="joehe_global_js_method('${res.html_url}')">请点击这里查看详情和下载</a><p style="font-size: 12px;">${msgBody}</p>`
Notification({
title: `已发布新版本 ${res.tag_name}`,
dangerouslyUseHTMLString: true,
message: `<a style="text-decoration: none;" href="javascript:void(0);" onclick="joehe_global_js_method('${res.html_url}')">请点击这里查看详情和下载</a>`,
message,
duration: 0
})
}
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default {
newgroupname: '',
selected: -1,
activeName: 'first',
searchText: '',
searchText: '', // 搜索框
message: '',
sending: false,
imgsending: false,
Expand Down Expand Up @@ -367,7 +367,7 @@ export default {
_item.md5[item.md5] = !item.checked
this.$set(this.groups, this.selected, _item)
window.localStorage[this.$store.state.user.Uin] = JSON.stringify(this.groups)
this.searchText = ''
// this.searchText = '' 不自动清空,连选比较有效率
},
sendMessage () {
Expand Down

0 comments on commit e5deeed

Please sign in to comment.