feat: add WebView support for extension (#1359)

This commit is contained in:
Levi authored and GitHub committed 2026-04-24 22:16:33 +08:00
1 parent a205c0b8d7
commit def54f8998
92 files changed
+10248 -2676

No files matched your search

@@ -49,7 +49,7 @@ Map<String, dynamic> _$CreateTaskBatchItemToJson(CreateTaskBatchItem instance) {
}
}
writeNotNull('req', instance.req);
writeNotNull('opts', instance.opts);
writeNotNull('req', instance.req?.toJson());
writeNotNull('opts', instance.opts?.toJson());
return val;
}
+2
View File
@@ -4,6 +4,7 @@ part 'request.g.dart';
@JsonSerializable(explicitToJson: true)
class Request {
String? rawUrl;
String url;
Object? extra;
Map<String, String>? labels;
@@ -11,6 +12,7 @@ class Request {
bool skipVerifyCert;
Request({
this.rawUrl,
required this.url,
this.extra,
this.labels,
+2
View File
@@ -7,6 +7,7 @@ part of 'request.dart';
// **************************************************************************
Request _$RequestFromJson(Map<String, dynamic> json) => Request(
rawUrl: json['rawUrl'] as String?,
url: json['url'] as String,
extra: json['extra'],
labels: (json['labels'] as Map<String, dynamic>?)?.map(
@@ -20,6 +21,7 @@ Request _$RequestFromJson(Map<String, dynamic> json) => Request(
Map<String, dynamic> _$RequestToJson(Request instance) {
final val = <String, dynamic>{
'rawUrl': instance.rawUrl,
'url': instance.url,
};
+1 -1
View File
@@ -6,7 +6,7 @@ part 'task.g.dart';
enum Status { ready, running, pause, wait, error, done }
enum Protocol { http, bt, ed2k }
enum Protocol { http, bt, ed2k, gblob }
// ExtractStatus enum matching Go backend
enum ExtractStatus {
+1
View File
@@ -52,6 +52,7 @@ const _$ProtocolEnumMap = {
Protocol.http: 'http',
Protocol.bt: 'bt',
Protocol.ed2k: 'ed2k',
Protocol.gblob: 'gblob',
};
Progress _$ProgressFromJson(Map<String, dynamic> json) => Progress(