From c2c279b6ce71740a9b4657419ba30f9940837f63 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 22 Sep 2025 11:07:13 +0800 Subject: [PATCH] use id for historical events key --- next-ui/src/fragments/fragment/history/Table.vue | 1 - next-ui/src/mocks/api/handlers/history.ts | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/next-ui/src/fragments/fragment/history/Table.vue b/next-ui/src/fragments/fragment/history/Table.vue index 9700201a..37d416fc 100644 --- a/next-ui/src/fragments/fragment/history/Table.vue +++ b/next-ui/src/fragments/fragment/history/Table.vue @@ -11,7 +11,6 @@ { value: 100, title: '100' }, ]" :headers="headers" - item-value="timestamp" fixed-header fixed-footer multi-sort diff --git a/next-ui/src/mocks/api/handlers/history.ts b/next-ui/src/mocks/api/handlers/history.ts index b817c154..e1061ce6 100644 --- a/next-ui/src/mocks/api/handlers/history.ts +++ b/next-ui/src/mocks/api/handlers/history.ts @@ -5,6 +5,7 @@ import { http, HttpResponse } from 'msw' import logoUrl from '@/assets/logo.svg' export const historyBookImported = { + id: 'H1', type: 'BookImported', timestamp: new Date('2025-08-07T09:36:22.596'), bookId: 'B5', @@ -17,6 +18,7 @@ export const historyBookImported = { } export const historySeriesFolderDeleted = { + id: 'H2', type: 'SeriesFolderDeleted', timestamp: new Date('2025-08-05T21:33:56.452'), seriesId: '404', @@ -27,6 +29,7 @@ export const historySeriesFolderDeleted = { } export const historyBookFileDeleted = { + id: 'H3', type: 'BookFileDeleted', timestamp: new Date('2025-08-05T21:33:56.445'), bookId: '404', @@ -38,6 +41,7 @@ export const historyBookFileDeleted = { } export const historyBookImportedForUpgrade = { + id: 'H4', type: 'BookImported', timestamp: new Date('2025-07-28T17:52:14.126'), bookId: 'B15', @@ -50,6 +54,7 @@ export const historyBookImportedForUpgrade = { } export const historyBookFileDeletedForUpgrade = { + id: 'H5', type: 'BookFileDeleted', timestamp: new Date('2025-07-28T17:52:14.016'), bookId: 'b14', @@ -61,6 +66,7 @@ export const historyBookFileDeletedForUpgrade = { } export const historyDuplicatePageDeleted = { + id: 'H6', type: 'DuplicatePageDeleted', timestamp: new Date('2025-07-26T21:33:18.809'), bookId: 'B5', @@ -76,6 +82,7 @@ export const historyDuplicatePageDeleted = { } export const historyBookConverted = { + id: 'H7', type: 'BookConverted', timestamp: new Date('2025-07-07T17:33:39.545'), bookId: 'B25',