Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX (ga): fix ga loading for web and electron
- Loading branch information
Showing
9 changed files
with
44 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
jest.mock('electron-settings', () => ({ | ||
get: () => 'red', | ||
set: () => 'blue', | ||
getAll: () => {} | ||
})); |
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 |
---|---|---|
@@ -1,18 +1,15 @@ | ||
import { getSetting } from 'utils/settings'; | ||
|
||
export const logoText = '{ Gisto }'; | ||
export const TAG_REGEX = /#(\d*[A-Za-z_0-9]+\d*)/g; | ||
export const DEFAULT_SNIPPET_DESCRIPTION = 'untitled'; | ||
export const MINIMUM_CHARACTERS_TO_TRIGGER_SEARCH = 2; | ||
export const SIDEBAR_WIDTH = 350; | ||
export const SNIPPET_CACHE_SECONDS_DELAY = getSetting('snippet-fetch-cache-in-seconds') || 100; | ||
export const GAUA = 'UA-40972813-6'; | ||
|
||
export const gitHubTokenKeyInStorage = 'github-api-key'; | ||
export const gitHubEnterpriseDomainInStorage = 'github-enterprise-url'; | ||
|
||
export const gitHubEnterpriseDomainInStorage = 'github-enterprise-url'; | ||
export const defaultURL = 'https://github.com'; | ||
export const DEFAULT_API_ENDPOINT_URL = 'https://api.github.com'; | ||
export const defaultGistURL = 'https://gist.github.com'; | ||
export const gateKeeperURL = 'https://gisto-gatekeeper.azurewebsites.net/authenticate'; | ||
|
||
export const GAUA = 'UA-40972813-6'; | ||
export const gateKeeperURL = 'https://gisto-gatekeeper.azurewebsites.net/authenticate'; |
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