Skip to content

Commit 563be03

Browse files
Update configuration object (#29)
* Fixes configuration to match the latest version of the library * Applies prettier rules
1 parent 6929601 commit 563be03

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

configuration/configuration.ts

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
import process from "process";
1+
import process from 'process';
22

33
import {
44
Environment,
55
OrchestratorConfig,
6-
} from "@orchestrator-ui/orchestrator-ui-components";
6+
} from '@orchestrator-ui/orchestrator-ui-components';
77

88
export const DEFAULT_GRAPHQL_CORE_ENDPOINT =
9-
"http://localhost:8080/api/graphql";
10-
export const DEFAULT_ORCHESTRATOR_API_BASE_URL = "http://localhost:8080/api";
11-
export const DEFAULT_ORCHESTRATOR_WEBSOCKET_URL = "ws://localhost:8080";
9+
'http://localhost:8080/api/graphql';
10+
export const DEFAULT_ORCHESTRATOR_API_BASE_URL = 'http://localhost:8080/api';
11+
export const DEFAULT_ORCHESTRATOR_WEBSOCKET_URL = 'ws://localhost:8080';
1212

13-
export const ENGINE_STATUS_ENDPOINT = "/settings/status";
14-
export const PROCESS_STATUS_COUNTS_ENDPOINT = "/processes/status-counts";
15-
export const PROCESSES_ENDPOINT = "/processes";
16-
export const SUBSCRIPTION_ACTIONS_ENDPOINT = "/subscriptions/workflows";
13+
export const ENGINE_STATUS_ENDPOINT = '/settings/status';
14+
export const PROCESSES_ENDPOINT = '/processes';
1715
export const SUBSCRIPTION_PROCESSES_ENDPOINT =
18-
"/processes/process-subscriptions-by-subscription-id";
19-
export const DEFAULT_WORKFLOW_INFORMATION_LINK_URL = "http://localhost:8080";
16+
'/processes/process-subscriptions-by-subscription-id';
17+
export const DEFAULT_WORKFLOW_INFORMATION_LINK_URL = 'http://localhost:8080';
2018

2119
export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
2220
const orchestratorGraphqlBaseUrl =
@@ -42,14 +40,14 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
4240
orchestratorWebsocketUrl:
4341
process.env.ORCHESTRATOR_WEBSOCKET_URL ||
4442
DEFAULT_ORCHESTRATOR_WEBSOCKET_URL,
45-
authActive: process.env.AUTH_ACTIVE?.toLowerCase() != "false",
46-
useWebSockets: process.env.USE_WEB_SOCKETS?.toLowerCase() === "true",
47-
useThemeToggle: process.env.USE_THEME_TOGGLE?.toLowerCase() === "true",
43+
authActive: process.env.AUTH_ACTIVE?.toLowerCase() != 'false',
44+
useWebSockets: process.env.USE_WEB_SOCKETS?.toLowerCase() === 'true',
45+
useThemeToggle: process.env.USE_THEME_TOGGLE?.toLowerCase() === 'true',
4846
workflowInformationLinkUrl:
4947
process.env.WORKFLOW_INFORMATION_LINK_URL ??
5048
DEFAULT_WORKFLOW_INFORMATION_LINK_URL,
5149
showWorkflowInformationLink:
5250
process.env.SHOW_WORKFLOW_INFORMATION_LINK?.toLowerCase() ===
53-
"true",
51+
'true',
5452
};
5553
};

0 commit comments

Comments
 (0)