diff options
Diffstat (limited to 'frontend/src/lib/Enums.ts')
-rw-r--r-- | frontend/src/lib/Enums.ts | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/frontend/src/lib/Enums.ts b/frontend/src/lib/Enums.ts index 3264de4..292ed7d 100644 --- a/frontend/src/lib/Enums.ts +++ b/frontend/src/lib/Enums.ts @@ -10,6 +10,7 @@ import { Language, Layout, NamespaceSort, + Operator, Rating, TagSort, UpdateMode, @@ -72,6 +73,10 @@ export const ComicSortLabel: Record<ComicSort, string> = { [ComicSort.CreatedAt]: 'Created At', [ComicSort.UpdatedAt]: 'Updated At', [ComicSort.TagCount]: 'Tag Count', + [ComicSort.ArtistCount]: 'Artist Count', + [ComicSort.CharacterCount]: 'Character Count', + [ComicSort.CircleCount]: 'Circle Count', + [ComicSort.WorldCount]: 'World Count', [ComicSort.PageCount]: 'Page Count', [ComicSort.Random]: 'Random' }; @@ -80,21 +85,24 @@ export const ArtistSortLabel: Record<ArtistSort, string> = { [ArtistSort.Name]: 'Name', [ArtistSort.CreatedAt]: 'Created At', [ArtistSort.UpdatedAt]: 'Updated At', - [ArchiveSort.Random]: 'Random' + [ArtistSort.ComicCount]: 'Comic Count', + [ArtistSort.Random]: 'Random' }; export const CharacterSortLabel: Record<CharacterSort, string> = { [CharacterSort.Name]: 'Name', [CharacterSort.CreatedAt]: 'Created At', [CharacterSort.UpdatedAt]: 'Updated At', - [ArchiveSort.Random]: 'Random' + [CharacterSort.ComicCount]: 'Comic Count', + [CharacterSort.Random]: 'Random' }; export const CircleSortLabel: Record<CircleSort, string> = { [CircleSort.Name]: 'Name', [CircleSort.CreatedAt]: 'Created At', [CircleSort.UpdatedAt]: 'Updated At', - [ArchiveSort.Random]: 'Random' + [CircleSort.ComicCount]: 'Comic Count', + [CircleSort.Random]: 'Random' }; export const NamespaceSortLabel: Record<NamespaceSort, string> = { @@ -102,21 +110,25 @@ export const NamespaceSortLabel: Record<NamespaceSort, string> = { [NamespaceSort.SortName]: 'Sort Name', [NamespaceSort.CreatedAt]: 'Created At', [NamespaceSort.UpdatedAt]: 'Updated At', - [ArchiveSort.Random]: 'Random' + [NamespaceSort.TagCount]: 'Tag Count', + [NamespaceSort.Random]: 'Random' }; export const TagSortLabel: Record<TagSort, string> = { [TagSort.Name]: 'Name', [TagSort.CreatedAt]: 'Created At', + [TagSort.ComicCount]: 'Comic Count', + [TagSort.NamespaceCount]: 'Namespace Count', [TagSort.UpdatedAt]: 'Updated At', - [ArchiveSort.Random]: 'Random' + [TagSort.Random]: 'Random' }; export const WorldSortLabel: Record<WorldSort, string> = { [WorldSort.Name]: 'Name', [WorldSort.CreatedAt]: 'Created At', [WorldSort.UpdatedAt]: 'Updated At', - [ArchiveSort.Random]: 'Random' + [WorldSort.ComicCount]: 'Comic Count', + [WorldSort.Random]: 'Random' }; export const UpdateModeLabel: Record<UpdateMode, string> = { @@ -125,6 +137,12 @@ export const UpdateModeLabel: Record<UpdateMode, string> = { [UpdateMode.Replace]: 'Replace' }; +export const OperatorLabel: Record<Operator, string> = { + [Operator.Equal]: 'Equal', + [Operator.GreaterThan]: 'Greater than', + [Operator.LowerThan]: 'Lower than,' +}; + export const LanguageLabel: Record<Language, string> = { [Language.Ab]: 'Abkhazian', [Language.Aa]: 'Afar', |