mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-21 06:37:36 -04:00
* Start on workspace dropdown and upgrade fontawesome * WorkspaceDropdown start and Elm components! * Lots of CSS shit * Refactor some db stuff and move filter out of sidebar * Adjust dropdown css * Handle duplicate header names, and stuff * Shitty cookies tab * fixed cookie table a bit * Modal refactor * Starteed cookie modal design * Better cookie storage and filter cookie modal * Cookie editor round 1 * Fix kve cursor jumping and form encoding templating * New cookies now show up in filter * Checkpoint * Stuff and fix environments css * Added manage cookies button to cookie pane * Fix accidental sidebar item drag on sidebar resize * Environments modal is looking pretty good now * Pretty much done environments nad cookies * Some changes * Fixed codemirror in modals * Fixed some things * Add basic proxy support * Updated shortcuts * Code snippet generation * Some style * bug fix * Code export now gets cookies for correct domain
80 lines
2.0 KiB
HTML
80 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Insomnia</title>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script src="./external/jsonlint.js"></script>
|
|
<script src="./external/raven.min.js"></script>
|
|
|
|
<script>
|
|
// Sentry
|
|
|
|
if (process.env.NODE_ENV !== 'development') {
|
|
Raven.config('https://fb3242f902b54cdd934b8ffa204426c0:23430fbe203a4189a68efb63c38fc50b@app.getsentry.com/88289', {
|
|
allowSecretKey: true,
|
|
logger: 'sentry',
|
|
levels: ['warn', 'error'],
|
|
release: require('./app.json').version,
|
|
environment: process.env.NODE_ENV,
|
|
ignoreErrors: [
|
|
'fb_xd_fragment',
|
|
/ReferenceError:.*/
|
|
],
|
|
excludePaths: [
|
|
/\/external\/.*/
|
|
],
|
|
includePaths: [
|
|
/.*/
|
|
]
|
|
}).install();
|
|
|
|
console.log('-- Initialized Sentry --');
|
|
}
|
|
</script>
|
|
<script>
|
|
const {longName} = require('./app.json');
|
|
document.title = `${longName}`;
|
|
</script>
|
|
<script>
|
|
// HOT RELOADING IN DEV
|
|
|
|
(function () {
|
|
const script = document.createElement('script');
|
|
script.src = (process.env.HOT) ? 'http://localhost:3333/build/bundle.js' : './bundle.js';
|
|
document.write(script.outerHTML);
|
|
}());
|
|
</script>
|
|
|
|
<script>
|
|
// CREATE MENUS
|
|
|
|
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>
|
|
|
|
<script>
|
|
// SOME HELPERS
|
|
|
|
document.body.setAttribute('data-platform', process.platform);
|
|
</script>
|
|
</body>
|
|
</html>
|