SonarPlugin > FlipperPlugin
Summary: Renaming: - `SonarPlugin` > `FlipperPlugin` - `SonarBasePlugin` > `FlipperBasePlugin` - `SonarDevicePlugin` > `FlipperDevicePlugin` Reviewed By: passy Differential Revision: D9851075 fbshipit-source-id: d59df6952a42eb493c86c38895216c9985f1e14b
This commit is contained in:
committed by
Facebook Github Bot
parent
47ec499973
commit
2e2924c979
@@ -9,7 +9,7 @@ import {GK} from 'sonar';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import * as Sonar from 'sonar';
|
||||
import {SonarPlugin, SonarBasePlugin} from '../plugin.js';
|
||||
import {FlipperPlugin, FlipperBasePlugin} from '../plugin.js';
|
||||
import {remote} from 'electron';
|
||||
|
||||
const plugins = new Map();
|
||||
@@ -54,7 +54,7 @@ bundledPlugins
|
||||
}))
|
||||
.forEach(addIfNotAdded);
|
||||
|
||||
const exportedPlugins: Array<Class<SonarPlugin<>>> = Array.from(
|
||||
const exportedPlugins: Array<Class<FlipperPlugin<>>> = Array.from(
|
||||
plugins.values(),
|
||||
)
|
||||
.map(plugin => {
|
||||
@@ -78,7 +78,7 @@ const exportedPlugins: Array<Class<SonarPlugin<>>> = Array.from(
|
||||
}
|
||||
})
|
||||
.filter(Boolean)
|
||||
.filter(plugin => plugin.prototype instanceof SonarBasePlugin)
|
||||
.filter(plugin => plugin.prototype instanceof FlipperBasePlugin)
|
||||
.sort((a, b) => (a.title || '').localeCompare(b.title || ''));
|
||||
|
||||
export default exportedPlugins;
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
FlexRow,
|
||||
FlexColumn,
|
||||
Toolbar,
|
||||
SonarPlugin,
|
||||
FlipperPlugin,
|
||||
ElementsInspector,
|
||||
InspectorSidebar,
|
||||
LoadingIndicator,
|
||||
@@ -186,7 +186,7 @@ class LayoutSearchInput extends Component<
|
||||
}
|
||||
}
|
||||
|
||||
export default class Layout extends SonarPlugin<InspectorState> {
|
||||
export default class Layout extends FlipperPlugin<InspectorState> {
|
||||
static title = 'Layout';
|
||||
static id = 'Inspector';
|
||||
static icon = 'target';
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
Sidebar,
|
||||
Toolbar,
|
||||
Checkbox,
|
||||
SonarPlugin,
|
||||
FlipperPlugin,
|
||||
Button,
|
||||
styled,
|
||||
} from 'sonar';
|
||||
@@ -53,7 +53,7 @@ const ToolbarItem = styled(FlexRow)({
|
||||
marginLeft: '8px',
|
||||
});
|
||||
|
||||
export default class LeakCanary extends SonarPlugin<State> {
|
||||
export default class LeakCanary extends FlipperPlugin<State> {
|
||||
static title = 'LeakCanary';
|
||||
static id = 'LeakCanary';
|
||||
static icon = 'bird';
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
SonarSidebar,
|
||||
styled,
|
||||
} from 'sonar';
|
||||
import {SonarPlugin, SearchableTable} from 'sonar';
|
||||
import {FlipperPlugin, SearchableTable} from 'sonar';
|
||||
import RequestDetails from './RequestDetails.js';
|
||||
import {URL} from 'url';
|
||||
|
||||
@@ -109,7 +109,7 @@ const TextEllipsis = styled(Text)({
|
||||
paddingTop: 4,
|
||||
});
|
||||
|
||||
export default class extends SonarPlugin<State, *, PersistedState> {
|
||||
export default class extends FlipperPlugin<State, *, PersistedState> {
|
||||
static title = 'Network';
|
||||
static id = 'Network';
|
||||
static icon = 'internet';
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {SonarPlugin} from 'sonar';
|
||||
import {FlipperPlugin} from 'sonar';
|
||||
import {FlexColumn} from 'sonar';
|
||||
import {ButtonGroup, Button, styled, colors} from 'sonar';
|
||||
|
||||
@@ -31,7 +31,7 @@ const ButtonContainer = styled(FlexColumn)({
|
||||
padding: 20,
|
||||
});
|
||||
|
||||
export default class SandboxView extends SonarPlugin<SandboxState> {
|
||||
export default class SandboxView extends FlipperPlugin<SandboxState> {
|
||||
state = {
|
||||
sandboxes: [],
|
||||
customSandbox: '',
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
DataInspector,
|
||||
styled,
|
||||
} from 'sonar';
|
||||
import {SonarPlugin} from 'sonar';
|
||||
import {FlipperPlugin} from 'sonar';
|
||||
|
||||
const {clone} = require('lodash');
|
||||
|
||||
@@ -66,7 +66,7 @@ const ChangelogColumn = styled(FlexColumn)({
|
||||
padding: '16px',
|
||||
});
|
||||
|
||||
export default class extends SonarPlugin<SharedPreferencesState> {
|
||||
export default class extends FlipperPlugin<SharedPreferencesState> {
|
||||
static title = 'Shared Preferences Viewer';
|
||||
static id = 'Preferences';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user