Rename all OPDS-prefixed models to generic names (Server, Feed, Entry, Link, StreamLink), expand the ServerSoftware interface to cover all server interactions, and implement a full Kavita REST API client that replaces the OPDS delegation. - Rename OPDS* models to generic names across ~60 files - Add database migrations 13 (opds_id → entry_id) and 14 (unify credentials) - Create OPDSServerSoftware wrapping existing OPDS services - Create KavitaApiClient for direct Kavita REST API calls - Create KavitaFeedMapper to convert Kavita JSON to Feed/Entry models - Rewrite KavitaServerSoftware to use native API (no OPDS delegation) - Unify server credentials (remove softwareUsername/softwarePassword) - Simplify add/edit server UI to single auth section - Add test connection button to server add/edit screens - Add progress indicator to PublicationCard using local and server data - Eliminate softwareType branching in reader screens - Add EntryProgress and fetchEntryProgress to ServerSoftware interface - Fix Entry.acquisitionLink crash on empty links - Add 59 new tests covering models, services, and providers
38 lines
1.4 KiB
Dart
38 lines
1.4 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'server.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$ServerImpl _$$ServerImplFromJson(Map<String, dynamic> json) => _$ServerImpl(
|
|
id: json['id'] as String,
|
|
name: json['name'] as String,
|
|
url: json['url'] as String,
|
|
username: json['username'] as String?,
|
|
password: json['password'] as String?,
|
|
createdAt: DateTime.parse(json['createdAt'] as String),
|
|
lastSyncedAt: json['lastSyncedAt'] == null
|
|
? null
|
|
: DateTime.parse(json['lastSyncedAt'] as String),
|
|
softwareType: $enumDecodeNullable(
|
|
_$ServerSoftwareTypeEnumMap, json['softwareType']),
|
|
);
|
|
|
|
Map<String, dynamic> _$$ServerImplToJson(_$ServerImpl instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'name': instance.name,
|
|
'url': instance.url,
|
|
'username': instance.username,
|
|
'password': instance.password,
|
|
'createdAt': instance.createdAt.toIso8601String(),
|
|
'lastSyncedAt': instance.lastSyncedAt?.toIso8601String(),
|
|
'softwareType': _$ServerSoftwareTypeEnumMap[instance.softwareType],
|
|
};
|
|
|
|
const _$ServerSoftwareTypeEnumMap = {
|
|
ServerSoftwareType.generic: 'generic',
|
|
ServerSoftwareType.kavita: 'kavita',
|
|
};
|