mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
migrate ui-components from flow to typescript
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
import queryString from 'query-string';
|
||||
import queryString from "query-string";
|
||||
|
||||
export const contextPath = window.ctxPath || '';
|
||||
//@ts-ignore
|
||||
export const contextPath = window.ctxPath || "";
|
||||
|
||||
export function withContextPath(path: string) {
|
||||
return contextPath + path;
|
||||
}
|
||||
|
||||
export function withEndingSlash(url: string) {
|
||||
if (url.endsWith('/')) {
|
||||
if (url.endsWith("/")) {
|
||||
return url;
|
||||
}
|
||||
return url + '/';
|
||||
return url + "/";
|
||||
}
|
||||
|
||||
export function concat(base: string, ...parts: string[]) {
|
||||
|
||||
Reference in New Issue
Block a user