Redux toolkit (#115)

* add @redux/toolkit

* bump react version to allow for hooks

* add remote-redux devtools to help track extension state

* add remote-redux server to allow for remote state viewing

* setup react-redux for current user

* setup watch mode for running redux remote dev watch to options

* move screenshots
This commit is contained in:
Vu Nguyen
2021-01-22 16:37:59 -08:00
committed by GitHub
parent 0c39fbbc79
commit 8ade367b3f
20 changed files with 1859 additions and 22 deletions

51
src/config/config.test.ts Normal file
View File

@@ -0,0 +1,51 @@
import config from './config';
describe('wakatime config', () => {
it('snapshot of config', () => {
expect(config).toMatchInlineSnapshot(`
Object {
"alert": Object {
"failure": Object {
"text": "There was an error while saving the options!",
"type": "danger",
},
"success": Object {
"text": "Options have been saved!",
"type": "success",
},
},
"colors": Object {
"allGood": "",
"lightTheme": "white",
"notLogging": "gray",
"notSignedIn": "red",
},
"currentUserApiUrl": "https://wakatime.com/api/v1/users/current",
"detectionIntervalInSeconds": 60,
"heartbeatApiUrl": "https://wakatime.com/api/v1/users/current/heartbeats",
"loggingEnabled": true,
"loggingStyle": "blacklist",
"loggingType": "domain",
"logoutUserUrl": "https://wakatime.com/logout",
"name": "WakaTime",
"states": Array [
"allGood",
"notLogging",
"notSignedIn",
"blacklisted",
"whitelisted",
],
"summariesApiUrl": "https://wakatime.com/api/v1/users/current/summaries",
"theme": "light",
"tooltips": Object {
"allGood": "",
"blacklisted": "This URL is blacklisted",
"notLogging": "Not logging",
"notSignedIn": "Not signed In",
"whitelisted": "This URL is not on your whitelist",
},
"version": "test-version",
}
`);
});
});