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

Function exportData

deployments/desktop/static/desktop.js:5404–5410  ·  view source on GitHub ↗
(format)

Source from the content-addressed store, hash-verified

5402 }
5403
5404 function profileEditItem(label, id, value, variant = "wide", multiline = false, hint = "") {
5405 const variantClass = variant ? ` ${variant}` : "";
5406 const escapedValue = escapeHtml(value || "");
5407 const placeholder = hint ? ` placeholder="${escapeHtml(hint)}"` : "";
5408 const control = multiline
5409 ? `<textarea id="${escapeHtml(id)}" rows="2"${placeholder}>${escapedValue}</textarea>`
5410 : `<input id="${escapeHtml(id)}" value="${escapedValue}"${placeholder}>`;
5411 const hintText = hint ? `<small>${escapeHtml(hint)}</small>` : "";
5412 return `<label class="profile-info-item editable${variantClass}"><span>${escapeHtml(label)}</span>${control}${hintText}</label>`;
5413 }

Callers 1

bindEventsFunction · 0.85

Calls 4

currentUserFunction · 0.85
showSettingsMessageFunction · 0.85
uiFunction · 0.85
apiFunction · 0.70

Tested by

no test coverage detected