This commit is contained in:
Gregory Schier committed 2016-07-08 21:49:09 -07:00
1 parent c5131f946c
commit 150c5caf55
6 files changed
+15 -14

No files matched your search

+1 -6
View File
@@ -14,7 +14,7 @@ let zoomFactor = 1;
// Enable this for CSS grid layout :)
electron.app.commandLine.appendSwitch('enable-experimental-web-platform-features');
// Quit when all windows are closed.
// Quit when all windows are closed (except on Mac).
app.on('window-all-closed', () => {
if (!IS_MAC) {
app.quit();
@@ -36,11 +36,6 @@ app.on('ready', () => {
// and load the app.html of the app.
mainWindow.loadURL(`file://${__dirname}/app.html`);
// Open the DevTools.
// if (IS_DEV) {
// mainWindow.webContents.openDevTools();
// }
// Emitted when the window is closed.
mainWindow.on('closed', () => {
// Dereference the window object, usually you would store windows
+2
View File
@@ -1,9 +1,11 @@
{
"private": true,
"name": "insomnia",
"version": "3.0.0",
"productName": "Insomnia REST Client",
"description": "The best REST API Client",
"homepage": "http://insomnia.rest",
"author": "Gregory Schier",
"licence": "GPL-3.0",
"main": "app.js",
"dependencies": {
+4 -4
View File
@@ -62,10 +62,10 @@ class EnvironmentEditModal extends Component {
valuePlaceholder="https://api.insomnia.com/v1"/>
</ModalBody>
<ModalFooter>
<button className="btn pull-right" onClick={this._saveChanges.bind(this)}>
Done
</button>
<div className="pad">
<div className="pull-right">
<button className="btn" onClick={this._saveChanges.bind(this)}>Save</button>
</div>
<div className="pad txt-sm">
This data can be used for&nbsp;
<Link href="https://mozilla.github.io/nunjucks/templating.html">Nunjucks Templating</Link>&nbsp;
in your requests.
+1 -1
View File
@@ -70,7 +70,7 @@ label > .form-control,
}
.btn:hover:not(:disabled) {
background: $hl-xs;
background: $hl-sm;
}
.btn:active {
+6 -2
View File
@@ -18,13 +18,17 @@
height: 100%;
&:hover {
background-color: $hl-xxs;
background-color: $hl-xs;
}
}
& > *:first-child {
padding-left: $padding-md;
padding-right: $padding-md;
padding-right: $padding-md / 2;
}
& > *:nth-child(2) {
padding-left: $padding-md / 2;
}
& > *:last-child {
+1 -1
View File
@@ -73,7 +73,7 @@ export function initDB () {
const filePath = getDBFilePath();
const tmpFilePath = `${filePath}.tmp`;
fs.writeFile(tmp, JSON.stringify(db, null, 2), err => {
fs.writeFile(tmpFilePath, JSON.stringify(db, null, 2), err => {
if (err) {
console.error('Failed to write DB to file', err);
} else {