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:
CarlosTorres
2026-01-17 22:03:31 +00:00
parent a9508bd34a
commit dfcb1168b9
397 changed files with 19732 additions and 23677 deletions

12
src/app/pages/auth/register/register.page.ts Normal file → Executable file
View File

@@ -1,10 +1,10 @@
import { Component, OnInit } from '@angular/core';
import { ModalController, NavController, LoadingController } from '@ionic/angular';
import { NavController, LoadingController } from '@ionic/angular';
import { AuthService } from 'src/app/services/auth.service';
import { NgForm } from '@angular/forms';
import { AlertService } from 'src/app/services/alert.service';
import { TranslateService } from '@ngx-translate/core';
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
import { Browser } from '@capacitor/browser';
@Component({
selector: 'app-register',
@@ -13,16 +13,14 @@ import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
})
export class RegisterPage implements OnInit {
loading = null;
loading: any = null;
terms = false;
constructor(
private modalController: ModalController,
private authService: AuthService,
private translateService: TranslateService,
private navCtrl: NavController,
private loadingCtrl: LoadingController,
private iab: InAppBrowser,
private alertService: AlertService
) { }
ngOnInit() {
@@ -87,7 +85,7 @@ export class RegisterPage implements OnInit {
}
openTerms() {
this.iab.create('https://jobheroapp.com/terminos-y-condiciones', '_system')
async openTerms() {
await Browser.open({ url: 'https://jobheroapp.com/terminos-y-condiciones' });
}
}