mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
added authorization stores and fixed http client
This commit is contained in:
4
src/core/utils/first-upper.ts
Normal file
4
src/core/utils/first-upper.ts
Normal 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);
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
3
src/core/utils/random-id.ts
Normal file
3
src/core/utils/random-id.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default function randomId() {
|
||||
return "_" + Math.random().toString(36).substr(2, 5);
|
||||
}
|
||||
Reference in New Issue
Block a user