feat(webui): add sort criteria for known page hash

Closes: #1609
This commit is contained in:
Gauthier Roebroeck 2024-09-11 11:54:59 +08:00
parent d12f3b3493
commit be4911d56b
3 changed files with 6 additions and 0 deletions

View file

@ -634,6 +634,8 @@
"empty_title": "No duplicate pages found",
"filter": {
"count": "Count",
"date_added": "Date added",
"date_modified": "Date modified",
"delete_count": "Deletion count",
"delete_size": "Space saved",
"match_count": "Match count",

View file

@ -163,6 +163,8 @@ export default Vue.extend({
{name: this.$t('duplicate_pages.filter.size').toString(), key: 'fileSize'},
{name: this.$t('duplicate_pages.filter.delete_count').toString(), key: 'deleteCount'},
{name: this.$t('duplicate_pages.filter.match_count').toString(), key: 'matchCount'},
{name: this.$t('duplicate_pages.filter.date_added').toString(), key: 'createdDate'},
{name: this.$t('duplicate_pages.filter.date_modified').toString(), key: 'lastModifiedDate'},
]
},
paginationVisible(): number {

View file

@ -38,6 +38,8 @@ class PageHashDao(
"deleteCount" to ph.DELETE_COUNT,
"deleteSize" to ph.SIZE * ph.DELETE_COUNT,
"fileSize" to ph.SIZE,
"createdDate" to ph.CREATED_DATE,
"lastModifiedDate" to ph.LAST_MODIFIED_DATE,
)
private val sortsUnknown =