mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-05 07:28:01 +00:00
2586b0b10c
* addtime endpoint * create universal Subscription * add http integration * catch error from HTTP integration emit * unify osc and http validateSubscriptionEntry * add necessary endpoint for http subscription * make subscription part of modal generic * add http subscription to integration modal * remove log * Revert "addtime endpoint" This reverts commit4c039220dc. * reuse agent and test url compatibility * simplify retun path * add todo in UI * test for http protocol * import not needed yet * lint * fix merge * lint * fix httpPlaceholder * wip: prepare endpoints * wip: temporary fix to get form to work * disable HTTP integration if enabledOut==false * register/unregister http * refactor: subscription types and form register * refactor: validation * cleanup * cleanup * try GOT * allow https * split url and searchParams allow for post option * add options to post * add retry count * fix test * Revert "fix test" This reverts commit927e88370f. * Revert "add options to post" This reverts commit0523a68ef4. * Revert "split url and searchParams allow for post option" This reverts commit54ab8d4ffe. * missing retryCount in httpPlaceholder * remove global this * remove retry count * remove https --------- Co-authored-by: Carlos Valente <carlosvalente@pm.me>
28 lines
1.1 KiB
TypeScript
28 lines
1.1 KiB
TypeScript
// REST stuff
|
|
export const PROJECT_DATA = ['project'];
|
|
export const ALIASES = ['aliases'];
|
|
export const USERFIELDS = ['userFields'];
|
|
export const RUNDOWN = ['rundown'];
|
|
export const APP_INFO = ['appinfo'];
|
|
export const OSC_SETTINGS = ['oscSettings'];
|
|
export const HTTP_SETTINGS = ['httpSettings'];
|
|
export const APP_SETTINGS = ['appSettings'];
|
|
export const VIEW_SETTINGS = ['viewSettings'];
|
|
export const RUNTIME = ['runtimeStore'];
|
|
|
|
const location = window.location;
|
|
const socketProtocol = location.protocol === 'https:' ? 'wss' : 'ws';
|
|
export const isProduction = import.meta.env.MODE === 'production';
|
|
|
|
const STATIC_PORT = 4001;
|
|
export const serverPort = isProduction ? location.port : STATIC_PORT;
|
|
export const serverURL = `${location.protocol}//${location.hostname}:${serverPort}`;
|
|
export const websocketUrl = `${socketProtocol}://${location.hostname}:${serverPort}/ws`;
|
|
|
|
export const projectDataURL = `${serverURL}/project`;
|
|
export const rundownURL = `${serverURL}/events`;
|
|
export const ontimeURL = `${serverURL}/ontime`;
|
|
|
|
export const stylesPath = 'external/styles/override.css';
|
|
export const overrideStylesURL = `${serverURL}/${stylesPath}`;
|