mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
@@ -29,8 +29,7 @@ import { Device } from '@capacitor/device';
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
import { RocketChatClientService } from 'src/app/services/socket/rocket-chat-client.service';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import { RealTimeAPI } from "rocket.chat.realtime.api.rxjs";
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
@@ -113,7 +112,7 @@ export class HomePage implements OnInit {
|
||||
version: "1",
|
||||
support: ["1", "pre2", "pre1"]
|
||||
}
|
||||
|
||||
|
||||
// ======================= connect
|
||||
socket.send(JSON.stringify(connectRequest ))
|
||||
};
|
||||
@@ -134,7 +133,7 @@ export class HomePage implements OnInit {
|
||||
params: [
|
||||
{
|
||||
"user": {
|
||||
"username": "paulo.pinto"
|
||||
"username": "paulo.pinto"
|
||||
},
|
||||
"password": "tabteste@006"
|
||||
}
|
||||
@@ -177,7 +176,7 @@ export class HomePage implements OnInit {
|
||||
console.log(`[error] ${event.message}`);
|
||||
};
|
||||
|
||||
|
||||
|
||||
// this.RocketChatClientService.send()
|
||||
/* this.webNotificationPopupService.askNotificationPermission() */
|
||||
|
||||
@@ -244,7 +243,7 @@ export class HomePage implements OnInit {
|
||||
|
||||
logDeviceInfo = async () => {
|
||||
const info = await Device.getInfo();
|
||||
|
||||
|
||||
console.log('Device info',info);
|
||||
};
|
||||
|
||||
@@ -274,7 +273,7 @@ export class HomePage implements OnInit {
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
async synchWhenOnline() {
|
||||
try {
|
||||
await this.storage.get('eventEdit').then((req) => {
|
||||
|
||||
Reference in New Issue
Block a user