react/packages/react-devtools-shared/src/devtools/views
Sophie Alpert 767f52237c
Use .slice() for all substring-ing (#26677)
- substr is Annex B
- substring silently flips its arguments if they're in the "wrong order", which is confusing
- slice is better than sliced bread (no pun intended) and also it works the same way on Arrays so there's less to remember

---

> I'd be down to just lint and enforce a single form just for the potential compression savings by using a repeated string.

_Originally posted by @sebmarkbage in https://github.com/facebook/react/pull/26663#discussion_r1170455401_
2023-04-19 14:26:01 -07:00
..
Components cleanup[devtools]: remove named hooks & profiler changed hook indices feature flags (#26635) 2023-04-19 10:05:31 +01:00
ErrorBoundary [DevTools][BE] move shared types & constants to consolidated locations (#26572) 2023-04-10 17:07:05 -04:00
Profiler cleanup[devtools]: remove named hooks & profiler changed hook indices feature flags (#26635) 2023-04-19 10:05:31 +01:00
Settings [DevTools][BE] move shared types & constants to consolidated locations (#26572) 2023-04-10 17:07:05 -04:00
Button.css [DevTools] Resign Timeline Profiler Sidebar (#24816) 2022-06-29 17:54:06 -07:00
Button.js [flow] make Flow suppressions explicit on the error (#26487) 2023-03-27 13:43:04 +02:00
ButtonIcon.css Reorganized things again into packages 2019-08-13 11:37:25 -07:00
ButtonIcon.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
DevTools.css Wrap Components and Profiler tabs with box-size style too (#18286) 2020-03-11 19:12:57 -07:00
DevTools.js [DevTools][BE] move shared types & constants to consolidated locations (#26572) 2023-04-10 17:07:05 -04:00
Icon.css Reorganized things again into packages 2019-08-13 11:37:25 -07:00
Icon.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
ModalDialog.css DevTools supports multiple modal dialogs at once (#21370) 2021-04-27 20:33:11 -04:00
ModalDialog.js Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
ReactLogo.css Reorganized things again into packages 2019-08-13 11:37:25 -07:00
ReactLogo.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
SearchInput.css Timeline search (#22799) 2021-12-03 16:23:48 -05:00
SearchInput.js [flow] enable enforce_local_inference_annotations (#25921) 2023-01-09 15:46:48 -05:00
TabBar.css [DRAFT] Import scheduling profiler into DevTools Profiler (#21897) 2021-07-22 13:58:57 -04:00
TabBar.js [flow] enable LTI inference mode (#26104) 2023-02-09 17:07:39 -05:00
ThemeProvider.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
Toggle.css Reorganized things again into packages 2019-08-13 11:37:25 -07:00
Toggle.js Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
UnsupportedBridgeProtocolDialog.css DevTools: Add Bridge protocol version backend/frontend (#21331) 2021-04-27 17:26:07 -04:00
UnsupportedBridgeProtocolDialog.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
UnsupportedVersionDialog.css DevTools shows unsupported renderer version dialog (#16897) 2019-09-26 08:41:46 -07:00
UnsupportedVersionDialog.js [DevTools][BE] move shared types & constants to consolidated locations (#26572) 2023-04-10 17:07:05 -04:00
WarnIfLegacyBackendDetected.css Reorganized things again into packages 2019-08-13 11:37:25 -07:00
WarnIfLegacyBackendDetected.js [flow] enable LTI inference mode (#26104) 2023-02-09 17:07:39 -05:00
context.js Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
hooks.js [flow] enable LTI inference mode (#26104) 2023-02-09 17:07:39 -05:00
portaledContent.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
root.css fix(devtools): expose css vars to reach-ui portal components (#22716) 2021-11-08 15:17:22 -05:00
useThemeStyles.js [DevTools][BE] move shared types & constants to consolidated locations (#26572) 2023-04-10 17:07:05 -04:00
utils.js Use .slice() for all substring-ing (#26677) 2023-04-19 14:26:01 -07:00