- Run
npm install cordova-res --save-dev
- Create
1024x1024px
icon atresources/icon.png
- Create
2732x2732px
splash atresources/splash.png
- Add
"resources": "cordova-res ios && cordova-res android && node scripts/resources.js"
toscripts
inpackage.json
- Copy
resources.js
file toscripts/resources.js
- Run
sudo chmod -R 777 scripts/resources.js
- Run
npm run resources
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
<?php | |
require_once "pdf.php"; | |
require_once "conexion.php"; | |
// CREAR OBJETO PDF | |
$pdf = new PDF(); | |
// HABILTAR USO ALIAS | |
$pdf->AliasNbPages(); | |
//METADATOS PDF |
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
```js | |
const oldImport = './clientes-editar/clientes-editar.module#ClientesEditarModule'; | |
const parts = oldImport.split('#'); | |
const newImport = `loadChildren: () => import('${parts[0]}').then(m => m.${parts[1]}),`; | |
//console.log(oldImport) | |
console.log(newImport) | |
document.body.innerHTML = newImport; | |
``` |
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
## Buscando por Dirección | |
**Obtener Provincias** | |
https://www.codigopostal.gob.ec/js/ec/gob/anp/visor/server/GeometriasJson.php?metodo=getProvincias | |
**Obtener Cantones** | |
https://www.codigopostal.gob.ec/js/ec/gob/anp/visor/server/GeometriasJson.php?idProvincia=10&metodo=getCantones | |
**Obtener Calle Principal** |
Se debia a que no deben haber dos paquetes que usen dos diferentes versiones de los servicios de google, se arregla usando las mismas versiones: esto se observa en la ruta: C:\ionicTest\SanIsidroApp\code\platforms\android\project.properties
cordova.system.library.4=com.google.android.gms:play-services-auth:11.8.0
cordova.system.library.5=com.google.android.gms:play-services-identity:11.8.0
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
<?php | |
/** | |
* Guarda la imagen de una publicacion y retorna el nombre de la imagen guardada | |
* @param string $base64IMG | |
* @param mixed $previous_name | |
* | |
* @return string | |
*/ | |
public function savePostImageApi($base64IMG, $previous_name = null) |
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
import { Pipe, PipeTransform } from '@angular/core'; | |
declare var moment: any; | |
moment.locale('es'); | |
@Pipe({ | |
name: 'moment_pipe' | |
}) | |
export class MomentPipe implements PipeTransform { |
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
// import { Injectable } from '@angular/core'; | |
// @Injectable({ | |
// providedIn: 'root' | |
// }) | |
// export class ThemeSwitcherService { | |
// constructor() { } | |
// } |
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
import { AbstractControl } from '@angular/forms'; | |
import { verificarCedula } from './utils'; | |
export function CedulaValidator(control: AbstractControl) { | |
if (!verificarCedula(control.value)) { | |
//Retornar error | |
return { cedulaValida: true }; | |
} | |
//Retornar null es validator valido | |
return null; |
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
import { FormControl } from '@angular/forms'; | |
export class CheckboxValidator{ | |
static isChecked(control: FormControl) : any{ | |
if(control.value != true){ | |
return { | |
"notChecked" : true | |
}; |
OlderNewer