diff --git a/mediarepo-ui/src/app/app.module.ts b/mediarepo-ui/src/app/app.module.ts index ab776c3..dd087ca 100644 --- a/mediarepo-ui/src/app/app.module.ts +++ b/mediarepo-ui/src/app/app.module.ts @@ -15,10 +15,10 @@ import {MatSnackBarModule} from "@angular/material/snack-bar"; import {MatFormFieldModule} from "@angular/material/form-field"; import {MatInputModule} from "@angular/material/input"; import {ReactiveFormsModule} from "@angular/forms"; -import {FileGridComponent} from './components/file-grid/file-grid.component'; +import {FileGridComponent} from './components/file-multiview/file-grid/file-grid.component'; import {MatSidenavModule} from "@angular/material/sidenav"; import {MatGridListModule} from "@angular/material/grid-list"; -import {FileGridEntryComponent} from './components/file-grid/file-grid-entry/file-grid-entry.component'; +import {FileGridEntryComponent} from './components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component'; import {MatProgressBarModule} from "@angular/material/progress-bar"; import {MatPaginatorModule} from "@angular/material/paginator"; import {ScrollingModule} from "@angular/cdk/scrolling"; @@ -32,8 +32,8 @@ import {MatRippleModule} from "@angular/material/core"; import {SortDialogComponent} from './components/file-search/sort-dialog/sort-dialog.component'; import {MatDialogModule} from "@angular/material/dialog"; import {MatSelectModule} from "@angular/material/select"; -import {FileGalleryComponent} from './components/file-gallery/file-gallery.component'; -import {FileGalleryEntryComponent} from './components/file-gallery/file-gallery-entry/file-gallery-entry.component'; +import {FileGalleryComponent} from './components/file-multiview/file-gallery/file-gallery.component'; +import {FileGalleryEntryComponent} from './components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component'; import {MatProgressSpinnerModule} from "@angular/material/progress-spinner"; import {BlockUIModule} from "primeng/blockui"; import {PanelModule} from "primeng/panel"; @@ -58,15 +58,16 @@ import {TagFilterListItemComponent} from './components/file-search/filter-dialog import {TagInputComponent} from './components/inputs/tag-input/tag-input.component'; import {ContextMenuComponent} from './components/context-menu/context-menu.component'; import {FileContextMenuComponent} from './components/context-menu/file-context-menu/file-context-menu.component'; -import {ContentViewerComponent} from './components/file-gallery/content-viewer/content-viewer.component'; -import {ImageViewerComponent} from './components/file-gallery/content-viewer/image-viewer/image-viewer.component'; -import {VideoViewerComponent} from './components/file-gallery/content-viewer/video-viewer/video-viewer.component'; +import {ContentViewerComponent} from './components/file-multiview/file-gallery/content-viewer/content-viewer.component'; +import {ImageViewerComponent} from './components/file-multiview/file-gallery/content-viewer/image-viewer/image-viewer.component'; +import {VideoViewerComponent} from './components/file-multiview/file-gallery/content-viewer/video-viewer/video-viewer.component'; import {HttpClientModule} from "@angular/common/http"; -import { AudioViewerComponent } from './components/file-gallery/content-viewer/audio-viewer/audio-viewer.component'; +import { AudioViewerComponent } from './components/file-multiview/file-gallery/content-viewer/audio-viewer/audio-viewer.component'; import { BusyIndicatorComponent } from './components/busy-indicator/busy-indicator.component'; import { FileThumbnailComponent } from './components/file-thumbnail/file-thumbnail.component'; import {NgIconsModule} from "@ng-icons/core"; import * as materialIcons from "@ng-icons/material-icons"; +import { FileMultiviewComponent } from './components/file-multiview/file-multiview.component'; @NgModule({ declarations: [ @@ -102,6 +103,7 @@ import * as materialIcons from "@ng-icons/material-icons"; AudioViewerComponent, BusyIndicatorComponent, FileThumbnailComponent, + FileMultiviewComponent, ], imports: [ BrowserModule, diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/audio-viewer/audio-viewer.component.html b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/audio-viewer/audio-viewer.component.html similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/audio-viewer/audio-viewer.component.html rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/audio-viewer/audio-viewer.component.html diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/audio-viewer/audio-viewer.component.scss b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/audio-viewer/audio-viewer.component.scss similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/audio-viewer/audio-viewer.component.scss rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/audio-viewer/audio-viewer.component.scss diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/audio-viewer/audio-viewer.component.spec.ts b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/audio-viewer/audio-viewer.component.spec.ts similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/audio-viewer/audio-viewer.component.spec.ts rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/audio-viewer/audio-viewer.component.spec.ts diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/audio-viewer/audio-viewer.component.ts b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/audio-viewer/audio-viewer.component.ts similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/audio-viewer/audio-viewer.component.ts rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/audio-viewer/audio-viewer.component.ts diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/content-viewer.component.html b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/content-viewer.component.html similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/content-viewer.component.html rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/content-viewer.component.html diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/content-viewer.component.scss b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/content-viewer.component.scss similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/content-viewer.component.scss rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/content-viewer.component.scss diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/content-viewer.component.spec.ts b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/content-viewer.component.spec.ts similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/content-viewer.component.spec.ts rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/content-viewer.component.spec.ts diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/content-viewer.component.ts b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/content-viewer.component.ts similarity index 87% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/content-viewer.component.ts rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/content-viewer.component.ts index af22e9c..6df8cbe 100644 --- a/mediarepo-ui/src/app/components/file-gallery/content-viewer/content-viewer.component.ts +++ b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/content-viewer.component.ts @@ -8,11 +8,11 @@ import { SimpleChanges, ViewChild } from '@angular/core'; import {SafeResourceUrl} from "@angular/platform-browser"; -import {File} from "../../../models/File"; -import {FileService} from "../../../services/file/file.service"; -import {FileHelper} from "../../../services/file/file.helper"; -import {ErrorBrokerService} from "../../../services/error-broker/error-broker.service"; -import {BusyIndicatorComponent} from "../../busy-indicator/busy-indicator.component"; +import {File} from "../../../../models/File"; +import {FileService} from "../../../../services/file/file.service"; +import {FileHelper} from "../../../../services/file/file.helper"; +import {ErrorBrokerService} from "../../../../services/error-broker/error-broker.service"; +import {BusyIndicatorComponent} from "../../../busy-indicator/busy-indicator.component"; type ContentType = "image" | "video" | "audio" | "other"; diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/image-viewer/image-viewer.component.html b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/image-viewer/image-viewer.component.html similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/image-viewer/image-viewer.component.html rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/image-viewer/image-viewer.component.html diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/image-viewer/image-viewer.component.scss b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/image-viewer/image-viewer.component.scss similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/image-viewer/image-viewer.component.scss rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/image-viewer/image-viewer.component.scss diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/image-viewer/image-viewer.component.spec.ts b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/image-viewer/image-viewer.component.spec.ts similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/image-viewer/image-viewer.component.spec.ts rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/image-viewer/image-viewer.component.spec.ts diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/image-viewer/image-viewer.component.ts b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/image-viewer/image-viewer.component.ts similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/image-viewer/image-viewer.component.ts rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/image-viewer/image-viewer.component.ts diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/video-viewer/video-viewer.component.html b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/video-viewer/video-viewer.component.html similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/video-viewer/video-viewer.component.html rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/video-viewer/video-viewer.component.html diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/video-viewer/video-viewer.component.scss b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/video-viewer/video-viewer.component.scss similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/video-viewer/video-viewer.component.scss rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/video-viewer/video-viewer.component.scss diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/video-viewer/video-viewer.component.spec.ts b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/video-viewer/video-viewer.component.spec.ts similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/video-viewer/video-viewer.component.spec.ts rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/video-viewer/video-viewer.component.spec.ts diff --git a/mediarepo-ui/src/app/components/file-gallery/content-viewer/video-viewer/video-viewer.component.ts b/mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/video-viewer/video-viewer.component.ts similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/content-viewer/video-viewer/video-viewer.component.ts rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/content-viewer/video-viewer/video-viewer.component.ts diff --git a/mediarepo-ui/src/app/components/file-gallery/file-gallery-entry/file-gallery-entry.component-theme.scss b/mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component-theme.scss similarity index 88% rename from mediarepo-ui/src/app/components/file-gallery/file-gallery-entry/file-gallery-entry.component-theme.scss rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component-theme.scss index 93954f3..c36be2f 100644 --- a/mediarepo-ui/src/app/components/file-gallery/file-gallery-entry/file-gallery-entry.component-theme.scss +++ b/mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component-theme.scss @@ -1,5 +1,5 @@ @use 'sass:map'; -@use '~@angular/material' as mat; +@use '../../../../../../node_modules/@angular/material/index' as mat; @mixin color($theme) { $color-config: mat.get-color-config($theme); diff --git a/mediarepo-ui/src/app/components/file-gallery/file-gallery-entry/file-gallery-entry.component.html b/mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component.html similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/file-gallery-entry/file-gallery-entry.component.html rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component.html diff --git a/mediarepo-ui/src/app/components/file-gallery/file-gallery-entry/file-gallery-entry.component.scss b/mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component.scss similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/file-gallery-entry/file-gallery-entry.component.scss rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component.scss diff --git a/mediarepo-ui/src/app/components/file-gallery/file-gallery-entry/file-gallery-entry.component.spec.ts b/mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component.spec.ts similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/file-gallery-entry/file-gallery-entry.component.spec.ts rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component.spec.ts diff --git a/mediarepo-ui/src/app/components/file-gallery/file-gallery-entry/file-gallery-entry.component.ts b/mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component.ts similarity index 84% rename from mediarepo-ui/src/app/components/file-gallery/file-gallery-entry/file-gallery-entry.component.ts rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component.ts index 290d4ec..341bfe9 100644 --- a/mediarepo-ui/src/app/components/file-gallery/file-gallery-entry/file-gallery-entry.component.ts +++ b/mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery-entry/file-gallery-entry.component.ts @@ -7,11 +7,11 @@ import { Output, SimpleChanges } from '@angular/core'; -import {File} from "../../../models/File"; -import {FileService} from "../../../services/file/file.service"; +import {File} from "../../../../models/File"; +import {FileService} from "../../../../services/file/file.service"; import {DomSanitizer, SafeResourceUrl} from "@angular/platform-browser"; -import {ErrorBrokerService} from "../../../services/error-broker/error-broker.service"; -import {Selectable} from "../../../models/Selectable"; +import {ErrorBrokerService} from "../../../../services/error-broker/error-broker.service"; +import {Selectable} from "../../../../models/Selectable"; @Component({ selector: 'app-file-gallery-entry', diff --git a/mediarepo-ui/src/app/components/file-gallery/file-gallery.component.html b/mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery.component.html similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/file-gallery.component.html rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery.component.html diff --git a/mediarepo-ui/src/app/components/file-gallery/file-gallery.component.scss b/mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery.component.scss similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/file-gallery.component.scss rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery.component.scss diff --git a/mediarepo-ui/src/app/components/file-gallery/file-gallery.component.spec.ts b/mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery.component.spec.ts similarity index 100% rename from mediarepo-ui/src/app/components/file-gallery/file-gallery.component.spec.ts rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery.component.spec.ts diff --git a/mediarepo-ui/src/app/components/file-gallery/file-gallery.component.ts b/mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery.component.ts similarity index 95% rename from mediarepo-ui/src/app/components/file-gallery/file-gallery.component.ts rename to mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery.component.ts index b209366..4cc2057 100644 --- a/mediarepo-ui/src/app/components/file-gallery/file-gallery.component.ts +++ b/mediarepo-ui/src/app/components/file-multiview/file-gallery/file-gallery.component.ts @@ -9,12 +9,12 @@ import { SimpleChanges, ViewChild } from '@angular/core'; -import {File} from "../../models/File"; -import {FileService} from "../../services/file/file.service"; +import {File} from "../../../models/File"; +import {FileService} from "../../../services/file/file.service"; import {SafeResourceUrl} from "@angular/platform-browser"; -import {Selectable} from "../../models/Selectable"; +import {Selectable} from "../../../models/Selectable"; import {CdkVirtualScrollViewport} from "@angular/cdk/scrolling"; -import {TabService} from "../../services/tab/tab.service"; +import {TabService} from "../../../services/tab/tab.service"; @Component({ selector: 'app-file-gallery', diff --git a/mediarepo-ui/src/app/components/file-grid/file-grid-entry/GridEntry.ts b/mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/GridEntry.ts similarity index 58% rename from mediarepo-ui/src/app/components/file-grid/file-grid-entry/GridEntry.ts rename to mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/GridEntry.ts index 4fadec9..e434fb4 100644 --- a/mediarepo-ui/src/app/components/file-grid/file-grid-entry/GridEntry.ts +++ b/mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/GridEntry.ts @@ -1,4 +1,4 @@ -import {File} from "../../../models/File"; +import {File} from "../../../../models/File"; export type GridEntry = { file: File, diff --git a/mediarepo-ui/src/app/components/file-grid/file-grid-entry/file-grid-entry.component-theme.scss b/mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component-theme.scss similarity index 88% rename from mediarepo-ui/src/app/components/file-grid/file-grid-entry/file-grid-entry.component-theme.scss rename to mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component-theme.scss index 497545e..5dd01a8 100644 --- a/mediarepo-ui/src/app/components/file-grid/file-grid-entry/file-grid-entry.component-theme.scss +++ b/mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component-theme.scss @@ -1,5 +1,5 @@ @use 'sass:map'; -@use '~@angular/material' as mat; +@use '../../../../../../node_modules/@angular/material/index' as mat; @mixin color($theme) { $color-config: mat.get-color-config($theme); diff --git a/mediarepo-ui/src/app/components/file-grid/file-grid-entry/file-grid-entry.component.html b/mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component.html similarity index 100% rename from mediarepo-ui/src/app/components/file-grid/file-grid-entry/file-grid-entry.component.html rename to mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component.html diff --git a/mediarepo-ui/src/app/components/file-grid/file-grid-entry/file-grid-entry.component.scss b/mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component.scss similarity index 100% rename from mediarepo-ui/src/app/components/file-grid/file-grid-entry/file-grid-entry.component.scss rename to mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component.scss diff --git a/mediarepo-ui/src/app/components/file-grid/file-grid-entry/file-grid-entry.component.spec.ts b/mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component.spec.ts similarity index 100% rename from mediarepo-ui/src/app/components/file-grid/file-grid-entry/file-grid-entry.component.spec.ts rename to mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component.spec.ts diff --git a/mediarepo-ui/src/app/components/file-grid/file-grid-entry/file-grid-entry.component.ts b/mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component.ts similarity index 87% rename from mediarepo-ui/src/app/components/file-grid/file-grid-entry/file-grid-entry.component.ts rename to mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component.ts index 940b7d2..753f097 100644 --- a/mediarepo-ui/src/app/components/file-grid/file-grid-entry/file-grid-entry.component.ts +++ b/mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid-entry/file-grid-entry.component.ts @@ -9,9 +9,9 @@ import { SimpleChanges, ViewChild } from '@angular/core'; -import {File} from "../../../models/File"; -import {FileService} from "../../../services/file/file.service"; -import {ErrorBrokerService} from "../../../services/error-broker/error-broker.service"; +import {File} from "../../../../models/File"; +import {FileService} from "../../../../services/file/file.service"; +import {ErrorBrokerService} from "../../../../services/error-broker/error-broker.service"; import {SafeResourceUrl} from "@angular/platform-browser"; import {GridEntry} from "./GridEntry"; diff --git a/mediarepo-ui/src/app/components/file-grid/file-grid.component.html b/mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid.component.html similarity index 91% rename from mediarepo-ui/src/app/components/file-grid/file-grid.component.html rename to mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid.component.html index a7d1dac..50cbda6 100644 --- a/mediarepo-ui/src/app/components/file-grid/file-grid.component.html +++ b/mediarepo-ui/src/app/components/file-multiview/file-grid/file-grid.component.html @@ -5,7 +5,7 @@