This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This script searches for the 'weakest link' in an array. | |
* It can be usefull when looking for the combined status of a download all action. | |
* Try it here: https://stackblitz.com/edit/typescript-ose5xy | |
*/ | |
const orderedStatusses = ['failed', 'unknown', 'queued', 'downloading', 'completed']; | |
const mappedStatussesFromAStreamOfAssets = ['completed', 'failed', 'completed', 'completed']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if (gte mso 9)|(IE)]> | |
<style type="text/css" media="screen"> | |
/* Add all text elements used in your email template */ | |
body, div, p, li, th, td, | |
a, strong, b, em, li, address, | |
h1, h2, h3, h4, h5, h6 { | |
font-family: 'Segoe UI Semilight' !important; | |
} | |
</style> | |
<![endif]--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css" media="screen"> | |
@media screen { | |
/* Add all text elements used in your email template */ | |
body, div, p, li, th, td, | |
a, strong, b, em, li, address, | |
h1, h2, h3, h4, h5, h6 { | |
font-family: 'Source Sans Pro', sans-serif !important; | |
} | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a basic (untested) service worker setup. | |
// Thoroughly test all features before using it! | |
// CACHE KEYS | |
// update CACHE_KEY to trigger: | |
// - a new service worker install | |
// - removal of old caches | |
// The new service worker will become active after closing all | |
// website instances where it has been registered | |
const CACHE_KEY = 'cache-v1'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Html.ReactInitJavaScript() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@section scripts { | |
<script src="[path to JavaScript file]"></script> | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Html.React("RootComponent", new {title = "This is React SSR"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.SetLoadBabel(false) | |
.SetLoadReact(false) | |
.AddScriptWithoutTransform("[path to JavaScript file]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="productsApp"></div> |