projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add api field value to runtime constraints
[arvados-workbench2.git]
/
src
/
common
/
config.ts
diff --git
a/src/common/config.ts
b/src/common/config.ts
index db67ed8dceec9fc06837945cba4a820682a642af..3961d5aa2496fec7fbba912a96738f1bc15b8b5d 100644
(file)
--- a/
src/common/config.ts
+++ b/
src/common/config.ts
@@
-35,7
+35,9
@@
export interface Config {
packageVersion: string;
parameters: {};
protocol: string;
packageVersion: string;
parameters: {};
protocol: string;
- remoteHosts: string;
+ remoteHosts: {
+ [key: string]: string
+ };
remoteHostsViaDNS: boolean;
resources: {};
revision: string;
remoteHostsViaDNS: boolean;
resources: {};
revision: string;
@@
-102,7
+104,7
@@
export const mockConfig = (config: Partial<Config>): Config => ({
packageVersion: '',
parameters: {},
protocol: '',
packageVersion: '',
parameters: {},
protocol: '',
- remoteHosts:
''
,
+ remoteHosts:
{}
,
remoteHostsViaDNS: false,
resources: {},
revision: '',
remoteHostsViaDNS: false,
resources: {},
revision: '',
@@
-133,4
+135,5
@@
const getDefaultConfig = (): ConfigJSON => ({
FILE_VIEWERS_CONFIG_URL: "",
});
FILE_VIEWERS_CONFIG_URL: "",
});
-const getDiscoveryURL = (apiHost: string) => `${window.location.protocol}//${apiHost}/discovery/v1/apis/arvados/v1/rest`;
+export const DISCOVERY_URL = 'discovery/v1/apis/arvados/v1/rest';
+const getDiscoveryURL = (apiHost: string) => `${window.location.protocol}//${apiHost}/${DISCOVERY_URL}`;