File tree 1 file changed +3
-13
lines changed
1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 5
5
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
*/
7
7
8
+ import { Env , IdpSettings } from '@gridsuite/commons-ui' ;
8
9
import { getErrorMessage } from '../utils/error' ;
9
10
import { Url } from '../utils/api-rest' ;
10
11
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' ) ;
23
13
24
14
function fetchEnv ( ) : Promise < EnvJson > {
25
15
return fetch ( 'env.json' ) . then ( ( res : Response ) => res . json ( ) ) ;
26
16
}
27
17
28
- export function fetchIdpSettings ( ) : Promise < IdpSettingsJson > {
18
+ export function fetchIdpSettings ( ) : Promise < IdpSettings > {
29
19
return fetch ( 'idpSettings.json' ) . then ( ( res ) => res . json ( ) ) ;
30
20
}
31
21
You can’t perform that action at this time.
0 commit comments