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

Function loadStats

static/js/email_services.js:234–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232
233// 加载统计信息
234async function loadStats() {
235 try {
236 const data = await api.get('/email-services/stats');
237 elements.outlookCount.textContent = data.outlook_count || 0;
238 elements.customCount.textContent = (data.custom_count || 0) + (data.tempmail_builtin_count || 0) + (data.yyds_mail_count || 0) + (data.web2_count || 0) + (data.temp_mail_count || 0) + (data.cloudmail_count || 0) + (data.duck_mail_count || 0) + (data.luckmail_count || 0) + (data.freemail_count || 0) + (data.imap_mail_count || 0);
239 elements.tempmailStatus.textContent = data.tempmail_available ? '可用' : '不可用';
240 elements.totalEnabled.textContent = data.enabled_count || 0;
241 } catch (error) {
242 console.error('加载统计信息失败:', error);
243 }
244}
245
246// 加载 Outlook 服务
247async function loadOutlookServices() {

Callers 8

email_services.jsFile · 0.70
handleOutlookImportFunction · 0.70
handleAddCustomFunction · 0.70
toggleServiceFunction · 0.70
deleteServiceFunction · 0.70
handleBatchDeleteOutlookFunction · 0.70
handleEditCustomFunction · 0.70
handleEditOutlookFunction · 0.70

Calls 2

errorMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected