mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
add file chuck upload, file validation, redirect to home page incase route doesnt exist and refresh token interceptor
This commit is contained in:
@@ -413,6 +413,8 @@ const routes: Routes = [
|
||||
canActivate: [InactivityGuard]
|
||||
|
||||
},
|
||||
|
||||
{ path: '**', redirectTo: '/', pathMatch: 'full' },
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
||||
@@ -20,7 +20,8 @@ import { RouteService } from 'src/app/services/route.service';
|
||||
import { NetworkServiceService, ConnectionStatus } from 'src/app/services/network-service.service';
|
||||
import { UserSession } from '../models/user.model';
|
||||
import { PermissionList } from '../models/permission/permissionList';
|
||||
|
||||
// import { ChunkService } from "src/app/services/stream/chunk.service"
|
||||
// import { StreamService } from "src/app/services/stream/stream.service"
|
||||
import { Plugins } from '@capacitor/core';
|
||||
|
||||
const { App } = Plugins;
|
||||
@@ -92,7 +93,9 @@ export class HomePage implements OnInit {
|
||||
private NetworkServiceService: NetworkServiceService,
|
||||
public eventService: EventsService,
|
||||
public ActiveTabService: ActiveTabService,
|
||||
private RoleIdService: RoleIdService
|
||||
private RoleIdService: RoleIdService,
|
||||
// private ChunkService: ChunkService,
|
||||
// private StreamService: StreamService
|
||||
) {
|
||||
if (SessionStore.exist) {
|
||||
this.user = SessionStore.user;
|
||||
|
||||
Reference in New Issue
Block a user