TF-761 Remove code not use
This commit is contained in:
@@ -35,30 +35,4 @@ extension HtmlExtension on String {
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
String generateImageBase64(
|
||||
String cid,
|
||||
String extension,
|
||||
String fileName, {
|
||||
double? maxWithEditor
|
||||
}) {
|
||||
var newExtension = extension;
|
||||
if (newExtension == 'svg') {
|
||||
newExtension = 'svg+xml';
|
||||
}
|
||||
var base64Data = this;
|
||||
if (!base64Data.endsWith('==')) {
|
||||
base64Data.append('==');
|
||||
}
|
||||
var newFileName = fileName;
|
||||
if (newFileName.contains('.')) {
|
||||
newFileName = newFileName.split('.').first;
|
||||
}
|
||||
final style = maxWithEditor != null && maxWithEditor > 0
|
||||
? 'style="max-width: ${maxWithEditor}px;"'
|
||||
: '';
|
||||
final src = 'data:image/$newExtension;base64,$base64Data';
|
||||
|
||||
return '<img src="$src" alt="$newFileName" id="$cid" $style />';
|
||||
}
|
||||
}
|
||||
@@ -68,7 +68,6 @@ export 'oidc/token_id.dart';
|
||||
export 'oidc/token_oidc.dart';
|
||||
// Upload
|
||||
export 'upload/file_info.dart';
|
||||
export 'upload/upload_request.dart';
|
||||
export 'upload/upload_response.dart';
|
||||
// User
|
||||
export 'user/user_profile.dart';
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||
import 'package:model/model.dart';
|
||||
|
||||
class UploadRequest with EquatableMixin {
|
||||
|
||||
final Uri uploadUrl;
|
||||
final FileInfo fileInfo;
|
||||
final AccountId accountId;
|
||||
|
||||
UploadRequest(this.uploadUrl, this.accountId, this.fileInfo);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [uploadUrl, accountId, fileInfo];
|
||||
}
|
||||
Reference in New Issue
Block a user