import { useEffect, useRef } from 'react';
import axios, { AxiosError, AxiosRequestConfig } from 'axios';
import _useAxios, { configure } from 'axios-hooks';
import { useErrorHandler } from 'react-error-boundary';
import { useToast } from '@chakra-ui/react';
import { API_URL } from '../config';Funciones globales para ejecutar pruebas describe(name, cb) te permite agrupar varios test unitarios
y dentro podemos usar it(name, cb) o test(name, cb) para acceder a un elemento screen y para debugear screen.debug()
usamos render de @testing-library/react para pintar y evaluar el componente.
para acceder al dom del componente usamos screen y buscar elementos con getBy... y con promise findBy...
los objetos y funciones mas usados
servicio text que permite acceder al tipo de cambio de la sunat de una manera mas simple:
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
| ## | |
| # I wanted to use same ssl client certificate CA in nginx for multple client certs | |
| # but restrict the users outside our organisation accessing everything. | |
| # Because I can decide what to put into the emailAddress I can force verify everything and only pass the proper users. | |
| ## | |
| ## | |
| # This way you can restrict users only with email addresses from @koodimonni.fi | |
| # Put this into http context in nginx configs | |
| ## |
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
| <?php | |
| /* | |
| https://redirector.googlevideo.com/videoplayback? | |
| id=62705830c2bbd616& | |
| itag=22& | |
| source=youtube& | |
| requiressl=yes& | |
| ei=G5-CXpqzGIn6Wa3MvvAB& | |
| susc=ytcp& |
package.json
{
"name": "orbis",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"start": "node ./index.js"
},