migrate ui-components from flow to typescript

This commit is contained in:
Sebastian Sdorra
2019-10-20 16:59:02 +02:00
parent c41efbdc4f
commit f49e17a3a7
151 changed files with 2039 additions and 25265 deletions

View File

@@ -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[]) {