mirror of
https://github.com/ajurna/cbwebreader.git
synced 2026-02-02 14:25:58 +00:00
This commit removes the frontend component ThePdfReader.vue and replaces its functionality with a backend implementation based on pymupdf. Also includes package updates, refactors PDF archive handling, and adjusts security settings to support development on localhost.
44 lines
903 B
Vue
44 lines
903 B
Vue
<template>
|
|
<the-breadcrumbs :selector="selector" />
|
|
<the-comic-reader :selector="selector" v-if="comic_loaded" :key="selector" />
|
|
</template>
|
|
|
|
<script>
|
|
import TheBreadcrumbs from "@/components/TheBreadcrumbs";
|
|
import TheComicReader from "@/components/TheComicReader";
|
|
import api from "@/api";
|
|
export default {
|
|
name: "ReadView",
|
|
components: {TheComicReader, TheBreadcrumbs},
|
|
props: {
|
|
selector: String
|
|
},
|
|
data () {
|
|
return {
|
|
comic_data: {},
|
|
comic_loaded: false,
|
|
}
|
|
},
|
|
methods: {
|
|
updateType() {
|
|
let comic_data_url = '/api/read/' + this.selector + '/type/'
|
|
api.get(comic_data_url)
|
|
.then(response => {
|
|
this.comic_loaded = true
|
|
})
|
|
.catch((error) => {console.log(error)})
|
|
}
|
|
},
|
|
mounted () {
|
|
this.updateType()
|
|
},
|
|
beforeUpdate() {
|
|
this.updateType()
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|