-
Notifications
You must be signed in to change notification settings - Fork 3
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
e0176af
commit 8db3390
Showing
49 changed files
with
35,694 additions
and
41,780 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
REACT_APP_VERSION=$npm_package_version |
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,11 @@ | ||
# Changes | ||
|
||
## 0.1.0 to 1.0.18 | ||
|
||
- many programming updates | ||
- config update to activate additional functionality (see public\config.js) | ||
- approval - in case the ApprovalBundle is used, additional related functionality will be available | ||
- overtime - in case the ApprovalBundle is used and working with overtime, additional related functionality will be available | ||
- summary15mins - a new tab is visible which indicates time-frames which are no 15 minute blocks | ||
- breakChecks - an option to check for German Break Rules | ||
- This version works with Kimai2 V1 and Kimai2 V1 |
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
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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,5 +1,9 @@ | ||
var config = { | ||
"kimaiAPI" : "https://demo-stable.kimai.org/api/", | ||
"ignoreActivities" : ["Vacation","Public Holiday"], | ||
"adminUser" : ["anna_admin","susan_super"] | ||
"adminUser" : ["anna_admin","susan_super"], | ||
"approval" : false, | ||
"overtime" : false, | ||
"summary15mins" : false, | ||
"breakChecks" : 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,45 @@ | ||
import React from 'react' | ||
import React, {useEffect} from 'react' | ||
import { useDispatch } from 'react-redux' | ||
import { | ||
HashRouter as Router, | ||
Switch, | ||
Route, | ||
Redirect, | ||
} from 'react-router-dom' | ||
import { connect } from "react-redux"; | ||
|
||
import Main from './features/views/Main'; | ||
import OvertimeOverview from './features/views/OvertimeOverview'; | ||
import Admin from './features/views/Admin'; | ||
import Info from './features/views/Info'; | ||
import Login from './features/views/Login'; | ||
import { globalConfigSet } from './features/globalConfig/globalConfigSlice'; | ||
|
||
class App extends React.Component { | ||
constructor(props) { | ||
super(props) | ||
this.props.dispatch(globalConfigSet(this.props._config)); | ||
} | ||
function App (props) { | ||
const dispatch = useDispatch(); | ||
|
||
render() { | ||
return ( | ||
<Router> | ||
<div className="App"> | ||
<Switch> | ||
<Route exact path="/" component={Main} /> | ||
<Route exact path="/admin" component={Admin} /> | ||
<Route exact path="/info" component={Info} /> | ||
<Route exact path="/login" component={Login} /> | ||
<Redirect to="/" /> | ||
</Switch> | ||
</div> | ||
</Router> | ||
) | ||
} | ||
useEffect(()=>{ | ||
const user = JSON.parse(localStorage.getItem("User")); | ||
if (!props._config.username && !props._config.password && user){ | ||
dispatch(globalConfigSet({...props._config, username: user.user, password: user.password})); | ||
} else { | ||
dispatch(globalConfigSet(props._config)); | ||
} | ||
},[props._config, dispatch]) | ||
|
||
return ( | ||
<Router> | ||
<div className="App"> | ||
<Switch> | ||
<Route exact path="/" component={Main} /> | ||
<Route exact path="/overtime" component={OvertimeOverview} /> | ||
<Route exact path="/admin" component={Admin} /> | ||
<Route exact path="/info" component={Info} /> | ||
<Route exact path="/login" component={Login} /> | ||
<Redirect to="/" /> | ||
</Switch> | ||
</div> | ||
</Router> | ||
) | ||
} | ||
|
||
export default connect()(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
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,28 @@ | ||
import { configureStore } from '@reduxjs/toolkit'; | ||
import excelDataReducer from '../features/excelImport/excelSlice'; | ||
import kimaiDataReducer from '../features/kimaiDB/kimaiSlice'; | ||
import kimaiTimesheetsReducer from '../features/kimaiTimesheets/kimaiTimesheetsSlice'; | ||
import updateTimesheetsReducer from '../features/updateTimesheets/updateTimesheetsSlice'; | ||
import { globalConfigReducer } from '../features/globalConfig/globalConfigSlice'; | ||
import {messagesReducer} from '../features/messages/messagesSlice'; | ||
import { configureStore } from '@reduxjs/toolkit' | ||
import excelDataReducer from '../features/excelImport/excelSlice' | ||
import excelMetaDataReducer from '../features/excelMetaImport/excelMetaSlice' | ||
import kimaiDataReducer from '../features/kimaiDB/kimaiSlice' | ||
import kimaiRawDataReducer from '../features/kimaiRawData/kimaiRawSlice' | ||
import kimaiTimesheetsReducer from '../features/kimaiTimesheets/kimaiTimesheetsSlice' | ||
import updateTimesheetsReducer from '../features/updateTimesheets/updateTimesheetsSlice' | ||
import approvalReducer from '../features/approvalSlice' | ||
import overtimeReducer from '../features/overtimeSlice' | ||
import overtimeOverviewReducer from '../features/overtimeOverviewSlice' | ||
import { globalConfigReducer } from '../features/globalConfig/globalConfigSlice' | ||
import { messagesReducer } from '../features/messages/messagesSlice' | ||
|
||
export default configureStore({ | ||
reducer: { | ||
excelData: excelDataReducer, | ||
kimaiData: kimaiDataReducer, | ||
config: globalConfigReducer, | ||
updateTimesheets: updateTimesheetsReducer, | ||
kimaiTimesheets : kimaiTimesheetsReducer, | ||
messages: messagesReducer | ||
kimaiTimesheets: kimaiTimesheetsReducer, | ||
messages: messagesReducer, | ||
approval: approvalReducer, | ||
overtime: overtimeReducer, | ||
overtimeOverview: overtimeOverviewReducer, | ||
kimaiRawData: kimaiRawDataReducer, | ||
excelMetaData: excelMetaDataReducer, | ||
}, | ||
}) | ||
}) |
Oops, something went wrong.