Tui fix focus
This commit is contained in:
@@ -103,7 +103,7 @@ func renderDataInfoPage(m model) string {
|
||||
split_line,
|
||||
makeRow("Homepage", pageComps["Homepage_input"].View()),
|
||||
split_line,
|
||||
makeRow("Hostname", pageComps["Hostname_input"].View()),
|
||||
makeRow("ClusterName", pageComps["ClusterName_input"].View()),
|
||||
split_line,
|
||||
makeRow("Country", pageComps["Country_input"].View()),
|
||||
split_line,
|
||||
@@ -152,6 +152,8 @@ func renderPublicNetworkPage(m model) string {
|
||||
split_line,
|
||||
makeRow("PublicGateway", pageComps["PublicGateway_input"].View()),
|
||||
split_line,
|
||||
makeRow("PublicMTU", pageComps["PublicMTU_input"].View()),
|
||||
split_line,
|
||||
)
|
||||
|
||||
// 按钮区域
|
||||
@@ -186,11 +188,13 @@ func renderInternalNetworkPage(m model) string {
|
||||
// 拼接内网网络表单
|
||||
formContent := lipgloss.JoinVertical(lipgloss.Center,
|
||||
split_line,
|
||||
makeRow("InternalInterface", pageComps["InternalInterface_input"].View()),
|
||||
makeRow("PrivateInterface", pageComps["PrivateInterface_input"].View()),
|
||||
split_line,
|
||||
makeRow("InternalIPAddress", pageComps["InternalIPAddress_input"].View()),
|
||||
makeRow("PrivateIPAddress", pageComps["PrivateIPAddress_input"].View()),
|
||||
split_line,
|
||||
makeRow("InternalNetmask", pageComps["InternalNetmask_input"].View()),
|
||||
makeRow("PrivateNetmask", pageComps["PrivateNetmask_input"].View()),
|
||||
split_line,
|
||||
makeRow("PrivateMTU", pageComps["PrivateMTU_input"].View()),
|
||||
split_line,
|
||||
)
|
||||
|
||||
@@ -254,7 +258,7 @@ func renderSummaryPage(m model) string {
|
||||
// 拼接 Summary 表单
|
||||
formContent := lipgloss.JoinVertical(lipgloss.Center,
|
||||
split_line,
|
||||
makeRow("Hostname", m.config.Hostname),
|
||||
makeRow("ClusterName", m.config.ClusterName),
|
||||
split_line,
|
||||
makeRow("Country", m.config.Country),
|
||||
split_line,
|
||||
@@ -276,11 +280,13 @@ func renderSummaryPage(m model) string {
|
||||
split_line,
|
||||
makeRow("PublicGateway", m.config.PublicGateway),
|
||||
split_line,
|
||||
makeRow("InternalInterface", m.config.InternalInterface),
|
||||
makeRow("PrivateInterface", m.config.PrivateInterface),
|
||||
split_line,
|
||||
makeRow("InternalIPAddress", m.config.InternalIPAddress),
|
||||
makeRow("PrivateIPAddress", m.config.PrivateIPAddress),
|
||||
split_line,
|
||||
makeRow("InternalNetmask", m.config.InternalNetmask),
|
||||
makeRow("PrivateNetmask", m.config.PrivateNetmask),
|
||||
split_line,
|
||||
makeRow("PrivateMTU", m.config.PrivateMTU),
|
||||
split_line,
|
||||
makeRow("Pri DNS", m.config.DNSPrimary),
|
||||
split_line,
|
||||
|
||||
Reference in New Issue
Block a user