{"size": 1333, "ext": "js", "max_stars_repo_path": "app/consts.js", "max_stars_repo_name": "pigareva/react-desc-plan", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/consts.js", "max_issues_repo_name": "pigareva/react-desc-plan", "max_issues_repo_issues_event_min_datetime": "2021-01-11T18:40:11.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T04:19:12.000Z", "max_forks_repo_path": "app/consts.js", "max_forks_repo_name": "pigareva/react-desk-plan", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 29.6222222222, "max_line_length": 80, "alphanum_fraction": 0.7501875469}
export const BACKEND_PORT = '8000';

const BACKEND_HOST = 'www.pigareva.de';
const LOCAL_HOST = 'localhost';
const host = process.env.NODE_ENV === 'development' ? LOCAL_HOST : BACKEND_HOST;
const URL_EMPLOYEES = `http://${host}:${BACKEND_PORT}/employees`;

export const URL_GET_ALL_EMPLOYEES = URL_EMPLOYEES;
export const URL_DELETE_EMPLOYEE = `${URL_EMPLOYEES}/delete/`;
export const URL_UPDATE_EMPLOYEE = `${URL_EMPLOYEES}/update/`;
export const URL_CREATE_EMPLOYEE = `${URL_EMPLOYEES}/create`;

export const DEFAULT_BACKGROUND = '/img/at-work-icon.jpg';

export const START_WORKING_DAY_TIME = 540;
export const END_WORKING_DAY_TIME = 1440;
export const WORKING_DAY_LONG = 480;
export const TIME_INTERVAL = 100;

export const INITIAL_STATE = {
  time: {
    time: START_WORKING_DAY_TIME,
    day: 1,
    isDay: false,
  },
  employees: { employeesData: [] },
  button: {
    button: false,
    buttonStart: true,
  },
};

export const CURRENT_TIME = 'CURRENT_TIME';
export const START_DAY = 'START_DAY';
export const END_DAY = 'END_DAY';

export const EMPLOYEES_LOADED = 'EMPLOYEES_LOADED';
export const EMPLOYEE_CREATED = 'EMPLOYEE_CREATED';
export const EMPLOYEE_UPDATED = 'EMPLOYEE_UPDATED';
export const EMPLOYEE_DELETED = 'EMPLOYEE_DELETED';

export const ADD_BUTTON_CLICK = 'ADD_BUTTON_CLICK';

export const OTHER = 'other';
