Fix sending heartbeats and parsing GitHub repo

This commit is contained in:
Alan Hamlett
2024-08-30 10:33:13 +02:00
parent fb29f07e5e
commit 872161f655
5 changed files with 26 additions and 28 deletions

View File

@@ -53,7 +53,7 @@ export interface Config {
/**
* API key use to query wakatime api
*/
apiKey: '';
apiKey: string;
apiUrl: string;
colors: Colors;
/**
@@ -66,14 +66,14 @@ export interface Config {
* no activity in the browser for x second
*/
detectionIntervalInSeconds: number;
devSites: string[];
/**
* Url to which to send the heartbeat
*/
heartbeatApiEndPoint: string;
hostname: string;
/**
* Is logging enabled
*/
@@ -89,6 +89,7 @@ export interface Config {
*/
name: string;
nonTrackableSites: string[];
queueName: string;
socialMediaSites: string[];
states: ExtensionStatus[];
/**
@@ -163,6 +164,8 @@ const config: Config = {
nonTrackableSites: ['chrome://', 'about:'],
queueName: 'heartbeatQueue',
socialMediaSites: [
'facebook.com',
'instagram.com',