| 12 | using json = nlohmann::json; |
| 13 | |
| 14 | std::vector<ImageSource> DefaultSources() { |
| 15 | return { |
| 16 | {"China Mainland", "https://tenbox.ai/api/images.json"}, |
| 17 | }; |
| 18 | } |
| 19 | |
| 20 | std::vector<ImageSource> ParseSources(const std::string& json_str) { |
| 21 | std::vector<ImageSource> result; |