Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces backend support for caching and serving LabyMod server manifest metadata (notably YouTube trailer IDs) and removes the redundant manifest-fetching logic from the frontend. The frontend now consumes this data directly from the backend, simplifying the client code and improving performance.
Backend: LabyMod Manifest Caching and Fetching
laby_manifest_cache(with TTL) toAppStateand initialized it inmain.rsto store per-server manifest metadata, such as YouTube trailer IDs. [1] [2]laby.rsto:yt_trailerfield.refresh_laby_manifests. [1] [2] [3]construct_laby_infoto include theyt_trailerfield from the cache in the API response. [1] [2]Frontend: Manifest Data Consumption and Code Simplification
yt_trailerandsupported_languagesdirectly viaclient_infos.laby. [1] [2] [3] [4] [5] [6] [7] [8]ServerSidebarto use the new backend-provided fields, removing the need for a separatelabyManifestprop and related logic. [1] [2] [3] [4] [5] [6]Routing Cleanup
/api/laby/manifestroute from the frontend routing configuration.Testing
These changes centralize manifest data handling on the backend, reduce client complexity, and improve performance and security by validating manifest sources and caching results.