-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Overhaul popup menu and provider management (#103)
This PR is primarily meant to fix a bug where github enterprise URLs would not actually work due to 'github' being the hardcoded provider on API requests. While I was in here though I took it as a chance to rewrite the popup menu to address some other issues.
- Loading branch information
1 parent
876783f
commit 0912732
Showing
9 changed files
with
398 additions
and
506 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,5 +1,12 @@ | ||
export const useSelfHostedStorageKey = "use_self_hosted"; | ||
export const codecovApiTokenStorageKey = "self_hosted_codecov_api_token"; // Keeping this key to not break existing installs. | ||
export const selfHostedCodecovURLStorageKey = "self_hosted_codecov_url"; | ||
export const selfHostedGitHubURLStorageKey = "self_hosted_github_url"; | ||
export const selfHostedCodecovApiToken = "self_hosted_codecov_api_token"; | ||
export const dynamicContentScriptRegistrationId = "dynamic-content-script"; | ||
|
||
export const codecovCloudApiUrl = "https://api.codecov.io"; | ||
export const githubCloudUrl = "https://github.com"; | ||
|
||
export const providers = { | ||
github: "github", | ||
githubEnterprise: "github_enterprise", | ||
} as const; |
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
Oops, something went wrong.