Skip to content

Commit 6929601

Browse files
DutchBenRuben van Leeuwen
andauthored
Update to latest version of @orchestrator-ui/orchestrator-ui-components (#28)
Co-authored-by: Ruben van Leeuwen <ruben.vanleeuwen@surf.nl>
1 parent ca2c750 commit 6929601

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

configuration/configuration.ts

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
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 PROCESS_STATUS_COUNTS_ENDPOINT = "/processes/status-counts";
15+
export const PROCESSES_ENDPOINT = "/processes";
16+
export const SUBSCRIPTION_ACTIONS_ENDPOINT = "/subscriptions/workflows";
1717
export const SUBSCRIPTION_PROCESSES_ENDPOINT =
18-
'/processes/process-subscriptions-by-subscription-id';
19-
export const DEFAULT_WORKFLOW_INFORMATION_LINK_URL = 'http://localhost:8080';
18+
"/processes/process-subscriptions-by-subscription-id";
19+
export const DEFAULT_WORKFLOW_INFORMATION_LINK_URL = "http://localhost:8080";
2020

2121
export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
2222
const orchestratorGraphqlBaseUrl =
@@ -34,26 +34,22 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
3434
orchestratorApiBaseUrl,
3535
engineStatusEndpoint: orchestratorApiBaseUrl + ENGINE_STATUS_ENDPOINT,
3636
graphqlEndpointCore: orchestratorGraphqlBaseUrl,
37-
processStatusCountsEndpoint:
38-
orchestratorApiBaseUrl + PROCESS_STATUS_COUNTS_ENDPOINT,
3937
processesEndpoint: orchestratorApiBaseUrl + PROCESSES_ENDPOINT,
4038
environmentName:
4139
process.env.ENVIRONMENT_NAME ?? Environment.DEVELOPMENT,
42-
subscriptionActionsEndpoint:
43-
orchestratorApiBaseUrl + SUBSCRIPTION_ACTIONS_ENDPOINT,
4440
subscriptionProcessesEndpoint:
4541
orchestratorApiBaseUrl + SUBSCRIPTION_PROCESSES_ENDPOINT,
4642
orchestratorWebsocketUrl:
4743
process.env.ORCHESTRATOR_WEBSOCKET_URL ||
4844
DEFAULT_ORCHESTRATOR_WEBSOCKET_URL,
49-
authActive: process.env.AUTH_ACTIVE?.toLowerCase() != 'false',
50-
useWebSockets: process.env.USE_WEB_SOCKETS?.toLowerCase() === 'true',
51-
useThemeToggle: process.env.USE_THEME_TOGGLE?.toLowerCase() === 'true',
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",
5248
workflowInformationLinkUrl:
5349
process.env.WORKFLOW_INFORMATION_LINK_URL ??
5450
DEFAULT_WORKFLOW_INFORMATION_LINK_URL,
5551
showWorkflowInformationLink:
5652
process.env.SHOW_WORKFLOW_INFORMATION_LINK?.toLowerCase() ===
57-
'true',
53+
"true",
5854
};
5955
};

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)