update plugin's package.json

Summary:
For all plugins:
- move static fields `title`, `id` and `icon` to `package.json`
- adds "bugs" field for all plugins containing links to support groups/oncalls.

Reviewed By: priteshrnandgaonkar

Differential Revision: D13417286

fbshipit-source-id: 7b341176915f3ed7b473b95c1d879f21d7d634ef
This commit is contained in:
Daniel Büchele
2018-12-18 10:12:43 -08:00
committed by Facebook Github Bot
parent c9b982b182
commit 1fc73ad2fb
19 changed files with 62 additions and 49 deletions

View File

@@ -22,14 +22,14 @@ type RowData = {
id: ID, id: ID,
}; };
type Props<T> = { type Props<T> = {|
method: string, method: string,
resetMethod?: string, resetMethod?: string,
columns: TableColumns, columns: TableColumns,
columnSizes: TableColumnSizes, columnSizes: TableColumnSizes,
renderSidebar: (row: T) => any, renderSidebar: (row: T) => any,
buildRow: (row: T) => any, buildRow: (row: T) => any,
}; |};
type PersistedState<T> = {| type PersistedState<T> = {|
rows: TableRows, rows: TableRows,

View File

@@ -99,10 +99,6 @@ function formatFrequency(freq) {
} }
export default class CPUFrequencyTable extends FlipperDevicePlugin<CPUState> { export default class CPUFrequencyTable extends FlipperDevicePlugin<CPUState> {
static id = 'DeviceCPU';
static title = 'CPU';
static icon = 'underline';
adbClient: ADBClient; adbClient: ADBClient;
intervalID: ?IntervalID; intervalID: ?IntervalID;

View File

@@ -1,9 +1,14 @@
{ {
"name": "flipper-plugin-device-cpu", "name": "DeviceCPU",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"adbkit-fb": "2.10.1" "adbkit-fb": "2.10.1"
},
"title": "CPU",
"icon": "underline",
"bugs": {
"email": "barney@fb.com"
} }
} }

View File

@@ -63,10 +63,6 @@ const CallStack = styled('pre')({
}); });
export default class CrashReporterPlugin extends FlipperDevicePlugin { export default class CrashReporterPlugin extends FlipperDevicePlugin {
static title = 'Crash Reporter';
static id = 'CrashReporter';
static icon = 'apps';
static defaultPersistedState = { static defaultPersistedState = {
crashes: [], crashes: [],
}; };

View File

@@ -1,9 +1,14 @@
{ {
"name": "flipper-plugin-crash-reporter", "name": "CrashReporter",
"version": "0.1.0", "version": "0.1.0",
"description": "A plugin which will display a crash", "description": "A plugin which will display a crash",
"main": "index.js", "main": "index.js",
"gatekeeper": "flipper_crash_reporter_plugin", "gatekeeper": "flipper_crash_reporter_plugin",
"repository": "https://github.com/facebook/flipper", "repository": "https://github.com/facebook/flipper",
"license": "MIT" "license": "MIT",
"title": "Crash Reporter",
"bugs": {
"email": "prit91@fb.com",
"url": "https://fb.workplace.com/groups/220760072184928/"
}
} }

View File

@@ -29,10 +29,6 @@ const Container = styled(FlexColumn)({
}); });
export default class extends FlipperPlugin<*, State, PersistedState> { export default class extends FlipperPlugin<*, State, PersistedState> {
static title = 'Example';
static id = 'Example';
static icon = 'apps';
static defaultPersistedState = { static defaultPersistedState = {
currentNotificationIds: [], currentNotificationIds: [],
receivedMessage: null, receivedMessage: null,

View File

@@ -1,6 +1,12 @@
{ {
"name": "flipper-plugin-sample", "name": "Example",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"license": "MIT" "license": "MIT",
"title": "Example Plugin",
"icon": "apps",
"bugs": {
"email": "oncall+flipper@xmail.facebook.com",
"url": "https://fb.workplace.com/groups/230455004101832/"
}
} }

View File

@@ -188,10 +188,6 @@ class LayoutSearchInput extends Component<
} }
export default class Layout extends FlipperPlugin<InspectorState> { export default class Layout extends FlipperPlugin<InspectorState> {
static title = 'Layout';
static id = 'Inspector';
static icon = 'target';
state = { state = {
elements: {}, elements: {},
initialised: false, initialised: false,

View File

@@ -1,9 +1,15 @@
{ {
"name": "flipper-plugin-layout", "name": "Inspector",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"lodash.debounce": "^4.0.8" "lodash.debounce": "^4.0.8"
},
"title": "Layout",
"icon": "target",
"bugs": {
"email": "oncall+flipper@xmail.facebook.com",
"url": "https://fb.workplace.com/groups/230455004101832/"
} }
} }

View File

@@ -54,9 +54,6 @@ const ToolbarItem = styled(FlexRow)({
}); });
export default class LeakCanary extends FlipperPlugin<State> { export default class LeakCanary extends FlipperPlugin<State> {
static title = 'LeakCanary';
static id = 'LeakCanary';
static icon = 'bird';
state = { state = {
leaks: [], leaks: [],
selectedIdx: null, selectedIdx: null,

View File

@@ -1,9 +1,13 @@
{ {
"name": "flipper-plugin-leakcanary", "name": "LeakCanary",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"lodash": "^4.17.5" "lodash": "^4.17.5"
},
"icon": "bird",
"bugs": {
"email": "jhli@fb.com"
} }
} }

View File

@@ -377,9 +377,6 @@ export default class LogTable extends FlipperDevicePlugin<
Actions, Actions,
PersistedState, PersistedState,
> { > {
static id = 'DeviceLogs';
static title = 'Logs';
static icon = 'arrow-right';
static keyboardActions = ['clear', 'goToBottom', 'createPaste']; static keyboardActions = ['clear', 'goToBottom', 'createPaste'];
initTimer: ?TimeoutID; initTimer: ?TimeoutID;

View File

@@ -1,7 +1,13 @@
{ {
"name": "flipper-plugin-device-logs", "name": "DeviceLogs",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"dependencies": {} "dependencies": {},
"title": "Logs",
"icon": "arrow-right",
"bugs": {
"email": "oncall+flipper@xmail.facebook.com",
"url": "https://fb.workplace.com/groups/230455004101832/"
}
} }

View File

@@ -112,9 +112,6 @@ const TextEllipsis = styled(Text)({
}); });
export default class extends FlipperPlugin<State, *, PersistedState> { export default class extends FlipperPlugin<State, *, PersistedState> {
static title = 'Network';
static id = 'Network';
static icon = 'internet';
static keyboardActions = ['clear']; static keyboardActions = ['clear'];
static subscribed = []; static subscribed = [];
static defaultPersistedState = { static defaultPersistedState = {

View File

@@ -1,10 +1,15 @@
{ {
"name": "flipper-plugin-network", "name": "Network",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"pako": "^1.0.6", "pako": "^1.0.6",
"xml-beautifier": "^0.4.0" "xml-beautifier": "^0.4.0"
},
"icon": "internet",
"bugs": {
"email": "oncall+flipper@xmail.facebook.com",
"url": "https://fb.workplace.com/groups/230455004101832/"
} }
} }

View File

@@ -38,10 +38,6 @@ export default class SandboxView extends FlipperPlugin<SandboxState> {
showFeedback: false, showFeedback: false,
}; };
static title = 'Sandbox';
static id = 'Sandbox';
static icon = 'translate';
static TextInput = styled('input')({ static TextInput = styled('input')({
border: `1px solid ${colors.light10}`, border: `1px solid ${colors.light10}`,
fontSize: '1em', fontSize: '1em',

View File

@@ -1,7 +1,11 @@
{ {
"name": "flipper-plugin-sandbox", "name": "Sandbox",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"gatekeeper": "sonar_sandbox_plugin" "gatekeeper": "sonar_sandbox_plugin",
"icon": "translate",
"bugs": {
"email": "edoardo@fb.com"
}
} }

View File

@@ -83,9 +83,6 @@ const RootColumn = styled(FlexColumn)({
}); });
export default class extends FlipperPlugin<SharedPreferencesState> { export default class extends FlipperPlugin<SharedPreferencesState> {
static title = 'Shared Preferences Viewer';
static id = 'Preferences';
state = { state = {
selectedPreferences: null, selectedPreferences: null,
sharedPreferences: {}, sharedPreferences: {},

View File

@@ -1,9 +1,13 @@
{ {
"name": "flipper-plugin-sharedpreferences", "name": "Preferences",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"lodash": "^4.17.5" "lodash": "^4.17.5"
},
"title": "Shared Preferences Viewer",
"bugs": {
"email": "halsibai@fb.com"
} }
} }