From cc6c8ff5ab1c7f338ed8cee6a7c6d063d7359937 Mon Sep 17 00:00:00 2001 From: "xiaoqi.cxq" Date: Mon, 4 Jul 2022 20:13:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=90=8Epublish=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=86=99gitee=E7=A9=BA=E5=86=85=E5=AE=B9=E6=8A=A5?= =?UTF-8?q?=E9=94=99bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chrome-app/manifest.json | 4 ++-- package.json | 4 ++-- src/services/providers/helpers/giteeHelper.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chrome-app/manifest.json b/chrome-app/manifest.json index ea23b118..94451705 100644 --- a/chrome-app/manifest.json +++ b/chrome-app/manifest.json @@ -1,9 +1,9 @@ { "name": "StackEdit中文版", "description": "支持Gitee仓库/粘贴图片自动上传的浏览器内 Markdown 编辑器", - "version": "1.0.13", + "version": "1.0.0", "manifest_version": 2, - "container" : "GOOGLE_DRIVE", + "container" : "GITEE", "api_console_project_id" : "241271498917", "icons": { "16": "icon-16.png", diff --git a/package.json b/package.json index ac162403..3bf51e20 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "stackedit", "version": "5.15.7", - "description": "Free, open-source, full-featured Markdown editor", - "author": "Benoit Schweblin", + "description": "免费, 开源, 功能齐全的 Markdown 编辑器", + "author": "Benoit Schweblin, 豆萁", "license": "Apache-2.0", "bugs": { "url": "https://github.com/mafgwo/stackedit/issues" diff --git a/src/services/providers/helpers/giteeHelper.js b/src/services/providers/helpers/giteeHelper.js index 4368f4cf..0700ed0a 100644 --- a/src/services/providers/helpers/giteeHelper.js +++ b/src/services/providers/helpers/giteeHelper.js @@ -264,7 +264,7 @@ export default { url: `contents/${encodeURIComponent(path)}`, body: { message: getCommitMessage(sha ? 'updateFileMessage' : 'createFileMessage', path), - content: utils.encodeBase64(content), + content: utils.encodeBase64(content || ' '), sha, branch, },