mirror of https://github.com/certd/certd
fix: 修复导入插件对话框无法打开的bug,修复插件编辑页面打开多个代码编辑器消失的bug
parent
c560cc5add
commit
e5a080aebe
|
@ -25,7 +25,7 @@
|
||||||
<a-tab-pane key="editor" tab="元数据"> </a-tab-pane>
|
<a-tab-pane key="editor" tab="元数据"> </a-tab-pane>
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
<div class="metadata-body">
|
<div class="metadata-body">
|
||||||
<code-editor id="metadata" v-model:model-value="plugin.metadata" language="yaml" @save="doSave"></code-editor>
|
<code-editor :id="`metadata_${idRef}`" v-model:model-value="plugin.metadata" language="yaml" @save="doSave"></code-editor>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="script">
|
<div class="script">
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
<a-tab-pane key="script" tab="脚本"> </a-tab-pane>
|
<a-tab-pane key="script" tab="脚本"> </a-tab-pane>
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
<div class="script-body">
|
<div class="script-body">
|
||||||
<code-editor id="content" v-model:model-value="plugin.content" language="javascript" @save="doSave"></code-editor>
|
<code-editor :id="`content_${idRef}`" v-model:model-value="plugin.content" language="javascript" @save="doSave"></code-editor>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -83,6 +83,7 @@ function initFormOptions() {
|
||||||
}
|
}
|
||||||
initFormOptions();
|
initFormOptions();
|
||||||
|
|
||||||
|
const idRef = ref(route.query.id);
|
||||||
async function getPlugin() {
|
async function getPlugin() {
|
||||||
const id = route.query.id;
|
const id = route.query.id;
|
||||||
const pluginObj = await api.GetObj(id);
|
const pluginObj = await api.GetObj(id);
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
import * as api from "/@/views/sys/plugin/api";
|
import * as api from "/@/views/sys/plugin/api";
|
||||||
import { useFormWrapper } from "@fast-crud/fast-crud";
|
import { dict, useFormWrapper } from "@fast-crud/fast-crud";
|
||||||
import { useI18n } from "/@/locales";
|
import { useI18n } from "/@/locales";
|
||||||
import { Modal, notification } from "ant-design-vue";
|
import { notification } from "ant-design-vue";
|
||||||
|
|
||||||
export function usePluginImport() {
|
export function usePluginImport() {
|
||||||
const { openCrudFormDialog } = useFormWrapper();
|
const { openCrudFormDialog } = useFormWrapper();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
async function openImportDialog({ crudExpose }) {
|
async function openImportDialog(opts: any) {
|
||||||
|
const { crudExpose } = opts;
|
||||||
function createCrudOptions() {
|
function createCrudOptions() {
|
||||||
return {
|
return {
|
||||||
crudOptions: {
|
crudOptions: {
|
||||||
|
|
115
pnpm-lock.yaml
115
pnpm-lock.yaml
|
@ -214,7 +214,7 @@ importers:
|
||||||
version: link:../basic
|
version: link:../basic
|
||||||
'@certd/plus-core':
|
'@certd/plus-core':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.20
|
||||||
version: link:../../pro/plus-core
|
version: 1.36.20
|
||||||
dayjs:
|
dayjs:
|
||||||
specifier: ^1.11.7
|
specifier: ^1.11.7
|
||||||
version: 1.11.13
|
version: 1.11.13
|
||||||
|
@ -468,7 +468,7 @@ importers:
|
||||||
version: link:../../core/pipeline
|
version: link:../../core/pipeline
|
||||||
'@certd/plus-core':
|
'@certd/plus-core':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.20
|
||||||
version: link:../../pro/plus-core
|
version: 1.36.20
|
||||||
'@midwayjs/cache':
|
'@midwayjs/cache':
|
||||||
specifier: ~3.14.0
|
specifier: ~3.14.0
|
||||||
version: 3.14.0
|
version: 3.14.0
|
||||||
|
@ -792,19 +792,19 @@ importers:
|
||||||
packages/pro/commercial-core:
|
packages/pro/commercial-core:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.19
|
||||||
version: link:../../core/basic
|
version: link:../../core/basic
|
||||||
'@certd/lib-server':
|
'@certd/lib-server':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.19
|
||||||
version: link:../../libs/lib-server
|
version: link:../../libs/lib-server
|
||||||
'@certd/pipeline':
|
'@certd/pipeline':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.19
|
||||||
version: link:../../core/pipeline
|
version: link:../../core/pipeline
|
||||||
'@certd/plugin-plus':
|
'@certd/plugin-plus':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.19
|
||||||
version: link:../plugin-plus
|
version: link:../plugin-plus
|
||||||
'@certd/plus-core':
|
'@certd/plus-core':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.19
|
||||||
version: link:../plus-core
|
version: link:../plus-core
|
||||||
'@midwayjs/core':
|
'@midwayjs/core':
|
||||||
specifier: ~3.20.3
|
specifier: ~3.20.3
|
||||||
|
@ -889,22 +889,22 @@ importers:
|
||||||
specifier: ^1.0.2
|
specifier: ^1.0.2
|
||||||
version: 1.0.3
|
version: 1.0.3
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.19
|
||||||
version: link:../../core/basic
|
version: link:../../core/basic
|
||||||
'@certd/lib-k8s':
|
'@certd/lib-k8s':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.19
|
||||||
version: link:../../libs/lib-k8s
|
version: link:../../libs/lib-k8s
|
||||||
'@certd/pipeline':
|
'@certd/pipeline':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.19
|
||||||
version: link:../../core/pipeline
|
version: link:../../core/pipeline
|
||||||
'@certd/plugin-cert':
|
'@certd/plugin-cert':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.19
|
||||||
version: link:../../plugins/plugin-cert
|
version: link:../../plugins/plugin-cert
|
||||||
'@certd/plugin-lib':
|
'@certd/plugin-lib':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.19
|
||||||
version: link:../../plugins/plugin-lib
|
version: link:../../plugins/plugin-lib
|
||||||
'@certd/plus-core':
|
'@certd/plus-core':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.19
|
||||||
version: link:../plus-core
|
version: link:../plus-core
|
||||||
ali-oss:
|
ali-oss:
|
||||||
specifier: ^6.21.0
|
specifier: ^6.21.0
|
||||||
|
@ -1007,7 +1007,7 @@ importers:
|
||||||
packages/pro/plus-core:
|
packages/pro/plus-core:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.19
|
||||||
version: link:../../core/basic
|
version: link:../../core/basic
|
||||||
dayjs:
|
dayjs:
|
||||||
specifier: ^1.11.7
|
specifier: ^1.11.7
|
||||||
|
@ -1493,7 +1493,7 @@ importers:
|
||||||
version: link:../../core/basic
|
version: link:../../core/basic
|
||||||
'@certd/commercial-core':
|
'@certd/commercial-core':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.20
|
||||||
version: link:../../pro/commercial-core
|
version: 1.36.20(better-sqlite3@11.10.0)(encoding@0.1.13)(mysql2@3.14.1)(pg@8.16.0)(reflect-metadata@0.2.2)(ts-node@10.9.2(@types/node@18.19.100)(typescript@5.8.3))
|
||||||
'@certd/cv4pve-api-javascript':
|
'@certd/cv4pve-api-javascript':
|
||||||
specifier: ^8.4.2
|
specifier: ^8.4.2
|
||||||
version: 8.4.2
|
version: 8.4.2
|
||||||
|
@ -1523,10 +1523,10 @@ importers:
|
||||||
version: link:../../plugins/plugin-lib
|
version: link:../../plugins/plugin-lib
|
||||||
'@certd/plugin-plus':
|
'@certd/plugin-plus':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.20
|
||||||
version: link:../../pro/plugin-plus
|
version: 1.36.20(encoding@0.1.13)
|
||||||
'@certd/plus-core':
|
'@certd/plus-core':
|
||||||
specifier: ^1.36.20
|
specifier: ^1.36.20
|
||||||
version: link:../../pro/plus-core
|
version: 1.36.20
|
||||||
'@huaweicloud/huaweicloud-sdk-cdn':
|
'@huaweicloud/huaweicloud-sdk-cdn':
|
||||||
specifier: ^3.1.120
|
specifier: ^3.1.120
|
||||||
version: 3.1.149
|
version: 3.1.149
|
||||||
|
@ -2769,9 +2769,18 @@ packages:
|
||||||
'@better-scroll/zoom@2.5.1':
|
'@better-scroll/zoom@2.5.1':
|
||||||
resolution: {integrity: sha512-aGvFY5ooeZWS4RcxQLD+pGLpQHQxpPy0sMZV3yadcd2QK53PK9gS4Dp+BYfRv8lZ4/P2LoNEhr6Wq1DN6+uPlA==}
|
resolution: {integrity: sha512-aGvFY5ooeZWS4RcxQLD+pGLpQHQxpPy0sMZV3yadcd2QK53PK9gS4Dp+BYfRv8lZ4/P2LoNEhr6Wq1DN6+uPlA==}
|
||||||
|
|
||||||
|
'@certd/commercial-core@1.36.20':
|
||||||
|
resolution: {integrity: sha512-5l+Kev+y8t1KVPzbTzHVEfXHJtVdBtwIIM8i7VEfui0Mnrq896d7g/kUVFsOVZ1QnPlJnT17qYX8jaP9eSzr8Q==}
|
||||||
|
|
||||||
'@certd/cv4pve-api-javascript@8.4.2':
|
'@certd/cv4pve-api-javascript@8.4.2':
|
||||||
resolution: {integrity: sha512-udGce7ewrVl4DmZvX+17PjsnqsdDIHEDatr8QP0AVrY2p+8JkaSPW4mXCKiLGf82C9K2+GXgT+qNIqgW7tfF9Q==}
|
resolution: {integrity: sha512-udGce7ewrVl4DmZvX+17PjsnqsdDIHEDatr8QP0AVrY2p+8JkaSPW4mXCKiLGf82C9K2+GXgT+qNIqgW7tfF9Q==}
|
||||||
|
|
||||||
|
'@certd/plugin-plus@1.36.20':
|
||||||
|
resolution: {integrity: sha512-aaslvdORKbEnxWXoGHUKOlP5KlD0+OLhK9fVyPBdgu5s1cZ3tOx0lB+Bu2XXZex1fZvEQ6/qn0A9QI55UmIicA==}
|
||||||
|
|
||||||
|
'@certd/plus-core@1.36.20':
|
||||||
|
resolution: {integrity: sha512-Ji8nsVuNNfDSsSUnL+Rm3kwXt+3WymoMq2UGVNNzJC1ywnCaLkbaBEBawHqnZJLriwt3sidtZy2PYRP6VLo5bA==}
|
||||||
|
|
||||||
'@certd/vue-js-cron-core@6.0.3':
|
'@certd/vue-js-cron-core@6.0.3':
|
||||||
resolution: {integrity: sha512-kqzoAMhYz9j6FGNWEODRYtt4NpUEUwjpkU89z5WVg2tCtOcI5VhwyUGOd8AxiBCRfd6PtXvzuqw85PaOps9wrQ==}
|
resolution: {integrity: sha512-kqzoAMhYz9j6FGNWEODRYtt4NpUEUwjpkU89z5WVg2tCtOcI5VhwyUGOd8AxiBCRfd6PtXvzuqw85PaOps9wrQ==}
|
||||||
|
|
||||||
|
@ -15466,12 +15475,84 @@ snapshots:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@better-scroll/core': 2.5.1
|
'@better-scroll/core': 2.5.1
|
||||||
|
|
||||||
|
'@certd/commercial-core@1.36.20(better-sqlite3@11.10.0)(encoding@0.1.13)(mysql2@3.14.1)(pg@8.16.0)(reflect-metadata@0.2.2)(ts-node@10.9.2(@types/node@18.19.100)(typescript@5.8.3))':
|
||||||
|
dependencies:
|
||||||
|
'@certd/basic': link:packages/core/basic
|
||||||
|
'@certd/lib-server': link:packages/libs/lib-server
|
||||||
|
'@certd/pipeline': link:packages/core/pipeline
|
||||||
|
'@certd/plugin-plus': 1.36.20(encoding@0.1.13)
|
||||||
|
'@certd/plus-core': 1.36.20
|
||||||
|
'@midwayjs/core': 3.20.4
|
||||||
|
'@midwayjs/koa': 3.20.5
|
||||||
|
'@midwayjs/logger': 3.4.2
|
||||||
|
'@midwayjs/typeorm': 3.20.4
|
||||||
|
alipay-sdk: 4.14.0
|
||||||
|
dayjs: 1.11.13
|
||||||
|
typeorm: 0.3.24(better-sqlite3@11.10.0)(mysql2@3.14.1)(pg@8.16.0)(reflect-metadata@0.2.2)(ts-node@10.9.2(@types/node@18.19.100)(typescript@5.8.3))
|
||||||
|
wechatpay-node-v3: 2.2.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- '@google-cloud/spanner'
|
||||||
|
- '@sap/hana-client'
|
||||||
|
- babel-plugin-macros
|
||||||
|
- better-sqlite3
|
||||||
|
- encoding
|
||||||
|
- hdb-pool
|
||||||
|
- ioredis
|
||||||
|
- mongodb
|
||||||
|
- mssql
|
||||||
|
- mysql2
|
||||||
|
- oracledb
|
||||||
|
- pg
|
||||||
|
- pg-native
|
||||||
|
- pg-query-stream
|
||||||
|
- proxy-agent
|
||||||
|
- redis
|
||||||
|
- reflect-metadata
|
||||||
|
- sql.js
|
||||||
|
- sqlite3
|
||||||
|
- supports-color
|
||||||
|
- ts-node
|
||||||
|
- typeorm-aurora-data-api-driver
|
||||||
|
|
||||||
'@certd/cv4pve-api-javascript@8.4.2':
|
'@certd/cv4pve-api-javascript@8.4.2':
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 4.4.1(supports-color@8.1.1)
|
debug: 4.4.1(supports-color@8.1.1)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
|
'@certd/plugin-plus@1.36.20(encoding@0.1.13)':
|
||||||
|
dependencies:
|
||||||
|
'@alicloud/pop-core': 1.8.0
|
||||||
|
'@baiducloud/sdk': 1.0.3
|
||||||
|
'@certd/basic': link:packages/core/basic
|
||||||
|
'@certd/lib-k8s': link:packages/libs/lib-k8s
|
||||||
|
'@certd/pipeline': link:packages/core/pipeline
|
||||||
|
'@certd/plugin-cert': link:packages/plugins/plugin-cert
|
||||||
|
'@certd/plugin-lib': link:packages/plugins/plugin-lib
|
||||||
|
'@certd/plus-core': 1.36.20
|
||||||
|
ali-oss: 6.23.0
|
||||||
|
baidu-aip-sdk: 4.16.16
|
||||||
|
basic-ftp: 5.0.5
|
||||||
|
cos-nodejs-sdk-v5: 2.14.7
|
||||||
|
crypto-js: 4.2.0
|
||||||
|
dayjs: 1.11.13
|
||||||
|
form-data: 4.0.2
|
||||||
|
https-proxy-agent: 7.0.6
|
||||||
|
js-yaml: 4.1.0
|
||||||
|
jsencrypt: 3.3.2
|
||||||
|
jsrsasign: 11.1.0
|
||||||
|
qiniu: 7.14.0
|
||||||
|
tencentcloud-sdk-nodejs: 4.1.112(encoding@0.1.13)
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- encoding
|
||||||
|
- proxy-agent
|
||||||
|
- supports-color
|
||||||
|
|
||||||
|
'@certd/plus-core@1.36.20':
|
||||||
|
dependencies:
|
||||||
|
'@certd/basic': link:packages/core/basic
|
||||||
|
dayjs: 1.11.13
|
||||||
|
|
||||||
'@certd/vue-js-cron-core@6.0.3':
|
'@certd/vue-js-cron-core@6.0.3':
|
||||||
dependencies:
|
dependencies:
|
||||||
mustache: 4.2.0
|
mustache: 4.2.0
|
||||||
|
|
Loading…
Reference in New Issue