Ver código fonte

add crosswalk plugin

robert2206 8 anos atrás
pai
commit
7a0f1d929c
41 arquivos alterados com 20 adições e 10 exclusões
  1. BIN
      res/drawable-land-hdpi/screen.png
  2. BIN
      res/drawable-land-ldpi/screen.png
  3. BIN
      res/drawable-land-mdpi/screen.png
  4. BIN
      res/drawable-land-xhdpi/screen.png
  5. BIN
      res/drawable-land-xxhdpi/screen.png
  6. BIN
      res/drawable-land-xxxhdpi/screen.png
  7. BIN
      res/drawable-port-hdpi/screen.png
  8. BIN
      res/drawable-port-ldpi/screen.png
  9. BIN
      res/drawable-port-mdpi/screen.png
  10. BIN
      res/drawable-port-xhdpi/screen.png
  11. BIN
      res/drawable-port-xxhdpi/screen.png
  12. BIN
      res/drawable-port-xxxhdpi/screen.png
  13. BIN
      res/mipmap-hdpi/icon.png
  14. BIN
      res/mipmap-ldpi/icon.png
  15. BIN
      res/mipmap-mdpi/icon.png
  16. BIN
      res/mipmap-xhdpi/icon.png
  17. BIN
      res/mipmap-xxhdpi/icon.png
  18. BIN
      res/mipmap-xxxhdpi/icon.png
  19. BIN
      resources/android/icon/drawable-hdpi-icon.png
  20. BIN
      resources/android/icon/drawable-ldpi-icon.png
  21. BIN
      resources/android/icon/drawable-mdpi-icon.png
  22. BIN
      resources/android/icon/drawable-xhdpi-icon.png
  23. BIN
      resources/android/icon/drawable-xxhdpi-icon.png
  24. BIN
      resources/android/icon/drawable-xxxhdpi-icon.png
  25. BIN
      resources/android/splash/drawable-land-hdpi-screen.png
  26. BIN
      resources/android/splash/drawable-land-ldpi-screen.png
  27. BIN
      resources/android/splash/drawable-land-mdpi-screen.png
  28. BIN
      resources/android/splash/drawable-land-xhdpi-screen.png
  29. BIN
      resources/android/splash/drawable-land-xxhdpi-screen.png
  30. BIN
      resources/android/splash/drawable-land-xxxhdpi-screen.png
  31. BIN
      resources/android/splash/drawable-port-hdpi-screen.png
  32. BIN
      resources/android/splash/drawable-port-ldpi-screen.png
  33. BIN
      resources/android/splash/drawable-port-mdpi-screen.png
  34. BIN
      resources/android/splash/drawable-port-xhdpi-screen.png
  35. BIN
      resources/android/splash/drawable-port-xxhdpi-screen.png
  36. BIN
      resources/android/splash/drawable-port-xxxhdpi-screen.png
  37. 1 1
      src/index.html
  38. 1 3
      src/pages/hall/hall.ts
  39. 1 1
      src/pages/login/login.html
  40. 2 2
      src/pages/product-details/product-details.ts
  41. 15 3
      src/pages/product-list/product-list.ts

BIN
res/drawable-land-hdpi/screen.png


BIN
res/drawable-land-ldpi/screen.png


BIN
res/drawable-land-mdpi/screen.png


BIN
res/drawable-land-xhdpi/screen.png


BIN
res/drawable-land-xxhdpi/screen.png


BIN
res/drawable-land-xxxhdpi/screen.png


BIN
res/drawable-port-hdpi/screen.png


BIN
res/drawable-port-ldpi/screen.png


BIN
res/drawable-port-mdpi/screen.png


BIN
res/drawable-port-xhdpi/screen.png


BIN
res/drawable-port-xxhdpi/screen.png


BIN
res/drawable-port-xxxhdpi/screen.png


BIN
res/mipmap-hdpi/icon.png


BIN
res/mipmap-ldpi/icon.png


BIN
res/mipmap-mdpi/icon.png


BIN
res/mipmap-xhdpi/icon.png


BIN
res/mipmap-xxhdpi/icon.png


BIN
res/mipmap-xxxhdpi/icon.png


BIN
resources/android/icon/drawable-hdpi-icon.png


BIN
resources/android/icon/drawable-ldpi-icon.png


BIN
resources/android/icon/drawable-mdpi-icon.png


BIN
resources/android/icon/drawable-xhdpi-icon.png


BIN
resources/android/icon/drawable-xxhdpi-icon.png


