Skip to content

Commit

Permalink
📝 update version
Browse files Browse the repository at this point in the history
  • Loading branch information
ntduan committed Apr 22, 2018
1 parent 82b271c commit d7447f0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
> 又拍云文件管理桌面客户端
#### ChangeLog

##### v0.34.0(2018-04-29)
##### v0.34.0(2018-04-22)
- 获取链接可编辑。
- 增加获取任务列表里面上传完成后的文件获取链接的功能
- 上传下载完成后,增加桌面通知功能
- 任务列表的文件可以双击和单击文件名用操作系统默认程序打开
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "updrive",
"version": "0.33.0",
"version": "0.34.0",
"author": "nsso <nsso@foxmail.com>",
"description": "upyun file manager",
"engines": {
Expand Down
11 changes: 7 additions & 4 deletions src/renderer/views/modal/FormatUrl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

<script>
import { mapState, mapGetters } from 'vuex'
import path from 'path'
import { openExternal, writeText } from '@/api/electron'
import { getFileTypeFromName } from '@/api/tool'
Expand Down Expand Up @@ -80,16 +81,18 @@ export default {
return pathname.substring(pathname.lastIndexOf('/') + 1)
}
const getMarkDownTemplate = link => {
const title = getTitle(link)
const type = getFileTypeFromName(title)
const titleUri = getTitle(link)
const type = getFileTypeFromName(titleUri)
const title = path.parse(decodeURIComponent(titleUri)).name
if (type === 'image') {
return `![${title}](${link})`
}
return `[${title}](${link})`
}
const getHtmlTemplate = link => {
const title = getTitle(link)
const type = getFileTypeFromName(title)
const titleUri = getTitle(link)
const type = getFileTypeFromName(titleUri)
const title = path.parse(decodeURIComponent(titleUri)).name
if (type === 'image') {
return `<img src="${link}" alt="${title}">`
}
Expand Down

0 comments on commit d7447f0

Please sign in to comment.