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

Function loadEmailServices

static/js/settings.js:498–520  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

496
497// 加载邮箱服务
498async function loadEmailServices() {
499 // 检查元素是否存在
500 if (!elements.emailServicesTable) return;
501
502 try {
503 const data = await api.get('/email-services');
504 renderEmailServices(data.services);
505 } catch (error) {
506 console.error('加载邮箱服务失败:', error);
507 if (elements.emailServicesTable) {
508 elements.emailServicesTable.innerHTML = `
509 <tr>
510 <td colspan="7">
511 <div class="empty-state">
512 <div class="empty-state-icon">❌</div>
513 <div class="empty-state-title">加载失败</div>
514 </div>
515 </td>
516 </tr>
517 `;
518 }
519 }
520}
521
522// 渲染邮箱服务
523function renderEmailServices(services) {

Callers 5

settings.jsFile · 0.85
handleAddServiceFunction · 0.85
toggleServiceFunction · 0.85
deleteServiceFunction · 0.85
handleOutlookBatchImportFunction · 0.85

Calls 3

renderEmailServicesFunction · 0.85
errorMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected