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

Function loadProxies

static/js/settings.js:940–957  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

938
939// 加载代理列表
940async function loadProxies() {
941 try {
942 const data = await api.get('/settings/proxies');
943 renderProxies(data.proxies);
944 } catch (error) {
945 console.error('加载代理列表失败:', error);
946 elements.proxiesTable.innerHTML = `
947 <tr>
948 <td colspan="8">
949 <div class="empty-state">
950 <div class="empty-state-icon">❌</div>
951 <div class="empty-state-title">加载失败</div>
952 </div>
953 </td>
954 </tr>
955 `;
956 }
957}
958
959// 渲染代理列表
960function renderProxies(proxies) {

Callers 7

settings.jsFile · 0.85
handleSetProxyDefaultFunction · 0.85
handleProxyBatchImportFunction · 0.85
handleSaveProxyItemFunction · 0.85
toggleProxyItemFunction · 0.85
deleteProxyItemFunction · 0.85
handleTestAllProxiesFunction · 0.85

Calls 3

renderProxiesFunction · 0.85
errorMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected