Skip to content

Commit

Permalink
better standalone project architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
Pop John committed Jul 12, 2024
1 parent 2eb1a98 commit 4e144bf
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/modules/core/guards/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
import { Injectable } from '@angular/core';
import { Router, UrlTree } from '@angular/router';
import { Observable } from 'rxjs';
import { StorageKeys } from '../models/constants/storage.constants';
import { StorageApp } from '../../shared/storage/storage-app';
import { StorageKeys } from '../../shared/storage/storage.constants';
import { RoutesList } from '../models/enums/routes-list.enum';
import { StorageApp } from '../storage/storage-app';

@Injectable()
export class AuthGuard {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/modules/core/guards/mode-select.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import { Injectable } from '@angular/core';
import { Router, UrlTree } from '@angular/router';
import { Observable } from 'rxjs';
import { ConfigActions } from '../../../state/core/configs/configs.actions';
import { StorageKeys } from '../models/constants/storage.constants';
import { StorageApp } from '../../shared/storage/storage-app';
import { StorageKeys } from '../../shared/storage/storage.constants';
import { AppModes } from '../models/enums/app-modes.enum';
import { RoutesList } from '../models/enums/routes-list.enum';
import { ConfigsFacadeService } from '../services/configs-facade.service';
import { StorageApp } from '../storage/storage-app';

@Injectable()
export class ModeSelectGuard {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
import { Injectable } from '@angular/core';
import { CanActivate, Router, UrlTree } from '@angular/router';
import { Observable } from 'rxjs';
import { StorageKeys } from '../models/constants/storage.constants';
import { StorageApp } from '../../shared/storage/storage-app';
import { StorageKeys } from '../../shared/storage/storage.constants';
import { RoutesList } from '../models/enums/routes-list.enum';
import { StorageApp } from '../storage/storage-app';

@Injectable()
export class RedirectIfAuthenticatedGuard implements CanActivate {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NotificationTypes } from '../enums/snackbar-types.enum';
import { NotificationTypes } from '../../../shared/components/ms-banner/models/snackbar-types.enum';

export interface TerminalMessage {
data: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { CommonModule } from '@angular/common';
import { Component, Inject } from '@angular/core';
import { MatIconModule } from '@angular/material/icon';
import { MAT_SNACK_BAR_DATA, MatSnackBarRef } from '@angular/material/snack-bar';
import { NotificationTypes } from '../../../core/models/enums/snackbar-types.enum';
import { NotificationTypes } from './models/snackbar-types.enum';

@Component({
selector: 'ms-banner',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import { Injectable } from '@angular/core';
import { MatSnackBar } from '@angular/material/snack-bar';
import { NotificationTypes } from '../../../../core/models/enums/snackbar-types.enum';
import { NotificationTypes } from '../models/snackbar-types.enum';
import { MsBannerComponent } from '../ms-banner.component';

export const DEFAULT_SUCCESS_SNACKBAR_DURATION: number = 5000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import { KeyValue } from '../../../../services/client/models/key-value/key-value
import { ScriptDetails } from '../../../../services/client/models/script/script-details.interface-dto';
import { ModelsActions } from '../../../../state/core/models/models.actions';
import { TerminalActions } from '../../../../state/core/terminal/terminal.actions';
import { NotificationTypes } from '../../../core/models/enums/snackbar-types.enum';
import { TerminalMessage } from '../../../core/models/interfaces/terminal-message.interface';
import { ScriptFacadeService } from '../../../core/services';
import { ModelsFacadeService } from '../../../core/services/models-facade.service';
import { TerminalFacadeService } from '../../../core/services/terminal-facade.service';
import { WebsocketService } from '../../../core/services/websocket.service';
import { AlgorithmType, TrainAlgorithmsEnum } from '../../../model-compression/models/enums/algorithms.enum';
import { NotificationTypes } from '../ms-banner/models/snackbar-types.enum';
import { MsTerminalToolbarComponent } from './components/terminal-toolbar/terminal-toolbar.component';

@UntilDestroy()
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/state/app.metareducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import { ActionReducer, MetaReducer } from '@ngrx/store';
import { localStorageSync } from 'ngrx-store-localstorage';
import { StorageKeys } from '../modules/core/models/constants/storage.constants';
import { StorageKeys } from '../modules/shared/storage/storage.constants';

/**
* `localStorageSyncReducer` is a meta-reducer for synchronizing specific parts of the state
Expand Down

0 comments on commit 4e144bf

Please sign in to comment.