- Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
- Opcional: Si usamos Fetch API en el proyecto:
| Default.aspx: | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head runat="server"> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
| <title></title> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css" /> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <httpProtocol> | |
| <customHeaders> | |
| <add name="Access-Control-Allow-Origin" value="*"/> | |
| <add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS"/> | |
| <add name="Access-Control-Allow-Headers" value="Content-Type"/> | |
| </customHeaders> | |
| </httpProtocol> |
| git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all" |
| const routes: Routes = [ | |
| //Si la direcci贸n es Inicio y se llama con una direcci贸n vacia | |
| {path: '', component: InicioComponent}, | |
| //Si la direcci贸n es articulos | |
| {path: 'articulos', component: ArticulosComponent}, | |
| //Si la direcci贸n es cualquier tonteria como localhost:4200/asdfasdf | |
| {path: '**', pathMatch:'full', redirectTo:''} | |
| select id, descripcion1, | |
| case descripcion1 | |
| when '%uso%' then 'Servicio' | |
| when '%servicio%' then 'Servicio' | |
| else 'consu' | |
| end as TipoProducto, CodigoAlternativo ,precioUnitario, Coste, 1 as Category, 1 as uom, 1 as sequence, 0 as volumen, | |
| 0 as weight, | |
| cast(1 as bit) as sale_ok, cast(1 as bit) as purchase_ok, cast(1 as bit) as active, 2 as create_uid, | |
| 2 as write_uid, 'manual' as service_type, 'no-message' as sale_line_warn, | |
| 'no' as expense_policy, 'order' as invoice_policy, 1 as uomPId |
| # Para quitar el programa. | |
| sudo apt-get autoremove samba samba-common | |
| # para quitar los archivos de configuracion. | |
| sudo apt-get autoremove system-config-samba |
| network: | |
| version: 2 | |
| ethernets: | |
| eno1: | |
| dhcp4: no | |
| dhcp6: no | |
| addresses: [172.16.1.55/24] | |
| gateway4: 172.16.1.1 | |
| nameservers: | |
| addresses: [172.16.1.1, 8.8.8.8] |