GeezerVison is showing github.com — [DevTools] Remove Welcome dialog (#16834) · react/react@4ddcb8e
File treeExpand file treeCollapse file tree Open diff view settings react-devtools-extensions/src react-devtools-shared/src/devtools/views
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-core/src/standalone.js -12Lines changed: 0 additions & 12 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -40,11 +40,6 @@ let nodeWaitingToConnectHTML: string = ''; | 40 | 40 | let projectRoots: Array<string> = []; | 41 | 41 | let statusListener: StatusListener = (message: string) => {}; | 42 | 42 |
| 43 | | -// Unlike browser extension users, people using the standalone have actively installed version 4, | 44 | | -// So we probably don't need to show them a changelog notice. | 45 | | -// We should give embedded users (e.g. Nuclide, Sonar) a way of showing this dialog though. | 46 | | -let showWelcomeToTheNewDevToolsDialog: boolean = false; | 47 | | - | 48 | 43 | function setContentDOMNode(value: HTMLElement) { | 49 | 44 | node = value; | 50 | 45 |
| @@ -63,11 +58,6 @@ function setStatusListener(value: StatusListener) { | 63 | 58 | return DevtoolsUI; | 64 | 59 | } | 65 | 60 |
| 66 | | -function setShowWelcomeToTheNewDevToolsDialog(value: boolean) { | 67 | | - showWelcomeToTheNewDevToolsDialog = value; | 68 | | - return DevtoolsUI; | 69 | | -} | 70 | | - | 71 | 61 | let bridge: FrontendBridge | null = null; | 72 | 62 | let store: Store | null = null; | 73 | 63 | let root = null; | @@ -108,7 +98,6 @@ function reload() { | 108 | 98 | bridge: ((bridge: any): FrontendBridge), | 109 | 99 | canViewElementSourceFunction, | 110 | 100 | showTabBar: true, | 111 | | - showWelcomeToTheNewDevToolsDialog, | 112 | 101 | store: ((store: any): Store), | 113 | 102 | warnIfLegacyBackendDetected: true, | 114 | 103 | viewElementSourceFunction, | @@ -318,7 +307,6 @@ const DevtoolsUI = { | 318 | 307 | connectToSocket, | 319 | 308 | setContentDOMNode, | 320 | 309 | setProjectRoots, | 321 | | - setShowWelcomeToTheNewDevToolsDialog, | 322 | 310 | setStatusListener, | 323 | 311 | startServer, | 324 | 312 | }; | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/src/main.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -161,7 +161,6 @@ function createPanelIfReactLoaded() { | 161 | 161 | overrideTab, | 162 | 162 | profilerPortalContainer, | 163 | 163 | showTabBar: false, | 164 | | - showWelcomeToTheNewDevToolsDialog: true, | 165 | 164 | store, | 166 | 165 | viewElementSourceFunction, | 167 | 166 | }), | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shared/src/devtools/views/DevTools.js -6Lines changed: 0 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -25,7 +25,6 @@ import {ProfilerContextController} from './Profiler/ProfilerContext'; | 25 | 25 | import {ModalDialogContextController} from './ModalDialog'; | 26 | 26 | import ReactLogo from './ReactLogo'; | 27 | 27 | import WarnIfLegacyBackendDetected from './WarnIfLegacyBackendDetected'; | 28 | | -import ShowWelcomeToTheNewDevToolsDialog from './ShowWelcomeToTheNewDevToolsDialog'; | 29 | 28 |
| 30 | 29 | import styles from './DevTools.css'; | 31 | 30 |
| @@ -50,7 +49,6 @@ export type Props = {| | 50 | 49 | canViewElementSourceFunction?: ?CanViewElementSource, | 51 | 50 | defaultTab?: TabID, | 52 | 51 | showTabBar?: boolean, | 53 | | - showWelcomeToTheNewDevToolsDialog?: boolean, | 54 | 52 | store: Store, | 55 | 53 | warnIfLegacyBackendDetected?: boolean, | 56 | 54 | viewElementSourceFunction?: ?ViewElementSource, | @@ -92,7 +90,6 @@ export default function DevTools({ | 92 | 90 | overrideTab, | 93 | 91 | profilerPortalContainer, | 94 | 92 | showTabBar = false, | 95 | | - showWelcomeToTheNewDevToolsDialog = false, | 96 | 93 | store, | 97 | 94 | warnIfLegacyBackendDetected = false, | 98 | 95 | viewElementSourceFunction, | @@ -167,9 +164,6 @@ export default function DevTools({ | 167 | 164 | </ViewElementSourceContext.Provider> | 168 | 165 | </SettingsContextController> | 169 | 166 | {warnIfLegacyBackendDetected && <WarnIfLegacyBackendDetected />} | 170 | | - {showWelcomeToTheNewDevToolsDialog && ( | 171 | | - <ShowWelcomeToTheNewDevToolsDialog /> | 172 | | - )} | 173 | 167 | </ModalDialogContextController> | 174 | 168 | </StoreContext.Provider> | 175 | 169 | </BridgeContext.Provider> | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shared/src/devtools/views/ShowWelcomeToTheNewDevToolsDialog.css -26Lines changed: 0 additions & 26 deletions Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shared/src/devtools/views/ShowWelcomeToTheNewDevToolsDialog.js -73Lines changed: 0 additions & 73 deletions Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shell/src/devtools.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -56,7 +56,6 @@ inject('dist/app.js', () => { | 56 | 56 | createElement(DevTools, { | 57 | 57 | browserTheme: 'light', | 58 | 58 | showTabBar: true, | 59 | | - showWelcomeToTheNewDevToolsDialog: true, | 60 | 59 | warnIfLegacyBackendDetected: true, | 61 | 60 | }), | 62 | 61 | ); | |
|