Adds API and architecture documentation for the book reading feature
No files matched your search
@@ -28,6 +28,7 @@ For those with technical curiosities, here are some goodies to browse through:
|
||||
3. [3.1 Component Web Client diagram](./docs/technical/architecture/3.1%20component-web-client-diagram.svg)
|
||||
4. [3.2 Component API Server diagram](./docs/technical/architecture/3.2%20component-api-server-diagram.svg)
|
||||
5. [4.1 Code media library scanning diagram](./docs/technical/architecture/4.1%20code-media-library-scanning-diagram.svg)
|
||||
6. [4.2 Code book reading diagram](./docs/technical/architecture/4.2%20code-book-reading-diagram.svg)
|
||||
- Also for Software Architects, you might want to take a look at the Architecture Decision Log, where you may find important stories from the past of Lumina's development, like [this one](./docs/technical/architecture/architecture-knowledge-management/architecture-decision-log/architecture-decision-record-0001.md), and others like it.
|
||||
|
||||
## Telemetry and Observability
|
||||
|
||||
@@ -14,6 +14,18 @@
|
||||
- [Get Books Lite](#get-books-lite)
|
||||
- [Get Books Lite Request](#get-books-lite-request)
|
||||
- [Get Books Lite Response](#get-books-lite-response)
|
||||
- [Get Reading Availability](#get-reading-availability)
|
||||
- [Get Reading Availability Request](#get-reading-availability-request)
|
||||
- [Get Reading Availability Response](#get-reading-availability-response)
|
||||
- [Get Reading Manifest](#get-reading-manifest)
|
||||
- [Get Reading Manifest Request](#get-reading-manifest-request)
|
||||
- [Get Reading Manifest Response](#get-reading-manifest-response)
|
||||
- [Get Reading Resource](#get-reading-resource)
|
||||
- [Get Reading Resource Request](#get-reading-resource-request)
|
||||
- [Get Reading Resource Response](#get-reading-resource-response)
|
||||
- [Get Reading Section](#get-reading-section)
|
||||
- [Get Reading Section Request](#get-reading-section-request)
|
||||
- [Get Reading Section Response](#get-reading-section-response)
|
||||
|
||||
## Book
|
||||
|
||||
@@ -393,3 +405,121 @@ GET api/v1/books/lite?libraryId=3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a¤tPage
|
||||
"numberOfPages": 1
|
||||
}
|
||||
```
|
||||
|
||||
### Get Reading Availability
|
||||
|
||||
#### Get Reading Availability Request
|
||||
|
||||
```js
|
||||
GET api/v1/books/{bookId}/reading/availability
|
||||
```
|
||||
|
||||
Reports whether the book identified by `bookId` can be opened for reading: the book reader that supports the format of the book is resolved and its enablement for the media library of the book is checked, without extracting the book. When the book cannot be read, the response carries the code of the error preventing it, so the client can tell a missing book reader apart from a disabled one.
|
||||
|
||||
#### Get Reading Availability Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"bookId": "32b336e8-dafc-4a08-9dec-9454e66dd55d",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"isAvailable": true,
|
||||
"errorCode": null
|
||||
}
|
||||
```
|
||||
|
||||
### Get Reading Manifest
|
||||
|
||||
#### Get Reading Manifest Request
|
||||
|
||||
```js
|
||||
GET api/v1/books/{bookId}/reading/manifest
|
||||
```
|
||||
|
||||
Opens the book identified by `bookId` for reading by extracting its contents through the book reader that is enabled for its media library, and returns the reading manifest: the title and author of the book, its hierarchical table of contents, its ordered spine of reading sections, the keys of its resources, and whether it has extractable text content. A scanned book, whose pages are only images, has no text content and is displayed as page images.
|
||||
|
||||
#### Get Reading Manifest Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"title": "The Fellowship of the Ring",
|
||||
"author": "J.R.R. Tolkien",
|
||||
"coverResourceKey": "0f4d6e2b1c9a4f3e8d7c6b5a4f3e2d1c",
|
||||
"tableOfContents": [
|
||||
{
|
||||
"label": "Chapter One",
|
||||
"locationRef": "chapter1",
|
||||
"children": [
|
||||
{
|
||||
"label": "Part One",
|
||||
"locationRef": "chapter1",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"spine": [
|
||||
{
|
||||
"locationRef": "chapter1",
|
||||
"title": "Chapter One"
|
||||
},
|
||||
{
|
||||
"locationRef": "chapter2",
|
||||
"title": "Chapter Two"
|
||||
}
|
||||
],
|
||||
"resourceKeys": [
|
||||
"0f4d6e2b1c9a4f3e8d7c6b5a4f3e2d1c"
|
||||
],
|
||||
"hasTextContent": true
|
||||
}
|
||||
```
|
||||
|
||||
### Get Reading Section
|
||||
|
||||
#### Get Reading Section Request
|
||||
|
||||
```js
|
||||
GET api/v1/books/{bookId}/reading/sections/{locationRef}
|
||||
```
|
||||
|
||||
Returns the reading section identified by `locationRef` of the book identified by `bookId`. The section content is sanitized by the host before it is served, and its references to the resources of the book are resolved by the client through the resource endpoint. The `locationRef` of a section is taken from the spine of the reading manifest of the book.
|
||||
|
||||
#### Get Reading Section Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"locationRef": "chapter1",
|
||||
"title": "Chapter One",
|
||||
"contentHtml": "<section><h1>Chapter One</h1><p>First paragraph.</p></section>"
|
||||
}
|
||||
```
|
||||
|
||||
### Get Reading Resource
|
||||
|
||||
#### Get Reading Resource Request
|
||||
|
||||
```js
|
||||
GET api/v1/books/{bookId}/reading/resources/{resourceKey}
|
||||
```
|
||||
|
||||
Returns the binary resource identified by `resourceKey` of the book identified by `bookId` (for example an image, a font, or a stylesheet of the book, or a page image of a scanned PDF that is rendered on demand). The `resourceKey` of a resource is taken from the reading manifest of the book.
|
||||
|
||||
#### Get Reading Resource Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
The response is the raw bytes of the resource, served with the `Content-Type` of the resource and with `X-Content-Type-Options: nosniff`. A resource whose declared media type could be rendered as an active document (for example an SVG) is served as an opaque binary download instead.
|
||||
@@ -23,6 +23,12 @@
|
||||
- [Reorder Library Metadata Providers](#reorder-library-metadata-providers)
|
||||
- [Reorder Library Metadata Providers Request](#reorder-library-metadata-providers-request)
|
||||
- [Reorder Library Metadata Providers Response](#reorder-library-metadata-providers-response)
|
||||
- [Get Library Book Readers](#get-library-book-readers)
|
||||
- [Get Library Book Readers Request](#get-library-book-readers-request)
|
||||
- [Get Library Book Readers Response](#get-library-book-readers-response)
|
||||
- [Set Library Book Reader Enabled](#set-library-book-reader-enabled)
|
||||
- [Set Library Book Reader Enabled Request](#set-library-book-reader-enabled-request)
|
||||
- [Set Library Book Reader Enabled Response](#set-library-book-reader-enabled-response)
|
||||
|
||||
## Plugins
|
||||
|
||||
@@ -207,3 +213,62 @@ PUT api/v1/libraries/{libraryId}/metadata-providers/reorder
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
### Get Library Book Readers
|
||||
|
||||
#### Get Library Book Readers Request
|
||||
|
||||
```js
|
||||
GET api/v1/libraries/{libraryId}/book-readers
|
||||
```
|
||||
|
||||
Returns the book readers available for the media library, one entry per plugin that provides a book reader, along with whether the reader is enabled for the media library. A book can be opened for reading only through a book reader that is enabled for its media library.
|
||||
|
||||
#### Get Library Book Readers Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
|
||||
"name": "EPUB Reader",
|
||||
"supportedExtensions": [
|
||||
".epub"
|
||||
],
|
||||
"isEnabled": true
|
||||
},
|
||||
{
|
||||
"pluginId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
||||
"name": "PDF Reader",
|
||||
"supportedExtensions": [
|
||||
".pdf"
|
||||
],
|
||||
"isEnabled": false
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### Set Library Book Reader Enabled
|
||||
|
||||
#### Set Library Book Reader Enabled Request
|
||||
|
||||
```js
|
||||
PUT api/v1/libraries/{libraryId}/book-readers/{pluginId}/enabled
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
|
||||
"isEnabled": true
|
||||
}
|
||||
```
|
||||
|
||||
#### Set Library Book Reader Enabled Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
@@ -33,7 +33,10 @@ Returns the settings of the currently authenticated user.
|
||||
"isPaginationEnabled": true,
|
||||
"itemsPerPage": 50,
|
||||
"ignoreThePrefixForAlphaPicker": true,
|
||||
"isThemeCachingEnabled": true
|
||||
"isThemeCachingEnabled": true,
|
||||
"shouldAggregateMetadataWhenMissing": true,
|
||||
"shouldRenderPdfAsImages": false,
|
||||
"shouldPreserveBookStyles": true
|
||||
}
|
||||
```
|
||||
|
||||
@@ -52,7 +55,10 @@ Updates the settings of the currently authenticated user.
|
||||
"isPaginationEnabled": true,
|
||||
"itemsPerPage": 50,
|
||||
"ignoreThePrefixForAlphaPicker": true,
|
||||
"isThemeCachingEnabled": true
|
||||
"isThemeCachingEnabled": true,
|
||||
"shouldAggregateMetadataWhenMissing": true,
|
||||
"shouldRenderPdfAsImages": false,
|
||||
"shouldPreserveBookStyles": true
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
<?xml version="1.0" encoding="us-ascii" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="836px" preserveAspectRatio="none" style="width:466px;height:836px;background:#FFFFFF;" version="1.1" viewBox="0 0 466 836" width="466px" zoomAndPan="magnify"><defs/><g><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="412" x="20.25" y="24.5332">System Context diagram for Lumina Media Library Manager</text><!--entity user--><g id="elem_user"><rect fill="#08427B" height="158.5625" rx="2.5" ry="2.5" style="stroke:#073B6F;stroke-width:0.5;" width="217" x="7" y="45.6094"/><image height="48" width="48" x="91.5" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABxUlEQVR42u2YPUoEQRCFJ/QIHsErmIrJJh5ADyAYm20kmwhqaCJiqIlgYGKyoKmskZEIRhpqYGBa8gkLsjAz/VPV3cN2QcHC0Gy/rurX71WzsjFuhpxNBbCQo/0LOb99lOnsVZ5e3v/y+v5Zxmd3srZzfFgsgL2TG/n6/pG+ANj67umsGACrW5NNTtk3qEh2AGze5dTb4ujyQbICCDn5xaD1sgCgBbSCSiYFwB+KYsBaSQFQdu1ICgAq1A7ej2QAYphHm1aDAIhBhFLqcgJ4+/hUBxD6HgQBQJwN+hJr0yikkPwl1mSiGE20nFJC80HbPriSrHI6hpE0PIGKKwqpROzJq1tKNuRSDSg4pufNTT1+l9Zgo1SGRC5DvZobr2OVQQNgvkPP0yo8QqTPqIS183W0FjIitL28H6+ui8q3eb+zKUCR/GZtH1vx3VcTOU/bLExMFxDXiiSVDD5BNV1GkcnNu69K7atEJ59LAUE7BQGwmDxYCL6iT///ffACABWWFm0XOplptzL9ycYmVrbTfHCrFajbQQNoo9MKoALQvgNW43Or8XuRIs5H1LVqIXi3FBnR5fZ6B1eYGcRUjnSxqXUqkTt/AThkzS9XiLScAAAAAElFTkSuQmCC" y="55.6094"/><text fill="#FFFFFF" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="45" x="73" y="120.2188">Home</text><text fill="#FFFFFF" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="4" x="118" y="120.2188"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="36" x="122" y="120.2188">User</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="113.5" y="138.2676"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="9" x="17" y="155.877">A</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="26" y="155.877"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="44" x="30" y="155.877">person</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="74" y="155.877"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="25" x="78" y="155.877">who</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="103" y="155.877"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="36" x="107" y="155.877">wants</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="143" y="155.877"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="12" x="147" y="155.877">to</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="159" y="155.877"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="51" x="163" y="155.877">manage</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="24" x="34.5" y="173.4863">and</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="58.5" y="173.4863"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="43" x="62.5" y="173.4863">stream</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="105.5" y="173.4863"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="28" x="109.5" y="173.4863">their</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="137.5" y="173.4863"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="55" x="141.5" y="173.4863">personal</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="38" x="65" y="191.0957">media</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="103" y="191.0957"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="59" x="107" y="191.0957">collection</text></g><!--entity admin--><g id="elem_admin"><rect fill="#08427B" height="140.9531" rx="2.5" ry="2.5" style="stroke:#073B6F;stroke-width:0.5;" widtLine truncated
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:541px;height:841px;background:#FFFFFF;" width="541px" height="841px" viewBox="0 0 541 841" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="68.996" y="24.533" fill="#000" font-size="14" textLength="396.758" font-weight="700">System Context diagram for Lumina Media Library Manager</text></g><!--entity user--><g class="entity" data-qualified-name="user" id="ent0001" data-source-line="178"><rect x="7" y="45.609" width="216.116" height="162.255" fill="#08427B" style="stroke:#073B6F;stroke-width:0.5;"/><image width="52" height="52" x="89.212" y="55.609" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAGWElEQVR4Xu2YC0xTVxjHdWabBXQ63eZ0W9S5GeYwM9PNmDgNIKIwJejAFzIVx5xOMep0AkWQN/ISHxVUUEEUQRGhVMrLElEBgSsw3iBwpRRKoRQuD6Fn57iwmHMp3EJDi/Gf/NLmy73n/L/ennO+746bqG8/7k2CFhjr0AKqYM4vnjs2OV0nfCLSiTBuDhGVShCRyfmE3w0BYetzm9Dd5nt8khF7On6fKqAFRsISm6DDHtdS0wT5VZVltU1AJJGBVhkFZFQXaOvoAo0t7aCqvhlkl9SRwXFPHhodvHhtuonzInyckUALDIcpxk5zf/OOcU3ILK6uF0tBb18fGEqStg6Q9U+d7BiHK5i/xccQH3O40ALKgpI5xkkMIirqGzq7X+K+h1QFKQZuV1MEetv9jfGxhwMtoCy7vaK9i2saRb19ctwrY6G/IftiUvo8S+81+PjKQgsow4+2Z/ZkFtYIu3qUfzK4CqsawG6vGI6OkeM0fB5loAUYMn7yavbMywnZQml7J+5t2IpOe5a1aGegxQDzMYYWYALLwOHd73YE2MNdTIqbGomeCyXgyNmEEHw+ZaAFmKCzypFlH8yjpO1duKcRKzwpL36aifMCfE6m0AJM+GC1Eystt4Lq7unF/YxY/OxysGzPuRh8TqbQAkyAWzWroVlG9cmHv7MpUk4JCSzZEaOb0NQ1J1hUVw+Fm1GFiAoh2OF+621C/dACTEB/OVirUUxKHGWVWfAc/Hw0bHQTgmcQ646giBpOqTOUkrLKwFLbs6ObENq2j57nUqo8VJHQrnkxPmv0t214sE6Yv9lnfeWLZnHfCGo4XCU1jWCvb+zoH6z9nI99RLbIVPeUbqYQWXrWfqNf+vSDitP03Eoh3PFwb0orv7we/Ooepbbi9H+sXG94QzOinpfDrxpQd/vXOW767I2e6m0fEKjB2+cXy35cWFPd0dmNex1SBVVCcPwCT6C79ZRmNHj9bHWJPHL7QWH184YW0M3gaYla2sGDvKpnsHWP/2KDh+a04K+z0Nr/sP0FXlrSk7Ji2LB11opaQFNrO2hpo4BESoF6cRsoq2sCj4pqivyjMgSwBbGAR8AUfJyRQAuogllmbutW2YXwDp2JJ05HPyQu3csigu8+IZwv84ktzpHEZ+buxlqGDlr4faqAFhjr0AJMQV2rtqEjC1UNk4z+Q9vQYSJL334Cfq0itAwc3u+/H31qQ2DsPTjGePxaptACTEDJfL3Zm21uf7XxYNA9yiU0mXK/mkpZsCNK4ALfhl+vCAO7YB4qodC9sPWmNjldpxbbBN35cO0JPfxaptACgzHTzE33GIdLPi6qJYXiNqlYSslbYaWA3orKIHDh9xbXNEqi0wrI48E80oIdTq7YxyldvOs0d4lNEN/QLoT8MyCWDOflknBzIJtaOrpQPYjuRZ/NcPMQSdo7CyqFooCoDHKp7Rk+7mEoaIGB+HS9q4G1WxSRXVJXil7vDtZ69/b2ARnV/WpbrhW1gqp6SV8FKaYgnfA7EDa3vfoBBqsBX8IxJDC5Z5UNnX43BA8+MnX5Afp4B/c1ELQAzjfbfE1OhqUUlpNiRq94VSk0H/wBeiL5eTlfbfb5A65RbdwfDi3wOvO3+Jg5h/KfovNEXZLL5eiJyu9mFJXNs/RaCTeNibhPRgnNWOeqfyAw7j56Mpog9HbWKzwt9XNz9zm4V0YJGR+65MDPKmvDB1an6hpbwQb7a5dhAzgX9ztoQh+buixzvZKSIJZ24GOqXVEpBPjWym8l7nnQhJbv5XgmZJao9DWvqoTqQpMjob/Dg3gq7lthQgcC4kLKYRGpqdofcFcAj5KluG+FCfnfzAhBZ4mm6uztRwAeJ+a47wETQttiKDcnDB9EkxSTXgBgicQsoWlrTywMv5/LxQfRJAmIagDX+ZuTUG4pCfT3B79NSGP1xiWUAdfQT0zXEKxodTixj68M1iKoWxH8PLBoZyCzhBBWJ2+GPC19gY+jEero6gG23jFhn6w7qYv7VpjQ7I0ey//mJCaW1mpWtdAMa8ugmIf1C6x8TbUMHVi4b4UJIXS3+q7Y6X7LA3aMgiuJT0Fkcr7auJ6cLz93J/OFXWCci952v12TjdgzcL9DJoRABeAsMzfThdYBXvBkVhvf2wR5fmnptV/b0FEH94hDC4x1aIGxzr9XBgujsWOPcQAAAABJRU5ErkJggg=="/><text x="72.82" y="123.911" fill="#FFF" font-size="16" textLength="44.453" font-weight="700">Home</text><text x="117.273" y="123.911" fill="#FFF" font-size="16" font-weight="700"> </text><text x="121.718" y="123.911" fill="#FFF" font-size="16" textLength="35.578" font-weight="700">User</text><text x="113.113" y="141.96" fill="#FFF" font-size="14"> </text><text x="17" y="159.569" fill="#FFF" font-size="14">A</text><text x="26.338" y="159.569" fill="#FFF" font-size="14"> </text><text x="30.228" y="159.569" fill="#FFF" font-size="14" textLength="42.807">person</text><text x="73.034" y="159.569" fill="#FFF" font-size="14"> </text><text x="76.924" y="159.569" fill="#FFF" font-size="14" textLength="25.683">who</text><text x="102.606" y="159.569" fill="#FFF" font-size="14"> </text><text x="106.496" y="159.569" fill="#FFF" font-size="14" textLength="36.572">wants</text><text x="143.068" y="159.569" fill="#FFF" font-size="14"> </text><text x="146.958" y="159.569" fill="#FFF" font-size="14" textLength="11.676">to</text><text x="158.634" y="159.569" fill="#FFF" font-size="14"> </text><text x="162.523" y="159.569" fill="#FFF" font-size="14" textLength="50.593">manage</text><text x="35.683" y="177.179" fill="#FFF" font-size="14" textLength="23.358">and</text><text x="59.041" y="177.179" fill="#FFF" font-size="14"> </text><text x="62.931" y="177.179" fill="#FFF" font-size="14" textLength="42.786">stream</text><text x="105.717" y="177.179" fill="#FFF" font-size="14"> </text><text x="109.606" y="177.179" fill="#FFF" font-size="14" textLength="27.234">their</text><text x="136.841" y="177.179" fill="#FFF" font-size="14"> </text><text x="140.73" y="177.179" fill="#FFF" font-size="14" textLength="53.703">personal</text><text x="64.865" y="194.788" fill="#FFF" font-size="14" textLength="38.131">media</text><text x="102.996" y="194.788" fill="#FFF"Line truncated
|
||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 21 KiB |
@@ -1 +1 @@
|
||||
<?xml version="1.0" encoding="us-ascii" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="1257px" preserveAspectRatio="none" style="width:735px;height:1257px;background:#FFFFFF;" version="1.1" viewBox="0 0 735 1257" width="735px" zoomAndPan="magnify"><defs/><g><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="231" x="245" y="24.5332">Container diagram for Lumina 1.1</text><!--cluster c1--><g id="cluster_c1"><rect fill="none" height="751.5" rx="2.5" ry="2.5" style="stroke:#444444;stroke-width:1.0;stroke-dasharray:7.0,7.0;" width="483" x="7" y="297.6094"/><text fill="#444444" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="83" x="207" y="316.2188">Lumina 1.1</text><text fill="#444444" font-family="sans-serif" font-size="12" font-weight="bold" lengthAdjust="spacing" textLength="51" x="223" y="332.1914">[System]</text></g><!--entity webapp--><g id="elem_webapp"><rect fill="#438DD5" height="178.4844" rx="2.5" ry="2.5" style="stroke:#3C7FC0;stroke-width:0.5;" width="255" x="201.5" y="351.6094"/><text fill="#FFFFFF" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="34" x="230" y="378.2188">Web</text><text fill="#FFFFFF" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="4" x="264" y="378.2188"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="86" x="268" y="378.2188">Application</text><text fill="#FFFFFF" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="4" x="354" y="378.2188"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="44" x="358" y="378.2188">Client</text><text fill="#FFFFFF" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="4" x="402" y="378.2188"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="22" x="406" y="378.2188">2.1</text><text fill="#FFFFFF" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="54" x="271" y="394.1914">[ASP.NET</text><text fill="#FFFFFF" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="3" x="325" y="394.1914"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="27" x="328" y="394.1914">Core</text><text fill="#FFFFFF" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="3" x="355" y="394.1914"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="29" x="358" y="394.1914">MVC]</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="327" y="411.3613"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="51" x="231" y="428.9707">Delivers</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="282" y="428.9707"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="103" x="286" y="428.9707">server-rendered</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="389" y="428.9707"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="34" x="393" y="428.9707">views</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="24" x="255" y="446.5801">with</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="279" y="446.5801"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="52" x="283" y="446.5801">dynamic</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="335" y="446.5801"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="64" x="339" y="446.5801">client-side</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="75" x="260" y="464.1895">functionality</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="335" y="464.1895"> </text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="17" x="339" y="464.1895">for</text><text fill="#FFFFFF" font-family="sans-serif" font-size="14" lengthAdjust="sLine truncated
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:984px;height:1323px;background:#FFFFFF;" width="984px" height="1323px" viewBox="0 0 984 1323" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="377.219" y="24.533" fill="#000" font-size="14" textLength="223.262" font-weight="700">Container diagram for Lumina 1.1</text></g><!--cluster c1--><g class="cluster" data-qualified-name="c1" id="ent0003" data-source-line="1666"><rect x="7" y="300.609" width="726" height="812.5" fill="none" style="stroke:#444;stroke-width:1;stroke-dasharray:7,7;"/><text x="328.211" y="319.219" fill="#444" font-size="16" textLength="83.578" font-weight="700">Lumina 1.1</text><text x="345.323" y="335.191" fill="#444" font-size="12" textLength="49.354" font-weight="700">[system]</text></g><!--entity webapp--><g class="entity" data-qualified-name="c1.webapp" id="ent0004" data-source-line="71"><rect x="343.5" y="354.609" width="252.996" height="198.609" fill="#438DD5" style="stroke:#3C7FC0;stroke-width:0.5;"/><text x="382.889" y="381.219" fill="#FFF" font-size="16" textLength="33.773" font-weight="700">Web</text><text x="416.662" y="381.219" fill="#FFF" font-size="16" font-weight="700"> </text><text x="421.107" y="381.219" fill="#FFF" font-size="16" textLength="87.109" font-weight="700">Application</text><text x="508.217" y="381.219" fill="#FFF" font-size="16" font-weight="700"> </text><text x="512.662" y="381.219" fill="#FFF" font-size="16" textLength="44.445" font-weight="700">Client</text><text x="458.877" y="401.344" fill="#FFF" font-size="16" textLength="22.242" font-weight="700">2.1</text><text x="411.319" y="417.316" fill="#FFF" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="465.999" y="417.316" fill="#FFF" font-size="12" font-style="italic"> </text><text x="469.333" y="417.316" fill="#FFF" font-size="12" textLength="26.01" font-style="italic">Core</text><text x="495.343" y="417.316" fill="#FFF" font-size="12" font-style="italic"> </text><text x="498.677" y="417.316" fill="#FFF" font-size="12" textLength="30" font-style="italic">MVC]</text><text x="468.053" y="434.486" fill="#FFF" font-size="14"> </text><text x="373.522" y="452.096" fill="#FFF" font-size="14" textLength="50.565">Delivers</text><text x="424.088" y="452.096" fill="#FFF" font-size="14"> </text><text x="427.978" y="452.096" fill="#FFF" font-size="14" textLength="99.6">server-rendered</text><text x="527.577" y="452.096" fill="#FFF" font-size="14"> </text><text x="531.467" y="452.096" fill="#FFF" font-size="14" textLength="35.007">views</text><text x="396.081" y="469.705" fill="#FFF" font-size="14" textLength="24.896">with</text><text x="420.978" y="469.705" fill="#FFF" font-size="14"> </text><text x="424.867" y="469.705" fill="#FFF" font-size="14" textLength="52.131">dynamic</text><text x="476.998" y="469.705" fill="#FFF" font-size="14"> </text><text x="480.888" y="469.705" fill="#FFF" font-size="14" textLength="63.027">client-side</text><text x="401.909" y="487.314" fill="#FFF" font-size="14" textLength="73.931">functionality</text><text x="475.839" y="487.314" fill="#FFF" font-size="14"> </text><text x="479.729" y="487.314" fill="#FFF" font-size="14" textLength="16.338">for</text><text x="496.067" y="487.314" fill="#FFF" font-size="14"> </text><text x="499.957" y="487.314" fill="#FFF" font-size="14" textLength="38.131">media</text><text x="385.943" y="504.924" fill="#FFF" font-size="14" textLength="81.717">management</text><text x="467.66" y="504.924" fill="#FFF" font-size="14"> </text><text x="471.55" y="504.924" fill="#FFF" font-size="14" textLength="23.358">and</text><text x="494.908" y="504.924" fill="#FFF" font-size="14"> </text><text x="498.798" y="504.924" fill="#FFF" font-size="14" textLength="55.255">playback</text><text x="423.127" y="522.533" fill="#FFF" font-size="14" textLength="52.931">[detailed</text><text x="476.058" y="522.533" fill="#FFF" font-size="14"> </text><text x="479.948" y="522.533" fill="#FFF" font-size="14" textLength="10.896">in</text><text x="490.844" y="522.533" fill="#FFF" font-size="14"> </text><text x="494.734" y="522.533" fill="#FFF" font-size="14" textLength="22.135">'3.1</text><text x="353.5" y="540.143" fill="#FFF" font-size="14" textLength="232.996">component-web-client-diagram.puml']</text></g><!--entity api--><g class="entity" data-qualified-name="c1.api" id="ent0005" data-source-line="71"><rect x="344" y="645.609" width="252.21" height="213.703" fill="#438DD5" style="stroke:#3C7FC0;stroke-width:0.5;"/><text x="416.292" y="672.219" fill="#FFF" font-size="16" textLength="26.672" font-weight="700">API</text><text x="442.964" y="672.219" fill="#FFF" font-size="16" font-weight="700"> </text><text x="447.41" y="672.219" fill="#FFF" font-size="16" tLine truncated
|
||||
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 39 KiB |
@@ -1 +1 @@
|
||||
<?xml version="1.0" encoding="us-ascii" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="1076px" preserveAspectRatio="none" style="width:968px;height:1076px;background:#FFFFFF;" version="1.1" viewBox="0 0 968 1076" width="968px" zoomAndPan="magnify"><defs/><g><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="405" x="274.5" y="24.5332">Component diagram for Lumina Web Application Client 2.1</text><!--cluster wb--><g id="cluster_wb"><rect fill="none" height="566" rx="2.5" ry="2.5" style="stroke:#444444;stroke-width:1.0;stroke-dasharray:7.0,7.0;" width="955" x="7" y="45.6094"/><text fill="#444444" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="150" x="409.5" y="64.2188">Web Application 2.1</text><text fill="#444444" font-family="sans-serif" font-size="12" font-weight="bold" lengthAdjust="spacing" textLength="63" x="453" y="80.1914">[Container]</text></g><!--entity fileSystem--><g id="elem_fileSystem"><rect fill="#85BBF0" height="125.6563" rx="2.5" ry="2.5" style="stroke:#78A8D8;stroke-width:0.5;" width="212" x="23" y="284.6094"/><text fill="#000000" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="27" x="34" y="311.2188">File</text><text fill="#000000" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="4" x="61" y="311.2188"> </text><text fill="#000000" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="57" x="65" y="311.2188">System</text><text fill="#000000" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="4" x="122" y="311.2188"> </text><text fill="#000000" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="98" x="126" y="311.2188">Management</text><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="54" x="54.5" y="327.1914">[ASP.NET</text><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="3" x="108.5" y="327.1914"> </text><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="26" x="111.5" y="327.1914">MVC</text><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="3" x="137.5" y="327.1914"> </text><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="63" x="140.5" y="327.1914">Controllers]</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="127" y="344.3613"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="51" x="33" y="361.9707">Handles</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="84" y="361.9707"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="18" x="88" y="361.9707">file</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="106" y="361.9707"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="44" x="110" y="361.9707">system</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="154" y="361.9707"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="67" x="158" y="361.9707">operations</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="56" x="41" y="379.5801">including</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="97" y="379.5801"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="42" x="101" y="379.5801">drives,</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="143" y="379.5801"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="70" x="147" y="379.5801">directories,</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="24" x="72.5" y="397.1895">and</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="96.5" y="397.1895"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="25" x="100.5" y="397.1895">files</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdLine truncated
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:1237px;height:1166px;background:#FFFFFF;" width="1237px" height="1166px" viewBox="0 0 1237 1166" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="418.99" y="24.533" fill="#000" font-size="14" textLength="392.021" font-weight="700">Component diagram for Lumina Web Application Client 2.1</text></g><!--cluster wb--><g class="cluster" data-qualified-name="wb" id="ent0002" data-source-line="1666"><rect x="7" y="45.609" width="1216" height="654" fill="none" style="stroke:#444;stroke-width:1;stroke-dasharray:7,7;"/><text x="538.992" y="64.219" fill="#444" font-size="16" textLength="152.016" font-weight="700">Web Application 2.1</text><text x="583.998" y="80.191" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text></g><!--entity fileSystem--><g class="entity" data-qualified-name="wb.fileSystem" id="ent0003" data-source-line="78"><rect x="23" y="355.109" width="219.992" height="125.656" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="37.41" y="381.719" fill="#000" font-size="16" textLength="27.563" font-weight="700">File</text><text x="64.973" y="381.719" fill="#000" font-size="16" font-weight="700"> </text><text x="69.418" y="381.719" fill="#000" font-size="16" textLength="56.922" font-weight="700">System</text><text x="126.34" y="381.719" fill="#000" font-size="16" font-weight="700"> </text><text x="130.785" y="381.719" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="58.313" y="397.691" fill="#000" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="112.992" y="397.691" fill="#000" font-size="12" font-style="italic"> </text><text x="116.326" y="397.691" fill="#000" font-size="12" textLength="26.666" font-style="italic">MVC</text><text x="142.992" y="397.691" fill="#000" font-size="12" font-style="italic"> </text><text x="146.326" y="397.691" fill="#000" font-size="12" textLength="61.354" font-style="italic">Controllers]</text><text x="131.051" y="414.861" fill="#000" font-size="14"> </text><text x="37.672" y="432.471" fill="#000" font-size="14" textLength="51.365">Handles</text><text x="89.038" y="432.471" fill="#000" font-size="14"> </text><text x="92.927" y="432.471" fill="#000" font-size="14" textLength="17.896">file</text><text x="110.824" y="432.471" fill="#000" font-size="14"> </text><text x="114.713" y="432.471" fill="#000" font-size="14" textLength="44.338">system</text><text x="159.051" y="432.471" fill="#000" font-size="14"> </text><text x="162.941" y="432.471" fill="#000" font-size="14" textLength="65.379">operations</text><text x="33" y="450.08" fill="#000" font-size="14" textLength="55.262">including</text><text x="88.262" y="450.08" fill="#000" font-size="14"> </text><text x="92.151" y="450.08" fill="#000" font-size="14" textLength="41.234">drives,</text><text x="133.386" y="450.08" fill="#000" font-size="14"> </text><text x="137.275" y="450.08" fill="#000" font-size="14" textLength="68.469">directories,</text><text x="205.744" y="450.08" fill="#000" font-size="14"> </text><text x="209.634" y="450.08" fill="#000" font-size="14" textLength="23.358">and</text><text x="90.589" y="467.689" fill="#000" font-size="14" textLength="24.896">files</text><text x="115.486" y="467.689" fill="#000" font-size="14"> </text><text x="119.375" y="467.689" fill="#000" font-size="14" textLength="56.027">browsing</text></g><!--entity library--><g class="entity" data-qualified-name="wb.library" id="ent0004" data-source-line="78"><rect x="278.5" y="337.609" width="210.661" height="160.875" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="305.588" y="364.219" fill="#000" font-size="16" textLength="54.242" font-weight="700">Library</text><text x="359.831" y="364.219" fill="#000" font-size="16" font-weight="700"> </text><text x="364.276" y="364.219" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="309.147" y="380.191" fill="#000" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="363.827" y="380.191" fill="#000" font-size="12" font-style="italic"> </text><text x="367.161" y="380.191" fill="#000" font-size="12" textLength="26.666" font-style="italic">MVC</text><text x="393.827" y="380.191" fill="#000" font-size="12" font-style="italic"> </text><text x="397.161" y="380.191" fill="#000" font-size="12" textLength="61.354" font-style="italic">Controllers]</text><text x="381.886" y="397.361" fill="#000" font-size="14"> </text><text x="293.948" y="414.971" fill="#000" font-size="14" textLength="57.593">Manages</text><text x="351.541" y="414.971" fill="#000" font-size="14"> </text><text x="355.431" y="414.971" fill="#000" font-Line truncated
|
||||
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
@@ -17,9 +17,9 @@ Container_Boundary(api, "API Server 2.2") {
|
||||
|
||||
Component(backgroundServices, "Background Services 3.2.1", ".NET Worker Services", "Handles media scanning, metadata synchronization and other maintenance tasks [detailed in '4.1 code-media-library-scanning-diagram.puml']")
|
||||
|
||||
Component(bookReading, "Book Reading 3.2.2", "Application + Infrastructure services", "Resolves the reader plugin of a book, checks its per-library enablement, extracts the book into the reading cache on first access, sanitizes every section, and serves the reading manifest, sections and resources")
|
||||
Component(bookReading, "Book Reading 3.2.2", "Application + Infrastructure services", "Resolves the reader plugin of a book, checks its per-library enablement, extracts the book into the reading cache on first access, sanitizes every section, and serves the reading manifest, sections and resources [detailed in '4.2 code-book-reading-diagram.puml']")
|
||||
|
||||
Component(readerPlugins, "Book Reader Plugins", "Lumina.Plugins.Epub, Lumina.Plugins.Pdf", "Decode a book format into a normalized reading document (spine, table of contents, sections, resources), loaded into the host by the plugin loader")
|
||||
Component(readerPlugins, "Book Reader Plugins", "Lumina.Plugins.Epub, Lumina.Plugins.Pdf", "Decode a book format into a normalized reading document (spine, table of contents, sections, resources), loaded into the host by the plugin loader [detailed in '4.2 code-book-reading-diagram.puml']")
|
||||
|
||||
Component(repositories, "Repositories", "EF Core", "Provides data access abstraction for domain entities")
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
<?xml version="1.0" encoding="us-ascii" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="1411px" preserveAspectRatio="none" style="width:922px;height:1411px;background:#FFFFFF;" version="1.1" viewBox="0 0 922 1411" width="922px" zoomAndPan="magnify"><defs/><g><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="321" x="293.75" y="24.5332">Component diagram for Lumina API Server 2.2</text><!--cluster api--><g id="cluster_api"><rect fill="none" height="685.5" rx="2.5" ry="2.5" style="stroke:#444444;stroke-width:1.0;stroke-dasharray:7.0,7.0;" width="696" x="7" y="249.6094"/><text fill="#444444" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="106" x="302" y="268.2188">API Server 2.2</text><text fill="#444444" font-family="sans-serif" font-size="12" font-weight="bold" lengthAdjust="spacing" textLength="63" x="323.5" y="284.1914">[Container]</text></g><!--entity endpoints--><g id="elem_endpoints"><rect fill="#85BBF0" height="125.6563" rx="2.5" ry="2.5" style="stroke:#78A8D8;stroke-width:0.5;" width="207" x="147.5" y="331.1094"/><text fill="#000000" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="26" x="196.5" y="357.7188">API</text><text fill="#000000" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="4" x="222.5" y="357.7188"> </text><text fill="#000000" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="79" x="226.5" y="357.7188">Endpoints</text><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="84" x="209" y="373.6914">[FastEndpoints]</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="249" y="390.8613"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="55" x="157.5" y="408.4707">Provides</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="212.5" y="408.4707"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="37" x="216.5" y="408.4707">REST</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="253.5" y="408.4707"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="21" x="257.5" y="408.4707">API</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="278.5" y="408.4707"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="62" x="282.5" y="408.4707">endpoints</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="17" x="164.5" y="426.0801">for</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="181.5" y="426.0801"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="38" x="185.5" y="426.0801">media</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="223.5" y="426.0801"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="82" x="227.5" y="426.0801">management</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="4" x="309.5" y="426.0801"> </text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="24" x="313.5" y="426.0801">and</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="62" x="220" y="443.6895">streaming</text></g><!--entity mediaManagement--><g id="elem_mediaManagement"><rect fill="#85BBF0" height="145.7813" rx="2.5" ry="2.5" style="stroke:#78A8D8;stroke-width:0.5;" width="178" x="509" y="561.6094"/><text fill="#000000" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="45" x="546.5" y="588.2188">Media</text><text fill="#000000" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="4" x="591.5" y="588.2188"> </text><text fill="#000000" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="54" x="595.5" y="588.2188">Library</text><text fill="#000000" font-family="sans-serif" font-size="16" font-weight="bold" lengthAdjust="spacing" textLength="98" x="549" y="608.3438">Management</text><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="47" x="548" y="624.3164">[Domain</text><texLine truncated
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:1398px;height:1604px;background:#FFFFFF;" width="1398px" height="1604px" viewBox="0 0 1398 1604" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="540.664" y="24.533" fill="#000" font-size="14" textLength="310.399" font-weight="700">Component diagram for Lumina API Server 2.2</text></g><!--cluster api--><g class="cluster" data-qualified-name="api" id="ent0002" data-source-line="1666"><rect x="7" y="269.609" width="957" height="862" fill="none" style="stroke:#444;stroke-width:1;stroke-dasharray:7,7;"/><text x="431.688" y="288.219" fill="#444" font-size="16" textLength="107.625" font-weight="700">API Server 2.2</text><text x="454.498" y="304.191" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text></g><!--entity endpoints--><g class="entity" data-qualified-name="api.endpoints" id="ent0003" data-source-line="78"><rect x="257.5" y="351.109" width="206.758" height="125.656" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="306.215" y="377.719" fill="#000" font-size="16" textLength="26.672" font-weight="700">API</text><text x="332.887" y="377.719" fill="#000" font-size="16" font-weight="700"> </text><text x="337.332" y="377.719" fill="#000" font-size="16" textLength="78.211" font-weight="700">Endpoints</text><text x="319.189" y="393.691" fill="#000" font-size="12" textLength="83.379" font-style="italic">[FastEndpoints]</text><text x="358.934" y="410.861" fill="#000" font-size="14"> </text><text x="267.5" y="428.471" fill="#000" font-size="14" textLength="54.469">Provides</text><text x="321.969" y="428.471" fill="#000" font-size="14"> </text><text x="325.858" y="428.471" fill="#000" font-size="14" textLength="37.338">REST</text><text x="363.196" y="428.471" fill="#000" font-size="14"> </text><text x="367.086" y="428.471" fill="#000" font-size="14" textLength="22.565">API</text><text x="389.651" y="428.471" fill="#000" font-size="14"> </text><text x="393.541" y="428.471" fill="#000" font-size="14" textLength="60.717">endpoints</text><text x="275.272" y="446.08" fill="#000" font-size="14" textLength="16.338">for</text><text x="291.61" y="446.08" fill="#000" font-size="14"> </text><text x="295.5" y="446.08" fill="#000" font-size="14" textLength="38.131">media</text><text x="333.631" y="446.08" fill="#000" font-size="14"> </text><text x="337.521" y="446.08" fill="#000" font-size="14" textLength="81.717">management</text><text x="419.237" y="446.08" fill="#000" font-size="14"> </text><text x="423.127" y="446.08" fill="#000" font-size="14" textLength="23.358">and</text><text x="330.145" y="463.689" fill="#000" font-size="14" textLength="61.469">streaming</text></g><!--entity mediaManagement--><g class="entity" data-qualified-name="api.mediaManagement" id="ent0004" data-source-line="78"><rect x="504.5" y="624.109" width="174.889" height="145.781" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="539.929" y="650.719" fill="#000" font-size="16" textLength="45.344" font-weight="700">Media</text><text x="585.272" y="650.719" fill="#000" font-size="16" font-weight="700"> </text><text x="589.718" y="650.719" fill="#000" font-size="16" textLength="54.242" font-weight="700">Library</text><text x="543.046" y="670.844" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="543.262" y="686.816" fill="#000" font-size="12" textLength="44.684" font-style="italic">[Domain</text><text x="587.945" y="686.816" fill="#000" font-size="12" font-style="italic"> </text><text x="591.279" y="686.816" fill="#000" font-size="12" textLength="49.348" font-style="italic">Services]</text><text x="590" y="703.986" fill="#000" font-size="14"> </text><text x="518.8" y="721.596" fill="#000" font-size="14" textLength="51.365">Handles</text><text x="570.165" y="721.596" fill="#000" font-size="14"> </text><text x="574.055" y="721.596" fill="#000" font-size="14" textLength="38.131">media</text><text x="612.186" y="721.596" fill="#000" font-size="14"> </text><text x="616.075" y="721.596" fill="#000" font-size="14" textLength="49.014">libraries</text><text x="514.5" y="739.205" fill="#000" font-size="14" textLength="65.379">operations</text><text x="579.879" y="739.205" fill="#000" font-size="14"> </text><text x="583.769" y="739.205" fill="#000" font-size="14" textLength="23.358">and</text><text x="607.127" y="739.205" fill="#000" font-size="14"> </text><text x="611.017" y="739.205" fill="#000" font-size="14" textLength="58.372">metadata</text><text x="551.086" y="756.814" fill="#000" font-size="14" textLength="81.717">management</text></g><!--entity userManagement--><g class="entity" data-qualified-name="api.userManagement" id="ent0005" data-source-line="78">Line truncated
|
||||
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 52 KiB |
@@ -0,0 +1,243 @@
|
||||
@startuml Book Reading and Book Reader Plugins Code
|
||||
!include <C4/C4_Component>
|
||||
|
||||
LAYOUT_WITH_LEGEND()
|
||||
title Code diagram for Book Reading 3.2.2 and Book Reader Plugins
|
||||
|
||||
skinparam class {
|
||||
BackgroundColor White
|
||||
BorderColor Black
|
||||
}
|
||||
|
||||
' ============================== READING HOST - APPLICATION CONTRACTS ==============================
|
||||
|
||||
interface IBookReadingService {
|
||||
+ GetManifestAsync(bookId: Guid, libraryId: Guid, path: string, libraryType: LibraryType, shouldRenderPdfAsImages: bool, token: CancellationToken): Task<Result<ReadingManifestResponse>>
|
||||
+ GetSectionAsync(bookId: Guid, libraryId: Guid, path: string, libraryType: LibraryType, locationRef: string, shouldRenderPdfAsImages: bool, shouldPreserveStyles: bool, token: CancellationToken): Task<Result<ReadingSectionDto>>
|
||||
+ GetResourceAsync(bookId: Guid, libraryId: Guid, path: string, libraryType: LibraryType, resourceKey: string, shouldRenderPdfAsImages: bool, token: CancellationToken): Task<Result<ReadingResourceDataDto>>
|
||||
+ GetAvailabilityAsync(bookId: Guid, libraryId: Guid, path: string, libraryType: LibraryType, token: CancellationToken): Task<Result<ReadingAvailabilityResponse>>
|
||||
}
|
||||
|
||||
interface IBookReaderRegistry {
|
||||
+ GetSupportedExtensionsByPluginId(): IReadOnlyDictionary<Guid, IReadOnlyList<string>>
|
||||
}
|
||||
|
||||
interface IBookReaderEnablementCache {
|
||||
+ Get(libraryId: Guid, pluginId: Guid): bool?
|
||||
+ Set(libraryId: Guid, pluginId: Guid, isEnabled: bool)
|
||||
+ Invalidate(libraryId: Guid, pluginId: Guid)
|
||||
+ InvalidateLibrary(libraryId: Guid)
|
||||
+ InvalidatePlugin(pluginId: Guid)
|
||||
}
|
||||
|
||||
' ============================== READING HOST - INFRASTRUCTURE ==============================
|
||||
|
||||
class BookReadingService {
|
||||
- _extractions: ConcurrentDictionary<ReadingCacheKey, BookExtractionEntry>
|
||||
- _bookExtractionLocks: ConcurrentDictionary<ReadingCacheKey, SemaphoreSlim>
|
||||
- _pluginIdsByReaderKey: IReadOnlyDictionary<ReaderKey, Guid>
|
||||
- _enablementCache: IBookReaderEnablementCache
|
||||
+ GetManifestAsync(...): Task<Result<ReadingManifestResponse>>
|
||||
+ GetSectionAsync(...): Task<Result<ReadingSectionDto>>
|
||||
+ GetResourceAsync(...): Task<Result<ReadingResourceDataDto>>
|
||||
+ GetAvailabilityAsync(...): Task<Result<ReadingAvailabilityResponse>>
|
||||
}
|
||||
|
||||
note right of BookReadingService
|
||||
Serves the manifest, sections and resources of a book:
|
||||
resolves the reader of the book format, checks the
|
||||
per-library enablement through the cache, reuses the already
|
||||
extracted document while the fingerprint of the book file is
|
||||
unchanged, extracts each rendering preference (text or page
|
||||
images) into its own directory under the reading cache, and
|
||||
produces on-demand resources (for example a PDF page render)
|
||||
once per resource file.
|
||||
end note
|
||||
|
||||
class BookReaderRegistry {
|
||||
- _pluginManager: IPluginManager
|
||||
- _serviceProvider: IServiceProvider
|
||||
+ GetSupportedExtensionsByPluginId(): IReadOnlyDictionary<Guid, IReadOnlyList<string>>
|
||||
}
|
||||
|
||||
note right of BookReaderRegistry
|
||||
Reads the supported extensions live from the book readers
|
||||
registered by the loaded plugins, so that a plugin update
|
||||
that changes its formats never leaves stale configurations.
|
||||
end note
|
||||
|
||||
class BookReaderEnablementCache {
|
||||
- _enablements: ConcurrentDictionary<(Guid LibraryId, Guid PluginId), bool>
|
||||
+ Get(libraryId: Guid, pluginId: Guid): bool?
|
||||
+ Set(libraryId: Guid, pluginId: Guid, isEnabled: bool)
|
||||
+ Invalidate(libraryId: Guid, pluginId: Guid)
|
||||
+ InvalidateLibrary(libraryId: Guid)
|
||||
+ InvalidatePlugin(pluginId: Guid)
|
||||
}
|
||||
|
||||
class ReadingCachePaths {
|
||||
+ DIRECTORY_NAME: string = reading-cache
|
||||
+ {static} GetRootDirectory(): string
|
||||
}
|
||||
|
||||
note bottom of ReadingCachePaths
|
||||
The reading cache is a temporary directory in the API output,
|
||||
wiped at startup, under which every book keeps one directory
|
||||
per rendering preference (text and images).
|
||||
end note
|
||||
|
||||
class ReadingContentSanitizer {
|
||||
+ RESOURCE_ATTRIBUTE: string = data-lumina-resource
|
||||
+ {static} Sanitize(html: string, shouldPreserveStyles: bool): string
|
||||
}
|
||||
|
||||
note right of ReadingContentSanitizer
|
||||
Sanitizes every reading section with an explicit allowlist of
|
||||
inert markup, regardless of what the reader plugin produced;
|
||||
whether the style attribute survives is the per-user choice.
|
||||
end note
|
||||
|
||||
' ============================== ENABLEMENT PERSISTENCE ==============================
|
||||
|
||||
class LibraryBookReaderConfigurationEntity {
|
||||
+ Id: Guid
|
||||
+ LibraryId: Guid
|
||||
+ PluginId: Guid
|
||||
+ IsEnabled: bool
|
||||
}
|
||||
|
||||
interface ILibraryBookReaderConfigurationRepository {
|
||||
+ GetByLibraryIdAsync(libraryId: Guid, token: CancellationToken): Task<Result<IReadOnlyList<LibraryBookReaderConfigurationEntity>>>
|
||||
+ GetByLibraryAndPluginIdAsync(libraryId: Guid, pluginId: Guid, token: CancellationToken): Task<Result<LibraryBookReaderConfigurationEntity?>>
|
||||
+ UpsertAsync(configuration: LibraryBookReaderConfigurationEntity, token: CancellationToken): Task<Result<Updated>>
|
||||
+ DeleteByLibraryIdAsync(libraryId: Guid, token: CancellationToken): Task<Result<Deleted>>
|
||||
+ DeleteByPluginIdAsync(pluginId: Guid, token: CancellationToken): Task<Result<Deleted>>
|
||||
+ DeleteByLibraryIdAndPluginIdsAsync(libraryId: Guid, pluginIds: IEnumerable<Guid>, token: CancellationToken): Task<Result<Deleted>>
|
||||
}
|
||||
|
||||
class LibraryBookReaderConfigurationRepository
|
||||
|
||||
class GetLibraryBookReadersQueryHandler {
|
||||
- _unitOfWork: IUnitOfWork
|
||||
- _bookReaderRegistry: IBookReaderRegistry
|
||||
+ HandleAsync(query: GetLibraryBookReadersQuery, token: CancellationToken): Task<Result<IReadOnlyList<LibraryBookReaderResponse>>>
|
||||
}
|
||||
|
||||
class SetLibraryBookReaderEnabledCommandHandler {
|
||||
- _unitOfWork: IUnitOfWork
|
||||
- _enablementCache: IBookReaderEnablementCache
|
||||
+ HandleAsync(command: SetLibraryBookReaderEnabledCommand, token: CancellationToken): Task<Result<Success>>
|
||||
}
|
||||
|
||||
note right of SetLibraryBookReaderEnabledCommandHandler
|
||||
Enables or disables the book reader of a plugin for a media
|
||||
library by upserting its configuration row, then invalidates
|
||||
the enablement cache so that a disabled reader stops being
|
||||
served immediately.
|
||||
end note
|
||||
|
||||
' ============================== BOOK READER PLUGINS ==============================
|
||||
|
||||
interface IBookReader {
|
||||
+ SupportedExtensions: IReadOnlyList<string>
|
||||
+ SupportedLibraryTypes: IReadOnlyList<LibraryType>
|
||||
+ OpenAsync(path: string, workingDirectory: string, shouldRenderPdfAsImages: bool, token: CancellationToken): Task<ReadingDocumentDto>
|
||||
+ GetResourceAsync(path: string, workingDirectory: string, resourceKey: string, token: CancellationToken): Task<byte[]>
|
||||
}
|
||||
|
||||
note top of IBookReader
|
||||
Contract of a reader plugin, implemented in Lumina.Plugins.Contracts.
|
||||
The plugins are host-trusted: they receive the absolute path of the
|
||||
book and a working directory to extract into, while the host
|
||||
sanitizes and contained-checks everything they produce before
|
||||
serving it to the client.
|
||||
end note
|
||||
|
||||
class EpubReader {
|
||||
}
|
||||
|
||||
note right of EpubReader
|
||||
Reads .epub books of the EBook and Book library types.
|
||||
EPUB is a ZIP archive, decoded entry by entry with bounded
|
||||
sizes and archive-contained paths.
|
||||
end note
|
||||
|
||||
class EpubDocumentParser {
|
||||
+ {static} Parse(epubPath: string, workingDirectory: string, token: CancellationToken): ReadingDocumentDto
|
||||
}
|
||||
|
||||
class PdfReader {
|
||||
}
|
||||
|
||||
note right of PdfReader
|
||||
Reads .pdf books of the EBook and Book library types.
|
||||
Each page is a reading section; the table of contents comes
|
||||
from the PDF bookmarks.
|
||||
end note
|
||||
|
||||
class PdfDocumentParser {
|
||||
+ {static} Parse(pdfPath: string, workingDirectory: string, shouldRenderPdfAsImages: bool, token: CancellationToken): ReadingDocumentDto
|
||||
+ {static} RenderResource(pdfPath: string, resourceKey: string, token: CancellationToken): byte[]
|
||||
}
|
||||
|
||||
note right of PdfDocumentParser
|
||||
Extracts the text layer of the pages with PdfPig, and renders
|
||||
the pages as images with PDFtoImage on demand when the
|
||||
render-as-images user setting is enabled; file size, page count
|
||||
and rendered page area are bounded.
|
||||
end note
|
||||
|
||||
class EpubPlugin {
|
||||
+ Id: Guid
|
||||
+ Name: string = EPUB Reader
|
||||
+ RegisterServices(services: IServiceCollection)
|
||||
}
|
||||
|
||||
class PdfPlugin {
|
||||
+ Id: Guid
|
||||
+ Name: string = PDF Reader
|
||||
+ RegisterServices(services: IServiceCollection)
|
||||
}
|
||||
|
||||
' ============================== HOST IMPLEMENTATION RELATIONSHIPS ==============================
|
||||
|
||||
IBookReadingService <|.. BookReadingService : implements
|
||||
IBookReaderRegistry <|.. BookReaderRegistry : implements
|
||||
IBookReaderEnablementCache <|.. BookReaderEnablementCache : implements
|
||||
ILibraryBookReaderConfigurationRepository <|.. LibraryBookReaderConfigurationRepository : implements
|
||||
|
||||
' ============================== READING HOST RELATIONSHIPS ==============================
|
||||
|
||||
BookReadingService --> IBookReaderRegistry : finds the plugin of the book format
|
||||
BookReadingService --> IBookReaderEnablementCache : checks the per-library enablement
|
||||
BookReadingService --> ILibraryBookReaderConfigurationRepository : fills the cache on a miss
|
||||
BookReadingService ..> IBookReader : opens and produces resources
|
||||
BookReadingService ..> ReadingContentSanitizer : sanitizes section content
|
||||
BookReadingService ..> ReadingCachePaths : extracts into and serves from
|
||||
|
||||
BookReaderRegistry ..> IBookReader : reads the supported extensions of loaded plugins
|
||||
|
||||
' ============================== ENABLEMENT MANAGEMENT RELATIONSHIPS ==============================
|
||||
|
||||
GetLibraryBookReadersQueryHandler --> ILibraryBookReaderConfigurationRepository : reads configurations
|
||||
GetLibraryBookReadersQueryHandler --> IBookReaderRegistry : reads supported extensions
|
||||
SetLibraryBookReaderEnabledCommandHandler --> ILibraryBookReaderConfigurationRepository : upserts the configuration
|
||||
SetLibraryBookReaderEnabledCommandHandler --> IBookReaderEnablementCache : invalidates the entry
|
||||
|
||||
ILibraryBookReaderConfigurationRepository --> LibraryBookReaderConfigurationEntity : persists
|
||||
|
||||
' ============================== BOOK READER PLUGIN RELATIONSHIPS ==============================
|
||||
|
||||
EpubReader <|.. IBookReader : implements
|
||||
PdfReader <|.. IBookReader : implements
|
||||
|
||||
EpubReader ..> EpubDocumentParser : parses
|
||||
PdfReader ..> PdfDocumentParser : parses and renders pages
|
||||
|
||||
EpubPlugin ..> EpubReader : registers as a keyed IBookReader
|
||||
PdfPlugin ..> PdfReader : registers as a keyed IBookReader
|
||||
|
||||
caption [Code] Lumina - Book Reading 3.2.2 and Book Reader Plugins
|
||||
|
||||
footer The code diagram for the Book Reading 3.2.2 and the Book Reader Plugins - created with PlantUML
|
||||
@enduml
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="CLASS" style="width:2978px;height:2599px;background:#FFFFFF;" width="2978px" height="2599px" viewBox="0 0 2978 2599" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="1274.748" y="24.533" fill="#000" font-size="14" textLength="422.413" font-weight="700">Code diagram for Book Reading 3.2.2 and Book Reader Plugins</text></g><!--class IBookReadingService--><g class="entity" data-qualified-name="IBookReadingService" id="ent0001" data-source-line="13"><rect x="1079.5" y="45.609" width="310.054" height="558.672" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="1162.96" cy="61.609" rx="11" ry="11" fill="#B4A7E5" style="stroke:#181818;stroke-width:1;"/><path d="M1163.913,58.25 L1163.913,64.906 L1165.632,64.906 Q1166.241,64.906 1166.507,65.141 Q1166.772,65.375 1166.772,65.766 Q1166.772,66.141 1166.507,66.375 Q1166.241,66.609 1165.632,66.609 L1160.491,66.609 Q1159.882,66.609 1159.616,66.375 Q1159.351,66.141 1159.351,65.75 Q1159.351,65.375 1159.616,65.141 Q1159.882,64.906 1160.491,64.906 L1162.21,64.906 L1162.21,58.25 L1160.491,58.25 Q1159.882,58.25 1159.616,58.016 Q1159.351,57.781 1159.351,57.391 Q1159.351,57.016 1159.616,56.781 Q1159.882,56.547 1160.491,56.547 L1165.632,56.547 Q1166.241,56.547 1166.507,56.781 Q1166.772,57.016 1166.772,57.391 Q1166.772,57.781 1166.507,58.016 Q1166.241,58.25 1165.632,58.25 L1163.913,58.25 Z " fill="#000"/><text x="1183.46" y="67.338" fill="#000" font-size="14" textLength="134.634" font-style="italic">IBookReadingService</text><line x1="1080.5" y1="77.609" x2="1388.554" y2="77.609" style="stroke:#000;stroke-width:0.5;"/><line x1="1080.5" y1="85.609" x2="1388.554" y2="85.609" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="1090.5" cy="152.742" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="1099.5" y="104.143" fill="#000" font-size="14" textLength="164.186">GetManifestAsync(bookId:</text><text x="1099.5" y="121.752" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="1132.962" y="121.752" fill="#000" font-size="14"> </text><text x="1136.852" y="121.752" fill="#000" font-size="14" textLength="53.683">libraryId:</text><text x="1190.534" y="121.752" fill="#000" font-size="14"> </text><text x="1194.424" y="121.752" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="1227.886" y="121.752" fill="#000" font-size="14"> </text><text x="1231.775" y="121.752" fill="#000" font-size="14" textLength="31.138">path:</text><text x="1099.5" y="139.361" fill="#000" font-size="14" textLength="38.124">string,</text><text x="1137.624" y="139.361" fill="#000" font-size="14"> </text><text x="1141.514" y="139.361" fill="#000" font-size="14" textLength="73.131">libraryType:</text><text x="1214.645" y="139.361" fill="#000" font-size="14"> </text><text x="1218.534" y="139.361" fill="#000" font-size="14" textLength="77.807">LibraryType,</text><text x="1099.5" y="156.971" fill="#000" font-size="14" textLength="174.323">shouldRenderPdfAsImages:</text><text x="1099.5" y="174.58" fill="#000" font-size="14" textLength="30.358">bool,</text><text x="1129.858" y="174.58" fill="#000" font-size="14"> </text><text x="1133.748" y="174.58" fill="#000" font-size="14" textLength="38.138">token:</text><text x="1099.5" y="192.189" fill="#000" font-size="14" textLength="124.51">CancellationToken):</text><text x="1099.5" y="209.799" fill="#000" font-size="14" textLength="270.826">Task<Result<ReadingManifestResponse>></text><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="1090.5" cy="293.617" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="1099.5" y="227.408" fill="#000" font-size="14" textLength="157.972">GetSectionAsync(bookId:</text><text x="1257.472" y="227.408" fill="#000" font-size="14"> </text><text x="1261.361" y="227.408" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="1099.5" y="245.018" fill="#000" font-size="14" textLength="53.683">libraryId:</text><text x="1153.183" y="245.018" fill="#000" font-size="14"> </text><text x="1157.072" y="245.018" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="1190.534" y="245.018" fill="#000" font-size="14"> </text><text x="1194.424" y="245.018" fill="#000" font-size="14" textLength="31.138">path:</text><text x="1225.562" y="245.018" fill="#000" font-size="14"> </text><text x="1229.451" y="245.018" fill="#000" font-size="14" textLength="38.124">string,</text><text x="1099.5" y="262.627" fill="#000" font-size="14" textLength="73.131">libraryType:</text><text x="1172.631" y="262.627" fill="#000" font-size="14"> </text><text x="1176.521" y="262.627" fill="#000" font-size="14" textLength="7Line truncated
|
||||
|
After Width: | Height: | Size: 155 KiB |
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/books/{{$guid}}/reading/availability
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/books/{{$guid}}/reading/manifest
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/books/{{$guid}}/reading/resources/0f4d6e2b1c9a4f3e8d7c6b5a4f3e2d1c
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/books/{{$guid}}/reading/sections/chapter1
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/libraries/{{$guid}}/book-readers
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,9 @@
|
||||
PUT {{host}}/api/v1/libraries/{{$guid}}/book-readers/{{$guid}}/enabled
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"libraryId": "{{$guid}}",
|
||||
"pluginId": "{{$guid}}",
|
||||
"isEnabled": true
|
||||
}
|
||||
@@ -6,5 +6,8 @@ Content-Type: application/json
|
||||
"isPaginationEnabled": true,
|
||||
"itemsPerPage": 50,
|
||||
"ignoreThePrefixForAlphaPicker": true,
|
||||
"isThemeCachingEnabled": true
|
||||
"isThemeCachingEnabled": true,
|
||||
"shouldAggregateMetadataWhenMissing": true,
|
||||
"shouldRenderPdfAsImages": false,
|
||||
"shouldPreserveBookStyles": true
|
||||
}
|
||||
@@ -182,6 +182,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "architecture", "architectur
|
||||
..\docs\technical\architecture\3.2 component-api-server-diagram.svg = ..\docs\technical\architecture\3.2 component-api-server-diagram.svg
|
||||
..\docs\technical\architecture\4.1 code-media-library-scanning-diagram.puml = ..\docs\technical\architecture\4.1 code-media-library-scanning-diagram.puml
|
||||
..\docs\technical\architecture\4.1 code-media-library-scanning-diagram.svg = ..\docs\technical\architecture\4.1 code-media-library-scanning-diagram.svg
|
||||
..\docs\technical\architecture\4.2 code-book-reading-diagram.puml = ..\docs\technical\architecture\4.2 code-book-reading-diagram.puml
|
||||
..\docs\technical\architecture\4.2 code-book-reading-diagram.svg = ..\docs\technical\architecture\4.2 code-book-reading-diagram.svg
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "architecture-knowledge-management", "architecture-knowledge-management", "{70B56088-6D3A-481E-9459-79AC6B16FEC1}"
|
||||
|
||||