Skip to content

Commit 577ec26

Browse files
committed
WIP integrate DevTools Reps to render Tracer object previews.
1 parent f917406 commit 577ec26

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+6687
-37
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@
9090
"query-string": "^9.1.1",
9191
"react": "^18.3.1",
9292
"react-dom": "^18.3.1",
93+
"react-dom-factories": "^1.0.2",
9394
"react-intersection-observer": "^9.14.1",
95+
"prop-types": "^15.8.1",
9496
"react-redux": "^9.2.0",
9597
"react-splitter-layout": "^4.0.0",
9698
"react-transition-group": "^4.4.5",
Loading
Loading
Loading
Loading

src/components/shared/reps/index.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
4+
5+
export { MODE } from "firefox-profiler/components/shared/reps/reps/constants";
6+
export {
7+
REPS,
8+
getRep,
9+
} from "firefox-profiler/components/shared/reps/reps/rep";
10+
11+
export {
12+
parseURLEncodedText,
13+
parseURLParams,
14+
maybeEscapePropertyName,
15+
getGripPreviewItems,
16+
} from "firefox-profiler/components/shared/reps/reps/rep-utils";
17+
import './reps.css';
18+
import './variables.css';

src/components/shared/reps/moz.build

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2+
# vim: set filetype=python:
3+
# This Source Code Form is subject to the terms of the Mozilla Public
4+
# License, v. 2.0. If a copy of the MPL was not distributed with this
5+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
7+
DIRS += [
8+
"reps",
9+
"shared",
10+
]
11+
12+
DevToolsModules(
13+
"index.mjs",
14+
)

0 commit comments

Comments
 (0)