2016-03-22 18:20:05 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Insomnia REST Client</title>
|
2016-06-18 22:57:23 +00:00
|
|
|
<script src="./external/jsonlint.js"></script>
|
2016-03-22 18:20:05 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="root"></div>
|
|
|
|
<script>
|
|
|
|
(function () {
|
|
|
|
const script = document.createElement('script');
|
2016-07-18 20:10:18 +00:00
|
|
|
script.src = (process.env.HOT) ? 'http://localhost:3333/build/bundle.js' : './bundle.js';
|
2016-03-22 18:20:05 +00:00
|
|
|
document.write(script.outerHTML);
|
|
|
|
}());
|
|
|
|
</script>
|
2016-07-07 22:06:18 +00:00
|
|
|
|
2016-07-07 20:10:55 +00:00
|
|
|
<script>
|
|
|
|
const remote = require('electron').remote;
|
|
|
|
const Menu = remote.Menu;
|
|
|
|
const MenuItem = remote.MenuItem;
|
|
|
|
|
|
|
|
var menu = new Menu();
|
|
|
|
menu.append(new MenuItem({label: "Undo", selector: "undo:"}));
|
|
|
|
menu.append(new MenuItem({label: "Redo", selector: "redo:"}));
|
|
|
|
menu.append(new MenuItem({type: "separator"}));
|
|
|
|
menu.append(new MenuItem({label: "Cut", selector: "cut:"}));
|
|
|
|
menu.append(new MenuItem({label: "Copy", selector: "copy:"}));
|
|
|
|
menu.append(new MenuItem({label: "Paste", selector: "paste:"}));
|
|
|
|
menu.append(new MenuItem({label: "Select All", selector: "selectAll:"}));
|
|
|
|
|
|
|
|
window.addEventListener('contextmenu', function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
menu.popup(remote.getCurrentWindow());
|
|
|
|
}, false);
|
|
|
|
</script>
|
2016-07-07 22:06:18 +00:00
|
|
|
|
2016-07-18 19:44:46 +00:00
|
|
|
<script>
|
|
|
|
document.body.setAttribute('data-platform', process.platform);
|
|
|
|
</script>
|
|
|
|
|
2016-07-07 22:06:18 +00:00
|
|
|
<script>
|
|
|
|
if (process.env.NODE_ENV !== 'development') {
|
|
|
|
(function (i, s, o, g, r, a, m) {
|
|
|
|
i['GoogleAnalyticsObject'] = r;
|
|
|
|
i[r] = i[r] || function () {
|
|
|
|
(i[r].q = i[r].q || []).push(arguments)
|
|
|
|
}, i[r].l = 1 * new Date();
|
|
|
|
a = s.createElement(o),
|
|
|
|
m = s.getElementsByTagName(o)[0];
|
|
|
|
a.async = 1;
|
|
|
|
a.src = g;
|
|
|
|
m.parentNode.insertBefore(a, m)
|
|
|
|
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
|
|
|
|
|
|
|
ga('create', 'UA-9837747-17', 'auto');
|
|
|
|
ga('send', 'pageview');
|
|
|
|
}
|
|
|
|
</script>
|
2016-03-22 18:20:05 +00:00
|
|
|
</body>
|
|
|
|
</html>
|