diff --git a/configuration/configuration.ts b/configuration/configuration.ts index 2aeff1f..ec7093f 100644 --- a/configuration/configuration.ts +++ b/configuration/configuration.ts @@ -1,22 +1,22 @@ -import process from "process"; +import process from 'process'; import { Environment, OrchestratorConfig, -} from "@orchestrator-ui/orchestrator-ui-components"; +} from '@orchestrator-ui/orchestrator-ui-components'; export const DEFAULT_GRAPHQL_CORE_ENDPOINT = - "http://localhost:8080/api/graphql"; -export const DEFAULT_ORCHESTRATOR_API_BASE_URL = "http://localhost:8080/api"; -export const DEFAULT_ORCHESTRATOR_WEBSOCKET_URL = "ws://localhost:8080"; + 'http://localhost:8080/api/graphql'; +export const DEFAULT_ORCHESTRATOR_API_BASE_URL = 'http://localhost:8080/api'; +export const DEFAULT_ORCHESTRATOR_WEBSOCKET_URL = 'ws://localhost:8080'; -export const ENGINE_STATUS_ENDPOINT = "/settings/status"; -export const PROCESS_STATUS_COUNTS_ENDPOINT = "/processes/status-counts"; -export const PROCESSES_ENDPOINT = "/processes"; -export const SUBSCRIPTION_ACTIONS_ENDPOINT = "/subscriptions/workflows"; +export const ENGINE_STATUS_ENDPOINT = '/settings/status'; +export const PROCESS_STATUS_COUNTS_ENDPOINT = '/processes/status-counts'; +export const PROCESSES_ENDPOINT = '/processes'; +export const SUBSCRIPTION_ACTIONS_ENDPOINT = '/subscriptions/workflows'; export const SUBSCRIPTION_PROCESSES_ENDPOINT = - "/processes/process-subscriptions-by-subscription-id"; -export const DEFAULT_WORKFLOW_INFORMATION_LINK_URL = "http://localhost:8080"; + '/processes/process-subscriptions-by-subscription-id'; +export const DEFAULT_WORKFLOW_INFORMATION_LINK_URL = 'http://localhost:8080'; export const getInitialOrchestratorConfig = (): OrchestratorConfig => { const orchestratorGraphqlBaseUrl = @@ -38,14 +38,14 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => { orchestratorWebsocketUrl: process.env.ORCHESTRATOR_WEBSOCKET_URL || DEFAULT_ORCHESTRATOR_WEBSOCKET_URL, - authActive: process.env.AUTH_ACTIVE?.toLowerCase() != "false", - useWebSockets: process.env.USE_WEB_SOCKETS?.toLowerCase() === "true", - useThemeToggle: process.env.USE_THEME_TOGGLE?.toLowerCase() === "true", + authActive: process.env.AUTH_ACTIVE?.toLowerCase() != 'false', + useWebSockets: process.env.USE_WEB_SOCKETS?.toLowerCase() === 'true', + useThemeToggle: process.env.USE_THEME_TOGGLE?.toLowerCase() === 'true', workflowInformationLinkUrl: process.env.WORKFLOW_INFORMATION_LINK_URL ?? DEFAULT_WORKFLOW_INFORMATION_LINK_URL, showWorkflowInformationLink: process.env.SHOW_WORKFLOW_INFORMATION_LINK?.toLowerCase() === - "true", + 'true', }; };