MCPcopy Create free account
hub / github.com/cppla/ServerStatus / loadConfig

Function loadConfig

web/js/app.js:614–621  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

612 el.textContent = text;
613}
614async function loadConfig(){
615 const data = await api('/api/config');
616 S.admin.config = normalizeAdminConfig(data.config);
617 S.admin.connected = true;
618 setAdminStatus('已连接管理 API,配置可编辑。', 'ok');
619 renderConfigList();
620 renderConfigEditor();
621}
622
623const CONFIG_TYPES = {
624 servers: {

Callers 2

ensureAdminCheckedFunction · 0.85
bindAdminFunction · 0.85

Calls 5

apiFunction · 0.85
normalizeAdminConfigFunction · 0.85
setAdminStatusFunction · 0.85
renderConfigListFunction · 0.85
renderConfigEditorFunction · 0.85

Tested by

no test coverage detected