chore: add social media toggle to track or not social sites
This commit is contained in:
@@ -33,12 +33,32 @@ describe('wakatime config', () => {
|
||||
},
|
||||
"currentUserApiUrl": "https://wakatime.com/api/v1/users/current",
|
||||
"detectionIntervalInSeconds": 60,
|
||||
"devSites": "https://codepen.io/
|
||||
https://www.codewars.com/
|
||||
https://dev.to/
|
||||
https://github.com/
|
||||
https://www.hackerrank.com/
|
||||
https://leetcode.com/
|
||||
https://developer.mozilla.org/en-US/
|
||||
https://stackoverflow.com/
|
||||
https://www.udemy.com/
|
||||
https://www.w3schools.com/",
|
||||
"heartbeatApiUrl": "https://wakatime.com/api/v1/users/current/heartbeats",
|
||||
"loggingEnabled": true,
|
||||
"loggingStyle": "blacklist",
|
||||
"loggingType": "domain",
|
||||
"logoutUserUrl": "https://wakatime.com/logout",
|
||||
"name": "WakaTime",
|
||||
"socialMediaSites": "https://www.facebook.com/
|
||||
https://www.instagram.com/
|
||||
https://www.linkedin.com/
|
||||
https://www.pinterest.com/
|
||||
https://www.reddit.com/
|
||||
https://www.snapchat.com/
|
||||
https://www.tiktok.com/
|
||||
https://twitter.com/
|
||||
https://www.whatsapp.com/
|
||||
https://www.youtube.com/",
|
||||
"states": [
|
||||
"allGood",
|
||||
"notLogging",
|
||||
@@ -55,6 +75,7 @@ describe('wakatime config', () => {
|
||||
"notSignedIn": "Not signed In",
|
||||
"whitelisted": "This URL is not on your whitelist",
|
||||
},
|
||||
"trackSocialMedia": true,
|
||||
"version": "test-version",
|
||||
}
|
||||
`);
|
||||
|
||||
@@ -64,6 +64,8 @@ export interface Config {
|
||||
* no activity in the browser for x second
|
||||
*/
|
||||
detectionIntervalInSeconds: number;
|
||||
|
||||
devSites: string;
|
||||
/**
|
||||
* Url to which to send the heartbeat
|
||||
*/
|
||||
@@ -82,6 +84,7 @@ export interface Config {
|
||||
* Extension name
|
||||
*/
|
||||
name: string;
|
||||
socialMediaSites: string;
|
||||
states: ApiStates[];
|
||||
/**
|
||||
* Get stats from the wakatime api
|
||||
@@ -92,6 +95,7 @@ export interface Config {
|
||||
*/
|
||||
theme: 'light';
|
||||
tooltips: Tooltips;
|
||||
trackSocialMedia: boolean;
|
||||
/**
|
||||
* Version of the extension
|
||||
*/
|
||||
@@ -124,6 +128,9 @@ const config: Config = {
|
||||
|
||||
detectionIntervalInSeconds: 60,
|
||||
|
||||
devSites:
|
||||
'https://codepen.io/\nhttps://www.codewars.com/\nhttps://dev.to/\nhttps://github.com/\nhttps://www.hackerrank.com/\nhttps://leetcode.com/\nhttps://developer.mozilla.org/en-US/\nhttps://stackoverflow.com/\nhttps://www.udemy.com/\nhttps://www.w3schools.com/',
|
||||
|
||||
heartbeatApiUrl:
|
||||
process.env.HEART_BEAT_API_URL ?? 'https://wakatime.com/api/v1/users/current/heartbeats',
|
||||
|
||||
@@ -137,6 +144,8 @@ const config: Config = {
|
||||
|
||||
name: 'WakaTime',
|
||||
|
||||
socialMediaSites: `https://www.facebook.com/\nhttps://www.instagram.com/\nhttps://www.linkedin.com/\nhttps://www.pinterest.com/\nhttps://www.reddit.com/\nhttps://www.snapchat.com/\nhttps://www.tiktok.com/\nhttps://twitter.com/\nhttps://www.whatsapp.com/\nhttps://www.youtube.com/`,
|
||||
|
||||
states: ['allGood', 'notLogging', 'notSignedIn', 'blacklisted', 'whitelisted'],
|
||||
|
||||
summariesApiUrl:
|
||||
@@ -151,6 +160,7 @@ const config: Config = {
|
||||
notSignedIn: 'Not signed In',
|
||||
whitelisted: 'This URL is not on your whitelist',
|
||||
},
|
||||
trackSocialMedia: true,
|
||||
|
||||
version: browser.runtime.getManifest().version,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user