From: {{ row.original.from }}
@@ -43,46 +55,29 @@ type ActionRecord = components['schemas']['ActionRecord'];
const { $api } = useNuxtApp();
const timezoneOffsetMillis = new Date().getTimezoneOffset() * 60 * 1000;
-const params = ref>({ ...useRoute().query,
- start: new Date(Date.now()-(24 * 60 * 60 * 1000) - timezoneOffsetMillis).toISOString().slice(0, 16),
- end: new Date(Date.now() - timezoneOffsetMillis).toISOString().slice(0, 16)
+const params = ref>({
+ ...useRoute().query,
+ start: new Date(Date.now() - 24 * 60 * 60 * 1000 - timezoneOffsetMillis).toISOString().slice(0, 16),
+ end: new Date(Date.now() - timezoneOffsetMillis).toISOString().slice(0, 16),
});
const data = ref(await $api('/v2/Actions/Filter', { method: 'POST', body: params.value }));
-const { data: ActionTypes } = useApi('/v2/Actions/Types', { key : FetchKeys.Actions.Types });
+const { data: ActionTypes } = useApi('/v2/Actions/Types', { key: FetchKeys.Actions.Types });
const columns: TableColumn[] = [
- {
- id: 'action',
- accessorKey: 'action',
- header: 'Action'
- },
- {
- id: 'timestamp',
- accessorKey: 'performedAt',
- header: 'Timestamp'
- },
- {
- id: 'manga',
- accessorKey: 'mangaId',
- header: 'Manga'
- },
- {
- id: 'chapter',
- accessorKey: 'chapterId',
- header: 'Chapter'
- },
- {
- id: 'additional',
- header: 'Additional'
- },
+ { id: 'action', accessorKey: 'action', header: 'Action' },
+ { id: 'timestamp', accessorKey: 'performedAt', header: 'Timestamp' },
+ { id: 'manga', accessorKey: 'mangaId', header: 'Manga' },
+ { id: 'chapter', accessorKey: 'chapterId', header: 'Chapter' },
+ { id: 'additional', header: 'Additional' },
];
const resetFilter = () => {
- params.value = { ...useRoute().query,
- start: new Date(Date.now()-(24 * 60 * 60 * 1000) - timezoneOffsetMillis).toISOString().slice(0, 16),
- end: new Date(Date.now() - timezoneOffsetMillis).toISOString().slice(0, 16)
+ params.value = {
+ ...useRoute().query,
+ start: new Date(Date.now() - 24 * 60 * 60 * 1000 - timezoneOffsetMillis).toISOString().slice(0, 16),
+ end: new Date(Date.now() - timezoneOffsetMillis).toISOString().slice(0, 16),
};
-}
+};
const refreshData = async (): Promise => {
data.value = await $api('/v2/Actions/Filter', { method: 'POST', body: params.value });
diff --git a/website/app/pages/manga/[mangaId]/index.vue b/website/app/pages/manga/[mangaId]/index.vue
index d625dba..38e2ea1 100644
--- a/website/app/pages/manga/[mangaId]/index.vue
+++ b/website/app/pages/manga/[mangaId]/index.vue
@@ -66,7 +66,11 @@
-
+
Merge