Last active
February 24, 2020 15:36
-
-
Save lrlineroa/25c5e9f62653f2674f6cc55ce63c1e85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const appConstants = { | |
APP_URL: 'https://appname.herokuapp.com/',//por lo general es como esta | |
recordOperations:{ | |
CREATE:'create', | |
EDIT:'edit', | |
}, | |
database: { | |
user: { | |
USER_ID: 'user_id', | |
USERS: 'users', | |
NAME: 'name', | |
LAST_NAME: 'last_name', | |
EMAIL: 'email', | |
GENDER: 'gender', | |
QUARTER: 'quarter', | |
PASSWORD: 'password', | |
COURSE: 'course', | |
TITLE: 'title', | |
ENTITY: 'entity', | |
ADMIN: 'admin', | |
OTHER_TITLE:'other_title', | |
}, | |
entity: { | |
ENTITIES: 'entities', | |
TYPE: 'type', | |
}, | |
title: { | |
TITLES: 'titles', | |
ENTITY_TYPES:"entity_types", | |
}, | |
course: { | |
COURSES: 'courses' | |
}, | |
stories: { | |
THUMBNAILS: 'thumbnails' | |
}, | |
settings: { | |
SETTINGS: 'settings', | |
PROGRAM_INIT_DATE: 'program_init_date', | |
}, | |
commonAttributes: { | |
NAME: 'name', | |
ID:'_id', | |
}, | |
}, | |
appRoutes: { | |
ENTRY_POINT: "EntryPoint", | |
LOGIN: "Login", | |
CHOICE_REGISTER: "ChoiceRegister", | |
COMPANY_REGISTER: "CompanyRegister", | |
SCHOOL_REGISTER: "SchoolRegister", | |
TABS_HOME: "TabsHome", | |
FORGOT_PASSWORD:'ForgotPassword' | |
}, | |
appVersion: { | |
UNCHECKED: 'unchecked', | |
NEEDS_UPDATE: "needs_update", | |
UP_TO_DATE: "up_to_date" | |
}, | |
validation: { | |
TESTING: 'testing', | |
OK: 'OK', | |
required: { | |
EMAIL: 'El campo Email es requerido', | |
PASSWORD: 'El campo Password es requerido', | |
NAME: 'El campo Nombre es requerido', | |
LAST_NAME: 'El campo Apellido es requerido', | |
PHONE_NUMBER: 'El campo Teléfono es requerido', | |
}, | |
invalid: { | |
EMAIL: 'El campo Email es incorrecto', | |
PHONE_NUMBER: 'El campo Teléfono es incorrecto', | |
PHONE_NUMBER_EMAIL: 'El Campo no concuerda con un teléfono o un email' | |
}, | |
}, | |
categoryNames: { | |
EMPAQUES: 'Empaques', | |
DESECHABLES: 'Desechables', | |
COMIDA: 'Comida', | |
ENVASES: 'Envases', | |
ROPA: 'Ropa', | |
CARTON: 'Carton_papel', | |
ICOPOR: 'Icopor_plasticos', | |
BOMBILLOS: 'Bombillos_pilas_aereosoles_medicamentos', | |
}, | |
actionNames: { | |
NEGRA: 'Bolsa negra', | |
BLANCA: 'Bolsa blanca', | |
VERDE: 'Bolsa verde', | |
ENTREGA: 'Unidades entregadas', | |
ESPECIAL: 'Entrega especial', | |
}, | |
actions: [ | |
{ id: 1, name: 'Bolsa negra', }, | |
{ id: 2, name: 'Bolsa blanca', }, | |
{ id: 3, name: 'Bolsa verde', }, | |
{ id: 4, name: 'Unidades entregadas', }, | |
{ id: 5, name: 'Entrega especial', }, | |
], | |
categories: [ | |
{ id: 1, name: 'Empaques' }, | |
{ id: 2, name: 'Desechables' }, | |
{ id: 3, name: 'Comida' }, | |
{ id: 4, name: 'Envases' }, | |
{ id: 5, name: 'Ropa' }, | |
{ id: 6, name: 'Carton_papel' }, | |
{ id: 7, name: 'Icopor_plasticos' }, | |
{ id: 8, name: 'Bombillos_pilas_aereosoles_medicamentos' }, | |
], | |
instructions: { | |
OBSERVE: 'Observa', | |
CLEAN: 'Limpia', | |
DEPOSIT: 'Deposita', | |
DELIVER: 'Entrega', | |
SMASH: 'Aplasta', | |
UNCLIP: 'Retira', | |
}, | |
contentType: { | |
PARAGRAPH: 'popupParagraph', | |
TITLE: 'popupTitle', | |
SUBTITLE: 'popupSubtitle' | |
}, | |
userActionStates: { | |
HOME: 'home', | |
SLIDER: 'slider', | |
INSTRUCTIONS: 'instructions', | |
REGISTERED: 'registered', | |
}, | |
notifications: { | |
RECEIVED: 'received', | |
NOTIFICATIONS_LISTENER: 'notifications_listener' | |
}, | |
stories: { | |
}, | |
USER_INFO: "user_info", | |
REGISTER_FIRST_TIME: 'register_first_time', | |
HISTORY: 'history', | |
ACTIVE_STORIES: 'active_stories', | |
FIRST_TIME_ACTIVATE_STORIES: 'already_active_stories', | |
textStyleConstants:{ | |
LIGTH:'titilliumwebl', | |
BOLD:'asapsb', | |
}, | |
UPDATE_USER_INFO:'update_user_info', | |
UPDATE_PASSWORD:'update_password', | |
} | |
export default appConstants; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment