MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / deleteProxyItem

Function deleteProxyItem

static/js/settings.js:1200–1211  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1198
1199// 删除代理
1200async function deleteProxyItem(id) {
1201 const confirmed = await confirm('确定要删除此代理吗?');
1202 if (!confirmed) return;
1203
1204 try {
1205 await api.delete(`/settings/proxies/${id}`);
1206 toast.success('代理已删除');
1207 loadProxies();
1208 } catch (error) {
1209 toast.error('删除失败: ' + error.message);
1210 }
1211}
1212
1213// 测试所有代理
1214async function handleTestAllProxies() {

Callers

nothing calls this directly

Calls 5

confirmFunction · 0.85
loadProxiesFunction · 0.85
successMethod · 0.80
errorMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected