add token login and publication hub connection

This commit is contained in:
Peter Maquiran
2024-07-26 17:00:06 +01:00
parent c91086fcef
commit aef52722e8
4 changed files with 23 additions and 43 deletions
+15 -15
View File
@@ -114,23 +114,23 @@ export class TokenInterceptor implements HttpInterceptor {
}), }),
catchError((error) => { catchError((error) => {
console.log(error) console.log(error)
// SessionStore.user.Authorization = SessionStore.user.Authorization; SessionStore.user.Authorization = SessionStore.user.Authorization;
// SessionStore.user.RefreshToken = SessionStore.user.RefreshToken; SessionStore.user.RefreshToken = SessionStore.user.RefreshToken;
// SessionStore.setInativity(false) SessionStore.setInativity(false)
// /* SessionStore.setUrlBeforeInactivity(this.router.url); */ /* SessionStore.setUrlBeforeInactivity(this.router.url); */
// if (environment.production) { if (environment.production) {
// window.location.pathname = '/auth' window.location.pathname = '/auth'
// } else { } else {
// const pathBeforeGoOut = window.location.pathname const pathBeforeGoOut = window.location.pathname
// console.log('Before auth',window.location.pathname) console.log('Before auth',window.location.pathname)
// this.router.navigateByUrl('/auth', { replaceUrl: true }).then(() =>{ this.router.navigateByUrl('/auth', { replaceUrl: true }).then(() =>{
// if(pathBeforeGoOut != "/auth") { if(pathBeforeGoOut != "/auth") {
// this.httpErrorHandle.httpsSucessMessagge('sessonExpired') this.httpErrorHandle.httpsSucessMessagge('sessonExpired')
// } }
// }) })
// } }
return of(false); return of(false);
}) })
); );
@@ -175,27 +175,7 @@ export class NewPublicationPage implements OnInit {
} }
ngOnInit() { 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)
} */
}
// in use // in use
async takePicture() { async takePicture() {
@@ -56,7 +56,7 @@ export class PublicationFromMvService {
this.ObjectMergeNotification = new ObjectMergeNotification() this.ObjectMergeNotification = new ObjectMergeNotification()
this.totalPercentage = 0 this.totalPercentage = 0
// this.ObjectMergeNotification.connect(); this.ObjectMergeNotification.connect();
window['upload-header-set-add'](this.id, this.totalPercentage, this.save) window['upload-header-set-add'](this.id, this.totalPercentage, this.save)
} }
+6 -6
View File
@@ -1,11 +1,11 @@
export let versionData = { export let versionData = {
"shortSHA": "e4a0e4c83", "shortSHA": "c91086fce",
"SHA": "e4a0e4c83b54762a7ba68eed8ae8085972dcb7d7", "SHA": "c91086fcef5c7628592c4cf3985e13bd39ddeefa",
"branch": "feature/agenda-api-peter", "branch": "feature/agenda-api-peter",
"lastCommitAuthor": "'Peter Maquiran'", "lastCommitAuthor": "'Peter Maquiran'",
"lastCommitTime": "'Fri Jul 26 12:42:30 2024 +0100'", "lastCommitTime": "'Fri Jul 26 15:28:38 2024 +0100'",
"lastCommitMessage": "fix swiper", "lastCommitMessage": "dont send logs on production",
"lastCommitNumber": "5885", "lastCommitNumber": "5886",
"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", "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" "changeAuthor": "peter.maquiran"
} }