forked from facebook/react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DevTools: Add Bridge protocol version backend/frontend (facebook#21331)
Add an explicit Bridge protocol version to the frontend and backend components as well as a check during initialization to ensure that both are compatible. If not, the frontend will display either upgrade or downgrade instructions. Note that only the `react-devtools-core` (React Native) and `react-devtools-inline` (Code Sandbox) packages implement this check. Browser extensions inject their own backend and so the check is unnecessary. (Arguably the `react-devtools-inline` check is also unlikely to be necessary _but_ has been added as an extra guard for use cases such as Replay.io.)
- Loading branch information
Showing
11 changed files
with
314 additions
and
3 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
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
37 changes: 37 additions & 0 deletions
37
packages/react-devtools-shared/src/devtools/views/UnsupportedBridgeProtocolDialog.css
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,37 @@ | ||
.Column { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.Title { | ||
font-size: var(--font-size-sans-large); | ||
margin-bottom: 0.5rem; | ||
} | ||
|
||
.ReleaseNotesLink { | ||
color: var(--color-button-active); | ||
} | ||
|
||
.Version { | ||
color: var(--color-bridge-version-number); | ||
font-weight: bold; | ||
} | ||
|
||
.NpmCommand { | ||
display: flex; | ||
justify-content: space-between; | ||
padding: 0.25rem 0.25rem 0.25rem 0.5rem; | ||
background-color: var(--color-bridge-version-npm-background); | ||
color: var(--color-bridge-version-npm-text); | ||
margin: 0; | ||
font-family: var(--font-family-monospace); | ||
font-size: var(--font-size-monospace-large); | ||
} | ||
|
||
.Paragraph { | ||
margin: 0.5rem 0; | ||
} | ||
|
||
.Link { | ||
color: var(--color-link); | ||
} |
Oops, something went wrong.