-
-
-
-
-
+
+
-
@@ -36,50 +18,17 @@ export default {
}
},
data() {
- return {
- showCoverBg: false
- }
+ return {}
},
computed: {
userToken() {
return this.$store.getters['user/getToken']
},
- authorId() {
- return this.author.id
- },
name() {
return this.author.name
- },
- imagePath() {
- return this.author.imagePath
- },
- updatedAt() {
- return this.author.updatedAt
- },
- imgSrc() {
- if (!this.imagePath) return null
- if (process.env.NODE_ENV !== 'production') {
- // Testing
- return `http://localhost:3333/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}`
- }
- return `/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}`
- }
- },
- methods: {
- imageLoaded() {
- if (this.$refs.img) {
- var { naturalWidth, naturalHeight } = this.$refs.img
- var aspectRatio = naturalHeight / naturalWidth
- var arDiff = Math.abs(aspectRatio - this.aspectRatio)
-
- if (arDiff > 0.15) {
- this.showCoverBg = true
- } else {
- this.showCoverBg = false
- }
- }
}
},
+ methods: {},
mounted() {}
}
diff --git a/client/components/covers/AuthorImage.vue b/client/components/covers/AuthorImage.vue
new file mode 100644
index 00000000..58363e87
--- /dev/null
+++ b/client/components/covers/AuthorImage.vue
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/client/components/modals/authors/EditModal.vue b/client/components/modals/authors/EditModal.vue
new file mode 100644
index 00000000..3d289ac5
--- /dev/null
+++ b/client/components/modals/authors/EditModal.vue
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/client/components/modals/EditModal.vue b/client/components/modals/item/EditModal.vue
similarity index 96%
rename from client/components/modals/EditModal.vue
rename to client/components/modals/item/EditModal.vue
index f6b06ce8..7ab2c38f 100644
--- a/client/components/modals/EditModal.vue
+++ b/client/components/modals/item/EditModal.vue
@@ -35,32 +35,32 @@ export default {
{
id: 'details',
title: 'Details',
- component: 'modals-edit-tabs-details'
+ component: 'modals-item-tabs-details'
},
{
id: 'cover',
title: 'Cover',
- component: 'modals-edit-tabs-cover'
+ component: 'modals-item-tabs-cover'
},
{
id: 'chapters',
title: 'Chapters',
- component: 'modals-edit-tabs-chapters'
+ component: 'modals-item-tabs-chapters'
},
{
id: 'files',
title: 'Files',
- component: 'modals-edit-tabs-files'
+ component: 'modals-item-tabs-files'
},
{
id: 'download',
title: 'Download',
- component: 'modals-edit-tabs-download'
+ component: 'modals-item-tabs-download'
},
{
id: 'match',
title: 'Match',
- component: 'modals-edit-tabs-match'
+ component: 'modals-item-tabs-match'
}
]
}
diff --git a/client/components/modals/edit-tabs/Authors.vue b/client/components/modals/item/tabs/Authors.vue
similarity index 100%
rename from client/components/modals/edit-tabs/Authors.vue
rename to client/components/modals/item/tabs/Authors.vue
diff --git a/client/components/modals/edit-tabs/Chapters.vue b/client/components/modals/item/tabs/Chapters.vue
similarity index 100%
rename from client/components/modals/edit-tabs/Chapters.vue
rename to client/components/modals/item/tabs/Chapters.vue
diff --git a/client/components/modals/edit-tabs/Cover.vue b/client/components/modals/item/tabs/Cover.vue
similarity index 100%
rename from client/components/modals/edit-tabs/Cover.vue
rename to client/components/modals/item/tabs/Cover.vue
diff --git a/client/components/modals/edit-tabs/Details.vue b/client/components/modals/item/tabs/Details.vue
similarity index 100%
rename from client/components/modals/edit-tabs/Details.vue
rename to client/components/modals/item/tabs/Details.vue
diff --git a/client/components/modals/edit-tabs/Download.vue b/client/components/modals/item/tabs/Download.vue
similarity index 100%
rename from client/components/modals/edit-tabs/Download.vue
rename to client/components/modals/item/tabs/Download.vue
diff --git a/client/components/modals/edit-tabs/Files.vue b/client/components/modals/item/tabs/Files.vue
similarity index 100%
rename from client/components/modals/edit-tabs/Files.vue
rename to client/components/modals/item/tabs/Files.vue
diff --git a/client/components/modals/edit-tabs/Match.vue b/client/components/modals/item/tabs/Match.vue
similarity index 100%
rename from client/components/modals/edit-tabs/Match.vue
rename to client/components/modals/item/tabs/Match.vue
diff --git a/client/components/modals/EditLibraryModal.vue b/client/components/modals/libraries/EditModal.vue
similarity index 100%
rename from client/components/modals/EditLibraryModal.vue
rename to client/components/modals/libraries/EditModal.vue
diff --git a/client/components/tables/LibrariesTable.vue b/client/components/tables/library/LibrariesTable.vue
similarity index 93%
rename from client/components/tables/LibrariesTable.vue
rename to client/components/tables/library/LibrariesTable.vue
index eaa2b01c..bd2eb2ce 100644
--- a/client/components/tables/LibrariesTable.vue
+++ b/client/components/tables/library/LibrariesTable.vue
@@ -9,11 +9,11 @@
-
+
*Force Re-Scan will scan all files again like a fresh scan. Audio file ID3 tags, OPF files, and text files will be probed/parsed and used for book details.
diff --git a/client/components/modals/libraries/LibraryItem.vue b/client/components/tables/library/LibraryItem.vue
similarity index 100%
rename from client/components/modals/libraries/LibraryItem.vue
rename to client/components/tables/library/LibraryItem.vue
diff --git a/client/layouts/default.vue b/client/layouts/default.vue
index 24355601..6e61b366 100644
--- a/client/layouts/default.vue
+++ b/client/layouts/default.vue
@@ -6,7 +6,7 @@
-
+
diff --git a/client/pages/config/libraries.vue b/client/pages/config/libraries.vue
index c7db6ed5..9808a76b 100644
--- a/client/pages/config/libraries.vue
+++ b/client/pages/config/libraries.vue
@@ -1,6 +1,6 @@
diff --git a/client/pages/library/_library/authors/index.vue b/client/pages/library/_library/authors/index.vue
index 9a35af81..686702e1 100644
--- a/client/pages/library/_library/authors/index.vue
+++ b/client/pages/library/_library/authors/index.vue
@@ -8,13 +8,14 @@
-
+