Files
SMATEC-FRONTEND/src/constants/index.ts

43 lines
1.2 KiB
TypeScript

export const DURATION_POLLING = 15000; //15s
export const DURATION_CHART = 300000; //5m
export const DEFAULT_LIMIT = 200;
export const DATE_TIME_FORMAT = 'DD/MM/YYYY HH:mm:ss';
export const TIME_FORMAT = 'HH:mm:ss';
export const DATE_FORMAT = 'DD/MM/YYYY';
export const DURATION_DISCONNECTED = 300; //seconds
export const DURATION_POLLING_PRESENTATIONS = 120000; //milliseconds
export const STATUS_NORMAL = 0;
export const STATUS_WARNING = 1;
export const STATUS_DANGEROUS = 2;
export const STATUS_SOS = 3;
export const COLOR_DISCONNECT = '#d9d9d9';
export const COLOR_NORMAL = '#389e0d';
export const COLOR_WARNING = '#d48806';
export const COLOR_DANGEROUS = '#d9363e';
export const COLOR_SOS = '#ff0000';
export const ACCESS_TOKEN = 'access_token';
export const REFRESH_TOKEN = 'refresh_token';
export const THEME_KEY = 'theme';
// Global Constants
export const LIMIT_TREE_LEVEL = 5;
export const DEFAULT_PAGE_SIZE = 5;
export const PADDING_IN_LINE = 4;
export const PADDING_BLOCK = 4;
export enum HTTPSTATUS {
HTTP_SUCCESS = 200,
HTTP_BADREQUEST = 400,
HTTP_UNAUTHORIZED = 401,
HTTP_FORBIDDEN = 403,
HTTP_NOTFOUND = 404,
HTTP_SERVERERROR = 500,
HTTP_ACCEPTED = 202,
HTTP_CREATED = 201,
HTTP_NOCONTENT = 204,
}