From 78b7c03da5baf492ac567669bf25983f16d11964 Mon Sep 17 00:00:00 2001 From: trivernis Date: Fri, 5 Nov 2021 19:10:44 +0100 Subject: [PATCH] Rename search tab to files tab Signed-off-by: trivernis --- mediarepo-ui/src/app/app.module.ts | 4 ++-- .../files-tab.component.html} | 0 .../files-tab.component.scss} | 0 .../files-tab.component.spec.ts} | 10 +++++----- .../files-tab.component.ts} | 8 ++++---- mediarepo-ui/src/app/pages/home/home.component.html | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) rename mediarepo-ui/src/app/pages/home/{search-tab/search-tab.component.html => files-tab/files-tab.component.html} (100%) rename mediarepo-ui/src/app/pages/home/{search-tab/search-tab.component.scss => files-tab/files-tab.component.scss} (100%) rename mediarepo-ui/src/app/pages/home/{search-tab/search-tab.component.spec.ts => files-tab/files-tab.component.spec.ts} (61%) rename mediarepo-ui/src/app/pages/home/{search-tab/search-tab.component.ts => files-tab/files-tab.component.ts} (94%) diff --git a/mediarepo-ui/src/app/app.module.ts b/mediarepo-ui/src/app/app.module.ts index d88f976..135e3a9 100644 --- a/mediarepo-ui/src/app/app.module.ts +++ b/mediarepo-ui/src/app/app.module.ts @@ -28,7 +28,7 @@ import {MatIconModule} from "@angular/material/icon"; import {MatAutocompleteModule} from "@angular/material/autocomplete"; import {FileSearchComponent} from './components/file-search/file-search.component'; import {MatTabsModule} from "@angular/material/tabs"; -import {SearchTabComponent} from './pages/home/search-tab/search-tab.component'; +import {FilesTabComponent} from './pages/home/files-tab/files-tab.component'; import {FlexModule, GridModule} from "@angular/flex-layout"; import {MatRippleModule} from "@angular/material/core"; import {FilterDialogComponent} from './components/file-search/filter-dialog/filter-dialog.component'; @@ -56,7 +56,7 @@ import { ConfirmDialogComponent } from './components/confirm-dialog/confirm-dial FileGridComponent, FileGridEntryComponent, FileSearchComponent, - SearchTabComponent, + FilesTabComponent, FilterDialogComponent, FileGalleryComponent, FileGalleryEntryComponent, diff --git a/mediarepo-ui/src/app/pages/home/search-tab/search-tab.component.html b/mediarepo-ui/src/app/pages/home/files-tab/files-tab.component.html similarity index 100% rename from mediarepo-ui/src/app/pages/home/search-tab/search-tab.component.html rename to mediarepo-ui/src/app/pages/home/files-tab/files-tab.component.html diff --git a/mediarepo-ui/src/app/pages/home/search-tab/search-tab.component.scss b/mediarepo-ui/src/app/pages/home/files-tab/files-tab.component.scss similarity index 100% rename from mediarepo-ui/src/app/pages/home/search-tab/search-tab.component.scss rename to mediarepo-ui/src/app/pages/home/files-tab/files-tab.component.scss diff --git a/mediarepo-ui/src/app/pages/home/search-tab/search-tab.component.spec.ts b/mediarepo-ui/src/app/pages/home/files-tab/files-tab.component.spec.ts similarity index 61% rename from mediarepo-ui/src/app/pages/home/search-tab/search-tab.component.spec.ts rename to mediarepo-ui/src/app/pages/home/files-tab/files-tab.component.spec.ts index 5402eea..7fb2d48 100644 --- a/mediarepo-ui/src/app/pages/home/search-tab/search-tab.component.spec.ts +++ b/mediarepo-ui/src/app/pages/home/files-tab/files-tab.component.spec.ts @@ -1,20 +1,20 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { SearchTabComponent } from './search-tab.component'; +import { FilesTabComponent } from './files-tab.component'; describe('SearchPageComponent', () => { - let component: SearchTabComponent; - let fixture: ComponentFixture; + let component: FilesTabComponent; + let fixture: ComponentFixture; beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [ SearchTabComponent ] + declarations: [ FilesTabComponent ] }) .compileComponents(); }); beforeEach(() => { - fixture = TestBed.createComponent(SearchTabComponent); + fixture = TestBed.createComponent(FilesTabComponent); component = fixture.componentInstance; fixture.detectChanges(); }); diff --git a/mediarepo-ui/src/app/pages/home/search-tab/search-tab.component.ts b/mediarepo-ui/src/app/pages/home/files-tab/files-tab.component.ts similarity index 94% rename from mediarepo-ui/src/app/pages/home/search-tab/search-tab.component.ts rename to mediarepo-ui/src/app/pages/home/files-tab/files-tab.component.ts index bbac829..d542677 100644 --- a/mediarepo-ui/src/app/pages/home/search-tab/search-tab.component.ts +++ b/mediarepo-ui/src/app/pages/home/files-tab/files-tab.component.ts @@ -11,11 +11,11 @@ import {SortKey} from "../../../models/SortKey"; import {RepositoryService} from "../../../services/repository/repository.service"; @Component({ - selector: 'app-search-tab', - templateUrl: './search-tab.component.html', - styleUrls: ['./search-tab.component.scss'] + selector: 'app-files-tab', + templateUrl: './files-tab.component.html', + styleUrls: ['./files-tab.component.scss'] }) -export class SearchTabComponent implements OnInit { +export class FilesTabComponent implements OnInit { tagsOfFiles: Tag[] = []; tags: Tag[] = []; diff --git a/mediarepo-ui/src/app/pages/home/home.component.html b/mediarepo-ui/src/app/pages/home/home.component.html index fb0bf89..0aaa53c 100644 --- a/mediarepo-ui/src/app/pages/home/home.component.html +++ b/mediarepo-ui/src/app/pages/home/home.component.html @@ -3,8 +3,8 @@ - - + +