MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / addCustomSource

Function addCustomSource

deployments/desktop/static/desktop.js:5390–5402  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5388 }
5389
5390 function addCustomSource() {
5391 const input = $("sourceUrlInput");
5392 const value = input.value.trim();
5393 if (!value) {
5394 showSettingsMessage(ui().settings.inputUrl);
5395 return;
5396 }
5397 $("customSourcesList").insertAdjacentHTML("beforeend", `
5398 <div><span>rss</span><strong>${escapeHtml(value)}</strong><button data-remove-source type="button">×</button></div>
5399 `);
5400 input.value = "";
5401 showSettingsMessage(ui().settings.sourceAdded);
5402 }
5403
5404 async function exportData(format) {
5405 const data = await api("/api/export", {

Callers 1

bindEventsFunction · 0.85

Calls 4

showSettingsMessageFunction · 0.85
uiFunction · 0.85
$Function · 0.70
escapeHtmlFunction · 0.70

Tested by

no test coverage detected