From 47e24e2241acdfd56ed9848c2f9bc302403b37cd Mon Sep 17 00:00:00 2001 From: "aditya.chandel" <8075870+adityachandelgit@users.noreply.github.com> Date: Mon, 1 Sep 2025 15:38:28 -0600 Subject: [PATCH] Add "OPDS Server Enabled" button to OPDS v2 settings --- .../src/app/core/model/app-settings.model.ts | 1 - .../koreader-settings-component.scss | 6 +- .../opds-settings-v2/opds-settings-v2.html | 283 +++++++++-------- .../opds-settings-v2/opds-settings-v2.scss | 288 +++++++++++------- .../opds-settings-v2/opds-settings-v2.ts | 53 +++- .../opds-settings.component.html | 115 ++++--- .../opds-settings.component.scss | 129 +++++--- .../src/app/settings/settings.component.html | 2 +- 8 files changed, 552 insertions(+), 325 deletions(-) diff --git a/booklore-ui/src/app/core/model/app-settings.model.ts b/booklore-ui/src/app/core/model/app-settings.model.ts index 288989bc2..809626925 100644 --- a/booklore-ui/src/app/core/model/app-settings.model.ts +++ b/booklore-ui/src/app/core/model/app-settings.model.ts @@ -125,7 +125,6 @@ export interface AppSettings { export enum AppSettingKey { QUICK_BOOK_MATCH = 'QUICK_BOOK_MATCH', AUTO_BOOK_SEARCH = 'AUTO_BOOK_SEARCH', - COVER_IMAGE_RESOLUTION = 'COVER_IMAGE_RESOLUTION', SIMILAR_BOOK_RECOMMENDATION = 'SIMILAR_BOOK_RECOMMENDATION', UPLOAD_FILE_PATTERN = 'UPLOAD_FILE_PATTERN', OPDS_SERVER_ENABLED = 'OPDS_SERVER_ENABLED', diff --git a/booklore-ui/src/app/settings/device-settings-component/koreader-settings-component/koreader-settings-component.scss b/booklore-ui/src/app/settings/device-settings-component/koreader-settings-component/koreader-settings-component.scss index 5957b33f9..53666979b 100644 --- a/booklore-ui/src/app/settings/device-settings-component/koreader-settings-component/koreader-settings-component.scss +++ b/booklore-ui/src/app/settings/device-settings-component/koreader-settings-component/koreader-settings-component.scss @@ -89,7 +89,7 @@ border: 1px solid var(--p-content-border-color); border-radius: 8px; background: var(--p-content-background); - padding: 1rem 2rem 2rem 2rem; + padding: 1rem 1.5rem 1.5rem 1.5rem; margin-left: 1rem; margin-right: 1rem; display: flex; @@ -107,7 +107,7 @@ display: flex; align-items: flex-start; gap: 2rem; - padding: 0.75rem 0; + padding: 0.5rem 0; &:last-child { border-bottom: none; @@ -117,7 +117,7 @@ @media (max-width: 768px) { flex-direction: column; gap: 1rem; - padding: 0.75rem 0; + padding: 0.5rem 0; } } diff --git a/booklore-ui/src/app/settings/opds-settings-v2/opds-settings-v2.html b/booklore-ui/src/app/settings/opds-settings-v2/opds-settings-v2.html index cda5db39f..a73a91354 100644 --- a/booklore-ui/src/app/settings/opds-settings-v2/opds-settings-v2.html +++ b/booklore-ui/src/app/settings/opds-settings-v2/opds-settings-v2.html @@ -2,7 +2,7 @@
Manage your OPDS credentials and control how your book collection is shared with reading apps. @@ -12,134 +12,177 @@ @if (hasPermission) {
+ + Enable or disable the OPDS server to control access to your book collection through reading apps. +
++ + Use this URL to connect your reading apps to your OPDS catalog. +
+Legacy OPDS server settings for managing your book collection access. - -
Deprecated:
- OPDS (v1) support will be removed in a future release. + OPDS v1 support will be removed in a future release. Please migrate to OPDS v2 for continued support and improvements.
+ + Enable or disable the OPDS server to control access to your book collection through reading apps. +
++ + Use this URL to connect your reading apps to your OPDS catalog. +
+