2022-10-12 10:21:49 -04:00
|
|
|
const host = window.location.hostname;
|
2022-10-17 17:18:24 -04:00
|
|
|
let hostAndPort = `api.${host}`;
|
|
|
|
let protocol = 'https';
|
|
|
|
if (/^\d+\./.test(host) || host === 'localhost') {
|
|
|
|
hostAndPort = `${host}:7000`;
|
|
|
|
protocol = 'http';
|
|
|
|
}
|
|
|
|
export const BACKEND_BASE_URL = `${protocol}://${hostAndPort}/v1.0`;
|
2022-10-12 10:21:49 -04:00
|
|
|
|
|
|
|
export const PROCESS_STATUSES = [
|
|
|
|
'not_started',
|
|
|
|
'user_input_required',
|
|
|
|
'waiting',
|
|
|
|
'complete',
|
|
|
|
'faulted',
|
|
|
|
'suspended',
|
|
|
|
];
|
|
|
|
|
2022-11-02 12:42:49 -04:00
|
|
|
// with time: yyyy-MM-dd HH:mm:ss
|
2022-11-10 15:44:58 -05:00
|
|
|
export const DATE_TIME_FORMAT = 'yyyy-MM-dd HH:mm:ss';
|
2022-11-02 12:42:49 -04:00
|
|
|
export const DATE_FORMAT = 'yyyy-MM-dd';
|
|
|
|
export const DATE_FORMAT_CARBON = 'Y-m-d';
|