From 7fe8a9605078f33a43e644be7f56df9a0ccfb4bf Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Tue, 30 May 2023 16:51:40 +0800 Subject: [PATCH] improve IBC --- src/modules/[chain]/ibc/connection.vue | 80 +++++++++++++++ .../ibc/{ => connection}/[connection_id].vue | 99 +++++++++---------- src/modules/[chain]/ibc/connection/index.vue | 6 ++ src/modules/[chain]/ibc/index.vue | 88 ----------------- 4 files changed, 130 insertions(+), 143 deletions(-) create mode 100644 src/modules/[chain]/ibc/connection.vue rename src/modules/[chain]/ibc/{ => connection}/[connection_id].vue (69%) create mode 100644 src/modules/[chain]/ibc/connection/index.vue delete mode 100644 src/modules/[chain]/ibc/index.vue diff --git a/src/modules/[chain]/ibc/connection.vue b/src/modules/[chain]/ibc/connection.vue new file mode 100644 index 00000000..09356a6f --- /dev/null +++ b/src/modules/[chain]/ibc/connection.vue @@ -0,0 +1,80 @@ + + + + + { + meta: { + i18n: 'ibc', + order: 9 + } + } + diff --git a/src/modules/[chain]/ibc/[connection_id].vue b/src/modules/[chain]/ibc/connection/[connection_id].vue similarity index 69% rename from src/modules/[chain]/ibc/[connection_id].vue rename to src/modules/[chain]/ibc/connection/[connection_id].vue index c905c5de..cf708ca2 100644 --- a/src/modules/[chain]/ibc/[connection_id].vue +++ b/src/modules/[chain]/ibc/connection/[connection_id].vue @@ -11,6 +11,7 @@ const baseStore = useBaseStore(); const conn = ref({} as Connection); const clientState = ref({} as { client_id: string; client_state: ClientState }); const channels = ref([] as Channel[]); + onMounted(() => { if (props.connection_id) { chainStore.rpc.getIBCConnectionsById(props.connection_id).then((x) => { @@ -41,15 +42,13 @@ function color(v: string) { } diff --git a/src/modules/[chain]/ibc/connection/index.vue b/src/modules/[chain]/ibc/connection/index.vue new file mode 100644 index 00000000..62fdd920 --- /dev/null +++ b/src/modules/[chain]/ibc/connection/index.vue @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/src/modules/[chain]/ibc/index.vue b/src/modules/[chain]/ibc/index.vue deleted file mode 100644 index 4ea1c987..00000000 --- a/src/modules/[chain]/ibc/index.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - { - meta: { - i18n: 'ibc', - order: 9 - } - } -