2016-10-03 14:44:27 +13:00
|
|
|
<html>
|
|
|
|
|
<head>
|
2017-02-09 15:54:01 +00:00
|
|
|
|
2016-10-05 09:17:09 +13:00
|
|
|
<title>Iris</title>
|
2017-02-09 15:54:01 +00:00
|
|
|
|
2016-10-03 14:44:27 +13:00
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
2016-11-03 18:22:26 +13:00
|
|
|
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
|
|
|
|
<meta name="mobile-web-app-capable" content="yes" >
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
|
|
|
<meta name="theme-color" content="#222222" />
|
2017-05-18 08:35:57 +12:00
|
|
|
<meta name="viewport" content="width=device-width">
|
2016-11-03 18:22:26 +13:00
|
|
|
|
2017-02-09 15:54:01 +00:00
|
|
|
<link rel="shortcut icon" type="image/ico" href="/iris/assets/favicon.ico" />
|
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="/iris/assets/favicon.ico" />
|
|
|
|
|
<link rel="shortcut-icon" href="/iris/assets/favicon.ico" />
|
2016-10-05 09:17:09 +13:00
|
|
|
|
2017-07-28 09:56:00 +12:00
|
|
|
<link href="//fonts.googleapis.com/css?family=Overpass:400,400i,600,700,800" rel="stylesheet">
|
2016-10-03 14:44:27 +13:00
|
|
|
|
2017-09-05 16:00:01 +12:00
|
|
|
<!-- Chrome app -->
|
2017-03-28 21:36:14 +13:00
|
|
|
<link rel="manifest" href="/iris/assets/manifest.json">
|
2017-03-27 05:41:19 +13:00
|
|
|
|
2017-09-05 16:00:01 +12:00
|
|
|
<!-- Apple app -->
|
|
|
|
|
<link rel="apple-touch-startup-image" href="/iris/assets/logo-full-512.png">
|
|
|
|
|
<link rel="apple-touch-icon" sizes="192x192" href="/iris/assets/logo-app-192.png">
|
|
|
|
|
<link rel="apple-touch-icon" sizes="512x512" href="/iris/assets/logo-app-512.png">
|
|
|
|
|
|
2017-09-19 16:57:59 +12:00
|
|
|
<!-- Raven Sentry -->
|
|
|
|
|
<script src="https://cdn.ravenjs.com/3.17.0/raven.min.js" crossorigin="anonymous"></script>
|
|
|
|
|
|
2016-10-03 14:44:27 +13:00
|
|
|
</head>
|
|
|
|
|
<body>
|
2017-02-09 15:54:01 +00:00
|
|
|
|
2016-10-03 14:44:27 +13:00
|
|
|
<div id="app">
|
|
|
|
|
<!-- ReactJS application here -->
|
|
|
|
|
</div>
|
2017-02-09 15:54:01 +00:00
|
|
|
|
2016-10-03 14:44:27 +13:00
|
|
|
</body>
|
2017-02-09 15:54:01 +00:00
|
|
|
|
2017-09-03 21:00:17 +12:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
2017-09-20 09:41:25 +12:00
|
|
|
// Release details
|
|
|
|
|
// These are automatically injected by build.sh
|
2017-09-20 08:40:59 +12:00
|
|
|
var build = "BUILD_HERE";
|
|
|
|
|
var version = "VERSION_HERE";
|
2017-09-03 21:00:17 +12:00
|
|
|
|
2017-09-20 08:40:59 +12:00
|
|
|
// Construct the script tag
|
2017-09-03 21:00:17 +12:00
|
|
|
var js = document.createElement("script");
|
|
|
|
|
js.type = "application/javascript";
|
|
|
|
|
|
2017-09-20 08:40:59 +12:00
|
|
|
// Construct our css tag
|
2017-09-03 21:00:17 +12:00
|
|
|
var css = document.createElement("link");
|
|
|
|
|
css.rel = "stylesheet";
|
|
|
|
|
|
2017-09-21 08:24:33 +12:00
|
|
|
// Check for test mode. This is toggled under Settings > Debug > Test mode
|
2017-09-03 21:00:17 +12:00
|
|
|
var ui = JSON.parse( localStorage.getItem('ui') );
|
2017-09-21 08:24:33 +12:00
|
|
|
|
|
|
|
|
// Test mode either not enabled, or not configured
|
2017-09-08 08:37:16 +12:00
|
|
|
if (typeof(ui) === 'undefined' || !ui || typeof(ui.test_mode) === 'undefined' || !ui.test_mode){
|
2017-09-21 08:24:33 +12:00
|
|
|
|
|
|
|
|
// Production-grade, minified app
|
2017-09-20 08:40:59 +12:00
|
|
|
js.src = '/iris/app.min.js?v='+build;
|
|
|
|
|
css.href = '/iris/app.min.css?v='+build;
|
2017-09-21 08:24:33 +12:00
|
|
|
|
|
|
|
|
// Initiate error tracking. This helps catch errors early so
|
|
|
|
|
// patches can accurately and quickly fix issues.
|
|
|
|
|
Raven.config(
|
|
|
|
|
'https://023e3bf7721b48f29948545fc36a4621@sentry.io/219026',
|
|
|
|
|
{
|
|
|
|
|
release: version+"_"+build
|
|
|
|
|
}
|
|
|
|
|
).install();
|
|
|
|
|
|
|
|
|
|
// We're in test mode, so use built (but not minified) code
|
2017-09-03 21:00:17 +12:00
|
|
|
} else {
|
2017-09-20 08:40:59 +12:00
|
|
|
js.src = '/iris/app.js?v='+build;
|
|
|
|
|
css.href = '/iris/app.css?v='+build;
|
2017-09-03 21:00:17 +12:00
|
|
|
}
|
2017-09-20 08:40:59 +12:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// And finally inject our CSS/JS tags
|
2017-09-03 21:00:17 +12:00
|
|
|
document.body.appendChild(js);
|
|
|
|
|
document.body.appendChild(css);
|
2017-09-20 08:40:59 +12:00
|
|
|
|
2017-09-03 21:00:17 +12:00
|
|
|
</script>
|
2016-10-03 14:44:27 +13:00
|
|
|
|
2017-02-09 15:54:01 +00:00
|
|
|
</html>
|
2017-09-03 21:00:17 +12:00
|
|
|
|