This file contains hidden or 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 checkMongoIDRegExp = new RegExp("^[0-9a-fA-F]{24}$"); |
This file contains hidden or 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
| <h1> Nuevo evento </h1> | |
| <hr /> | |
| <form className="container"> | |
| <div className="form-group"> | |
| <label>Fecha y hora inicio</label> | |
| <input className="form-control" placeholder="Fecha inicio" /> | |
| </div> | |
| <div className="form-group"> |
This file contains hidden or 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
| /* Modal */ | |
| .ReactModalPortal > div{ | |
| opacity: 0; | |
| } | |
| .ReactModalPortal .ReactModal__Overlay { | |
| align-items: center; | |
| display: flex; | |
| justify-content: center; | |
| transition: opacity .2s ease-in-out; |
This file contains hidden or 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
| export const messages = { | |
| allDay: 'Todo el día', | |
| previous: '<', | |
| next: '>', | |
| today: 'Hoy', | |
| month: 'Mes', | |
| week: 'Semana', | |
| day: 'Día', | |
| agenda: 'Agenda', | |
| date: 'Fecha', |
This file contains hidden or 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
| import React from 'react'; | |
| import './login.css'; | |
| export const LoginScreen = () => { | |
| return ( | |
| <div className="container login-container"> | |
| <div className="row"> | |
| <div className="col-md-6 login-form-1"> | |
| <h3>Ingreso</h3> | |
| <form> |
This file contains hidden or 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
| function parseJwt (token) { | |
| var base64Url = token.split('.')[1]; | |
| var base64 = base64Url.replace('-', '+').replace('_', '/'); | |
| return JSON.parse(window.atob(base64)); | |
| }; |
This file contains hidden or 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
| <div | |
| className="google-btn" | |
| > | |
| <div className="google-icon-wrapper"> | |
| <img className="google-icon" src="https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg" alt="google button" /> | |
| </div> | |
| <p className="btn-text"> | |
| <b>Sign in with google</b> | |
| </p> | |
| </div> |
This file contains hidden or 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
| export const helpHttp = () => { | |
| const customFetch = (endpoint, options) => { | |
| const defaultHeader = { | |
| accept: "application/json", | |
| }; | |
| const controller = new AbortController(); | |
| options.signal = controller.signal; | |
| options.method = options.method || "GET"; |