forked from ChromeDevTools/devtools-frontend
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split React DevTools into individual panels
- Loading branch information
Showing
12 changed files
with
308 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
front_end/panels/react_devtools/ReactDevToolsComponentsView.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) Meta Platforms, Inc. and affiliates. | ||
// Copyright 2024 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import * as i18n from '../../core/i18n/i18n.js'; | ||
|
||
import { ReactDevToolsViewBase } from './ReactDevToolsViewBase.js'; | ||
|
||
const UIStrings = { | ||
/** | ||
*@description Title of the React DevTools view | ||
*/ | ||
title: '⚛️ Components (React DevTools)', | ||
}; | ||
const str_ = i18n.i18n.registerUIStrings('panels/react_devtools/ReactDevToolsComponentsView.ts', UIStrings); | ||
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_); | ||
|
||
export class ReactDevToolsComponentsViewImpl extends ReactDevToolsViewBase { | ||
constructor() { | ||
super('components', i18nString(UIStrings.title)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
front_end/panels/react_devtools/ReactDevToolsProfilerView.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) Meta Platforms, Inc. and affiliates. | ||
// Copyright 2024 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import * as i18n from '../../core/i18n/i18n.js'; | ||
|
||
import { ReactDevToolsViewBase } from './ReactDevToolsViewBase.js'; | ||
|
||
const UIStrings = { | ||
/** | ||
*@description Title of the React DevTools view | ||
*/ | ||
title: '⚛️ Profiler (React DevTools)', | ||
}; | ||
const str_ = i18n.i18n.registerUIStrings('panels/react_devtools/ReactDevToolsProfilerView.ts', UIStrings); | ||
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_); | ||
|
||
export class ReactDevToolsProfilerViewImpl extends ReactDevToolsViewBase { | ||
constructor() { | ||
super('profiler', i18nString(UIStrings.title)); | ||
} | ||
} |
Oops, something went wrong.