Enforce react/jsx-boolean-value
Summary: yarn fix results. Reviewed By: nikoant Differential Revision: D28329714 fbshipit-source-id: 564aa24bcdb4bc6cdea67dfad10a077a9c817a2d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8ba27f5487
commit
69c7876be9
@@ -223,7 +223,7 @@ class FeedbackComponent extends Component<
|
|||||||
onKeyDown={(e) =>
|
onKeyDown={(e) =>
|
||||||
e.key == 'Enter' && this.onCommentSubmitted(this.state.comment)
|
e.key == 'Enter' && this.onCommentSubmitted(this.state.comment)
|
||||||
}
|
}
|
||||||
autoFocus={true}
|
autoFocus
|
||||||
/>
|
/>
|
||||||
</Row>,
|
</Row>,
|
||||||
<Row key="contactCheckbox">
|
<Row key="contactCheckbox">
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ class SettingsSheet extends Component<Props, State> {
|
|||||||
<FilePathConfigField
|
<FilePathConfigField
|
||||||
label="IDB binary location"
|
label="IDB binary location"
|
||||||
defaultValue={idbPath}
|
defaultValue={idbPath}
|
||||||
isRegularFile={true}
|
isRegularFile
|
||||||
onChange={(v) => {
|
onChange={(v) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
updatedSettings: {...this.state.updatedSettings, idbPath: v},
|
updatedSettings: {...this.state.updatedSettings, idbPath: v},
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default class Popover extends PureComponent<Props> {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<VBox scrollable={true} maxHeight={300}>
|
<VBox scrollable maxHeight={300}>
|
||||||
<Info type={this.props.type}>
|
<Info type={this.props.type}>
|
||||||
<Title bold>{this.props.title}</Title>
|
<Title bold>{this.props.title}</Title>
|
||||||
{this.props.errors.map((e: Error, index) => (
|
{this.props.errors.map((e: Error, index) => (
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export default class VideoRecordingButton extends Component<Props, State> {
|
|||||||
const {selectedDevice} = this.props;
|
const {selectedDevice} = this.props;
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
compact={true}
|
compact
|
||||||
onClick={this.onRecordingClicked}
|
onClick={this.onRecordingClicked}
|
||||||
pulse={this.state.recording}
|
pulse={this.state.recording}
|
||||||
selected={this.state.recording}
|
selected={this.state.recording}
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ const PluginInstaller = function ({
|
|||||||
<ManagedTable_immutable
|
<ManagedTable_immutable
|
||||||
rowLineHeight={28}
|
rowLineHeight={28}
|
||||||
floating={false}
|
floating={false}
|
||||||
multiline={true}
|
multiline
|
||||||
columnSizes={columnSizes}
|
columnSizes={columnSizes}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
highlightableRows={false}
|
highlightableRows={false}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ test('load PluginInstaller list', async () => {
|
|||||||
// Bit ugly to have this as an effectively test-only option, but
|
// Bit ugly to have this as an effectively test-only option, but
|
||||||
// without, we rely on height information from Electron which we don't
|
// without, we rely on height information from Electron which we don't
|
||||||
// have, causing no items to be rendered.
|
// have, causing no items to be rendered.
|
||||||
autoHeight={true}
|
autoHeight
|
||||||
/>
|
/>
|
||||||
</Provider>
|
</Provider>
|
||||||
);
|
);
|
||||||
@@ -106,7 +106,7 @@ test('load PluginInstaller list with one plugin installed', async () => {
|
|||||||
// Bit ugly to have this as an effectively test-only option, but
|
// Bit ugly to have this as an effectively test-only option, but
|
||||||
// without, we rely on height information from Electron which we don't
|
// without, we rely on height information from Electron which we don't
|
||||||
// have, causing no items to be rendered.
|
// have, causing no items to be rendered.
|
||||||
autoHeight={true}
|
autoHeight
|
||||||
/>
|
/>
|
||||||
</Provider>
|
</Provider>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -198,18 +198,18 @@ export function createTablePlugin<T extends RowData>(props: Props<T>) {
|
|||||||
const {columns, columnSizes} = props;
|
const {columns, columnSizes} = props;
|
||||||
const {rows} = this.props.persistedState;
|
const {rows} = this.props.persistedState;
|
||||||
return (
|
return (
|
||||||
<FlexColumn grow={true}>
|
<FlexColumn grow>
|
||||||
<SearchableTable_immutable
|
<SearchableTable_immutable
|
||||||
key={this.constructor.id}
|
key={this.constructor.id}
|
||||||
rowLineHeight={28}
|
rowLineHeight={28}
|
||||||
floating={false}
|
floating={false}
|
||||||
multiline={true}
|
multiline
|
||||||
columnSizes={columnSizes}
|
columnSizes={columnSizes}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
onRowHighlighted={this.onRowHighlighted}
|
onRowHighlighted={this.onRowHighlighted}
|
||||||
multiHighlight={true}
|
multiHighlight
|
||||||
rows={rows}
|
rows={rows}
|
||||||
stickyBottom={true}
|
stickyBottom
|
||||||
actions={<Button onClick={this.clear}>Clear Table</Button>}
|
actions={<Button onClick={this.clear}>Clear Table</Button>}
|
||||||
/>
|
/>
|
||||||
<DetailSidebar>{this.renderSidebar()}</DetailSidebar>
|
<DetailSidebar>{this.renderSidebar()}</DetailSidebar>
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ function renderValue({type, value}: {type: string; value: any}) {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case 'boolean':
|
case 'boolean':
|
||||||
return (
|
return (
|
||||||
<BooleanValue code={true} active={value}>
|
<BooleanValue code active={value}>
|
||||||
{value.toString()}
|
{value.toString()}
|
||||||
</BooleanValue>
|
</BooleanValue>
|
||||||
);
|
);
|
||||||
@@ -232,7 +232,7 @@ function renderSidebarSection(
|
|||||||
case 'json':
|
case 'json':
|
||||||
return (
|
return (
|
||||||
<Panel floating={false} heading={section.title} key={index}>
|
<Panel floating={false} heading={section.title} key={index}>
|
||||||
<DataInspector data={section.content} expandRoot={true} />
|
<DataInspector data={section.content} expandRoot />
|
||||||
</Panel>
|
</Panel>
|
||||||
);
|
);
|
||||||
case 'toolbar':
|
case 'toolbar':
|
||||||
@@ -240,7 +240,7 @@ function renderSidebarSection(
|
|||||||
default:
|
default:
|
||||||
return (
|
return (
|
||||||
<Panel floating={false} heading={'Details'} key={index}>
|
<Panel floating={false} heading={'Details'} key={index}>
|
||||||
<DataInspector data={section} expandRoot={true} />
|
<DataInspector data={section} expandRoot />
|
||||||
</Panel>
|
</Panel>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -480,20 +480,20 @@ export default function createTableNativePlugin(id: string, title: string) {
|
|||||||
: null;
|
: null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FlexColumn grow={true}>
|
<FlexColumn grow>
|
||||||
{topToolbarComponent}
|
{topToolbarComponent}
|
||||||
<SearchableTable
|
<SearchableTable
|
||||||
key={this.constructor.id}
|
key={this.constructor.id}
|
||||||
rowLineHeight={28}
|
rowLineHeight={28}
|
||||||
floating={false}
|
floating={false}
|
||||||
multiline={true}
|
multiline
|
||||||
columnSizes={columnSizes}
|
columnSizes={columnSizes}
|
||||||
columnOrder={columnOrder}
|
columnOrder={columnOrder}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
onRowHighlighted={this.onRowHighlighted}
|
onRowHighlighted={this.onRowHighlighted}
|
||||||
multiHighlight={true}
|
multiHighlight
|
||||||
rows={this.applyMetadataToRows(rows)}
|
rows={this.applyMetadataToRows(rows)}
|
||||||
stickyBottom={true}
|
stickyBottom
|
||||||
actions={<Button onClick={this.clear}>Clear Table</Button>}
|
actions={<Button onClick={this.clear}>Clear Table</Button>}
|
||||||
/>
|
/>
|
||||||
<DetailSidebar>{this.renderSidebar()}</DetailSidebar>
|
<DetailSidebar>{this.renderSidebar()}</DetailSidebar>
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export const ButtonGroupContext = createContext(false);
|
|||||||
*/
|
*/
|
||||||
export default function ButtonGroup({children}: {children: React.ReactNode}) {
|
export default function ButtonGroup({children}: {children: React.ReactNode}) {
|
||||||
return (
|
return (
|
||||||
<ButtonGroupContext.Provider value={true}>
|
<ButtonGroupContext.Provider value>
|
||||||
<Space>{children}</Space>
|
<Space>{children}</Space>
|
||||||
</ButtonGroupContext.Provider>
|
</ButtonGroupContext.Provider>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ type Props = {
|
|||||||
*/
|
*/
|
||||||
export default function ButtonGroupChain({children, iconSize, icon}: Props) {
|
export default function ButtonGroupChain({children, iconSize, icon}: Props) {
|
||||||
return (
|
return (
|
||||||
<ButtonGroupContext.Provider value={true}>
|
<ButtonGroupContext.Provider value>
|
||||||
<ButtonGroupChainContainer iconSize={iconSize}>
|
<ButtonGroupChainContainer iconSize={iconSize}>
|
||||||
{React.Children.map(children, (child, idx) => {
|
{React.Children.map(children, (child, idx) => {
|
||||||
if (idx === 0) {
|
if (idx === 0) {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ export default class ErrorBoundary extends Component<
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ErrorBoundaryContainer grow={true}>
|
<ErrorBoundaryContainer grow>
|
||||||
<Heading>{heading}</Heading>
|
<Heading>{heading}</Heading>
|
||||||
{this.props.showStack !== false && (
|
{this.props.showStack !== false && (
|
||||||
<ErrorBoundaryStack error={error} />
|
<ErrorBoundaryStack error={error} />
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ export default function FileSelector({
|
|||||||
<FileInputBox
|
<FileInputBox
|
||||||
placeholder={placeholderText}
|
placeholder={placeholderText}
|
||||||
value={value}
|
value={value}
|
||||||
isValid={true}
|
isValid
|
||||||
onDrop={(e) => {
|
onDrop={(e) => {
|
||||||
if (e.dataTransfer.files.length) {
|
if (e.dataTransfer.files.length) {
|
||||||
onChange(e.dataTransfer.files[0].path);
|
onChange(e.dataTransfer.files[0].path);
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ export default class StackTrace extends Component<{
|
|||||||
<ManagedTable
|
<ManagedTable
|
||||||
columns={columns}
|
columns={columns}
|
||||||
rows={rows}
|
rows={rows}
|
||||||
hideHeader={true}
|
hideHeader
|
||||||
autoHeight
|
autoHeight
|
||||||
zebra={false}
|
zebra={false}
|
||||||
columnOrder={columnOrder}
|
columnOrder={columnOrder}
|
||||||
|
|||||||
@@ -315,7 +315,7 @@ export default function Tabs(props: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FlexColumn grow={true}>
|
<FlexColumn grow>
|
||||||
<TabList>
|
<TabList>
|
||||||
{before}
|
{before}
|
||||||
{tabList}
|
{tabList}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const TabsContext = React.createContext(true);
|
|||||||
export default function TabsContainer(props: {children: any}) {
|
export default function TabsContainer(props: {children: any}) {
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<TabsContext.Provider value={true}>{props.children}</TabsContext.Provider>
|
<TabsContext.Provider value>{props.children}</TabsContext.Provider>
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,11 +133,7 @@ export default class VirtualList extends Component<
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View
|
<View grow onScroll={this.handleScroll} ref={this.setRef} scrollable>
|
||||||
grow={true}
|
|
||||||
onScroll={this.handleScroll}
|
|
||||||
ref={this.setRef}
|
|
||||||
scrollable={true}>
|
|
||||||
{inner}
|
{inner}
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -66,8 +66,8 @@ class InspectorSidebarSection extends Component<InspectorSidebarSectionProps> {
|
|||||||
data={this.props.data}
|
data={this.props.data}
|
||||||
setValue={this.props.onValueChanged ? this.setValue : undefined}
|
setValue={this.props.onValueChanged ? this.setValue : undefined}
|
||||||
extractValue={this.extractValue}
|
extractValue={this.extractValue}
|
||||||
expandRoot={true}
|
expandRoot
|
||||||
collapsed={true}
|
collapsed
|
||||||
tooltips={this.props.tooltips}
|
tooltips={this.props.tooltips}
|
||||||
/>
|
/>
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ class TableHeadColumn extends PureComponent<{
|
|||||||
if (isResizable) {
|
if (isResizable) {
|
||||||
children = (
|
children = (
|
||||||
<TableHeaderColumnInteractive
|
<TableHeaderColumnInteractive
|
||||||
grow={true}
|
grow
|
||||||
resizable={RIGHT_RESIZABLE}
|
resizable={RIGHT_RESIZABLE}
|
||||||
onResize={this.onResize}
|
onResize={this.onResize}
|
||||||
minWidth={20}>
|
minWidth={20}>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ test('changing collapsed property works', async () => {
|
|||||||
res.rerender(<DataInspector data={json} collapsed={false} expandRoot />);
|
res.rerender(<DataInspector data={json} collapsed={false} expandRoot />);
|
||||||
await res.findByText(/cool/);
|
await res.findByText(/cool/);
|
||||||
|
|
||||||
res.rerender(<DataInspector data={json} collapsed={true} expandRoot />);
|
res.rerender(<DataInspector data={json} collapsed expandRoot />);
|
||||||
expect(res.queryAllByText(/cool/).length).toBe(0);
|
expect(res.queryAllByText(/cool/).length).toBe(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ function TableHeadColumn({
|
|||||||
if (isResizable) {
|
if (isResizable) {
|
||||||
children = (
|
children = (
|
||||||
<TableHeaderColumnInteractive
|
<TableHeaderColumnInteractive
|
||||||
grow={true}
|
grow
|
||||||
resizable={RIGHT_RESIZABLE}
|
resizable={RIGHT_RESIZABLE}
|
||||||
onResize={onResize}
|
onResize={onResize}
|
||||||
minWidth={20}>
|
minWidth={20}>
|
||||||
|
|||||||
@@ -62,14 +62,14 @@ export default class TemperatureTable extends Component<TemperatureTableProps> {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<SearchableTable
|
<SearchableTable
|
||||||
multiline={true}
|
multiline
|
||||||
autoHeight={true}
|
autoHeight
|
||||||
floating={false}
|
floating={false}
|
||||||
zebra={true}
|
zebra
|
||||||
columnSizes={ColumnSizes}
|
columnSizes={ColumnSizes}
|
||||||
columns={Columns}
|
columns={Columns}
|
||||||
rows={this.buildRows()}
|
rows={this.buildRows()}
|
||||||
grow={true}
|
grow
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,9 +81,7 @@ function buildSidebarRow(key: string, val: Value): TableRow {
|
|||||||
var parsed = JSON.parse(val.value);
|
var parsed = JSON.parse(val.value);
|
||||||
} catch (_error) {}
|
} catch (_error) {}
|
||||||
if (parsed) {
|
if (parsed) {
|
||||||
output = (
|
output = <ManagedDataInspector data={parsed} expandRoot collapsed />;
|
||||||
<ManagedDataInspector data={parsed} expandRoot={true} collapsed />
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
@@ -186,7 +184,7 @@ export default React.memo(function DatabaseDetailSidebar(
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<DetailSidebar>
|
<DetailSidebar>
|
||||||
<Panel title="Row details" collapsible={true}>
|
<Panel title="Row details" collapsible>
|
||||||
{onSave ? (
|
{onSave ? (
|
||||||
<Layout.Right>
|
<Layout.Right>
|
||||||
<div />
|
<div />
|
||||||
|
|||||||
@@ -131,9 +131,9 @@ const QueryHistory = React.memo(({history}: {history: Array<Query>}) => {
|
|||||||
floating={false}
|
floating={false}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
columnSizes={{time: 75}}
|
columnSizes={{time: 75}}
|
||||||
zebra={true}
|
zebra
|
||||||
rows={rows}
|
rows={rows}
|
||||||
horizontallyScrollable={true}
|
horizontallyScrollable
|
||||||
/>
|
/>
|
||||||
</Layout.Horizontal>
|
</Layout.Horizontal>
|
||||||
);
|
);
|
||||||
@@ -232,12 +232,12 @@ const DataTable = React.memo(
|
|||||||
}),
|
}),
|
||||||
{},
|
{},
|
||||||
)}
|
)}
|
||||||
zebra={true}
|
zebra
|
||||||
rows={page.rows.map((row: Array<Value>, index: number) =>
|
rows={page.rows.map((row: Array<Value>, index: number) =>
|
||||||
transformRow(page.columns, row, index),
|
transformRow(page.columns, row, index),
|
||||||
)}
|
)}
|
||||||
horizontallyScrollable={true}
|
horizontallyScrollable
|
||||||
multiHighlight={true}
|
multiHighlight
|
||||||
onRowHighlighted={highlightedRowsChanged}
|
onRowHighlighted={highlightedRowsChanged}
|
||||||
onSort={sortOrderChanged}
|
onSort={sortOrderChanged}
|
||||||
initialSortOrder={currentSort ?? undefined}
|
initialSortOrder={currentSort ?? undefined}
|
||||||
@@ -281,7 +281,7 @@ const QueryTable = React.memo(
|
|||||||
<Layout.Horizontal grow>
|
<Layout.Horizontal grow>
|
||||||
<ManagedTable
|
<ManagedTable
|
||||||
floating={false}
|
floating={false}
|
||||||
multiline={true}
|
multiline
|
||||||
columnOrder={columns.map((name) => ({
|
columnOrder={columns.map((name) => ({
|
||||||
key: name,
|
key: name,
|
||||||
visible: true,
|
visible: true,
|
||||||
@@ -291,11 +291,11 @@ const QueryTable = React.memo(
|
|||||||
Object.assign({}, acc, {[val]: {value: val, resizable: true}}),
|
Object.assign({}, acc, {[val]: {value: val, resizable: true}}),
|
||||||
{},
|
{},
|
||||||
)}
|
)}
|
||||||
zebra={true}
|
zebra
|
||||||
rows={rows.map((row: Array<Value>, index: number) =>
|
rows={rows.map((row: Array<Value>, index: number) =>
|
||||||
transformRow(columns, row, index),
|
transformRow(columns, row, index),
|
||||||
)}
|
)}
|
||||||
horizontallyScrollable={true}
|
horizontallyScrollable
|
||||||
onRowHighlighted={highlightedRowsChanged}
|
onRowHighlighted={highlightedRowsChanged}
|
||||||
/>
|
/>
|
||||||
{table.highlightedRows.length === 1 && (
|
{table.highlightedRows.length === 1 && (
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ export default class ImagesCacheOverview extends PureComponent<
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ImagesCacheOverview.Container
|
<ImagesCacheOverview.Container
|
||||||
grow={true}
|
grow
|
||||||
onKeyDown={this.onKeyDown}
|
onKeyDown={this.onKeyDown}
|
||||||
tabIndex={0}>
|
tabIndex={0}>
|
||||||
<Toolbar position="top">
|
<Toolbar position="top">
|
||||||
|
|||||||
@@ -100,10 +100,7 @@ class EventDetails extends Component<{
|
|||||||
const {event} = this.props;
|
const {event} = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Panel
|
<Panel heading={<RequestHeader event={event} />} floating={false} padded>
|
||||||
heading={<RequestHeader event={event} />}
|
|
||||||
floating={false}
|
|
||||||
padded={true}>
|
|
||||||
<p>
|
<p>
|
||||||
<DataDescriptionKey>Attribution</DataDescriptionKey>
|
<DataDescriptionKey>Attribution</DataDescriptionKey>
|
||||||
<span key="sep">: </span>
|
<span key="sep">: </span>
|
||||||
|
|||||||
@@ -115,15 +115,14 @@ export function plugin(client: PluginClient<Events, Methods>) {
|
|||||||
message: (
|
message: (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<InlineFlexRow>
|
<InlineFlexRow>
|
||||||
CloseableReference leaked for{' '}
|
CloseableReference leaked for <Text code>{event.className}</Text>
|
||||||
<Text code={true}>{event.className}</Text>
|
|
||||||
(identity hashcode: {event.identityHashCode}).
|
(identity hashcode: {event.identityHashCode}).
|
||||||
</InlineFlexRow>
|
</InlineFlexRow>
|
||||||
<InlineFlexRow>
|
<InlineFlexRow>
|
||||||
<Text bold={true}>Stacktrace:</Text>
|
<Text bold>Stacktrace:</Text>
|
||||||
</InlineFlexRow>
|
</InlineFlexRow>
|
||||||
<InlineFlexRow>
|
<InlineFlexRow>
|
||||||
<Text code={true}>{event.stacktrace || '<unavailable>'}</Text>
|
<Text code>{event.stacktrace || '<unavailable>'}</Text>
|
||||||
</InlineFlexRow>
|
</InlineFlexRow>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
),
|
),
|
||||||
@@ -466,7 +465,7 @@ function Sidebar() {
|
|||||||
|
|
||||||
if (currentSelectedImage == null) {
|
if (currentSelectedImage == null) {
|
||||||
return (
|
return (
|
||||||
<EmptySidebar grow={true}>
|
<EmptySidebar grow>
|
||||||
<Text align="center">
|
<Text align="center">
|
||||||
Select an image to see the events associated with it.
|
Select an image to see the events associated with it.
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
@@ -390,7 +390,7 @@ export default class AllocationsPlugin extends FlipperDevicePlugin<
|
|||||||
heading="Page allocations"
|
heading="Page allocations"
|
||||||
floating={false}
|
floating={false}
|
||||||
collapsable={false}
|
collapsable={false}
|
||||||
grow={true}>
|
grow>
|
||||||
<Toolbar position="top">
|
<Toolbar position="top">
|
||||||
<Select
|
<Select
|
||||||
options={appTitlesForSelect}
|
options={appTitlesForSelect}
|
||||||
@@ -429,11 +429,11 @@ export default class AllocationsPlugin extends FlipperDevicePlugin<
|
|||||||
{(this.state.totalAllocatedBytes / 1024 / 1024).toFixed(3)}
|
{(this.state.totalAllocatedBytes / 1024 / 1024).toFixed(3)}
|
||||||
</Label>
|
</Label>
|
||||||
<ManagedTable
|
<ManagedTable
|
||||||
multiline={true}
|
multiline
|
||||||
columnSizes={ColumnSizes}
|
columnSizes={ColumnSizes}
|
||||||
columns={Columns}
|
columns={Columns}
|
||||||
floating={false}
|
floating={false}
|
||||||
zebra={true}
|
zebra
|
||||||
rows={this.buildMemRows()}
|
rows={this.buildMemRows()}
|
||||||
/>
|
/>
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ export default class KaiOSGraphs extends FlipperDevicePlugin<State, any, any> {
|
|||||||
heading="Free memory"
|
heading="Free memory"
|
||||||
floating={false}
|
floating={false}
|
||||||
collapsable={false}
|
collapsable={false}
|
||||||
grow={true}>
|
grow>
|
||||||
<Toolbar position="top">
|
<Toolbar position="top">
|
||||||
{this.state.monitoring ? (
|
{this.state.monitoring ? (
|
||||||
<Button onClick={this.onStopMonitor} icon="pause">
|
<Button onClick={this.onStopMonitor} icon="pause">
|
||||||
@@ -256,7 +256,7 @@ export default class KaiOSGraphs extends FlipperDevicePlugin<State, any, any> {
|
|||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</Toolbar>
|
</Toolbar>
|
||||||
<FlexColumn grow={true}>
|
<FlexColumn grow>
|
||||||
<ResponsiveContainer height={500}>
|
<ResponsiveContainer height={500}>
|
||||||
<LineChart data={pointsToDraw}>
|
<LineChart data={pointsToDraw}>
|
||||||
<XAxis type="number" domain={[0, MAX_POINTS]} dataKey="idx" />
|
<XAxis type="number" domain={[0, MAX_POINTS]} dataKey="idx" />
|
||||||
|
|||||||
@@ -69,8 +69,8 @@ class InspectorSidebarSection extends PureComponent<InspectorSidebarSectionProps
|
|||||||
data={this.props.data}
|
data={this.props.data}
|
||||||
setValue={this.props.onValueChanged ? this.setValue : undefined}
|
setValue={this.props.onValueChanged ? this.setValue : undefined}
|
||||||
extractValue={this.extractValue}
|
extractValue={this.extractValue}
|
||||||
expandRoot={true}
|
expandRoot
|
||||||
collapsed={true}
|
collapsed
|
||||||
tooltips={this.props.tooltips}
|
tooltips={this.props.tooltips}
|
||||||
/>
|
/>
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|||||||
@@ -448,7 +448,7 @@ export default class LayoutPlugin extends FlipperPlugin<
|
|||||||
<Inspector
|
<Inspector
|
||||||
{...inspectorProps}
|
{...inspectorProps}
|
||||||
onSelect={(selectedAXElement) => this.setState({selectedAXElement})}
|
onSelect={(selectedAXElement) => this.setState({selectedAXElement})}
|
||||||
showsSidebar={true}
|
showsSidebar
|
||||||
ax
|
ax
|
||||||
/>
|
/>
|
||||||
</Sidebar>
|
</Sidebar>
|
||||||
@@ -533,7 +533,7 @@ export default class LayoutPlugin extends FlipperPlugin<
|
|||||||
element.decoration === 'litho' ? (
|
element.decoration === 'litho' ? (
|
||||||
<Button
|
<Button
|
||||||
icon={'share-external'}
|
icon={'share-external'}
|
||||||
compact={true}
|
compact
|
||||||
style={{marginTop: 8, marginRight: 12}}
|
style={{marginTop: 8, marginRight: 12}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
this.props.selectPlugin('YogaPerformance', element!.id);
|
this.props.selectPlugin('YogaPerformance', element!.id);
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ export default class LeakCanary<PersistedState> extends FlipperPlugin<
|
|||||||
<Panel heading={'Instance'} floating={false} grow={false}>
|
<Panel heading={'Instance'} floating={false} grow={false}>
|
||||||
<ManagedDataInspector
|
<ManagedDataInspector
|
||||||
data={instanceFields}
|
data={instanceFields}
|
||||||
expandRoot={true}
|
expandRoot
|
||||||
extractValue={this._extractValue}
|
extractValue={this._extractValue}
|
||||||
/>
|
/>
|
||||||
</Panel>
|
</Panel>
|
||||||
@@ -201,7 +201,7 @@ export default class LeakCanary<PersistedState> extends FlipperPlugin<
|
|||||||
<Panel heading={'Static'} floating={false} grow={false}>
|
<Panel heading={'Static'} floating={false} grow={false}>
|
||||||
<ManagedDataInspector
|
<ManagedDataInspector
|
||||||
data={staticFields}
|
data={staticFields}
|
||||||
expandRoot={true}
|
expandRoot
|
||||||
extractValue={this._extractValue}
|
extractValue={this._extractValue}
|
||||||
/>
|
/>
|
||||||
</Panel>
|
</Panel>
|
||||||
@@ -221,8 +221,8 @@ export default class LeakCanary<PersistedState> extends FlipperPlugin<
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Window>
|
<Window>
|
||||||
<FlexColumn grow={true}>
|
<FlexColumn grow>
|
||||||
<FlexColumn grow={true} scrollable={true}>
|
<FlexColumn grow scrollable>
|
||||||
{this.state.leaks.map((leak: Leak, idx: number) => {
|
{this.state.leaks.map((leak: Leak, idx: number) => {
|
||||||
const elements = showFullClassPaths
|
const elements = showFullClassPaths
|
||||||
? leak.elements
|
? leak.elements
|
||||||
|
|||||||
@@ -39,12 +39,7 @@ export default (props: Props) => {
|
|||||||
{...iconButtonProps}
|
{...iconButtonProps}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
<IconButton
|
<IconButton outline icon="star" onClick={onClick} {...iconButtonProps} />
|
||||||
outline={true}
|
|
||||||
icon="star"
|
|
||||||
onClick={onClick}
|
|
||||||
{...iconButtonProps}
|
|
||||||
/>
|
|
||||||
</FavoriteButtonContainer>
|
</FavoriteButtonContainer>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ class SearchBar extends Component<Props, State> {
|
|||||||
<IconButton
|
<IconButton
|
||||||
icon="send"
|
icon="send"
|
||||||
size={16}
|
size={16}
|
||||||
outline={true}
|
outline
|
||||||
onClick={() => this.navigateTo(searchInputValue)}
|
onClick={() => this.navigateTo(searchInputValue)}
|
||||||
/>
|
/>
|
||||||
<FavoriteButton
|
<FavoriteButton
|
||||||
|
|||||||
@@ -390,7 +390,7 @@ class VideoFormatter {
|
|||||||
if (contentType.startsWith('video/')) {
|
if (contentType.startsWith('video/')) {
|
||||||
return (
|
return (
|
||||||
<Layout.Container center>
|
<Layout.Container center>
|
||||||
<VideoFormatter.Video controls={true}>
|
<VideoFormatter.Video controls>
|
||||||
<source src={request.url} type={contentType} />
|
<source src={request.url} type={contentType} />
|
||||||
</VideoFormatter.Video>
|
</VideoFormatter.Video>
|
||||||
</Layout.Container>
|
</Layout.Container>
|
||||||
|
|||||||
@@ -515,7 +515,7 @@ export function Component() {
|
|||||||
return (
|
return (
|
||||||
<NetworkRouteContext.Provider value={networkRouteManager}>
|
<NetworkRouteContext.Provider value={networkRouteManager}>
|
||||||
<Layout.Container
|
<Layout.Container
|
||||||
grow={true}
|
grow
|
||||||
key={
|
key={
|
||||||
columns.length /* make sure to reset the table if colums change */
|
columns.length /* make sure to reset the table if colums change */
|
||||||
}>
|
}>
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ function renderSidebar(row: Row) {
|
|||||||
return (
|
return (
|
||||||
<Layout.Container gap pad>
|
<Layout.Container gap pad>
|
||||||
<Typography.Title level={4}>Extras</Typography.Title>
|
<Typography.Title level={4}>Extras</Typography.Title>
|
||||||
<ManagedDataInspector data={row} expandRoot={true} />
|
<ManagedDataInspector data={row} expandRoot />
|
||||||
</Layout.Container>
|
</Layout.Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ export function Component() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<RootColumn grow={true}>
|
<RootColumn grow>
|
||||||
<Heading>
|
<Heading>
|
||||||
<span style={{marginRight: '16px'}}>Preference File</span>
|
<span style={{marginRight: '16px'}}>Preference File</span>
|
||||||
<Select
|
<Select
|
||||||
@@ -180,7 +180,7 @@ export function Component() {
|
|||||||
onChange={instance.setSelectedPreferences}
|
onChange={instance.setSelectedPreferences}
|
||||||
/>
|
/>
|
||||||
</Heading>
|
</Heading>
|
||||||
<FlexRow grow={true} scrollable={true}>
|
<FlexRow grow scrollable>
|
||||||
<InspectorColumn>
|
<InspectorColumn>
|
||||||
<Heading>Inspector</Heading>
|
<Heading>Inspector</Heading>
|
||||||
<ManagedDataInspector
|
<ManagedDataInspector
|
||||||
|
|||||||
Reference in New Issue
Block a user