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
INSERT INTO product (description, price, create_at) VALUES('Macbook Air 13 pulgadas', 4899, NOW()); | |
INSERT INTO product (description, price, create_at) VALUES('Laptop Lenovo 15.6" Ryzen 7', 3199, NOW()); | |
INSERT INTO product (description, price, create_at) VALUES('Laptop Gamer IdeaPad3 Core i5', 3499, NOW()); | |
INSERT INTO product (description, price, create_at) VALUES('Televisor 43" 4K Ultra HD', 899, NOW()); | |
INSERT INTO product (description, price, create_at) VALUES('Televisor 50" 4K Ultra HD Smart TV', 1699, NOW()); | |
INSERT INTO product (description, price, create_at) VALUES('Aire Acondicionado Portatil 15000 Btu', 999, NOW()); | |
INSERT INTO product (description, price, create_at) VALUES('Consola Nintendo Switch 1.1 Neon', 1499, NOW()); | |
INSERT INTO product (description, price, create_at) VALUES('Minicomponente AKX710PUK Negro 2000 W', 799, NOW()); | |
INSERT INTO product (description, price, create_at) VALUES('Refrigerador Side ', 2799, NOW()); | |
INSERT INTO product (description, price, create_at) VALUES('Lavadora Bla |
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
<ion-header> | |
<ion-toolbar color="primary"> | |
<ion-buttons slot="end"> | |
<ion-menu-button></ion-menu-button> | |
</ion-buttons> | |
<ion-title>Principal</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content class="ion-padding"> | |
<div *ngIf="placesFound">Existen lugares encontrados.</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
import { Injectable } from '@angular/core'; | |
import { environment } from 'src/environments/environment'; | |
@Injectable({ | |
providedIn: 'root', | |
}) | |
export class OpentripmapService { | |
endpointSearchCity = 'geoname?name'; | |
endpointGetByLatLon = 'radius?'; | |
endpointDetailPlaceByXid = 'xid/'; |
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
https://api.opentripmap.com/0.1/en/places/geoname?name=Lima&apikey=5ae2e3f221c38a28845f05b66b2ebd0c0a4a7428f0803525b45f11d8 | |
{ | |
"name": "lima", | |
"country": "PE", | |
"lat": -12.04318, | |
"lon": -77.02824, | |
"population": 7737002, | |
"timezone": "America/Lima", | |
"status": "OK" |
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
<ion-header> | |
<ion-toolbar color="primary"> | |
<ion-buttons slot="end"> | |
<ion-menu-button></ion-menu-button> | |
</ion-buttons> | |
<ion-title>Mi Ubicación</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content> |
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 { Component } from '@angular/core'; | |
import { Plugins } from '@capacitor/core'; | |
import { environment } from 'src/environments/environment'; | |
const { Geolocation } = Plugins; | |
@Component({ | |
selector: 'app-mylocation', | |
templateUrl: './mylocation.page.html', | |
styleUrls: ['./mylocation.page.scss'], |
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
ion-item { | |
border-radius: 5px; | |
border-color: rgb(201, 201, 201); | |
border-width: 2px; | |
border-style: solid; | |
margin-bottom: 10px; | |
} |
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
"scripts": { | |
"ng": "ng", | |
"start": "npm-run-all -p client server", | |
"client": "ionic serve", | |
"server": "json-server --port 3027 --watch server/users.json", | |
"build": "ng build", | |
"test": "ng test", | |
"lint": "ng lint", | |
"e2e": "ng e2e", | |
"resources": "capacitor-resources -p android" |
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
.swiper-slide { | |
display: block; | |
margin-bottom: 64px; | |
background-color: white; | |
} | |
ion-content { | |
margin-bottom: 10px; | |
--background: var(--ion-color-primary); | |
} |