Skip to content

Commit

Permalink
chore: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Voronov authored and morsdyce committed Apr 25, 2021
1 parent a12e508 commit e19cf6f
Show file tree
Hide file tree
Showing 41 changed files with 44 additions and 45 deletions.
2 changes: 1 addition & 1 deletion lib/api/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class Requests {

static setResponse(id, response, startTime) {
const request = find(capturedRequests, { id });

if (request) {
request.response = {
status: response.status || 200,
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/BottomBar/MainControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Action = styled(Div)`
padding: 0 6px;
user-select: none;
background-color: ${(props) => props.isActive ? props.theme.blue : 'inherit'};
${(props) => props.isInactive ? 'background-color: #e5e5e5;' : ''}
`;

Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/LatestRequestNotifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Control = styled(Div)`
height: 25px;
cursor: pointer;
${(props) => props.rounded ? 'border-radius: 0 0 0 11px' : ''}
&:hover {
background-color: #c8dcf4;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/Mimic.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Container = styled(Div)`
font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: auto;
* {
&:after,
&::after,
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/Mocks/CodeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class CodeEditor extends React.Component {
.CodeMirror {
height: 100%;
}
html, body, body > div, .frame-content {
height: 100%;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/Mocks/Sidebar/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const Action = styled(Span)`
margin: 0 0 0 ${(props) => props.margin ? `${props.margin}px` : '10px'};
display: flex;
align-items: center;
&:first-child {
margin: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/Mocks/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Tab = styled(Div)`
cursor: ${(props) => props.isSelected ? 'default' : 'pointer'};
border: ${(props) => props.isSelected ? props.theme.lightBorder : 'none'};
border-bottom: ${(props) => props.isSelected ? '1px solid white' : 'none'};
&:first-child {
padding-right: ${(props) => props.isSelected ? '5px' : '6px'};
border-top-left-radius: 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/QuickEdit/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const RequestOptionContainer = styled(Div)`
align-items: center;
cursor: pointer;
user-select: none;
&:hover {
background-color: ${(props) => props.theme.selectionBlue};
}
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/components/RequestLogs/RequestRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ const Container = styled(Div)`
&:nth-child(even) {
background-color: #f0f0f0;
}
&:nth-child(odd) {
background-color: white;
}
${(props) => props.selected ? 'background-color: #d9e5f6 !important;' : ''}
`;

Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/Settings/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const SettingsSectionContainer = styled(Div)`
width: 390px;
padding: 0 60px;
text-align: left;
&:last-child {
border-right: none;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/common/ActionIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Icon = styled(Div)`
line-height: 16px;
user-select: none;
fill: ${(props) => fill(props)};
&:hover {
fill: ${(props) => hoverFill(props)};
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/common/BlueButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const BlueButton = styled(Div)`
border-radius: 4px;
cursor: pointer;
user-select: none;
&:hover {
background-color: #1462b8;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/common/OutlineButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const OutlineButton = styled(Div)`
display: inline-block;
color: #4882d3;
user-select: none;
&:hover {
cursor: pointer;
background-color: #4882d3;
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/common/RedButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const RedButton = styled(Div)`
border-radius: 4px;
user-select: none;
cursor: ${(props) => props.disabled ? 'default' : 'pointer'};
&:hover {
background-color: ${(props) => props.disabled ? '#dadada' : '#a12100'};
}
Expand Down
8 changes: 4 additions & 4 deletions lib/ui/components/common/SegmentedSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ const Value = styled(Div)`
background-color: ${(props) => props.isSelected ? props.theme.blue : '#f0f0f0'};
color: ${(props) => props.isSelected ? 'white' : 'black'};
cursor: ${(props) => props.isSelected ? 'default' : 'pointer'};
&:first-child {
border-radius: 4px 0 0 4px;
}
&:last-child {
border-radius: 0 4px 4px 0;
}
&:hover {
background-color: ${(props) => props.isSelected ? props.theme.blue : props.theme.selectionBlue};
}
${({ isDisabled }) => isDisabled ? 'color: #b6b6b6; cursor: default; background-color: #f0f0f0;' : ''}
`;

Expand Down
2 changes: 1 addition & 1 deletion lib/ui/components/common/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const OptionsContainer = styled(Div)`
const Option = styled(Div)`
padding: ${(props) => props.withPadding ? '5px 5px 5px 32px' : '5px'};
user-select: none;
&:hover {
cursor: pointer;
background-color: #c9dcf4;
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/icons/clear.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/collapse-all.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/collapsed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/expand-all.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/expanded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/full-size.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/funnel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/half-size.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/help.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/loupe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/mocked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/new.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/pencil.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/pro.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ui/icons/rec.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e19cf6f

Please sign in to comment.