mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-22 14:55:16 -04:00
Some small fixes
This commit is contained in:
1 parent
6bbdcaf440
commit
63315d1942
6 files changed
+21
-7
No files matched your search
+2
-2
@@ -23,8 +23,8 @@ const {
|
||||
|
||||
const IS_DEV = process.env.NODE_ENV === 'development';
|
||||
const IS_MAC = process.platform === 'darwin';
|
||||
const IS_WIN = process.platform === 'win32';
|
||||
const IS_LIN = process.platform === 'linux';
|
||||
// const IS_WIN = process.platform === 'win32';
|
||||
// const IS_LIN = process.platform === 'linux';
|
||||
|
||||
const UPDATE_URLS = {
|
||||
darwin: `http://updates.insomnia.rest/builds/check/mac?v=${appVersion}`,
|
||||
|
||||
@@ -26,6 +26,10 @@ class RenderedQueryString extends Component {
|
||||
this._update(this.props);
|
||||
}
|
||||
|
||||
componentWillUnmount () {
|
||||
clearTimeout(this._timeout);
|
||||
}
|
||||
|
||||
componentWillReceiveProps (nextProps) {
|
||||
let delay = true;
|
||||
|
||||
@@ -39,7 +43,7 @@ class RenderedQueryString extends Component {
|
||||
|
||||
render () {
|
||||
if (this.state.string) {
|
||||
return <span>{this.state.string}</span>
|
||||
return <span className="selectable">{this.state.string}</span>
|
||||
} else {
|
||||
return <span className="super-faint">{this.props.placeholder || ''}</span>
|
||||
}
|
||||
|
||||
@@ -32,6 +32,8 @@ class EnvironmentsDropdown extends Component {
|
||||
const workspace = this._getActiveWorkspace(this.props);
|
||||
|
||||
const allEnvironments = Object.keys(entities.environments).map(id => entities.environments[id]);
|
||||
|
||||
// NOTE: Base environment might not exist if the users hasn't managed environments yet.
|
||||
const baseEnvironment = allEnvironments.find(e => e.parentId === workspace._id);
|
||||
const subEnvironments = allEnvironments.filter(e => e.parentId === (baseEnvironment && baseEnvironment._id));
|
||||
const activeEnvironment = allEnvironments.find(e => e._id === workspace.metaActiveEnvironmentId) || baseEnvironment;
|
||||
@@ -57,7 +59,7 @@ class EnvironmentsDropdown extends Component {
|
||||
</li>
|
||||
))}
|
||||
<li>
|
||||
<button onClick={() => this._handleActivateEnvironment(baseEnvironment)}>
|
||||
<button onClick={() => baseEnvironment && this._handleActivateEnvironment(baseEnvironment)}>
|
||||
<i className="fa fa-empty"></i> No Environment
|
||||
</button>
|
||||
</li>
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long.
+2
-1
@@ -94,7 +94,8 @@
|
||||
"webpack": "^1.12.14",
|
||||
"webpack-dev-middleware": "latest",
|
||||
"webpack-dev-server": "^1.14.1",
|
||||
"webpack-hot-middleware": "^2.10.0"
|
||||
"webpack-hot-middleware": "^2.10.0",
|
||||
"webpack-target-electron-renderer": "^0.4.0"
|
||||
},
|
||||
"devEngines": {
|
||||
"node": "4.x || 5.x",
|
||||
|
||||
@@ -16,6 +16,13 @@ curl https://app.getsentry.com/api/0/projects/schierco/insomnia-electron/release
|
||||
echo ""
|
||||
echo "-- Uploading Source Maps for $APP_VERSION --"
|
||||
|
||||
# Upload a file for the given release
|
||||
curl https://app.getsentry.com/api/0/projects/schierco/insomnia-electron/releases/${APP_VERSION}/files/ \
|
||||
-X POST \
|
||||
-u "$SENTRY_TOKEN:" \
|
||||
-F file=@./build/bundle.js \
|
||||
-F name="bundle.js"
|
||||
|
||||
# Upload a file for the given release
|
||||
curl https://app.getsentry.com/api/0/projects/schierco/insomnia-electron/releases/${APP_VERSION}/files/ \
|
||||
-X POST \
|
||||
|
||||
Reference in new issue
Block a user