mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
merge
This commit is contained in:
+19
-19
@@ -69,35 +69,35 @@ import { FileOpener } from '@awesome-cordova-plugins/file-opener/ngx';
|
|||||||
|
|
||||||
|
|
||||||
// The example is using Angular, Import '@sentry/vue' or '@sentry/react' when using a Sibling different than Angular.
|
// The example is using Angular, Import '@sentry/vue' or '@sentry/react' when using a Sibling different than Angular.
|
||||||
/////123//// import * as SentrySibling from '@sentry/angular';
|
import * as SentrySibling from '@sentry/angular';
|
||||||
/////123////import * as Sentry from '@sentry/capacitor';
|
import * as Sentry from '@sentry/capacitor';
|
||||||
// The example is using Angular, Import '@sentry/vue' or '@sentry/react' when using a Sibling different than Angular.
|
// The example is using Angular, Import '@sentry/vue' or '@sentry/react' when using a Sibling different than Angular.
|
||||||
// For automatic instrumentation (highly recommended)
|
// For automatic instrumentation (highly recommended)
|
||||||
/////123////import { Integration } from '@sentry/types';
|
import { Integration } from '@sentry/types';
|
||||||
/////123////import { BrowserTracing } from '@sentry/tracing';
|
import { BrowserTracing } from '@sentry/tracing';
|
||||||
|
|
||||||
/* import { FCM } from '@ionic-native/fcm/ngx';
|
/* import { FCM } from '@ionic-native/fcm/ngx';
|
||||||
import { FirebaseX } from '@ionic-native/firebase-x/ngx'; */
|
import { FirebaseX } from '@ionic-native/firebase-x/ngx'; */
|
||||||
//import { FCM } from 'cordova-plugin-fcm-with-dependecy-updated/ionic/ngx';
|
//import { FCM } from 'cordova-plugin-fcm-with-dependecy-updated/ionic/ngx';
|
||||||
|
|
||||||
/////123//// Sentry.init(
|
Sentry.init(
|
||||||
/////123//// {
|
{
|
||||||
/////123//// dsn: 'https://5b345a3ae70b4e4da463da65881b4aaa@o4504340905525248.ingest.sentry.io/4504345615794176',
|
dsn: 'https://5b345a3ae70b4e4da463da65881b4aaa@o4504340905525248.ingest.sentry.io/4504345615794176',
|
||||||
// To set your release and dist versions
|
// To set your release and dist versions
|
||||||
/////123//// release: 'gabinetedigital@1.0.0',
|
release: 'gabinetedigital@1.0.0',
|
||||||
/////123//// dist: '1',
|
dist: '1',
|
||||||
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
|
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
|
||||||
// We recommend adjusting this value in production.
|
// We recommend adjusting this value in production.
|
||||||
/////123//// tracesSampleRate: 1.0,
|
tracesSampleRate: 1.0,
|
||||||
/////123//// integrations: [
|
integrations: [
|
||||||
/////123//// new BrowserTracing({
|
new BrowserTracing({
|
||||||
/////123//// tracingOrigins: ['localhost', 'https://gd-api.oapr.gov.ao/api/'],
|
tracingOrigins: ['localhost', 'https://gd-api.oapr.gov.ao/api/'],
|
||||||
/////123//// }) as Integration,
|
}) as Integration,
|
||||||
/////123//// ]
|
]
|
||||||
/////123//// },
|
},
|
||||||
// Forward the init method to the sibling Framework.
|
// Forward the init method to the sibling Framework.
|
||||||
/////123//// SentrySibling.init
|
SentrySibling.init
|
||||||
/////123////);
|
);
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [AppComponent],
|
declarations: [AppComponent],
|
||||||
entryComponents: [],
|
entryComponents: [],
|
||||||
@@ -145,7 +145,7 @@ import { FirebaseX } from '@ionic-native/firebase-x/ngx'; */
|
|||||||
{
|
{
|
||||||
provide: ErrorHandler,
|
provide: ErrorHandler,
|
||||||
// Attach the Sentry ErrorHandler
|
// Attach the Sentry ErrorHandler
|
||||||
/////123////useValue: SentrySibling.createErrorHandler(),
|
useValue: SentrySibling.createErrorHandler(),
|
||||||
},
|
},
|
||||||
StatusBar,
|
StatusBar,
|
||||||
//SplashScreen,
|
//SplashScreen,
|
||||||
|
|||||||
@@ -51,8 +51,7 @@
|
|||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
</div>
|
</div>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
<ion-label (click)="asyncNotification()" *ngIf="notificationdata">{{notificationdata.length}} novas notificações</ion-label>
|
<ion-label (click)="asyncNotification()" *ngIf="notificationdata">{{notificationStatus}}</ion-label>
|
||||||
<ion-label (click)="asyncNotification()" *ngIf="!notificationdata">0 novas notificações</ion-label>
|
|
||||||
</div>
|
</div>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export class ProfilePage implements OnInit {
|
|||||||
isProfileOpen = false
|
isProfileOpen = false
|
||||||
hideImage = false
|
hideImage = false
|
||||||
logoutOut = false
|
logoutOut = false
|
||||||
|
notificationStatus = '';
|
||||||
|
|
||||||
constructor(private modalController: ModalController,
|
constructor(private modalController: ModalController,
|
||||||
private authService: AuthService,
|
private authService: AuthService,
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ export class LoginPage implements OnInit {
|
|||||||
this.ChatSystemService.loadChat();
|
this.ChatSystemService.loadChat();
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.getToken();
|
this.getToken();
|
||||||
|
|
||||||
if(!this.platform.is('desktop') && !this.platform.is('mobileweb')) {
|
if(!this.platform.is('desktop') && !this.platform.is('mobileweb')) {
|
||||||
if(this.sessionStore.hasPin) {
|
if(this.sessionStore.hasPin) {
|
||||||
|
|||||||
@@ -51,15 +51,6 @@ export class NotificationsService {
|
|||||||
/* private eventTriger: Events, */
|
/* private eventTriger: Events, */
|
||||||
/* private fcm: FCM */) {
|
/* private fcm: FCM */) {
|
||||||
|
|
||||||
this.storageService.get("Notifications").then((value) => {
|
|
||||||
|
|
||||||
}).catch((error)=>{
|
|
||||||
console.error('storage getnotification',error)
|
|
||||||
}).catch(() => {
|
|
||||||
|
|
||||||
this.storageService.store("Notifications", [])
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
}
|
||||||
registerCallback(type: IdObject, funx: Function, object: any = {}) {
|
registerCallback(type: IdObject, funx: Function, object: any = {}) {
|
||||||
|
|
||||||
|
|||||||
@@ -80,9 +80,13 @@ export class HeaderPage implements OnInit {
|
|||||||
/* var data = JSON.parse(value); */
|
/* var data = JSON.parse(value); */
|
||||||
this.notificationLength = value.length;
|
this.notificationLength = value.length;
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
if(!error) {
|
||||||
|
this.notificationLength = 0;
|
||||||
|
} else {
|
||||||
|
console.error('header storage get notification', error)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hideSearch() {
|
hideSearch() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { versionData } from '../../version/git-version'
|
import { versionData } from '../../version/git-version'
|
||||||
export const environment = {
|
export const environment = {
|
||||||
//apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/',
|
// apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/',
|
||||||
apiURL: 'https://gd-api.oapr.gov.ao/api/',
|
apiURL: 'https://gd-api.oapr.gov.ao/api/',
|
||||||
//apiURL: 'https://gdapi-dev.dyndns.info/GabineteDigital.Services/V5/api/',
|
//apiURL: 'https://gdapi-dev.dyndns.info/GabineteDigital.Services/V5/api/',
|
||||||
// apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/',
|
// apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/',
|
||||||
@@ -8,8 +8,8 @@ export const environment = {
|
|||||||
// apiWsChatUrl: 'wss://192.168.0.29:3000/websocket',
|
// apiWsChatUrl: 'wss://192.168.0.29:3000/websocket',
|
||||||
apiChatUrl: 'https://gd-chat.oapr.gov.ao/api/v1/',
|
apiChatUrl: 'https://gd-chat.oapr.gov.ao/api/v1/',
|
||||||
apiWsChatUrl: 'wss://gd-chat.oapr.gov.ao/websocket',
|
apiWsChatUrl: 'wss://gd-chat.oapr.gov.ao/websocket',
|
||||||
//apiChatUrl: 'https://gdchat-dev.dyndns.info/api/v1/',
|
/* apiChatUrl: 'https://gdchat-dev.dyndns.info/api/v1/',
|
||||||
//apiWsChatUrl: 'wss://gdchat-dev.dyndns.info/websocket',
|
apiWsChatUrl: 'wss://gdchat-dev.dyndns.info/websocket', */
|
||||||
production: true,
|
production: true,
|
||||||
domain: 'paulo.pinto@gabinetedigital.local',
|
domain: 'paulo.pinto@gabinetedigital.local',
|
||||||
defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto@gabinetedigital.local
|
defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto@gabinetedigital.local
|
||||||
|
|||||||
+17
-17
@@ -8,35 +8,35 @@ import { defineCustomElements } from '@ionic/pwa-elements/loader';
|
|||||||
|
|
||||||
import "hammerjs"; // HAMMER TIME
|
import "hammerjs"; // HAMMER TIME
|
||||||
|
|
||||||
/////123////import * as Sentry from '@sentry/capacitor';
|
/* import * as Sentry from '@sentry/capacitor';
|
||||||
// The example is using Angular, Import '@sentry/vue' or '@sentry/react' when using a Sibling different than Angular.
|
// The example is using Angular, Import '@sentry/vue' or '@sentry/react' when using a Sibling different than Angular.
|
||||||
/////123////import * as SentrySibling from '@sentry/angular';
|
import * as SentrySibling from '@sentry/angular';
|
||||||
// For automatic instrumentation (highly recommended)
|
// For automatic instrumentation (highly recommended)
|
||||||
/////123//// import { Integration } from '@sentry/types';
|
import { Integration } from '@sentry/types';
|
||||||
/////123//// import { BrowserTracing } from '@sentry/tracing';
|
import { BrowserTracing } from '@sentry/tracing'; */
|
||||||
|
|
||||||
if (environment.production) {
|
if (environment.production) {
|
||||||
enableProdMode();
|
enableProdMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/////123//// Sentry.init(
|
/* Sentry.init(
|
||||||
/////123//// {
|
{
|
||||||
/////123//// dsn: 'https://5b345a3ae70b4e4da463da65881b4aaa@o4504340905525248.ingest.sentry.io/4504345615794176',
|
dsn: 'https://5b345a3ae70b4e4da463da65881b4aaa@o4504340905525248.ingest.sentry.io/4504345615794176',
|
||||||
// To set your release and dist versions
|
// To set your release and dist versions
|
||||||
/////123//// release: 'gabinetedigital@1.0.0',
|
release: 'gabinetedigital@1.0.0',
|
||||||
/////123//// dist: '1',
|
dist: '1',
|
||||||
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
|
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
|
||||||
// We recommend adjusting this value in production.
|
// We recommend adjusting this value in production.
|
||||||
/////123//// integrations: [
|
integrations: [
|
||||||
/////123//// new BrowserTracing({
|
new BrowserTracing({
|
||||||
/////123//// tracingOrigins: ['localhost', 'https://gd-api.oapr.gov.ao/api/'],
|
tracingOrigins: ['localhost', 'https://gd-api.oapr.gov.ao/api/'],
|
||||||
/////123//// }) as Integration,
|
}) as Integration,
|
||||||
/////123//// ]
|
]
|
||||||
/////123//// },
|
},
|
||||||
// Forward the init method to the sibling Framework.
|
// Forward the init method to the sibling Framework.
|
||||||
/////123//// SentrySibling.init
|
SentrySibling.init
|
||||||
/////123////);
|
); */
|
||||||
|
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule)
|
platformBrowserDynamic().bootstrapModule(AppModule)
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
export let versionData = {
|
export let versionData = {
|
||||||
"shortSHA": "0d485672d",
|
"shortSHA": "572ab6db7",
|
||||||
"SHA": "0d485672d85fe521eb51dcdeec7f77e70579246b",
|
"SHA": "572ab6db7b8cc05e5b32362f48dbad03cc948d52",
|
||||||
"branch": "develop_bitOut-fix",
|
"branch": "develop_bitOut-fix",
|
||||||
"lastCommitAuthor": "'Peter Maquiran'",
|
"lastCommitAuthor": "'Peter Maquiran'",
|
||||||
"lastCommitTime": "'Wed Jan 4 14:45:17 2023 +0100'",
|
"lastCommitTime": "'Thu Jan 5 12:11:50 2023 +0100'",
|
||||||
"lastCommitMessage": "save",
|
"lastCommitMessage": "save",
|
||||||
"lastCommitNumber": "4612",
|
"lastCommitNumber": "4613",
|
||||||
"change": "",
|
"change": "",
|
||||||
"changeStatus": "On branch develop_bitOut-fix\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: package-lock.json\n\tmodified: package.json\n\tmodified: src/app/index/index-routing.module.ts\n\tmodified: src/app/modals/profile/profile.page.ts\n\tmodified: src/app/services/chat/chat-system.service.ts\n\tmodified: src/app/services/chat/room.service.ts\n\tnew file: src/app/services/chat/viewed-message.service.spec.ts\n\tnew file: src/app/services/chat/viewed-message.service.ts\n\tmodified: src/app/services/storage.service.ts\n\tmodified: src/app/store/localstore.service.ts\n\tmodified: src/environments/environment.ts\n\tmodified: version/git-version.ts",
|
"changeStatus": "On branch develop_bitOut-fix\nAll conflicts fixed but you are still merging.\n (use \"git commit\" to conclude merge)\n\nChanges to be committed:\n\tmodified: src/app/app.module.ts\n\tmodified: src/app/modals/profile/profile.page.html\n\tmodified: src/app/modals/profile/profile.page.ts\n\tmodified: src/app/pages/login/login.page.ts\n\tmodified: src/app/services/notifications.service.ts\n\tmodified: src/app/shared/header/header.page.ts\n\tmodified: src/environments/environment.ts\n\tmodified: src/main.ts",
|
||||||
"changeAuthor": "peter.maquiran"
|
"changeAuthor": "peter.maquiran"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user