mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-06 07:53:54 +00:00
b6507c27a6
* create report service * write report from runtimeState * use in UI * clear report * update types * clear all from settings menu * rearence rightclik menu * refactor styling * also report roll events * ontime/under time is same colour * refactor reporter * add target to ontime-refetch * remove menu * fectch only on message from server * memo useGetEventReport * refactor * use staleTime * dont add to menu yet * implement review * clear all from menu * fix merge * start end show * combine test for the go button text and action * add report to menu * extract csv utility * report management * unneeded async * small refacort of triggerReportEntry --------- Co-authored-by: Carlos Valente <carlosvalente@pm.me>
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import { serverURL } from '../../externals';
|
|
|
|
// keys in tanstack store
|
|
export const APP_INFO = ['appinfo'];
|
|
export const APP_SETTINGS = ['appSettings'];
|
|
export const APP_VERSION = ['appVersion'];
|
|
export const AUTOMATION = ['automation'];
|
|
export const CUSTOM_FIELDS = ['customFields'];
|
|
export const PROJECT_DATA = ['project'];
|
|
export const PROJECT_LIST = ['projectList'];
|
|
export const RUNDOWN = ['rundown'];
|
|
export const RUNTIME = ['runtimeStore'];
|
|
export const SHEET_STATE = ['sheetState'];
|
|
export const URL_PRESETS = ['urlpresets'];
|
|
export const VIEW_SETTINGS = ['viewSettings'];
|
|
export const CLIENT_LIST = ['clientList'];
|
|
export const REPORT = ['report'];
|
|
|
|
// API URLs
|
|
export const apiEntryUrl = `${serverURL}/data`;
|
|
|
|
export const projectDataURL = `${serverURL}/project`;
|
|
export const rundownURL = `${serverURL}/events`;
|
|
export const ontimeURL = `${serverURL}/ontime`;
|
|
|
|
export const userAssetsPath = 'user';
|
|
export const cssOverridePath = 'styles/override.css';
|
|
export const overrideStylesURL = `${serverURL}/${userAssetsPath}/${cssOverridePath}`;
|
|
export const projectLogoPath = `${serverURL}/${userAssetsPath}/logo`;
|