Upgrade: Angular 18, Ionic 8, Capacitor 6
Modernizacion completa del frontend: - Angular 8 -> 18.2.14 - Ionic 4 -> 8.7.17 - Capacitor 6.x (migracion desde Cordova/@ionic-native) - TypeScript 5.4.5 - Swiper 11 con Web Components API Cambios principales: - Migrar NativeStorage a @capacitor/preferences - Migrar InAppBrowser a @capacitor/browser - Migrar Camera a @capacitor/camera - Migrar Geolocation a @capacitor/geolocation - Migrar StatusBar/SplashScreen a Capacitor - Migrar Facebook/Google login a plugins Capacitor - Actualizar lazy loading syntax (Angular 12+) - Configurar buildOptimizer: false para Ionic 8 - Limpiar package.json de dependencias obsoletas - Agregar README con guia de instalacion Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
17
src/app/pages/postulations/current/current.page.ts
Normal file → Executable file
17
src/app/pages/postulations/current/current.page.ts
Normal file → Executable file
@@ -1,10 +1,11 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ModalController, MenuController, NavController, Events } from '@ionic/angular';
|
||||
import { MenuController, NavController } from '@ionic/angular';
|
||||
import { EventService } from '../../../services/event.service';
|
||||
import { EnvService } from 'src/app/services/env.service';
|
||||
import { AuthService } from 'src/app/services/auth.service';
|
||||
import { IchambaService } from 'src/app/services/ichamba.service';
|
||||
import { AlertService } from 'src/app/services/alert.service';
|
||||
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
||||
import { Browser } from '@capacitor/browser';
|
||||
|
||||
@Component({
|
||||
selector: 'app-current',
|
||||
@@ -13,18 +14,16 @@ import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
||||
})
|
||||
export class CurrentPage implements OnInit {
|
||||
|
||||
postulations = [];
|
||||
postulations_dates = [];
|
||||
postulations: any[] = [];
|
||||
postulations_dates: any[] = [];
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController,
|
||||
private menu: MenuController,
|
||||
private navCtrl: NavController,
|
||||
private events: Events,
|
||||
private events: EventService,
|
||||
private authService: AuthService,
|
||||
private alertService: AlertService,
|
||||
private ichambaService: IchambaService,
|
||||
private iab: InAppBrowser,
|
||||
private env: EnvService,
|
||||
) {
|
||||
this.events.subscribe('refreshpostulations', (data) => {
|
||||
@@ -72,8 +71,8 @@ export class CurrentPage implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
openMaps(lat: Number, lng: Number) {
|
||||
this.iab.create(('http://maps.google.com/maps?q=' + lat + ',' + lng), '_system')
|
||||
async openMaps(lat: Number, lng: Number) {
|
||||
await Browser.open({ url: 'http://maps.google.com/maps?q=' + lat + ',' + lng });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user