-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(router): sw-625 move to router v6
* build, routing package, module ref, spelling * configs, sorted products, aliases, simplify routes * locale, OpenShift strings * AppEntry, remove router component * app, testing unnecessary reloads * helpers, add memoize, object freeze * authenticationContext, remove nav history push * i18n, testing unnecessary reloads * productView, useRouteDetail hook update * productViewMissing, add useNavigate, RouteDetail hooks * redux, viewReducer, appTypes for storing route ref * router, simplify, useSetRouteDetail for config load * routerContext, useRouteDetail restructure * routerContext, useLocation, useNavigate wrappers * routerHelpers, restructure getRouteConfigByPath, memo update
- Loading branch information
Showing
55 changed files
with
1,852 additions
and
3,406 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 |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
"ibmz", | ||
"iife", | ||
"ipsum", | ||
"ized", | ||
"keycloak", | ||
"kubernetes", | ||
"labelledby", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import React from 'react'; | ||
import { Provider } from 'react-redux'; | ||
import { BrowserRouter } from 'react-router-dom'; | ||
import { routerHelpers } from './components/router'; | ||
import { store } from './redux'; | ||
import App from './app'; | ||
import './styles/index.scss'; | ||
import '@patternfly/react-styles/css/components/Select/select.css'; | ||
|
||
const AppEntry = () => ( | ||
<Provider store={store}> | ||
<BrowserRouter basename={routerHelpers.dynamicBaseName()}> | ||
const AppEntry = () => { | ||
console.log('>>> APP ENTRY LOAD >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>'); | ||
return ( | ||
<Provider store={store}> | ||
<App /> | ||
</BrowserRouter> | ||
</Provider> | ||
); | ||
</Provider> | ||
); | ||
}; | ||
|
||
export { AppEntry as default, AppEntry }; |
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
Oops, something went wrong.