plugin manager button
Reviewed By: elboman Differential Revision: D47400185 fbshipit-source-id: fc2875808d8b2c2443766d7619091c65395b0c07
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5b27a6a4c9
commit
a7d3c265c6
@@ -11,7 +11,6 @@ import React, {cloneElement, useState, useCallback, useMemo} from 'react';
|
|||||||
import {Button, Divider, Badge, Tooltip, Menu, Modal} from 'antd';
|
import {Button, Divider, Badge, Tooltip, Menu, Modal} from 'antd';
|
||||||
import {
|
import {
|
||||||
MobileFilled,
|
MobileFilled,
|
||||||
AppstoreOutlined,
|
|
||||||
BellOutlined,
|
BellOutlined,
|
||||||
FileExclamationOutlined,
|
FileExclamationOutlined,
|
||||||
SettingOutlined,
|
SettingOutlined,
|
||||||
@@ -27,7 +26,6 @@ import {
|
|||||||
theme,
|
theme,
|
||||||
Layout,
|
Layout,
|
||||||
withTrackingScope,
|
withTrackingScope,
|
||||||
Dialog,
|
|
||||||
useTrackedCallback,
|
useTrackedCallback,
|
||||||
NUX,
|
NUX,
|
||||||
} from 'flipper-plugin';
|
} from 'flipper-plugin';
|
||||||
@@ -48,7 +46,6 @@ import isProduction from '../utils/isProduction';
|
|||||||
import NetworkGraph from '../chrome/NetworkGraph';
|
import NetworkGraph from '../chrome/NetworkGraph';
|
||||||
import FpsGraph from '../chrome/FpsGraph';
|
import FpsGraph from '../chrome/FpsGraph';
|
||||||
import UpdateIndicator from '../chrome/UpdateIndicator';
|
import UpdateIndicator from '../chrome/UpdateIndicator';
|
||||||
import PluginManager from '../chrome/plugin-manager/PluginManager';
|
|
||||||
import constants from '../fb-stubs/constants';
|
import constants from '../fb-stubs/constants';
|
||||||
import {
|
import {
|
||||||
canFileExport,
|
canFileExport,
|
||||||
@@ -163,13 +160,6 @@ export const LeftRail = withTrackingScope(function LeftRail({
|
|||||||
setToplevelSelection('appinspect');
|
setToplevelSelection('appinspect');
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<LeftRailButton
|
|
||||||
icon={<AppstoreOutlined />}
|
|
||||||
title="Plugin Manager"
|
|
||||||
onClick={() => {
|
|
||||||
Dialog.showModal((onHide) => <PluginManager onHide={onHide} />);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<NotificationButton
|
<NotificationButton
|
||||||
toplevelSelection={toplevelSelection}
|
toplevelSelection={toplevelSelection}
|
||||||
setToplevelSelection={setToplevelSelection}
|
setToplevelSelection={setToplevelSelection}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {Layout, styled, theme, useValue} from 'flipper-plugin';
|
import {Dialog, Layout, styled, theme, useValue} from 'flipper-plugin';
|
||||||
import React, {cloneElement, useCallback, useState} from 'react';
|
import React, {cloneElement, useCallback, useState} from 'react';
|
||||||
import {useDispatch, useStore} from '../utils/useStore';
|
import {useDispatch, useStore} from '../utils/useStore';
|
||||||
import config from '../fb-stubs/config';
|
import config from '../fb-stubs/config';
|
||||||
@@ -28,6 +28,7 @@ import {
|
|||||||
WarningOutlined,
|
WarningOutlined,
|
||||||
} from '@ant-design/icons';
|
} from '@ant-design/icons';
|
||||||
import {toggleLeftSidebarVisible} from '../reducers/application';
|
import {toggleLeftSidebarVisible} from '../reducers/application';
|
||||||
|
import PluginManager from '../chrome/plugin-manager/PluginManager';
|
||||||
|
|
||||||
export function Navbar() {
|
export function Navbar() {
|
||||||
return (
|
return (
|
||||||
@@ -48,7 +49,13 @@ export function Navbar() {
|
|||||||
<NavbarButton label="Record" icon={VideoCameraOutlined} />
|
<NavbarButton label="Record" icon={VideoCameraOutlined} />
|
||||||
</Layout.Horizontal>
|
</Layout.Horizontal>
|
||||||
<Layout.Horizontal style={{gap: 4, alignItems: 'center'}}>
|
<Layout.Horizontal style={{gap: 4, alignItems: 'center'}}>
|
||||||
<NavbarButton label="Add Plugins" icon={AppstoreAddOutlined} />
|
<NavbarButton
|
||||||
|
label="Add Plugins"
|
||||||
|
icon={AppstoreAddOutlined}
|
||||||
|
onClick={() => {
|
||||||
|
Dialog.showModal((onHide) => <PluginManager onHide={onHide} />);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<NavbarButton label="Logs" icon={FileExclamationOutlined} />
|
<NavbarButton label="Logs" icon={FileExclamationOutlined} />
|
||||||
<NavbarButton label="Alerts" icon={BellOutlined} />
|
<NavbarButton label="Alerts" icon={BellOutlined} />
|
||||||
<NavbarButton label="Doctor" icon={MedicineBoxOutlined} />
|
<NavbarButton label="Doctor" icon={MedicineBoxOutlined} />
|
||||||
|
|||||||
Reference in New Issue
Block a user