All files / utils constants.ts

100% Statements 21/21
100% Branches 0/0
0% Functions 0/7
100% Lines 21/21

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29  1x 1x 1x 1x 1x     1x 1x 1x     1x 1x 1x 1x     1x 1x 1x 1x 1x 1x 1x 1x 1x  
/* ENV */
export const BASE_API = import.meta.env.VITE_BASE_API;
export const SOCKET_ENDPOINT = import.meta.env.VITE_SOCKET_ENDPOINT;
export const PAIR_ENDPOINT = import.meta.env.VITE_PAIR_ENDPOINT;
export const CONTROL_DEVICE_ENDPOINT = import.meta.env
	.VITE_CONTROL_DEVICE_ENDPOINT;
 
/* URLS */
export const SOCKET_URL = `${BASE_API}/${SOCKET_ENDPOINT}`;
export const PAIR_URL = `${BASE_API}/${PAIR_ENDPOINT}`;
export const CONTROL_DEVICE_URL = `${BASE_API}/${CONTROL_DEVICE_ENDPOINT}`;
 
/* ROUTE PATHS */
export const INDEX_ROUTE = "/";
export const SIGNIN_ROUTE = "/signin";
export const DASHBOARD_ROUTE = "/dashboard";
export const ERROR404_ROUTE = "/notfound";
 
/* ROOM ILLUSTRATIOS MAPPING */
export const roomToIllustrationMap = {
	livingroom: () => import("~/assets/rooms/livingroom.svg?url"),
	bedroom: () => import("~/assets/rooms/bedroom.svg?url"),
	kitchen: () => import("~/assets/rooms/kitchen.svg?url"),
	bathroom: () => import("~/assets/rooms/bathroom.svg?url"),
	office: () => import("~/assets/rooms/office.svg?url"),
	garage: () => import("~/assets/rooms/garage.svg?url"),
	default: () => import("~/assets/rooms/default.svg?url"),
};