From cb1354516f30fed8650d7e2dd8316a5e7aedf539 Mon Sep 17 00:00:00 2001 From: "xiaoqi.cxq" Date: Sun, 10 Jul 2022 11:24:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=9B=BE=E5=BA=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 6 + package.json | 1 + src/assets/iconCustom.svg | 3 + src/components/Modal.vue | 2 + .../modals/AccountManagementModal.vue | 45 +++++++- src/components/modals/ImageModal.vue | 72 +++++++++--- .../modals/PublishManagementModal.vue | 2 +- .../modals/providers/CustomAccountModal.vue | 109 ++++++++++++++++++ src/data/features.js | 5 + src/icons/Provider.vue | 4 + .../providers/helpers/customHelper.js | 69 +++++++++++ src/store/data.js | 2 + src/store/index.js | 5 +- 13 files changed, 305 insertions(+), 20 deletions(-) create mode 100644 src/assets/iconCustom.svg create mode 100644 src/components/modals/providers/CustomAccountModal.vue create mode 100644 src/services/providers/helpers/customHelper.js diff --git a/package-lock.json b/package-lock.json index 2cefcdf6..a8eb16c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11267,6 +11267,12 @@ "nopt": "~3.0.1" } }, + "js-md5": { + "version": "0.7.3", + "resolved": "https://registry.npmmirror.com/js-md5/-/js-md5-0.7.3.tgz", + "integrity": "sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ==", + "dev": true + }, "js-tokens": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", diff --git a/package.json b/package.json index 3bf51e20..6853828e 100644 --- a/package.json +++ b/package.json @@ -100,6 +100,7 @@ "jest": "^23.0.0", "jest-raw-loader": "^1.0.1", "jest-serializer-vue": "^0.3.0", + "js-md5": "^0.7.3", "node-sass": "^4.0.0", "npm-bump": "^0.0.23", "offline-plugin": "^5.0.3", diff --git a/src/assets/iconCustom.svg b/src/assets/iconCustom.svg new file mode 100644 index 00000000..774ece8d --- /dev/null +++ b/src/assets/iconCustom.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/components/Modal.vue b/src/components/Modal.vue index 39c20c7e..00d9a242 100644 --- a/src/components/Modal.vue +++ b/src/components/Modal.vue @@ -80,6 +80,7 @@ import ZendeskPublishModal from './modals/providers/ZendeskPublishModal'; import CouchdbWorkspaceModal from './modals/providers/CouchdbWorkspaceModal'; import CouchdbCredentialsModal from './modals/providers/CouchdbCredentialsModal'; import SmmsAccountModal from './modals/providers/SmmsAccountModal'; +import CustomAccountModal from './modals/providers/CustomAccountModal'; const getTabbables = container => container.querySelectorAll('a[href], button, .textfield, input[type=checkbox]') // Filter enabled and visible element @@ -143,6 +144,7 @@ export default { CouchdbWorkspaceModal, CouchdbCredentialsModal, SmmsAccountModal, + CustomAccountModal, }, computed: { ...mapGetters([ diff --git a/src/components/modals/AccountManagementModal.vue b/src/components/modals/AccountManagementModal.vue index 293eb112..feafd212 100644 --- a/src/components/modals/AccountManagementModal.vue +++ b/src/components/modals/AccountManagementModal.vue @@ -4,8 +4,8 @@ -

Stackedit可以访问以下外部账号:

-

Stackedit尚未访问任何外部账号。

+

StackEdit中文版可以访问以下外部账号:

+

StackEdit中文版尚未访问任何外部账号。