Skip to content

Commit 2ce5637

Browse files
committed
build: release v1.4.6
1 parent 9b686b6 commit 2ce5637

File tree

5 files changed

+53
-11818
lines changed

5 files changed

+53
-11818
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信文章
3030

3131
现有的开源微信 Markdown 编辑器,样式繁杂,也不符合我个人的审美需求。在我使用它们进行文章排版的时候,经常还要自己做一些改动,费时费力,因此动手做了二次开发。
3232

33-
欢迎各位朋友随时提交 PR,让这款微信 Markdown 编辑器变得更好!如果你有新的想法,也欢迎在 Issues 区反馈
33+
欢迎各位朋友随时提交 PR,让这款微信 Markdown 编辑器变得更好!如果你有新的想法,也欢迎在 [Discussions 讨论区](https://github.com/doocs/md/discussions)反馈
3434

3535
## 功能特性
3636

@@ -160,7 +160,7 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信文章
160160
</tr>
161161
</table>
162162

163-
注:如果你使用了本 Markdown 编辑器进行文章排版,并且希望在本项目 README 中展示你的公众号,请到 [#5](https://github.com/doocs/md/issues/5) 留言。
163+
注:如果你使用了本 Markdown 编辑器进行文章排版,并且希望在本项目 README 中展示你的公众号,请到 [#5](https://github.com/doocs/md/discussions/5) 留言。
164164

165165
## 项目许可证
166166

package-lock.json

Lines changed: 36 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-md",
3-
"version": "1.4.5",
3+
"version": "1.4.6",
44
"homepage": ".",
55
"description": "An open-source wechat markdown editor.",
66
"author": "doocs",

src/api/file.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ function getConfig(useDefault, platform) {
3232
};
3333
}
3434

35+
function getDir() {
36+
const date = new Date();
37+
const year = date.getFullYear();
38+
const month = (date.getMonth() + 1).toString().padStart(2, "0");
39+
const day = date.getDate().toString().padStart(2, "0");
40+
return `${year}/${month}/${day}`;
41+
}
42+
43+
function getDateFilename(filename) {
44+
const currentTimestamp = new Date().getTime();
45+
const fileSuffix = filename.split(".")[1];
46+
return `${currentTimestamp}-${uuidv4()}.${fileSuffix}`;
47+
}
48+
3549
//-----------------------------------------------------------------------
3650
// GitHub File Upload
3751
//-----------------------------------------------------------------------
@@ -194,20 +208,6 @@ async function txCOSFileUpload(file) {
194208
});
195209
}
196210

197-
function getDir() {
198-
const date = new Date();
199-
const year = date.getFullYear();
200-
const month = (date.getMonth() + 1).toString().padStart(2, "0");
201-
const day = date.getDate().toString().padStart(2, "0");
202-
return `${year}/${month}/${day}`;
203-
}
204-
205-
function getDateFilename(filename) {
206-
const currentTimestamp = new Date().getTime();
207-
const fileSuffix = filename.split(".")[1];
208-
return `${currentTimestamp}-${uuidv4()}.${fileSuffix}`;
209-
}
210-
211211
function fileUpload(content, file) {
212212
const imgHost = localStorage.getItem("imgHost");
213213
!imgHost && localStorage.setItem("imgHost", "default");

0 commit comments

Comments
 (0)