diff --git a/apps/red-ui/src/app/app-routing.module.ts b/apps/red-ui/src/app/app-routing.module.ts
index 4ccfaae0d..737cf6a86 100644
--- a/apps/red-ui/src/app/app-routing.module.ts
+++ b/apps/red-ui/src/app/app-routing.module.ts
@@ -1,14 +1,14 @@
-import { AuthErrorComponent } from './components/auth-error/auth-error.component';
+import { AuthErrorComponent } from '@components/auth-error/auth-error.component';
import { AuthGuard } from './modules/auth/auth.guard';
-import { CompositeRouteGuard } from './guards/composite-route.guard';
+import { CompositeRouteGuard } from '@guards/composite-route.guard';
import { RedRoleGuard } from './modules/auth/red-role.guard';
-import { BaseScreenComponent } from './components/base-screen/base-screen.component';
+import { BaseScreenComponent } from '@components/base-screen/base-screen.component';
import { RouteReuseStrategy, RouterModule } from '@angular/router';
import { NgModule } from '@angular/core';
-import { DownloadsListScreenComponent } from './components/downloads-list-screen/downloads-list-screen.component';
-import { AppStateGuard } from './state/app-state.guard';
-import { UserProfileScreenComponent } from './components/user-profile/user-profile-screen.component';
-import { CustomRouteReuseStrategy } from './utils/custom-route-reuse.strategy';
+import { DownloadsListScreenComponent } from '@components/downloads-list-screen/downloads-list-screen.component';
+import { AppStateGuard } from '@state/app-state.guard';
+import { UserProfileScreenComponent } from '@components/user-profile/user-profile-screen.component';
+import { CustomRouteReuseStrategy } from '@utils/custom-route-reuse.strategy';
const routes = [
{
diff --git a/apps/red-ui/src/app/app.component.ts b/apps/red-ui/src/app/app.component.ts
index d8a314e3b..d916c2840 100644
--- a/apps/red-ui/src/app/app.component.ts
+++ b/apps/red-ui/src/app/app.component.ts
@@ -1,6 +1,6 @@
import { Component } from '@angular/core';
-import { AppLoadStateService } from './services/app-load-state.service';
-import { RouterHistoryService } from './services/router-history.service';
+import { AppLoadStateService } from '@services/app-load-state.service';
+import { RouterHistoryService } from '@services/router-history.service';
@Component({
selector: 'redaction-root',
diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts
index ab67d4208..7313a7497 100644
--- a/apps/red-ui/src/app/app.module.ts
+++ b/apps/red-ui/src/app/app.module.ts
@@ -4,28 +4,28 @@ import { AppComponent } from './app.component';
import { ActivatedRoute, Router } from '@angular/router';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HTTP_INTERCEPTORS, HttpClient, HttpClientModule } from '@angular/common/http';
-import { BaseScreenComponent } from './components/base-screen/base-screen.component';
+import { BaseScreenComponent } from '@components/base-screen/base-screen.component';
import { ApiModule } from '@redaction/red-ui-http';
-import { ApiPathInterceptor } from './utils/api-path-interceptor';
+import { ApiPathInterceptor } from '@utils/api-path-interceptor';
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
-import { languageInitializer } from './i18n/language.initializer';
-import { LanguageService } from './i18n/language.service';
+import { languageInitializer } from '@i18n/language.initializer';
+import { LanguageService } from '@i18n/language.service';
import { ToastrModule } from 'ngx-toastr';
import { ServiceWorkerModule } from '@angular/service-worker';
-import { environment } from '../environments/environment';
+import { environment } from '@environments/environment';
import { AuthModule } from './modules/auth/auth.module';
-import { LogoComponent } from './components/logo/logo.component';
-import { AuthErrorComponent } from './components/auth-error/auth-error.component';
-import { ToastComponent } from './components/toast/toast.component';
+import { LogoComponent } from '@components/logo/logo.component';
+import { AuthErrorComponent } from '@components/auth-error/auth-error.component';
+import { ToastComponent } from '@components/toast/toast.component';
import { HttpCacheInterceptor } from '@redaction/red-cache';
-import { NotificationsComponent } from './components/notifications/notifications.component';
+import { NotificationsComponent } from '@components/notifications/notifications.component';
import { KeycloakService } from 'keycloak-angular';
-import { DownloadsListScreenComponent } from './components/downloads-list-screen/downloads-list-screen.component';
+import { DownloadsListScreenComponent } from '@components/downloads-list-screen/downloads-list-screen.component';
import { AppRoutingModule } from './app-routing.module';
-import { SharedModule } from './modules/shared/shared.module';
-import { FileUploadDownloadModule } from './modules/upload-download/file-upload-download.module';
-import { UserProfileScreenComponent } from './components/user-profile/user-profile-screen.component';
+import { SharedModule } from '@shared/shared.module';
+import { FileUploadDownloadModule } from '@upload-download/file-upload-download.module';
+import { UserProfileScreenComponent } from '@components/user-profile/user-profile-screen.component';
import { PlatformLocation } from '@angular/common';
import { BASE_HREF } from './tokens';
diff --git a/apps/red-ui/src/app/components/auth-error/auth-error.component.ts b/apps/red-ui/src/app/components/auth-error/auth-error.component.ts
index b6516e085..351af3380 100644
--- a/apps/red-ui/src/app/components/auth-error/auth-error.component.ts
+++ b/apps/red-ui/src/app/components/auth-error/auth-error.component.ts
@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
-import { UserService } from '../../services/user.service';
-import { AppConfigKey, AppConfigService } from '../../modules/app-config/app-config.service';
+import { UserService } from '@services/user.service';
+import { AppConfigKey, AppConfigService } from '@app-config/app-config.service';
@Component({
selector: 'redaction-auth-error',
diff --git a/apps/red-ui/src/app/components/base-screen/base-screen.component.ts b/apps/red-ui/src/app/components/base-screen/base-screen.component.ts
index 37c41d960..444362088 100644
--- a/apps/red-ui/src/app/components/base-screen/base-screen.component.ts
+++ b/apps/red-ui/src/app/components/base-screen/base-screen.component.ts
@@ -1,14 +1,14 @@
import { Component } from '@angular/core';
-import { UserService } from '../../services/user.service';
-import { AppStateService } from '../../state/app-state.service';
-import { LanguageService } from '../../i18n/language.service';
-import { PermissionsService } from '../../services/permissions.service';
-import { UserPreferenceService } from '../../services/user-preference.service';
+import { UserService } from '@services/user.service';
+import { AppStateService } from '@state/app-state.service';
+import { LanguageService } from '@i18n/language.service';
+import { PermissionsService } from '@services/permissions.service';
+import { UserPreferenceService } from '@services/user-preference.service';
import { Router } from '@angular/router';
-import { AppConfigService } from '../../modules/app-config/app-config.service';
+import { AppConfigService } from '@app-config/app-config.service';
import { Title } from '@angular/platform-browser';
-import { FileDownloadService } from '../../modules/upload-download/services/file-download.service';
-import { StatusOverlayService } from '../../modules/upload-download/services/status-overlay.service';
+import { FileDownloadService } from '@upload-download/services/file-download.service';
+import { StatusOverlayService } from '@upload-download/services/status-overlay.service';
import { TranslateService } from '@ngx-translate/core';
@Component({
@@ -17,12 +17,6 @@ import { TranslateService } from '@ngx-translate/core';
styleUrls: ['./base-screen.component.scss']
})
export class BaseScreenComponent {
- private _projectsView: boolean;
-
- get user() {
- return this._userService.user;
- }
-
constructor(
readonly appStateService: AppStateService,
readonly permissionsService: PermissionsService,
@@ -41,10 +35,16 @@ export class BaseScreenComponent {
});
}
+ private _projectsView: boolean;
+
get projectsView() {
return this._projectsView;
}
+ get user() {
+ return this._userService.user;
+ }
+
get showPendingDownloadsDot() {
return this.fileDownloadService.hasPendingDownloads;
}
diff --git a/apps/red-ui/src/app/components/downloads-list-screen/downloads-list-screen.component.ts b/apps/red-ui/src/app/components/downloads-list-screen/downloads-list-screen.component.ts
index f3ade2a31..992991c75 100644
--- a/apps/red-ui/src/app/components/downloads-list-screen/downloads-list-screen.component.ts
+++ b/apps/red-ui/src/app/components/downloads-list-screen/downloads-list-screen.component.ts
@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
-import { FileDownloadService } from '../../modules/upload-download/services/file-download.service';
-import { DownloadStatusWrapper } from '../../modules/upload-download/model/download-status.wrapper';
+import { FileDownloadService } from '@upload-download/services/file-download.service';
+import { DownloadStatusWrapper } from '@upload-download/model/download-status.wrapper';
import { DownloadControllerService } from '@redaction/red-ui-http';
@Component({
@@ -11,14 +11,14 @@ import { DownloadControllerService } from '@redaction/red-ui-http';
export class DownloadsListScreenComponent implements OnInit {
constructor(readonly fileDownloadService: FileDownloadService, private readonly _downloadControllerService: DownloadControllerService) {}
- ngOnInit(): void {
- this.fileDownloadService.getDownloadStatus().subscribe();
- }
-
get noData(): boolean {
return this.fileDownloadService.downloads.length === 0;
}
+ ngOnInit(): void {
+ this.fileDownloadService.getDownloadStatus().subscribe();
+ }
+
async downloadItem(download: DownloadStatusWrapper) {
await this.fileDownloadService.performDownload(download);
}
diff --git a/apps/red-ui/src/app/components/notifications/notifications.component.html b/apps/red-ui/src/app/components/notifications/notifications.component.html
index f7766cc1e..736aa49b7 100644
--- a/apps/red-ui/src/app/components/notifications/notifications.component.html
+++ b/apps/red-ui/src/app/components/notifications/notifications.component.html
@@ -1,12 +1,12 @@
-
-