New data model for global search input and search page

This commit is contained in:
advplyr 2022-03-13 12:39:12 -05:00
parent 30f15d3575
commit ea9ec13845
16 changed files with 241 additions and 88 deletions

View file

@ -25,6 +25,9 @@ class Library {
get folderPaths() {
return this.folders.map(f => f.fullPath)
}
get itemMediaType() {
return this.mediaType === 'podcast' ? 'podcast' : 'book'
}
construct(library) {
this.id = library.id