From a8736b0edb99ad433c8a7795ea1f31a8751c2f41 Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 31 Oct 2022 00:20:38 +0100 Subject: viewer/epub: add EPUB item handler This adds a paginated ePub viewer using epub.js. --- .../views/item_handlers/async/AsyncEpubViewer.vue | 149 +++++++++++++++++++++ viewer/src/views/item_handlers/async/index.ts | 23 ++++ 2 files changed, 172 insertions(+) create mode 100644 viewer/src/views/item_handlers/async/AsyncEpubViewer.vue create mode 100644 viewer/src/views/item_handlers/async/index.ts (limited to 'viewer/src/views/item_handlers') diff --git a/viewer/src/views/item_handlers/async/AsyncEpubViewer.vue b/viewer/src/views/item_handlers/async/AsyncEpubViewer.vue new file mode 100644 index 0000000..712a844 --- /dev/null +++ b/viewer/src/views/item_handlers/async/AsyncEpubViewer.vue @@ -0,0 +1,149 @@ + + + + + + + diff --git a/viewer/src/views/item_handlers/async/index.ts b/viewer/src/views/item_handlers/async/index.ts new file mode 100644 index 0000000..d4ca996 --- /dev/null +++ b/viewer/src/views/item_handlers/async/index.ts @@ -0,0 +1,23 @@ +/* ldgallery - A static generator which turns a collection of tagged +-- pictures into a searchable web gallery. +-- +-- Copyright (C) 2022 Pacien TRAN-GIRARD +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. +-- +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see . +*/ + +import { defineAsyncComponent } from 'vue'; + +export const EpubViewer = defineAsyncComponent(() => + import(/* webpackChunkName: "epub-viewer" */ './AsyncEpubViewer.vue')); -- cgit v1.2.3