MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / getSourceLabel

Function getSourceLabel

background/logging-status.js:15–32  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

13 } = deps;
14
15 function getSourceLabel(source) {
16 const labels = {
17 'gmail-mail': 'Gmail 邮箱',
18 'sidepanel': '侧边栏',
19 'signup-page': '认证页',
20 'vps-panel': 'CPA 面板',
21 'sub2api-panel': 'SUB2API 后台',
22 'qq-mail': 'QQ 邮箱',
23 'mail-163': '163 邮箱',
24 'mail-2925': '2925 邮箱',
25 'inbucket-mail': 'Inbucket 邮箱',
26 'duck-mail': 'Duck 邮箱',
27 'hotmail-api': 'Hotmail(API对接/本地助手)',
28 'luckmail-api': 'LuckMail(API 购邮)',
29 'cloudflare-temp-email': 'Cloudflare Temp Email',
30 };
31 return labels[source] || source || '未知来源';
32 }
33
34 async function addLog(message, level = 'info') {
35 const state = await getState();

Callers 4

handleMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected