MCPcopy Create free account
hub / github.com/microsoft/SandDance / dataSourcePrefix

Function dataSourcePrefix

docs/app/js/sanddance-app.js:51934–51944  ·  view source on GitHub ↗
(dt, displayName)

Source from the content-addressed store, hash-verified

51932 "topojson"
51933];
51934function dataSourcePrefix(dt, displayName) {
51935 switch(dt){
51936 case "sample":
51937 return `${(0, _language.strings).sampleDataPrefix}: ${displayName}`;
51938 case "local":
51939 return (0, _language.strings).localFilePrefix;
51940 case "url":
51941 return (0, _language.strings).urlPrefix;
51942 }
51943 return (0, _language.strings).buttonLoadData;
51944}
51945
51946},{"./base":"6wvRv","./language":"PbiF5","./url":"7ClBS","@msrvida/sanddance-explorer":"cnuDN","react":"8ePka","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"PbiF5":[function(require,module,exports) {
51947var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

DataSourceButtonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected