Merge pull request #306 from BinaryAlley/refactor/rename-project-to-nemera

Renames the project from Lumina to Nemera
This commit is contained in:
BinaryAlley authored and GitHub committed 2026-11-27 16:07:11 +02:00
commit bb746eef4e
8781 files changed
+313499 -313499

No files matched your search

+4 -4
View File
@@ -26,15 +26,15 @@ jobs:
run: sudo sysctl -w fs.inotify.max_user_instances=1024 fs.inotify.max_user_watches=524288 run: sudo sysctl -w fs.inotify.max_user_instances=1024 fs.inotify.max_user_watches=524288
- name: Restore Six Labors license - name: Restore Six Labors license
shell: bash shell: bash
run: printf '%s\n' "${{ secrets.SIXLABORS_LICENSE_KEY }}" > src/Lumina.Domain/sixlabors.lic run: printf '%s\n' "${{ secrets.SIXLABORS_LICENSE_KEY }}" > src/Nemera.Domain/sixlabors.lic
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore src/Lumina.slnx run: dotnet restore src/Nemera.slnx
- name: Build - name: Build
run: dotnet build src/Lumina.slnx --no-restore -p:SixLaborsLicenseEnforceBuild=true run: dotnet build src/Nemera.slnx --no-restore -p:SixLaborsLicenseEnforceBuild=true
- name: Run tests - name: Run tests
# Blame-hang terminates a test that blocks for 10 minutes and dumps the hang stack, # Blame-hang terminates a test that blocks for 10 minutes and dumps the hang stack,
# turning the recurring 'stuck job' into a failing job that names the culprit test. # turning the recurring 'stuck job' into a failing job that names the culprit test.
run: dotnet test src/Lumina.slnx --no-build --verbosity normal --blame-hang --blame-hang-timeout 10m run: dotnet test src/Nemera.slnx --no-build --verbosity normal --blame-hang --blame-hang-timeout 10m
- name: Upload hang diagnostics - name: Upload hang diagnostics
if: failure() if: failure()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
+1 -1
View File
@@ -58,7 +58,7 @@ $RECYCLE.BIN/
# Archives # Archives
*.zip *.zip
# bundled themes should be tracked # bundled themes should be tracked
!src/Lumina.Presentation.Api/Core/Themes/Bundled/*.zip !src/Nemera.Presentation.Api/Core/Themes/Bundled/*.zip
*.tar.gz *.tar.gz
*.rar *.rar
+4 -4
View File
@@ -13,7 +13,7 @@ These rules apply to every agent, on every task, in this repository. For C# code
- Request flow: FastEndpoints endpoint -> mapping -> validator -> handler -> domain -> repository/UoW -> EF Core SQLite. Domain events fire via `EventualConsistencyMiddleware` (excluded for the `/scanProgressHub` SignalR hub). - Request flow: FastEndpoints endpoint -> mapping -> validator -> handler -> domain -> repository/UoW -> EF Core SQLite. Domain events fire via `EventualConsistencyMiddleware` (excluded for the `/scanProgressHub` SignalR hub).
- Handlers and domain event handlers are resolved directly from the DI container; commands/queries/validators/handlers are registered by assembly scan in `ApplicationLayerServices`. - Handlers and domain event handlers are resolved directly from the DI container; commands/queries/validators/handlers are registered by assembly scan in `ApplicationLayerServices`.
- API contracts should be as much as possible records. Database entities should have as many properties as `required` and `init`. Domain properties should all be `private set`. - API contracts should be as much as possible records. Database entities should have as many properties as `required` and `init`. Domain properties should all be `private set`.
- DataAccess persistence: repositories persist aggregate graphs only through the closed toolkit in `Lumina.DataAccess\Common\Persistence` (`EditableValuesCopier`, `CollectionReconciler`, `SharedReferenceResolver`). Those primitives must stay generic and entity-agnostic. Never add a per-entity helper to that folder, and never hand-roll an equivalent in a repository: generalize the primitive (generics plus a marker interface such as `ISharedReferenceEntity`) or keep the logic in the repository. - DataAccess persistence: repositories persist aggregate graphs only through the closed toolkit in `Nemera.DataAccess\Common\Persistence` (`EditableValuesCopier`, `CollectionReconciler`, `SharedReferenceResolver`). Those primitives must stay generic and entity-agnostic. Never add a per-entity helper to that folder, and never hand-roll an equivalent in a repository: generalize the primitive (generics plus a marker interface such as `ISharedReferenceEntity`) or keep the logic in the repository.
- Presentation layer: immediately decouples API contracts with manual mapping: ToQuery or ToCommand. FastEndpoints adds authentication by default, only `AllowAnonymous` is free access. Errors are always `ProblemDetails`. - Presentation layer: immediately decouples API contracts with manual mapping: ToQuery or ToCommand. FastEndpoints adds authentication by default, only `AllowAnonymous` is free access. Errors are always `ProblemDetails`.
- Application layer: mapping classes are extension methods in `Common\Mapping`, and each mapping file should *only* extend the type the name of the mapping file uses, ex: `UserEntityMapping` contains *only* `UserEntity` extension methods to map to other types. The used names are: `ToQuery`, `ToCommand`, `ToRepositoryEntity`, `ToRequest`, `ToResponse`, `ToDto`, `ToDomainEntity`, `ToDomainValueObject`. Any deviation needed is confirmed with the user. Validators validate application concerns: null or empty strings, negative numbers, correct emails, etc, they do not do async work and they do not do business rules validation. They are the first thing invoked in handlers. The next check should be for authentication/authorization. Validation error ownership is decided by the domain-expert test, not by the shape of the check: when a domain expert of that bounded context would state the rule in their own words, it is a business rule and its error belongs in `Domain/Common/Errors`; otherwise its error belongs in `Application/Common/Errors`. - Application layer: mapping classes are extension methods in `Common\Mapping`, and each mapping file should *only* extend the type the name of the mapping file uses, ex: `UserEntityMapping` contains *only* `UserEntity` extension methods to map to other types. The used names are: `ToQuery`, `ToCommand`, `ToRepositoryEntity`, `ToRequest`, `ToResponse`, `ToDto`, `ToDomainEntity`, `ToDomainValueObject`. Any deviation needed is confirmed with the user. Validators validate application concerns: null or empty strings, negative numbers, correct emails, etc, they do not do async work and they do not do business rules validation. They are the first thing invoked in handlers. The next check should be for authentication/authorization. Validation error ownership is decided by the domain-expert test, not by the shape of the check: when a domain expert of that bounded context would state the rule in their own words, it is a business rule and its error belongs in `Domain/Common/Errors`; otherwise its error belongs in `Application/Common/Errors`.
@@ -22,12 +22,12 @@ These rules apply to every agent, on every task, in this repository. For C# code
## Documentation ## Documentation
- `docs/technical/requests` mirrors the folder tree of `src/Lumina.Presentation.Api/Core/Endpoints` down to the operation groups, in kebab-case, collapsing the per-operation leaf folders, and holds one `<Verb><Entity>.http` file per endpoint. - `docs/technical/requests` mirrors the folder tree of `src/Nemera.Presentation.Api/Core/Endpoints` down to the operation groups, in kebab-case, collapsing the per-operation leaf folders, and holds one `<Verb><Entity>.http` file per endpoint.
- `docs/technical/api` holds one `Api.<Resource>.md` file per `ApiRoutes.<Resource>` class, grouped in the endpoint sub-area folder rather than in a folder per resource, so a sub-area folder holds all the API docs of that sub-area. - `docs/technical/api` holds one `Api.<Resource>.md` file per `ApiRoutes.<Resource>` class, grouped in the endpoint sub-area folder rather than in a folder per resource, so a sub-area folder holds all the API docs of that sub-area.
- ADRs under `docs/technical/architecture/architecture-knowledge-management/architecture-decision-log` are append only. An existing ADR is never rewritten: its headings, paragraphs, tables and amendments stay exactly as they are. A new decision is recorded by appending a `## Amendment: <Title> (<date>)` section at the very end of the relevant ADR, after every existing amendment and in chronological order. Amendments are never written in the middle of an ADR, and an amendment is never removed, merged, relocated or reordered. A genuinely new decision gets a new ADR file. - ADRs under `docs/technical/architecture/architecture-knowledge-management/architecture-decision-log` are append only. An existing ADR is never rewritten: its headings, paragraphs, tables and amendments stay exactly as they are. A new decision is recorded by appending a `## Amendment: <Title> (<date>)` section at the very end of the relevant ADR, after every existing amendment and in chronological order. Amendments are never written in the middle of an ADR, and an amendment is never removed, merged, relocated or reordered. A genuinely new decision gets a new ADR file.
- Every ADR uses ADR-0001 as the template for its structure and sections: a `# Architecture Decision Record (ADR): <number> - <title>` heading, `## Status`, `## Context`, `## Decision`, `## Consequences` with `### Positive Outcomes` and `### Risks and Tradeoffs`, `## Alternatives Considered`, and then the amendments. New ADRs must be created in that shape. - Every ADR uses ADR-0001 as the template for its structure and sections: a `# Architecture Decision Record (ADR): <number> - <title>` heading, `## Status`, `## Context`, `## Decision`, `## Consequences` with `### Positive Outcomes` and `### Risks and Tradeoffs`, `## Alternatives Considered`, and then the amendments. New ADRs must be created in that shape.
- Add every new documentation file to `src/Lumina.slnx` as a solution item under the matching solution folder, in the same change. - Add every new documentation file to `src/Nemera.slnx` as a solution item under the matching solution folder, in the same change.
- The user facing manual lives in `docs/manual`. It describes Lumina as it is, not as it is planned. Whenever a change makes the manual drift from reality (features added or removed, defaults, ports, supported media types, bundled plugins or themes, configuration options, or wording that no longer matches the product), update the manual in the same change. - The user facing manual lives in `docs/manual`. It describes Nemera as it is, not as it is planned. Whenever a change makes the manual drift from reality (features added or removed, defaults, ports, supported media types, bundled plugins or themes, configuration options, or wording that no longer matches the product), update the manual in the same change.
- Every manual page opens with a `## Contents` list of all manual sections, in reading order, with the current page marked in bold and every other page linked by relative path. When a section is added, renamed, reordered or removed, update the `## Contents` list on every manual page in the same change. - Every manual page opens with a `## Contents` list of all manual sections, in reading order, with the current page marked in bold and every other page linked by relative path. When a section is added, renamed, reordered or removed, update the `## Contents` list on every manual page in the same change.
## Completing the work ## Completing the work
+1 -1
View File
@@ -189,7 +189,7 @@ If you develop a new program, and you want it to be of the greatest possible use
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
Lumina - complete management solution for media libraries of all kinds. Nemera - complete management solution for media libraries of all kinds.
Copyright (C) 2024 BinaryAlley Copyright (C) 2024 BinaryAlley
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
+14 -14
View File
@@ -1,8 +1,8 @@
# Lumina: because your files deserve better than collecting digital dust. # Nemera: because your files deserve better than collecting digital dust.
### Welcome to Lumina, the radiant new star in the galaxy of media servers! 🌟 ### Welcome to Nemera, the radiant new star in the galaxy of media servers! 🌟
Lumina aims to be your go-to hub for all things media - movies, TV shows, music, and more. We're just getting started, but our vision is bright: Nemera aims to be your go-to hub for all things media - movies, TV shows, music, and more. We're just getting started, but our vision is bright:
- Stream your content anywhere, anytime. - Stream your content anywhere, anytime.
- Organize your media with style. - Organize your media with style.
@@ -12,21 +12,21 @@ Lumina aims to be your go-to hub for all things media - movies, TV shows, music,
- Your media, your control. - Your media, your control.
- Free and Open Source. - Free and Open Source.
Stay tuned as we build something amazing together. Lumina is about to light up your media experience! Stay tuned as we build something amazing together. Nemera is about to light up your media experience!
P.S. This README is just a spark. Watch it grow into a supernova! ✨ P.S. This README is just a spark. Watch it grow into a supernova! ✨
> **Warning: pre-alpha, not production ready.** Lumina is under heavy development, and breaking changes happen all the time. Configuration, APIs, data formats and behavior can change between versions without a migration path or a guaranteed way back. Do not use Lumina in production. Back up before you update. > **Warning: pre-alpha, not production ready.** Nemera is under heavy development, and breaking changes happen all the time. Configuration, APIs, data formats and behavior can change between versions without a migration path or a guaranteed way back. Do not use Nemera in production. Back up before you update.
## Documentation ## Documentation
The user facing manual, covering installing, using and administering Lumina, can be found at [docs/manual](./docs/manual/index.md). Start there if you want to run Lumina rather than read how it is built. The user facing manual, covering installing, using and administering Nemera, can be found at [docs/manual](./docs/manual/index.md). Start there if you want to run Nemera rather than read how it is built.
For those with technical curiosities, here are some goodies to browse through: For those with technical curiosities, here are some goodies to browse through:
- This application was written following Clean Architecture and Domain Driven Design. Although you've probably seen it countless times before, here is the diagram of how the structure looks like. - This application was written following Clean Architecture and Domain Driven Design. Although you've probably seen it countless times before, here is the diagram of how the structure looks like.
- A tree-like schematic of the Lumina's Server Domain layer can be seen [here](./docs/technical/domain/Domain.md). - A tree-like schematic of the Nemera's Server Domain layer can be seen [here](./docs/technical/domain/Domain.md).
- The Ubiquitous Language used by Lumina's Server Domain layer can be read [here](./docs/technical/domain/UbiquitousLanguage.md). - The Ubiquitous Language used by Nemera's Server Domain layer can be read [here](./docs/technical/domain/UbiquitousLanguage.md).
- For Software Architects, the architecture documents of Lumina were designed using the [C4 model](https://c4model.com/), therefor, you can visualize: - For Software Architects, the architecture documents of Nemera were designed using the [C4 model](https://c4model.com/), therefor, you can visualize:
1. [1 System Context diagram](./docs/technical/architecture/1%20system-context-diagram.svg) 1. [1 System Context diagram](./docs/technical/architecture/1%20system-context-diagram.svg)
2. [2 Container diagram](./docs/technical/architecture/2%20container-diagram.svg) 2. [2 Container diagram](./docs/technical/architecture/2%20container-diagram.svg)
3. [3.1 Component Web Client diagram](./docs/technical/architecture/3.1%20component-web-client-diagram.svg) 3. [3.1 Component Web Client diagram](./docs/technical/architecture/3.1%20component-web-client-diagram.svg)
@@ -35,11 +35,11 @@ For those with technical curiosities, here are some goodies to browse through:
6. [4.2 Code book reading diagram](./docs/technical/architecture/4.2%20code-book-reading-diagram.svg) 6. [4.2 Code book reading diagram](./docs/technical/architecture/4.2%20code-book-reading-diagram.svg)
7. [4.3 Code scheduled jobs diagram](./docs/technical/architecture/4.3%20code-scheduler-diagram.svg) 7. [4.3 Code scheduled jobs diagram](./docs/technical/architecture/4.3%20code-scheduler-diagram.svg)
- To regenerate the diagrams after editing a `.puml` file, follow the [diagram rendering instructions](./docs/technical/architecture/README.md). - To regenerate the diagrams after editing a `.puml` file, follow the [diagram rendering instructions](./docs/technical/architecture/README.md).
- 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. - 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 Nemera'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 ## Telemetry and Observability
Lumina instruments its applications with OpenTelemetry (traces and metrics) and structured logging (Serilog), correlated through trace and span identifiers. Nemera instruments its applications with OpenTelemetry (traces and metrics) and structured logging (Serilog), correlated through trace and span identifiers.
- Every query, command, and domain event handler in the application layer emits a trace span, latency and invocation metrics, and a structured log entry, through a telemetry decorator registered in the dependency injection container. - Every query, command, and domain event handler in the application layer emits a trace span, latency and invocation metrics, and a structured log entry, through a telemetry decorator registered in the dependency injection container.
- Serilog enriches every log line with `TraceId` and `SpanId`, so logs can be joined to the traces that produced them. - Serilog enriches every log line with `TraceId` and `SpanId`, so logs can be joined to the traces that produced them.
@@ -53,7 +53,7 @@ The `docker-compose.yml` file ships an observability stack for local development
- OpenTelemetry Collector, receiving OTLP at `localhost:4317` (gRPC) and `localhost:4318` (HTTP), and fanning traces and metrics out to the backends below. - OpenTelemetry Collector, receiving OTLP at `localhost:4317` (gRPC) and `localhost:4318` (HTTP), and fanning traces and metrics out to the backends below.
- Jaeger for trace search: http://localhost:16686 - Jaeger for trace search: http://localhost:16686
- Prometheus for metrics: http://localhost:9090 - Prometheus for metrics: http://localhost:9090
- Grafana for dashboards: http://localhost:3000, pre-provisioned with a "Lumina" dashboard (handler latency and invocation rates) and Prometheus and Jaeger data sources. The local development stack signs in with `admin` / `lumina-admin`, overridable through the `GRAFANA_ADMIN_PASSWORD` environment variable. - Grafana for dashboards: http://localhost:3000, pre-provisioned with a "Nemera" dashboard (handler latency and invocation rates) and Prometheus and Jaeger data sources. The local development stack signs in with `admin` / `nemera-admin`, overridable through the `GRAFANA_ADMIN_PASSWORD` environment variable.
Start everything with `docker compose up` (or `docker compose up --build` after code changes), then open the dashboards. The Web application runs at http://localhost:5012 and the API at http://localhost:5214. Start everything with `docker compose up` (or `docker compose up --build` after code changes), then open the dashboards. The Web application runs at http://localhost:5012 and the API at http://localhost:5214.
@@ -75,12 +75,12 @@ For a production deployment, point the OTLP endpoint at a real collector instead
The development setup ships convenience defaults that must never be used in a real deployment: The development setup ships convenience defaults that must never be used in a real deployment:
- **API secrets.** The API requires a JWT signing key and an encryption key, both validated with `ValidateOnStart()`. Production deployments must supply their own values through the `JwtSettings__SecretKey` and `EncryptionSettings__SecretKey` environment variables, otherwise the API fails to start. - **API secrets.** The API requires a JWT signing key and an encryption key, both validated with `ValidateOnStart()`. Production deployments must supply their own values through the `JwtSettings__SecretKey` and `EncryptionSettings__SecretKey` environment variables, otherwise the API fails to start.
- **Grafana.** The local observability stack signs in with the well-known `admin` / `lumina-admin` credentials and binds Grafana to `127.0.0.1`. Do not leave the default password: set `GRAFANA_ADMIN_PASSWORD` (or `GF_SECURITY_ADMIN_PASSWORD`) before exposing Grafana beyond your own machine. - **Grafana.** The local observability stack signs in with the well-known `admin` / `nemera-admin` credentials and binds Grafana to `127.0.0.1`. Do not leave the default password: set `GRAFANA_ADMIN_PASSWORD` (or `GF_SECURITY_ADMIN_PASSWORD`) before exposing Grafana beyond your own machine.
- **Scope.** The observability stack (collector, Jaeger, Prometheus, Grafana) in `docker-compose.yml` is intended for local development only. - **Scope.** The observability stack (collector, Jaeger, Prometheus, Grafana) in `docker-compose.yml` is intended for local development only.
## Contributing ## Contributing
Lumina welcomes community contributions. All forms of input, be it code, bug reports, or feature suggestions, are appreciated. Be sure to read the [guidelines](./docs/CONTRIBUTING.md) for contributing first, and if you use AI when contributing, read the [AI policy](./docs/other/AI_POLICY.md) as well. It is short, and it is enforced. Nemera welcomes community contributions. All forms of input, be it code, bug reports, or feature suggestions, are appreciated. Be sure to read the [guidelines](./docs/CONTRIBUTING.md) for contributing first, and if you use AI when contributing, read the [AI policy](./docs/other/AI_POLICY.md) as well. It is short, and it is enforced.
## Acknowledgments and Credits ## Acknowledgments and Credits
+24 -24
View File
@@ -1,4 +1,4 @@
# Lumina Manual # Nemera Manual
## Contents ## Contents
@@ -7,9 +7,9 @@
1. **Introduction** 1. **Introduction**
2. [Installation](installation/index.md) 2. [Installation](installation/index.md)
**Using Lumina** **Using Nemera**
3. [Using Lumina](using-lumina/index.md) 3. [Using Nemera](using-nemera/index.md)
**Administration** **Administration**
@@ -17,57 +17,57 @@
5. [Plugins](plugins/index.md) 5. [Plugins](plugins/index.md)
6. [Themes](themes/index.md) 6. [Themes](themes/index.md)
Your files have waited long enough. Lumina is a media server that gives a whole collection one place to live, whether that collection is books, music, or the many other kinds of media that quietly pile up on a hard drive. It runs on your own hardware, answers to you and no one else, and never asks for a subscription before it will show you the files you already own. Your files have waited long enough. Nemera is a media server that gives a whole collection one place to live, whether that collection is books, music, or the many other kinds of media that quietly pile up on a hard drive. It runs on your own hardware, answers to you and no one else, and never asks for a subscription before it will show you the files you already own.
> **Pre-alpha, not production ready.** Lumina is under heavy development, and breaking changes happen all the time. Configuration, APIs, data formats and behavior can shift between versions, and nothing guarantees backward compatibility or a way back to an earlier version. Use Lumina to explore and to shape it, not to run a service you depend on. > **Pre-alpha, not production ready.** Nemera is under heavy development, and breaking changes happen all the time. Configuration, APIs, data formats and behavior can shift between versions, and nothing guarantees backward compatibility or a way back to an earlier version. Use Nemera to explore and to shape it, not to run a service you depend on.
## What Lumina is ## What Nemera is
Under the hood, Lumina is two applications that talk to each other: Under the hood, Nemera is two applications that talk to each other:
- The **API server** is the part that knows things. It keeps track of your libraries, metadata, users and settings, and hands them out as a JSON REST API. It is also where the heavy lifting happens, like scanning folders and running background jobs. - The **API server** is the part that knows things. It keeps track of your libraries, metadata, users and settings, and hands them out as a JSON REST API. It is also where the heavy lifting happens, like scanning folders and running background jobs.
- The **web client** is the part you look at. It talks to the API for you and paints the interface from the templates of whichever theme is switched on. - The **web client** is the part you look at. It talks to the API for you and paints the interface from the templates of whichever theme is switched on.
The two run separately and speak to each other over the network, so they can sit on the same machine or on machines on opposite sides of the planet. The Docker Compose stack brings them up together with a single command when that suits you. When you are ready to flip the lights on, the [installation guide](installation/index.md) walks through it. The two run separately and speak to each other over the network, so they can sit on the same machine or on machines on opposite sides of the planet. The Docker Compose stack brings them up together with a single command when that suits you. When you are ready to flip the lights on, the [installation guide](installation/index.md) walks through it.
## What Lumina can do today ## What Nemera can do today
Lumina is growing, and this is what works right now: Nemera is growing, and this is what works right now:
- **Media libraries that scan themselves.** Point Lumina at a folder or a drive, tell it what kind of media lives there, and it gets to work discovering and indexing what it finds. Scans run in the background, report their progress as they go, and can be started, cancelled or resumed. - **Media libraries that scan themselves.** Point Nemera at a folder or a drive, tell it what kind of media lives there, and it gets to work discovering and indexing what it finds. Scans run in the background, report their progress as they go, and can be started, cancelled or resumed.
- **Written content.** Add a written content library and Lumina scans it, cataloguing the books and e-books it contains and dressing them up with metadata for browsing in the client. Open one and it renders in the browser through a reader plugin; the EPUB and PDF readers are bundled and can be enabled per library. - **Written content.** Add a written content library and Nemera scans it, cataloguing the books and e-books it contains and dressing them up with metadata for browsing in the client. Open one and it renders in the browser through a reader plugin; the EPUB and PDF readers are bundled and can be enabled per library.
- **Music.** Add a music library and Lumina indexes the artists, albums and tracks it contains, reading metadata from the tags inside the audio files. If you want more, enable a metadata provider and Lumina fills in the gaps from online sources, and artwork can come from your folders or from remote sources. You can also build your own playlists, order them the way you want and play them in the browser. - **Music.** Add a music library and Nemera indexes the artists, albums and tracks it contains, reading metadata from the tags inside the audio files. If you want more, enable a metadata provider and Nemera fills in the gaps from online sources, and artwork can come from your folders or from remote sources. You can also build your own playlists, order them the way you want and play them in the browser.
- **Favorites.** Mark the artists, albums, tracks and books you love as favorites, from their lists or from the player, and come back to them from one page, filtered by kind. Favorites are private to your account. - **Favorites.** Mark the artists, albums, tracks and books you love as favorites, from their lists or from the player, and come back to them from one page, filtered by kind. Favorites are private to your account.
- **Statistics across your media.** See how much you consumed, how many sessions counted and completed, and which books and music you consumed recently and most, all in one place. Tags and genres are grouped across media kinds and shown lowercase, and administrators can look at any user or at the whole server. - **Statistics across your media.** See how much you consumed, how many sessions counted and completed, and which books and music you consumed recently and most, all in one place. Tags and genres are grouped across media kinds and shown lowercase, and administrators can look at any user or at the whole server.
- **Resume where you left off.** A book library can remember the section you reached when its progress tracking is on, which is the default for books. A short reading may not be tracked. A music library can remember the position of a track when you turn progress tracking on for it. - **Resume where you left off.** A book library can remember the section you reached when its progress tracking is on, which is the default for books. A short reading may not be tracked. A music library can remember the position of a track when you turn progress tracking on for it.
- **Metadata and artwork from plugins.** Plugins do the knowing. They supply the metadata and the artwork of a library, and you decide, library by library, which ones are switched on and which one wins when several of them recognize the same item. - **Metadata and artwork from plugins.** Plugins do the knowing. They supply the metadata and the artwork of a library, and you decide, library by library, which ones are switched on and which one wins when several of them recognize the same item.
- **A file system browser.** Reach the drives, folders and files of the server machine from anywhere you can open the client, as if you were sitting right in front of it. Poke around, walk a path to its root or to its parent, and let Lumina generate thumbnails for what it finds. - **A file system browser.** Reach the drives, folders and files of the server machine from anywhere you can open the client, as if you were sitting right in front of it. Poke around, walk a path to its root or to its parent, and let Nemera generate thumbnails for what it finds.
- **Accounts, roles, permissions and policies.** Create accounts, sign in with a password and optional two factor authentication, and hand out access through roles, fine grained permissions and policies that decide who may reach which library or content. Administrators manage all of it from the administration area. - **Accounts, roles, permissions and policies.** Create accounts, sign in with a password and optional two factor authentication, and hand out access through roles, fine grained permissions and policies that decide who may reach which library or content. Administrators manage all of it from the administration area.
- **Theming.** The client is a themed shell, and a theme is a portable ZIP of HTML templates and assets that anyone can create. A theme can restyle the entire application and rearrange its navigation without a single line of code from the core, because some of us still find flat interfaces sterile and boring. - **Theming.** The client is a themed shell, and a theme is a portable ZIP of HTML templates and assets that anyone can create. A theme can restyle the entire application and rearrange its navigation without a single line of code from the core, because some of us still find flat interfaces sterile and boring.
- **Plugins.** Upload an assembly or an archive, restart the server, and Lumina picks it up. Anyone can write a plugin to extend what Lumina understands, and a plugin can expose its own settings, which show up in the client. - **Plugins.** Upload an assembly or an archive, restart the server, and Nemera picks it up. Anyone can write a plugin to extend what Nemera understands, and a plugin can expose its own settings, which show up in the client.
- **Scheduled jobs.** Recurring work like library scans is driven by a scheduler with a live dashboard in the client. Watch the jobs run on a real time graph, read their history, and start, stop, fire or remove them on demand. - **Scheduled jobs.** Recurring work like library scans is driven by a scheduler with a live dashboard in the client. Watch the jobs run on a real time graph, read their history, and start, stop, fire or remove them on demand.
- **A local interface in many languages.** The client ships in ten languages and greets each visitor in theirs. - **A local interface in many languages.** The client ships in ten languages and greets each visitor in theirs.
- **Observability.** Lumina logs and traces extensively, and everything it records lives on your machine. Nothing is sent anywhere: no analytics, no usage reporting, no telemetry, no exception reports, nothing leaves your server unless you deliberately wire it to a collector you run yourself. - **Observability.** Nemera logs and traces extensively, and everything it records lives on your machine. Nothing is sent anywhere: no analytics, no usage reporting, no telemetry, no exception reports, nothing leaves your server unless you deliberately wire it to a collector you run yourself.
Video libraries, podcasts and photos are sketched out in the design and on the way, but they are not part of what works today. Video libraries, podcasts and photos are sketched out in the design and on the way, but they are not part of what works today.
## How Lumina is put together ## How Nemera is put together
Lumina is written in C# on .NET 10 and keeps its data in SQLite, so the whole thing stays small enough to run happily on modest hardware. The codebase follows Clean Architecture and Domain Driven Design, and it is built from the ground up to be extended by themes and plugins. If you want the deep version of that story, the architecture documents and the domain model in the repository go all the way down. Nemera is written in C# on .NET 10 and keeps its data in SQLite, so the whole thing stays small enough to run happily on modest hardware. The codebase follows Clean Architecture and Domain Driven Design, and it is built from the ground up to be extended by themes and plugins. If you want the deep version of that story, the architecture documents and the domain model in the repository go all the way down.
## Security ## Security
You are handing Lumina the keys to your files, so it is built to deserve that trust: You are handing Nemera the keys to your files, so it is built to deserve that trust:
- **Locked down by default.** The API authenticates every request, and only endpoints explicitly marked as public can be reached without signing in. Accounts, roles, fine grained permissions and policies decide who may reach which library or content, and sensitive endpoints are rate limited per client IP. - **Locked down by default.** The API authenticates every request, and only endpoints explicitly marked as public can be reached without signing in. Accounts, roles, fine grained permissions and policies decide who may reach which library or content, and sensitive endpoints are rate limited per client IP.
- **Secrets stay secret.** A production deployment must supply its own signing and encryption keys, and the server refuses to start without them. - **Secrets stay secret.** A production deployment must supply its own signing and encryption keys, and the server refuses to start without them.
- **Themes and plugins are treated as untrusted.** Theme packs are validated, their template and asset paths are normalized and confined to the pack, and their archive size, expanded size and entry count are capped. A plugin archive has its directory components stripped, so it cannot write outside the plugin directory, but it has no size or entry limit. Templates render through a small engine that cannot execute code, and a broken theme falls back to the built-in rendering. Themes can still ship their own JavaScript, so only install code from sources you trust. - **Themes and plugins are treated as untrusted.** Theme packs are validated, their template and asset paths are normalized and confined to the pack, and their archive size, expanded size and entry count are capped. A plugin archive has its directory components stripped, so it cannot write outside the plugin directory, but it has no size or entry limit. Templates render through a small engine that cannot execute code, and a broken theme falls back to the built-in rendering. Themes can still ship their own JavaScript, so only install code from sources you trust.
- **Nothing phones home.** Lumina itself makes no outbound connections on its own. It reaches the internet only when your configuration tells it to, for example when you enable a metadata provider. Everything it fetches on your behalf is guarded: before any provider request leaves the server, the host name is resolved, and the request is refused when any address it resolves to is loopback, private, link local, carrier grade NAT or otherwise internal. Provider requests are made directly, never through an outbound HTTP proxy, so the connection is made to the very address that was checked, and a name that changes its answer between the check and the connection cannot slip through. The same guard covers the metadata and artwork calls of the providers, and redirects are followed only to public HTTPS hosts, checking every hop. The single exception is one you opt into, and it covers every request the MusicBrainz provider sends to the base address you configure, including redirects that stay on that host and that may use plain HTTP when the base address itself does: the provider accepts a base address that is not public only when you turn on its `Allow LAN/Private Base URL` setting, which exists for pointing it at a self hosted instance. It does not extend to any other host, and the link local and cloud metadata ranges stay blocked even then. Enabling a web provider is still trusting it to make requests from your server. Everything the client loads, from stylesheets and scripts to images, fonts and icons, is served from your own server, so using the client pings no third party that could note where you are or what you are looking at. One exception ships switched on, and it is worth knowing about: a book can carry its own styles, and those styles can make the browser load resources from outside servers, which those servers could observe. Lumina keeps a book's styles by default because it looks better, so a book from an untrusted source can leak your location this way. The `Preserve book styles` setting (see [Managing Libraries](managing-libraries/index.md)) turns it off, stripping the styles and closing that door, at the cost of the book's original look. - **Nothing phones home.** Nemera itself makes no outbound connections on its own. It reaches the internet only when your configuration tells it to, for example when you enable a metadata provider. Everything it fetches on your behalf is guarded: before any provider request leaves the server, the host name is resolved, and the request is refused when any address it resolves to is loopback, private, link local, carrier grade NAT or otherwise internal. Provider requests are made directly, never through an outbound HTTP proxy, so the connection is made to the very address that was checked, and a name that changes its answer between the check and the connection cannot slip through. The same guard covers the metadata and artwork calls of the providers, and redirects are followed only to public HTTPS hosts, checking every hop. The single exception is one you opt into, and it covers every request the MusicBrainz provider sends to the base address you configure, including redirects that stay on that host and that may use plain HTTP when the base address itself does: the provider accepts a base address that is not public only when you turn on its `Allow LAN/Private Base URL` setting, which exists for pointing it at a self hosted instance. It does not extend to any other host, and the link local and cloud metadata ranges stay blocked even then. Enabling a web provider is still trusting it to make requests from your server. Everything the client loads, from stylesheets and scripts to images, fonts and icons, is served from your own server, so using the client pings no third party that could note where you are or what you are looking at. One exception ships switched on, and it is worth knowing about: a book can carry its own styles, and those styles can make the browser load resources from outside servers, which those servers could observe. Nemera keeps a book's styles by default because it looks better, so a book from an untrusted source can leak your location this way. The `Preserve book styles` setting (see [Managing Libraries](managing-libraries/index.md)) turns it off, stripping the styles and closing that door, at the cost of the book's original look.
- **It is tested, a lot.** Do not take any of this on faith. The project is covered by more than 10,000 tests, including a dedicated security suite, because Lumina puts stability and security ahead of moving fast. - **It is tested, a lot.** Do not take any of this on faith. The project is covered by more than 10,000 tests, including a dedicated security suite, because Nemera puts stability and security ahead of moving fast.
## Documentation, diagrams and comments ## Documentation, diagrams and comments
Lumina takes being readable seriously. Every type and member is documented, and the repository carries far more than this manual: the domain model and the language it speaks, the C4 architecture diagrams, an architecture decision log that records not only what was chosen but why, and a reference for every API endpoint, complete with ready to run request files. Nemera takes being readable seriously. Every type and member is documented, and the repository carries far more than this manual: the domain model and the language it speaks, the C4 architecture diagrams, an architecture decision log that records not only what was chosen but why, and a reference for every API endpoint, complete with ready to run request files.
The aim is that anyone, including someone early in their career, can open the code and follow a thread from an endpoint down through its handler into the domain without having to reverse engineer it. The project is also strict with itself: its naming, formatting, layering, testing and documentation conventions are enforced rather than suggested, and a contribution is expected to respect them. That discipline is exactly what keeps the codebase consistent as it grows. The aim is that anyone, including someone early in their career, can open the code and follow a thread from an endpoint down through its handler into the domain without having to reverse engineer it. The project is also strict with itself: its naming, formatting, layering, testing and documentation conventions are enforced rather than suggested, and a contribution is expected to respect them. That discipline is exactly what keeps the codebase consistent as it grows.
@@ -75,12 +75,12 @@ If you feel like helping out, there is no permission to ask for: read the [contr
## Where the project is ## Where the project is
Lumina is young and moves quickly. It is pre-alpha software: some rooms are furnished, others still have the plans taped to the wall, and both the code and this documentation change often. When a page here disagrees with the application, trust the application. Nemera is young and moves quickly. It is pre-alpha software: some rooms are furnished, others still have the plans taped to the wall, and both the code and this documentation change often. When a page here disagrees with the application, trust the application.
## Credits ## Credits
Lumina stands on the shoulders of others. The visual style is inspired by [Enlightenment](https://www.enlightenment.org/), most icons come from the [Lyra Icon Theme](https://github.com/yeyushengfan258/Lyra-icon-theme/tree/master/src), and several interface icons were adapted from [svgrepo](https://www.svgrepo.com/). Full attribution is kept in the [README](../../README.md). Nemera stands on the shoulders of others. The visual style is inspired by [Enlightenment](https://www.enlightenment.org/), most icons come from the [Lyra Icon Theme](https://github.com/yeyushengfan258/Lyra-icon-theme/tree/master/src), and several interface icons were adapted from [svgrepo](https://www.svgrepo.com/). Full attribution is kept in the [README](../../README.md).
## License ## License
Lumina is licensed under the GPLv3.0. See the [LICENSE](../../LICENSE.md) file for the full text. Nemera is licensed under the GPLv3.0. See the [LICENSE](../../LICENSE.md) file for the full text.
+28 -28
View File
@@ -7,9 +7,9 @@
1. [Introduction](../index.md) 1. [Introduction](../index.md)
2. **Installation** 2. **Installation**
**Using Lumina** **Using Nemera**
3. [Using Lumina](../using-lumina/index.md) 3. [Using Nemera](../using-nemera/index.md)
**Administration** **Administration**
@@ -17,11 +17,11 @@
5. [Plugins](../plugins/index.md) 5. [Plugins](../plugins/index.md)
6. [Themes](../themes/index.md) 6. [Themes](../themes/index.md)
Lumina ships as two applications that talk to each other over the network: the **API server** and the **web client**. You can run both on one machine or split them across many. Nemera ships as two applications that talk to each other over the network: the **API server** and the **web client**. You can run both on one machine or split them across many.
> **Not production ready yet.** Lumina is pre-alpha software. Updates are one way and can lose Lumina's data, so read [Updating](#updating) before you install or upgrade. > **Not production ready yet.** Nemera is pre-alpha software. Updates are one way and can lose Nemera's data, so read [Updating](#updating) before you install or upgrade.
There are **two ways to run Lumina**. Pick one: There are **two ways to run Nemera**. Pick one:
- **[Option A: run with Docker Compose](#option-a-run-with-docker-compose)**, the recommended route, where a single command brings up the whole system. - **[Option A: run with Docker Compose](#option-a-run-with-docker-compose)**, the recommended route, where a single command brings up the whole system.
- **[Option B: run the applications directly](#option-b-run-the-applications-directly)**, whether you install a release package or build from source, if you would rather run them without containers. - **[Option B: run the applications directly](#option-b-run-the-applications-directly)**, whether you install a release package or build from source, if you would rather run them without containers.
@@ -30,11 +30,11 @@ Everything from Configuration onward applies to whichever route you chose.
## Before you start ## Before you start
- **Docker**, if you want the container route. For a non-container install, you need the Lumina application files, from a release package or installer, or from your own build, plus the **.NET 10 runtime** unless that package is self-contained. The **.NET 10 SDK** is only needed if you build from source. - **Docker**, if you want the container route. For a non-container install, you need the Nemera application files, from a release package or installer, or from your own build, plus the **.NET 10 runtime** unless that package is self-contained. The **.NET 10 SDK** is only needed if you build from source.
- **ffmpeg**, for any non-container install, however you obtained the application files. The API server uses it to remux or transcode audio that the browser cannot play as stored. The Docker API container image already includes it. - **ffmpeg**, for any non-container install, however you obtained the application files. The API server uses it to remux or transcode audio that the browser cannot play as stored. The Docker API container image already includes it.
- By default the **web client listens on port `5012`** and the **API on port `5214`**. You can change either, as long as the two agree on where the API is (see [Configuration](#configuration)). - By default the **web client listens on port `5012`** and the **API on port `5214`**. You can change either, as long as the two agree on where the API is (see [Configuration](#configuration)).
- For anything reachable beyond your own machine, put a **reverse proxy** in front to terminate TLS and forward to the web client. - For anything reachable beyond your own machine, put a **reverse proxy** in front to terminate TLS and forward to the web client.
- Lumina needs **no external database server**. It keeps its data in a local SQLite file that is created automatically. - Nemera needs **no external database server**. It keeps its data in a local SQLite file that is created automatically.
## Option A: run with Docker Compose ## Option A: run with Docker Compose
@@ -54,16 +54,16 @@ This starts the following services:
| Service | Purpose | Address or endpoint | | Service | Purpose | Address or endpoint |
| --- | --- | --- | | --- | --- | --- |
| `lumina-web` | Web client | http://localhost:5012 | | `nemera-web` | Web client | http://localhost:5012 |
| `lumina-api` | API server | http://localhost:5214 | | `nemera-api` | API server | http://localhost:5214 |
| `otel-collector` | Receives OpenTelemetry data | OTLP at `localhost:4317` (gRPC) and `localhost:4318` (HTTP) | | `otel-collector` | Receives OpenTelemetry data | OTLP at `localhost:4317` (gRPC) and `localhost:4318` (HTTP) |
| `jaeger` | Trace search | http://localhost:16686 | | `jaeger` | Trace search | http://localhost:16686 |
| `prometheus` | Metrics | http://localhost:9090 | | `prometheus` | Metrics | http://localhost:9090 |
| `grafana` | Dashboards | http://localhost:3000 (bound to `127.0.0.1`) | | `grafana` | Dashboards | http://localhost:3000 (bound to `127.0.0.1`) |
Inside the stack, the web client is pointed at the API with the `ServerConfiguration__BaseAddress=http://lumina-api` environment variable, and the API and web client ship their telemetry to the collector. Inside the stack, the web client is pointed at the API with the `ServerConfiguration__BaseAddress=http://nemera-api` environment variable, and the API and web client ship their telemetry to the collector.
The observability stack is meant for local development. Grafana signs in with `admin` and a password defaulting to `lumina-admin`, which you must override for any real deployment: The observability stack is meant for local development. Grafana signs in with `admin` and a password defaulting to `nemera-admin`, which you must override for any real deployment:
```bash ```bash
GRAFANA_ADMIN_PASSWORD=change-me docker compose up GRAFANA_ADMIN_PASSWORD=change-me docker compose up
@@ -76,23 +76,23 @@ The development configuration embeds throwaway keys so the container route works
- `JwtSettings__SecretKey`: the signing key for authentication tokens. - `JwtSettings__SecretKey`: the signing key for authentication tokens.
- `EncryptionSettings__SecretKey`: a base64 encryption key, used by both the API and the web client. - `EncryptionSettings__SecretKey`: a base64 encryption key, used by both the API and the web client.
Set them as environment variables on the `lumina-api` and `lumina-web` services in your own compose file or orchestration. Set them as environment variables on the `nemera-api` and `nemera-web` services in your own compose file or orchestration.
## Option B: run the applications directly ## Option B: run the applications directly
Use a release package or installer when one is available, or, with the .NET 10 SDK installed, build the solution from the `src` directory: Use a release package or installer when one is available, or, with the .NET 10 SDK installed, build the solution from the `src` directory:
```bash ```bash
dotnet build Lumina.slnx dotnet build Nemera.slnx
``` ```
Run the API and the web client from the installed release package or from the published build. In development, their addresses come from each project's `launchSettings.json` (`http://localhost:5214` and `http://localhost:5012`). When you run a published build directly on a host, set the addresses yourself, either with `ASPNETCORE_URLS` or with `ASPNETCORE_HTTP_PORTS`: Run the API and the web client from the installed release package or from the published build. In development, their addresses come from each project's `launchSettings.json` (`http://localhost:5214` and `http://localhost:5012`). When you run a published build directly on a host, set the addresses yourself, either with `ASPNETCORE_URLS` or with `ASPNETCORE_HTTP_PORTS`:
```bash ```bash
ASPNETCORE_HTTP_PORTS=5012 dotnet Lumina.Presentation.Web.dll ASPNETCORE_HTTP_PORTS=5012 dotnet Nemera.Presentation.Web.dll
``` ```
The API creates its SQLite database (`Lumina.db`) next to its own binary and applies any pending migrations at startup, so the first launch sets up the schema on its own. The API creates its SQLite database (`Nemera.db`) next to its own binary and applies any pending migrations at startup, so the first launch sets up the schema on its own.
The API server needs **ffmpeg** on its `PATH` to normalize audio that a player cannot play as stored. Install it with your platform's package manager, or point `TranscodingSettings:FfmpegPath` at the binary if it is somewhere else. The API server needs **ffmpeg** on its `PATH` to normalize audio that a player cannot play as stored. Install it with your platform's package manager, or point `TranscodingSettings:FfmpegPath` at the binary if it is somewhere else.
@@ -120,7 +120,7 @@ The settings that matter most when installing:
The `LOG_PATH` environment variable selects where the rolling log files are written. The `LOG_PATH` environment variable selects where the rolling log files are written.
The normalized audio cache must not be placed inside `MediaSettings:RootDirectory`, because that directory is served at the `/media` route, and it must not contain that directory either, because cleaning the cache would remove the media. The startup configuration also rejects a cache directory that is a filesystem root, the application directory or one of its parents, or that overlaps the logs or plugins directories. The default uses a private directory under the API account's temporary directory and avoids all of these. The cache holds transcoded or remuxed audio only while it is useful: at API startup only the entries the cache itself owns are removed, and a directory is cleaned only when it carries Lumina's cache marker file (`.lumina-transcoding-cache`) or is empty, so a directory that belongs to something else is left untouched. Its total footprint is capped by `TranscodingSettings:MaxCacheBytes`, but an entry that is still being read, or that was just produced when the cache was already at the limit, is kept until it can be removed, so the cache can exceed the cap temporarily. The cache is not part of the media library. The normalized audio cache must not be placed inside `MediaSettings:RootDirectory`, because that directory is served at the `/media` route, and it must not contain that directory either, because cleaning the cache would remove the media. The startup configuration also rejects a cache directory that is a filesystem root, the application directory or one of its parents, or that overlaps the logs or plugins directories. The default uses a private directory under the API account's temporary directory and avoids all of these. The cache holds transcoded or remuxed audio only while it is useful: at API startup only the entries the cache itself owns are removed, and a directory is cleaned only when it carries Nemera's cache marker file (`.nemera-transcoding-cache`) or is empty, so a directory that belongs to something else is left untouched. Its total footprint is capped by `TranscodingSettings:MaxCacheBytes`, but an entry that is still being read, or that was just produced when the cache was already at the limit, is kept until it can be removed, so the cache can exceed the cap temporarily. The cache is not part of the media library.
The default cache directory is scoped to the API account, but the coordinator, the running jobs and the startup cleanup are per process. Run a single API process per account and host, or configure a distinct `CacheDirectory` for each instance. Playback delivery handles are also process local: in a load balanced multi-instance deployment, a track's manifest and its subsequent segment requests must reach the same API instance, so configure sticky routing for them as described for SignalR below. On a multi-user Unix host the directory is created with private permissions, and a pre-existing directory owned by another account is treated as unavailable rather than reused or deleted. The default cache directory is scoped to the API account, but the coordinator, the running jobs and the startup cleanup are per process. Run a single API process per account and host, or configure a distinct `CacheDirectory` for each instance. Playback delivery handles are also process local: in a load balanced multi-instance deployment, a track's manifest and its subsequent segment requests must reach the same API instance, so configure sticky routing for them as described for SignalR below. On a multi-user Unix host the directory is created with private permissions, and a pre-existing directory owned by another account is treated as unavailable rather than reused or deleted.
@@ -135,15 +135,15 @@ The shipped defaults (`http://localhost:5012` for the client, `http://localhost:
## Running behind a reverse proxy ## Running behind a reverse proxy
A reverse proxy in front of the web client should forward the standard `X-Forwarded-For`, `X-Forwarded-Proto` and `X-Forwarded-Host` headers, because the client uses them to reconstruct the original request. If you host Lumina under a subpath, forward `X-Forwarded-Prefix` as well; the client honors it as its path base. A reverse proxy in front of the web client should forward the standard `X-Forwarded-For`, `X-Forwarded-Proto` and `X-Forwarded-Host` headers, because the client uses them to reconstruct the original request. If you host Nemera under a subpath, forward `X-Forwarded-Prefix` as well; the client honors it as its path base.
```nginx ```nginx
# Nginx # Nginx
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Host $host;
# only when hosting under a subpath, for example /lumina # only when hosting under a subpath, for example /nemera
proxy_set_header X-Forwarded-Prefix /lumina; proxy_set_header X-Forwarded-Prefix /nemera;
``` ```
```apache ```apache
@@ -152,8 +152,8 @@ ProxyPreserveHost On
RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}s" RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}s"
RequestHeader set X-Forwarded-Proto "https" RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Host "%{Host}i" RequestHeader set X-Forwarded-Host "%{Host}i"
# only when hosting under a subpath, for example /lumina # only when hosting under a subpath, for example /nemera
RequestHeader set X-Forwarded-Prefix "/lumina" RequestHeader set X-Forwarded-Prefix "/nemera"
``` ```
```text ```text
@@ -162,8 +162,8 @@ reverse_proxy localhost:5012 {
header_up X-Forwarded-For {remote_host} header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme} header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-Host {host} header_up X-Forwarded-Host {host}
# only when hosting under a subpath, for example /lumina # only when hosting under a subpath, for example /nemera
header_up X-Forwarded-Prefix /lumina header_up X-Forwarded-Prefix /nemera
} }
``` ```
@@ -188,19 +188,19 @@ Both applications expose liveness and readiness probes that container orchestrat
## First run ## First run
Open the web client in a browser. When no account exists yet, Lumina detects that the application has not been set up and sends you to create the administrator account. Fill in the form, and you are signed in and ready to create your first library. Open the web client in a browser. When no account exists yet, Nemera detects that the application has not been set up and sends you to create the administrator account. Fill in the form, and you are signed in and ready to create your first library.
## Updating ## Updating
Updating Lumina is not a step to take lightly. The API applies any pending database migrations at startup, and those migrations can change the schema and the way Lumina's own data is stored. That work is one way: there is no downgrade path and no built in rollback, so once an update has run you cannot simply reinstall the previous version and expect everything to be where you left it. Updating Nemera is not a step to take lightly. The API applies any pending database migrations at startup, and those migrations can change the schema and the way Nemera's own data is stored. That work is one way: there is no downgrade path and no built in rollback, so once an update has run you cannot simply reinstall the previous version and expect everything to be where you left it.
Bugs happen, and an update is a place they can bite. A migration can transform Lumina's data incorrectly, fail partway through, or leave your instance in a state that only reveals itself after it is too late to walk back. When that happens, data loss is possible, and the only thing standing between you and it is a backup you made yourself. Your original media files are only ever read, so they are not what is at stake here; what an update can affect is the data Lumina keeps for itself. Bugs happen, and an update is a place they can bite. A migration can transform Nemera's data incorrectly, fail partway through, or leave your instance in a state that only reveals itself after it is too late to walk back. When that happens, data loss is possible, and the only thing standing between you and it is a backup you made yourself. Your original media files are only ever read, so they are not what is at stake here; what an update can affect is the data Nemera keeps for itself.
That is why **backing up before every update is mandatory, not optional**. Before you update: That is why **backing up before every update is mandatory, not optional**. Before you update:
1. Stop the API, so nothing is writing to the database. 1. Stop the API, so nothing is writing to the database.
2. Copy the SQLite database file (`Lumina.db`, next to the API binary). 2. Copy the SQLite database file (`Nemera.db`, next to the API binary).
3. Copy your installed plugins and themes. 3. Copy your installed plugins and themes.
4. Only then pull the new images, or rebuild, and restart. 4. Only then pull the new images, or rebuild, and restart.
Lumina is free and open source software, provided as is, without warranty of any kind. The project cannot recover data that was lost to an update, and assumes no responsibility for the outcome if you update without a backup. Treat the backup as part of the update, not as advice. Nemera is free and open source software, provided as is, without warranty of any kind. The project cannot recover data that was lost to an update, and assumes no responsibility for the outcome if you update without a backup. Treat the backup as part of the update, not as advice.
+27 -27
View File
@@ -7,9 +7,9 @@
1. [Introduction](../index.md) 1. [Introduction](../index.md)
2. [Installation](../installation/index.md) 2. [Installation](../installation/index.md)
**Using Lumina** **Using Nemera**
3. [Using Lumina](../using-lumina/index.md) 3. [Using Nemera](../using-nemera/index.md)
**Administration** **Administration**
@@ -17,7 +17,7 @@
5. [Plugins](../plugins/index.md) 5. [Plugins](../plugins/index.md)
6. [Themes](../themes/index.md) 6. [Themes](../themes/index.md)
A media library is how you tell Lumina where a part of your collection lives and what kind of media it holds. Lumina does not wander your disk on its own: you create a library, point it at one or more folders, and only then does it read those folders and build a catalogue of what is inside them. This page covers everything you can do with a library: creating it, teaching it how to read your folders, scanning it, editing it, and removing it. A media library is how you tell Nemera where a part of your collection lives and what kind of media it holds. Nemera does not wander your disk on its own: you create a library, point it at one or more folders, and only then does it read those folders and build a catalogue of what is inside them. This page covers everything you can do with a library: creating it, teaching it how to read your folders, scanning it, editing it, and removing it.
## What a library is ## What a library is
@@ -27,12 +27,12 @@ The library keeps a catalogue of the items it indexed, together with their metad
## Supported library types and file formats ## Supported library types and file formats
Lumina can scan two kinds of libraries today: Nemera can scan two kinds of libraries today:
- **Book** libraries, for books and e-books. During discovery Lumina recognizes these file extensions: `.pdf`, `.epub`, `.mobi`, `.azw`, `.azw3`, `.cbz`, `.cbr`, `.djvu`, `.fb2`, `.lit`, `.prc`, `.txt`, `.doc`, `.docx` and `.rtf`. Of those, the ones a user can open and read in the browser depend on the enabled reader plugins. The EPUB and PDF readers are bundled with Lumina, but readers are disabled by default, so a book library cannot open any book until you enable a reader for it. The rest are still indexed and listed in the catalogue, but cannot be opened for reading until a reader for their format is enabled. - **Book** libraries, for books and e-books. During discovery Nemera recognizes these file extensions: `.pdf`, `.epub`, `.mobi`, `.azw`, `.azw3`, `.cbz`, `.cbr`, `.djvu`, `.fb2`, `.lit`, `.prc`, `.txt`, `.doc`, `.docx` and `.rtf`. Of those, the ones a user can open and read in the browser depend on the enabled reader plugins. The EPUB and PDF readers are bundled with Nemera, but readers are disabled by default, so a book library cannot open any book until you enable a reader for it. The rest are still indexed and listed in the catalogue, but cannot be opened for reading until a reader for their format is enabled.
- **Music** libraries, for artists, albums and tracks. During discovery Lumina recognizes these file extensions: `.mp3`, `.flac`, `.m4a`, `.aac`, `.ogg`, `.opus`, `.wav`, `.wma`, `.aiff`, `.aif`, `.ape`, `.wv`, `.dsf`, `.dff` and `.mka`. - **Music** libraries, for artists, albums and tracks. During discovery Nemera recognizes these file extensions: `.mp3`, `.flac`, `.m4a`, `.aac`, `.ogg`, `.opus`, `.wav`, `.wma`, `.aiff`, `.aif`, `.ape`, `.wv`, `.dsf`, `.dff` and `.mka`.
The other types in Lumina's model, such as movies, TV shows, comics, manga, photos, podcasts and audiobooks, are designed but not implemented yet. There is no scanner for them, so they cannot be scanned. The other types in Nemera's model, such as movies, TV shows, comics, manga, photos, podcasts and audiobooks, are designed but not implemented yet. There is no scanner for them, so they cannot be scanned.
A scan includes hidden files and folders, unless the library is set to skip them. A scan includes hidden files and folders, unless the library is set to skip them.
@@ -45,17 +45,17 @@ Open the Libraries management page, choose to add a library, and fill in the for
| Title | none | The name of the library, for example `Books` or `Music`. Required, up to 255 characters. | | Title | none | The name of the library, for example `Books` or `Music`. Required, up to 255 characters. |
| Type | none | The media type. Choose `Book` or `Music` today. Required. | | Type | none | The media type. Choose `Book` or `Music` today. Required. |
| Content locations | none | The folders that make up the library. Required, and you can add more than one. Pick them with the built-in file system browser, which reaches folders on the server from any browser. Each path can be up to 260 characters. | | Content locations | none | The folders that make up the library. Required, and you can add more than one. Pick them with the built-in file system browser, which reaches folders on the server from any browser. Each path can be up to 260 characters. |
| Cover image | none | Optional. A picture that represents the library. Must be a real image file; it is copied into Lumina's own storage and renamed, so moving or deleting the original later does not affect it. | | Cover image | none | Optional. A picture that represents the library. Must be a real image file; it is copied into Nemera's own storage and renamed, so moving or deleting the original later does not affect it. |
| Enabled | on | Whether the library is active. A disabled library is never shown and never touched. | | Enabled | on | Whether the library is active. A disabled library is never shown and never touched. |
| Locked | off | Whether the library is frozen. A locked library is still shown, but is never changed or updated, scans included. | | Locked | off | Whether the library is frozen. A locked library is still shown, but is never changed or updated, scans included. |
| Download metadata from the web | on | Whether Lumina may look up the metadata of the items online. This only has an effect when a metadata provider is enabled for the library (see [Plugins](../plugins/index.md)). | | Download metadata from the web | on | Whether Nemera may look up the metadata of the items online. This only has an effect when a metadata provider is enabled for the library (see [Plugins](../plugins/index.md)). |
| Save metadata in media directories | off | Whether the metadata Lumina fetches is also written next to your media files, so other tools can read it. This is the one option that writes into your media folders. | | Save metadata in media directories | off | Whether the metadata Nemera fetches is also written next to your media files, so other tools can read it. This is the one option that writes into your media folders. |
| Skip unchanged directories during scan | off | An opt-in speedup that skips folders whose own last-modified time has not changed since the last scan. Editing the contents of an existing file in place, without adding, removing or renaming anything in that folder, leaves the folder's time untouched, so that edit can be missed while it is on. | | Skip unchanged directories during scan | off | An opt-in speedup that skips folders whose own last-modified time has not changed since the last scan. Editing the contents of an existing file in place, without adding, removing or renaming anything in that folder, leaves the folder's time untouched, so that edit can be missed while it is on. |
| Skip hidden files and directories during scan | off | Whether hidden files and hidden folders are left out of the scan. Off indexes them like any other item. | | Skip hidden files and directories during scan | off | Whether hidden files and hidden folders are left out of the scan. Off indexes them like any other item. |
| Content is on SSD | off | Whether the folders of this library are stored on a solid state drive. When on, the file discovery and content hashing stages read several files at the same time, which is faster on solid state drives. Leave it off for mechanical hard drives, where reading files in parallel can slow the scan down. | | Content is on SSD | off | Whether the folders of this library are stored on a solid state drive. When on, the file discovery and content hashing stages read several files at the same time, which is faster on solid state drives. Leave it off for mechanical hard drives, where reading files in parallel can slow the scan down. |
| Track consumption progress | the type default | Whether the latest playback or reading position of the library's items is remembered, so a user can resume where they left off. | | Track consumption progress | the type default | Whether the latest playback or reading position of the library's items is remembered, so a user can resume where they left off. |
| Completion threshold | the type default | The percentage of an item that must be consumed for a stopped session to be recorded as completed. Empty means completion is recorded only when it is reported explicitly. | | Completion threshold | the type default | The percentage of an item that must be consumed for a stopped session to be recorded as completed. Empty means completion is recorded only when it is reported explicitly. |
| Path template | the type's ideal structure | Tells Lumina how your folders are arranged on disk. Unless you customize it, it holds the default template of the library type, which is exactly the structure Lumina expects. Optional, and explained in full below. | | Path template | the type's ideal structure | Tells Nemera how your folders are arranged on disk. Unless you customize it, it holds the default template of the library type, which is exactly the structure Nemera expects. Optional, and explained in full below. |
| Metadata providers, artwork providers, book readers | all off | The plugins that fill in the library's metadata and artwork, and, for a book library, open its books. The form lists the ones that support the selected type and refreshes the lists when you change the type. Each is switched on or off, and providers are put in order. A section is hidden when no installed plugin offers that kind of provider for the type. See [Plugins](../plugins/index.md). | | Metadata providers, artwork providers, book readers | all off | The plugins that fill in the library's metadata and artwork, and, for a book library, open its books. The form lists the ones that support the selected type and refreshes the lists when you change the type. Each is switched on or off, and providers are put in order. A section is hidden when no installed plugin offers that kind of provider for the type. See [Plugins](../plugins/index.md). |
A library that is disabled or locked is never scanned, so those two settings double as a pause switch, and `Locked` also freezes edits. A library that is disabled or locked is never scanned, so those two settings double as a pause switch, and `Locked` also freezes edits.
@@ -64,9 +64,9 @@ Everything on the form, provider choices included, is saved in one step when you
## Path templates ## Path templates
To make sense of your files, Lumina needs to know how they are arranged. A path template describes that arrangement as an ordered list of parts, and Lumina uses it to pull values such as an author and a title, or an artist, a release and a track number, straight out of the folder and file names. To make sense of your files, Nemera needs to know how they are arranged. A path template describes that arrangement as an ordered list of parts, and Nemera uses it to pull values such as an author and a title, or an artist, a release and a track number, straight out of the folder and file names.
A template is optional. Unless you customize it, Lumina uses the default template of the library type, which describes the structure it expects. You only need to touch it when your folders do not follow that structure. A template is optional. Unless you customize it, Nemera uses the default template of the library type, which describes the structure it expects. You only need to touch it when your folders do not follow that structure.
### The parts a template is made of ### The parts a template is made of
@@ -110,21 +110,21 @@ The bracketed part is the optional run, present only for multi disc releases.
### Matching rules ### Matching rules
A file's path is read relative to the content location it was found under, and only counts as a match when the whole relative path fits the template. When it does, Lumina reads the values it needs; when it does not, the item is still indexed, Lumina simply cannot read those values from the path. For books, an unmatched item falls back to a title derived from its file name. For music, the values embedded in the file's tags take priority over the ones read from the path anyway, so the path template mostly fills in what the tags are missing. A file's path is read relative to the content location it was found under, and only counts as a match when the whole relative path fits the template. When it does, Nemera reads the values it needs; when it does not, the item is still indexed, Nemera simply cannot read those values from the path. For books, an unmatched item falls back to a title derived from its file name. For music, the values embedded in the file's tags take priority over the ones read from the path anyway, so the path template mostly fills in what the tags are missing.
A template is checked before it is saved. A literal part must not be empty, a typed part must contain exactly one value placeholder, and every part kind must be one the library type actually supports. An empty template is always valid and means the type's default. A template is checked before it is saved. A literal part must not be empty, a typed part must contain exactly one value placeholder, and every part kind must be one the library type actually supports. An empty template is always valid and means the type's default.
### Changing the template later ### Changing the template later
The template is read on every scan, so changing it changes how your folders are interpreted from the next scan onward. If you change it after items have already been catalogued, run a scan and check the results, because the titles and numbers Lumina derives from paths can change, and an item whose path no longer matches will be catalogued with fallback values instead. The template is read on every scan, so changing it changes how your folders are interpreted from the next scan onward. If you change it after items have already been catalogued, run a scan and check the results, because the titles and numbers Nemera derives from paths can change, and an item whose path no longer matches will be catalogued with fallback values instead.
## Scanning a library ## Scanning a library
Creating a library only records where the media lives. To actually read it, you scan it. You can scan a single library, or ask Lumina to scan all of them, from the Libraries page. Only one scan runs at a time: a scan that is requested while another one is running waits in the scan queue, and starts on its own when the scan ahead of it finishes. Creating a library only records where the media lives. To actually read it, you scan it. You can scan a single library, or ask Nemera to scan all of them, from the Libraries page. Only one scan runs at a time: a scan that is requested while another one is running waits in the scan queue, and starts on its own when the scan ahead of it finishes.
Lumina is designed to be efficient and performant. The first scan of a library reads and indexes everything it finds, so it is the slowest one. Every scan after that compares what is on disk against the previous scan and only processes what is new or changed, so it is normally much faster. How long any scan takes also depends on what is enabled for the library: metadata and artwork providers that fetch data from the web add network time on top of reading the files, and they do it only for the items that need it. Nemera is designed to be efficient and performant. The first scan of a library reads and indexes everything it finds, so it is the slowest one. Every scan after that compares what is on disk against the previous scan and only processes what is new or changed, so it is normally much faster. How long any scan takes also depends on what is enabled for the library: metadata and artwork providers that fetch data from the web add network time on top of reading the files, and they do it only for the items that need it.
How the scan reads the files depends on the hardware that stores them. A library whose content is on a solid state drive can discover and hash several files at the same time, so turn on **Content is on SSD** for it. A library on a mechanical hard drive should keep that setting off, because parallel reads make the drive seek back and forth and can make the scan slower. Metadata extraction and artwork resolution still read the files one at a time; this setting only changes file discovery and content hashing. Even when the parallel reads are on, Lumina leaves one processor free, so the rest of the application keeps responding while it scans. How the scan reads the files depends on the hardware that stores them. A library whose content is on a solid state drive can discover and hash several files at the same time, so turn on **Content is on SSD** for it. A library on a mechanical hard drive should keep that setting off, because parallel reads make the drive seek back and forth and can make the scan slower. Metadata extraction and artwork resolution still read the files one at a time; this setting only changes file discovery and content hashing. Even when the parallel reads are on, Nemera leaves one processor free, so the rest of the application keeps responding while it scans.
Scans run on the server in the background, so once one starts you can close the browser and come back later. Scans run on the server in the background, so once one starts you can close the browser and come back later.
@@ -137,13 +137,13 @@ A disabled or locked library is refused a scan, and a library whose type has no
Editing a library reopens the same form, and changes take effect on the next scan. Beyond the fields above, two things change the wider picture: Editing a library reopens the same form, and changes take effect on the next scan. Beyond the fields above, two things change the wider picture:
- Changing the **type** of an existing library updates the provider lists on the form right away, so you can adjust them before saving: providers the library already has keep their on or off setting and their order when the new type still supports them, providers that only the new type supports are added switched off, and providers the new type does not support are removed, together with their settings, when you save. - Changing the **type** of an existing library updates the provider lists on the form right away, so you can adjust them before saving: providers the library already has keep their on or off setting and their order when the new type still supports them, providers that only the new type supports are added switched off, and providers the new type does not support are removed, together with their settings, when you save.
- Changing the **content locations** takes effect on the next scan. Items found under a location you removed are dropped from the catalogue, along with the metadata and artwork Lumina had stored for them, and items under a location you added are picked up. - Changing the **content locations** takes effect on the next scan. Items found under a location you removed are dropped from the catalogue, along with the metadata and artwork Nemera had stored for them, and items under a location you added are picked up.
## Progress tracking and completion thresholds ## Progress tracking and completion thresholds
Two settings on a library decide whether Lumina remembers where you stopped and when a session is complete. They apply to every user of that library. Two settings on a library decide whether Nemera remembers where you stopped and when a session is complete. They apply to every user of that library.
- **Track consumption progress** decides whether the latest playback or reading position of an item is remembered and offered as the resume position. When it is off, Lumina stores no resume point for the library's items. - **Track consumption progress** decides whether the latest playback or reading position of an item is remembered and offered as the resume position. When it is off, Nemera stores no resume point for the library's items.
- **Completion threshold** is the percentage of an item at which a stopped session is recorded as completed instead of stopped. It is set only while tracking is on, and it can be left empty. - **Completion threshold** is the percentage of an item at which a stopped session is recorded as completed instead of stopped. It is set only while tracking is on, and it can be left empty.
When a session ends, the settings decide its status: When a session ends, the settings decide its status:
@@ -165,19 +165,19 @@ The defaults by library type are:
For now, only Book and Music libraries produce a working catalogue, so the written content and music defaults are the ones you will meet. Other library types can still be created, and their rows are the defaults they will use when their catalogues arrive. A value you set on a library always wins after the library is created. For now, only Book and Music libraries produce a working catalogue, so the written content and music defaults are the ones you will meet. Other library types can still be created, and their rows are the defaults they will use when their catalogues arrive. A value you set on a library always wins after the library is created.
When you add a library without changing these fields, Lumina applies the default of its type. When you turn tracking on for a library whose type has no default threshold, the threshold stays empty and completion is recorded only when it is reported explicitly. An empty threshold is not zero: zero would complete every stopped session as soon as it stops. When you add a library without changing these fields, Nemera applies the default of its type. When you turn tracking on for a library whose type has no default threshold, the threshold stays empty and completion is recorded only when it is reported explicitly. An empty threshold is not zero: zero would complete every stopped session as soon as it stops.
The threshold must be a whole number from 0 to 100, and the form refuses any other value. Changing it affects sessions that stop afterwards; a session that was already recorded keeps the status it was recorded with. Turning tracking off clears the threshold. The setting does not change what a library can play or read, only whether a resume point is kept and how a stopped session is recorded. The threshold must be a whole number from 0 to 100, and the form refuses any other value. Changing it affects sessions that stop afterwards; a session that was already recorded keeps the status it was recorded with. Turning tracking off clears the threshold. The setting does not change what a library can play or read, only whether a resume point is kept and how a stopped session is recorded.
## Deleting a library ## Deleting a library
Deleting a library removes it from Lumina: its configuration, its scan history, the items in its catalogue, their metadata and the artwork Lumina stored for them, and its provider settings. The cover image Lumina copied into its own storage is removed as well. Your original files are left untouched. Deleting a library removes it from Nemera: its configuration, its scan history, the items in its catalogue, their metadata and the artwork Nemera stored for them, and its provider settings. The cover image Nemera copied into its own storage is removed as well. Your original files are left untouched.
Deletion is not reversible from Lumina. If you want the library back afterwards, you recreate it and scan again. Because of that, and because this is pre-alpha software, treat deletion as final and make sure of what you are deleting. Deletion is not reversible from Nemera. If you want the library back afterwards, you recreate it and scan again. Because of that, and because this is pre-alpha software, treat deletion as final and make sure of what you are deleting.
## Where your files live ## Where your files live
Content locations are folders on the machine that runs the API server, and the file system browser is how you reach them from wherever you happen to be. Folders under the media root that Lumina manages itself (its database, the cover images it copies, the artwork and thumbnails it generates, and the plugin and theme storage) live in Lumina's own storage rather than in your media folders, so your folders stay yours. Content locations are folders on the machine that runs the API server, and the file system browser is how you reach them from wherever you happen to be. Folders under the media root that Nemera manages itself (its database, the cover images it copies, the artwork and thumbnails it generates, and the plugin and theme storage) live in Nemera's own storage rather than in your media folders, so your folders stay yours.
## Settings that affect your libraries ## Settings that affect your libraries
@@ -201,8 +201,8 @@ These are per user settings, each user changes their own from the settings page
- **`Content is on SSD` changes how file discovery and content hashing read files.** Turn it on only when the folders of the library really are on a solid state drive. On a mechanical hard drive, parallel reads can make those stages slower than sequential ones. - **`Content is on SSD` changes how file discovery and content hashing read files.** Turn it on only when the folders of the library really are on a solid state drive. On a mechanical hard drive, parallel reads can make those stages slower than sequential ones.
- **`Locked` blocks everything.** A locked library is not scanned and not updated, including by the scheduler. - **`Locked` blocks everything.** A locked library is not scanned and not updated, including by the scheduler.
- **`Disabled` hides the library.** A disabled library is neither shown on the dashboard nor touched. - **`Disabled` hides the library.** A disabled library is neither shown on the dashboard nor touched.
- **Deleting a library removes Lumina's catalogue for it.** The files remain, but the metadata and artwork Lumina held for that library do not. Consumption history and resume points are kept as records of what was consumed. The history shows the items as unavailable until you delete it. **Remove from continue watching** removes every resume point of the selected user, not only the ones from the deleted library. - **Deleting a library removes Nemera's catalogue for it.** The files remain, but the metadata and artwork Nemera held for that library do not. Consumption history and resume points are kept as records of what was consumed. The history shows the items as unavailable until you delete it. **Remove from continue watching** removes every resume point of the selected user, not only the ones from the deleted library.
- **Removing a folder from a library, or deleting a file, removes its catalogued items on the next scan.** The catalogue tracks what is on disk, so what disappears from disk also disappears from Lumina, along with the metadata and artwork Lumina stored for it. - **Removing a folder from a library, or deleting a file, removes its catalogued items on the next scan.** The catalogue tracks what is on disk, so what disappears from disk also disappears from Nemera, along with the metadata and artwork Nemera stored for it.
- **Changing the path template can change how items are read.** Re-scan and check the results after a change. - **Changing the path template can change how items are read.** Re-scan and check the results after a change.
- **Tracking off means no resume points.** A library that does not track consumption progress never offers a saved position, even if a client reports one. - **Tracking off means no resume points.** A library that does not track consumption progress never offers a saved position, even if a client reports one.
- **An empty completion threshold is not zero.** Empty means completion is recorded only when it is reported explicitly, while zero completes a stopped session immediately. - **An empty completion threshold is not zero.** Empty means completion is recorded only when it is reported explicitly, while zero completes a stopped session immediately.
+9 -9
View File
@@ -7,9 +7,9 @@
1. [Introduction](../index.md) 1. [Introduction](../index.md)
2. [Installation](../installation/index.md) 2. [Installation](../installation/index.md)
**Using Lumina** **Using Nemera**
3. [Using Lumina](../using-lumina/index.md) 3. [Using Nemera](../using-nemera/index.md)
**Administration** **Administration**
@@ -17,7 +17,7 @@
5. **Plugins** 5. **Plugins**
6. [Themes](../themes/index.md) 6. [Themes](../themes/index.md)
Plugins are how Lumina learns to understand more than its core knows. They supply the metadata and the artwork of your library items, and they open book formats for reading. They are separate units you install, enable, rank and configure, so the core stays lean and the knowing arrives in pieces that you control. Plugins are how Nemera learns to understand more than its core knows. They supply the metadata and the artwork of your library items, and they open book formats for reading. They are separate units you install, enable, rank and configure, so the core stays lean and the knowing arrives in pieces that you control.
## What a plugin can do ## What a plugin can do
@@ -27,7 +27,7 @@ A plugin can provide one or more of three capabilities:
- **Artwork providers** supply the covers and other images of a library item. - **Artwork providers** supply the covers and other images of a library item.
- **Book readers** open a book format and turn it into something the browser can render, with the original layout, styling and structure. - **Book readers** open a book format and turn it into something the browser can render, with the original layout, styling and structure.
Lumina ships with these plugins: Nemera ships with these plugins:
| Plugin | Provides | For | Needs web | What it does | | Plugin | Provides | For | Needs web | What it does |
| --- | --- | --- | --- | --- | | --- | --- | --- | --- | --- |
@@ -54,10 +54,10 @@ Once installed and restarted, the plugin appears on the Plugins page with its na
Each plugin is listed with one of two states: Each plugin is listed with one of two states:
- **Loaded**, meaning Lumina found and initialized it. - **Loaded**, meaning Nemera found and initialized it.
- **Failed to load**, meaning the assembly was found but could not be initialized, in which case the page also shows the error. A plugin that fails to load contributes nothing. - **Failed to load**, meaning the assembly was found but could not be initialized, in which case the page also shows the error. A plugin that fails to load contributes nothing.
Lumina reconciles the list at every startup. A plugin that is no longer present in the storage directory is forgotten, together with the per library settings that referenced it. Nemera reconciles the list at every startup. A plugin that is no longer present in the storage directory is forgotten, together with the per library settings that referenced it.
## Uninstalling a plugin ## Uninstalling a plugin
@@ -75,16 +75,16 @@ A plugin that supports a library type but is not wanted for a particular library
## Plugin settings ## Plugin settings
A plugin can declare its own settings, which Lumina renders on the Plugins page next to it. Each setting is one of four kinds: a text field, a number, a true/false switch, or a choice from a fixed list. Values you save are stored by Lumina and handed to the plugin on the next run. A plugin can declare its own settings, which Nemera renders on the Plugins page next to it. Each setting is one of four kinds: a text field, a number, a true/false switch, or a choice from a fixed list. Values you save are stored by Nemera and handed to the plugin on the next run.
The shipped plugins use these settings for practical things, such as the base address of a service, a contact email for a polite API client, lookup limits, and the minimum interval between requests. These settings are global to the plugin, not per library. The shipped plugins use these settings for practical things, such as the base address of a service, a contact email for a polite API client, lookup limits, and the minimum interval between requests. These settings are global to the plugin, not per library.
## Writing your own plugin ## Writing your own plugin
Anyone can write a plugin, and it is the intended way to teach Lumina about a new source or a new format. A plugin is a .NET assembly targeting the same framework as the server, referencing the `Lumina.Plugins.Contracts` project. To be a plugin it implements `IPlugin`, which describes it and lists its settings, and `IPluginServiceRegistrator`, which wires its services up. To contribute a capability it also implements one or more of `IMetadataProvider`, `IArtworkProvider` and `IBookReader`. Package the built assembly, and any dependencies, into a ZIP and install it like any other plugin. Anyone can write a plugin, and it is the intended way to teach Nemera about a new source or a new format. A plugin is a .NET assembly targeting the same framework as the server, referencing the `Nemera.Plugins.Contracts` project. To be a plugin it implements `IPlugin`, which describes it and lists its settings, and `IPluginServiceRegistrator`, which wires its services up. To contribute a capability it also implements one or more of `IMetadataProvider`, `IArtworkProvider` and `IBookReader`. Package the built assembly, and any dependencies, into a ZIP and install it like any other plugin.
## Security ## Security
Treat plugins with more caution than themes. A theme is HTML, CSS and JavaScript, but a plugin is a .NET assembly that Lumina loads into the API process itself. It runs with the full trust of the server: it can read and write files, open network connections and do anything else the API is allowed to do. There is no sandbox around a plugin once it is loaded. Treat plugins with more caution than themes. A theme is HTML, CSS and JavaScript, but a plugin is a .NET assembly that Nemera loads into the API process itself. It runs with the full trust of the server: it can read and write files, open network connections and do anything else the API is allowed to do. There is no sandbox around a plugin once it is loaded.
That means a plugin from an untrusted source effectively owns your server. Only install plugins you trust, and if you cannot vouch for the code, read it first. The bundled plugins are written and reviewed by the project and are safe to use. That means a plugin from an untrusted source effectively owns your server. Only install plugins you trust, and if you cannot vouch for the code, read it first. The bundled plugins are written and reviewed by the project and are safe to use.
+12 -12
View File
@@ -7,9 +7,9 @@
1. [Introduction](../index.md) 1. [Introduction](../index.md)
2. [Installation](../installation/index.md) 2. [Installation](../installation/index.md)
**Using Lumina** **Using Nemera**
3. [Using Lumina](../using-lumina/index.md) 3. [Using Nemera](../using-nemera/index.md)
**Administration** **Administration**
@@ -17,9 +17,9 @@
5. [Plugins](../plugins/index.md) 5. [Plugins](../plugins/index.md)
6. **Themes** 6. **Themes**
The web client is a themed shell. Every page it shows is drawn from the templates of the active theme, so a theme decides how Lumina looks, how it is laid out, and how its navigation is arranged. A theme is a portable ZIP archive of HTML templates and static assets, and swapping one in can change the entire feel of the application without a change to its code, because some of us still find flat interfaces sterile and boring. :) The web client is a themed shell. Every page it shows is drawn from the templates of the active theme, so a theme decides how Nemera looks, how it is laid out, and how its navigation is arranged. A theme is a portable ZIP archive of HTML templates and static assets, and swapping one in can change the entire feel of the application without a change to its code, because some of us still find flat interfaces sterile and boring. :)
A theme changes how Lumina looks and how its pages are structured. It cannot add features: it shapes what is already there. A theme changes how Nemera looks and how its pages are structured. It cannot add features: it shapes what is already there.
## What a theme is ## What a theme is
@@ -33,16 +33,16 @@ The API server stores installed themes and serves their templates and assets. Th
## Bundled themes ## Bundled themes
Lumina ships with two themes, both installed automatically at startup: Nemera ships with two themes, both installed automatically at startup:
- **`lumina-default`**, the theme Lumina falls back to when no other theme is selected. - **`nemera-default`**, the theme Nemera falls back to when no other theme is selected.
- **`editorial-paper`**, a clean, readable theme that is also the reference to start from when you write your own. - **`editorial-paper`**, a clean, readable theme that is also the reference to start from when you write your own.
A bundled theme that goes missing or becomes corrupted is restored automatically from its shipped archive the next time the server starts, unless you deliberately deleted it. This means a bundled theme always comes back on its own. A bundled theme that goes missing or becomes corrupted is restored automatically from its shipped archive the next time the server starts, unless you deliberately deleted it. This means a bundled theme always comes back on its own.
## Selecting the current theme ## Selecting the current theme
Administrators choose the active theme from the administration Themes page. The page lists every installed theme with a preview thumbnail taken from the theme's own manifest, and marks where each one came from, whether it is bundled with Lumina or installed by a user. Selecting a theme makes it the one every page is rendered with. Administrators choose the active theme from the administration Themes page. The page lists every installed theme with a preview thumbnail taken from the theme's own manifest, and marks where each one came from, whether it is bundled with Nemera or installed by a user. Selecting a theme makes it the one every page is rendered with.
## Installing a theme ## Installing a theme
@@ -52,12 +52,12 @@ Installing a theme whose id already exists replaces the files of that theme. A f
## Managing installed themes ## Managing installed themes
Beyond selecting and installing, the Themes page lets an administrator download any theme back out as a ZIP, delete a theme, and restore a bundled one. Deleting follows a few rules that keep Lumina from ever ending up themeless: Beyond selecting and installing, the Themes page lets an administrator download any theme back out as a ZIP, delete a theme, and restore a bundled one. Deleting follows a few rules that keep Nemera from ever ending up themeless:
- Only administrators can delete a theme. - Only administrators can delete a theme.
- The last remaining bundled theme cannot be deleted. - The last remaining bundled theme cannot be deleted.
- When the active theme is deleted, another available theme is activated automatically, preferring the configured default. - When the active theme is deleted, another available theme is activated automatically, preferring the configured default.
- Bundled themes are deleted softly: their files are removed but their shipped archive is kept, so they can be restored. Themes you installed yourself are removed entirely, because Lumina does not keep a copy of them. - Bundled themes are deleted softly: their files are removed but their shipped archive is kept, so they can be restored. Themes you installed yourself are removed entirely, because Nemera does not keep a copy of them.
## Theme data caching ## Theme data caching
@@ -65,7 +65,7 @@ Each user has a setting, `Enable theme caching`, on by default, that controls wh
## Creating a theme ## Creating a theme
Anyone can write a theme, and it is the intended way to change Lumina's look. A theme is a directory with `theme.json` at its root, a `templates/` directory and an `assets/` directory, compressed into a ZIP with the manifest at the root of the archive, not nested in an extra folder. The bundled `editorial-paper` theme follows exactly this shape and is the best starting point. Anyone can write a theme, and it is the intended way to change Nemera's look. A theme is a directory with `theme.json` at its root, a `templates/` directory and an `assets/` directory, compressed into a ZIP with the manifest at the root of the archive, not nested in an extra folder. The bundled `editorial-paper` theme follows exactly this shape and is the best starting point.
### The manifest ### The manifest
@@ -86,7 +86,7 @@ The manifest is a small JSON object:
Templates use a small, Mustache-style syntax: `{{name}}` prints a value, escaped; `{{{name}}}` or `{{&name}}` prints it raw; `{{#name}}...{{/name}}` repeats or shows a section; `{{^name}}...{{/name}}` shows a section when a value is absent. A theme provides a layout that wraps every page, a navigation menu, a server unreachable banner, an optional 404 page, page templates for the pages it wants to restyle, and optionally templates for the file system browser component. Templates use a small, Mustache-style syntax: `{{name}}` prints a value, escaped; `{{{name}}}` or `{{&name}}` prints it raw; `{{#name}}...{{/name}}` repeats or shows a section; `{{^name}}...{{/name}}` shows a section when a value is absent. A theme provides a layout that wraps every page, a navigation menu, a server unreachable banner, an optional 404 page, page templates for the pages it wants to restyle, and optionally templates for the file system browser component.
The server unreachable banner is the strip that appears at the bottom of the window while Lumina cannot reach its server. A theme renders it from its own `shared/server-unreachable-banner` template, or from the built-in fallback when it does not provide one, and the layout places it through the `serverUnreachableBanner` field. The theme owns the markup, the placement, the position, the size, the background and everything else about the banner; it only has to keep the `data-server-unreachable-banner` hook on its root element and hide and show that element with the `is-visible` class. The [theming guide](../../technical/theming/Theming.md) describes the message field, the fallback markup and the rest of the contract. The server unreachable banner is the strip that appears at the bottom of the window while Nemera cannot reach its server. A theme renders it from its own `shared/server-unreachable-banner` template, or from the built-in fallback when it does not provide one, and the layout places it through the `serverUnreachableBanner` field. The theme owns the markup, the placement, the position, the size, the background and everything else about the banner; it only has to keep the `data-server-unreachable-banner` hook on its root element and hide and show that element with the `is-visible` class. The [theming guide](../../technical/theming/Theming.md) describes the message field, the fallback markup and the rest of the contract.
A page is matched to a template by a key that mirrors the page's path, so the books page looks for `templates/library/written-content-library/book-library/books/index.html`, or a template at a parent scope when the exact one is missing. When a theme has no template for a page, the application renders that page itself with its own built-in view, so a theme never has to cover everything. A page is matched to a template by a key that mirrors the page's path, so the books page looks for `templates/library/written-content-library/book-library/books/index.html`, or a template at a parent scope when the exact one is missing. When a theme has no template for a page, the application renders that page itself with its own built-in view, so a theme never has to cover everything.
@@ -115,4 +115,4 @@ A theme is treated as untrusted input, but it is not powerless:
- Values printed with `{{name}}` are HTML-escaped, so a theme cannot inject markup through a model value, and the template engine cannot execute code. - Values printed with `{{name}}` are HTML-escaped, so a theme cannot inject markup through a model value, and the template engine cannot execute code.
- Paths are normalized and confined, so a theme cannot reach outside its own pack, and an oversized or over-populated archive is refused. - Paths are normalized and confined, so a theme cannot reach outside its own pack, and an oversized or over-populated archive is refused.
- A theme can, however, contain JavaScript, and that JavaScript runs in the browser of every user who views it. A malicious theme is a real risk. Only install themes from sources you trust, or read their code first. The themes bundled with Lumina are written and reviewed by the project and are safe to use. - A theme can, however, contain JavaScript, and that JavaScript runs in the browser of every user who views it. A malicious theme is a real risk. Only install themes from sources you trust, or read their code first. The themes bundled with Nemera are written and reviewed by the project and are safe to use.
@@ -1,4 +1,4 @@
# Using Lumina # Using Nemera
## Contents ## Contents
@@ -7,9 +7,9 @@
1. [Introduction](../index.md) 1. [Introduction](../index.md)
2. [Installation](../installation/index.md) 2. [Installation](../installation/index.md)
**Using Lumina** **Using Nemera**
3. **Using Lumina** 3. **Using Nemera**
**Administration** **Administration**
@@ -17,7 +17,7 @@
5. [Plugins](../plugins/index.md) 5. [Plugins](../plugins/index.md)
6. [Themes](../themes/index.md) 6. [Themes](../themes/index.md)
This is the guide to actually using Lumina from the web client, once a server is running and at least one library exists. It covers signing in, finding your way around, browsing and reading what you have, editing an item, and the settings that shape the experience. This is the guide to actually using Nemera from the web client, once a server is running and at least one library exists. It covers signing in, finding your way around, browsing and reading what you have, editing an item, and the settings that shape the experience.
## Getting around ## Getting around
@@ -25,11 +25,11 @@ The header menu rearranges itself depending on who you are. Everyone sees a site
The home page is your catalogue: a grid of the libraries you are allowed to see, each shown as a card with its cover when it has one. Selecting a card opens that library's browsing page. Some library types do not have a browsing page yet, and their cards appear as plain panels rather than links. The home page is your catalogue: a grid of the libraries you are allowed to see, each shown as a card with its cover when it has one. Selecting a card opens that library's browsing page. Some library types do not have a browsing page yet, and their cards appear as plain panels rather than links.
When the server cannot be reached, Lumina keeps the page you asked for and shows a red banner along the bottom. The banner belongs to the active theme, so its position, size and look can differ between themes. When the server cannot be reached, Nemera keeps the page you asked for and shows a red banner along the bottom. The banner belongs to the active theme, so its position, size and look can differ between themes.
## Your account ## Your account
Accounts are local to your Lumina server. From the account section you can: Accounts are local to your Nemera server. From the account section you can:
- **Register** a new account, when registration is available on the server. - **Register** a new account, when registration is available on the server.
- **Log in** with your username and password. If your account uses two factor authentication, you are also asked for the current one time code from your authenticator app. - **Log in** with your username and password. If your account uses two factor authentication, you are also asked for the current one time code from your authenticator app.
@@ -51,7 +51,7 @@ Opening a book library shows a page with the library title, a search box, a sort
Each book is a card with its cover and title. Clicking a card opens the book in the reader; a book can only be opened when a reader for its format is enabled for the library. Right-clicking a card, or using its actions button, opens a menu with **Read**, **View details** and **Delete**. Each book is a card with its cover and title. Clicking a card opens the book in the reader; a book can only be opened when a reader for its format is enabled for the library. Right-clicking a card, or using its actions button, opens a menu with **Read**, **View details** and **Delete**.
Deleting a book asks for confirmation and moves it to the library's **Deleted items**, together with the metadata and artwork Lumina stored for it. The file behind it is left untouched. The book stops appearing in the library, and an automatic scan does not add it back. If the file is later removed from disk, the next scan permanently removes the deleted book, including the metadata and artwork kept for it. The **Deleted items** button on the library page lists the deleted books and restores one when you select **Restore**. The book details page offers the same deletion with its **Delete book** button. Deleting a book asks for confirmation and moves it to the library's **Deleted items**, together with the metadata and artwork Nemera stored for it. The file behind it is left untouched. The book stops appearing in the library, and an automatic scan does not add it back. If the file is later removed from disk, the next scan permanently removes the deleted book, including the metadata and artwork kept for it. The **Deleted items** button on the library page lists the deleted books and restores one when you select **Restore**. The book details page offers the same deletion with its **Delete book** button.
## Reading a book ## Reading a book
@@ -77,9 +77,9 @@ Opening a music library shows a page with the library title, a search box, a sor
Each artist is a card; selecting it opens the artist's page, and the card's actions menu offers **View details**, **Play**, **Shuffle**, **Add to playlist** and **Delete**. The heart on the card marks the artist as a favorite. Each artist is a card; selecting it opens the artist's page, and the card's actions menu offers **View details**, **Play**, **Shuffle**, **Add to playlist** and **Delete**. The heart on the card marks the artist as a favorite.
The artist page is also where you edit the artist. It lists the artist's albums as cards, each leading to its own album page, followed by the artist's general information, contributors, ratings, genres, tags, aliases, areas and identifiers. The album page holds the album's information and its tracks, and the track page holds the track's details. The album page also shows the artwork Lumina stored for the album as a strip of thumbnails beside the main image, and selecting a thumbnail displays that image in place of the cover. The artist page is also where you edit the artist. It lists the artist's albums as cards, each leading to its own album page, followed by the artist's general information, contributors, ratings, genres, tags, aliases, areas and identifiers. The album page holds the album's information and its tracks, and the track page holds the track's details. The album page also shows the artwork Nemera stored for the album as a strip of thumbnails beside the main image, and selecting a thumbnail displays that image in place of the cover.
Deleting an artist, album or track asks for confirmation and moves it to the library's **Deleted items**, together with the metadata and artwork Lumina stored for it. The file behind it is left untouched. The item stops appearing in the library, and an automatic scan does not add it back. An artist always keeps at least one album, so the last album of an artist cannot be deleted. If a file is later removed from disk, the next scan permanently removes the deleted track, including its stored artwork, and the albums and artists left with no files, including their stored artwork. The **Deleted items** button on the artists page lists the deleted artists, albums and tracks, and restores one when you select **Restore**. Restoring an artist or an album brings back the items inside it that were not deleted on their own. Deleting an artist, album or track asks for confirmation and moves it to the library's **Deleted items**, together with the metadata and artwork Nemera stored for it. The file behind it is left untouched. The item stops appearing in the library, and an automatic scan does not add it back. An artist always keeps at least one album, so the last album of an artist cannot be deleted. If a file is later removed from disk, the next scan permanently removes the deleted track, including its stored artwork, and the albums and artists left with no files, including their stored artwork. The **Deleted items** button on the artists page lists the deleted artists, albums and tracks, and restores one when you select **Restore**. Restoring an artist or an album brings back the items inside it that were not deleted on their own.
The music pages also play what they show. The artist page has a **Play all** control that plays the artist's releases in the order the page presents them, one release after another. The actions menu of a music library card on the home page, of an artist card, and of an album card offers **Play** and **Shuffle**. Play starts the library at its first artist and continues through the remaining artists in artist page order, starts the artist's discography in the order the artist page presents it, or starts the release in disc and track order. Shuffle starts the library, the artist's discography or the release with a list of up to 100 tracks sampled uniformly at random from every track of that scope, and continues in random order without repeating a track that is already queued. The album page has a **Play album** control that plays the release in disc and track order, and every track row has its own play control that plays just that track. The track page has a **Play track** control for the track it shows. Every track row on the album page also has an actions menu: **Add to playlist** opens the playlist picker for that track, **Add to play queue** appends it to the end of the player queue or starts it when the queue is empty, and **Play all from here** replaces the queue with that track and the rest of the album and starts playing. Starting playback opens the player bar at the bottom of the window. It keeps playing while you move between pages, and the bar shows the track name, with the album name underneath when the track belongs to a named album, the progress of the current track, a segmented VU meter that follows the level of the track, and the volume, together with previous, play or pause, stop, next and repeat controls. When you expand it, it also shows the cover art, the current track name, the release type, the release name and year, the artist name, and a carousel of the album's stored artwork, next to the queue, where every entry carries its album cover, including when only one track is queued. Selecting an artwork in the carousel shows it as the main cover. The expanded queue moves the current track to the top whenever playback advances, so it stays visible even in a long list. The current track's favorite is the heart on the bar between the repeat and mute controls, and every entry of the expanded queue carries its own heart. The queue's own playlist picker appends the whole queue, in order, to one of your playlists. The double chevron at the right points up to expand the bar and down to collapse it. Stop is the square control next to play or pause; in the condensed bar it stops playback and slides the bar out of view. The music pages also play what they show. The artist page has a **Play all** control that plays the artist's releases in the order the page presents them, one release after another. The actions menu of a music library card on the home page, of an artist card, and of an album card offers **Play** and **Shuffle**. Play starts the library at its first artist and continues through the remaining artists in artist page order, starts the artist's discography in the order the artist page presents it, or starts the release in disc and track order. Shuffle starts the library, the artist's discography or the release with a list of up to 100 tracks sampled uniformly at random from every track of that scope, and continues in random order without repeating a track that is already queued. The album page has a **Play album** control that plays the release in disc and track order, and every track row has its own play control that plays just that track. The track page has a **Play track** control for the track it shows. Every track row on the album page also has an actions menu: **Add to playlist** opens the playlist picker for that track, **Add to play queue** appends it to the end of the player queue or starts it when the queue is empty, and **Play all from here** replaces the queue with that track and the rest of the album and starts playing. Starting playback opens the player bar at the bottom of the window. It keeps playing while you move between pages, and the bar shows the track name, with the album name underneath when the track belongs to a named album, the progress of the current track, a segmented VU meter that follows the level of the track, and the volume, together with previous, play or pause, stop, next and repeat controls. When you expand it, it also shows the cover art, the current track name, the release type, the release name and year, the artist name, and a carousel of the album's stored artwork, next to the queue, where every entry carries its album cover, including when only one track is queued. Selecting an artwork in the carousel shows it as the main cover. The expanded queue moves the current track to the top whenever playback advances, so it stays visible even in a long list. The current track's favorite is the heart on the bar between the repeat and mute controls, and every entry of the expanded queue carries its own heart. The queue's own playlist picker appends the whole queue, in order, to one of your playlists. The double chevron at the right points up to expand the bar and down to collapse it. Stop is the square control next to play or pause; in the condensed bar it stops playback and slides the bar out of view.
@@ -87,17 +87,17 @@ Music libraries do not remember positions by default. When progress tracking is
## Music playback compatibility ## Music playback compatibility
The full music player decodes audio with the WebCodecs API and outputs it through the Web Audio API. A privacy hardened browser can hide WebCodecs even though its own native audio player still works. LibreWolf does this by default: `privacy.resistFingerprinting` is turned on, and the browser then hides the WebCodecs constructors. When Lumina detects that, it switches to a fallback player built on the browser's HTML audio element and shows a notice when the player opens for the first time. The full music player decodes audio with the WebCodecs API and outputs it through the Web Audio API. A privacy hardened browser can hide WebCodecs even though its own native audio player still works. LibreWolf does this by default: `privacy.resistFingerprinting` is turned on, and the browser then hides the WebCodecs constructors. When Nemera detects that, it switches to a fallback player built on the browser's HTML audio element and shows a notice when the player opens for the first time.
The fallback is a degraded experience in two ways. It plays only the formats the browser itself can decode, without the server changing the container or the codec first, so a track that needs a server remux or transcode cannot use the fallback. It also has no true gapless playback, because an HTML audio element cannot append the next track sample accurately; the next track starts after the current one ends, with a small gap. The fallback is a degraded experience in two ways. It plays only the formats the browser itself can decode, without the server changing the container or the codec first, so a track that needs a server remux or transcode cannot use the fallback. It also has no true gapless playback, because an HTML audio element cannot append the next track sample accurately; the next track starts after the current one ends, with a small gap.
ReplayGain normalization and the VU meter still work in the fallback when the browser also provides the Web Audio API, which is the usual case. The fallback routes the audio element through the same kind of ReplayGain gain and output analyzer the full player uses. If the Web Audio API is missing too, the fallback plays through the element's own output without ReplayGain or a VU meter. ReplayGain normalization and the VU meter still work in the fallback when the browser also provides the Web Audio API, which is the usual case. The fallback routes the audio element through the same kind of ReplayGain gain and output analyzer the full player uses. If the Web Audio API is missing too, the fallback plays through the element's own output without ReplayGain or a VU meter.
To restore the full player in LibreWolf, exempt the address of your Lumina server from Resist Fingerprinting: To restore the full player in LibreWolf, exempt the address of your Nemera server from Resist Fingerprinting:
1. Open `about:config`. 1. Open `about:config`.
2. Set `privacy.resistFingerprinting.exemptedDomains` to include the host you use. For a server on the same machine, `localhost,127.0.0.1` covers both common addresses. 2. Set `privacy.resistFingerprinting.exemptedDomains` to include the host you use. For a server on the same machine, `localhost,127.0.0.1` covers both common addresses.
3. Reload Lumina. 3. Reload Nemera.
## Playlists ## Playlists
@@ -151,11 +151,11 @@ An item that was deleted, or whose library you can no longer access, keeps its p
## Editing what is catalogued ## Editing what is catalogued
Both book and music pages double as editors for the items that were scanned in. A book's details page groups its fields into general and release information, language and original language, genres, tags, identifiers, ISBNs, contributors and ratings, and lets you replace its cover. An artist's page lists the artist's albums first, then groups its fields into general information, contributors, ratings, genres, tags, aliases, areas and identifiers, and lets you replace the artist's cover. An album page groups its fields into general information, contributors, ratings, genres, tags, release types, release information, language and original language, and identifiers, and lets you replace the album's cover. A track page groups its fields into general information, contributors, ratings, genres, tags, moods, release information, language and original language, work, ISRCs, identifiers and audio properties. Saving applies the changes to Lumina's catalogue. Both book and music pages double as editors for the items that were scanned in. A book's details page groups its fields into general and release information, language and original language, genres, tags, identifiers, ISBNs, contributors and ratings, and lets you replace its cover. An artist's page lists the artist's albums first, then groups its fields into general information, contributors, ratings, genres, tags, aliases, areas and identifiers, and lets you replace the artist's cover. An album page groups its fields into general information, contributors, ratings, genres, tags, release types, release information, language and original language, and identifiers, and lets you replace the album's cover. A track page groups its fields into general information, contributors, ratings, genres, tags, moods, release information, language and original language, work, ISRCs, identifiers and audio properties. Saving applies the changes to Nemera's catalogue.
## The file system browser ## The file system browser
Wherever Lumina needs a folder or a file from the server, it opens the file system browser: a modal that lists the drives, a tree of folders, a pane of the items in the current folder, and an address bar you can walk with. It offers icon view modes, generates thumbnails for images, and can show or hide hidden files. Hidden entries are dimmed by the bundled themes. You will meet it when you pick the content locations of a library, and anywhere else the interface asks you to point at a path on the server. Wherever Nemera needs a folder or a file from the server, it opens the file system browser: a modal that lists the drives, a tree of folders, a pane of the items in the current folder, and an address bar you can walk with. It offers icon view modes, generates thumbnails for images, and can show or hide hidden files. Hidden entries are dimmed by the bundled themes. You will meet it when you pick the content locations of a library, and anywhere else the interface asks you to point at a path on the server.
## Settings and language ## Settings and language
@@ -165,4 +165,4 @@ Your **settings** decide how lists and books behave for you. Enable pagination a
The **VU meter** group shapes the meter of the player bar. Orientation lays its channels out as columns that grow upwards or rows that grow to the right. Segments per channel sets how finely each channel is divided, and Segment gap sets the space between segments and channels. The medium and high thresholds decide the level at which a segment changes color; the high threshold cannot be lower than the medium one. Show peak keeps a mark at the loudest recent level of each channel. Peak hold is how long that mark stays in place before it falls, in milliseconds, and Level falloff and Peak falloff are how quickly the bars and the peak marks drop once the sound gets quieter, in level units per second. Larger falloff values drop faster. The meter follows the level of the track itself, so muting the player or moving the volume slider does not change the height of the bars, and saving these settings applies them to the player without reloading the page. The **VU meter** group shapes the meter of the player bar. Orientation lays its channels out as columns that grow upwards or rows that grow to the right. Segments per channel sets how finely each channel is divided, and Segment gap sets the space between segments and channels. The medium and high thresholds decide the level at which a segment changes color; the high threshold cannot be lower than the medium one. Show peak keeps a mark at the loudest recent level of each channel. Peak hold is how long that mark stays in place before it falls, in milliseconds, and Level falloff and Peak falloff are how quickly the bars and the peak marks drop once the sound gets quieter, in level units per second. Larger falloff values drop faster. The meter follows the level of the track itself, so muting the player or moving the volume slider does not change the height of the bars, and saving these settings applies them to the player without reloading the page.
The **language** picker switches the interface between the languages Lumina ships with, and remembers your choice. The **language** picker switches the interface between the languages Nemera ships with, and remembers your choice.
+3 -3
View File
@@ -6,7 +6,7 @@ There is a particular pleasure in building something yourself. Not the finished
I miss when that was simply what engineering was. I am not naive enough to think it was ever pure, or that everyone had the time to work that way. But the pleasure was the point. The understanding was the point. I miss when that was simply what engineering was. I am not naive enough to think it was ever pure, or that everyone had the time to work that way. But the pleasure was the point. The understanding was the point.
We do not get to go back to that world. AI is here, it is in the editors, in the browsers, in the issue trackers, and the genie is not going back into the bottle. The world has to adapt. Lumina has to adapt too. This document is about how. We do not get to go back to that world. AI is here, it is in the editors, in the browsers, in the issue trackers, and the genie is not going back into the bottle. The world has to adapt. Nemera has to adapt too. This document is about how.
## It is a tool ## It is a tool
@@ -36,7 +36,7 @@ That is the whole policy, really. Everything below is just what it looks like in
## What I expect from contributors ## What I expect from contributors
Lumina is a hobby project with professional standards. Contributions are welcome. They are not required, and they are not needed. Nobody owes this project a pull request. The project does not owe anybody a merge. Nemera is a hobby project with professional standards. Contributions are welcome. They are not required, and they are not needed. Nobody owes this project a pull request. The project does not owe anybody a merge.
I know it is tempting to put a line on a resume or a green square on a chart, but before any of that, a pull request is a request for someone else's time - MY time. If you are here because you want to help build the thing, thank you! If you are here to produce output, this is the wrong project. I know it is tempting to put a line on a resume or a green square on a chart, but before any of that, a pull request is a request for someone else's time - MY time. If you are here because you want to help build the thing, thank you! If you are here to produce output, this is the wrong project.
@@ -53,7 +53,7 @@ So:
- Read every line. If you cannot defend it in review, DO. NOT. send it! - Read every line. If you cannot defend it in review, DO. NOT. send it!
- Build it and run the tests. Add tests that describe behavior. A test that only mirrors the implementation is decoration. - Build it and run the tests. Add tests that describe behavior. A test that only mirrors the implementation is decoration.
- Check the names, the errors, the edge cases, the documentation. The model did not think about them. It does not know they exist. - Check the names, the errors, the edge cases, the documentation. The model did not think about them. It does not know they exist.
- Make it fit Lumina. The model does not know our conventions unless you feed them in, and it will drift anyway. Fitting it is your job. And, in case you haven't figured it out already, conventions, style and consistency are at the top of the list in this repository. Sorry, but not sorry: my repository, my rules. - Make it fit Nemera. The model does not know our conventions unless you feed them in, and it will drift anyway. Fitting it is your job. And, in case you haven't figured it out already, conventions, style and consistency are at the top of the list in this repository. Sorry, but not sorry: my repository, my rules.
## Keep your chatbot out of my inbox ## Keep your chatbot out of my inbox
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Permissions](#permissions) - [Permissions](#permissions)
- [Get Permissions](#get-permissions) - [Get Permissions](#get-permissions)
- [Get Permissions Request](#get-permissions-request) - [Get Permissions Request](#get-permissions-request)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Roles](#roles) - [Roles](#roles)
- [Get Roles](#get-roles) - [Get Roles](#get-roles)
- [Get Roles Request](#get-roles-request) - [Get Roles Request](#get-roles-request)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Favorites](#favorites) - [Favorites](#favorites)
- [Add Favorite](#add-favorite) - [Add Favorite](#add-favorite)
- [Add Favorite Request](#add-favorite-request) - [Add Favorite Request](#add-favorite-request)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [File System Management](#file-system-management) - [File System Management](#file-system-management)
- [Directories](#directories) - [Directories](#directories)
- [Get Directories](#get-directories) - [Get Directories](#get-directories)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [File System Management](#file-system-management) - [File System Management](#file-system-management)
- [Drives](#drives) - [Drives](#drives)
- [Get Drives](#get-drives) - [Get Drives](#get-drives)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [File System Management](#file-system-management) - [File System Management](#file-system-management)
- [File System](#file-system) - [File System](#file-system)
- [Get File System Type](#get-file-system-type) - [Get File System Type](#get-file-system-type)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [File System Management](#file-system-management) - [File System Management](#file-system-management)
- [Files](#files) - [Files](#files)
- [Get Files](#get-files) - [Get Files](#get-files)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [File System Management](#file-system-management) - [File System Management](#file-system-management)
- [Paths](#paths) - [Paths](#paths)
- [Check Path Exists](#check-path-exists) - [Check Path Exists](#check-path-exists)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [File System Management](#file-system-management) - [File System Management](#file-system-management)
- [Thumbnails](#thumbnails) - [Thumbnails](#thumbnails)
- [Get Thumbnail](#get-thumbnail) - [Get Thumbnail](#get-thumbnail)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Album](#album) - [Album](#album)
- [Add Album](#add-album) - [Add Album](#add-album)
- [Add Album Request](#add-album-request) - [Add Album Request](#add-album-request)
@@ -1472,14 +1472,14 @@ Updates the cover image of the album identified by `albumId` with the image uplo
```js ```js
PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/{albumId}/cover PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/{albumId}/cover
Content-Type: multipart/form-data; boundary=LuminaBoundary Content-Type: multipart/form-data; boundary=NemeraBoundary
--LuminaBoundary --NemeraBoundary
Content-Disposition: form-data; name="cover"; filename="cover.jpg" Content-Disposition: form-data; name="cover"; filename="cover.jpg"
Content-Type: image/jpeg Content-Type: image/jpeg
< ./cover.jpg < ./cover.jpg
--LuminaBoundary-- --NemeraBoundary--
``` ```
#### Update Album Cover Response #### Update Album Cover Response
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Artist](#artist) - [Artist](#artist)
- [Add Artist](#add-artist) - [Add Artist](#add-artist)
- [Add Artist Request](#add-artist-request) - [Add Artist Request](#add-artist-request)
@@ -2104,14 +2104,14 @@ Updates the cover image of the artist identified by `artistId` with the image up
```js ```js
PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}/cover PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}/cover
Content-Type: multipart/form-data; boundary=LuminaBoundary Content-Type: multipart/form-data; boundary=NemeraBoundary
--LuminaBoundary --NemeraBoundary
Content-Disposition: form-data; name="cover"; filename="cover.jpg" Content-Disposition: form-data; name="cover"; filename="cover.jpg"
Content-Type: image/jpeg Content-Type: image/jpeg
< ./cover.jpg < ./cover.jpg
--LuminaBoundary-- --NemeraBoundary--
``` ```
#### Update Artist Cover Response #### Update Artist Cover Response
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Track](#track) - [Track](#track)
- [Add Track](#add-track) - [Add Track](#add-track)
- [Add Track Request](#add-track-request) - [Add Track Request](#add-track-request)
@@ -426,7 +426,7 @@ Content-Type: audio/aac
Content-Length: 240128 Content-Length: 240128
``` ```
The response is the raw bytes of one produced segment, served with the media type of the delivered container when the server can name it, or `application/octet-stream` otherwise. Every response carries `X-Content-Type-Options: nosniff`, `Cache-Control: private, no-store`, `Vary: Authorization`, `X-Lumina-Segment-Count`, the number of segments the production holds, and `X-Segment-Start-Seconds`, the exact start of the segment on the track timeline, in seconds. The count tells a player where the audio ends without probing for the end with a request that returns not found, and the start lets it offset the packets of a container that numbers its frames from the start of the track, instead of assuming that a segment starts at an exact multiple of its duration. Range requests are not used: the segment is the addressing unit, and the next segment is a separate request. The first request for a track can take longer than the following ones, because the whole normalized audio is produced and cached before its first segment is published. A segment index that the production does not hold is reported as not found with the `NormalizedTrackSegmentNotFound` detail, which is the only not-found answer that means the end of the audio. A track, library or audio file that disappeared, a delivery handle that is unknown, expired, or was issued to another user or track, and a cache entry that was evicted, are reported with their own not-found details instead, and a request that arrives while every normalization job slot is in use is reported as unavailable (`503`), because it is a transient condition that a player retries. A delivery handle whose captured shape is not time addressed segments is a conflict (`409`), because the segment route cannot index it. The response is the raw bytes of one produced segment, served with the media type of the delivered container when the server can name it, or `application/octet-stream` otherwise. Every response carries `X-Content-Type-Options: nosniff`, `Cache-Control: private, no-store`, `Vary: Authorization`, `X-Nemera-Segment-Count`, the number of segments the production holds, and `X-Segment-Start-Seconds`, the exact start of the segment on the track timeline, in seconds. The count tells a player where the audio ends without probing for the end with a request that returns not found, and the start lets it offset the packets of a container that numbers its frames from the start of the track, instead of assuming that a segment starts at an exact multiple of its duration. Range requests are not used: the segment is the addressing unit, and the next segment is a separate request. The first request for a track can take longer than the following ones, because the whole normalized audio is produced and cached before its first segment is published. A segment index that the production does not hold is reported as not found with the `NormalizedTrackSegmentNotFound` detail, which is the only not-found answer that means the end of the audio. A track, library or audio file that disappeared, a delivery handle that is unknown, expired, or was issued to another user or track, and a cache entry that was evicted, are reported with their own not-found details instead, and a request that arrives while every normalization job slot is in use is reported as unavailable (`503`), because it is a transient condition that a player retries. A delivery handle whose captured shape is not time addressed segments is a conflict (`409`), because the segment route cannot index it.
### Get Playback Manifest ### Get Playback Manifest
@@ -471,7 +471,7 @@ Returns the playback manifest of the track identified by the route: the format o
} }
``` ```
When the player can play the stored audio as it is, `isDirectPlay` is `true`, and `deliveryContainer`, `deliveryCodec`, `deliveryShape`, `segmentDurationSeconds`, `deliveryId` and `segmentStreamPathTemplate` are `null`, because the delivery is the stored file itself, addressed and seeked by byte range. When it cannot, `isDirectPlay` is `false`, and those fields name the container, the codec, the addressing the server produces instead, the length in seconds of each of its time addressed segments, the opaque handle of the delivery, and the root relative path template of the segment route, with `{deliveryId}` and `{segmentIndex}` placeholders. `durationInSeconds` is the probed duration; a normalized production can be slightly longer or shorter, and its exact produced duration is reported by the `X-Lumina-Track-Duration-Seconds` header of its segments. A normalized delivery is always addressed as `TimeAddressedSegments`, and `segmentDurationSeconds` is the nominal length of each of its segments, so that the server that produces the segments and the player that consumes them agree on the target without duplicating the value on both sides. The `deliveryId` binds the delivery to the user and the track, and it captures the quality cap and the source file version that were in effect when the manifest was read, so a segment request addresses exactly that delivery instead of recomputing it. A player that cannot play a track directly fetches each segment from that template in index order and seeks by segment index, never by byte range. `isSeekable` reports whether the delivered audio can be seeked by the player. `streamPath` is relative to the API, without a host or a scheme, so that a client reaches the stream through its own application rather than the API server directly. When the player can play the stored audio as it is, `isDirectPlay` is `true`, and `deliveryContainer`, `deliveryCodec`, `deliveryShape`, `segmentDurationSeconds`, `deliveryId` and `segmentStreamPathTemplate` are `null`, because the delivery is the stored file itself, addressed and seeked by byte range. When it cannot, `isDirectPlay` is `false`, and those fields name the container, the codec, the addressing the server produces instead, the length in seconds of each of its time addressed segments, the opaque handle of the delivery, and the root relative path template of the segment route, with `{deliveryId}` and `{segmentIndex}` placeholders. `durationInSeconds` is the probed duration; a normalized production can be slightly longer or shorter, and its exact produced duration is reported by the `X-Nemera-Track-Duration-Seconds` header of its segments. A normalized delivery is always addressed as `TimeAddressedSegments`, and `segmentDurationSeconds` is the nominal length of each of its segments, so that the server that produces the segments and the player that consumes them agree on the target without duplicating the value on both sides. The `deliveryId` binds the delivery to the user and the track, and it captures the quality cap and the source file version that were in effect when the manifest was read, so a segment request addresses exactly that delivery instead of recomputing it. A player that cannot play a track directly fetches each segment from that template in index order and seeks by segment index, never by byte range. `isSeekable` reports whether the delivered audio can be seeked by the player. `streamPath` is relative to the API, without a host or a scheme, so that a client reaches the stream through its own application rather than the API server directly.
For example, a delivery of a track the player cannot decode is declared as follows: For example, a delivery of a track the player cannot decode is declared as follows:
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Library](#library) - [Library](#library)
- [Add Library](#add-library) - [Add Library](#add-library)
- [Add Library Request](#add-library-request) - [Add Library Request](#add-library-request)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Library Statistics](#library-statistics) - [Library Statistics](#library-statistics)
- [When a Session Counts](#when-a-session-counts) - [When a Session Counts](#when-a-session-counts)
- [Get Recently Consumed](#get-recently-consumed) - [Get Recently Consumed](#get-recently-consumed)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Book](#book) - [Book](#book)
- [Add Book](#add-book) - [Add Book](#add-book)
- [Add Book Request](#add-book-request) - [Add Book Request](#add-book-request)
@@ -736,14 +736,14 @@ Updates the cover image of the book identified by `bookId` with the image upload
```js ```js
PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/books/{bookId}/cover PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/books/{bookId}/cover
Content-Type: multipart/form-data; boundary=LuminaBoundary Content-Type: multipart/form-data; boundary=NemeraBoundary
--LuminaBoundary --NemeraBoundary
Content-Disposition: form-data; name="cover"; filename="cover.jpg" Content-Disposition: form-data; name="cover"; filename="cover.jpg"
Content-Type: image/jpeg Content-Type: image/jpeg
< ./cover.jpg < ./cover.jpg
--LuminaBoundary-- --NemeraBoundary--
``` ```
#### Update Book Cover Response #### Update Book Cover Response
+2 -2
View File
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Health](#health) - [Health](#health)
- [Check Health](#check-health) - [Check Health](#check-health)
- [Check Health Request](#check-health-request) - [Check Health Request](#check-health-request)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Initialization](#initialization) - [Initialization](#initialization)
- [Setup Application](#setup-application) - [Setup Application](#setup-application)
- [Setup Application Request](#setup-application-request) - [Setup Application Request](#setup-application-request)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Media Consumption](#media-consumption) - [Media Consumption](#media-consumption)
- [Start Consumption](#start-consumption) - [Start Consumption](#start-consumption)
- [Start Consumption Request](#start-consumption-request) - [Start Consumption Request](#start-consumption-request)
+3 -3
View File
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Plugins](#plugins) - [Plugins](#plugins)
- [Install Plugin](#install-plugin) - [Install Plugin](#install-plugin)
- [Install Plugin Request](#install-plugin-request) - [Install Plugin Request](#install-plugin-request)
@@ -71,7 +71,7 @@ GET api/v1/plugins
{ {
"id": "f4c1a7de-3b52-4e6a-9d21-8c7e5b04a1f3", "id": "f4c1a7de-3b52-4e6a-9d21-8c7e5b04a1f3",
"name": "MusicBrainz Metadata", "name": "MusicBrainz Metadata",
"author": "Lumina", "author": "Nemera",
"version": "1.0.0", "version": "1.0.0",
"description": "Retrieves artist, album and track metadata from MusicBrainz.", "description": "Retrieves artist, album and track metadata from MusicBrainz.",
"loadStatus": "Loaded", "loadStatus": "Loaded",
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Scheduled Jobs](#scheduled-jobs) - [Scheduled Jobs](#scheduled-jobs)
- [Add Scheduled Job](#add-scheduled-job) - [Add Scheduled Job](#add-scheduled-job)
- [Add Scheduled Job Request](#add-scheduled-job-request) - [Add Scheduled Job Request](#add-scheduled-job-request)
+3 -3
View File
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Themes](#themes) - [Themes](#themes)
- [Get Themes](#get-themes) - [Get Themes](#get-themes)
- [Get Themes Request](#get-themes-request) - [Get Themes Request](#get-themes-request)
@@ -56,7 +56,7 @@ GET api/v1/themes
"themeId": "default-dark", "themeId": "default-dark",
"name": "Default Dark", "name": "Default Dark",
"description": "A dark theme bundled with the application.", "description": "A dark theme bundled with the application.",
"author": "Lumina", "author": "Nemera",
"version": "1.0.0", "version": "1.0.0",
"previewPath": "preview.png", "previewPath": "preview.png",
"installSource": "Bundled", "installSource": "Bundled",
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Authentication](#authentication) - [Authentication](#authentication)
- [Register](#register) - [Register](#register)
- [Register Request](#register-request) - [Register Request](#register-request)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Authorization](#authorization) - [Authorization](#authorization)
- [Get Authorization](#get-authorization) - [Get Authorization](#get-authorization)
- [Get Authorization Request](#get-authorization-request) - [Get Authorization Request](#get-authorization-request)
@@ -1,6 +1,6 @@
# Lumina API # Nemera API
- [Lumina API](#lumina-api) - [Nemera API](#nemera-api)
- [Settings](#settings) - [Settings](#settings)
- [Get User Settings](#get-user-settings) - [Get User Settings](#get-user-settings)
- [Get User Settings Request](#get-user-settings-request) - [Get User Settings Request](#get-user-settings-request)
@@ -1,23 +1,23 @@
@startuml Lumina System Context Diagram @startuml Nemera System Context Diagram
!pragma layout elk !pragma layout elk
!include <C4/C4_Context> !include <C4/C4_Context>
LAYOUT_WITH_LEGEND() LAYOUT_WITH_LEGEND()
title System Context diagram for Lumina Media Library Manager title System Context diagram for Nemera Media Library Manager
Person(user, "Home User", "A person who wants to manage and stream their personal media collection") Person(user, "Home User", "A person who wants to manage and stream their personal media collection")
Person(admin, "Administrator", "A person who manages the media library system") Person(admin, "Administrator", "A person who manages the media library system")
System(lumina, "Lumina 1.1", "Allows users to organize, manage, stream and read their personal media content [detailed in '2 container-diagram.puml']") System(nemera, "Nemera 1.1", "Allows users to organize, manage, stream and read their personal media content [detailed in '2 container-diagram.puml']")
System_Ext(metadataProvider, "Media Metadata and Artwork Services", "External services that provide media information and artwork (MusicBrainz, Open Library, Cover Art Archive)") System_Ext(metadataProvider, "Media Metadata and Artwork Services", "External services that provide media information and artwork (MusicBrainz, Open Library, Cover Art Archive)")
Rel(user, lumina, "Views, streams and reads media content") Rel(user, nemera, "Views, streams and reads media content")
Rel(admin, lumina, "Manages media library, plugins, themes and system settings") Rel(admin, nemera, "Manages media library, plugins, themes and system settings")
Rel(lumina, metadataProvider, "Retrieves media metadata and artwork") Rel(nemera, metadataProvider, "Retrieves media metadata and artwork")
caption [System Context] Lumina caption [System Context] Nemera
footer The system context diagram for the Lumina Media Library Manager - created with PlantUML footer The system context diagram for the Nemera Media Library Manager - created with PlantUML
@enduml @enduml
@@ -1 +1 @@
<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:629px;height:830px;background:#FFFFFF;" width="629px" height="830px" viewBox="0 0 629 830" 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="5"><text x="112.665" 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="315.271" y="50.609" width="216.116" height="162.255" fill="#08427B" style="stroke:#073B6F;stroke-width:0.5;"/><image width="52" height="52" x="397.483" y="60.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="381.091" y="128.911" fill="#FFF" font-size="16" textLength="44.453" font-weight="700">Home</text><text x="425.544" y="128.911" fill="#FFF" font-size="16" font-weight="700"> </text><text x="429.989" y="128.911" fill="#FFF" font-size="16" textLength="35.578" font-weight="700">User</text><text x="421.384" y="146.96" fill="#FFF" font-size="14"> </text><text x="325.271" y="164.569" fill="#FFF" font-size="14">A</text><text x="334.609" y="164.569" fill="#FFF" font-size="14"> </text><text x="338.499" y="164.569" fill="#FFF" font-size="14" textLength="42.807">person</text><text x="381.305" y="164.569" fill="#FFF" font-size="14"> </text><text x="385.195" y="164.569" fill="#FFF" font-size="14" textLength="25.683">who</text><text x="410.877" y="164.569" fill="#FFF" font-size="14"> </text><text x="414.767" y="164.569" fill="#FFF" font-size="14" textLength="36.572">wants</text><text x="451.339" y="164.569" fill="#FFF" font-size="14"> </text><text x="455.229" y="164.569" fill="#FFF" font-size="14" textLength="11.676">to</text><text x="466.905" y="164.569" fill="#FFF" font-size="14"> </text><text x="470.794" y="164.569" fill="#FFF" font-size="14" textLength="50.593">manage</text><text x="343.954" y="182.179" fill="#FFF" font-size="14" textLength="23.358">and</text><text x="367.312" y="182.179" fill="#FFF" font-size="14"> </text><text x="371.202" y="182.179" fill="#FFF" font-size="14" textLength="42.786">stream</text><text x="413.988" y="182.179" fill="#FFF" font-size="14"> </text><text x="417.877" y="182.179" fill="#FFF" font-size="14" textLength="27.234">their</text><text x="445.112" y="182.179" fill="#FFF" font-size="14"> </text><text x="449.001" y="182.179" fill="#FFF" font-size="14" textLength="53.703">personal</text><text x="373.136" y="199.788" fill="#FFF" font-size="14" textLength="38.131">media</text><text x="411.267"Line 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:629px;height:830px;background:#FFFFFF;" width="629px" height="830px" viewBox="0 0 629 830" 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="5"><text x="112.665" y="24.533" fill="#000" font-size="14" textLength="396.758" font-weight="700">System Context diagram for Nemera Media Library Manager</text></g><!--entity user--><g class="entity" data-qualified-name="user" id="ent0001" data-source-line="178"><rect x="315.271" y="50.609" width="216.116" height="162.255" fill="#08427B" style="stroke:#073B6F;stroke-width:0.5;"/><image width="52" height="52" x="397.483" y="60.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="381.091" y="128.911" fill="#FFF" font-size="16" textLength="44.453" font-weight="700">Home</text><text x="425.544" y="128.911" fill="#FFF" font-size="16" font-weight="700"> </text><text x="429.989" y="128.911" fill="#FFF" font-size="16" textLength="35.578" font-weight="700">User</text><text x="421.384" y="146.96" fill="#FFF" font-size="14"> </text><text x="325.271" y="164.569" fill="#FFF" font-size="14">A</text><text x="334.609" y="164.569" fill="#FFF" font-size="14"> </text><text x="338.499" y="164.569" fill="#FFF" font-size="14" textLength="42.807">person</text><text x="381.305" y="164.569" fill="#FFF" font-size="14"> </text><text x="385.195" y="164.569" fill="#FFF" font-size="14" textLength="25.683">who</text><text x="410.877" y="164.569" fill="#FFF" font-size="14"> </text><text x="414.767" y="164.569" fill="#FFF" font-size="14" textLength="36.572">wants</text><text x="451.339" y="164.569" fill="#FFF" font-size="14"> </text><text x="455.229" y="164.569" fill="#FFF" font-size="14" textLength="11.676">to</text><text x="466.905" y="164.569" fill="#FFF" font-size="14"> </text><text x="470.794" y="164.569" fill="#FFF" font-size="14" textLength="50.593">manage</text><text x="343.954" y="182.179" fill="#FFF" font-size="14" textLength="23.358">and</text><text x="367.312" y="182.179" fill="#FFF" font-size="14"> </text><text x="371.202" y="182.179" fill="#FFF" font-size="14" textLength="42.786">stream</text><text x="413.988" y="182.179" fill="#FFF" font-size="14"> </text><text x="417.877" y="182.179" fill="#FFF" font-size="14" textLength="27.234">their</text><text x="445.112" y="182.179" fill="#FFF" font-size="14"> </text><text x="449.001" y="182.179" fill="#FFF" font-size="14" textLength="53.703">personal</text><text x="373.136" y="199.788" fill="#FFF" font-size="14" textLength="38.131">media</text><text x="411.267"Line truncated

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

@@ -1,14 +1,14 @@
@startuml Lumina Container Diagram @startuml Nemera Container Diagram
!pragma layout elk !pragma layout elk
!include <C4/C4_Container> !include <C4/C4_Container>
LAYOUT_WITH_LEGEND() LAYOUT_WITH_LEGEND()
title Container diagram for Lumina 1.1 title Container diagram for Nemera 1.1
Person(user, "Home User", "A person who wants to manage and stream their personal media collection") Person(user, "Home User", "A person who wants to manage and stream their personal media collection")
Person(admin, "Administrator", "A person who manages the media library system") Person(admin, "Administrator", "A person who manages the media library system")
System_Boundary(c1, "Lumina 1.1") { System_Boundary(c1, "Nemera 1.1") {
Container(webapp, "Web Application Client 2.1", "ASP.NET Core + Razor", "Delivers server-rendered views with dynamic client-side functionality for media management, playback, reading, favorites, playlists, statistics, plugins, themes, and the scheduled jobs dashboard [detailed in '3.1 component-web-client-diagram.puml']") Container(webapp, "Web Application Client 2.1", "ASP.NET Core + Razor", "Delivers server-rendered views with dynamic client-side functionality for media management, playback, reading, favorites, playlists, statistics, plugins, themes, and the scheduled jobs dashboard [detailed in '3.1 component-web-client-diagram.puml']")
Container(api, "API Server 2.2", "ASP.NET Core", "Provides media library management, plugin metadata and artwork, music playback, book reading, themes, favorites, playlists, consumption statistics, and scheduled maintenance through a REST API [detailed in '3.2 component-api-server-diagram.puml']") Container(api, "API Server 2.2", "ASP.NET Core", "Provides media library management, plugin metadata and artwork, music playback, book reading, themes, favorites, playlists, consumption statistics, and scheduled maintenance through a REST API [detailed in '3.2 component-api-server-diagram.puml']")
@@ -30,7 +30,7 @@ Rel(api, filestore, "Reads from and writes to")
Rel(api, apiStorage, "Reads from and writes to", "File system") Rel(api, apiStorage, "Reads from and writes to", "File system")
Rel(api, metadata, "Retrieves metadata and artwork from", "HTTPS") Rel(api, metadata, "Retrieves metadata and artwork from", "HTTPS")
caption [Container] Lumina 1.1 caption [Container] Nemera 1.1
footer The container diagram for the Lumina 1.1 - created with PlantUML footer The container diagram for the Nemera 1.1 - created with PlantUML
@enduml @enduml
@@ -1 +1 @@
<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:860px;height:1663px;background:#FFFFFF;" width="860px" height="1663px" viewBox="0 0 860 1663" 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="5"><text x="315.007" y="24.533" fill="#000" font-size="14" textLength="223.262" font-weight="700">Container diagram for Lumina 1.1</text></g><rect x="12" y="307.145" width="744.176" height="903.609" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><text x="342.299" y="325.755" fill="#444" font-size="16" textLength="83.578" font-weight="700">Lumina 1.1</text><text x="359.411" y="341.727" fill="#444" font-size="12" textLength="49.354" font-weight="700">[system]</text><!--entity webapp--><g class="entity" data-qualified-name="c1.webapp" id="ent0004" data-source-line="71"><rect x="125.526" y="357.145" width="252.996" height="251.438" fill="#438DD5" style="stroke:#3C7FC0;stroke-width:0.5;"/><text x="164.915" y="383.755" fill="#FFF" font-size="16" textLength="33.773" font-weight="700">Web</text><text x="198.688" y="383.755" fill="#FFF" font-size="16" font-weight="700"> </text><text x="203.134" y="383.755" fill="#FFF" font-size="16" textLength="87.109" font-weight="700">Application</text><text x="290.243" y="383.755" fill="#FFF" font-size="16" font-weight="700"> </text><text x="294.688" y="383.755" fill="#FFF" font-size="16" textLength="44.445" font-weight="700">Client</text><text x="240.903" y="403.88" fill="#FFF" font-size="16" textLength="22.242" font-weight="700">2.1</text><text x="185.503" y="419.852" fill="#FFF" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="240.183" y="419.852" fill="#FFF" font-size="12" font-style="italic"> </text><text x="243.517" y="419.852" fill="#FFF" font-size="12" textLength="26.01" font-style="italic">Core</text><text x="269.526" y="419.852" fill="#FFF" font-size="12" font-style="italic"> </text><text x="272.86" y="419.852" fill="#FFF" font-size="12" font-style="italic">+</text><text x="279.868" y="419.852" fill="#FFF" font-size="12" font-style="italic"> </text><text x="283.202" y="419.852" fill="#FFF" font-size="12" textLength="35.344" font-style="italic">Razor]</text><text x="250.079" y="437.022" fill="#FFF" font-size="14"> </text><text x="155.549" y="454.632" fill="#FFF" font-size="14" textLength="50.565">Delivers</text><text x="206.114" y="454.632" fill="#FFF" font-size="14"> </text><text x="210.004" y="454.632" fill="#FFF" font-size="14" textLength="99.6">server-rendered</text><text x="309.603" y="454.632" fill="#FFF" font-size="14"> </text><text x="313.493" y="454.632" fill="#FFF" font-size="14" textLength="35.007">views</text><text x="178.107" y="472.241" fill="#FFF" font-size="14" textLength="24.896">with</text><text x="203.004" y="472.241" fill="#FFF" font-size="14"> </text><text x="206.893" y="472.241" fill="#FFF" font-size="14" textLength="52.131">dynamic</text><text x="259.024" y="472.241" fill="#FFF" font-size="14"> </text><text x="262.914" y="472.241" fill="#FFF" font-size="14" textLength="63.027">client-side</text><text x="183.935" y="489.851" fill="#FFF" font-size="14" textLength="73.931">functionality</text><text x="257.866" y="489.851" fill="#FFF" font-size="14"> </text><text x="261.755" y="489.851" fill="#FFF" font-size="14" textLength="16.338">for</text><text x="278.093" y="489.851" fill="#FFF" font-size="14"> </text><text x="281.983" y="489.851" fill="#FFF" font-size="14" textLength="38.131">media</text><text x="177.704" y="507.46" fill="#FFF" font-size="14" textLength="85.606">management,</text><text x="263.31" y="507.46" fill="#FFF" font-size="14"> </text><text x="267.2" y="507.46" fill="#FFF" font-size="14" textLength="59.145">playback,</text><text x="167.597" y="525.069" fill="#FFF" font-size="14" textLength="50.593">reading,</text><text x="218.19" y="525.069" fill="#FFF" font-size="14"> </text><text x="222.079" y="525.069" fill="#FFF" font-size="14" textLength="56.8">favorites,</text><text x="278.879" y="525.069" fill="#FFF" font-size="14"> </text><text x="282.769" y="525.069" fill="#FFF" font-size="14" textLength="53.683">playlists,</text><text x="156.701" y="542.679" fill="#FFF" font-size="14" textLength="57.565">statistics,</text><text x="214.266" y="542.679" fill="#FFF" font-size="14"> </text><text x="218.156" y="542.679" fill="#FFF" font-size="14" textLength="48.255">plugins,</text><text x="266.411" y="542.679" fill="#FFF" font-size="14"> </text><text x="270.3" y="542.679" fill="#FFF" font-size="14" textLength="49.8">themes,</text><text x="320.1" y="542.679" fill="#FFF" font-size="14"> </text><text x="323.99" y="542.679" fill="#FFF" font-size="14" textLength="23.358">and</text><text x="158.621" y="560.288" fill="#FFF" font-size="14" textLength="19.462">the</text><tLine 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:860px;height:1663px;background:#FFFFFF;" width="860px" height="1663px" viewBox="0 0 860 1663" 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="5"><text x="315.007" y="24.533" fill="#000" font-size="14" textLength="223.262" font-weight="700">Container diagram for Nemera 1.1</text></g><rect x="12" y="307.145" width="744.176" height="903.609" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><text x="342.299" y="325.755" fill="#444" font-size="16" textLength="83.578" font-weight="700">Nemera 1.1</text><text x="359.411" y="341.727" fill="#444" font-size="12" textLength="49.354" font-weight="700">[system]</text><!--entity webapp--><g class="entity" data-qualified-name="c1.webapp" id="ent0004" data-source-line="71"><rect x="125.526" y="357.145" width="252.996" height="251.438" fill="#438DD5" style="stroke:#3C7FC0;stroke-width:0.5;"/><text x="164.915" y="383.755" fill="#FFF" font-size="16" textLength="33.773" font-weight="700">Web</text><text x="198.688" y="383.755" fill="#FFF" font-size="16" font-weight="700"> </text><text x="203.134" y="383.755" fill="#FFF" font-size="16" textLength="87.109" font-weight="700">Application</text><text x="290.243" y="383.755" fill="#FFF" font-size="16" font-weight="700"> </text><text x="294.688" y="383.755" fill="#FFF" font-size="16" textLength="44.445" font-weight="700">Client</text><text x="240.903" y="403.88" fill="#FFF" font-size="16" textLength="22.242" font-weight="700">2.1</text><text x="185.503" y="419.852" fill="#FFF" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="240.183" y="419.852" fill="#FFF" font-size="12" font-style="italic"> </text><text x="243.517" y="419.852" fill="#FFF" font-size="12" textLength="26.01" font-style="italic">Core</text><text x="269.526" y="419.852" fill="#FFF" font-size="12" font-style="italic"> </text><text x="272.86" y="419.852" fill="#FFF" font-size="12" font-style="italic">+</text><text x="279.868" y="419.852" fill="#FFF" font-size="12" font-style="italic"> </text><text x="283.202" y="419.852" fill="#FFF" font-size="12" textLength="35.344" font-style="italic">Razor]</text><text x="250.079" y="437.022" fill="#FFF" font-size="14"> </text><text x="155.549" y="454.632" fill="#FFF" font-size="14" textLength="50.565">Delivers</text><text x="206.114" y="454.632" fill="#FFF" font-size="14"> </text><text x="210.004" y="454.632" fill="#FFF" font-size="14" textLength="99.6">server-rendered</text><text x="309.603" y="454.632" fill="#FFF" font-size="14"> </text><text x="313.493" y="454.632" fill="#FFF" font-size="14" textLength="35.007">views</text><text x="178.107" y="472.241" fill="#FFF" font-size="14" textLength="24.896">with</text><text x="203.004" y="472.241" fill="#FFF" font-size="14"> </text><text x="206.893" y="472.241" fill="#FFF" font-size="14" textLength="52.131">dynamic</text><text x="259.024" y="472.241" fill="#FFF" font-size="14"> </text><text x="262.914" y="472.241" fill="#FFF" font-size="14" textLength="63.027">client-side</text><text x="183.935" y="489.851" fill="#FFF" font-size="14" textLength="73.931">functionality</text><text x="257.866" y="489.851" fill="#FFF" font-size="14"> </text><text x="261.755" y="489.851" fill="#FFF" font-size="14" textLength="16.338">for</text><text x="278.093" y="489.851" fill="#FFF" font-size="14"> </text><text x="281.983" y="489.851" fill="#FFF" font-size="14" textLength="38.131">media</text><text x="177.704" y="507.46" fill="#FFF" font-size="14" textLength="85.606">management,</text><text x="263.31" y="507.46" fill="#FFF" font-size="14"> </text><text x="267.2" y="507.46" fill="#FFF" font-size="14" textLength="59.145">playback,</text><text x="167.597" y="525.069" fill="#FFF" font-size="14" textLength="50.593">reading,</text><text x="218.19" y="525.069" fill="#FFF" font-size="14"> </text><text x="222.079" y="525.069" fill="#FFF" font-size="14" textLength="56.8">favorites,</text><text x="278.879" y="525.069" fill="#FFF" font-size="14"> </text><text x="282.769" y="525.069" fill="#FFF" font-size="14" textLength="53.683">playlists,</text><text x="156.701" y="542.679" fill="#FFF" font-size="14" textLength="57.565">statistics,</text><text x="214.266" y="542.679" fill="#FFF" font-size="14"> </text><text x="218.156" y="542.679" fill="#FFF" font-size="14" textLength="48.255">plugins,</text><text x="266.411" y="542.679" fill="#FFF" font-size="14"> </text><text x="270.3" y="542.679" fill="#FFF" font-size="14" textLength="49.8">themes,</text><text x="320.1" y="542.679" fill="#FFF" font-size="14"> </text><text x="323.99" y="542.679" fill="#FFF" font-size="14" textLength="23.358">and</text><text x="158.621" y="560.288" fill="#FFF" font-size="14" textLength="19.462">the</text><tLine truncated

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

@@ -1,11 +1,11 @@
@startuml Lumina Web Application Components @startuml Nemera Web Application Components
!pragma layout elk !pragma layout elk
!include <C4/C4_Component> !include <C4/C4_Component>
LAYOUT_WITH_LEGEND() LAYOUT_WITH_LEGEND()
title Component diagram for Lumina Web Application Client 2.1 title Component diagram for Nemera Web Application Client 2.1
Container_Ext(api, "API Server 2.2", "Lumina.Presentation.Api", "Provides media management functionality via JSON/HTTPS API [detailed in '3.2 component-api-server-diagram.puml']") Container_Ext(api, "API Server 2.2", "Nemera.Presentation.Api", "Provides media management functionality via JSON/HTTPS API [detailed in '3.2 component-api-server-diagram.puml']")
Container_Boundary(wb, "Web Application 2.1") { Container_Boundary(wb, "Web Application 2.1") {
Component(fileSystem, "File System Management", "FastEndpoints + Razor views", "Handles file system operations including drives, directories, files browsing, path operations and thumbnails") Component(fileSystem, "File System Management", "FastEndpoints + Razor views", "Handles file system operations including drives, directories, files browsing, path operations and thumbnails")
@@ -62,7 +62,7 @@ Rel(clientJs, admin, "Makes AJAX calls to")
Rel(clientJs, users, "Makes AJAX calls to") Rel(clientJs, users, "Makes AJAX calls to")
Rel(clientJs, api, "Receives media library scan progress and scheduled job updates from the SignalR hubs", "SignalR") Rel(clientJs, api, "Receives media library scan progress and scheduled job updates from the SignalR hubs", "SignalR")
caption [Component] Lumina - Web Application Client 2.1 (Lumina.Presentation.Web) caption [Component] Nemera - Web Application Client 2.1 (Nemera.Presentation.Web)
footer The component diagram for the Lumina Web Application Client 2.1 - created with PlantUML footer The component diagram for the Nemera Web Application Client 2.1 - created with PlantUML
@enduml @enduml
@@ -1 +1 @@
<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:2738px;height:1452px;background:#FFFFFF;" width="2738px" height="1452px" viewBox="0 0 2738 1452" 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="5"><text x="1169.838" 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><rect x="180.346" y="50.609" width="2545.352" height="903.984" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><text x="1377.014" y="69.219" fill="#444" font-size="16" textLength="152.016" font-weight="700">Web Application 2.1</text><text x="1422.02" y="85.191" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text><!--entity fileSystem--><g class="entity" data-qualified-name="wb.fileSystem" id="ent0003" data-source-line="78"><rect x="686.181" y="525.039" width="211.172" height="143.266" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="696.181" y="551.648" fill="#000" font-size="16" textLength="27.563" font-weight="700">File</text><text x="723.743" y="551.648" fill="#000" font-size="16" font-weight="700"> </text><text x="728.188" y="551.648" fill="#000" font-size="16" textLength="56.922" font-weight="700">System</text><text x="785.11" y="551.648" fill="#000" font-size="16" font-weight="700"> </text><text x="789.556" y="551.648" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="710.564" y="567.621" fill="#000" font-size="12" textLength="80.045" font-style="italic">[FastEndpoints</text><text x="790.609" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="793.943" y="567.621" fill="#000" font-size="12" font-style="italic">+</text><text x="800.951" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="804.285" y="567.621" fill="#000" font-size="12" textLength="32.01" font-style="italic">Razor</text><text x="836.295" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="839.629" y="567.621" fill="#000" font-size="12" textLength="33.34" font-style="italic">views]</text><text x="789.822" y="584.791" fill="#000" font-size="14"> </text><text x="696.443" y="602.4" fill="#000" font-size="14" textLength="51.365">Handles</text><text x="747.808" y="602.4" fill="#000" font-size="14"> </text><text x="751.698" y="602.4" fill="#000" font-size="14" textLength="17.896">file</text><text x="769.594" y="602.4" fill="#000" font-size="14"> </text><text x="773.484" y="602.4" fill="#000" font-size="14" textLength="44.338">system</text><text x="817.822" y="602.4" fill="#000" font-size="14"> </text><text x="821.711" y="602.4" fill="#000" font-size="14" textLength="65.379">operations</text><text x="705.395" y="620.01" fill="#000" font-size="14" textLength="55.262">including</text><text x="760.656" y="620.01" fill="#000" font-size="14"> </text><text x="764.546" y="620.01" fill="#000" font-size="14" textLength="41.234">drives,</text><text x="805.78" y="620.01" fill="#000" font-size="14"> </text><text x="809.67" y="620.01" fill="#000" font-size="14" textLength="68.469">directories,</text><text x="697.212" y="637.619" fill="#000" font-size="14" textLength="24.896">files</text><text x="722.108" y="637.619" fill="#000" font-size="14"> </text><text x="725.998" y="637.619" fill="#000" font-size="14" textLength="59.917">browsing,</text><text x="785.915" y="637.619" fill="#000" font-size="14"> </text><text x="789.805" y="637.619" fill="#000" font-size="14" textLength="27.248">path</text><text x="817.053" y="637.619" fill="#000" font-size="14"> </text><text x="820.942" y="637.619" fill="#000" font-size="14" textLength="65.379">operations</text><text x="744.291" y="655.229" fill="#000" font-size="14" textLength="23.358">and</text><text x="767.649" y="655.229" fill="#000" font-size="14"> </text><text x="771.539" y="655.229" fill="#000" font-size="14" textLength="67.703">thumbnails</text></g><!--entity library--><g class="entity" data-qualified-name="wb.library" id="ent0004" data-source-line="78"><rect x="917.353" y="525.039" width="199.765" height="143.266" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="938.993" y="551.648" fill="#000" font-size="16" textLength="54.242" font-weight="700">Library</text><text x="993.235" y="551.648" fill="#000" font-size="16" font-weight="700"> </text><text x="997.68" y="551.648" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="936.033" y="567.621" fill="#000" font-size="12" textLength="80.045" font-style="italic">[FastEndpoints</text><text x="1016.078" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="1019.412" y="567.621" fill="#000" font-size="12" font-stylLine 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:2738px;height:1452px;background:#FFFFFF;" width="2738px" height="1452px" viewBox="0 0 2738 1452" 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="5"><text x="1169.838" y="24.533" fill="#000" font-size="14" textLength="392.021" font-weight="700">Component diagram for Nemera Web Application Client 2.1</text></g><rect x="180.346" y="50.609" width="2545.352" height="903.984" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><text x="1377.014" y="69.219" fill="#444" font-size="16" textLength="152.016" font-weight="700">Web Application 2.1</text><text x="1422.02" y="85.191" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text><!--entity fileSystem--><g class="entity" data-qualified-name="wb.fileSystem" id="ent0003" data-source-line="78"><rect x="686.181" y="525.039" width="211.172" height="143.266" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="696.181" y="551.648" fill="#000" font-size="16" textLength="27.563" font-weight="700">File</text><text x="723.743" y="551.648" fill="#000" font-size="16" font-weight="700"> </text><text x="728.188" y="551.648" fill="#000" font-size="16" textLength="56.922" font-weight="700">System</text><text x="785.11" y="551.648" fill="#000" font-size="16" font-weight="700"> </text><text x="789.556" y="551.648" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="710.564" y="567.621" fill="#000" font-size="12" textLength="80.045" font-style="italic">[FastEndpoints</text><text x="790.609" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="793.943" y="567.621" fill="#000" font-size="12" font-style="italic">+</text><text x="800.951" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="804.285" y="567.621" fill="#000" font-size="12" textLength="32.01" font-style="italic">Razor</text><text x="836.295" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="839.629" y="567.621" fill="#000" font-size="12" textLength="33.34" font-style="italic">views]</text><text x="789.822" y="584.791" fill="#000" font-size="14"> </text><text x="696.443" y="602.4" fill="#000" font-size="14" textLength="51.365">Handles</text><text x="747.808" y="602.4" fill="#000" font-size="14"> </text><text x="751.698" y="602.4" fill="#000" font-size="14" textLength="17.896">file</text><text x="769.594" y="602.4" fill="#000" font-size="14"> </text><text x="773.484" y="602.4" fill="#000" font-size="14" textLength="44.338">system</text><text x="817.822" y="602.4" fill="#000" font-size="14"> </text><text x="821.711" y="602.4" fill="#000" font-size="14" textLength="65.379">operations</text><text x="705.395" y="620.01" fill="#000" font-size="14" textLength="55.262">including</text><text x="760.656" y="620.01" fill="#000" font-size="14"> </text><text x="764.546" y="620.01" fill="#000" font-size="14" textLength="41.234">drives,</text><text x="805.78" y="620.01" fill="#000" font-size="14"> </text><text x="809.67" y="620.01" fill="#000" font-size="14" textLength="68.469">directories,</text><text x="697.212" y="637.619" fill="#000" font-size="14" textLength="24.896">files</text><text x="722.108" y="637.619" fill="#000" font-size="14"> </text><text x="725.998" y="637.619" fill="#000" font-size="14" textLength="59.917">browsing,</text><text x="785.915" y="637.619" fill="#000" font-size="14"> </text><text x="789.805" y="637.619" fill="#000" font-size="14" textLength="27.248">path</text><text x="817.053" y="637.619" fill="#000" font-size="14"> </text><text x="820.942" y="637.619" fill="#000" font-size="14" textLength="65.379">operations</text><text x="744.291" y="655.229" fill="#000" font-size="14" textLength="23.358">and</text><text x="767.649" y="655.229" fill="#000" font-size="14"> </text><text x="771.539" y="655.229" fill="#000" font-size="14" textLength="67.703">thumbnails</text></g><!--entity library--><g class="entity" data-qualified-name="wb.library" id="ent0004" data-source-line="78"><rect x="917.353" y="525.039" width="199.765" height="143.266" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="938.993" y="551.648" fill="#000" font-size="16" textLength="54.242" font-weight="700">Library</text><text x="993.235" y="551.648" fill="#000" font-size="16" font-weight="700"> </text><text x="997.68" y="551.648" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="936.033" y="567.621" fill="#000" font-size="12" textLength="80.045" font-style="italic">[FastEndpoints</text><text x="1016.078" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="1019.412" y="567.621" fill="#000" font-size="12" font-stylLine truncated

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

@@ -1,11 +1,11 @@
@startuml Lumina API Server Components @startuml Nemera API Server Components
!pragma layout elk !pragma layout elk
!include <C4/C4_Component> !include <C4/C4_Component>
LAYOUT_WITH_LEGEND() LAYOUT_WITH_LEGEND()
title Component diagram for Lumina API Server 2.2 title Component diagram for Nemera API Server 2.2
Container_Ext(webapp, "Web Application Client 2.1", "Lumina.Presentation.Web", "Provides the user interface [detailed in '3.1 component-web-client-diagram.puml']") Container_Ext(webapp, "Web Application Client 2.1", "Nemera.Presentation.Web", "Provides the user interface [detailed in '3.1 component-web-client-diagram.puml']")
Container_Boundary(api, "API Server 2.2") { Container_Boundary(api, "API Server 2.2") {
Component(endpoints, "API Endpoints", "FastEndpoints", "Provides REST API endpoints for libraries, media items, playback, reading, favorites, playlists, statistics, plugins, themes, scheduling, users, administration and maintenance") Component(endpoints, "API Endpoints", "FastEndpoints", "Provides REST API endpoints for libraries, media items, playback, reading, favorites, playlists, statistics, plugins, themes, scheduling, users, administration and maintenance")
@@ -26,7 +26,7 @@ Container_Boundary(api, "API Server 2.2") {
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(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 [detailed in '4.2 code-book-reading-diagram.puml']") Component(readerPlugins, "Book Reader Plugins", "Nemera.Plugins.Epub, Nemera.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(musicPlayback, "Music Playback", "Application + Infrastructure services", "Decides how a track is delivered, normalizes audio with ffmpeg, caches it as segments and serves the track stream and segment endpoints") Component(musicPlayback, "Music Playback", "Application + Infrastructure services", "Decides how a track is delivered, normalizes audio with ffmpeg, caches it as segments and serves the track stream and segment endpoints")
@@ -97,7 +97,7 @@ Rel(scheduledJobs, themes, "Repairs the installed themes of its RepairThemes tas
Rel(scheduledJobs, readCache, "Empties with its CleanTemporaryFiles task", "File system") Rel(scheduledJobs, readCache, "Empties with its CleanTemporaryFiles task", "File system")
Rel(repositories, db, "Reads from and writes to", "SQL") Rel(repositories, db, "Reads from and writes to", "SQL")
caption [Component] Lumina - API Server 2.2 (Lumina.Presentation.Api) caption [Component] Nemera - API Server 2.2 (Nemera.Presentation.Api)
footer The component diagram for the Lumina API Server 2.2 - created with PlantUML footer The component diagram for the Nemera API Server 2.2 - created with PlantUML
@enduml @enduml
@@ -1 +1 @@
<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:3333px;height:2688px;background:#FFFFFF;" width="3333px" height="2688px" viewBox="0 0 3333 2688" 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="5"><text x="1508.296" y="24.533" fill="#000" font-size="14" textLength="310.399" font-weight="700">Component diagram for Lumina API Server 2.2</text></g><rect x="12" y="275.578" width="3106.893" height="1774.25" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><text x="1511.634" y="294.188" fill="#444" font-size="16" textLength="107.625" font-weight="700">API Server 2.2</text><text x="1534.445" y="310.16" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text><!--entity endpoints--><g class="entity" data-qualified-name="api.endpoints" id="ent0003" data-source-line="78"><rect x="2776.252" y="325.578" width="218.454" height="178.484" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="2830.815" y="352.188" fill="#000" font-size="16" textLength="26.672" font-weight="700">API</text><text x="2857.487" y="352.188" fill="#000" font-size="16" font-weight="700"> </text><text x="2861.933" y="352.188" fill="#000" font-size="16" textLength="78.211" font-weight="700">Endpoints</text><text x="2843.79" y="368.16" fill="#000" font-size="12" textLength="83.379" font-style="italic">[FastEndpoints]</text><text x="2883.535" y="385.33" fill="#000" font-size="14"> </text><text x="2792.101" y="402.939" fill="#000" font-size="14" textLength="54.469">Provides</text><text x="2846.569" y="402.939" fill="#000" font-size="14"> </text><text x="2850.459" y="402.939" fill="#000" font-size="14" textLength="37.338">REST</text><text x="2887.797" y="402.939" fill="#000" font-size="14"> </text><text x="2891.687" y="402.939" fill="#000" font-size="14" textLength="22.565">API</text><text x="2914.252" y="402.939" fill="#000" font-size="14"> </text><text x="2918.142" y="402.939" fill="#000" font-size="14" textLength="60.717">endpoints</text><text x="2807.29" y="420.549" fill="#000" font-size="14" textLength="16.338">for</text><text x="2823.628" y="420.549" fill="#000" font-size="14"> </text><text x="2827.518" y="420.549" fill="#000" font-size="14" textLength="52.903">libraries,</text><text x="2880.421" y="420.549" fill="#000" font-size="14"> </text><text x="2884.311" y="420.549" fill="#000" font-size="14" textLength="38.131">media</text><text x="2922.441" y="420.549" fill="#000" font-size="14"> </text><text x="2926.331" y="420.549" fill="#000" font-size="14" textLength="37.338">items,</text><text x="2798.321" y="438.158" fill="#000" font-size="14" textLength="59.145">playback,</text><text x="2857.466" y="438.158" fill="#000" font-size="14"> </text><text x="2861.355" y="438.158" fill="#000" font-size="14" textLength="50.593">reading,</text><text x="2911.948" y="438.158" fill="#000" font-size="14"> </text><text x="2915.838" y="438.158" fill="#000" font-size="14" textLength="56.8">favorites,</text><text x="2801.838" y="455.768" fill="#000" font-size="14" textLength="53.683">playlists,</text><text x="2855.521" y="455.768" fill="#000" font-size="14"> </text><text x="2859.411" y="455.768" fill="#000" font-size="14" textLength="57.565">statistics,</text><text x="2916.976" y="455.768" fill="#000" font-size="14"> </text><text x="2920.866" y="455.768" fill="#000" font-size="14" textLength="48.255">plugins,</text><text x="2802.214" y="473.377" fill="#000" font-size="14" textLength="49.8">themes,</text><text x="2852.014" y="473.377" fill="#000" font-size="14"> </text><text x="2855.904" y="473.377" fill="#000" font-size="14" textLength="70.827">scheduling,</text><text x="2926.731" y="473.377" fill="#000" font-size="14"> </text><text x="2930.621" y="473.377" fill="#000" font-size="14" textLength="38.124">users,</text><text x="2786.252" y="490.986" fill="#000" font-size="14" textLength="87.151">administration</text><text x="2873.404" y="490.986" fill="#000" font-size="14"> </text><text x="2877.293" y="490.986" fill="#000" font-size="14" textLength="23.358">and</text><text x="2900.652" y="490.986" fill="#000" font-size="14"> </text><text x="2904.542" y="490.986" fill="#000" font-size="14" textLength="80.165">maintenance</text></g><!--entity mediaManagement--><g class="entity" data-qualified-name="api.mediaManagement" id="ent0004" data-source-line="78"><rect x="1636.311" y="1116.703" width="218.468" height="163.391" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="1693.53" y="1143.313" fill="#000" font-size="16" textLength="45.344" font-weight="700">Media</text><text x="1738.873" y="1143.313" fill="#000" font-size="16" font-weight="700"> </text><text x="1743.319" y="1143.313" fill="#000" font-size="16" textLength="54.242" font-weight="700">LibraryLine 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:3333px;height:2688px;background:#FFFFFF;" width="3333px" height="2688px" viewBox="0 0 3333 2688" 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="5"><text x="1508.296" y="24.533" fill="#000" font-size="14" textLength="310.399" font-weight="700">Component diagram for Nemera API Server 2.2</text></g><rect x="12" y="275.578" width="3106.893" height="1774.25" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><text x="1511.634" y="294.188" fill="#444" font-size="16" textLength="107.625" font-weight="700">API Server 2.2</text><text x="1534.445" y="310.16" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text><!--entity endpoints--><g class="entity" data-qualified-name="api.endpoints" id="ent0003" data-source-line="78"><rect x="2776.252" y="325.578" width="218.454" height="178.484" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="2830.815" y="352.188" fill="#000" font-size="16" textLength="26.672" font-weight="700">API</text><text x="2857.487" y="352.188" fill="#000" font-size="16" font-weight="700"> </text><text x="2861.933" y="352.188" fill="#000" font-size="16" textLength="78.211" font-weight="700">Endpoints</text><text x="2843.79" y="368.16" fill="#000" font-size="12" textLength="83.379" font-style="italic">[FastEndpoints]</text><text x="2883.535" y="385.33" fill="#000" font-size="14"> </text><text x="2792.101" y="402.939" fill="#000" font-size="14" textLength="54.469">Provides</text><text x="2846.569" y="402.939" fill="#000" font-size="14"> </text><text x="2850.459" y="402.939" fill="#000" font-size="14" textLength="37.338">REST</text><text x="2887.797" y="402.939" fill="#000" font-size="14"> </text><text x="2891.687" y="402.939" fill="#000" font-size="14" textLength="22.565">API</text><text x="2914.252" y="402.939" fill="#000" font-size="14"> </text><text x="2918.142" y="402.939" fill="#000" font-size="14" textLength="60.717">endpoints</text><text x="2807.29" y="420.549" fill="#000" font-size="14" textLength="16.338">for</text><text x="2823.628" y="420.549" fill="#000" font-size="14"> </text><text x="2827.518" y="420.549" fill="#000" font-size="14" textLength="52.903">libraries,</text><text x="2880.421" y="420.549" fill="#000" font-size="14"> </text><text x="2884.311" y="420.549" fill="#000" font-size="14" textLength="38.131">media</text><text x="2922.441" y="420.549" fill="#000" font-size="14"> </text><text x="2926.331" y="420.549" fill="#000" font-size="14" textLength="37.338">items,</text><text x="2798.321" y="438.158" fill="#000" font-size="14" textLength="59.145">playback,</text><text x="2857.466" y="438.158" fill="#000" font-size="14"> </text><text x="2861.355" y="438.158" fill="#000" font-size="14" textLength="50.593">reading,</text><text x="2911.948" y="438.158" fill="#000" font-size="14"> </text><text x="2915.838" y="438.158" fill="#000" font-size="14" textLength="56.8">favorites,</text><text x="2801.838" y="455.768" fill="#000" font-size="14" textLength="53.683">playlists,</text><text x="2855.521" y="455.768" fill="#000" font-size="14"> </text><text x="2859.411" y="455.768" fill="#000" font-size="14" textLength="57.565">statistics,</text><text x="2916.976" y="455.768" fill="#000" font-size="14"> </text><text x="2920.866" y="455.768" fill="#000" font-size="14" textLength="48.255">plugins,</text><text x="2802.214" y="473.377" fill="#000" font-size="14" textLength="49.8">themes,</text><text x="2852.014" y="473.377" fill="#000" font-size="14"> </text><text x="2855.904" y="473.377" fill="#000" font-size="14" textLength="70.827">scheduling,</text><text x="2926.731" y="473.377" fill="#000" font-size="14"> </text><text x="2930.621" y="473.377" fill="#000" font-size="14" textLength="38.124">users,</text><text x="2786.252" y="490.986" fill="#000" font-size="14" textLength="87.151">administration</text><text x="2873.404" y="490.986" fill="#000" font-size="14"> </text><text x="2877.293" y="490.986" fill="#000" font-size="14" textLength="23.358">and</text><text x="2900.652" y="490.986" fill="#000" font-size="14"> </text><text x="2904.542" y="490.986" fill="#000" font-size="14" textLength="80.165">maintenance</text></g><!--entity mediaManagement--><g class="entity" data-qualified-name="api.mediaManagement" id="ent0004" data-source-line="78"><rect x="1636.311" y="1116.703" width="218.468" height="163.391" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="1693.53" y="1143.313" fill="#000" font-size="16" textLength="45.344" font-weight="700">Media</text><text x="1738.873" y="1143.313" fill="#000" font-size="16" font-weight="700"> </text><text x="1743.319" y="1143.313" fill="#000" font-size="16" textLength="54.242" font-weight="700">LibraryLine truncated

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 141 KiB

@@ -576,7 +576,7 @@ LibraryScanProgressChangedDomainEventHandler --> IMediaLibraryScanProgressNotifi
LibraryScanJobProgressChangedDomainEventHandler --> IMediaLibrariesScanProgressTracker : updates job progress LibraryScanJobProgressChangedDomainEventHandler --> IMediaLibrariesScanProgressTracker : updates job progress
LibraryScanJobProgressChangedDomainEventHandler --> IMediaLibraryScanProgressNotifier : notifies update LibraryScanJobProgressChangedDomainEventHandler --> IMediaLibraryScanProgressNotifier : notifies update
caption [Code] Lumina - Media Library Scanning 3.2.1 caption [Code] Nemera - Media Library Scanning 3.2.1
footer The code diagram for the Media Library Scanning 3.2.1 - created with PlantUML footer The code diagram for the Media Library Scanning 3.2.1 - created with PlantUML
@enduml @enduml
@@ -1 +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:4563px;height:6440px;background:#FFFFFF;" width="4563px" height="6440px" viewBox="0 0 4563 6440" 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="5"><text x="2122.046" y="24.533" fill="#000" font-size="14" textLength="312.744" font-weight="700">Code diagram for Media Library Scanning 3.2.1</text></g><!--class IMediaLibraryScanJob--><g class="entity" data-qualified-name="IMediaLibraryScanJob" id="ent0001" data-source-line="14"><rect x="2721.682" y="3260" width="210.434" height="312.141" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="2754.294" cy="3276" rx="11" ry="11" fill="#B4A7E5" style="stroke:#181818;stroke-width:1;"/><path d="M2755.247,3272.641 L2755.247,3279.297 L2756.966,3279.297 Q2757.575,3279.297 2757.841,3279.531 Q2758.107,3279.766 2758.107,3280.156 Q2758.107,3280.531 2757.841,3280.766 Q2757.575,3281 2756.966,3281 L2751.825,3281 Q2751.216,3281 2750.95,3280.766 Q2750.685,3280.531 2750.685,3280.141 Q2750.685,3279.766 2750.95,3279.531 Q2751.216,3279.297 2751.825,3279.297 L2753.544,3279.297 L2753.544,3272.641 L2751.825,3272.641 Q2751.216,3272.641 2750.95,3272.406 Q2750.685,3272.172 2750.685,3271.781 Q2750.685,3271.406 2750.95,3271.172 Q2751.216,3270.938 2751.825,3270.938 L2756.966,3270.938 Q2757.575,3270.938 2757.841,3271.172 Q2758.107,3271.406 2758.107,3271.781 Q2758.107,3272.172 2757.841,3272.406 Q2757.575,3272.641 2756.966,3272.641 L2755.247,3272.641 Z " fill="#000"/><text x="2772.208" y="3281.729" fill="#000" font-size="14" textLength="139.296" font-style="italic">IMediaLibraryScanJob</text><line x1="2722.682" y1="3292" x2="2931.116" y2="3292" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3306.305" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3310.533" fill="#000" font-size="14" textLength="47.476">ScanId:</text><text x="2789.158" y="3310.533" fill="#000" font-size="14"> </text><text x="2793.047" y="3310.533" fill="#000" font-size="14" textLength="43.586">ScanId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3323.914" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3328.143" fill="#000" font-size="14" textLength="45.124">UserId:</text><text x="2786.806" y="3328.143" fill="#000" font-size="14"> </text><text x="2790.696" y="3328.143" fill="#000" font-size="14" textLength="41.234">UserId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3341.523" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3345.752" fill="#000" font-size="14" textLength="58.358">LibraryId:</text><text x="2800.04" y="3345.752" fill="#000" font-size="14"> </text><text x="2803.93" y="3345.752" fill="#000" font-size="14" textLength="54.469">LibraryId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3367.938" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3363.361" fill="#000" font-size="14" textLength="56.027">Children:</text><text x="2741.682" y="3380.971" fill="#000" font-size="14" textLength="177.434">List&lt;IMediaLibraryScanJob></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3403.156" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3398.58" fill="#000" font-size="14" textLength="52.138">Parents:</text><text x="2741.682" y="3416.189" fill="#000" font-size="14" textLength="177.434">List&lt;IMediaLibraryScanJob></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3429.57" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3433.799" fill="#000" font-size="14" textLength="43.579">Status:</text><text x="2785.261" y="3433.799" fill="#000" font-size="14"> </text><text x="2789.151" y="3433.799" fill="#000" font-size="14" textLength="136.965">LibraryScanJobStatus</text><line x1="2722.682" y1="3440.875" x2="2931.116" y2="3440.875" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="2732.682" cy="3463.984" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3459.408" fill="#000" font-size="14" textLength="84.048">AddChild(job:</text><text x="2741.682" y="3477.018" fill="#000" font-size="14" textLength="143.958">IMediaLibraryScanJob)</text><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="2732.682" cy="3499.203" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3494.627" fill="#000" font-size="14" textLength="93.393">AddParent(job:</text><teLine truncated <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:4563px;height:6440px;background:#FFFFFF;" width="4563px" height="6440px" viewBox="0 0 4563 6440" 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="5"><text x="2122.046" y="24.533" fill="#000" font-size="14" textLength="312.744" font-weight="700">Code diagram for Media Library Scanning 3.2.1</text></g><!--class IMediaLibraryScanJob--><g class="entity" data-qualified-name="IMediaLibraryScanJob" id="ent0001" data-source-line="14"><rect x="2721.682" y="3260" width="210.434" height="312.141" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="2754.294" cy="3276" rx="11" ry="11" fill="#B4A7E5" style="stroke:#181818;stroke-width:1;"/><path d="M2755.247,3272.641 L2755.247,3279.297 L2756.966,3279.297 Q2757.575,3279.297 2757.841,3279.531 Q2758.107,3279.766 2758.107,3280.156 Q2758.107,3280.531 2757.841,3280.766 Q2757.575,3281 2756.966,3281 L2751.825,3281 Q2751.216,3281 2750.95,3280.766 Q2750.685,3280.531 2750.685,3280.141 Q2750.685,3279.766 2750.95,3279.531 Q2751.216,3279.297 2751.825,3279.297 L2753.544,3279.297 L2753.544,3272.641 L2751.825,3272.641 Q2751.216,3272.641 2750.95,3272.406 Q2750.685,3272.172 2750.685,3271.781 Q2750.685,3271.406 2750.95,3271.172 Q2751.216,3270.938 2751.825,3270.938 L2756.966,3270.938 Q2757.575,3270.938 2757.841,3271.172 Q2758.107,3271.406 2758.107,3271.781 Q2758.107,3272.172 2757.841,3272.406 Q2757.575,3272.641 2756.966,3272.641 L2755.247,3272.641 Z " fill="#000"/><text x="2772.208" y="3281.729" fill="#000" font-size="14" textLength="139.296" font-style="italic">IMediaLibraryScanJob</text><line x1="2722.682" y1="3292" x2="2931.116" y2="3292" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3306.305" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3310.533" fill="#000" font-size="14" textLength="47.476">ScanId:</text><text x="2789.158" y="3310.533" fill="#000" font-size="14"> </text><text x="2793.047" y="3310.533" fill="#000" font-size="14" textLength="43.586">ScanId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3323.914" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3328.143" fill="#000" font-size="14" textLength="45.124">UserId:</text><text x="2786.806" y="3328.143" fill="#000" font-size="14"> </text><text x="2790.696" y="3328.143" fill="#000" font-size="14" textLength="41.234">UserId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3341.523" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3345.752" fill="#000" font-size="14" textLength="58.358">LibraryId:</text><text x="2800.04" y="3345.752" fill="#000" font-size="14"> </text><text x="2803.93" y="3345.752" fill="#000" font-size="14" textLength="54.469">LibraryId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3367.938" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3363.361" fill="#000" font-size="14" textLength="56.027">Children:</text><text x="2741.682" y="3380.971" fill="#000" font-size="14" textLength="177.434">List&lt;IMediaLibraryScanJob></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3403.156" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3398.58" fill="#000" font-size="14" textLength="52.138">Parents:</text><text x="2741.682" y="3416.189" fill="#000" font-size="14" textLength="177.434">List&lt;IMediaLibraryScanJob></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3429.57" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3433.799" fill="#000" font-size="14" textLength="43.579">Status:</text><text x="2785.261" y="3433.799" fill="#000" font-size="14"> </text><text x="2789.151" y="3433.799" fill="#000" font-size="14" textLength="136.965">LibraryScanJobStatus</text><line x1="2722.682" y1="3440.875" x2="2931.116" y2="3440.875" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="2732.682" cy="3463.984" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3459.408" fill="#000" font-size="14" textLength="84.048">AddChild(job:</text><text x="2741.682" y="3477.018" fill="#000" font-size="14" textLength="143.958">IMediaLibraryScanJob)</text><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="2732.682" cy="3499.203" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3494.627" fill="#000" font-size="14" textLength="93.393">AddParent(job:</text><teLine truncated

Before

Width:  |  Height:  |  Size: 333 KiB

After

Width:  |  Height:  |  Size: 333 KiB

@@ -93,7 +93,7 @@ note bottom of ReadingCachePaths
end note end note
class ReadingContentSanitizer { class ReadingContentSanitizer {
+ RESOURCE_ATTRIBUTE: string = data-lumina-resource + RESOURCE_ATTRIBUTE: string = data-nemera-resource
+ {static} Sanitize(html: string, shouldPreserveStyles: bool): string + {static} Sanitize(html: string, shouldPreserveStyles: bool): string
} }
@@ -183,7 +183,7 @@ interface IBookReader {
} }
note top of IBookReader note top of IBookReader
Contract of a reader plugin, implemented in Lumina.Plugins.Contracts. Contract of a reader plugin, implemented in Nemera.Plugins.Contracts.
The plugins are host-trusted: they receive the absolute path of the The plugins are host-trusted: they receive the absolute path of the
book and a working directory to extract into, while the host book and a working directory to extract into, while the host
sanitizes and contained-checks everything they produce before sanitizes and contained-checks everything they produce before
@@ -227,7 +227,7 @@ end note
class EpubPlugin { class EpubPlugin {
+ Id: Guid + Id: Guid
+ Name: string = EPUB Reader + Name: string = EPUB Reader
+ Author: string = Lumina + Author: string = Nemera
+ Version: Version + Version: Version
+ Description: string + Description: string
+ GetSettingsSchema(): IReadOnlyList<PluginSettingDescriptorDto> + GetSettingsSchema(): IReadOnlyList<PluginSettingDescriptorDto>
@@ -237,7 +237,7 @@ class EpubPlugin {
class PdfPlugin { class PdfPlugin {
+ Id: Guid + Id: Guid
+ Name: string = PDF Reader + Name: string = PDF Reader
+ Author: string = Lumina + Author: string = Nemera
+ Version: Version + Version: Version
+ Description: string + Description: string
+ GetSettingsSchema(): IReadOnlyList<PluginSettingDescriptorDto> + GetSettingsSchema(): IReadOnlyList<PluginSettingDescriptorDto>
@@ -284,7 +284,7 @@ PdfReader ..> PdfDocumentParser : parses and renders pages
EpubPlugin ..> EpubReader : registers as a keyed IBookReader EpubPlugin ..> EpubReader : registers as a keyed IBookReader
PdfPlugin ..> PdfReader : registers as a keyed IBookReader PdfPlugin ..> PdfReader : registers as a keyed IBookReader
caption [Code] Lumina - Book Reading 3.2.2 and Book Reader Plugins caption [Code] Nemera - 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 footer The code diagram for the Book Reading 3.2.2 and the Book Reader Plugins - created with PlantUML
@enduml @enduml
@@ -1 +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:2574px;height:3537px;background:#FFFFFF;" width="2574px" height="3537px" viewBox="0 0 2574 3537" 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="5"><text x="1072.392" 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="14"><rect x="144.015" y="50.609" width="310.054" height="558.672" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="227.475" cy="66.609" rx="11" ry="11" fill="#B4A7E5" style="stroke:#181818;stroke-width:1;"/><path d="M228.428,63.25 L228.428,69.906 L230.147,69.906 Q230.756,69.906 231.022,70.141 Q231.287,70.375 231.287,70.766 Q231.287,71.141 231.022,71.375 Q230.756,71.609 230.147,71.609 L225.006,71.609 Q224.397,71.609 224.131,71.375 Q223.865,71.141 223.865,70.75 Q223.865,70.375 224.131,70.141 Q224.397,69.906 225.006,69.906 L226.725,69.906 L226.725,63.25 L225.006,63.25 Q224.397,63.25 224.131,63.016 Q223.865,62.781 223.865,62.391 Q223.865,62.016 224.131,61.781 Q224.397,61.547 225.006,61.547 L230.147,61.547 Q230.756,61.547 231.022,61.781 Q231.287,62.016 231.287,62.391 Q231.287,62.781 231.022,63.016 Q230.756,63.25 230.147,63.25 L228.428,63.25 Z " fill="#000"/><text x="247.975" y="72.338" fill="#000" font-size="14" textLength="134.634" font-style="italic">IBookReadingService</text><line x1="145.015" y1="82.609" x2="453.068" y2="82.609" style="stroke:#000;stroke-width:0.5;"/><line x1="145.015" y1="90.609" x2="453.068" y2="90.609" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="155.015" cy="157.742" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="164.015" y="109.143" fill="#000" font-size="14" textLength="164.186">GetManifestAsync(bookId:</text><text x="164.015" y="126.752" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="197.477" y="126.752" fill="#000" font-size="14"> </text><text x="201.366" y="126.752" fill="#000" font-size="14" textLength="53.683">libraryId:</text><text x="255.049" y="126.752" fill="#000" font-size="14"> </text><text x="258.939" y="126.752" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="292.401" y="126.752" fill="#000" font-size="14"> </text><text x="296.29" y="126.752" fill="#000" font-size="14" textLength="31.138">path:</text><text x="164.015" y="144.361" fill="#000" font-size="14" textLength="38.124">string,</text><text x="202.139" y="144.361" fill="#000" font-size="14"> </text><text x="206.028" y="144.361" fill="#000" font-size="14" textLength="73.131">libraryType:</text><text x="279.159" y="144.361" fill="#000" font-size="14"> </text><text x="283.049" y="144.361" fill="#000" font-size="14" textLength="77.807">LibraryType,</text><text x="164.015" y="161.971" fill="#000" font-size="14" textLength="174.323">shouldRenderPdfAsImages:</text><text x="164.015" y="179.58" fill="#000" font-size="14" textLength="30.358">bool,</text><text x="194.373" y="179.58" fill="#000" font-size="14"> </text><text x="198.263" y="179.58" fill="#000" font-size="14" textLength="38.138">token:</text><text x="164.015" y="197.189" fill="#000" font-size="14" textLength="124.51">CancellationToken):</text><text x="164.015" y="214.799" fill="#000" font-size="14" textLength="270.826">Task&lt;Result&lt;ReadingManifestResponse>></text><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="155.015" cy="298.617" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="164.015" y="232.408" fill="#000" font-size="14" textLength="157.972">GetSectionAsync(bookId:</text><text x="321.986" y="232.408" fill="#000" font-size="14"> </text><text x="325.876" y="232.408" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="164.015" y="250.018" fill="#000" font-size="14" textLength="53.683">libraryId:</text><text x="217.697" y="250.018" fill="#000" font-size="14"> </text><text x="221.587" y="250.018" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="255.049" y="250.018" fill="#000" font-size="14"> </text><text x="258.939" y="250.018" fill="#000" font-size="14" textLength="31.138">path:</text><text x="290.076" y="250.018" fill="#000" font-size="14"> </text><text x="293.966" y="250.018" fill="#000" font-size="14" textLength="38.124">string,</text><text x="164.015" y="267.627" fill="#000" font-size="14" textLength="73.131">libraryType:</text><text x="237.146" y="267.627" fill="#000" font-size="14"> </text><text x="241.035" y="267.627" fill="#000" font-size="14" textLength="77.807">LibraryType,</text><text x="164.015" y="28Line truncated <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:2574px;height:3537px;background:#FFFFFF;" width="2574px" height="3537px" viewBox="0 0 2574 3537" 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="5"><text x="1072.392" 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="14"><rect x="144.015" y="50.609" width="310.054" height="558.672" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="227.475" cy="66.609" rx="11" ry="11" fill="#B4A7E5" style="stroke:#181818;stroke-width:1;"/><path d="M228.428,63.25 L228.428,69.906 L230.147,69.906 Q230.756,69.906 231.022,70.141 Q231.287,70.375 231.287,70.766 Q231.287,71.141 231.022,71.375 Q230.756,71.609 230.147,71.609 L225.006,71.609 Q224.397,71.609 224.131,71.375 Q223.865,71.141 223.865,70.75 Q223.865,70.375 224.131,70.141 Q224.397,69.906 225.006,69.906 L226.725,69.906 L226.725,63.25 L225.006,63.25 Q224.397,63.25 224.131,63.016 Q223.865,62.781 223.865,62.391 Q223.865,62.016 224.131,61.781 Q224.397,61.547 225.006,61.547 L230.147,61.547 Q230.756,61.547 231.022,61.781 Q231.287,62.016 231.287,62.391 Q231.287,62.781 231.022,63.016 Q230.756,63.25 230.147,63.25 L228.428,63.25 Z " fill="#000"/><text x="247.975" y="72.338" fill="#000" font-size="14" textLength="134.634" font-style="italic">IBookReadingService</text><line x1="145.015" y1="82.609" x2="453.068" y2="82.609" style="stroke:#000;stroke-width:0.5;"/><line x1="145.015" y1="90.609" x2="453.068" y2="90.609" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="155.015" cy="157.742" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="164.015" y="109.143" fill="#000" font-size="14" textLength="164.186">GetManifestAsync(bookId:</text><text x="164.015" y="126.752" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="197.477" y="126.752" fill="#000" font-size="14"> </text><text x="201.366" y="126.752" fill="#000" font-size="14" textLength="53.683">libraryId:</text><text x="255.049" y="126.752" fill="#000" font-size="14"> </text><text x="258.939" y="126.752" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="292.401" y="126.752" fill="#000" font-size="14"> </text><text x="296.29" y="126.752" fill="#000" font-size="14" textLength="31.138">path:</text><text x="164.015" y="144.361" fill="#000" font-size="14" textLength="38.124">string,</text><text x="202.139" y="144.361" fill="#000" font-size="14"> </text><text x="206.028" y="144.361" fill="#000" font-size="14" textLength="73.131">libraryType:</text><text x="279.159" y="144.361" fill="#000" font-size="14"> </text><text x="283.049" y="144.361" fill="#000" font-size="14" textLength="77.807">LibraryType,</text><text x="164.015" y="161.971" fill="#000" font-size="14" textLength="174.323">shouldRenderPdfAsImages:</text><text x="164.015" y="179.58" fill="#000" font-size="14" textLength="30.358">bool,</text><text x="194.373" y="179.58" fill="#000" font-size="14"> </text><text x="198.263" y="179.58" fill="#000" font-size="14" textLength="38.138">token:</text><text x="164.015" y="197.189" fill="#000" font-size="14" textLength="124.51">CancellationToken):</text><text x="164.015" y="214.799" fill="#000" font-size="14" textLength="270.826">Task&lt;Result&lt;ReadingManifestResponse>></text><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="155.015" cy="298.617" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="164.015" y="232.408" fill="#000" font-size="14" textLength="157.972">GetSectionAsync(bookId:</text><text x="321.986" y="232.408" fill="#000" font-size="14"> </text><text x="325.876" y="232.408" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="164.015" y="250.018" fill="#000" font-size="14" textLength="53.683">libraryId:</text><text x="217.697" y="250.018" fill="#000" font-size="14"> </text><text x="221.587" y="250.018" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="255.049" y="250.018" fill="#000" font-size="14"> </text><text x="258.939" y="250.018" fill="#000" font-size="14" textLength="31.138">path:</text><text x="290.076" y="250.018" fill="#000" font-size="14"> </text><text x="293.966" y="250.018" fill="#000" font-size="14" textLength="38.124">string,</text><text x="164.015" y="267.627" fill="#000" font-size="14" textLength="73.131">libraryType:</text><text x="237.146" y="267.627" fill="#000" font-size="14"> </text><text x="241.035" y="267.627" fill="#000" font-size="14" textLength="77.807">LibraryType,</text><text x="164.015" y="28Line truncated

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 185 KiB

@@ -563,7 +563,7 @@ ScheduledJobRepository --> ScheduledJobEntity : persists
ScheduledJobExecutionRepository --> ScheduledJobExecutionEntity : persists ScheduledJobExecutionRepository --> ScheduledJobExecutionEntity : persists
SchedulerDisplayPreferencesRepository --> SchedulerDisplayPreferencesEntity : persists SchedulerDisplayPreferencesRepository --> SchedulerDisplayPreferencesEntity : persists
caption [Code] Lumina - Scheduled Jobs 3.2.3 caption [Code] Nemera - Scheduled Jobs 3.2.3
footer The code diagram for the Scheduled Jobs 3.2.3 - created with PlantUML footer The code diagram for the Scheduled Jobs 3.2.3 - created with PlantUML
@enduml @enduml
@@ -1 +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:10247px;height:4267px;background:#FFFFFF;" width="10247px" height="4267px" viewBox="0 0 10247 4267" 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="5"><text x="4989.402" y="24.533" fill="#000" font-size="14" textLength="262.179" font-weight="700">Code diagram for Scheduled Jobs 3.2.3</text></g><!--class ScheduledJob--><g class="entity" data-qualified-name="ScheduledJob" id="ent0001" data-source-line="14"><rect x="2449.27" y="2302.266" width="265.647" height="646.719" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="2533.475" cy="2318.266" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M2536.24,2314.141 Q2536.397,2313.922 2536.584,2313.813 Q2536.772,2313.703 2536.99,2313.703 Q2537.365,2313.703 2537.6,2313.969 Q2537.834,2314.219 2537.834,2314.828 L2537.834,2316.281 Q2537.834,2316.891 2537.6,2317.156 Q2537.365,2317.422 2536.99,2317.422 Q2536.647,2317.422 2536.444,2317.219 Q2536.24,2317.031 2536.131,2316.516 Q2536.084,2316.156 2535.897,2315.969 Q2535.569,2315.594 2534.959,2315.375 Q2534.35,2315.156 2533.725,2315.156 Q2532.959,2315.156 2532.319,2315.484 Q2531.694,2315.813 2531.194,2316.563 Q2530.709,2317.313 2530.709,2318.344 L2530.709,2319.438 Q2530.709,2320.672 2531.6,2321.5 Q2532.49,2322.313 2534.084,2322.313 Q2535.022,2322.313 2535.678,2322.063 Q2536.069,2321.906 2536.49,2321.469 Q2536.756,2321.203 2536.897,2321.125 Q2537.053,2321.047 2537.256,2321.047 Q2537.584,2321.047 2537.834,2321.313 Q2538.1,2321.563 2538.1,2321.906 Q2538.1,2322.25 2537.756,2322.656 Q2537.256,2323.234 2536.459,2323.563 Q2535.381,2324.016 2534.084,2324.016 Q2532.569,2324.016 2531.365,2323.391 Q2530.381,2322.891 2529.694,2321.828 Q2529.006,2320.75 2529.006,2319.469 L2529.006,2318.313 Q2529.006,2316.984 2529.615,2315.844 Q2530.24,2314.688 2531.334,2314.078 Q2532.428,2313.453 2533.662,2313.453 Q2534.397,2313.453 2535.037,2313.625 Q2535.694,2313.781 2536.24,2314.141 Z " fill="#000"/><text x="2553.975" y="2323.994" fill="#000" font-size="14" textLength="88.737">ScheduledJob</text><line x1="2450.27" y1="2334.266" x2="2713.917" y2="2334.266" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PRIVATE_FIELD"><rect x="2457.27" y="2354.375" width="6" height="6" fill="none" style="stroke:#C82930;stroke-width:1;"/></g><text x="2469.27" y="2352.799" fill="#000" font-size="14" textLength="154.089">_currentExecutionRunId:</text><text x="2469.27" y="2370.408" fill="#000" font-size="14" textLength="98.068">Optional&lt;Guid></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2383.789" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2388.018" fill="#000" font-size="14" textLength="41.234">Name:</text><text x="2510.504" y="2388.018" fill="#000" font-size="14"> </text><text x="2514.394" y="2388.018" fill="#000" font-size="14" textLength="34.234">string</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2401.398" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2405.627" fill="#000" font-size="14" textLength="65.352">TaskType:</text><text x="2534.621" y="2405.627" fill="#000" font-size="14"> </text><text x="2538.511" y="2405.627" fill="#000" font-size="14" textLength="127.627">ScheduledTaskType</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2419.008" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2423.236" fill="#000" font-size="14" textLength="62.269">Schedule:</text><text x="2531.538" y="2423.236" fill="#000" font-size="14"> </text><text x="2535.428" y="2423.236" fill="#000" font-size="14" textLength="58.379">Schedule</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2436.617" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2440.846" fill="#000" font-size="14" textLength="43.579">Status:</text><text x="2512.849" y="2440.846" fill="#000" font-size="14"> </text><text x="2516.739" y="2440.846" fill="#000" font-size="14" textLength="128.427">ScheduledJobStatus</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2454.227" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2458.455" fill="#000" font-size="14" textLength="86.358">OwnerUserId:</text><text x="2555.628" y="2458.455" fill="#000" font-size="14"> </text><text x="2559.518" y="2458.455" fill="#000" font-size="14" textLength="41.234">UserId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2480.641" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2476Line truncated <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:10247px;height:4267px;background:#FFFFFF;" width="10247px" height="4267px" viewBox="0 0 10247 4267" 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="5"><text x="4989.402" y="24.533" fill="#000" font-size="14" textLength="262.179" font-weight="700">Code diagram for Scheduled Jobs 3.2.3</text></g><!--class ScheduledJob--><g class="entity" data-qualified-name="ScheduledJob" id="ent0001" data-source-line="14"><rect x="2449.27" y="2302.266" width="265.647" height="646.719" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="2533.475" cy="2318.266" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M2536.24,2314.141 Q2536.397,2313.922 2536.584,2313.813 Q2536.772,2313.703 2536.99,2313.703 Q2537.365,2313.703 2537.6,2313.969 Q2537.834,2314.219 2537.834,2314.828 L2537.834,2316.281 Q2537.834,2316.891 2537.6,2317.156 Q2537.365,2317.422 2536.99,2317.422 Q2536.647,2317.422 2536.444,2317.219 Q2536.24,2317.031 2536.131,2316.516 Q2536.084,2316.156 2535.897,2315.969 Q2535.569,2315.594 2534.959,2315.375 Q2534.35,2315.156 2533.725,2315.156 Q2532.959,2315.156 2532.319,2315.484 Q2531.694,2315.813 2531.194,2316.563 Q2530.709,2317.313 2530.709,2318.344 L2530.709,2319.438 Q2530.709,2320.672 2531.6,2321.5 Q2532.49,2322.313 2534.084,2322.313 Q2535.022,2322.313 2535.678,2322.063 Q2536.069,2321.906 2536.49,2321.469 Q2536.756,2321.203 2536.897,2321.125 Q2537.053,2321.047 2537.256,2321.047 Q2537.584,2321.047 2537.834,2321.313 Q2538.1,2321.563 2538.1,2321.906 Q2538.1,2322.25 2537.756,2322.656 Q2537.256,2323.234 2536.459,2323.563 Q2535.381,2324.016 2534.084,2324.016 Q2532.569,2324.016 2531.365,2323.391 Q2530.381,2322.891 2529.694,2321.828 Q2529.006,2320.75 2529.006,2319.469 L2529.006,2318.313 Q2529.006,2316.984 2529.615,2315.844 Q2530.24,2314.688 2531.334,2314.078 Q2532.428,2313.453 2533.662,2313.453 Q2534.397,2313.453 2535.037,2313.625 Q2535.694,2313.781 2536.24,2314.141 Z " fill="#000"/><text x="2553.975" y="2323.994" fill="#000" font-size="14" textLength="88.737">ScheduledJob</text><line x1="2450.27" y1="2334.266" x2="2713.917" y2="2334.266" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PRIVATE_FIELD"><rect x="2457.27" y="2354.375" width="6" height="6" fill="none" style="stroke:#C82930;stroke-width:1;"/></g><text x="2469.27" y="2352.799" fill="#000" font-size="14" textLength="154.089">_currentExecutionRunId:</text><text x="2469.27" y="2370.408" fill="#000" font-size="14" textLength="98.068">Optional&lt;Guid></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2383.789" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2388.018" fill="#000" font-size="14" textLength="41.234">Name:</text><text x="2510.504" y="2388.018" fill="#000" font-size="14"> </text><text x="2514.394" y="2388.018" fill="#000" font-size="14" textLength="34.234">string</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2401.398" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2405.627" fill="#000" font-size="14" textLength="65.352">TaskType:</text><text x="2534.621" y="2405.627" fill="#000" font-size="14"> </text><text x="2538.511" y="2405.627" fill="#000" font-size="14" textLength="127.627">ScheduledTaskType</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2419.008" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2423.236" fill="#000" font-size="14" textLength="62.269">Schedule:</text><text x="2531.538" y="2423.236" fill="#000" font-size="14"> </text><text x="2535.428" y="2423.236" fill="#000" font-size="14" textLength="58.379">Schedule</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2436.617" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2440.846" fill="#000" font-size="14" textLength="43.579">Status:</text><text x="2512.849" y="2440.846" fill="#000" font-size="14"> </text><text x="2516.739" y="2440.846" fill="#000" font-size="14" textLength="128.427">ScheduledJobStatus</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2454.227" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2458.455" fill="#000" font-size="14" textLength="86.358">OwnerUserId:</text><text x="2555.628" y="2458.455" fill="#000" font-size="14"> </text><text x="2559.518" y="2458.455" fill="#000" font-size="14" textLength="41.234">UserId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2480.641" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2476Line truncated

Before

Width:  |  Height:  |  Size: 352 KiB

After

Width:  |  Height:  |  Size: 352 KiB

+1 -1
View File
@@ -1,6 +1,6 @@
# Architecture Diagrams # Architecture Diagrams
This folder contains the C4 architecture diagrams of Lumina. Every diagram is maintained as a PlantUML source file (`.puml`) and rendered to a committed SVG (`.svg`) with the same base name. This folder contains the C4 architecture diagrams of Nemera. Every diagram is maintained as a PlantUML source file (`.puml`) and rendered to a committed SVG (`.svg`) with the same base name.
## Layout ## Layout
@@ -95,9 +95,9 @@ public class JobHandler
### 3. Registration of `DbContextFactory` instead of `DbContext` ### 3. Registration of `DbContextFactory` instead of `DbContext`
```csharp ```csharp
services.AddDbContextFactory<LuminaDbContext>(options => services.AddDbContextFactory<NemeraDbContext>(options =>
{ {
options.UseSqlite($"Data Source={Path.Combine(basePath, "Lumina.db")}"); options.UseSqlite($"Data Source={Path.Combine(basePath, "Nemera.db")}");
} }
``` ```
@@ -10,7 +10,7 @@ The media library scan pipeline stages the file system items discovered during a
2. is read by the diff, hash and metadata enrichment jobs, 2. is read by the diff, hash and metadata enrichment jobs,
3. is written by the discovery job and read by later jobs, which run in separate dependency injection scopes (see [ADR-0001](architecture-decision-record-0001.md)), hence on separate database connections. 3. is written by the discovery job and read by later jobs, which run in separate dependency injection scopes (see [ADR-0001](architecture-decision-record-0001.md)), hence on separate database connections.
A real SQLite `TEMP` table was considered, but SQLite `TEMP` tables are scoped to a single database connection. Because each media library scan job creates its own `AsyncServiceScope`, and therefore its own `LuminaDbContext` and connection ([ADR-0001](architecture-decision-record-0001.md)), a `TEMP` table created by the discovery job would be invisible to the diff job, which runs on a different connection. Making a `TEMP` table work would require pinning a single dedicated connection for the whole staging phase of a scan, a larger architectural carve-out. A real SQLite `TEMP` table was considered, but SQLite `TEMP` tables are scoped to a single database connection. Because each media library scan job creates its own `AsyncServiceScope`, and therefore its own `NemeraDbContext` and connection ([ADR-0001](architecture-decision-record-0001.md)), a `TEMP` table created by the discovery job would be invisible to the diff job, which runs on a different connection. Making a `TEMP` table work would require pinning a single dedicated connection for the whole staging phase of a scan, a larger architectural carve-out.
## Decision ## Decision
Use a permanent table, `LibraryScanStagingResults`, keyed by `(LibraryScanId, Path)`. Its rows are deleted at the end of the scan (as part of the snapshot swap transaction of the save job) and on scan failure or cancellation. Leftover rows of a crashed scan are inert, because every scan has a unique id, and can be purged by the audit cleanup job. Use a permanent table, `LibraryScanStagingResults`, keyed by `(LibraryScanId, Path)`. Its rows are deleted at the end of the scan (as part of the snapshot swap transaction of the save job) and on scan failure or cancellation. Leftover rows of a crashed scan are inert, because every scan has a unique id, and can be purged by the audit cleanup job.
@@ -14,7 +14,7 @@ The media library scan jobs perform bulk data operations that the Entity Framewo
Bulk inserts through the EF Core change tracker are slow for hundreds of thousands of rows, because every entity is individually tracked and saved. At the target scale (millions of files), the scan pipeline needs a data access path that is not only fast, but also bounded in memory. Bulk inserts through the EF Core change tracker are slow for hundreds of thousands of rows, because every entity is individually tracked and saved. At the target scale (millions of files), the scan pipeline needs a data access path that is not only fast, but also bounded in memory.
## Decision ## Decision
Add the Dapper library to the DataAccess layer, and perform the bulk data operations of the scan jobs with parameterized raw SQL on a dedicated `Microsoft.Data.Sqlite` connection, derived from the connection string of the injected `LuminaDbContext`. Add the Dapper library to the DataAccess layer, and perform the bulk data operations of the scan jobs with parameterized raw SQL on a dedicated `Microsoft.Data.Sqlite` connection, derived from the connection string of the injected `NemeraDbContext`.
These operations never touch the Entity Framework change tracker. Reads that are not bulk (for example loading the media library entity) keep using EF Core, and bulk reads use unbuffered, key-set paginated queries to keep the peak memory bounded. These operations never touch the Entity Framework change tracker. Reads that are not bulk (for example loading the media library entity) keep using EF Core, and bulk reads use unbuffered, key-set paginated queries to keep the peak memory bounded.
@@ -19,12 +19,12 @@ Key constraints that shaped this decision:
## Decision ## Decision
Replace MediatR with minimal, hand-written CQRS abstractions placed in `Lumina.Application.Common.CQRS`. Handlers are resolved directly via the .NET dependency injection container - no mediator object, no runtime reflection dispatch. Replace MediatR with minimal, hand-written CQRS abstractions placed in `Nemera.Application.Common.CQRS`. Handlers are resolved directly via the .NET dependency injection container - no mediator object, no runtime reflection dispatch.
### Core Abstractions ### Core Abstractions
```csharp ```csharp
// src/Lumina.Application/Common/CQRS/ICommand.cs // src/Nemera.Application/Common/CQRS/ICommand.cs
/// <summary> /// <summary>
/// Marker interface for command types handled by <see cref="ICommandHandler{TCommand, TResult}"/>. /// Marker interface for command types handled by <see cref="ICommandHandler{TCommand, TResult}"/>.
@@ -46,7 +46,7 @@ public interface ICommandHandler<in TCommand, TResult> where TCommand : ICommand
``` ```
```csharp ```csharp
// src/Lumina.Application/Common/CQRS/IQuery.cs // src/Nemera.Application/Common/CQRS/IQuery.cs
/// <summary> /// <summary>
/// Marker interface for query types handled by <see cref="IQueryHandler{TQuery, TResult}"/>. /// Marker interface for query types handled by <see cref="IQueryHandler{TQuery, TResult}"/>.
@@ -13,11 +13,11 @@ The solution uses FluentValidation to validate commands and queries at the appli
3. **External Dependency Surface**: FluentValidation is a well-maintained library, but the danger of it going commercial, like other open source popular libraries in recent times, and the lack of usage of its advanced features mandates an in-house replacement. 3. **External Dependency Surface**: FluentValidation is a well-maintained library, but the danger of it going commercial, like other open source popular libraries in recent times, and the lack of usage of its advanced features mandates an in-house replacement.
4. **Placement in SharedKernel**: Validation logic is cross-cutting and lives in `Lumina.Application.Common.Infrastructure.Validation`. Owning the abstraction entirely means the validation model stays aligned with the domain's `Error` type without any adapter. 4. **Placement in SharedKernel**: Validation logic is cross-cutting and lives in `Nemera.Application.Common.Infrastructure.Validation`. Owning the abstraction entirely means the validation model stays aligned with the domain's `Error` type without any adapter.
## Decision ## Decision
Replace FluentValidation with a minimal, first-party validation framework placed in `Lumina.Application.Common.Infrastructure.Validation`. The API mirrors FluentValidation's familiar fluent surface (`RuleFor`, `Must`, `When`, `WithError`) to minimize migration friction. Replace FluentValidation with a minimal, first-party validation framework placed in `Nemera.Application.Common.Infrastructure.Validation`. The API mirrors FluentValidation's familiar fluent surface (`RuleFor`, `Must`, `When`, `WithError`) to minimize migration friction.
### Core Abstractions ### Core Abstractions
@@ -123,7 +123,7 @@ internal sealed class ValidationRule<TRequest, TProperty>
### Built-in Extension Methods ### Built-in Extension Methods
Common predicates are provided as extension methods on `IRuleBuilder<TRequest, TProperty>` via `ValidatorUtilities`, placed in `Lumina.Application.Common.Utilities`: Common predicates are provided as extension methods on `IRuleBuilder<TRequest, TProperty>` via `ValidatorUtilities`, placed in `Nemera.Application.Common.Utilities`:
| Extension | Overloads | Behaviour | | Extension | Overloads | Behaviour |
|---|---|---| |---|---|---|
@@ -19,7 +19,7 @@ The remaining publish half carries the same third-party dependency and source-ge
Replace Mediator's notification publishing with a first-party domain event publisher. Replace Mediator's notification publishing with a first-party domain event publisher.
### New Abstractions (in `Lumina.Domain.Common.Events`) ### New Abstractions (in `Nemera.Domain.Common.Events`)
- `IDomainEvent` no longer inherits `INotification`. - `IDomainEvent` no longer inherits `INotification`.
- `IDomainEventPublisher` exposes `ValueTask PublishAsync(IDomainEvent domainEvent, CancellationToken cancellationToken = default)`. - `IDomainEventPublisher` exposes `ValueTask PublishAsync(IDomainEvent domainEvent, CancellationToken cancellationToken = default)`.
@@ -13,11 +13,11 @@ Repositories in the DataAccess layer persist aggregate graphs: they load a track
3. **Scalar copy on edit**: `EditableValuesCopier` applies editable scalar values while leaving the audit columns to the auditing interceptor. Seven auditable repositories (`Role`, `LibraryScan`, `ScheduledJob`, `ScheduledJobExecution`, `Theme`, `User`, `UserSettings`) still copied scalars with `CurrentValues.SetValues`, which writes every scalar property, including the primary key and the audit columns. Writing the primary key is destructive whenever the tracked row was located by a key other than its primary key: `UserRepository` locates the row by username, so an incoming entity whose Id differs from, or is unset relative to, the stored one would retarget the tracked row's identity, leaving the guarantee "the stored identity is never overwritten by an edit" to caller convention instead of to the code. 3. **Scalar copy on edit**: `EditableValuesCopier` applies editable scalar values while leaving the audit columns to the auditing interceptor. Seven auditable repositories (`Role`, `LibraryScan`, `ScheduledJob`, `ScheduledJobExecution`, `Theme`, `User`, `UserSettings`) still copied scalars with `CurrentValues.SetValues`, which writes every scalar property, including the primary key and the audit columns. Writing the primary key is destructive whenever the tracked row was located by a key other than its primary key: `UserRepository` locates the row by username, so an incoming entity whose Id differs from, or is unset relative to, the stored one would retarget the tracked row's identity, leaving the guarantee "the stored identity is never overwritten by an edit" to caller convention instead of to the code.
`Lumina.DataAccess\Common\Persistence` already held `CollectionReconciler` and `EditableValuesCopier`, but there was no shared reference primitive and no explicit boundary defining what may live there, so the shared reference concern was expressed per type and per repository. `Nemera.DataAccess\Common\Persistence` already held `CollectionReconciler` and `EditableValuesCopier`, but there was no shared reference primitive and no explicit boundary defining what may live there, so the shared reference concern was expressed per type and per repository.
## Decision ## Decision
Treat `Lumina.DataAccess\Common\Persistence` as a closed set of generic, entity-agnostic primitives that express the whole of aggregate graph persistence. Per-entity logic stays in the repository, and cross-cutting logic is generalized rather than specialized. Treat `Nemera.DataAccess\Common\Persistence` as a closed set of generic, entity-agnostic primitives that express the whole of aggregate graph persistence. Per-entity logic stays in the repository, and cross-cutting logic is generalized rather than specialized.
### The closed set ### The closed set
@@ -99,6 +99,6 @@ Details edits still go through `EditableValuesCopier`, but the copier now compar
The one-time application initialization is the only save whose audit identity is provided explicitly instead of being stamped by the auditing interceptor. The setup handler creates the original administrator account before any user exists, and the seed service creates the default permissions, roles, role-permission grants, user-role link and scheduled jobs in the same anonymous flow. Those rows therefore cannot derive an actor from `ICurrentUserService`. The one-time application initialization is the only save whose audit identity is provided explicitly instead of being stamped by the auditing interceptor. The setup handler creates the original administrator account before any user exists, and the seed service creates the default permissions, roles, role-permission grants, user-role link and scheduled jobs in the same anonymous flow. Those rows therefore cannot derive an actor from `ICurrentUserService`.
The bootstrap code sets `CreatedBy` to the fixed SYSTEM audit identifier `11111111-1111-1111-1111-111111111111` and sets `CreatedOnUtc` from `IDateTimeProvider`, then saves through `SaveChangesAsInitializationAsync`. That method marks the save on the `LuminaDbContext` for its duration, and the interceptor skips its stamping only for that save. No other save path is affected. The bootstrap code sets `CreatedBy` to the fixed SYSTEM audit identifier `11111111-1111-1111-1111-111111111111` and sets `CreatedOnUtc` from `IDateTimeProvider`, then saves through `SaveChangesAsInitializationAsync`. That method marks the save on the `NemeraDbContext` for its duration, and the interceptor skips its stamping only for that save. No other save path is affected.
The SYSTEM identity is never inferred from a missing authenticated user. Ordinary anonymous creation and modification remain unattributed with `Guid.Empty`, and the interceptor is still the sole writer for every ordinary save. The initialization exception exists because the app has no user account to attribute the bootstrap rows to, and it is confined to the setup and seed code paths. The SYSTEM identity is never inferred from a missing authenticated user. Ordinary anonymous creation and modification remain unattributed with `Guid.Empty`, and the interceptor is still the sole writer for every ordinary save. The initialization exception exists because the app has no user account to attribute the bootstrap rows to, and it is confined to the setup and seed code paths.
@@ -5,7 +5,7 @@
## Context ## Context
Lumina's music player is implemented from scratch, on WebCodecs for decoding and the Web Audio API for output, with no `HTMLMediaElement` and no Media Source Extensions. That player can only demux a curated set of containers and decode a curated set of codecs, so the server has to tell it, before it fetches any audio, whether a track can be played as stored or whether the server has to change the container or the codec first. Nemera's music player is implemented from scratch, on WebCodecs for decoding and the Web Audio API for output, with no `HTMLMediaElement` and no Media Source Extensions. That player can only demux a curated set of containers and decode a curated set of codecs, so the server has to tell it, before it fetches any audio, whether a track can be played as stored or whether the server has to change the container or the codec first.
The server already has each track's stored probe result (the container and the codec, plus the sample rate, the channels, the bit depth, the duration and the ReplayGain values) and a stream endpoint with HTTP range support that serves the original file. What is missing is the decision itself and a way for the player to state what it can play. The server already has each track's stored probe result (the container and the codec, plus the sample rate, the channels, the bit depth, the duration and the ReplayGain values) and a stream endpoint with HTTP range support that serves the original file. What is missing is the decision itself and a way for the player to state what it can play.
@@ -43,7 +43,7 @@ The decision includes these rules:
| `MediaConsumptionRecord` | The write aggregate of a session. It holds a `MediaConsumptionRecordId`, the owner, the library, the media kind, the media item identifier, the status, the start, last activity and end times, the consumed duration, the latest position and progress fraction, and the consecutive page count. No album, artist, series or catalogue hierarchy is stored on the record. | | `MediaConsumptionRecord` | The write aggregate of a session. It holds a `MediaConsumptionRecordId`, the owner, the library, the media kind, the media item identifier, the status, the start, last activity and end times, the consumed duration, the latest position and progress fraction, and the consecutive page count. No album, artist, series or catalogue hierarchy is stored on the record. |
| `MediaResumePoint` | The write aggregate of the latest position. It holds a `MediaResumePointId`, the owner, the library, the media kind, the media item identifier, the latest position, the latest progress fraction and the last consumption time. It is created only for a resumable kind whose library tracks progress. | | `MediaResumePoint` | The write aggregate of the latest position. It holds a `MediaResumePointId`, the owner, the library, the media kind, the media item identifier, the latest position, the latest progress fraction and the last consumption time. It is created only for a resumable kind whose library tracks progress. |
| `ConsumptionStatistics` | A read model, not an aggregate and not a table. It is built from `MediaConsumptionRecordEntity` collections in the application handlers and mapped to the summary, recent, most consumed, tag and genre responses. | | `ConsumptionStatistics` | A read model, not an aggregate and not a table. It is built from `MediaConsumptionRecordEntity` collections in the application handlers and mapped to the summary, recent, most consumed, tag and genre responses. |
| `MediaKind` | The shared enumeration in `Lumina.Domain.SharedKernel`. `MusicTrack` and `Book` are supported by the current catalogues. `PodcastEpisode`, `Audiobook`, `Movie`, `TvEpisode`, `Photo` and `Video` have rules and are listed for clients, but are rejected by the lifecycle endpoints until their catalogues exist. `None` is invalid. | | `MediaKind` | The shared enumeration in `Nemera.Domain.SharedKernel`. `MusicTrack` and `Book` are supported by the current catalogues. `PodcastEpisode`, `Audiobook`, `Movie`, `TvEpisode`, `Photo` and `Video` have rules and are listed for clients, but are rejected by the lifecycle endpoints until their catalogues exist. `None` is invalid. |
| `MediaConsumptionRule` | The shared value object hierarchy that owns resumability (`PositionKind`, `CanResume`), one-shot behavior and counting (`Counts`). It is reused by both aggregates and the statistics read model, so callers never switch on `MediaKind` for these rules. | | `MediaConsumptionRule` | The shared value object hierarchy that owns resumability (`PositionKind`, `CanResume`), one-shot behavior and counting (`Counts`). It is reused by both aggregates and the statistics read model, so callers never switch on `MediaKind` for these rules. |
| Completion settings | `LibraryConsumptionSettings` on the `Library` aggregate. It stores `ShouldTrackConsumptionProgress` and an optional `CompletionThresholdPercentage`. The validator rejects a threshold when tracking is off, and a threshold outside 0 to 100 when it is supplied. | | Completion settings | `LibraryConsumptionSettings` on the `Library` aggregate. It stores `ShouldTrackConsumptionProgress` and an optional `CompletionThresholdPercentage`. The validator rejects a threshold when tracking is off, and a threshold outside 0 to 100 when it is supplied. |
| Storage | `MediaConsumptionRecords` and `MediaResumePoints`. The owner is a cascading foreign key to `Users`; the media item is a plain identifier with no foreign key to a media catalogue. Both tables carry an optimistic concurrency version and the audit columns. | | Storage | `MediaConsumptionRecords` and `MediaResumePoints`. The owner is a cascading foreign key to `Users`; the media item is a plain identifier with no foreign key to a media catalogue. Both tables carry an optimistic concurrency version and the audit columns. |
@@ -7,7 +7,7 @@
A media library scan performs two kinds of file system reads. Discovery reads directory entries and file metadata, and hashing samples file contents. Their throughput depends on the storage medium. A solid state drive serves concurrent reads with little penalty, while a mechanical hard drive pays a seek for every position change, so concurrent reads can reduce its throughput. A media library scan performs two kinds of file system reads. Discovery reads directory entries and file metadata, and hashing samples file contents. Their throughput depends on the storage medium. A solid state drive serves concurrent reads with little penalty, while a mechanical hard drive pays a seek for every position change, so concurrent reads can reduce its throughput.
Lumina cannot determine the storage medium reliably. Drive type queries are platform specific, and they are unreliable for network, virtual, and removable volumes. The scan therefore needs an explicit input instead of an automatic guess. Nemera cannot determine the storage medium reliably. Drive type queries are platform specific, and they are unreliable for network, virtual, and removable volumes. The scan therefore needs an explicit input instead of an automatic guess.
Not every scan stage performs bulk local reads. Audio metadata extraction parses tag blocks, and metadata and artwork enrichment call remote providers. Those stages have their own constraints, which are part of this decision. Not every scan stage performs bulk local reads. Audio metadata extraction parses tag blocks, and metadata and artwork enrichment call remote providers. Those stages have their own constraints, which are part of this decision.
@@ -25,7 +25,7 @@ Persisted entity and domain event identifiers are created with `Guid.CreateVersi
The decision applies to Domain, Application, DataAccess, and Infrastructure: The decision applies to Domain, Application, DataAccess, and Infrastructure:
- Every identifier factory and every code path that mints an entity or domain event identifier in application code calls `Guid.CreateVersion7()` directly. - Every identifier factory and every code path that mints an entity or domain event identifier in application code calls `Guid.CreateVersion7()` directly.
- Every Entity Framework Core property of type `Guid` with `ValueGenerated.OnAdd` is assigned the `GuidV7ValueGenerator` in `LuminaDbContext.OnModelCreating`. The loop covers real keys and owned collection shadow keys, so the data seed service can keep leaving seeded permission and role identifiers unset. - Every Entity Framework Core property of type `Guid` with `ValueGenerated.OnAdd` is assigned the `GuidV7ValueGenerator` in `NemeraDbContext.OnModelCreating`. The loop covers real keys and owned collection shadow keys, so the data seed service can keep leaving seeded permission and role identifiers unset.
- Existing rows keep their version 4 identifiers. This is a forward-only change, and no primary key or foreign key is rewritten. - Existing rows keep their version 4 identifiers. This is a forward-only change, and no primary key or foreign key is rewritten.
The following identifiers intentionally remain outside the version 7 strategy: The following identifiers intentionally remain outside the version 7 strategy:
@@ -57,7 +57,7 @@ The following identifiers intentionally remain outside the version 7 strategy:
| Existing rows keep version 4 identifiers | Do not use identifier order as a chronology across the migration boundary; use `CreatedOnUtc` | | Existing rows keep version 4 identifiers | Do not use identifier order as a chronology across the migration boundary; use `CreatedOnUtc` |
| The two SQL bulk insert paths keep version 4 identifiers | The exception is documented in this ADR and in both repositories, so it is not changed accidentally | | The two SQL bulk insert paths keep version 4 identifiers | The exception is documented in this ADR and in both repositories, so it is not changed accidentally |
| Version 7 ordering depends on the system clock | Clock skew can break ordering, but not uniqueness; do not depend on strict ordering across machines | | Version 7 ordering depends on the system clock | Clock skew can break ordering, but not uniqueness; do not depend on strict ordering across machines |
| Entity Framework Core could seed a new key with version 4 again | `LuminaDbContext` applies the generator to every `Guid` property configured with `ValueGenerated.OnAdd`, including owned shadow keys | | Entity Framework Core could seed a new key with version 4 again | `NemeraDbContext` applies the generator to every `Guid` property configured with `ValueGenerated.OnAdd`, including owned shadow keys |
## Alternatives Considered ## Alternatives Considered
@@ -87,4 +87,4 @@ Migrate every stored primary key and foreign key to a version 7 value.
## Amendment: Relocation of the SYSTEM Audit Identity (2026-11-25) ## Amendment: Relocation of the SYSTEM Audit Identity (2026-11-25)
The fixed SYSTEM audit identifier is no longer declared inline in `UpdateAuditableEntitiesInterceptor`. It is declared as the static readonly field `AuditIdentities.s_systemUserId` in `Lumina.Application/Common/DataAccess/Entities/Common/AuditIdentities.cs`. The identifier value and its behavior are unchanged. The fixed SYSTEM audit identifier is no longer declared inline in `UpdateAuditableEntitiesInterceptor`. It is declared as the static readonly field `AuditIdentities.s_systemUserId` in `Nemera.Application/Common/DataAccess/Entities/Common/AuditIdentities.cs`. The identifier value and its behavior are unchanged.
@@ -1,11 +1,11 @@
- [Lumina Domain](#lumina-domain) - [Nemera Domain](#nemera-domain)
- [Music Library Aggregate](#music-library-aggregate) - [Music Library Aggregate](#music-library-aggregate)
- [Artist](#artist) - [Artist](#artist)
- [Album](#album) - [Album](#album)
- [Track](#track) - [Track](#track)
- [Audio Rating](#audio-rating) - [Audio Rating](#audio-rating)
# [Lumina Domain](#lumina-domain) # [Nemera Domain](#nemera-domain)
## [Music Library Aggregate](#music-library-aggregate) ## [Music Library Aggregate](#music-library-aggregate)
@@ -1,9 +1,9 @@
- [Lumina Domain](#lumina-domain) - [Nemera Domain](#nemera-domain)
- [File Management Aggregate](#file-management-aggregate) - [File Management Aggregate](#file-management-aggregate)
- [File Info](#file-info) - [File Info](#file-info)
- [Stream Info](#stream-info) - [Stream Info](#stream-info)
# [Lumina Domain](#lumina-domain) # [Nemera Domain](#nemera-domain)
## [File Management Aggregate](#file-management-aggregate) ## [File Management Aggregate](#file-management-aggregate)
@@ -1,8 +1,8 @@
- [Lumina Domain](#lumina-domain) - [Nemera Domain](#nemera-domain)
- [Video Library Aggregate](#video-library-aggregate) - [Video Library Aggregate](#video-library-aggregate)
- [Movie](#movie) - [Movie](#movie)
# [Lumina Domain](#lumina-domain) # [Nemera Domain](#nemera-domain)
## [Video Library Aggregate](#video-library-aggregate) ## [Video Library Aggregate](#video-library-aggregate)
@@ -1,8 +1,8 @@
- [Lumina Domain](#lumina-domain) - [Nemera Domain](#nemera-domain)
- [Written Content Library Aggregate](#written-content-library-aggregate) - [Written Content Library Aggregate](#written-content-library-aggregate)
- [Book](#book) - [Book](#book)
# [Lumina Domain](#lumina-domain) # [Nemera Domain](#nemera-domain)
## [Written Content Library Aggregate](#written-content-library-aggregate) ## [Written Content Library Aggregate](#written-content-library-aggregate)
+2 -2
View File
@@ -1,4 +1,4 @@
- [Lumina Domain](#lumina-domain) - [Nemera Domain](#nemera-domain)
- [Common](#common) - [Common](#common)
- [Metadata](#metadata) - [Metadata](#metadata)
- [Genre](#genre) - [Genre](#genre)
@@ -8,7 +8,7 @@
- [Release Info](#release-info) - [Release Info](#release-info)
- [Language Info](#language-info) - [Language Info](#language-info)
# [Lumina Domain](#lumina-domain) # [Nemera Domain](#nemera-domain)
## [Common](#common) ## [Common](#common)
+1 -1
View File
@@ -4,6 +4,6 @@
"ACCESS_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyY2ZmMGMwZi0zYTY3LTRlMzAtYjk0Zi1mNGU5NDhhM2I2NGYiLCJ1bmlxdWVfbmFtZSI6ImEiLCJqdGkiOiIyY2ZmMGMwZi0zYTY3LTRlMzAtYjk0Zi1mNGU5NDhhM2I2NGYiLCJleHAiOjE3MzU4MTQyMjgsImlzcyI6Ikx1bWluYSIsImF1ZCI6Ikx1bWluYSJ9.6FBaXXQ9IJynrM89KqyV4U3Xi2fmPvnadcp5c9xkf7E" "ACCESS_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyY2ZmMGMwZi0zYTY3LTRlMzAtYjk0Zi1mNGU5NDhhM2I2NGYiLCJ1bmlxdWVfbmFtZSI6ImEiLCJqdGkiOiIyY2ZmMGMwZi0zYTY3LTRlMzAtYjk0Zi1mNGU5NDhhM2I2NGYiLCJleHAiOjE3MzU4MTQyMjgsImlzcyI6Ikx1bWluYSIsImF1ZCI6Ikx1bWluYSJ9.6FBaXXQ9IJynrM89KqyV4U3Xi2fmPvnadcp5c9xkf7E"
}, },
"prod": { "prod": {
"host": "https://api.lumina.com" "host": "https://api.nemera.me"
} }
} }
@@ -1,10 +1,10 @@
PUT {{host}}/api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/{{$guid}}/cover PUT {{host}}/api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/{{$guid}}/cover
Authorization: Bearer {{ACCESS_TOKEN}} Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: multipart/form-data; boundary=LuminaBoundary Content-Type: multipart/form-data; boundary=NemeraBoundary
--LuminaBoundary --NemeraBoundary
Content-Disposition: form-data; name="cover"; filename="cover.jpg" Content-Disposition: form-data; name="cover"; filename="cover.jpg"
Content-Type: image/jpeg Content-Type: image/jpeg
< ./cover.jpg < ./cover.jpg
--LuminaBoundary-- --NemeraBoundary--
@@ -1,10 +1,10 @@
PUT {{host}}/api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{{$guid}}/cover PUT {{host}}/api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{{$guid}}/cover
Authorization: Bearer {{ACCESS_TOKEN}} Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: multipart/form-data; boundary=LuminaBoundary Content-Type: multipart/form-data; boundary=NemeraBoundary
--LuminaBoundary --NemeraBoundary
Content-Disposition: form-data; name="cover"; filename="cover.jpg" Content-Disposition: form-data; name="cover"; filename="cover.jpg"
Content-Type: image/jpeg Content-Type: image/jpeg
< ./cover.jpg < ./cover.jpg
--LuminaBoundary-- --NemeraBoundary--
@@ -1,10 +1,10 @@
PUT {{host}}/api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/books/{{$guid}}/cover PUT {{host}}/api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/books/{{$guid}}/cover
Authorization: Bearer {{ACCESS_TOKEN}} Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: multipart/form-data; boundary=LuminaBoundary Content-Type: multipart/form-data; boundary=NemeraBoundary
--LuminaBoundary --NemeraBoundary
Content-Disposition: form-data; name="cover"; filename="cover.jpg" Content-Disposition: form-data; name="cover"; filename="cover.jpg"
Content-Type: image/jpeg Content-Type: image/jpeg
< ./cover.jpg < ./cover.jpg
--LuminaBoundary-- --NemeraBoundary--
@@ -1,10 +1,10 @@
POST {{host}}/api/v1/plugins POST {{host}}/api/v1/plugins
Authorization: Bearer {{ACCESS_TOKEN}} Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: multipart/form-data; boundary=----LuminaBoundary Content-Type: multipart/form-data; boundary=----NemeraBoundary
------LuminaBoundary ------NemeraBoundary
Content-Disposition: form-data; name="archive"; filename="my-plugin.zip" Content-Disposition: form-data; name="archive"; filename="my-plugin.zip"
Content-Type: application/octet-stream Content-Type: application/octet-stream
< ./my-plugin.zip < ./my-plugin.zip
------LuminaBoundary-- ------NemeraBoundary--
@@ -1,10 +1,10 @@
POST {{host}}/api/v1/themes POST {{host}}/api/v1/themes
Authorization: Bearer {{ACCESS_TOKEN}} Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: multipart/form-data; boundary=----LuminaBoundary Content-Type: multipart/form-data; boundary=----NemeraBoundary
------LuminaBoundary ------NemeraBoundary
Content-Disposition: form-data; name="file"; filename="theme.zip" Content-Disposition: form-data; name="file"; filename="theme.zip"
Content-Type: application/zip Content-Type: application/zip
< ./theme.zip < ./theme.zip
------LuminaBoundary-- ------NemeraBoundary--
@@ -34,7 +34,7 @@ This project enforces many style rules via `.editorconfig` as build errors, so t
- **`<inheritdoc/>`**: avoid on classes implementing interface members. Developers usually work in the implementing class and should see documentation there directly, without having to open the interface. - **`<inheritdoc/>`**: avoid on classes implementing interface members. Developers usually work in the implementing class and should see documentation there directly, without having to open the interface.
- **Boolean naming**: boolean fields, properties, and methods returning booleans must start with a verb implying true/false: `is`, `are`, `should`, `has`, `was`, `can`, etc. - **Boolean naming**: boolean fields, properties, and methods returning booleans must start with a verb implying true/false: `is`, `are`, `should`, `has`, `was`, `can`, etc.
- **Error handling**: rule violations return `Result<T>`. Never throw exceptions unless explicitly justified (e.g. startup/configuration code). Flag any `throw` outside that context. - **Error handling**: rule violations return `Result<T>`. Never throw exceptions unless explicitly justified (e.g. startup/configuration code). Flag any `throw` outside that context.
- **Identifier generation**: persisted entity and domain event identifiers are created with `Guid.CreateVersion7()`, never `Guid.NewGuid()`, so inserts stay time ordered. Entity Framework Core keys configured with `ValueGeneratedOnAdd` receive the same generator through `LuminaDbContext`. Version 4 remains correct only for opaque security handles, temporary file or cache names, fixed sentinel identifiers such as the SYSTEM audit user, stable derived identifiers such as the SHA-256 plugin identifier, and the SQL bulk insert paths recorded in [ADR-0020](../architecture/architecture-knowledge-management/architecture-decision-log/architecture-decision-record-0020.md). - **Identifier generation**: persisted entity and domain event identifiers are created with `Guid.CreateVersion7()`, never `Guid.NewGuid()`, so inserts stay time ordered. Entity Framework Core keys configured with `ValueGeneratedOnAdd` receive the same generator through `NemeraDbContext`. Version 4 remains correct only for opaque security handles, temporary file or cache names, fixed sentinel identifiers such as the SYSTEM audit user, stable derived identifiers such as the SHA-256 plugin identifier, and the SQL bulk insert paths recorded in [ADR-0020](../architecture/architecture-knowledge-management/architecture-decision-log/architecture-decision-record-0020.md).
## Review priority ## Review priority
@@ -12,51 +12,51 @@ There are three parallel test trees, each with its own top-level directory and i
``` ```
tests/ tests/
├── Common/ ├── Common/
│ ├── Lumina.Domain.Fixtures/ │ ├── Nemera.Domain.Fixtures/
│ ├── Lumina.Application.Fixtures/ │ ├── Nemera.Application.Fixtures/
│ ├── Lumina.DataAccess.Fixtures/ │ ├── Nemera.DataAccess.Fixtures/
│ ├── Lumina.Contracts.Fixtures/ │ ├── Nemera.Contracts.Fixtures/
│ └── Lumina.Presentation.Api.Fixtures/ │ └── Nemera.Presentation.Api.Fixtures/
│ └── ... (created on demand, one per source project that has fixture-needing types) │ └── ... (created on demand, one per source project that has fixture-needing types)
├── UnitTests/ ├── UnitTests/
│ ├── Lumina.Domain.UnitTests/ │ ├── Nemera.Domain.UnitTests/
│ ├── Lumina.Application.UnitTests/ │ ├── Nemera.Application.UnitTests/
│ ├── Lumina.Presentation.Api.UnitTests/ │ ├── Nemera.Presentation.Api.UnitTests/
│ └── ... (one per source project that has unit tests) │ └── ... (one per source project that has unit tests)
├── IntegrationTests/ ├── IntegrationTests/
│ ├── Lumina.Presentation.Api.IntegrationTests/ │ ├── Nemera.Presentation.Api.IntegrationTests/
│ └── ... (one per source project that has integration tests) │ └── ... (one per source project that has integration tests)
└── SecurityTests/ └── SecurityTests/
├── Lumina.Presentation.Api.SecurityTests/ ├── Nemera.Presentation.Api.SecurityTests/
└── ... (one per source project exposed at an HTTP boundary) └── ... (one per source project exposed at an HTTP boundary)
``` ```
Rules: Rules:
- Each test project's internal directory structure **mirrors the corresponding source project's directory structure exactly**. A class at `Lumina.Application/Core/Authentication/Login/LoginUserQueryValidator.cs` gets its unit test at `tests/UnitTests/Lumina.Application.UnitTests/Core/Authentication/Login/LoginUserQueryValidatorTests.cs` - same relative path, different project root. - Each test project's internal directory structure **mirrors the corresponding source project's directory structure exactly**. A class at `Nemera.Application/Core/Authentication/Login/LoginUserQueryValidator.cs` gets its unit test at `tests/UnitTests/Nemera.Application.UnitTests/Core/Authentication/Login/LoginUserQueryValidatorTests.cs` - same relative path, different project root.
- Test project naming is always `<SourceProjectName>.<Category>Tests` (e.g. `Lumina.Domain.UnitTests`, `Lumina.Presentation.Api.IntegrationTests`, `Lumina.Presentation.Api.SecurityTests`). Fixture project naming is always `<SourceProjectName>.Fixtures` (no category suffix - a fixtures project is not owned by any one test category, it's referenced by all of them as needed). - Test project naming is always `<SourceProjectName>.<Category>Tests` (e.g. `Nemera.Domain.UnitTests`, `Nemera.Presentation.Api.IntegrationTests`, `Nemera.Presentation.Api.SecurityTests`). Fixture project naming is always `<SourceProjectName>.Fixtures` (no category suffix - a fixtures project is not owned by any one test category, it's referenced by all of them as needed).
- The test class name is always `<TestedClassName>Tests`, identical across all three trees when the same source class is tested from multiple angles - e.g. `LoginEndpointTests` legitimately exists in both `Lumina.Presentation.Api.UnitTests` (mocked handler) and `Lumina.Presentation.Api.IntegrationTests` (real pipeline) and `Lumina.Presentation.Api.SecurityTests` (security-focused HTTP tests), because they live in different projects/namespaces. This is not duplication, it is three different concerns about the same endpoint. - The test class name is always `<TestedClassName>Tests`, identical across all three trees when the same source class is tested from multiple angles - e.g. `LoginEndpointTests` legitimately exists in both `Nemera.Presentation.Api.UnitTests` (mocked handler) and `Nemera.Presentation.Api.IntegrationTests` (real pipeline) and `Nemera.Presentation.Api.SecurityTests` (security-focused HTTP tests), because they live in different projects/namespaces. This is not duplication, it is three different concerns about the same endpoint.
- Only source projects with an HTTP-facing boundary (Presentation.Api today) need a `SecurityTests` project. Domain/Application/DataAccess projects generally only need `UnitTests`, since there's no external attack surface to test at that layer directly. Confirm with the developer before creating a `SecurityTests` project for a project type not already established. - Only source projects with an HTTP-facing boundary (Presentation.Api today) need a `SecurityTests` project. Domain/Application/DataAccess projects generally only need `UnitTests`, since there's no external attack surface to test at that layer directly. Confirm with the developer before creating a `SecurityTests` project for a project type not already established.
# Fixture location: always centralized, no exceptions # Fixture location: always centralized, no exceptions
There is exactly one rule, with no decision to make and no branching: **every fixture lives in `tests/Common/<SourceProjectName>.Fixtures/`, mirroring that type's own path inside its source project, with no extra `Fixtures` subdirectory inserted at each level** (the project itself is already dedicated to fixtures, so repeating that folder name would be redundant). This applies uniformly whether the type is: There is exactly one rule, with no decision to make and no branching: **every fixture lives in `tests/Common/<SourceProjectName>.Fixtures/`, mirroring that type's own path inside its source project, with no extra `Fixtures` subdirectory inserted at each level** (the project itself is already dedicated to fixtures, so repeating that folder name would be redundant). This applies uniformly whether the type is:
- consumed by a single test project (e.g. a Domain aggregate only ever tested by `Lumina.Domain.UnitTests`), - consumed by a single test project (e.g. a Domain aggregate only ever tested by `Nemera.Domain.UnitTests`),
- consumed by many test projects across trees (e.g. a Contract DTO used by `UnitTests`, `IntegrationTests`, and `SecurityTests`), - consumed by many test projects across trees (e.g. a Contract DTO used by `UnitTests`, `IntegrationTests`, and `SecurityTests`),
- or consumed by projects in a different source layer entirely (e.g. an EF entity defined in `Lumina.Application` but used by `Lumina.DataAccess.UnitTests` too). - or consumed by projects in a different source layer entirely (e.g. an EF entity defined in `Nemera.Application` but used by `Nemera.DataAccess.UnitTests` too).
There is no "local vs shared" distinction anymore. Never create a `Fixtures` folder inside a `*Tests` project. If you ever see one from before this rule existed, treat it as tech debt: the fixtures inside it should be moved to the matching `tests/Common/<SourceProject>.Fixtures/` project, and the consuming test project should take a project reference to it instead - flag this in your report rather than doing a large migration unprompted, but do not add anything new to a local `Fixtures` folder going forward. There is no "local vs shared" distinction anymore. Never create a `Fixtures` folder inside a `*Tests` project. If you ever see one from before this rule existed, treat it as tech debt: the fixtures inside it should be moved to the matching `tests/Common/<SourceProject>.Fixtures/` project, and the consuming test project should take a project reference to it instead - flag this in your report rather than doing a large migration unprompted, but do not add anything new to a local `Fixtures` folder going forward.
``` ```
Source: Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/Book.cs Source: Nemera.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/Book.cs
Fixture: tests/Common/Lumina.Domain.Fixtures/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/BookFixture.cs Fixture: tests/Common/Nemera.Domain.Fixtures/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/BookFixture.cs
Source: Lumina.Application/Common/DataAccess/Entities/Authorization/PermissionEntity.cs Source: Nemera.Application/Common/DataAccess/Entities/Authorization/PermissionEntity.cs
Fixture: tests/Common/Lumina.Application.Fixtures/Common/DataAccess/Entities/Authorization/PermissionEntityFixture.cs Fixture: tests/Common/Nemera.Application.Fixtures/Common/DataAccess/Entities/Authorization/PermissionEntityFixture.cs
Source: Lumina.Contracts/Common/Models/Contracts/Requests/LoginRequest.cs Source: Nemera.Contracts/Common/Models/Contracts/Requests/LoginRequest.cs
Fixture: tests/Common/Lumina.Contracts.Fixtures/Common/Models/Contracts/Requests/LoginRequestFixture.cs Fixture: tests/Common/Nemera.Contracts.Fixtures/Common/Models/Contracts/Requests/LoginRequestFixture.cs
``` ```
Any test project, in any tree (Unit/Integration/Security), takes a normal project reference to whichever `<SourceProject>.Fixtures` project(s) it needs - never a reference to another `*Tests` project. Before creating any new fixture, grep the whole `tests/Common/` tree for `<TypeName>Fixture` to check whether it already exists. If a fixtures project for a given source project doesn't exist yet, create it (matching naming/structure above) rather than defaulting to placing the fixture somewhere else - ask the developer only if it's genuinely unclear which source project a type belongs to. Any test project, in any tree (Unit/Integration/Security), takes a normal project reference to whichever `<SourceProject>.Fixtures` project(s) it needs - never a reference to another `*Tests` project. Before creating any new fixture, grep the whole `tests/Common/` tree for `<TypeName>Fixture` to check whether it already exists. If a fixtures project for a given source project doesn't exist yet, create it (matching naming/structure above) rather than defaulting to placing the fixture somewhere else - ask the developer only if it's genuinely unclear which source project a type belongs to.
@@ -66,8 +66,8 @@ Any test project, in any tree (Unit/Integration/Security), takes a normal projec
These are non-negotiable structural rules, checked before writing a single line of test code. These are non-negotiable structural rules, checked before writing a single line of test code.
- **Test classes mirror tested classes exactly.** Same name with `Tests` appended, same namespace, same hierarchical directory path. Example: - **Test classes mirror tested classes exactly.** Same name with `Tests` appended, same namespace, same hierarchical directory path. Example:
- Source: `Lumina.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate.Book.cs` - Source: `Nemera.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate.Book.cs`
- Test: `Lumina.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate.BookTests.cs` - Test: `Nemera.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate.BookTests.cs`
- **Fixtures always mirror their source project's own path exactly**, inside `tests/Common/<SourceProject>.Fixtures/`, per the section above. - **Fixtures always mirror their source project's own path exactly**, inside `tests/Common/<SourceProject>.Fixtures/`, per the section above.
- One test class per tested class, one fixture per model/DTO/entity/query/command that needs one. Do not combine multiple types' tests or fixtures into one file. - One test class per tested class, one fixture per model/DTO/entity/query/command that needs one. Do not combine multiple types' tests or fixtures into one file.
@@ -90,8 +90,8 @@ If you encounter an existing fixture in the codebase that's called statically, t
- **EF Core repository tests**: mocked `DbContext` via `Create.MockedDbContextFor<TContext>()`, asserting through `ChangeTracker.Entries<T>()` or by re-querying the mocked context, not by mocking `DbSet` methods directly. - **EF Core repository tests**: mocked `DbContext` via `Create.MockedDbContextFor<TContext>()`, asserting through `ChangeTracker.Entries<T>()` or by re-querying the mocked context, not by mocking `DbSet` methods directly.
- **Validator tests**: use the `ValidatorTestExtensions` extension, combined with this project's custom `ShouldHaveValidationError` / `ShouldNotHaveValidationError` assertion extensions. - **Validator tests**: use the `ValidatorTestExtensions` extension, combined with this project's custom `ShouldHaveValidationError` / `ShouldNotHaveValidationError` assertion extensions.
- **Endpoint tests**: FastEndpoints via this project's `Factory.Create<TEndpoint>(...)` helper, asserting on the returned `IResult` type (`Ok<T>`, `ProblemHttpResult`, etc.) via `Assert.IsType<T>`. - **Endpoint tests**: FastEndpoints via this project's `Factory.Create<TEndpoint>(...)` helper, asserting on the returned `IResult` type (`Ok<T>`, `ProblemHttpResult`, etc.) via `Assert.IsType<T>`.
- **Integration tests**: real HTTP pipeline via a `WebApplicationFactory`-based fixture (`AuthenticatedLuminaApiFactory` for pre-authenticated scenarios), real `HttpClient`, real DB access through a `IServiceScope` for setup/teardown, asserting on actual `HttpResponseMessage` and deserialized `ProblemDetails`. - **Integration tests**: real HTTP pipeline via a `WebApplicationFactory`-based fixture (`AuthenticatedNemeraApiFactory` for pre-authenticated scenarios), real `HttpClient`, real DB access through a `IServiceScope` for setup/teardown, asserting on actual `HttpResponseMessage` and deserialized `ProblemDetails`.
- **Security tests**: same HTTP pipeline via `LuminaApiFactory` (not pre-authenticated), asserting on security-specific properties: response headers, rate limiting, timing, token structure, injection resistance, and information leakage. - **Security tests**: same HTTP pipeline via `NemeraApiFactory` (not pre-authenticated), asserting on security-specific properties: response headers, rate limiting, timing, token structure, injection resistance, and information leakage.
# Test method naming - depends on how the test invokes the code # Test method naming - depends on how the test invokes the code
@@ -324,7 +324,7 @@ Beyond that, each test sets up the specific mock return values needed for its sc
## DataAccess layer: repository tests ## DataAccess layer: repository tests
Reference exemplar - a `UserRepositoryTests` class. Constructor creates `_mockContext = Create.MockedDbContextFor<LuminaDbContext>()` and `_sut = new Repository(_mockContext)`, plus instantiated fixtures (`private readonly UserEntityFixture _userEntityFixture = new();`). Tests interact with the real (mocked) `DbContext` behavior: seed data directly via `_mockContext.Entities.Add(...)` + `SaveChangesAsync()` when a pre-existing-state scenario is needed, then call the repository method under test and assert both the `Result` outcome AND the actual `ChangeTracker` state (e.g. `EntityState.Added`, entry count) to confirm the repository did what it claims. Reference exemplar - a `UserRepositoryTests` class. Constructor creates `_mockContext = Create.MockedDbContextFor<NemeraDbContext>()` and `_sut = new Repository(_mockContext)`, plus instantiated fixtures (`private readonly UserEntityFixture _userEntityFixture = new();`). Tests interact with the real (mocked) `DbContext` behavior: seed data directly via `_mockContext.Entities.Add(...)` + `SaveChangesAsync()` when a pre-existing-state scenario is needed, then call the repository method under test and assert both the `Result` outcome AND the actual `ChangeTracker` state (e.g. `EntityState.Added`, entry count) to confirm the repository did what it claims.
# Integration test template # Integration test template
@@ -332,10 +332,10 @@ Live under `tests/IntegrationTests/<SourceProject>.IntegrationTests/`. Test the
```csharp ```csharp
[ExcludeFromCodeCoverage] [ExcludeFromCodeCoverage]
public class LoginEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime public class LoginEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{ {
private HttpClient _client; private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory; private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly JsonSerializerOptions _jsonOptions = new() private readonly JsonSerializerOptions _jsonOptions = new()
{ {
PropertyNameCaseInsensitive = true, PropertyNameCaseInsensitive = true,
@@ -343,7 +343,7 @@ public class LoginEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>,
}; };
private readonly string _testUsername; private readonly string _testUsername;
public LoginEndpointTests(AuthenticatedLuminaApiFactory apiFactory) public LoginEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{ {
_client = apiFactory.CreateClient(); _client = apiFactory.CreateClient();
_apiFactory = apiFactory; _apiFactory = apiFactory;
@@ -370,14 +370,14 @@ public class LoginEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>,
public async Task DisposeAsync() public async Task DisposeAsync()
{ {
using IServiceScope scope = _apiFactory.Services.CreateScope(); using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>(); NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
UserEntity? user = dbContext.Users.FirstOrDefault(u => u.Username == _testUsername); UserEntity? user = dbContext.Users.FirstOrDefault(u => u.Username == _testUsername);
if (user is not null) { dbContext.Users.Remove(user); await dbContext.SaveChangesAsync(); } if (user is not null) { dbContext.Users.Remove(user); await dbContext.SaveChangesAsync(); }
} }
} }
``` ```
Key characteristics: `IClassFixture<AuthenticatedLuminaApiFactory>` + `IAsyncLifetime` (not plain `IDisposable`), a fresh uniquely-named test user created and torn down per test, real HTTP calls, action-based naming (`Login_...`, never `ExecuteAsync_...`), and assertions on the deserialized `ProblemDetails` shape (`status`, `type`, `title`, `detail`, `instance`, `traceId`) for every non-success response, matching the exact RFC section URLs used by this project's error mapping. Cover: full happy path per distinct valid credential type (password, password+TOTP, temp password), and every distinct failure mode with its exact expected `ProblemDetails` shape (expired temp password, invalid credentials, invalid TOTP). Key characteristics: `IClassFixture<AuthenticatedNemeraApiFactory>` + `IAsyncLifetime` (not plain `IDisposable`), a fresh uniquely-named test user created and torn down per test, real HTTP calls, action-based naming (`Login_...`, never `ExecuteAsync_...`), and assertions on the deserialized `ProblemDetails` shape (`status`, `type`, `title`, `detail`, `instance`, `traceId`) for every non-success response, matching the exact RFC section URLs used by this project's error mapping. Cover: full happy path per distinct valid credential type (password, password+TOTP, temp password), and every distinct failure mode with its exact expected `ProblemDetails` shape (expired temp password, invalid credentials, invalid TOTP).
# Security test template # Security test template
@@ -385,13 +385,13 @@ Live under `tests/SecurityTests/<SourceProject>.SecurityTests/`. Test the securi
```csharp ```csharp
[ExcludeFromCodeCoverage] [ExcludeFromCodeCoverage]
public class LoginEndpointTests : IClassFixture<LuminaApiFactory>, IDisposable public class LoginEndpointTests : IClassFixture<NemeraApiFactory>, IDisposable
{ {
private readonly LuminaApiFactory _apiFactory; private readonly NemeraApiFactory _apiFactory;
private readonly HttpClient _client; private readonly HttpClient _client;
private readonly string _testUsername; private readonly string _testUsername;
public LoginEndpointTests(LuminaApiFactory apiFactory) public LoginEndpointTests(NemeraApiFactory apiFactory)
{ {
_apiFactory = apiFactory; _apiFactory = apiFactory;
_client = apiFactory.CreateClient(); _client = apiFactory.CreateClient();
@@ -420,14 +420,14 @@ public class LoginEndpointTests : IClassFixture<LuminaApiFactory>, IDisposable
public void Dispose() public void Dispose()
{ {
using IServiceScope scope = _apiFactory.Services.CreateScope(); using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>(); NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
UserEntity? user = dbContext.Users.FirstOrDefault(u => u.Username == _testUsername); UserEntity? user = dbContext.Users.FirstOrDefault(u => u.Username == _testUsername);
if (user is not null) { dbContext.Users.Remove(user); dbContext.SaveChanges(); } if (user is not null) { dbContext.Users.Remove(user); dbContext.SaveChanges(); }
} }
} }
``` ```
Key characteristics: `IClassFixture<LuminaApiFactory>` + plain `IDisposable` (sync, per-test cleanup since xUnit instantiates the class per `[Fact]`), a unique `X-Forwarded-For` IP per test to isolate rate-limiting/timing tests from each other, and action-based naming (`Login_WithX_ShouldY`), never `ExecuteAsync_WithX_ShouldY`. Key characteristics: `IClassFixture<NemeraApiFactory>` + plain `IDisposable` (sync, per-test cleanup since xUnit instantiates the class per `[Fact]`), a unique `X-Forwarded-For` IP per test to isolate rate-limiting/timing tests from each other, and action-based naming (`Login_WithX_ShouldY`), never `ExecuteAsync_WithX_ShouldY`.
Categories to cover for any authenticated/sensitive endpoint, unless clearly not applicable: Categories to cover for any authenticated/sensitive endpoint, unless clearly not applicable:
+12 -12
View File
@@ -1,8 +1,8 @@
# Lumina Theming # Nemera Theming
The web client of Lumina is a themed shell: every page is rendered inside the templates of an active theme. A theme is a self contained ZIP archive with a manifest, HTML templates and static assets. This document explains how themes are structured, how the template engine works, and how to create, install and manage a theme. The web client of Nemera is a themed shell: every page is rendered inside the templates of an active theme. A theme is a self contained ZIP archive with a manifest, HTML templates and static assets. This document explains how themes are structured, how the template engine works, and how to create, install and manage a theme.
- [Lumina Theming](#lumina-theming) - [Nemera Theming](#nemera-theming)
- [Overview](#overview) - [Overview](#overview)
- [Theme Pack Structure](#theme-pack-structure) - [Theme Pack Structure](#theme-pack-structure)
- [The Manifest (theme.json)](#the-manifest-themejson) - [The Manifest (theme.json)](#the-manifest-themejson)
@@ -85,7 +85,7 @@ The manifest is a JSON object describing the theme. The example below is the man
"id": "editorial-paper", "id": "editorial-paper",
"name": "Editorial Paper", "name": "Editorial Paper",
"description": "A clean, readable proof of concept theme.", "description": "A clean, readable proof of concept theme.",
"author": "Lumina", "author": "Nemera",
"version": "1.6.0", "version": "1.6.0",
"preview": "assets/preview.svg", "preview": "assets/preview.svg",
"templates": { "templates": {
@@ -215,7 +215,7 @@ The layout template of the bundled theme shows the intended shape:
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{title}} - Lumina</title> <title>{{title}} - Nemera</title>
{{&appHead}} {{&appHead}}
<link rel="stylesheet" href="{{assetBase}}/site.css"> <link rel="stylesheet" href="{{assetBase}}/site.css">
</head> </head>
@@ -703,9 +703,9 @@ The playlist rows are reordered by dragging the handle with the `playlist-entry-
#### The Shared Add to Playlist Action #### The Shared Add to Playlist Action
The music library card on the home page, the artist cards, the album cards and the actions menu of an album track row share one add-to-playlist action. The action is a menu item with the `card-action-add-to-playlist` class in both cases. Their click handler calls `window.LuminaPlaylists.showAddScopeDialogAsync(scope)`, where `scope` carries `libraryId`, the optional `artistId`, `albumId` and `trackId`, the `title` shown in the dialog, the page-local `addToPlaylistLabel`, and the optional `returnFocus` element that gets the focus back when the dialog closes. The helper is provided by `wwwroot/js/playlists.js`, which every layout loads. The page passes its own localized label from its page resource as `addToPlaylistLabel`. The music library card on the home page, the artist cards, the album cards and the actions menu of an album track row share one add-to-playlist action. The action is a menu item with the `card-action-add-to-playlist` class in both cases. Their click handler calls `window.NemeraPlaylists.showAddScopeDialogAsync(scope)`, where `scope` carries `libraryId`, the optional `artistId`, `albumId` and `trackId`, the `title` shown in the dialog, the page-local `addToPlaylistLabel`, and the optional `returnFocus` element that gets the focus back when the dialog closes. The helper is provided by `wwwroot/js/playlists.js`, which every layout loads. The page passes its own localized label from its page resource as `addToPlaylistLabel`.
The dialog is rendered by the application, not by the theme: it is a standard application dialog surface with a standard `enlightenment-combobox` of the playlists of the current user. When the scope carries a `trackId`, the dialog appends that single track through the single entry route. Otherwise, the server resolves the ordered track Ids of the scope and appends them to the selected playlist in one batch request. In both cases it shows the result notification and dispatches the `lumina:playlist-updated` event so an open playlist page refreshes. A theme that renders the dialog itself does not get this behavior; it must keep the action wired to the shared helper or reimplement the whole flow. The dialog is rendered by the application, not by the theme: it is a standard application dialog surface with a standard `enlightenment-combobox` of the playlists of the current user. When the scope carries a `trackId`, the dialog appends that single track through the single entry route. Otherwise, the server resolves the ordered track Ids of the scope and appends them to the selected playlist in one batch request. In both cases it shows the result notification and dispatches the `nemera:playlist-updated` event so an open playlist page refreshes. A theme that renders the dialog itself does not get this behavior; it must keep the action wired to the shared helper or reimplement the whole flow.
A page or a theme template can also render a declarative action that needs no script of its own. The global playlist script binds one click listener on the document, so the action works anywhere in the swapped page content, inside the player bar, and on controls that a page renders later. The action is any focusable element, normally a `button`, that carries these attributes: A page or a theme template can also render a declarative action that needs no script of its own. The global playlist script binds one click listener on the document, so the action works anywhere in the swapped page content, inside the player bar, and on controls that a page renders later. The action is any focusable element, normally a `button`, that carries these attributes:
@@ -734,7 +734,7 @@ The player queue action does not use the declarative attributes. Its label comes
#### The Album Track Actions Menu #### The Album Track Actions Menu
Every rendered track row of the album details page carries the same `card-actions-trigger` button with the vertical dots as the card menus, plus the `track-actions-trigger` class that places it inline in the row. The page script creates the same `card-actions-menu` markup on demand. The menu has three application actions: `card-action-add-to-playlist` opens the shared add-to-playlist dialog for that track, `card-action-add-to-queue` calls `window.LuminaAudioPlayer.instance.appendToQueueAsync(descriptor)`, and `card-action-play-all-from-here` calls `playAsync` with an explicit queue built from the clicked track and every track that follows it in the album order. The player starts the clicked track for the last action, and replaces the queue. A theme that renders the album page must keep the track row markup and the script behavior, or provide its own equivalent. Every rendered track row of the album details page carries the same `card-actions-trigger` button with the vertical dots as the card menus, plus the `track-actions-trigger` class that places it inline in the row. The page script creates the same `card-actions-menu` markup on demand. The menu has three application actions: `card-action-add-to-playlist` opens the shared add-to-playlist dialog for that track, `card-action-add-to-queue` calls `window.NemeraAudioPlayer.instance.appendToQueueAsync(descriptor)`, and `card-action-play-all-from-here` calls `playAsync` with an explicit queue built from the clicked track and every track that follows it in the album order. The player starts the clicked track for the last action, and replaces the queue. A theme that renders the album page must keep the track row markup and the script behavior, or provide its own equivalent.
#### The Favorites Page #### The Favorites Page
@@ -757,7 +757,7 @@ The pages of the media items read the library of the item from the `libraryId` q
The fallback view keeps these element hooks, which the application script drives: `favorites-container`, `no-favorites`, `favorite-count`, `favorites-kind-filter`, `load-more-favorites-button` and `retry-favorites-button`. The bundled themes ship no template for `favorites/index`, so the fallback view is what a healthy site shows, and a theme that wants its own page provides `templates/favorites/index.html` and must keep the hooks the page script needs. The fallback view keeps these element hooks, which the application script drives: `favorites-container`, `no-favorites`, `favorite-count`, `favorites-kind-filter`, `load-more-favorites-button` and `retry-favorites-button`. The bundled themes ship no template for `favorites/index`, so the fallback view is what a healthy site shows, and a theme that wants its own page provides `templates/favorites/index.html` and must keep the hooks the page script needs.
The fallback view renders one card per favorite, from the most recently favorited, in pages of 50 that `load-more-favorites-button` extends. Each card carries a favorite heart (a `card-favorite-toggle` button, described below), already in the favorited state, and a favorite is removed from the page by unfavoriting its card: the page script does not call the remove route itself, the global favorites script does, and the page listens to the `lumina:favorite-changed` event described below, removes the card of an item that is no longer a favorite, and updates the counter and the empty state without another request. A failed first page or reload clears the rendered cards and shows the localized failure message with `retry-favorites-button`, so the user can load the current filter again instead of being left with a truncated list. A theme template that renders the page itself gets the same behavior by rendering hearts on its cards and handling that event. The fallback view renders one card per favorite, from the most recently favorited, in pages of 50 that `load-more-favorites-button` extends. Each card carries a favorite heart (a `card-favorite-toggle` button, described below), already in the favorited state, and a favorite is removed from the page by unfavoriting its card: the page script does not call the remove route itself, the global favorites script does, and the page listens to the `nemera:favorite-changed` event described below, removes the card of an item that is no longer a favorite, and updates the counter and the empty state without another request. A failed first page or reload clears the rendered cards and shows the localized failure message with `retry-favorites-button`, so the user can load the current filter again instead of being left with a truncated list. A theme template that renders the page itself gets the same behavior by rendering hearts on its cards and handling that event.
#### The Statistics Page #### The Statistics Page
@@ -819,7 +819,7 @@ A theme restyles a toggle from the `is-favorite` class or from the `aria-pressed
A click on a toggle adds the favorite when the item is not one, and removes it otherwise, through the add and remove routes of the configuration. A click is ignored while a request for the same item is in flight, whichever toggle of the item it comes from, and a click on a toggle whose state is unknown reads the state again instead of guessing. The script keeps every toggle of the same item on the page in sync. When a change fails, every toggle returns to the state it had, and the global API helper shows the failure as a notification. When a state read fails, the global API helper shows the failure as a notification. The click handler prevents the default action, so a toggle inside a link or a card does not also navigate. A click on a toggle adds the favorite when the item is not one, and removes it otherwise, through the add and remove routes of the configuration. A click is ignored while a request for the same item is in flight, whichever toggle of the item it comes from, and a click on a toggle whose state is unknown reads the state again instead of guessing. The script keeps every toggle of the same item on the page in sync. When a change fails, every toggle returns to the state it had, and the global API helper shows the failure as a notification. When a state read fails, the global API helper shows the failure as a notification. The click handler prevents the default action, so a toggle inside a link or a card does not also navigate.
After every successful change the script dispatches the `lumina:favorite-changed` event on `document`, with `detail` carrying `mediaKind` (the canonical kind name), `mediaItemId` (the lowercase Id) and `isFavorite` (the new state), so a page that lists favorites can react while it stays decoupled from the toggle that caused the change. After every successful change the script dispatches the `nemera:favorite-changed` event on `document`, with `detail` carrying `mediaKind` (the canonical kind name), `mediaItemId` (the lowercase Id) and `isFavorite` (the new state), so a page that lists favorites can react while it stays decoupled from the toggle that caused the change.
The layout provides the shared configuration as `window.favoritesConfiguration`: The layout provides the shared configuration as `window.favoritesConfiguration`:
@@ -830,7 +830,7 @@ The layout provides the shared configuration as `window.favoritesConfiguration`:
| `removeFavoriteUrlTemplate` | The route template that removes a favorite. Its named `{mediaKind}` and `{mediaItemId}` placeholders are replaced by the media kind name and the Id of the media item. | | `removeFavoriteUrlTemplate` | The route template that removes a favorite. Its named `{mediaKind}` and `{mediaItemId}` placeholders are replaced by the media kind name and the Id of the media item. |
| `strings` | The localized labels: `add` and `remove`. | | `strings` | The localized labels: `add` and `remove`. |
The script also exposes `window.LuminaFavorites` for page scripts that need more than the markup contract: The script also exposes `window.NemeraFavorites` for page scripts that need more than the markup contract:
| Member | Behavior | | Member | Behavior |
| --- | --- | | --- | --- |
@@ -876,7 +876,7 @@ The theme engine is configured through the `ThemeEngine` section of the API conf
| --- | --- | --- | | --- | --- | --- |
| `StoragePath` | `themes` | Directory where installed theme packs are stored, relative to the API base directory when not rooted. | | `StoragePath` | `themes` | Directory where installed theme packs are stored, relative to the API base directory when not rooted. |
| `BundledThemesPath` | `themes/bundled` | Directory where the theme archives shipped with the application are located. | | `BundledThemesPath` | `themes/bundled` | Directory where the theme archives shipped with the application are located. |
| `DefaultThemeId` | `lumina-default` | Identifier of the theme selected when no valid current theme is persisted. | | `DefaultThemeId` | `nemera-default` | Identifier of the theme selected when no valid current theme is persisted. |
| `MaxArchiveBytes` | `8388608` | Maximum size of an uploaded theme archive, in bytes (8 MB). | | `MaxArchiveBytes` | `8388608` | Maximum size of an uploaded theme archive, in bytes (8 MB). |
| `MaxExpandedBytes` | `25165824` | Maximum total size of an extracted theme pack, in bytes (24 MB). | | `MaxExpandedBytes` | `25165824` | Maximum total size of an extracted theme pack, in bytes (24 MB). |
| `MaxSingleFileBytes` | `6291456` | Maximum size of a single file within a theme pack, in bytes (6 MB). | | `MaxSingleFileBytes` | `6291456` | Maximum size of a single file within a theme pack, in bytes (6 MB). |
@@ -1,79 +0,0 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Plugins.Calibre.Common.Models.DTO.Opf;
/// <summary>
/// Data transfer object for the metadata read from a Calibre OPF file.
/// </summary>
[DebuggerDisplay("Title: {Title}")]
internal sealed class OpfDocumentDto
{
/// <summary>
/// Gets or sets the title of the book.
/// </summary>
public string? Title { get; set; }
/// <summary>
/// Gets or sets the description of the book, in HTML format.
/// </summary>
public string? Description { get; set; }
/// <summary>
/// Gets or sets the publisher of the book.
/// </summary>
public string? Publisher { get; set; }
/// <summary>
/// Gets or sets the publication date of the book.
/// </summary>
public DateTimeOffset? PublishDate { get; set; }
/// <summary>
/// Gets or sets the language code of the book.
/// </summary>
public string? LanguageCode { get; set; }
/// <summary>
/// Gets or sets the name of the series the book belongs to, if applicable.
/// </summary>
public string? Series { get; set; }
/// <summary>
/// Gets or sets the index of the book within its series, if applicable.
/// </summary>
public double? SeriesIndex { get; set; }
/// <summary>
/// Gets or sets the personal rating of the book, on a scale of 0 to 10.
/// </summary>
public int? Rating { get; set; }
/// <summary>
/// Gets or sets the href of the cover image, relative to the directory of the book.
/// </summary>
public string? CoverHref { get; set; }
/// <summary>
/// Gets the creators of the book.
/// </summary>
public List<OpfCreatorDto> Creators { get; } = [];
/// <summary>
/// Gets the contributors of the book.
/// </summary>
public List<OpfContributorDto> Contributors { get; } = [];
/// <summary>
/// Gets the identifiers of the book, with their schemes.
/// </summary>
public List<OpfIdentifierDto> Identifiers { get; } = [];
/// <summary>
/// Gets the subjects of the book, used as tags.
/// </summary>
public List<string> Subjects { get; } = [];
}
@@ -1,29 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<BaseOutputPath>$(SolutionDir)..\bin\plugins\</BaseOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\AssemblyInfo_Shared.cs" Link="Properties\AssemblyInfo_Shared.cs" />
</ItemGroup>
<Target Name="CopyToPluginsFolder" AfterTargets="Build">
<MakeDir Directories="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
</Target>
<ItemGroup>
<ProjectReference Include="..\..\src\Lumina.Plugins.Contracts\Lumina.Plugins.Contracts.csproj">
<Private>false</Private><!--Do not copy this assembly in the output directory, it's loaded from somewhere else.-->
<ExcludeAssets>runtime</ExcludeAssets>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
</Project>
@@ -1,6 +0,0 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Lumina.Plugins.Calibre.UnitTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.Calibre.SecurityTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.Calibre.IntegrationTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.Calibre.Fixtures")]
@@ -1,31 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<BaseOutputPath>$(SolutionDir)..\bin\plugins\</BaseOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\AssemblyInfo_Shared.cs" Link="Properties\AssemblyInfo_Shared.cs" />
</ItemGroup>
<Target Name="CopyToPluginsFolder" AfterTargets="Build">
<MakeDir Directories="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="@(ReferenceCopyLocalPaths)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
</Target>
<ItemGroup>
<ProjectReference Include="..\..\src\Lumina.Plugins.Contracts\Lumina.Plugins.Contracts.csproj">
<Private>false</Private><!--Do not copy this assembly in the output directory, it's loaded from somewhere else.-->
<ExcludeAssets>runtime</ExcludeAssets>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
</Project>
@@ -1,6 +0,0 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Lumina.Plugins.CoverArtArchive.UnitTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.CoverArtArchive.SecurityTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.CoverArtArchive.Fixtures")]
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
@@ -1,54 +0,0 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Plugins.Epub.Common.Models.DTO.Opf;
/// <summary>
/// Data transfer object for the parsed OPF package document of an EPUB.
/// </summary>
[DebuggerDisplay("Title: {Title}")]
internal sealed class OpfDocumentDto
{
/// <summary>
/// Gets or sets the title of the book.
/// </summary>
public string? Title { get; set; }
/// <summary>
/// Gets or sets the author of the book, if applicable.
/// </summary>
public string? Author { get; set; }
/// <summary>
/// Gets the manifest items of the EPUB.
/// </summary>
public List<OpfManifestItemDto> Items { get; } = [];
/// <summary>
/// Gets the manifest items of the EPUB, keyed by their Id.
/// </summary>
public Dictionary<string, OpfManifestItemDto> ItemsById { get; } = [];
/// <summary>
/// Gets the Ids of the manifest items that are reading sections, in reading order.
/// </summary>
public List<string> SpineIds { get; } = [];
/// <summary>
/// Gets or sets the Id of the manifest item of the navigation document, if applicable.
/// </summary>
public string? NavItemId { get; set; }
/// <summary>
/// Gets or sets the Id of the manifest item of the NCX document, if applicable.
/// </summary>
public string? NcxItemId { get; set; }
/// <summary>
/// Gets or sets the Id of the manifest item of the cover image, if applicable.
/// </summary>
public string? CoverItemId { get; set; }
}
@@ -1,29 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<BaseOutputPath>$(SolutionDir)..\bin\plugins\</BaseOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\AssemblyInfo_Shared.cs" Link="Properties\AssemblyInfo_Shared.cs" />
</ItemGroup>
<Target Name="CopyToPluginsFolder" AfterTargets="Build">
<MakeDir Directories="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
</Target>
<ItemGroup>
<ProjectReference Include="..\..\src\Lumina.Plugins.Contracts\Lumina.Plugins.Contracts.csproj">
<Private>false</Private><!--Do not copy this assembly in the output directory, it's loaded from somewhere else.-->
<ExcludeAssets>runtime</ExcludeAssets>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
</Project>
@@ -1,5 +0,0 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Lumina.Plugins.Epub.UnitTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.Epub.IntegrationTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.Epub.Fixtures")]
@@ -1,57 +0,0 @@
#region ========================================================================= USING =====================================================================================
using System;
#endregion
namespace Lumina.Plugins.ID3.Core.Tags;
/// <summary>
/// Resolves the canonical name of the container of an audio file from the concrete type the tagging library parsed it as.
/// </summary>
internal static class AudioContainerResolver
{
/// <summary>
/// Resolves the container of the audio file parsed by <paramref name="tagFile"/>.
/// </summary>
/// <param name="tagFile">The parsed audio file whose container is resolved.</param>
/// <returns>The canonical name of the container, for example MP3, FLAC, OGG, AAC, MP4 or WAV, or <see langword="null"/> when the container cannot be recognized.</returns>
public static string? Resolve(TagLib.File tagFile)
{
// The concrete type of the parsed file is the most reliable description of its container, because it is chosen by the parser from the
// actual bytes of the file, while the mime type only describes the extension. The scanning pipeline resolves the container the same way,
// so that the container captured during a scan and the one captured during metadata enrichment always agree.
return tagFile switch
{
TagLib.Mpeg.File => "MP3",
TagLib.Flac.File => "FLAC",
TagLib.Mpeg4.File => "MP4",
TagLib.Aac.File => "AAC",
TagLib.Ogg.File => "OGG",
TagLib.Riff.File => "WAV",
TagLib.Aiff.File => "AIFF",
TagLib.Ape.File => "APE",
TagLib.WavPack.File => "WAVPACK",
TagLib.Asf.File => "WMA",
TagLib.Dsf.File => "DSF",
TagLib.Matroska.File => "MATROSKA",
TagLib.MusePack.File => "MPC",
TagLib.Audible.File => "AA",
_ => ResolveFromMimeType(tagFile.MimeType)
};
}
/// <summary>
/// Resolves the container from the mime type reported by the tagging library, for the containers that have no dedicated parser.
/// </summary>
/// <param name="mimeType">The mime type reported by the tagging library.</param>
/// <returns>The name of the container, or <see langword="null"/> when it cannot be derived.</returns>
public static string? ResolveFromMimeType(string? mimeType)
{
if (string.IsNullOrWhiteSpace(mimeType))
return null;
// The library reports its mime types with the "taglib/" prefix, so only the last segment names the container.
string[] segments = mimeType.Split('/', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
string? container = segments.Length > 0 ? segments[^1] : null;
return string.IsNullOrWhiteSpace(container) ? null : container.ToUpperInvariant();
}
}
@@ -1,32 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<BaseOutputPath>$(SolutionDir)..\bin\plugins\</BaseOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\AssemblyInfo_Shared.cs" Link="Properties\AssemblyInfo_Shared.cs" />
</ItemGroup>
<Target Name="CopyToPluginsFolder" AfterTargets="Build">
<MakeDir Directories="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="@(ReferenceCopyLocalPaths)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
</Target>
<ItemGroup>
<ProjectReference Include="..\..\src\Lumina.Plugins.Contracts\Lumina.Plugins.Contracts.csproj">
<Private>false</Private><!--Do not copy this assembly in the output directory, it's loaded from somewhere else.-->
<ExcludeAssets>runtime</ExcludeAssets>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="TagLibSharp" />
</ItemGroup>
</Project>
@@ -1,6 +0,0 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Lumina.Plugins.ID3.UnitTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.ID3.IntegrationTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.ID3.Fixtures")]
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
@@ -1,35 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<BaseOutputPath>$(SolutionDir)..\bin\plugins\</BaseOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\AssemblyInfo_Shared.cs" Link="Properties\AssemblyInfo_Shared.cs" />
</ItemGroup>
<Target Name="CopyToPluginsFolder" AfterTargets="Build">
<MakeDir Directories="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="@(ReferenceCopyLocalPaths)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
</Target>
<ItemGroup>
<ProjectReference Include="..\..\src\Lumina.Plugins.Contracts\Lumina.Plugins.Contracts.csproj">
<Private>false</Private><!--Do not copy this assembly in the output directory, it's loaded from somewhere else.-->
<ExcludeAssets>runtime</ExcludeAssets>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="TagLibSharp" />
</ItemGroup>
</Project>
@@ -1,6 +0,0 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Lumina.Plugins.LocalMusicArtwork.UnitTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.LocalMusicArtwork.SecurityTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.LocalMusicArtwork.IntegrationTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.LocalMusicArtwork.Fixtures")]
@@ -1,31 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<BaseOutputPath>$(SolutionDir)..\bin\plugins\</BaseOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\AssemblyInfo_Shared.cs" Link="Properties\AssemblyInfo_Shared.cs" />
</ItemGroup>
<Target Name="CopyToPluginsFolder" AfterTargets="Build">
<MakeDir Directories="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="@(ReferenceCopyLocalPaths)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
</Target>
<ItemGroup>
<ProjectReference Include="..\..\src\Lumina.Plugins.Contracts\Lumina.Plugins.Contracts.csproj">
<Private>false</Private><!--Do not copy this assembly in the output directory, it's loaded from somewhere else.-->
<ExcludeAssets>runtime</ExcludeAssets>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
</Project>
@@ -1,6 +0,0 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Lumina.Plugins.MusicBrainz.UnitTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.MusicBrainz.SecurityTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.MusicBrainz.Fixtures")]
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
@@ -1,29 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<BaseOutputPath>$(SolutionDir)..\bin\plugins\</BaseOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\AssemblyInfo_Shared.cs" Link="Properties\AssemblyInfo_Shared.cs" />
</ItemGroup>
<Target Name="CopyToPluginsFolder" AfterTargets="Build">
<MakeDir Directories="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
</Target>
<ItemGroup>
<ProjectReference Include="..\..\src\Lumina.Plugins.Contracts\Lumina.Plugins.Contracts.csproj">
<Private>false</Private><!--Do not copy this assembly in the output directory, it's loaded from somewhere else.-->
<ExcludeAssets>runtime</ExcludeAssets>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
</Project>
@@ -1,5 +0,0 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Lumina.Plugins.OpenLibrary.UnitTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.OpenLibrary.Fixtures")]
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
@@ -1,47 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<BaseOutputPath>$(SolutionDir)..\bin\plugins\</BaseOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\AssemblyInfo_Shared.cs" Link="Properties\AssemblyInfo_Shared.cs" />
</ItemGroup>
<Target Name="CopyToPluginsFolder" AfterTargets="Build">
<MakeDir Directories="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<Copy SourceFiles="@(ReferenceCopyLocalPaths)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
<!-- The native libraries of the dependencies ship for every platform and architecture under a runtimes\&lt;rid&gt;\native
subdirectory of the plugin output; only the ones of the runtime the host runs on are deployed, flattened into the plugins
directory, so that a wrong-architecture native library (for example the x86 pdfium next to a 64-bit host) is never copied. -->
<ItemGroup>
<_CurrentRidNatives Include="$(OutDir)runtimes\$(NETCoreSdkRuntimeIdentifier)\native\*" />
</ItemGroup>
<!-- The native libraries are what make the PDF reader work at runtime, so a build that produced none is a build that would deploy
a silently broken plugin; failing here makes a missing RuntimeIdentifier visible at build time instead of as a runtime
DllNotFoundException. -->
<Error Condition="'@(_CurrentRidNatives)' == ''" Text="No native libraries were produced under '$(OutDir)runtimes\$(NETCoreSdkRuntimeIdentifier)\native'. Build the Lumina.Plugins.Pdf project with an explicit runtime identifier (for example: dotnet build -r win-x64) so the PDF reader ships its native rendering libraries." />
<Copy SourceFiles="@(_CurrentRidNatives)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
</Target>
<ItemGroup>
<ProjectReference Include="..\..\src\Lumina.Plugins.Contracts\Lumina.Plugins.Contracts.csproj">
<Private>false</Private><!--Do not copy this assembly in the output directory, it's loaded from somewhere else.-->
<ExcludeAssets>runtime</ExcludeAssets>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="PdfPig" />
<PackageReference Include="PDFtoImage" />
</ItemGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
</Project>
@@ -1,5 +0,0 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Lumina.Plugins.Pdf.UnitTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.Pdf.IntegrationTests")]
[assembly: InternalsVisibleTo("Lumina.Plugins.Pdf.Fixtures")]
@@ -1,11 +1,11 @@
#region ========================================================================= USING ===================================================================================== #region ========================================================================= USING =====================================================================================
using Lumina.Plugins.Calibre.Core; using Nemera.Plugins.Calibre.Core;
using Lumina.Plugins.Contracts.Core.Metadata; using Nemera.Plugins.Contracts.Core.Metadata;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using System; using System;
#endregion #endregion
namespace Lumina.Plugins.Calibre.Common.DependencyInjection; namespace Nemera.Plugins.Calibre.Common.DependencyInjection;
/// <summary> /// <summary>
/// Utility class for registering the services of the Calibre metadata and artwork providers into the Dependency Injection container. /// Utility class for registering the services of the Calibre metadata and artwork providers into the Dependency Injection container.
@@ -3,7 +3,7 @@ using System;
using System.Diagnostics; using System.Diagnostics;
#endregion #endregion
namespace Lumina.Plugins.Calibre.Common.Models.DTO.Opf; namespace Nemera.Plugins.Calibre.Common.Models.DTO.Opf;
/// <summary> /// <summary>
/// Data transfer object for a contributor of a book read from an OPF file. /// Data transfer object for a contributor of a book read from an OPF file.
@@ -3,7 +3,7 @@ using System;
using System.Diagnostics; using System.Diagnostics;
#endregion #endregion
namespace Lumina.Plugins.Calibre.Common.Models.DTO.Opf; namespace Nemera.Plugins.Calibre.Common.Models.DTO.Opf;
/// <summary> /// <summary>
/// Data transfer object for a creator of a book read from an OPF file. /// Data transfer object for a creator of a book read from an OPF file.
@@ -0,0 +1,79 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Nemera.Plugins.Calibre.Common.Models.DTO.Opf;
/// <summary>
/// Data transfer object for the metadata read from a Calibre OPF file.
/// </summary>
[DebuggerDisplay("Title: {Title}")]
internal sealed class OpfDocumentDto
{
/// <summary>
/// Gets or sets the title of the book.
/// </summary>
public string? Title { get; set; }
/// <summary>
/// Gets or sets the description of the book, in HTML format.
/// </summary>
public string? Description { get; set; }
/// <summary>
/// Gets or sets the publisher of the book.
/// </summary>
public string? Publisher { get; set; }
/// <summary>
/// Gets or sets the publication date of the book.
/// </summary>
public DateTimeOffset? PublishDate { get; set; }
/// <summary>
/// Gets or sets the language code of the book.
/// </summary>
public string? LanguageCode { get; set; }
/// <summary>
/// Gets or sets the name of the series the book belongs to, if applicable.
/// </summary>
public string? Series { get; set; }
/// <summary>
/// Gets or sets the index of the book within its series, if applicable.
/// </summary>
public double? SeriesIndex { get; set; }
/// <summary>
/// Gets or sets the personal rating of the book, on a scale of 0 to 10.
/// </summary>
public int? Rating { get; set; }
/// <summary>
/// Gets or sets the href of the cover image, relative to the directory of the book.
/// </summary>
public string? CoverHref { get; set; }
/// <summary>
/// Gets the creators of the book.
/// </summary>
public List<OpfCreatorDto> Creators { get; } = [];
/// <summary>
/// Gets the contributors of the book.
/// </summary>
public List<OpfContributorDto> Contributors { get; } = [];
/// <summary>
/// Gets the identifiers of the book, with their schemes.
/// </summary>
public List<OpfIdentifierDto> Identifiers { get; } = [];
/// <summary>
/// Gets the subjects of the book, used as tags.
/// </summary>
public List<string> Subjects { get; } = [];
}
@@ -3,7 +3,7 @@ using System;
using System.Diagnostics; using System.Diagnostics;
#endregion #endregion
namespace Lumina.Plugins.Calibre.Common.Models.DTO.Opf; namespace Nemera.Plugins.Calibre.Common.Models.DTO.Opf;
/// <summary> /// <summary>
/// Data transfer object for an identifier of a book read from an OPF file, with its scheme. /// Data transfer object for an identifier of a book read from an OPF file, with its scheme.
Loaded 100 of 8781 files, more files were not shown because too many files have changed in this diff. Show more