Skip to content

Commit b625887

Browse files
review
1 parent 18853d1 commit b625887

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/services/apps-metadata.ts

+3-13
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,17 @@
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
66
*/
77

8+
import { Env, IdpSettings } from '@gridsuite/commons-ui';
89
import { getErrorMessage } from '../utils/error';
910
import { Url } from '../utils/api-rest';
1011

11-
//import { IdpSettings } from '@gridsuite/commons-ui';
12-
export type IdpSettingsJson = typeof import('../../public/idpSettings.json');
13-
14-
export type EnvJson = typeof import('../../public/env.json') & {
15-
// https://github.com/gridsuite/deployment/blob/main/docker-compose/env.json
16-
// https://github.com/gridsuite/deployment/blob/main/k8s/live/azure-dev/env.json
17-
// https://github.com/gridsuite/deployment/blob/main/k8s/live/azure-integ/env.json
18-
// https://github.com/gridsuite/deployment/blob/main/k8s/live/local/env.json
19-
appsMetadataServerUrl?: Url;
20-
mapBoxToken?: string;
21-
//[key: string]: string;
22-
};
12+
export type EnvJson = Env & typeof import('../../public/env.json');
2313

2414
function fetchEnv(): Promise<EnvJson> {
2515
return fetch('env.json').then((res: Response) => res.json());
2616
}
2717

28-
export function fetchIdpSettings(): Promise<IdpSettingsJson> {
18+
export function fetchIdpSettings(): Promise<IdpSettings> {
2919
return fetch('idpSettings.json').then((res) => res.json());
3020
}
3121

0 commit comments

Comments
 (0)