/* Sovran_SystemsOS Hub — Shared domain and router instructions. This is the single source of truth for the simple setup guidance shown in: • First-boot onboarding for Server + Desktop • Feature setup in the Hub • Domain reconfiguration and troubleshooting Keep the wording consistent by editing it here. */ "use strict"; function dpEsc(str) { return String(str) .replace(/&/g, "&") .replace(//g, ">") .replace(/"/g, """) .replace(/'/g, "'"); } /* Explain only what the user needs for the step in front of them. */ function renderDomainNeedsHtml(opts) { opts = opts || {}; var serviceName = opts.serviceName || null; var purpose = opts.purpose || ""; var html = ""; if (purpose === "btcpay") { html += "
Put your BTCPay Server online
"; html += "Let people donate Bitcoin, pay you, or visit your online store.
"; html += "BTCPay Server needs a domain so people can reach it. " + "Sovran_SystemsOS walks you through getting your domain from " + 'Njal.la' + " and connecting it. Just follow the steps below.
"; } else if (serviceName) { html += "To make " + dpEsc(serviceName) + " available outside your home, it needs a domain.
"; html += "Sovran_SystemsOS walks you through getting your domain from " + 'Njal.la' + " and connecting it. Just follow the steps below.
"; } else { html += "Your domain is the address people use to reach your services on the internet.
"; html += "Sovran_SystemsOS walks you through getting your domain from " + 'Njal.la' + " and connecting your services. Just follow the steps below.
"; } return html; } /* The shortest Njal.la steps that still tell the user exactly what to do. */ function renderNjallaStepsHtml(opts) { var hostExample = dpEsc((opts && opts.hostExample) || "call"); var pasteHint = (opts && opts.pasteHint) || "below"; var html = ""; html += 'Get and connect your domain:
'; html += '" + hostExample + ".yourdomain.com, enter " + hostExample + ". "
+ "If you are using the whole domain, leave the box blank or enter @.