This commit is contained in:
James Barnsley
2017-11-27 08:41:02 +13:00
parent e008313475
commit 59fcc7f9ed
8 changed files with 112 additions and 18 deletions

View File

@ -1 +1 @@
3.8.5
3.8.6

88
index.html Executable file
View File

@ -0,0 +1,88 @@
<html>
<head>
<title>Iris</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<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" />
<meta name="viewport" content="width=device-width">
<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" />
<!-- Chrome app -->
<link rel="manifest" href="/iris/assets/manifest.json">
<!-- 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">
<!-- Raven Sentry -->
<script src="https://cdn.ravenjs.com/3.17.0/raven.min.js" crossorigin="anonymous"></script>
</head>
<body>
<div id="app">
<!-- ReactJS application here -->
</div>
</body>
<script type="text/javascript">
// Release details
// These are automatically injected to built HTML
var build = "1511724955";
var version = "3.8.5";
// Construct the script tag
var js = document.createElement("script");
js.type = "application/javascript";
// Construct our css tag
var css = document.createElement("link");
css.rel = "stylesheet";
// Check for test mode. This is toggled under Settings > Debug > Test mode
try {
var ui = JSON.parse(localStorage.getItem('ui') );
var test_mode = (typeof(ui) !== 'undefined' && ui && typeof(ui.test_mode) !== 'undefined' && ui.test_mode);
} catch(error){
console.error(error);
var test_mode = false;
}
// Test mode, use un-minified code
if (test_mode){
js.src = '/iris/app.js?v='+build;
css.href = '/iris/app.css?v='+build;
// Production-grade, minified app
} else {
js.src = '/iris/app.min.js?v='+build;
css.href = '/iris/app.min.css?v='+build;
// 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
}
).install();
}
// And finally inject our CSS/JS tags
document.body.appendChild(js);
document.body.appendChild(css);
</script>
</html>

View File

@ -1117,7 +1117,6 @@ function setSelectedTracks() {
function showContextMenu(data) {
data.position_x = data.e.clientX;
data.position_y = data.e.clientY;
console.log(data);
return {
type: 'SHOW_CONTEXT_MENU',
data: data
@ -33389,17 +33388,18 @@ var Track = function (_React$Component) {
} else {
return _react2.default.createElement(
'div',
{ className: className },
{
className: className,
onMouseEnter: function onMouseEnter(e) {
return _this2.setState({ hover: true });
},
onMouseLeave: function onMouseLeave(e) {
return _this2.setState({ hover: false });
} },
track_actions,
_react2.default.createElement(
'div',
{ className: 'liner',
onMouseEnter: function onMouseEnter(e) {
return _this2.setState({ hover: true });
},
onMouseLeave: function onMouseLeave(e) {
return _this2.setState({ hover: false });
}
{ className: 'liner'
//onTouchEnd={e => this.handleTouchEnd(e)} // When touch dragging is dropped on me
, onMouseDown: function onMouseDown(e) {
return _this2.handleMouseDown(e);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -22,6 +22,9 @@
<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">
<!-- Raven Sentry -->
<script src="https://cdn.ravenjs.com/3.17.0/raven.min.js" crossorigin="anonymous"></script>
</head>
<body>
@ -34,8 +37,8 @@
<script type="text/javascript">
// Release details
// These are automatically injected by build.sh
var build = "1511467173";
// These are automatically injected to built HTML
var build = "1511724955";
var version = "3.8.5";
// Construct the script tag
@ -55,7 +58,7 @@
var test_mode = false;
}
// Test mode, use built (but not minified) code
// Test mode, use un-minified code
if (test_mode){
js.src = '/iris/app.js?v='+build;
css.href = '/iris/app.css?v='+build;

View File

@ -22,6 +22,9 @@
<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">
<!-- Raven Sentry -->
<script src="https://cdn.ravenjs.com/3.17.0/raven.min.js" crossorigin="anonymous"></script>
</head>
<body>
@ -34,7 +37,7 @@
<script type="text/javascript">
// Release details
// These are automatically injected by build.sh
// These are automatically injected to built HTML
var build = "BUILD_HERE";
var version = "VERSION_HERE";
@ -55,7 +58,7 @@
var test_mode = false;
}
// Test mode, use built (but not minified) code
// Test mode, use un-minified code
if (test_mode){
js.src = '/iris/app.js?v='+build;
css.href = '/iris/app.css?v='+build;