-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagit] Repair async graph layout for path-prefix (#7480)
- Loading branch information
Showing
6 changed files
with
84 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
import * as React from 'react'; | ||
|
||
export type AppContextValue = { | ||
// `basePath` is the root used for routing and GraphQL requests. In open source Dagit, | ||
// this will also be the same as the root for static assets, `staticPathRoot`. | ||
basePath: string; | ||
rootServerURI: string; | ||
// `staticPathRoot` is the root where static assets are served from. In open source Dagit, | ||
// this value will be essentially the same as `basePath`, e.g. `${basePath}/`. Setting this | ||
// value in context allows us to set __webpack_public_path__ for WebWorkers, thereby allowing | ||
// WebWorkers to import other files. | ||
staticPathRoot?: string; | ||
telemetryEnabled: boolean; | ||
}; | ||
|
||
export const AppContext = React.createContext<AppContextValue>({ | ||
basePath: '', | ||
rootServerURI: '', | ||
staticPathRoot: '/', | ||
telemetryEnabled: false, | ||
}); |
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