added authorization stores and fixed http client

This commit is contained in:
Fran Jurmanović
2021-05-29 17:11:21 +02:00
parent f835c76b39
commit f0d2e7b06d
23 changed files with 473 additions and 24 deletions

View File

@@ -0,0 +1,4 @@
export default function firstUpper(s: string): string {
if (typeof s !== "string") return "";
return s.charAt(0).toUpperCase() + s.slice(1);
}

View File

@@ -3,3 +3,4 @@ export { default as update } from "./update-deco";
export { default as index } from "./index-deco";
export { default as closest } from "./closest-deco";
export { default as isTrue } from "./isTrue";
export { default as firstUpper } from "./first-upper";

View File

@@ -0,0 +1,3 @@
export default function randomId() {
return "_" + Math.random().toString(36).substr(2, 5);
}