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
LocalFileoption inRhesisConfig - Updated
RhesisSettingsUI:- New file picker button for selecting a local text file
- Automatically hides irrelevant fields (author, source) when using local file mode
- Updated logic in
RhesisHandlerto read and parse local file content - Added
RhesisDataSource.Localenum value
Usage
- Open Rhesis settings in ExtraIsland.
- Select Local file as the data source.
- Choose a UTF-8 text file with one quote per line.
- The component will randomly display quotes from the file.
Screenshot
Notes
- Tested on
v1branch 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.)
