From 0836e45b9485778ce52656709f559afcf753fb62 Mon Sep 17 00:00:00 2001 From: Ritchie Vincent Date: Sat, 21 Mar 2020 20:10:40 +0000 Subject: [PATCH] primate: use a-table with pagination instead of a-list (#151) This converts many components to use a-table with a-pagination than a-list: * Convert MigrateWizard * Convert Firewalls * Convert Port Forwarding * Convert Load Balancing * Convert Egress Configure * Convert IngressEgress Configure * Convert Dedicate VLAN * Convert VPC Tiers tab Signed-off-by: Rohit Yadav Co-authored-by: Ritchie Vincent Co-authored-by: Rohit Yadav --- ui/src/config/section/network.js | 2 +- ui/src/locales/en.json | 1 + ui/src/views/compute/MigrateWizard.vue | 193 +++++++++------- .../views/infra/network/DedicatedVLANTab.vue | 123 ++++++---- ...EgressConfigure.vue => EgressRulesTab.vue} | 129 +++++++---- ui/src/views/network/FirewallRules.vue | 121 +++++++--- .../network/IngressEgressRuleConfigure.vue | 104 +++++---- ui/src/views/network/LoadBalancing.vue | 210 +++++++++++------- ui/src/views/network/PortForwarding.vue | 123 +++++++--- 9 files changed, 649 insertions(+), 357 deletions(-) rename ui/src/views/network/{EgressConfigure.vue => EgressRulesTab.vue} (70%) diff --git a/ui/src/config/section/network.js b/ui/src/config/section/network.js index f82e610308b..70bfa925cfe 100644 --- a/ui/src/config/section/network.js +++ b/ui/src/config/section/network.js @@ -40,7 +40,7 @@ export default { component: () => import('@/components/view/DetailsTab.vue') }, { name: 'Egress Rules', - component: () => import('@/views/network/EgressConfigure.vue'), + component: () => import('@/views/network/EgressRulesTab.vue'), show: (record) => { return record.type === 'Isolated' && 'listEgressFirewallRules' in store.getters.apis } }, { name: 'Public IP Addresses', diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json index 25a0f505155..8900a05667a 100644 --- a/ui/src/locales/en.json +++ b/ui/src/locales/en.json @@ -917,6 +917,7 @@ "snmpPort": "SNMP Port", "sockettimeout": "Socket Timeout", "sourcecidr": "Source CIDR", +"destcidr": "Destination CIDR", "sourceNat": "Source NAT", "sourceipaddress": "Source IP Address", "sourceport": "Source Port", diff --git a/ui/src/views/compute/MigrateWizard.vue b/ui/src/views/compute/MigrateWizard.vue index 27f0c13df11..b99125c5a73 100644 --- a/ui/src/views/compute/MigrateWizard.vue +++ b/ui/src/views/compute/MigrateWizard.vue @@ -16,60 +16,64 @@ // under the License.