From e509909bb0c712399066eaa62f31c1e57e231ff1 Mon Sep 17 00:00:00 2001 From: HynoR <20227709+HynoR@users.noreply.github.com> Date: Sat, 1 Nov 2025 15:03:27 +0800 Subject: [PATCH] feat: Add network details drawer component --- .../views/container/network/detail/index.vue | 186 ++++++++++++++++++ .../src/views/container/network/index.vue | 15 +- 2 files changed, 191 insertions(+), 10 deletions(-) create mode 100644 frontend/src/views/container/network/detail/index.vue diff --git a/frontend/src/views/container/network/detail/index.vue b/frontend/src/views/container/network/detail/index.vue new file mode 100644 index 000000000000..fc3bb6ce7762 --- /dev/null +++ b/frontend/src/views/container/network/detail/index.vue @@ -0,0 +1,186 @@ + + + + + + + {{ networkData?.Name || '-' }} + + + + {{ networkData?.Id?.substring(0, 12) }} + + + + {{ networkData?.Driver || '-' }} + + + {{ formatDate(networkData?.Created) }} + + + + {{ networkData?.EnableIPv4 ? $t('commons.status.enable') : $t('commons.status.disable') }} + + + + + {{ networkData?.EnableIPv6 ? $t('commons.status.enable') : $t('commons.status.disable') }} + + + + + + + {{ networkData?.IPAM?.Driver || '-' }} + + + + + {{ $t('container.subnet') }}: + {{ config.Subnet }} + + + {{ $t('container.gateway') }}: + {{ config.Gateway }} + + + {{ $t('container.scope') }}: + {{ config.IPRange }} + + + - + + + + + {{ $t('menu.container') }} + + + + {{ row.name }} + + + + + + {{ row.ipv4 || '-' }} + + + + + {{ row.ipv6 || '-' }} + + + + + {{ row.mac || '-' }} + + + + + {{ row.endpointId?.substring(0, 12) || '-' }} + + + + + + + + + + + + + + {{ $t('commons.button.cancel') }} + + + + + + + + diff --git a/frontend/src/views/container/network/index.vue b/frontend/src/views/container/network/index.vue index c03fb7aa3ea8..7c7072d6ece9 100644 --- a/frontend/src/views/container/network/index.vue +++ b/frontend/src/views/container/network/index.vue @@ -86,7 +86,7 @@ - + @@ -94,7 +94,7 @@