mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-05 23:43:57 +00:00
6ac963684d
* chore: upgrade minor versions * chore: upgrade cypress * chore: upgrade fe dependencies * update readme * update osx images * update readme * upgrade dependencies * upgrade test dependency * feat: add option to input autofill * feat: autofill to the left * chore: update docs * chore: cleanup ci * version bump * style: prevent zero height bar * fix: prevent loosing menu * ux: improve input, no spellcheck or autocomplete * small ux improvements in cuesheets * feat 111/increase maximum number of events * fix: optimistic delete issue with filter * refact: pincode workflow * chore: add versioning to packages
23 lines
744 B
JavaScript
23 lines
744 B
JavaScript
export const NODE_PORT = 4001;
|
|
export const EVENT_TABLE = 'event';
|
|
export const ALIASES = 'aliases';
|
|
export const USERFIELDS = 'userFields';
|
|
export const EVENTS_TABLE = 'events';
|
|
export const APP_TABLE = 'appinfo';
|
|
export const OSC_SETTINGS = 'oscSettings';
|
|
export const APP_SETTINGS = 'appSettings';
|
|
|
|
/**
|
|
* @description finds server path given the current location
|
|
* @return {*}
|
|
*/
|
|
const calculateServer = () => {
|
|
return window.location.origin.replace(window.location.port, `${NODE_PORT}/`);
|
|
};
|
|
|
|
export const serverURL = calculateServer();
|
|
export const eventURL = serverURL + EVENT_TABLE;
|
|
export const eventsURL = serverURL + EVENTS_TABLE;
|
|
export const playbackURL = `${serverURL}playback`;
|
|
export const ontimeURL = `${serverURL}ontime`;
|