7b0b9c7365
Solution + 23 src projects + 26 test projects renamed; folders, csproj, namespaces, and ScadaLinkDbContext/ScadaBridgeDbContext class updated. ActorSystem "scadalink" → "scadabridge", Akka seed-node URLs migrated. SQL roles/logins, LDAP domains, CLI command name, and CLI config dir (~/.scadalink → ~/.scadabridge) also renamed. Build green; 5 Host.Tests fail awaiting SQL login rename in next commit. Pre-existing StaleTagMonitor timing flakes unchanged. Rename script committed at tools/rename-to-scadabridge.sh.
21 lines
920 B
JavaScript
21 lines
920 B
JavaScript
// Transport bundle export — browser-side download trigger.
|
|
//
|
|
// The TransportExport wizard (T21) computes a bundle byte[] server-side, encodes
|
|
// it to base64, and hands it to this helper to push to the user's browser as a
|
|
// file download. The base64 detour avoids binary marshalling headaches over the
|
|
// SignalR JS-interop boundary — Blazor Server cannot stream a byte[] back to
|
|
// the browser directly without a [JSInvokable] dance.
|
|
//
|
|
// The link is built fresh and removed each call so back-to-back exports don't
|
|
// keep stale URLs around in the DOM.
|
|
window.scadabridgeTransport = {
|
|
downloadBundle: function (filename, base64Data) {
|
|
const link = document.createElement('a');
|
|
link.href = "data:application/octet-stream;base64," + base64Data;
|
|
link.download = filename;
|
|
document.body.appendChild(link);
|
|
link.click();
|
|
document.body.removeChild(link);
|
|
}
|
|
};
|