From cd41f0561c73feec5f2916718420475f9b8c39dd Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Fri, 3 Dec 2021 17:54:58 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BF=AE=E6=94=B9=E6=8F=92?= =?UTF-8?q?=E4=BB=B6runner=E4=B8=BAbrowserview?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- feature/package-lock.json | 42 +++++++ feature/package.json | 1 + feature/public/plugin.json | 1 + feature/public/preload.js | 1 + feature/src/App.vue | 104 +++++++--------- feature/src/router/index.ts | 17 ++- feature/src/store/index.ts | 10 +- feature/src/views/installed/index.vue | 163 ++++++++++++++++++++++++++ feature/src/views/market/index.vue | 6 +- public/preload.js | 3 + src/common/utils/localPlugin.ts | 6 + src/core/app-search/darwin.ts | 2 +- src/core/plugin-handler/index.ts | 1 - src/main/browsers/runner.ts | 59 ++++++---- src/main/common/api.ts | 8 +- src/renderer/App.vue | 28 ++++- src/renderer/components/search.vue | 51 ++++++-- src/renderer/plugins-manager/index.ts | 38 ++++-- 18 files changed, 420 insertions(+), 121 deletions(-) create mode 100644 feature/src/views/installed/index.vue diff --git a/feature/package-lock.json b/feature/package-lock.json index 8d636a6..e9201d9 100644 --- a/feature/package-lock.json +++ b/feature/package-lock.json @@ -7918,6 +7918,14 @@ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "dev": true }, + "linkify-it": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", + "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", + "requires": { + "uc.micro": "^1.0.1" + } + }, "loader-fs-cache": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/loader-fs-cache/-/loader-fs-cache-1.0.3.tgz", @@ -8128,6 +8136,30 @@ "object-visit": "^1.0.0" } }, + "markdown-it": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.2.0.tgz", + "integrity": "sha512-Wjws+uCrVQRqOoJvze4HCqkKl1AsSh95iFAeQDwnyfxM09divCBSXlDR1uTvyUP3Grzpn4Ru8GeCxYPM8vkCQg==", + "requires": { + "argparse": "^2.0.1", + "entities": "~2.1.0", + "linkify-it": "^3.0.1", + "mdurl": "^1.0.1", + "uc.micro": "^1.0.5" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "entities": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", + "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==" + } + } + }, "md5.js": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", @@ -8145,6 +8177,11 @@ "integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==", "dev": true }, + "mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=" + }, "media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", @@ -11898,6 +11935,11 @@ "integrity": "sha512-pxnwLxeb/Z5SP80JDRzVjh58KsM6jZHRAOtTpS7sXLS4ogXNKC9ANxHHZqLLeVHZN35jCtI4JdmLLbLiC1kBow==", "dev": true }, + "uc.micro": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", + "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==" + }, "uglify-js": { "version": "3.4.10", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.10.tgz", diff --git a/feature/package.json b/feature/package.json index 985ba7e..df7d719 100644 --- a/feature/package.json +++ b/feature/package.json @@ -12,6 +12,7 @@ "ant-design-vue": "^2.2.8", "axios": "^0.24.0", "core-js": "^3.6.5", + "markdown-it": "^12.2.0", "vue": "^3.0.0", "vue-router": "^4.0.0-0", "vuex": "^4.0.0-0" diff --git a/feature/public/plugin.json b/feature/public/plugin.json index 25807b3..ad249e2 100644 --- a/feature/public/plugin.json +++ b/feature/public/plugin.json @@ -5,6 +5,7 @@ "logo": "logo.jpg", "version": "0.0.0", "preload":"preload.js", + "pluginType": "ui", "features": [ { "code": "market", diff --git a/feature/public/preload.js b/feature/public/preload.js index e69de29..702f428 100644 --- a/feature/public/preload.js +++ b/feature/public/preload.js @@ -0,0 +1 @@ +console.log("hello"); diff --git a/feature/src/App.vue b/feature/src/App.vue index 5ccd9da..4131427 100644 --- a/feature/src/App.vue +++ b/feature/src/App.vue @@ -1,28 +1,32 @@