MCPcopy Create free account
hub / github.com/error311/FileRise / refreshSnippetPreview

Function refreshSnippetPreview

public/js/adminPanel.js:3803–3807  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3801 };
3802
3803 const refreshSnippetPreview = () => {
3804 const includeSecrets = !!includeSecretsEl?.checked;
3805 const payload = state.lastTestResult || activeGateway();
3806 setCommand(snippetFromGateway(payload, selectedSnippetKind(), includeSecrets));
3807 };
3808
3809 const ensureSourceOption = (id, label = '') => {
3810 const sourceId = String(id || '').trim();

Callers 6

resetFormFunction · 0.85
fillFormFunction · 0.85
loadGatewaysFunction · 0.85
runGatewayTestFunction · 0.85
deleteGatewayFunction · 0.85
initGatewaysSectionFunction · 0.85

Calls 4

activeGatewayFunction · 0.85
setCommandFunction · 0.85
snippetFromGatewayFunction · 0.85
selectedSnippetKindFunction · 0.85

Tested by

no test coverage detected