style(proxy-nodes): 统一缩进并移除未使用的 confirmWarning 引用

This commit is contained in:
fawney19
2026-04-19 13:46:21 +08:00
parent 7007d7a556
commit 97cd877ce5
3 changed files with 58 additions and 54 deletions

View File

@@ -1499,8 +1499,9 @@ async fn dispatch_proxy_node_upgrade_targets(
summary.eligible_total = summary.eligible_total.saturating_add(1); summary.eligible_total = summary.eligible_total.saturating_add(1);
let current_version = let current_version = aether_data::repository::proxy_nodes::proxy_reported_version(
aether_data::repository::proxy_nodes::proxy_reported_version(node.proxy_metadata.as_ref()); node.proxy_metadata.as_ref(),
);
let pending_target = aether_data::repository::proxy_nodes::remote_config_upgrade_target( let pending_target = aether_data::repository::proxy_nodes::remote_config_upgrade_target(
node.remote_config.as_ref(), node.remote_config.as_ref(),
); );

View File

@@ -1516,7 +1516,10 @@ async fn gateway_still_dispatches_upgrade_targets_to_draining_proxy_nodes() {
.expect("json body should parse"); .expect("json body should parse");
assert_eq!(upgrade_payload["eligible_total"], 2); assert_eq!(upgrade_payload["eligible_total"], 2);
assert_eq!(upgrade_payload["updated"], 2); assert_eq!(upgrade_payload["updated"], 2);
assert_eq!(upgrade_payload["node_ids"], json!(["node-alpha", "node-zeta"])); assert_eq!(
upgrade_payload["node_ids"],
json!(["node-alpha", "node-zeta"])
);
let list_response_after_upgrade = client let list_response_after_upgrade = client
.get(format!( .get(format!(

View File

@@ -813,7 +813,7 @@ import { formatRegion } from '@/utils/region'
import HardwareTooltip from './components/HardwareTooltip.vue' import HardwareTooltip from './components/HardwareTooltip.vue'
const { success, error: toastError } = useToast() const { success, error: toastError } = useToast()
const { confirmDanger, confirmWarning } = useConfirm() const { confirmDanger } = useConfirm()
const store = useProxyNodesStore() const store = useProxyNodesStore()
const searchQuery = ref('') const searchQuery = ref('')