chore: upgrade element-plugin to 2.9.6
This commit is contained in:
parent
66b2f1eade
commit
7b8a5bbce2
|
@ -11,7 +11,7 @@
|
|||
"@vueuse/core": "^10.11.0",
|
||||
"codemirror": "^5.65.17",
|
||||
"diff-match-patch": "^1.0.5",
|
||||
"element-plus": "^2.9.1",
|
||||
"element-plus": "^2.9.6",
|
||||
"intro.js": "^7.0.1",
|
||||
"jsonlint-mod": "^1.7.6",
|
||||
"jsonpath-plus": "^10.0.7",
|
||||
|
@ -4799,9 +4799,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"node_modules/element-plus": {
|
||||
"version": "2.9.1",
|
||||
"resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.9.1.tgz",
|
||||
"integrity": "sha512-9Agqf/jt4Ugk7EZ6C5LME71sgkvauPCsnvJN12Xid2XVobjufxMGpRE4L7pS4luJMOmFAH3J0NgYEGZT5r+NDg==",
|
||||
"version": "2.9.6",
|
||||
"resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.9.6.tgz",
|
||||
"integrity": "sha512-D9zU28Ce0s/9O/Vp3ewemikxzFVA6gdZyMwmWijHijo+t5/9H3sHRTIm1WlfeNpFW2Yq0y8nHXD0fU5YxU6qlQ==",
|
||||
"dependencies": {
|
||||
"@ctrl/tinycolor": "^3.4.1",
|
||||
"@element-plus/icons-vue": "^2.3.1",
|
||||
|
@ -15666,9 +15666,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"element-plus": {
|
||||
"version": "2.9.1",
|
||||
"resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.9.1.tgz",
|
||||
"integrity": "sha512-9Agqf/jt4Ugk7EZ6C5LME71sgkvauPCsnvJN12Xid2XVobjufxMGpRE4L7pS4luJMOmFAH3J0NgYEGZT5r+NDg==",
|
||||
"version": "2.9.6",
|
||||
"resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.9.6.tgz",
|
||||
"integrity": "sha512-D9zU28Ce0s/9O/Vp3ewemikxzFVA6gdZyMwmWijHijo+t5/9H3sHRTIm1WlfeNpFW2Yq0y8nHXD0fU5YxU6qlQ==",
|
||||
"requires": {
|
||||
"@ctrl/tinycolor": "^3.4.1",
|
||||
"@element-plus/icons-vue": "^2.3.1",
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"@vueuse/core": "^10.11.0",
|
||||
"codemirror": "^5.65.17",
|
||||
"diff-match-patch": "^1.0.5",
|
||||
"element-plus": "^2.9.1",
|
||||
"element-plus": "^2.9.6",
|
||||
"intro.js": "^7.0.1",
|
||||
"jsonlint-mod": "^1.7.6",
|
||||
"jsonpath-plus": "^10.0.7",
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, watch } from 'vue'
|
||||
import { API } from './net'
|
||||
import type { Store } from './store'
|
||||
import type { Pair } from './types'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { Codemirror } from 'vue-codemirror'
|
||||
import HistoryInput from '../components/HistoryInput.vue'
|
||||
|
||||
const stores = ref([])
|
||||
const stores = ref([] as Store[])
|
||||
const kind = ref('')
|
||||
const store = ref('')
|
||||
const sqlQuery = ref('')
|
||||
const queryResult = ref([])
|
||||
const queryResult = ref([] as any[])
|
||||
const queryResultAsJSON= ref('')
|
||||
const columns = ref([])
|
||||
const columns = ref([] as string[])
|
||||
const queryTip = ref('')
|
||||
const databases = ref([])
|
||||
const tables = ref([])
|
||||
|
@ -33,7 +35,15 @@ watch(store, (s) => {
|
|||
sqlQuery.value = ''
|
||||
executeQuery()
|
||||
})
|
||||
const queryDataFromTable = (data) => {
|
||||
|
||||
interface QueryData {
|
||||
items: any[]
|
||||
data: any[]
|
||||
label: string
|
||||
meta: any
|
||||
}
|
||||
|
||||
const queryDataFromTable = (data: QueryData) => {
|
||||
sqlQuery.value = `select * from ${data.label} limit 10`
|
||||
executeQuery()
|
||||
}
|
||||
|
@ -66,13 +76,13 @@ API.GetStores((data) => {
|
|||
loadingStores.value = false
|
||||
})
|
||||
|
||||
const ormDataHandler = (data) => {
|
||||
const result = []
|
||||
const ormDataHandler = (data: QueryData) => {
|
||||
const result = [] as any[]
|
||||
const cols = new Set()
|
||||
|
||||
data.items.forEach(e => {
|
||||
const obj = {}
|
||||
e.data.forEach(item => {
|
||||
e.data.forEach((item: Pair) => {
|
||||
obj[item.key] = item.value
|
||||
cols.add(item.key)
|
||||
})
|
||||
|
@ -98,12 +108,12 @@ const ormDataHandler = (data) => {
|
|||
})
|
||||
}
|
||||
|
||||
const keyValueDataHandler = (data) => {
|
||||
const keyValueDataHandler = (data: QueryData) => {
|
||||
queryResult.value = []
|
||||
data.data.forEach(e => {
|
||||
const obj = {}
|
||||
obj['key'] = e.key
|
||||
obj['value'] = e.value
|
||||
const obj = new Map<string, string>();
|
||||
obj.set('key', e.key)
|
||||
obj.set('value', e.value)
|
||||
queryResult.value.push(obj)
|
||||
|
||||
columns.value = ['key', 'value']
|
||||
|
|
|
@ -15,9 +15,14 @@ limitations under the License.
|
|||
*/
|
||||
import type { Pair } from './types'
|
||||
|
||||
interface Store {
|
||||
export interface Store {
|
||||
name: string;
|
||||
link: string;
|
||||
ready: boolean;
|
||||
kind: {
|
||||
name: string;
|
||||
description: string;
|
||||
};
|
||||
params: Pair[];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue