refactor of data-service

This commit is contained in:
Boki 2025-06-12 08:03:09 -04:00
parent 6fb98c69f2
commit 09c97df1a8
49 changed files with 2394 additions and 112 deletions

7
libs/utils/src/common.ts Normal file
View file

@ -0,0 +1,7 @@
export function createProxyUrl(proxy: any): string {
const { protocol, host, port, username, password } = proxy;
if (username && password) {
return `${protocol}://${encodeURIComponent(username)}:${encodeURIComponent(password)}@${host}:${port}`;
}
return `${protocol}://${host}:${port}`;
}

View file

@ -1,2 +1,3 @@
export * from './dateUtils';
export * from './calculations/index';
export * from './common';
export * from './dateUtils';