Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More TypeScript in the frontend (#3742)
- Loading branch information
1 parent
02e1baf
commit b36d01b
Showing
36 changed files
with
364 additions
and
541 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
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,108 @@ | ||
export function badgeUrlFromPath({ | ||
baseUrl, | ||
path, | ||
queryParams, | ||
style, | ||
format, | ||
longCache, | ||
}: { | ||
baseUrl?: string | ||
path: string | ||
queryParams: { [k: string]: string | number | boolean } | ||
style?: string | ||
format?: string | ||
longCache?: boolean | ||
}): string | ||
|
||
export function badgeUrlFromPattern({ | ||
baseUrl, | ||
pattern, | ||
namedParams, | ||
queryParams, | ||
style, | ||
format, | ||
longCache, | ||
}: { | ||
baseUrl?: string | ||
pattern: string | ||
namedParams: { [k: string]: string } | ||
queryParams: { [k: string]: string | number | boolean } | ||
style?: string | ||
format?: string | ||
longCache?: boolean | ||
}): string | ||
|
||
export function encodeField(s: string): string | ||
|
||
export function staticBadgeUrl({ | ||
baseUrl, | ||
label, | ||
message, | ||
color, | ||
style, | ||
namedLogo, | ||
format, | ||
}: { | ||
baseUrl?: string | ||
label: string | ||
message: string | ||
color?: string | ||
style?: string | ||
namedLogo?: string | ||
format?: string | ||
}): string | ||
|
||
export function queryStringStaticBadgeUrl({ | ||
baseUrl, | ||
label, | ||
message, | ||
color, | ||
labelColor, | ||
style, | ||
namedLogo, | ||
logoColor, | ||
logoWidth, | ||
logoPosition, | ||
format, | ||
}: { | ||
baseUrl?: string | ||
label: string | ||
message: string | ||
color?: string | ||
labelColor?: string | ||
style?: string | ||
namedLogo?: string | ||
logoColor?: string | ||
logoWidth?: number | ||
logoPosition?: number | ||
format?: string | ||
}): string | ||
|
||
export function dynamicBadgeUrl({ | ||
baseUrl, | ||
datatype, | ||
label, | ||
dataUrl, | ||
query, | ||
prefix, | ||
suffix, | ||
color, | ||
style, | ||
format, | ||
}: { | ||
baseUrl?: string | ||
datatype: string | ||
label: string | ||
dataUrl: string | ||
query: string | ||
prefix: string | ||
suffix: string | ||
color?: string | ||
style?: string | ||
format?: string | ||
}): string | ||
|
||
export function rasterRedirectUrl( | ||
{ rasterUrl }: { rasterUrl: string }, | ||
badgeUrl: string | ||
): string |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.