mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-03 09:44:41 +02:00
Change:Bookshelf to return minified audiobook objects and limit 100 #255
This commit is contained in:
parent
18fa7a0b10
commit
3f8551f9a1
6 changed files with 31 additions and 26 deletions
|
@ -54,7 +54,7 @@ export default {
|
|||
pageLoadQueue: [],
|
||||
isFetchingEntities: false,
|
||||
scrollTimeout: null,
|
||||
booksPerFetch: 250,
|
||||
booksPerFetch: 100,
|
||||
totalShelves: 0,
|
||||
bookshelfMarginLeft: 0,
|
||||
isSelectionMode: false,
|
||||
|
@ -220,7 +220,7 @@ export default {
|
|||
var entityPath = this.entityName === 'books' ? `books/all` : this.entityName
|
||||
if (this.entityName === 'series-books') entityPath = `series/${this.seriesId}`
|
||||
var sfQueryString = this.currentSFQueryString ? this.currentSFQueryString + '&' : ''
|
||||
var fullQueryString = this.entityName === 'series-books' ? '' : `?${sfQueryString}limit=${this.booksPerFetch}&page=${page}`
|
||||
var fullQueryString = this.entityName === 'series-books' ? '' : `?${sfQueryString}limit=${this.booksPerFetch}&page=${page}&minified=1`
|
||||
var payload = await this.$axios.$get(`/api/libraries/${this.currentLibraryId}/${entityPath}${fullQueryString}`).catch((error) => {
|
||||
console.error('failed to fetch books', error)
|
||||
return null
|
||||
|
@ -438,7 +438,7 @@ export default {
|
|||
var entitiesPerShelfBefore = this.entitiesPerShelf
|
||||
|
||||
var { clientHeight, clientWidth } = bookshelf
|
||||
console.log('Init bookshelf width', clientWidth, 'window width', window.innerWidth)
|
||||
// console.log('Init bookshelf width', clientWidth, 'window width', window.innerWidth)
|
||||
this.mountWindowWidth = window.innerWidth
|
||||
this.bookshelfHeight = clientHeight
|
||||
this.bookshelfWidth = clientWidth
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue