+
-
-
+
+
-
{{ groupName }}
+
{{ groupName }}
-
-
{{ bookItems.length }}
-
+
{{ bookItems.length }}
-
-
@@ -31,11 +23,8 @@ export default {
type: Object,
default: () => null
},
- width: {
- type: Number,
- default: 120
- },
- isCategorized: Boolean,
+ width: Number,
+ height: Number,
bookCoverAspectRatio: Number
},
data() {
@@ -43,23 +32,7 @@ export default {
isHovering: false
}
},
- watch: {
- width(newVal) {
- this.$nextTick(() => {
- if (this.$refs.groupcover) {
- this.$refs.groupcover.init()
- }
- })
- }
- },
computed: {
- seriesId() {
- return this.groupEncode
- },
- labelFontSize() {
- if (this.coverWidth < 160) return 0.75
- return 0.875
- },
currentLibraryId() {
return this.$store.state.libraries.currentLibraryId
},
@@ -70,29 +43,11 @@ export default {
return this._group.type
},
groupTo() {
- if (this.groupType === 'series') {
- return `/library/${this.currentLibraryId}/series/${this._group.id}`
- } else if (this.groupType === 'collection') {
- return `/collection/${this._group.id}`
- } else {
- return `/library/${this.currentLibraryId}/bookshelf?filter=tags.${this.groupEncode}`
- }
- },
- squareAspectRatio() {
- return this.bookCoverAspectRatio === 1
- },
- coverWidth() {
- return this.width * 2
- },
- coverHeight() {
- return this.width * this.bookCoverAspectRatio
+ return `/library/${this.currentLibraryId}/bookshelf?filter=${this.filter}`
},
sizeMultiplier() {
- var baseSize = this.squareAspectRatio ? 192 : 120
- return this.width / baseSize
- },
- paddingX() {
- return 16 * this.sizeMultiplier
+ if (this.bookCoverAspectRatio === 1) return this.width / (120 * 1.6 * 2)
+ return this.width / 240
},
bookItems() {
return this._group.books || []
diff --git a/client/components/cards/LazyCollectionCard.vue b/client/components/cards/LazyCollectionCard.vue
index 5b304bf1..ffcd8510 100644
--- a/client/components/cards/LazyCollectionCard.vue
+++ b/client/components/cards/LazyCollectionCard.vue
@@ -30,7 +30,12 @@ export default {
bookshelfView: {
type: Number,
default: 0
- }
+ },
+ collectionMount: {
+ type: Object,
+ default: () => null
+ },
+ isTag: Boolean
},
data() {
return {
@@ -99,6 +104,10 @@ export default {
}
}
},
- mounted() {}
+ mounted() {
+ if (this.collectionMount) {
+ this.setEntity(this.collectionMount)
+ }
+ }
}
\ No newline at end of file
diff --git a/client/components/cards/LazyGroupCard.vue b/client/components/cards/LazyGroupCard.vue
new file mode 100644
index 00000000..e69de29b
diff --git a/client/components/cards/LazySeriesCard.vue b/client/components/cards/LazySeriesCard.vue
index 509e6b7f..cb47b60c 100644
--- a/client/components/cards/LazySeriesCard.vue
+++ b/client/components/cards/LazySeriesCard.vue
@@ -2,7 +2,7 @@
-
+
{{ books.length }}
diff --git a/client/components/covers/GroupCover.vue b/client/components/covers/GroupCover.vue
index 671616f4..a33fce0e 100644
--- a/client/components/covers/GroupCover.vue
+++ b/client/components/covers/GroupCover.vue
@@ -17,7 +17,6 @@ export default {
},
width: Number,
height: Number,
- groupTo: String,
bookCoverAspectRatio: Number
},
data() {