mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
add token login and publication hub connection
This commit is contained in:
@@ -114,23 +114,23 @@ export class TokenInterceptor implements HttpInterceptor {
|
||||
}),
|
||||
catchError((error) => {
|
||||
console.log(error)
|
||||
// SessionStore.user.Authorization = SessionStore.user.Authorization;
|
||||
// SessionStore.user.RefreshToken = SessionStore.user.RefreshToken;
|
||||
// SessionStore.setInativity(false)
|
||||
// /* SessionStore.setUrlBeforeInactivity(this.router.url); */
|
||||
SessionStore.user.Authorization = SessionStore.user.Authorization;
|
||||
SessionStore.user.RefreshToken = SessionStore.user.RefreshToken;
|
||||
SessionStore.setInativity(false)
|
||||
/* SessionStore.setUrlBeforeInactivity(this.router.url); */
|
||||
|
||||
// if (environment.production) {
|
||||
// window.location.pathname = '/auth'
|
||||
// } else {
|
||||
// const pathBeforeGoOut = window.location.pathname
|
||||
// console.log('Before auth',window.location.pathname)
|
||||
// this.router.navigateByUrl('/auth', { replaceUrl: true }).then(() =>{
|
||||
// if(pathBeforeGoOut != "/auth") {
|
||||
// this.httpErrorHandle.httpsSucessMessagge('sessonExpired')
|
||||
// }
|
||||
if (environment.production) {
|
||||
window.location.pathname = '/auth'
|
||||
} else {
|
||||
const pathBeforeGoOut = window.location.pathname
|
||||
console.log('Before auth',window.location.pathname)
|
||||
this.router.navigateByUrl('/auth', { replaceUrl: true }).then(() =>{
|
||||
if(pathBeforeGoOut != "/auth") {
|
||||
this.httpErrorHandle.httpsSucessMessagge('sessonExpired')
|
||||
}
|
||||
|
||||
// })
|
||||
// }
|
||||
})
|
||||
}
|
||||
return of(false);
|
||||
})
|
||||
);
|
||||
|
||||
@@ -175,27 +175,7 @@ export class NewPublicationPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
// this.reciveSharedContent();
|
||||
|
||||
// this.setTitle();
|
||||
// Filesystem.mkdir({
|
||||
// path: IMAGE_DIR,
|
||||
// directory: Directory.Data,
|
||||
// recursive: true
|
||||
// });
|
||||
|
||||
/* try {
|
||||
document.addEventListener("click", clickOutside, false);
|
||||
function clickOutside(e) {
|
||||
const inside = document.getElementById('container-multiselect').contains(e.target);
|
||||
this.photoOrVideo = false;
|
||||
console.log(this.photoOrVideo)
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('click butto', error)
|
||||
} */
|
||||
}
|
||||
ngOnInit() {}
|
||||
|
||||
// in use
|
||||
async takePicture() {
|
||||
|
||||
@@ -56,7 +56,7 @@ export class PublicationFromMvService {
|
||||
this.ObjectMergeNotification = new ObjectMergeNotification()
|
||||
this.totalPercentage = 0
|
||||
|
||||
// this.ObjectMergeNotification.connect();
|
||||
this.ObjectMergeNotification.connect();
|
||||
|
||||
window['upload-header-set-add'](this.id, this.totalPercentage, this.save)
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
export let versionData = {
|
||||
"shortSHA": "e4a0e4c83",
|
||||
"SHA": "e4a0e4c83b54762a7ba68eed8ae8085972dcb7d7",
|
||||
"shortSHA": "c91086fce",
|
||||
"SHA": "c91086fcef5c7628592c4cf3985e13bd39ddeefa",
|
||||
"branch": "feature/agenda-api-peter",
|
||||
"lastCommitAuthor": "'Peter Maquiran'",
|
||||
"lastCommitTime": "'Fri Jul 26 12:42:30 2024 +0100'",
|
||||
"lastCommitMessage": "fix swiper",
|
||||
"lastCommitNumber": "5885",
|
||||
"changeStatus": "On branch feature/agenda-api-peter\nYour branch is up to date with 'origin/feature/agenda-api-peter'.\n\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/services/monitoring/opentelemetry/logging.ts\n\tmodified: src/app/services/monitoring/opentelemetry/tracer.ts\n\tmodified: version/git-version.ts",
|
||||
"lastCommitTime": "'Fri Jul 26 15:28:38 2024 +0100'",
|
||||
"lastCommitMessage": "dont send logs on production",
|
||||
"lastCommitNumber": "5886",
|
||||
"changeStatus": "On branch feature/agenda-api-peter\nYour branch is ahead of 'origin/feature/agenda-api-peter' by 1 commit.\n (use \"git push\" to publish your local commits)\n\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/interceptors/token.interceptors.ts\n\tmodified: src/app/pages/publications/new-publication/new-publication.page.ts\n\tmodified: src/app/shared/publication/upload/publication-from-mv.service.ts",
|
||||
"changeAuthor": "peter.maquiran"
|
||||
}
|
||||
Reference in New Issue
Block a user