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-04-20 02:14:53 +00:00
|
|
|
script.src = (process.env.HOT) ? 'http://localhost:3333/dist/bundle.js' : './bundle.js';
|
2016-03-22 18:20:05 +00:00
|
|
|
document.write(script.outerHTML);
|
|
|
|
}());
|
|
|
|
</script>
|
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-03-22 18:20:05 +00:00
|
|
|
</body>
|
|
|
|
</html>
|