mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
lot of changes
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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,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">
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user