-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from target/customize-baseurl-path
Adding Draft for Initial Testing
- Loading branch information
Showing
7 changed files
with
53 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
window.appConfig = { | ||
baseUrl: '/strelkaui' // Change this to modify the base_url to be used as a prefix to routes. | ||
}; |
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,22 +1,24 @@ | ||
import React, { Component } from 'react'; | ||
import './App.css'; | ||
import React, { Component } from "react"; | ||
import "./App.css"; | ||
|
||
import { BrowserRouter } from 'react-router-dom' | ||
import MainRouter from './routes/MainRouter' | ||
import AuthenticationProvider from './providers/AuthProvider'; | ||
import { BrowserRouter } from "react-router-dom"; | ||
import MainRouter from "./routes/MainRouter"; | ||
import AuthenticationProvider from "./providers/AuthProvider"; | ||
|
||
class App extends Component { | ||
const baseUrl = window.appConfig ? window.appConfig.baseUrl : "/"; | ||
|
||
class App extends Component { | ||
render() { | ||
return ( | ||
<div className="App"> | ||
<AuthenticationProvider> | ||
<BrowserRouter> | ||
<MainRouter/> | ||
<BrowserRouter basename={baseUrl}> | ||
<MainRouter /> | ||
</BrowserRouter> | ||
</AuthenticationProvider> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default App; | ||
export default App; |
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