-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pulled new updates, workbench running, hrms pending
- Loading branch information
1 parent
562dd01
commit a0d8835
Showing
10 changed files
with
153 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,14 @@ | |
<title>Hrms Page</title> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" /> | ||
<script src="https://s3.ap-south-1.amazonaws.com/egov-dev-assets/globalConfigsWorkbench.js"></script> | ||
|
||
<script type="systemjs-importmap"> | ||
{ | ||
"imports": { | ||
"react": "https://cdn.jsdelivr.net/npm/[email protected]/umd/react.production.min.js", | ||
"react-dom": "https://cdn.jsdelivr.net/npm/[email protected]/umd/react-dom.production.min.js" | ||
} | ||
} | ||
</script> | ||
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> | ||
|
||
<link | ||
|
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,20 @@ | ||
import React from 'react'; | ||
import { QueryClientProvider } from 'react-query'; | ||
import { Switch, useLocation, BrowserRouter as Router } from 'react-router-dom'; | ||
import { initHRMSComponents } from './Module'; | ||
import EmployeeApp from './pages'; | ||
|
||
const App = ({ queryClient, title }) => { | ||
console.log("qc in remote hrms",queryClient); | ||
initHRMSComponents(); | ||
|
||
return ( | ||
<QueryClientProvider client={queryClient}> | ||
<Router> | ||
<EmployeeApp path={'/workbench-ui/employee/hrms/'} /> | ||
</Router> | ||
</QueryClientProvider> | ||
); | ||
}; | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import singleSpaReact from "single-spa-react"; | ||
import App from "./HRMSWrapper"; | ||
const appLifeCycles = singleSpaReact({ | ||
React, | ||
ReactDOM, | ||
rootComponent: App, | ||
errorBoundary() { | ||
// https://reactjs.org/docs/error-boundaries.html | ||
return <div>This renders when a catastrophic error occurs</div>; | ||
}, | ||
}); | ||
|
||
export function bootstrap(props) { | ||
return appLifeCycles.bootstrap(props); | ||
} | ||
|
||
export function mount(props) { | ||
return appLifeCycles.mount(props); | ||
} | ||
|
||
export function unmount(props) { | ||
return appLifeCycles.unmount(props); | ||
} |
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 |
---|---|---|
|
@@ -24,3 +24,4 @@ module.exports = () => { | |
|
||
return merge(commonConfig, prodConfig); | ||
|
||
}; |