-
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.
- Loading branch information
1 parent
dfaba48
commit d7b5518
Showing
4 changed files
with
16 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
window.appConfig = { | ||
baseUrl: '/strelkaui' // Default to strelkaui for now. This can be changed to '/whatever' or any other base path as needed. | ||
}; |
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; |