mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 08:53:51 +00:00
8d2d8ef979
* feat: add user defined translations * add refetch key for translation (#1757) --------- Co-authored-by: Alex Christoffer Rasmussen <ac@omnivox.dk>
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 PROJECT_RUNDOWNS = ['projectRundowns'];
|
|
export const RUNDOWN = ['rundown'];
|
|
export const RUNTIME = ['runtimeStore'];
|
|
export const URL_PRESETS = ['urlpresets'];
|
|
export const VIEW_SETTINGS = ['viewSettings'];
|
|
export const CLIENT_LIST = ['clientList'];
|
|
export const REPORT = ['report'];
|
|
export const TRANSLATION = ['translation'];
|
|
|
|
// API URLs
|
|
export const apiEntryUrl = `${serverURL}/data`;
|
|
|
|
const userAssetsPath = 'user';
|
|
const cssOverridePath = 'styles/override.css';
|
|
const customTranslationsPath = 'translations/translations.json';
|
|
|
|
export const overrideStylesURL = `${serverURL}/${userAssetsPath}/${cssOverridePath}`;
|
|
export const projectLogoPath = `${serverURL}/${userAssetsPath}/logo`;
|
|
export const customTranslationsURL = `${serverURL}/${userAssetsPath}/${customTranslationsPath}`;
|