BIN
resources/android/icon/drawable-xxxhdpi-icon.png


BIN
resources/android/splash/drawable-land-hdpi-screen.png


BIN
resources/android/splash/drawable-land-ldpi-screen.png


BIN
resources/android/splash/drawable-land-mdpi-screen.png


BIN
resources/android/splash/drawable-land-xhdpi-screen.png


BIN
resources/android/splash/drawable-land-xxhdpi-screen.png


BIN
resources/android/splash/drawable-land-xxxhdpi-screen.png


BIN
resources/android/splash/drawable-port-hdpi-screen.png


BIN
resources/android/splash/drawable-port-ldpi-screen.png


BIN
resources/android/splash/drawable-port-mdpi-screen.png


BIN
resources/android/splash/drawable-port-xhdpi-screen.png


BIN
resources/android/splash/drawable-port-xxhdpi-screen.png


BIN
resources/android/splash/drawable-port-xxxhdpi-screen.png


+ 1 - 1
src/index.html

@@ -10,7 +10,7 @@
   <link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico">
   <link rel="manifest" href="assets/manifest.json">
   <meta name="theme-color" content="#4e8ef7">
-
+  <!--<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">-->
   <!-- un-comment this code to enable service worker
   <script>
     if ('serviceWorker' in navigator) {

+ 1 - 3
src/pages/hall/hall.ts

@@ -24,10 +24,8 @@ export class HallPage {
      *
      */
     ionViewDidLoad() {
-        console.log('Hello Hall Page');
-        
         this.loader = this.loaderCtrl.create({
-            content: "Configurando aplicación, espere..."
+            content: "Cargando aplicación, espere..."
         });
         
         this.loader.present();

+ 1 - 1
src/pages/login/login.html

@@ -12,7 +12,7 @@
         </ion-item>
         <ion-item>
             <ion-icon name="unlock" item-left></ion-icon>
-            <ion-input type="text" placeholder="Contraseña" [(ngModel)]="tokenService.password"></ion-input>
+            <ion-input type="password" placeholder="Contraseña" [(ngModel)]="tokenService.password"></ion-input>
         </ion-item>
     </ion-list>
 

+ 2 - 2
src/pages/product-details/product-details.ts

@@ -37,8 +37,8 @@ export class ProductDetailsPage {
         public params: NavParams,
         public data: DataProvider,
         public actionSheetCtrl: ActionSheetController,
-        private cameraProvider: CameraProvider,
-        private preferencesPreferences: PreferencesProvider
+        public cameraProvider: CameraProvider,
+        public preferencesPreferences: PreferencesProvider
     ) { 
         this.initialize();
     }

+ 15 - 3
src/pages/product-list/product-list.ts

@@ -1,10 +1,10 @@
 import { Component } from '@angular/core';
-import { NavController, AlertController, ToastController } from 'ionic-angular';
+import { NavController, AlertController, ToastController, LoadingController } from 'ionic-angular';
 import { DefaultListable } from '../../defaults/default-listable';
 import { INavigable } from '../../interfaces/navigable-interface';
 import { Product } from '../../models/product';
 import { ProductDetailsPage } from '../product-details/product-details';
-import { DataProvider } from '../../providers/data-provider'
+import { DataProvider } from '../../providers/data-provider';
 
 @Component({
     selector: 'page-product-list',
@@ -16,9 +16,13 @@ export class ProductListPage extends DefaultListable<Product> implements INaviga
         public navCtrl: NavController,
         public alertCtrl: AlertController,
         public toastCtrl: ToastController,
-        public dataProvider: DataProvider
+        public dataProvider: DataProvider,
+        public loadingController: LoadingController
     ){
         super();
+    }
+    
+    ionViewDidLoad() {
         this.initialize();
     }
 
@@ -26,10 +30,17 @@ export class ProductListPage extends DefaultListable<Product> implements INaviga
      * Initialize data list
      */
     initialize(): void {
+        let loader = this.loadingController.create({
+            content: "Cargando productos, espere..."
+        });
+
+        loader.present();
         this.dataProvider.getAll("product").then(r => { 
             this.elements = r.products.filter(item => {
                 return item.doc_state !== "deleted"; 
             });
+
+            loader.dismiss();
         });
     }
 
@@ -44,6 +55,7 @@ export class ProductListPage extends DefaultListable<Product> implements INaviga
      *
      */
     openItem(index: number) {
+        this.toggleDelete(-1);
         this.navCtrl.push(ProductDetailsPage, this.elements[index]);
     }