opt `FollowingsFollowedUpper` url

Closes #1061
Closes #1062

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-21 14:07:18 +08:00
parent b6ce93cbd2
commit ba14e56ceb
7 changed files with 37 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ import 'package:path_provider/path_provider.dart';
class GStorage {
static late final Box<UserInfoData> userInfo;
static late final Box<List<String>> historyWord;
static late final Box<dynamic> historyWord;
static late final Box<dynamic> localCache;
static late final Box<dynamic> setting;
static late final Box<dynamic> video;
@@ -41,7 +41,7 @@ class GStorage {
// 设置
setting = await Hive.openBox('setting');
// 搜索历史
historyWord = await Hive.openBox<List<String>>(
historyWord = await Hive.openBox(
'historyWord',
compactionStrategy: (int entries, int deletedEntries) {
return deletedEntries > 10;
@@ -63,11 +63,12 @@ class GStorage {
static Future<void> importAllSettings(String data) =>
importAllJsonSettings(jsonDecode(data));
static Future<void> importAllJsonSettings(Map<String, dynamic> map) async {
static Future<bool> importAllJsonSettings(Map<String, dynamic> map) async {
await setting.clear();
await video.clear();
await setting.putAll(map[setting.name]);
await video.putAll(map[video.name]);
return true;
}
static void regAdapter() {