refactor of data-service
This commit is contained in:
parent
6fb98c69f2
commit
09c97df1a8
49 changed files with 2394 additions and 112 deletions
7
libs/utils/src/common.ts
Normal file
7
libs/utils/src/common.ts
Normal 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}`;
|
||||
}
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
export * from './dateUtils';
|
||||
export * from './calculations/index';
|
||||
export * from './common';
|
||||
export * from './dateUtils';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue