.kavitaignore no more (#2442)
This commit is contained in:
parent
cd27efecdd
commit
7221501c4d
91 changed files with 5968 additions and 1026 deletions
25
UI/Web/src/app/_pipes/file-type-group.pipe.ts
Normal file
25
UI/Web/src/app/_pipes/file-type-group.pipe.ts
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import {FileTypeGroup} from "../_models/library/file-type-group.enum";
|
||||
import {translate} from "@ngneat/transloco";
|
||||
|
||||
@Pipe({
|
||||
name: 'fileTypeGroup',
|
||||
standalone: true
|
||||
})
|
||||
export class FileTypeGroupPipe implements PipeTransform {
|
||||
|
||||
transform(value: FileTypeGroup): string {
|
||||
switch (value) {
|
||||
case FileTypeGroup.Archive:
|
||||
return translate('file-type-group-pipe.archive');
|
||||
case FileTypeGroup.Epub:
|
||||
return translate('file-type-group-pipe.epub');
|
||||
case FileTypeGroup.Pdf:
|
||||
return translate('file-type-group-pipe.pdf');
|
||||
case FileTypeGroup.Images:
|
||||
return translate('file-type-group-pipe.image');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import {inject, Pipe, PipeTransform} from '@angular/core';
|
||||
import { LibraryType } from '../_models/library';
|
||||
import { LibraryType } from '../_models/library/library';
|
||||
import {TranslocoService} from "@ngneat/transloco";
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue