-
Notifications
You must be signed in to change notification settings - Fork 66
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
Showing
137 changed files
with
5,369 additions
and
1,894 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
|
||
exports.default = async function afterPack(context) { | ||
if (process.platform === 'win32') { | ||
const libPath = ( | ||
path.join( | ||
__dirname.split('node_modules')[0], | ||
'node_modules/screenshot-desktop/lib/win32', | ||
) | ||
); | ||
const screenshotDesktopPath = path.join( | ||
context.appOutDir, | ||
'resources/screenshot-desktop', | ||
); | ||
fs.mkdirSync(screenshotDesktopPath); | ||
|
||
fs.copyFileSync( | ||
path.join(libPath, 'screencapture_1.3.2.bat'), | ||
path.join(screenshotDesktopPath, 'screenCapture_1.3.2.bat'), | ||
); | ||
fs.copyFileSync( | ||
path.join(libPath, 'app.manifest'), | ||
path.join(screenshotDesktopPath, 'app.manifest'), | ||
); | ||
} | ||
}; |
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,17 +1,22 @@ | ||
const config = { | ||
apiUrl: 'https://chronos-api.web-pal.com', // server url | ||
// apiUrl: 'http://127.0.0.1:5000/api', // server url | ||
apiUrl: 'https://chronos-api.web-pal.com/api', // server url | ||
socketUrl: 'https://chronos-socket.web-pal.com', // url of socket server | ||
|
||
supportLink: 'https://web-pal.atlassian.net/servicedesk/customer/portal/2', | ||
githubLink: 'https://github.com/web-pal/chronos-timetracker', | ||
|
||
screenshotsPeriod: 30, | ||
idleTimeThreshold: 300, // seconds of inactivity considering user is idle | ||
checkUpdates: false, | ||
infoLog: false, | ||
reduxLogger: true, | ||
issueWindowDevTools: false, | ||
idleWindowDevTools: false, | ||
loginWindowDevTools: false, | ||
attachmentsWindowDevtools: false, | ||
screenshotNotificationWindowDevtools: false, | ||
screenshotsViewerWindowDevtools: false, | ||
}; | ||
|
||
export default config; |
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,17 +1,21 @@ | ||
const config = { | ||
apiUrl: 'https://chronos-api.web-pal.com', // server url | ||
apiUrl: 'https://chronos-api.web-pal.com/api', // server url | ||
socketUrl: 'https://chronos-socket.web-pal.com', // url of socket server | ||
|
||
supportLink: 'https://web-pal.atlassian.net/servicedesk/customer/portal/2', | ||
githubLink: 'https://github.com/web-pal/chronos-timetracker', | ||
|
||
screenshotsPeriod: 600, | ||
// idleTimeThreshold: 60 * 60 * 24, // seconds of inactivity considering user is idle | ||
idleTimeThreshold: 300, | ||
checkUpdates: true, | ||
infoLog: false, | ||
issueWindowDevTools: false, | ||
idleWindowDevTools: false, | ||
loginWindowDevTools: false, | ||
attachmentsWindowDevtools: false, | ||
screenshotNotificationWindowDevtools: false, | ||
screenshotsViewerWindowDevtools: false, | ||
}; | ||
|
||
export default config; |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export const TAKE_SCREENSHOT_REQUEST = 'TAKE_SCREENSHOT_REQUEST'; | ||
export const TAKE_SCREENSHOT_FINISHED = 'TAKE_SCREENSHOT_FINISHED'; | ||
export const UPLOAD_SCREENSHOT_FINISHED = 'UPLOAD_SCREENSHOT_FINISHED'; | ||
export const SET_NOTIFICATION_SCREENSHOT = 'SET_NOTIFICATION_SCREENSHOT'; | ||
export const NATIVE_SCREENSHOT_NOTIFICATION_CLICK = 'NATIVE_SCREENSHOT_NOTIFICATION_CLICK'; | ||
export const TEST_SCREENSHOT_WINDOW_CLOSE = 'TEST_SCREENSHOT_WINDOW_CLOSE'; | ||
export const KEEP_SCREENSHOT = 'KEEP_SCREENSHOT'; | ||
export const DISMISS_ONLY_SCREENSHOT = 'DISMISS_ONLY_SCREENSHOT'; | ||
export const DISMISS_TIME_AND_SCREENSHOT = 'DISMISS_TIME_AND_SCREENSHOT'; | ||
export const ADD_SCREENSHOT = 'ADD_SCREENSHOT'; | ||
export const SET_SCREENSHOTS = 'SET_SCREENSHOTS'; | ||
export const DELETE_SCREENSHOT_REQUEST = 'DELETE_SCREENSHOT_REQUEST'; | ||
export const DELETE_SCREENSHOT = 'DELETE_SCREENSHOT'; | ||
export const SET_SCREENSHOTS_VIEWER_STATE = 'SET_SCREENSHOTS_VIEWER_STATE'; | ||
export const SHOW_SCREENSHOTS_VIEWER_WINDOW = 'SHOW_SCREENSHOTS_VIEWER_WINDOW'; |
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,7 +1,3 @@ | ||
// @flow | ||
|
||
export const FILL_LOCAL_DESKTOP_SETTINGS = 'settings/FILL_LOCAL'; | ||
export const SET_LOCAL_DESKTOP_SETTING = 'settings/SET_LOCAL'; | ||
export const SET_SETTINGS_MODAL_TAB = 'settings/SET_MODAL_TAB'; | ||
|
||
export const CLEAR_ELECTRON_CACHE = 'settings/CLEAR_ELECTRON_CACHE'; |
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,14 +1,13 @@ | ||
|
||
// @flow | ||
|
||
export const TICK = 'timer/TICK'; | ||
export const START_TIMER = 'timer/START'; | ||
export const STOP_TIMER = 'timer/STOP'; | ||
export const SET_TIME = 'timer/SET_TIME'; | ||
export const CONTINUE_TIMER = 'timer/CONTINUE'; | ||
export const STOP_TIMER_REQUEST = 'timer/STOP_REQUEST'; | ||
export const SET_IDLE_STATE = 'timer/SET_IDLE_STATE'; | ||
export const SET_LAST_SCREENSHOT_TIME = 'timer/SET_LAST_SCREENSHOT_TIME'; | ||
export const RESET_TIMER = 'timer/RESET'; | ||
export const ADD_SCREENSHOT = 'timer/ADD_SCREENSHOT'; | ||
export const SET_SCREENSHOT_PERIODS = 'timer/SET_SCREENSHOT_PERIODS'; | ||
export const KEEP_IDLE_TIME = 'timer/KEEP_IDLE_TIME'; | ||
export const DISMISS_IDLE_TIME = 'timer/DISMISS_IDLE_TIME'; |
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,4 +1,6 @@ | ||
// @flow | ||
|
||
export const SAVE_WORKLOG_REQUEST = 'worklogs/SAVE_WORKLOG_REQUEST'; | ||
export const TRY_SAVE_WORKLOG_AGAIN_REQUEST = 'worklogs/TRY_SAVE_WORKLOG_AGAIN_REQUEST'; | ||
export const STOP_TRY_SAVE_WORKLOG_REQUEST = 'worklogs/STOP_TRY_SAVE_WORKLOG_REQUEST'; | ||
export const DELETE_WORKLOG_REQUEST = 'worklogs/DELETE_WORKLOG_REQUEST'; |
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.