fix default heartbeats api endpoint
This commit is contained in:
@@ -35,8 +35,8 @@ interface SuccessOrFailAlert {
|
|||||||
interface Colors {
|
interface Colors {
|
||||||
allGood: '';
|
allGood: '';
|
||||||
lightTheme: 'white';
|
lightTheme: 'white';
|
||||||
trackingDisabled: 'gray';
|
|
||||||
notSignedIn: 'red';
|
notSignedIn: 'red';
|
||||||
|
trackingDisabled: 'gray';
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Tooltip messages
|
* Tooltip messages
|
||||||
@@ -44,8 +44,8 @@ interface Colors {
|
|||||||
interface Tooltips {
|
interface Tooltips {
|
||||||
allGood: string;
|
allGood: string;
|
||||||
ignored: string;
|
ignored: string;
|
||||||
trackingDisabled: string;
|
|
||||||
notSignedIn: string;
|
notSignedIn: string;
|
||||||
|
trackingDisabled: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Config {
|
export interface Config {
|
||||||
@@ -126,8 +126,8 @@ const config: Config = {
|
|||||||
colors: {
|
colors: {
|
||||||
allGood: '',
|
allGood: '',
|
||||||
lightTheme: 'white',
|
lightTheme: 'white',
|
||||||
trackingDisabled: 'gray',
|
|
||||||
notSignedIn: 'red',
|
notSignedIn: 'red',
|
||||||
|
trackingDisabled: 'gray',
|
||||||
},
|
},
|
||||||
|
|
||||||
currentUserApiEndPoint: process.env.CURRENT_USER_API_URL ?? '/users/current',
|
currentUserApiEndPoint: process.env.CURRENT_USER_API_URL ?? '/users/current',
|
||||||
@@ -147,7 +147,7 @@ const config: Config = {
|
|||||||
'w3schools.com',
|
'w3schools.com',
|
||||||
],
|
],
|
||||||
|
|
||||||
heartbeatApiEndPoint: process.env.HEARTBEAT_API_URL ?? '/users/current/heartbeats',
|
heartbeatApiEndPoint: process.env.HEARTBEAT_API_URL ?? '/users/current/heartbeats.bulk',
|
||||||
|
|
||||||
hostname: '',
|
hostname: '',
|
||||||
|
|
||||||
@@ -185,8 +185,8 @@ const config: Config = {
|
|||||||
tooltips: {
|
tooltips: {
|
||||||
allGood: '',
|
allGood: '',
|
||||||
ignored: 'This URL is ignored',
|
ignored: 'This URL is ignored',
|
||||||
trackingDisabled: 'Not logging',
|
|
||||||
notSignedIn: 'Not signed In',
|
notSignedIn: 'Not signed In',
|
||||||
|
trackingDisabled: 'Not logging',
|
||||||
},
|
},
|
||||||
trackSocialMedia: true,
|
trackSocialMedia: true,
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ const getConfigByBrowser = (isProd: boolean, browser: BrowserTypes): webpack.Con
|
|||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
['process.env.API_URL']: JSON.stringify('https://api.wakatime.com/api/v1'),
|
['process.env.API_URL']: JSON.stringify('https://api.wakatime.com/api/v1'),
|
||||||
['process.env.CURRENT_USER_API_URL']: JSON.stringify('/users/current'),
|
['process.env.CURRENT_USER_API_URL']: JSON.stringify('/users/current'),
|
||||||
['process.env.HEARTBEAT_API_URL']: JSON.stringify('/users/current/heartbeats'),
|
['process.env.HEARTBEAT_API_URL']: JSON.stringify('/users/current/heartbeats.bulk'),
|
||||||
['process.env.LOGOUT_USER_URL']: JSON.stringify('https://wakatime.com/logout'),
|
['process.env.LOGOUT_USER_URL']: JSON.stringify('https://wakatime.com/logout'),
|
||||||
['process.env.NODE_ENV']: JSON.stringify(isProd ? 'production' : 'development'),
|
['process.env.NODE_ENV']: JSON.stringify(isProd ? 'production' : 'development'),
|
||||||
['process.env.SUMMARIES_API_URL']: JSON.stringify('/users/current/summaries'),
|
['process.env.SUMMARIES_API_URL']: JSON.stringify('/users/current/summaries'),
|
||||||
|
|||||||
Reference in New Issue
Block a user