import books add region

This commit is contained in:
Gauthier Roebroeck 2025-10-17 09:48:33 +08:00
parent a81798b039
commit 487bd42300

View file

@ -397,7 +397,7 @@ function onDisplayedItems(items: { key: string }[]) {
}) })
} }
// Table setup //region Table setup
const itemsPerPage = ref<number>(display.smAndDown.value ? 1 : 10) const itemsPerPage = ref<number>(display.smAndDown.value ? 1 : 10)
const itemsPerPageOptions = computed(() => (display.smAndDown.value ? [1, 5] : [10, 25, 50])) const itemsPerPageOptions = computed(() => (display.smAndDown.value ? [1, 5] : [10, 25, 50]))
const hideFooter = computed(() => importBooks.value.length < (display.smAndDown.value ? 1 : 10)) const hideFooter = computed(() => importBooks.value.length < (display.smAndDown.value ? 1 : 10))
@ -454,7 +454,9 @@ const headers = [
align: 'end', align: 'end',
}, },
] as const // workaround for https://github.com/vuetifyjs/vuetify/issues/18901 ] as const // workaround for https://github.com/vuetifyjs/vuetify/issues/18901
//endregion
//region Copy Options
const copyOptions = [ const copyOptions = [
{ {
title: intl.formatMessage({ title: intl.formatMessage({
@ -474,6 +476,7 @@ const copyOptions = [
}, },
] ]
const copyMode = ref<string>(copyOptions[0]!.value) const copyMode = ref<string>(copyOptions[0]!.value)
//endregion
//region Series Picker Dialog //region Series Picker Dialog
const dialogSeriesPickerActivator = ref<Element | undefined>(undefined) const dialogSeriesPickerActivator = ref<Element | undefined>(undefined)
@ -506,7 +509,7 @@ function bookPicked(book: components['schemas']['BookDto']) {
} }
//endregion //endregion
// File Name Picker dialog //region File Name Picker dialog
const dialogFileNamePickerActivator = ref<Element | undefined>(undefined) const dialogFileNamePickerActivator = ref<Element | undefined>(undefined)
function fileNamePicked(name: string) { function fileNamePicked(name: string) {
@ -514,6 +517,7 @@ function fileNamePicked(name: string) {
currentActionedItems.value.forEach((it) => (it.destinationName = name)) currentActionedItems.value.forEach((it) => (it.destinationName = name))
} }
} }
//endregion
function analyzeBook(book: BookImport) { function analyzeBook(book: BookImport) {
const { refresh } = useQuery(transientBookAnalyze, () => ({ const { refresh } = useQuery(transientBookAnalyze, () => ({