Draft:reverted: feat: add local file support for Rhesis

Summary

This MR adds local file support for the Rhesis component, allowing quotes to be loaded from a user-provided text file instead of the online API.

Changes

  • Added LocalFile option in RhesisConfig
  • Updated RhesisSettings UI:
    • New file picker button for selecting a local text file
    • Automatically hides irrelevant fields (author, source) when using local file mode
  • Updated logic in RhesisHandler to read and parse local file content
  • Added RhesisDataSource.Local enum value

Usage

  1. Open Rhesis settings in ExtraIsland.
  2. Select Local file as the data source.
  3. Choose a UTF-8 text file with one quote per line.
  4. The component will randomly display quotes from the file.

Screenshot

image.png

Notes

  • Tested on v1 branch of ExtraIsland
  • Backwards compatible: existing API-based functionality remains unchanged
  • Artifact: EI.cipx (Because of the issue with my GitLab account, its CI build has not started.)

Merge request reports

Loading