Release Lunaris 2.0.1 polish update

This commit is contained in:
2026-05-26 18:47:07 +03:00
parent f65efe7cf7
commit af62ddf0da
37 changed files with 2607 additions and 143 deletions
+38
View File
@@ -11,6 +11,7 @@ import '../../backend/models/provider_diagnostics.dart';
import '../../backend/models/provider_health.dart';
import '../../backend/models/search_history.dart';
import '../../backend/models/viewed_post.dart';
import '../../backend/models/downloaded_media.dart';
part 'app_database.g.dart';
@@ -33,6 +34,7 @@ class AppDatabase {
AppSettingEntitySchema,
ViewedPostEntitySchema,
ProviderDiagnosticsEntitySchema,
DownloadedMediaEntitySchema,
],
directory: dir,
name: 'gel_rule_app',
@@ -333,3 +335,39 @@ class ProviderDiagnosticsEntity {
..lastErrorMessage = model.lastErrorMessage;
}
}
@collection
class DownloadedMediaEntity {
Id isarId = Isar.autoIncrement;
@Index(unique: true, replace: true)
late String cacheKey;
@Index(composite: [CompositeIndex('postId')])
late String providerId;
late String postId;
late String savedPath;
late String fileName;
late DateTime downloadedAt;
late String status;
DownloadedMedia toModel() => DownloadedMedia(
cacheKey: cacheKey,
providerId: providerId,
postId: postId,
savedPath: savedPath,
fileName: fileName,
downloadedAt: downloadedAt,
status: status,
);
static DownloadedMediaEntity fromModel(DownloadedMedia model) {
return DownloadedMediaEntity()
..cacheKey = model.cacheKey
..providerId = model.providerId
..postId = model.postId
..savedPath = model.savedPath
..fileName = model.fileName
..downloadedAt = model.downloadedAt
..status = model.status;
}
}
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -40,7 +40,7 @@ class DioClient {
receiveTimeout: timeout,
sendTimeout: timeout,
headers: {
'User-Agent': 'Lunaris/2.0 Flutter local booru browser',
'User-Agent': 'Lunaris/2.0.1 Flutter local booru browser',
'Accept': 'application/json, text/xml;q=0.9, */*;q=0.8',
...?headers,
},