rollback: Disable PDF Downloads
This commit is contained in:
+4
-4
@@ -77,7 +77,7 @@ app.add_middleware(RequestCancelledMiddleware)
|
|||||||
|
|
||||||
|
|
||||||
class DownloadFormat(Enum):
|
class DownloadFormat(Enum):
|
||||||
pdf = "pdf"
|
# pdf = "pdf"
|
||||||
epub = "epub"
|
epub = "epub"
|
||||||
|
|
||||||
|
|
||||||
@@ -175,9 +175,9 @@ async def handle_download(
|
|||||||
case DownloadFormat.epub:
|
case DownloadFormat.epub:
|
||||||
book = EPUBGenerator(metadata, cover_data)
|
book = EPUBGenerator(metadata, cover_data)
|
||||||
media_type = "application/epub+zip"
|
media_type = "application/epub+zip"
|
||||||
case DownloadFormat.pdf:
|
# case DownloadFormat.pdf:
|
||||||
book = PDFGenerator(metadata, cover_data)
|
# book = PDFGenerator(metadata, cover_data)
|
||||||
media_type = "application/pdf"
|
# media_type = "application/pdf"
|
||||||
|
|
||||||
logger.info(f"Retrieved story metadata and cover ({story_id=})")
|
logger.info(f"Retrieved story metadata and cover ({story_id=})")
|
||||||
|
|
||||||
|
|||||||
@@ -116,8 +116,8 @@
|
|||||||
</p>
|
</p>
|
||||||
<ul class="pt-4 list list-inside text-xl">
|
<ul class="pt-4 list list-inside text-xl">
|
||||||
<!-- TODO: 'max-lg: hidden' to hide on screen sizes smaller than lg. I'll do this when I figure out how to make this show up _below_ the card on smaller screen sizes. -->
|
<!-- TODO: 'max-lg: hidden' to hide on screen sizes smaller than lg. I'll do this when I figure out how to make this show up _below_ the card on smaller screen sizes. -->
|
||||||
<li>12/24 - ⚡ Super-fast Downloads!</li>
|
<!-- <li>12/24 - ⚡ Super-fast Downloads!</li>
|
||||||
<li>12/24 - 📑 PDF Downloads!</li>
|
<li>12/24 - 📑 PDF Downloads!</li> -->
|
||||||
<li>12/24 - 📂 Improved Performance</li>
|
<li>12/24 - 📂 Improved Performance</li>
|
||||||
<li>11/24 - 🔗 Paste Links!</li>
|
<li>11/24 - 🔗 Paste Links!</li>
|
||||||
<li>11/24 - 📨 Send to Kindle Support!</li>
|
<li>11/24 - 📨 Send to Kindle Support!</li>
|
||||||
@@ -214,7 +214,7 @@
|
|||||||
on:click={() => (after_download_page = true)}>Download</a
|
on:click={() => (after_download_page = true)}>Download</a
|
||||||
>
|
>
|
||||||
|
|
||||||
<label class="swap w-fit label mt-2">
|
<!-- <label class="swap w-fit label mt-2">
|
||||||
<input type="checkbox" bind:checked={download_as_pdf} />
|
<input type="checkbox" bind:checked={download_as_pdf} />
|
||||||
<div class="swap-on">
|
<div class="swap-on">
|
||||||
Downloading as <span class=" underline text-bold">PDF</span> (Click)
|
Downloading as <span class=" underline text-bold">PDF</span> (Click)
|
||||||
@@ -222,7 +222,7 @@
|
|||||||
<div class="swap-off">
|
<div class="swap-off">
|
||||||
Downloading as <span class=" underline text-bold">EPUB</span> (Click)
|
Downloading as <span class=" underline text-bold">EPUB</span> (Click)
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label> -->
|
||||||
|
|
||||||
<label class="cursor-pointer label">
|
<label class="cursor-pointer label">
|
||||||
<span class="label-text"
|
<span class="label-text"
|
||||||
|
|||||||
Reference in New Issue
Block a user