mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
stuff
This commit is contained in:
parent
16eb53dbe0
commit
c5131f946c
@ -25,12 +25,11 @@
|
|||||||
& > * {
|
& > * {
|
||||||
cursor: ew-resize;
|
cursor: ew-resize;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
//background: rgba(255, 0, 0, 0.3);
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
z-index: 20;
|
z-index: 20;
|
||||||
width: $drag-width;
|
width: $drag-width;
|
||||||
top: 0;
|
top: 0;
|
||||||
// More to the right so it doesn't cover scrollbars
|
// More to the right so it doesn't cover scroll bars
|
||||||
left: -$drag-width / 8;
|
left: -$drag-width / 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ $bg-super-light: #fff;
|
|||||||
$bg-dark: #2e2f2b;
|
$bg-dark: #2e2f2b;
|
||||||
$bg-super-dark: #292a26;
|
$bg-super-dark: #292a26;
|
||||||
$bg-brand: $color-brand;
|
$bg-brand: $color-brand;
|
||||||
$bg-backdrop: rgba(20, 20, 20, 0.5);
|
$bg-backdrop: rgba(30, 30, 30, 0.6);
|
||||||
|
|
||||||
/* Font Colors */
|
/* Font Colors */
|
||||||
$font-light-bg: #444;
|
$font-light-bg: #444;
|
||||||
|
@ -69,13 +69,11 @@ export function initDB () {
|
|||||||
timeout = setTimeout(() => {
|
timeout = setTimeout(() => {
|
||||||
|
|
||||||
// First, write to a tmp file, then overwrite the old one. This
|
// First, write to a tmp file, then overwrite the old one. This
|
||||||
// prevents getting a corrupt file if we crash part-way through
|
// prevents getting a corru
|
||||||
// a write.
|
|
||||||
|
|
||||||
const filePath = getDBFilePath();
|
const filePath = getDBFilePath();
|
||||||
const tmpFilePath = `${filePath}.tmp`;
|
const tmpFilePath = `${filePath}.tmp`;
|
||||||
|
|
||||||
fs.writeFile(tmpFilePath, JSON.stringify(db, null, 2), err => {
|
fs.writeFile(tmp, JSON.stringify(db, null, 2), err => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error('Failed to write DB to file', err);
|
console.error('Failed to write DB to file', err);
|
||||||
} else {
|
} else {
|
||||||
@ -157,7 +155,7 @@ function remove (doc) {
|
|||||||
TYPES.map(type => removeWhere(type, 'parentId', doc._id));
|
TYPES.map(type => removeWhere(type, 'parentId', doc._id));
|
||||||
|
|
||||||
Object.keys(changeListeners).map(k => changeListeners[k]('remove', doc));
|
Object.keys(changeListeners).map(k => changeListeners[k]('remove', doc));
|
||||||
new Promise(resolve => resolve());
|
new Promise(resolve => resolve(doc));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ export const REQUEST_TIME_TO_SHOW_COUNTER = 1; // Seconds
|
|||||||
|
|
||||||
// UI Stuff
|
// UI Stuff
|
||||||
export const MAX_SIDEBAR_REMS = 35;
|
export const MAX_SIDEBAR_REMS = 35;
|
||||||
export const MIN_SIDEBAR_REMS = 13;
|
export const MIN_SIDEBAR_REMS = 10;
|
||||||
export const MAX_PANE_WIDTH = 0.99;
|
export const MAX_PANE_WIDTH = 0.99;
|
||||||
export const MIN_PANE_WIDTH = 0.01;
|
export const MIN_PANE_WIDTH = 0.01;
|
||||||
export const DEFAULT_PANE_WIDTH = 0.5;
|
export const DEFAULT_PANE_WIDTH = 0.5;
|
||||||
|
Loading…
Reference in New Issue
Block a user