lot of changes

This commit is contained in:
Eudes Inácio
2021-11-25 15:50:41 +01:00
parent 0c3d7467a0
commit e01440705b
2967 changed files with 46 additions and 1539998 deletions
+10
View File
@@ -60,6 +60,16 @@ export class AppComponent {
console.log('Orientation locked')
}
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
} else {
try {
this.sqliteservice.databaseConn();
} catch (error) {
console.log("Error creating local database: ", error)
}
}
this.storageservice.get('networkCheckStore').then((network) => {
if(network === 'online') {
console.log('Network app componente check', network)
+9
View File
@@ -25,6 +25,7 @@ import { EventsService } from 'src/app/services/events.service';
import { ProcessesService } from 'src/app/services/processes.service';
import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
import { SqliteService } from 'src/app/services/sqlite.service';
import { Device } from '@capacitor/device';
@Component({
selector: 'app-home',
@@ -120,6 +121,8 @@ export class HomePage implements OnInit {
ngOnInit() {
this.logDeviceInfo();
this.notificationsService.onReciveForeground();
this.notificationsService.onReciveBackground();
@@ -147,6 +150,12 @@ export class HomePage implements OnInit {
myWorker.postMessage('ali'); */
}
logDeviceInfo = async () => {
const info = await Device.getInfo();
console.log('Device info',info);
};
updateList() {
/* this.notificationsService.registerCallback(
+2 -2
View File
@@ -1,8 +1,8 @@
<ion-header class="ion-no-border ">
<ion-header class="ion-no-border">
<app-header></app-header>
</ion-header>
<ion-header class="ion-no-border text-white">
<ion-header class="ion-no-border init-event-header">
<ion-label>
<p class="time ion-text-center">{{customDate}}</p>
</ion-label>
+1
View File
@@ -275,6 +275,7 @@ ion-toolbar{
// new
.main{
padding: 0px em(20px);
background: linear-gradient(270deg, var(--color2) 0%, var(--color3) 23.44%, var(--color4) 78.13%, var(--color5) 100%) !important;
}
.event-number{
+2 -2
View File
@@ -192,9 +192,9 @@ export class InactivityPage implements OnInit {
goback() {
const pathName = this.SessionStore.user.UrlBeforeInactivity
if(pathName) {
this.router.navigate([pathName]);
this.router.navigate([pathName],{replaceUrl: true});
} else {
this.router.navigate(['/home/events']);
this.router.navigate(['/home/events'], {replaceUrl: true});
}
}
@@ -105,6 +105,8 @@ export class NewPublicationPage implements OnInit {
async takePicture() {
const image = await Camera.getPhoto({
quality: 50,
height: 400,
width:400,
allowEditing: false,
resultType: CameraResultType.Uri,
source: CameraSource.Camera // Camera, Photos or Prompt!
@@ -393,6 +395,8 @@ export class NewPublicationPage implements OnInit {
async selectImage() {
const image = await Camera.getPhoto({
quality: 50,
height: 400,
width: 400,
allowEditing: false,
resultType: CameraResultType.Uri,
source: CameraSource.Camera // Camera, Photos or Prompt!
+1 -1
View File
@@ -1,6 +1,6 @@
<div class="header-container">
<div class="main-tab pb-10 ion-toolbar text-white">
<div class="main-tab pb-10 ion-toolbar header-color">
<div class="mobile d-flex div-top-header justify-space-between">
<div *ngIf="!hideSearchBtn" class="div-search">
+11
View File
@@ -770,6 +770,17 @@
color: black;
}
.header-color {
color: white;
}
.init-event-header {
color: white;
background: linear-gradient(270deg, var(--color2) 0%, var(--color3) 23.44%, var(--color4) 78.13%, var(--color5) 100%) !important;
}
.background-blue {
background-color: #0d89d1;
}