summaryrefslogtreecommitdiffstatshomepage
path: root/frontend/src/lib/Enums.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/lib/Enums.ts')
-rw-r--r--frontend/src/lib/Enums.ts40
1 files changed, 29 insertions, 11 deletions
diff --git a/frontend/src/lib/Enums.ts b/frontend/src/lib/Enums.ts
index 3264de4..c557cfa 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,
@@ -61,8 +62,8 @@ export const ArchiveSortLabel: Record<ArchiveSort, string> = {
[ArchiveSort.Path]: 'Path',
[ArchiveSort.Size]: 'File Size',
[ArchiveSort.CreatedAt]: 'Created At',
- [ArchiveSort.PageCount]: 'Page Count',
- [ArchiveSort.Random]: 'Random'
+ [ArchiveSort.Random]: 'Random',
+ [ArchiveSort.PageCount]: '# Pages'
};
export const ComicSortLabel: Record<ComicSort, string> = {
@@ -71,30 +72,37 @@ export const ComicSortLabel: Record<ComicSort, string> = {
[ComicSort.Date]: 'Date',
[ComicSort.CreatedAt]: 'Created At',
[ComicSort.UpdatedAt]: 'Updated At',
- [ComicSort.TagCount]: 'Tag Count',
- [ComicSort.PageCount]: 'Page Count',
- [ComicSort.Random]: 'Random'
+ [ComicSort.Random]: 'Random',
+ [ComicSort.ArtistCount]: '# Artists',
+ [ComicSort.CharacterCount]: '# Characters',
+ [ComicSort.CircleCount]: '# Circles',
+ [ComicSort.PageCount]: '# Pages',
+ [ComicSort.TagCount]: '# Tags',
+ [ComicSort.WorldCount]: '# Worlds'
};
export const ArtistSortLabel: Record<ArtistSort, string> = {
[ArtistSort.Name]: 'Name',
[ArtistSort.CreatedAt]: 'Created At',
[ArtistSort.UpdatedAt]: 'Updated At',
- [ArchiveSort.Random]: 'Random'
+ [ArtistSort.Random]: 'Random',
+ [ArtistSort.ComicCount]: '# Count'
};
export const CharacterSortLabel: Record<CharacterSort, string> = {
[CharacterSort.Name]: 'Name',
[CharacterSort.CreatedAt]: 'Created At',
[CharacterSort.UpdatedAt]: 'Updated At',
- [ArchiveSort.Random]: 'Random'
+ [CharacterSort.Random]: 'Random',
+ [CharacterSort.ComicCount]: '# Comics'
};
export const CircleSortLabel: Record<CircleSort, string> = {
[CircleSort.Name]: 'Name',
[CircleSort.CreatedAt]: 'Created At',
[CircleSort.UpdatedAt]: 'Updated At',
- [ArchiveSort.Random]: 'Random'
+ [CircleSort.Random]: 'Random',
+ [CircleSort.ComicCount]: '# Comics'
};
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.Random]: 'Random',
+ [NamespaceSort.TagCount]: '# Tags'
};
export const TagSortLabel: Record<TagSort, string> = {
[TagSort.Name]: 'Name',
[TagSort.CreatedAt]: 'Created At',
[TagSort.UpdatedAt]: 'Updated At',
- [ArchiveSort.Random]: 'Random'
+ [TagSort.Random]: 'Random',
+ [TagSort.ComicCount]: '# Comics',
+ [TagSort.NamespaceCount]: '# Namespaces'
};
export const WorldSortLabel: Record<WorldSort, string> = {
[WorldSort.Name]: 'Name',
[WorldSort.CreatedAt]: 'Created At',
[WorldSort.UpdatedAt]: 'Updated At',
- [ArchiveSort.Random]: 'Random'
+ [WorldSort.Random]: 'Random',
+ [WorldSort.ComicCount]: '# Comics'
};
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',