TF-78 Implement mark as unread when touch the "eye slash" icon on the top of screen EmailView
This commit is contained in:
@@ -13,6 +13,10 @@ abstract class BaseController extends GetxController {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void dispatchState(Either<Failure, Success> newState) {
|
||||||
|
viewState.value = newState;
|
||||||
|
}
|
||||||
|
|
||||||
void getState(Future<Either<Failure, Success>> newStateStream) async {
|
void getState(Future<Either<Failure, Success>> newStateStream) async {
|
||||||
final state = await newStateStream;
|
final state = await newStateStream;
|
||||||
state.fold(
|
state.fold(
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||||
|
import 'package:model/email/read_actions.dart';
|
||||||
import 'package:tmail_ui_user/features/composer/domain/model/email_request.dart';
|
import 'package:tmail_ui_user/features/composer/domain/model/email_request.dart';
|
||||||
|
|
||||||
abstract class EmailDataSource {
|
abstract class EmailDataSource {
|
||||||
@@ -7,5 +8,5 @@ abstract class EmailDataSource {
|
|||||||
|
|
||||||
Future<bool> sendEmail(AccountId accountId, EmailRequest emailRequest);
|
Future<bool> sendEmail(AccountId accountId, EmailRequest emailRequest);
|
||||||
|
|
||||||
Future<bool> markAsRead(AccountId accountId, EmailId emailId, bool unread);
|
Future<bool> markAsRead(AccountId accountId, EmailId emailId, ReadActions readActions);
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||||
|
import 'package:model/email/read_actions.dart';
|
||||||
import 'package:tmail_ui_user/features/composer/domain/model/email_request.dart';
|
import 'package:tmail_ui_user/features/composer/domain/model/email_request.dart';
|
||||||
import 'package:tmail_ui_user/features/email/data/datasource/email_datasource.dart';
|
import 'package:tmail_ui_user/features/email/data/datasource/email_datasource.dart';
|
||||||
import 'package:tmail_ui_user/features/email/data/network/email_api.dart';
|
import 'package:tmail_ui_user/features/email/data/network/email_api.dart';
|
||||||
@@ -29,9 +30,9 @@ class EmailDataSourceImpl extends EmailDataSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<bool> markAsRead(AccountId accountId, EmailId emailId, bool unread) {
|
Future<bool> markAsRead(AccountId accountId, EmailId emailId, ReadActions readActions) {
|
||||||
return Future.sync(() async {
|
return Future.sync(() async {
|
||||||
return await emailAPI.markAsRead(accountId, emailId, unread);
|
return await emailAPI.markAsRead(accountId, emailId, readActions);
|
||||||
}).catchError((error) {
|
}).catchError((error) {
|
||||||
throw error;
|
throw error;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -105,12 +105,10 @@ class EmailAPI {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<bool> markAsRead(AccountId accountId, EmailId emailId, bool unread) async {
|
Future<bool> markAsRead(AccountId accountId, EmailId emailId, ReadActions readAction) async {
|
||||||
final setEmailMethod = SetEmailMethod(accountId)
|
final setEmailMethod = SetEmailMethod(accountId)
|
||||||
..addUpdates({
|
..addUpdates({
|
||||||
emailId.id: PatchObject({
|
emailId.id: KeyWordIdentifier.emailSeen.generateReadActionPath(readAction)
|
||||||
KeyWordIdentifier.emailSeen.generatePath() : unread ? null : true
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
|
|
||||||
final requestBuilder = JmapRequestBuilder(httpClient, ProcessingInvocation());
|
final requestBuilder = JmapRequestBuilder(httpClient, ProcessingInvocation());
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||||
|
import 'package:model/email/read_actions.dart';
|
||||||
import 'package:tmail_ui_user/features/composer/domain/model/email_request.dart';
|
import 'package:tmail_ui_user/features/composer/domain/model/email_request.dart';
|
||||||
import 'package:tmail_ui_user/features/email/data/datasource/email_datasource.dart';
|
import 'package:tmail_ui_user/features/email/data/datasource/email_datasource.dart';
|
||||||
import 'package:tmail_ui_user/features/email/domain/repository/email_repository.dart';
|
import 'package:tmail_ui_user/features/email/domain/repository/email_repository.dart';
|
||||||
@@ -22,7 +23,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<bool> markAsRead(AccountId accountId, EmailId emailId, bool unread) {
|
Future<bool> markAsRead(AccountId accountId, EmailId emailId, ReadActions readAction) {
|
||||||
return emailDataSource.markAsRead(accountId, emailId, unread);
|
return emailDataSource.markAsRead(accountId, emailId, readAction);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||||
|
import 'package:model/email/read_actions.dart';
|
||||||
import 'package:tmail_ui_user/features/composer/domain/model/email_request.dart';
|
import 'package:tmail_ui_user/features/composer/domain/model/email_request.dart';
|
||||||
|
|
||||||
abstract class EmailRepository {
|
abstract class EmailRepository {
|
||||||
@@ -7,5 +8,5 @@ abstract class EmailRepository {
|
|||||||
|
|
||||||
Future<bool> sendEmail(AccountId accountId, EmailRequest emailRequest);
|
Future<bool> sendEmail(AccountId accountId, EmailRequest emailRequest);
|
||||||
|
|
||||||
Future<bool> markAsRead(AccountId accountId, EmailId emailId, bool unread);
|
Future<bool> markAsRead(AccountId accountId, EmailId emailId, ReadActions readAction);
|
||||||
}
|
}
|
||||||
@@ -1,20 +1,23 @@
|
|||||||
import 'package:core/core.dart';
|
import 'package:core/core.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||||
|
import 'package:model/email/read_actions.dart';
|
||||||
|
|
||||||
class MarkAsEmailReadSuccess extends UIState {
|
class MarkAsEmailReadSuccess extends UIState {
|
||||||
final EmailId emailId;
|
final EmailId emailId;
|
||||||
|
final ReadActions readActions;
|
||||||
|
|
||||||
MarkAsEmailReadSuccess(this.emailId);
|
MarkAsEmailReadSuccess(this.emailId, this.readActions);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
List<Object?> get props => [];
|
List<Object?> get props => [emailId, readActions];
|
||||||
}
|
}
|
||||||
|
|
||||||
class MarkAsEmailReadFailure extends FeatureFailure {
|
class MarkAsEmailReadFailure extends FeatureFailure {
|
||||||
final exception;
|
final exception;
|
||||||
|
final ReadActions readActions;
|
||||||
|
|
||||||
MarkAsEmailReadFailure(this.exception);
|
MarkAsEmailReadFailure(this.exception, this.readActions);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
List<Object> get props => [exception];
|
List<Object> get props => [exception, readActions];
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,7 @@ import 'package:core/core.dart';
|
|||||||
import 'package:dartz/dartz.dart';
|
import 'package:dartz/dartz.dart';
|
||||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||||
|
import 'package:model/email/read_actions.dart';
|
||||||
import 'package:tmail_ui_user/features/email/domain/repository/email_repository.dart';
|
import 'package:tmail_ui_user/features/email/domain/repository/email_repository.dart';
|
||||||
import 'package:tmail_ui_user/features/email/domain/state/mark_as_email_read_state.dart';
|
import 'package:tmail_ui_user/features/email/domain/state/mark_as_email_read_state.dart';
|
||||||
|
|
||||||
@@ -10,12 +11,12 @@ class MarkAsEmailReadInteractor {
|
|||||||
|
|
||||||
MarkAsEmailReadInteractor(this.emailRepository);
|
MarkAsEmailReadInteractor(this.emailRepository);
|
||||||
|
|
||||||
Future<Either<Failure, Success>> execute(AccountId accountId, EmailId emailId, bool unread) async {
|
Stream<Either<Failure, Success>> execute(AccountId accountId, EmailId emailId, ReadActions readAction) async* {
|
||||||
try {
|
try {
|
||||||
final result = await emailRepository.markAsRead(accountId, emailId, unread);
|
final result = await emailRepository.markAsRead(accountId, emailId, readAction);
|
||||||
return result ? Right(MarkAsEmailReadSuccess(emailId)) : Left(MarkAsEmailReadFailure(null));
|
yield result ? Right(MarkAsEmailReadSuccess(emailId, readAction)) : Left(MarkAsEmailReadFailure(null, readAction));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return Left(MarkAsEmailReadFailure(e));
|
yield Left(MarkAsEmailReadFailure(e, readAction));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
import 'package:core/core.dart';
|
import 'package:core/core.dart';
|
||||||
import 'package:dartz/dartz.dart';
|
import 'package:dartz/dartz.dart';
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter/widgets.dart';
|
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||||
@@ -13,8 +11,6 @@ import 'package:tmail_ui_user/features/email/domain/usecases/get_email_content_i
|
|||||||
import 'package:tmail_ui_user/features/email/domain/usecases/mark_as_email_read_interactor.dart';
|
import 'package:tmail_ui_user/features/email/domain/usecases/mark_as_email_read_interactor.dart';
|
||||||
import 'package:tmail_ui_user/features/email/presentation/model/composer_arguments.dart';
|
import 'package:tmail_ui_user/features/email/presentation/model/composer_arguments.dart';
|
||||||
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/mailbox_dashboard_controller.dart';
|
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/mailbox_dashboard_controller.dart';
|
||||||
import 'package:tmail_ui_user/main/actions/app_action.dart';
|
|
||||||
import 'package:tmail_ui_user/main/actions/email_action.dart';
|
|
||||||
import 'package:tmail_ui_user/main/routes/app_routes.dart';
|
import 'package:tmail_ui_user/main/routes/app_routes.dart';
|
||||||
import 'package:tmail_ui_user/main/routes/route_navigation.dart';
|
import 'package:tmail_ui_user/main/routes/route_navigation.dart';
|
||||||
|
|
||||||
@@ -28,7 +24,6 @@ class EmailController extends BaseController {
|
|||||||
|
|
||||||
final emailAddressExpandMode = ExpandMode.COLLAPSE.obs;
|
final emailAddressExpandMode = ExpandMode.COLLAPSE.obs;
|
||||||
EmailContent? emailContent;
|
EmailContent? emailContent;
|
||||||
AppAction? emailActionCurrent;
|
|
||||||
|
|
||||||
EmailController(this._getEmailContentInteractor, this._markAsEmailReadInteractor);
|
EmailController(this._getEmailContentInteractor, this._markAsEmailReadInteractor);
|
||||||
|
|
||||||
@@ -37,12 +32,11 @@ class EmailController extends BaseController {
|
|||||||
super.onReady();
|
super.onReady();
|
||||||
mailboxDashBoardController.selectedEmail.listen((presentationEmail) {
|
mailboxDashBoardController.selectedEmail.listen((presentationEmail) {
|
||||||
toggleDisplayEmailAddressAction(expandMode: ExpandMode.COLLAPSE);
|
toggleDisplayEmailAddressAction(expandMode: ExpandMode.COLLAPSE);
|
||||||
emailActionCurrent = null;
|
|
||||||
final accountId = mailboxDashBoardController.accountId.value;
|
final accountId = mailboxDashBoardController.accountId.value;
|
||||||
if (accountId != null && presentationEmail != null) {
|
if (accountId != null && presentationEmail != null) {
|
||||||
_getEmailContentAction(accountId, presentationEmail.id);
|
_getEmailContentAction(accountId, presentationEmail.id);
|
||||||
if (presentationEmail.isUnReadEmail()) {
|
if (presentationEmail.isUnReadEmail()) {
|
||||||
markAsEmailRead(unread: false);
|
markAsEmailRead(presentationEmail, ReadActions.markAsRead);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -65,11 +59,19 @@ class EmailController extends BaseController {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void onDone() {
|
void onDone() {
|
||||||
viewState.value.map((success) {
|
viewState.value.fold(
|
||||||
if (success is GetEmailContentSuccess) {
|
(failure) {
|
||||||
emailContent = success.emailContent;
|
if (failure is MarkAsEmailReadFailure) {
|
||||||
}
|
_markAsEmailReadFailure(failure);
|
||||||
});
|
}
|
||||||
|
},
|
||||||
|
(success) {
|
||||||
|
if (success is GetEmailContentSuccess) {
|
||||||
|
emailContent = success.emailContent;
|
||||||
|
} else if (success is MarkAsEmailReadSuccess) {
|
||||||
|
_markAsEmailReadSuccess(success);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -80,36 +82,33 @@ class EmailController extends BaseController {
|
|||||||
emailAddressExpandMode.value = expandMode;
|
emailAddressExpandMode.value = expandMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
void markAsEmailRead({required bool unread}) async {
|
void markAsEmailRead(PresentationEmail presentationEmail, ReadActions readActions) async {
|
||||||
final accountId = mailboxDashBoardController.accountId.value;
|
final accountId = mailboxDashBoardController.accountId.value;
|
||||||
final presentationEmail = mailboxDashBoardController.selectedEmail.value;
|
|
||||||
final mailboxCurrent = mailboxDashBoardController.selectedMailbox.value;
|
final mailboxCurrent = mailboxDashBoardController.selectedMailbox.value;
|
||||||
if (accountId != null && presentationEmail != null && mailboxCurrent != null) {
|
if (accountId != null && mailboxCurrent != null) {
|
||||||
_markAsEmailReadInteractor.execute(accountId, presentationEmail.id, unread)
|
consumeState(_markAsEmailReadInteractor.execute(accountId, presentationEmail.id, readActions));
|
||||||
.then((result) => result
|
|
||||||
.map((success) {
|
|
||||||
if (success is MarkAsEmailReadSuccess) {
|
|
||||||
emailActionCurrent = MarkAsEmailReadAction(presentationEmail.id, mailboxCurrent);
|
|
||||||
_updateMailboxDashBoardActionForDesktop(emailActionCurrent);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void _updateMailboxDashBoardActionForDesktop(AppAction? appAction) {
|
void _markAsEmailReadSuccess(Success success) {
|
||||||
if (Get.context != null && responsiveUtils.isDesktop(Get.context!)) {
|
mailboxDashBoardController.dispatchState(Right(success));
|
||||||
mailboxDashBoardController.setMailboxDashBoardAction(appAction);
|
|
||||||
|
if (success is MarkAsEmailReadSuccess && success.readActions == ReadActions.markAsUnread) {
|
||||||
|
backToThreadView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _markAsEmailReadFailure(Failure failure) {
|
||||||
|
backToThreadView();
|
||||||
|
}
|
||||||
|
|
||||||
bool canComposeEmail() => mailboxDashBoardController.sessionCurrent != null
|
bool canComposeEmail() => mailboxDashBoardController.sessionCurrent != null
|
||||||
&& mailboxDashBoardController.userProfile.value != null
|
&& mailboxDashBoardController.userProfile.value != null
|
||||||
&& mailboxDashBoardController.mapMailboxId.containsKey(PresentationMailbox.roleOutbox)
|
&& mailboxDashBoardController.mapMailboxId.containsKey(PresentationMailbox.roleOutbox)
|
||||||
&& mailboxDashBoardController.selectedEmail.value != null;
|
&& mailboxDashBoardController.selectedEmail.value != null;
|
||||||
|
|
||||||
void goToThreadView(BuildContext context) {
|
void backToThreadView() {
|
||||||
popBack(result: emailActionCurrent);
|
popBack();
|
||||||
}
|
}
|
||||||
|
|
||||||
void pressEmailAction(EmailActionType emailActionType) {
|
void pressEmailAction(EmailActionType emailActionType) {
|
||||||
|
|||||||
@@ -22,40 +22,37 @@ class EmailView extends GetWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return WillPopScope(
|
return Scaffold(
|
||||||
child: Scaffold(
|
resizeToAvoidBottomInset: false,
|
||||||
resizeToAvoidBottomInset: false,
|
backgroundColor: AppColor.primaryLightColor,
|
||||||
backgroundColor: AppColor.primaryLightColor,
|
body: SafeArea(
|
||||||
body: SafeArea(
|
right: false,
|
||||||
right: false,
|
left: false,
|
||||||
left: false,
|
child: Container(
|
||||||
child: Container(
|
alignment: Alignment.center,
|
||||||
alignment: Alignment.center,
|
child: Column(
|
||||||
child: Column(
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
children: [
|
||||||
children: [
|
_buildAppBar(context),
|
||||||
_buildAppBar(context),
|
Expanded(child: _buildEmailContent(context)),
|
||||||
Expanded(child: _buildEmailContent(context)),
|
_buildBottomBar(context),
|
||||||
_buildBottomBar(context),
|
])
|
||||||
])
|
)
|
||||||
)
|
));
|
||||||
)),
|
|
||||||
onWillPop: () async {
|
|
||||||
emailController.goToThreadView(context);
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildAppBar(BuildContext context) {
|
Widget _buildAppBar(BuildContext context) {
|
||||||
return Obx(() => Padding(
|
return Obx(() => Padding(
|
||||||
padding: EdgeInsets.only(left: 6, top: 6, right: 6, bottom: 6),
|
padding: EdgeInsets.only(left: 6, top: 6, right: 6, bottom: 6),
|
||||||
child: AppBarMailWidgetBuilder(
|
child: (AppBarMailWidgetBuilder(
|
||||||
context,
|
context,
|
||||||
imagePaths,
|
imagePaths,
|
||||||
responsiveUtils,
|
responsiveUtils,
|
||||||
emailController.mailboxDashBoardController.selectedEmail.value)
|
emailController.mailboxDashBoardController.selectedEmail.value)
|
||||||
.onBackActionClick(() => emailController.goToThreadView(context))
|
..onBackActionClick(() => emailController.backToThreadView())
|
||||||
|
..onUnreadEmailActionClick((presentationEmail) =>
|
||||||
|
emailController.markAsEmailRead(presentationEmail, ReadActions.markAsUnread)))
|
||||||
.build()));
|
.build()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,11 @@ import 'package:model/model.dart';
|
|||||||
import 'package:tmail_ui_user/main/routes/app_routes.dart';
|
import 'package:tmail_ui_user/main/routes/app_routes.dart';
|
||||||
|
|
||||||
typedef OnBackActionClick = void Function();
|
typedef OnBackActionClick = void Function();
|
||||||
|
typedef OnUnreadEmailActionClick = void Function(PresentationEmail presentationEmail);
|
||||||
|
|
||||||
class AppBarMailWidgetBuilder {
|
class AppBarMailWidgetBuilder {
|
||||||
OnBackActionClick? _onBackActionClick;
|
OnBackActionClick? _onBackActionClick;
|
||||||
|
OnUnreadEmailActionClick? _onUnreadEmailActionClick;
|
||||||
|
|
||||||
final BuildContext _context;
|
final BuildContext _context;
|
||||||
final ImagePaths _imagePaths;
|
final ImagePaths _imagePaths;
|
||||||
@@ -23,10 +25,12 @@ class AppBarMailWidgetBuilder {
|
|||||||
this._presentationEmail,
|
this._presentationEmail,
|
||||||
);
|
);
|
||||||
|
|
||||||
AppBarMailWidgetBuilder onBackActionClick(
|
void onBackActionClick(OnBackActionClick onBackActionClick) {
|
||||||
OnBackActionClick onBackActionClick) {
|
|
||||||
_onBackActionClick = onBackActionClick;
|
_onBackActionClick = onBackActionClick;
|
||||||
return this;
|
}
|
||||||
|
|
||||||
|
void onUnreadEmailActionClick(OnUnreadEmailActionClick onUnreadEmailActionClick) {
|
||||||
|
_onUnreadEmailActionClick = onUnreadEmailActionClick;
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget build() {
|
Widget build() {
|
||||||
@@ -68,17 +72,23 @@ class AppBarMailWidgetBuilder {
|
|||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
ButtonBuilder(_imagePaths.icTrash).key(Key('button_delete_message')).build(),
|
ButtonBuilder(_imagePaths.icTrash).key(Key('button_move_to_trash_email')).build(),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
ButtonBuilder(_imagePaths.icEyeDisable).key(Key('button_hide_message')).build(),
|
ButtonBuilder(_imagePaths.icEyeDisable)
|
||||||
|
.key(Key('button_mark_as_unread_email'))
|
||||||
|
.onPressActionClick(() {
|
||||||
|
if (_onUnreadEmailActionClick != null && _presentationEmail != null && _presentationEmail!.isReadEmail()) {
|
||||||
|
_onUnreadEmailActionClick!(_presentationEmail!);
|
||||||
|
}})
|
||||||
|
.build(),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
ButtonBuilder((_presentationEmail != null && _presentationEmail!.isFlaggedEmail())
|
ButtonBuilder((_presentationEmail != null && _presentationEmail!.isFlaggedEmail())
|
||||||
? _imagePaths.icFlagged
|
? _imagePaths.icFlagged
|
||||||
: _imagePaths.icFlag)
|
: _imagePaths.icFlag)
|
||||||
.key(Key('button_favorite_message'))
|
.key(Key('button_mark_as_flag_email'))
|
||||||
.build(),
|
.build(),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
ButtonBuilder(_imagePaths.icFolder).key(Key('button_add_folder_message')).build(),
|
ButtonBuilder(_imagePaths.icFolder).key(Key('button_move_to_mailbox_email')).build(),
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import 'package:flutter/cupertino.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||||
import 'package:jmap_dart_client/jmap/core/unsigned_int.dart';
|
|
||||||
import 'package:model/model.dart';
|
import 'package:model/model.dart';
|
||||||
import 'package:tmail_ui_user/features/base/base_controller.dart';
|
import 'package:tmail_ui_user/features/base/base_controller.dart';
|
||||||
|
import 'package:tmail_ui_user/features/email/domain/state/mark_as_email_read_state.dart';
|
||||||
import 'package:tmail_ui_user/features/login/domain/usecases/delete_credential_interactor.dart';
|
import 'package:tmail_ui_user/features/login/domain/usecases/delete_credential_interactor.dart';
|
||||||
import 'package:tmail_ui_user/features/mailbox/domain/state/get_all_mailboxes_state.dart';
|
import 'package:tmail_ui_user/features/mailbox/domain/state/get_all_mailboxes_state.dart';
|
||||||
import 'package:tmail_ui_user/features/mailbox/domain/usecases/get_all_mailbox_interactor.dart';
|
import 'package:tmail_ui_user/features/mailbox/domain/usecases/get_all_mailbox_interactor.dart';
|
||||||
@@ -14,7 +14,7 @@ import 'package:tmail_ui_user/features/mailbox/presentation/model/mailbox_node.d
|
|||||||
import 'package:tmail_ui_user/features/mailbox/presentation/model/mailbox_tree.dart';
|
import 'package:tmail_ui_user/features/mailbox/presentation/model/mailbox_tree.dart';
|
||||||
import 'package:tmail_ui_user/features/mailbox/presentation/model/mailbox_tree_builder.dart';
|
import 'package:tmail_ui_user/features/mailbox/presentation/model/mailbox_tree_builder.dart';
|
||||||
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/mailbox_dashboard_controller.dart';
|
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/mailbox_dashboard_controller.dart';
|
||||||
import 'package:tmail_ui_user/main/actions/email_action.dart';
|
import 'package:tmail_ui_user/features/thread/domain/state/mark_as_multiple_email_read_state.dart';
|
||||||
import 'package:tmail_ui_user/main/routes/app_routes.dart';
|
import 'package:tmail_ui_user/main/routes/app_routes.dart';
|
||||||
|
|
||||||
class MailboxController extends BaseController {
|
class MailboxController extends BaseController {
|
||||||
@@ -44,12 +44,14 @@ class MailboxController extends BaseController {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
mailboxDashBoardController.mailboxDashBoardAction.listen((action) {
|
mailboxDashBoardController.viewState.listen((state) {
|
||||||
if (action is MarkAsEmailReadAction) {
|
state.map((success) {
|
||||||
_updateCountUnReadForMailbox(action.presentationMailbox, countUnreadChange: 1, isUnread: false);
|
if (success is MarkAsEmailReadSuccess ||
|
||||||
} else if (action is MarkAsMultipleEmailReadAndUnreadAction) {
|
success is MarkAsMultipleEmailReadAllSuccess ||
|
||||||
_updateCountUnReadForMailbox(action.presentationMailbox, countUnreadChange: action.listEmailId.length, isUnread: action.isUnread);
|
success is MarkAsMultipleEmailReadHasSomeEmailFailure) {
|
||||||
}
|
refreshGetAllMailboxAction();
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,7 +59,6 @@ class MailboxController extends BaseController {
|
|||||||
void dispose() {
|
void dispose() {
|
||||||
super.dispose();
|
super.dispose();
|
||||||
mailboxDashBoardController.accountId.close();
|
mailboxDashBoardController.accountId.close();
|
||||||
mailboxDashBoardController.mailboxDashBoardAction.close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void refreshGetAllMailboxAction() {
|
void refreshGetAllMailboxAction() {
|
||||||
@@ -134,34 +135,6 @@ class MailboxController extends BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void _updateCountUnReadForMailbox(
|
|
||||||
PresentationMailbox presentationMailbox,
|
|
||||||
{
|
|
||||||
required int countUnreadChange,
|
|
||||||
required bool isUnread
|
|
||||||
}
|
|
||||||
) {
|
|
||||||
if (presentationMailbox.hasRole()) {
|
|
||||||
final currentCountUnread = presentationMailbox.unreadEmails != null
|
|
||||||
? presentationMailbox.unreadEmails!.value.value
|
|
||||||
: 0;
|
|
||||||
num newCountUnread = 0;
|
|
||||||
if (isUnread) {
|
|
||||||
newCountUnread = currentCountUnread + countUnreadChange;
|
|
||||||
} else {
|
|
||||||
newCountUnread = currentCountUnread > countUnreadChange ? currentCountUnread - countUnreadChange : 0;
|
|
||||||
}
|
|
||||||
final newMailbox = presentationMailbox.toPresentationMailbox(countUnRead: UnsignedInt(newCountUnread));
|
|
||||||
final newDefaultMailboxList = defaultMailboxList
|
|
||||||
.map((mailbox) => mailbox.id == presentationMailbox.id
|
|
||||||
? mailbox.toPresentationMailbox(countUnRead: UnsignedInt(newCountUnread))
|
|
||||||
: mailbox)
|
|
||||||
.toList();
|
|
||||||
defaultMailboxList.value = newDefaultMailboxList;
|
|
||||||
mailboxDashBoardController.setNewFirstSelectedMailbox(newMailbox);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void _deleteCredential() async {
|
void _deleteCredential() async {
|
||||||
await _deleteCredentialInteractor.execute();
|
await _deleteCredentialInteractor.execute();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import 'package:tmail_ui_user/features/base/base_controller.dart';
|
|||||||
import 'package:tmail_ui_user/features/email/presentation/email_controller.dart';
|
import 'package:tmail_ui_user/features/email/presentation/email_controller.dart';
|
||||||
import 'package:tmail_ui_user/features/mailbox_dashboard/domain/state/get_user_profile_state.dart';
|
import 'package:tmail_ui_user/features/mailbox_dashboard/domain/state/get_user_profile_state.dart';
|
||||||
import 'package:tmail_ui_user/features/mailbox_dashboard/domain/usecases/get_user_profile_interactor.dart';
|
import 'package:tmail_ui_user/features/mailbox_dashboard/domain/usecases/get_user_profile_interactor.dart';
|
||||||
import 'package:tmail_ui_user/main/actions/app_action.dart';
|
|
||||||
|
|
||||||
class MailboxDashBoardController extends BaseController {
|
class MailboxDashBoardController extends BaseController {
|
||||||
|
|
||||||
@@ -20,7 +19,6 @@ class MailboxDashBoardController extends BaseController {
|
|||||||
final selectedEmail = Rxn<PresentationEmail>();
|
final selectedEmail = Rxn<PresentationEmail>();
|
||||||
final accountId = Rxn<AccountId>();
|
final accountId = Rxn<AccountId>();
|
||||||
final userProfile = Rxn<UserProfile>();
|
final userProfile = Rxn<UserProfile>();
|
||||||
final mailboxDashBoardAction = Rxn<AppAction>();
|
|
||||||
|
|
||||||
Session? sessionCurrent;
|
Session? sessionCurrent;
|
||||||
Map<Role, MailboxId> mapMailboxId = Map();
|
Map<Role, MailboxId> mapMailboxId = Map();
|
||||||
@@ -78,14 +76,6 @@ class MailboxDashBoardController extends BaseController {
|
|||||||
selectedEmail.value = newPresentationEmail;
|
selectedEmail.value = newPresentationEmail;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setMailboxDashBoardAction(AppAction? newAction) {
|
|
||||||
mailboxDashBoardAction.value = newAction;
|
|
||||||
}
|
|
||||||
|
|
||||||
void clearMailboxDashBoardAction() {
|
|
||||||
mailboxDashBoardAction.value = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
void clearSelectedEmail() {
|
void clearSelectedEmail() {
|
||||||
selectedEmail.value = null;
|
selectedEmail.value = null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,38 +1,43 @@
|
|||||||
import 'package:core/core.dart';
|
import 'package:core/core.dart';
|
||||||
import 'package:dartz/dartz.dart';
|
import 'package:dartz/dartz.dart';
|
||||||
|
import 'package:model/email/read_actions.dart';
|
||||||
|
|
||||||
class MarkAsMultipleEmailReadAllSuccess extends UIState {
|
class MarkAsMultipleEmailReadAllSuccess extends UIState {
|
||||||
final List<Either<Failure, Success>> resultList;
|
final List<Either<Failure, Success>> resultList;
|
||||||
|
final ReadActions readActions;
|
||||||
|
|
||||||
MarkAsMultipleEmailReadAllSuccess(this.resultList);
|
MarkAsMultipleEmailReadAllSuccess(this.resultList, this.readActions);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
List<Object?> get props => [resultList];
|
List<Object?> get props => [resultList, readActions];
|
||||||
}
|
}
|
||||||
|
|
||||||
class MarkAsMultipleEmailReadAllFailure extends FeatureFailure {
|
class MarkAsMultipleEmailReadAllFailure extends FeatureFailure {
|
||||||
final List<Either<Failure, Success>> resultList;
|
final List<Either<Failure, Success>> resultList;
|
||||||
|
final ReadActions readActions;
|
||||||
|
|
||||||
MarkAsMultipleEmailReadAllFailure(this.resultList);
|
MarkAsMultipleEmailReadAllFailure(this.resultList, this.readActions);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
List<Object> get props => [resultList];
|
List<Object> get props => [resultList, readActions];
|
||||||
}
|
}
|
||||||
|
|
||||||
class MarkAsMultipleEmailReadHasSomeEmailFailure extends UIState {
|
class MarkAsMultipleEmailReadHasSomeEmailFailure extends UIState {
|
||||||
final List<Either<Failure, Success>> resultList;
|
final List<Either<Failure, Success>> resultList;
|
||||||
|
final ReadActions readActions;
|
||||||
|
|
||||||
MarkAsMultipleEmailReadHasSomeEmailFailure(this.resultList);
|
MarkAsMultipleEmailReadHasSomeEmailFailure(this.resultList, this.readActions);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
List<Object> get props => [resultList];
|
List<Object> get props => [resultList, readActions];
|
||||||
}
|
}
|
||||||
|
|
||||||
class MarkAsMultipleEmailReadFailure extends FeatureFailure {
|
class MarkAsMultipleEmailReadFailure extends FeatureFailure {
|
||||||
final exception;
|
final exception;
|
||||||
|
final ReadActions readActions;
|
||||||
|
|
||||||
MarkAsMultipleEmailReadFailure(this.exception);
|
MarkAsMultipleEmailReadFailure(this.exception, this.readActions);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
List<Object> get props => [exception];
|
List<Object> get props => [exception, readActions];
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,7 @@ import 'package:core/core.dart';
|
|||||||
import 'package:dartz/dartz.dart';
|
import 'package:dartz/dartz.dart';
|
||||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||||
|
import 'package:model/email/read_actions.dart';
|
||||||
import 'package:tmail_ui_user/features/email/domain/usecases/mark_as_email_read_interactor.dart';
|
import 'package:tmail_ui_user/features/email/domain/usecases/mark_as_email_read_interactor.dart';
|
||||||
import 'package:tmail_ui_user/features/thread/domain/state/mark_as_multiple_email_read_state.dart';
|
import 'package:tmail_ui_user/features/thread/domain/state/mark_as_multiple_email_read_state.dart';
|
||||||
|
|
||||||
@@ -10,12 +11,18 @@ class MarkAsMultipleEmailReadInteractor {
|
|||||||
|
|
||||||
MarkAsMultipleEmailReadInteractor(this.markAsEmailReadInteractor);
|
MarkAsMultipleEmailReadInteractor(this.markAsEmailReadInteractor);
|
||||||
|
|
||||||
Future<Either<Failure, Success>> execute(AccountId accountId, List<EmailId> listEmailId, bool unread) async {
|
Stream<Either<Failure, Success>> execute(
|
||||||
|
AccountId accountId,
|
||||||
|
List<EmailId> listEmailId,
|
||||||
|
ReadActions readAction
|
||||||
|
) async* {
|
||||||
try {
|
try {
|
||||||
final listResult = await Future.wait(listEmailId.map((emailId) =>
|
final listResult = await Future.wait(listEmailId.map((emailId) async {
|
||||||
markAsEmailReadInteractor.execute(accountId, emailId, unread)));
|
final result = await markAsEmailReadInteractor.execute(accountId, emailId, readAction).toList();
|
||||||
|
return result.first;
|
||||||
|
}));
|
||||||
if (listResult.length == 1) {
|
if (listResult.length == 1) {
|
||||||
return listResult.first;
|
yield listResult.first;
|
||||||
} else {
|
} else {
|
||||||
var failedFileCount = 0;
|
var failedFileCount = 0;
|
||||||
listResult.forEach((element) {
|
listResult.forEach((element) {
|
||||||
@@ -24,14 +31,14 @@ class MarkAsMultipleEmailReadInteractor {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (failedFileCount == 0) {
|
if (failedFileCount == 0) {
|
||||||
return Right(MarkAsMultipleEmailReadAllSuccess(listResult));
|
yield Right(MarkAsMultipleEmailReadAllSuccess(listResult, readAction));
|
||||||
} else if (failedFileCount == listResult.length) {
|
} else if (failedFileCount == listResult.length) {
|
||||||
return Left(MarkAsMultipleEmailReadAllFailure(listResult));
|
yield Left(MarkAsMultipleEmailReadAllFailure(listResult, readAction));
|
||||||
}
|
}
|
||||||
return Right(MarkAsMultipleEmailReadHasSomeEmailFailure(listResult));
|
yield Right(MarkAsMultipleEmailReadHasSomeEmailFailure(listResult, readAction));
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return Left(MarkAsMultipleEmailReadFailure(e));
|
yield Left(MarkAsMultipleEmailReadFailure(e, readAction));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -26,8 +26,6 @@ import 'package:tmail_ui_user/features/thread/domain/usecases/get_emails_in_mail
|
|||||||
import 'package:tmail_ui_user/features/thread/domain/usecases/mark_as_multiple_email_read_interactor.dart';
|
import 'package:tmail_ui_user/features/thread/domain/usecases/mark_as_multiple_email_read_interactor.dart';
|
||||||
import 'package:tmail_ui_user/features/thread/presentation/model/load_more_state.dart';
|
import 'package:tmail_ui_user/features/thread/presentation/model/load_more_state.dart';
|
||||||
import 'package:tmail_ui_user/features/thread/presentation/widgets/email_context_menu_action_builder.dart';
|
import 'package:tmail_ui_user/features/thread/presentation/widgets/email_context_menu_action_builder.dart';
|
||||||
import 'package:tmail_ui_user/main/actions/app_action.dart';
|
|
||||||
import 'package:tmail_ui_user/main/actions/email_action.dart';
|
|
||||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||||
import 'package:tmail_ui_user/main/routes/app_routes.dart';
|
import 'package:tmail_ui_user/main/routes/app_routes.dart';
|
||||||
import 'package:tmail_ui_user/main/routes/route_navigation.dart';
|
import 'package:tmail_ui_user/main/routes/route_navigation.dart';
|
||||||
@@ -70,17 +68,13 @@ class ThreadController extends BaseController {
|
|||||||
_currentMailboxId = selectedMailbox?.id;
|
_currentMailboxId = selectedMailbox?.id;
|
||||||
refreshGetAllEmailAction();
|
refreshGetAllEmailAction();
|
||||||
} else {
|
} else {
|
||||||
final actionCurrent = mailboxDashBoardController.mailboxDashBoardAction.value;
|
mailboxDashBoardController.viewState.value.map((success) {
|
||||||
if (actionCurrent is MarkAsEmailReadAction) {
|
if (success is MarkAsEmailReadSuccess ||
|
||||||
final emailCurrent = mailboxDashBoardController.selectedEmail.value;
|
success is MarkAsMultipleEmailReadAllSuccess ||
|
||||||
if (Get.context != null && responsiveUtils.isDesktop(Get.context!) && emailCurrent != null) {
|
success is MarkAsMultipleEmailReadHasSomeEmailFailure) {
|
||||||
_updateStateUnReadAllEmail([emailCurrent.id], isUnread: false);
|
_refreshListEmailMarkAsRead();
|
||||||
}
|
}
|
||||||
mailboxDashBoardController.clearMailboxDashBoardAction();
|
});
|
||||||
} else if (actionCurrent is MarkAsMultipleEmailReadAndUnreadAction) {
|
|
||||||
_updateStateUnReadAllEmail(actionCurrent.listEmailId, isUnread: actionCurrent.isUnread);
|
|
||||||
mailboxDashBoardController.clearMailboxDashBoardAction();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -100,22 +94,37 @@ class ThreadController extends BaseController {
|
|||||||
@override
|
@override
|
||||||
void onDone() {
|
void onDone() {
|
||||||
viewState.value.fold(
|
viewState.value.fold(
|
||||||
(failure) => _resetPositionCurrentAndLoadMoreState(),
|
(failure) {
|
||||||
(success) => _updateEmailList(success is GetAllEmailSuccess ? success.emailList : [])
|
if (failure is GetAllEmailFailure) {
|
||||||
|
_resetPositionCurrentAndLoadMoreState();
|
||||||
|
} else if (failure is MarkAsEmailReadFailure ||
|
||||||
|
failure is MarkAsMultipleEmailReadAllFailure ||
|
||||||
|
failure is MarkAsMultipleEmailReadFailure) {
|
||||||
|
_markAsSelectedEmailReadFailure(failure);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
(success) {
|
||||||
|
if (success is GetAllEmailSuccess) {
|
||||||
|
_getAllEmailSuccess(success);
|
||||||
|
} else if (success is MarkAsEmailReadSuccess ||
|
||||||
|
success is MarkAsMultipleEmailReadAllSuccess ||
|
||||||
|
success is MarkAsMultipleEmailReadHasSomeEmailFailure) {
|
||||||
|
_markAsSelectedEmailReadSuccess(success);
|
||||||
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void onError(error) {
|
void onError(error) {
|
||||||
_resetPositionCurrentAndLoadMoreState();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _updateEmailList(List<PresentationEmail> newListEmail) {
|
void _getAllEmailSuccess(Success success) {
|
||||||
emailList.value += newListEmail;
|
if (success is GetAllEmailSuccess) {
|
||||||
|
emailList.value += success.emailList;
|
||||||
lastGetTotal = emailList.length;
|
lastGetTotal = emailList.length;
|
||||||
|
loadMoreState.value = success.emailList.isEmpty ? LoadMoreState.COMPLETED : LoadMoreState.IDLE;
|
||||||
loadMoreState.value = newListEmail.isEmpty ? LoadMoreState.COMPLETED : LoadMoreState.IDLE;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EmailFilterCondition? _getFilterConditionCurrent() {
|
EmailFilterCondition? _getFilterConditionCurrent() {
|
||||||
@@ -226,90 +235,84 @@ class ThreadController extends BaseController {
|
|||||||
currentSelectMode.value = SelectMode.INACTIVE;
|
currentSelectMode.value = SelectMode.INACTIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void _updateStateUnReadAllEmail(List<EmailId> list, {required bool isUnread}) {
|
void _refreshListEmailMarkAsRead() {
|
||||||
final newEmailList = emailList
|
final newLimit = emailList.isNotEmpty ? UnsignedInt(emailList.length) : ThreadConstants.defaultLimit;
|
||||||
.map((email) => list.contains(email.id) ? email.markAsReadPresentationEmail(isUnread: isUnread) : email)
|
loadMoreState.value = LoadMoreState.IDLE;
|
||||||
.toList();
|
emailList.clear();
|
||||||
emailList.value = newEmailList;
|
|
||||||
|
final accountId = mailboxDashBoardController.accountId.value;
|
||||||
|
|
||||||
|
if (accountId != null) {
|
||||||
|
getAllEmailAction(
|
||||||
|
accountId,
|
||||||
|
limit: newLimit,
|
||||||
|
position: 0,
|
||||||
|
sort: _getSortCurrent(),
|
||||||
|
properties: _properties,
|
||||||
|
filter: _getFilterConditionCurrent());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void unreadSelectedEmail(List<PresentationEmail> listEmail, {bool fromContextMenuAction = false}) {
|
void markAsSelectedEmailRead(List<PresentationEmail> listEmail, {bool fromContextMenuAction = false}) {
|
||||||
if (fromContextMenuAction) {
|
if (fromContextMenuAction) {
|
||||||
popBack();
|
popBack();
|
||||||
}
|
}
|
||||||
|
|
||||||
final isUnread = _isEmailAllRead(listEmail);
|
final readAction = _isEmailAllRead(listEmail) ? ReadActions.markAsUnread : ReadActions.markAsRead;
|
||||||
|
|
||||||
final listEmailId = listEmail
|
final listEmailId = listEmail
|
||||||
.where((email) => isUnread ? email.isReadEmail() : email.isUnReadEmail())
|
.where((email) => readAction == ReadActions.markAsUnread ? email.isReadEmail() : email.isUnReadEmail())
|
||||||
.map((email) => email.id)
|
.map((email) => email.id)
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
final accountId = mailboxDashBoardController.accountId.value;
|
final accountId = mailboxDashBoardController.accountId.value;
|
||||||
final mailboxCurrent = mailboxDashBoardController.selectedMailbox.value;
|
final mailboxCurrent = mailboxDashBoardController.selectedMailbox.value;
|
||||||
|
|
||||||
if (accountId != null && mailboxCurrent != null) {
|
if (accountId != null && mailboxCurrent != null) {
|
||||||
_markAsMultipleEmailReadInteractor
|
consumeState(_markAsMultipleEmailReadInteractor.execute(accountId, listEmailId, readAction));
|
||||||
.execute(accountId, listEmailId, isUnread)
|
|
||||||
.then((result) => result.fold(
|
|
||||||
(failure) {
|
|
||||||
cancelSelectEmail();
|
|
||||||
|
|
||||||
if (failure is MarkAsEmailReadFailure
|
|
||||||
|| failure is MarkAsMultipleEmailReadAllFailure
|
|
||||||
|| failure is MarkAsMultipleEmailReadFailure) {
|
|
||||||
_appToast.showErrorToast(AppLocalizations.of(Get.context!).an_error_occurred);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
(success) {
|
|
||||||
cancelSelectEmail();
|
|
||||||
final listEmailIdSuccess = _getListEmailIdMarkedAsReadSuccess(success);
|
|
||||||
|
|
||||||
if (success is MarkAsEmailReadSuccess
|
|
||||||
|| success is MarkAsMultipleEmailReadAllSuccess
|
|
||||||
|| success is MarkAsMultipleEmailReadHasSomeEmailFailure) {
|
|
||||||
if (Get.context != null) {
|
|
||||||
_appToast.showSuccessToast(isUnread
|
|
||||||
? AppLocalizations.of(Get.context!).marked_multiple_item_as_unread(listEmail.length)
|
|
||||||
: AppLocalizations.of(Get.context!).marked_multiple_item_as_read(listEmail.length));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (listEmailIdSuccess.isNotEmpty) {
|
|
||||||
_updateStateEmailAndCountUnReadMailbox(MarkAsMultipleEmailReadAndUnreadAction(listEmailIdSuccess, mailboxCurrent, isUnread));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<EmailId> _getListEmailIdMarkedAsReadSuccess(Success success) {
|
void _markAsSelectedEmailReadSuccess(Success success) {
|
||||||
final listEmailIdSuccess = <EmailId>[];
|
cancelSelectEmail();
|
||||||
|
|
||||||
|
List<EmailId> listEmailId = <EmailId>[];
|
||||||
|
ReadActions? readActions;
|
||||||
|
|
||||||
if (success is MarkAsEmailReadSuccess) {
|
if (success is MarkAsEmailReadSuccess) {
|
||||||
listEmailIdSuccess.add(success.emailId);
|
listEmailId.add(success.emailId);
|
||||||
|
readActions = success.readActions;
|
||||||
} else if (success is MarkAsMultipleEmailReadAllSuccess) {
|
} else if (success is MarkAsMultipleEmailReadAllSuccess) {
|
||||||
success.resultList.forEach((either) {
|
success.resultList.forEach((either) {
|
||||||
either.map((success) {
|
either.map((success) {
|
||||||
if (success is MarkAsEmailReadSuccess) {
|
if (success is MarkAsEmailReadSuccess) {
|
||||||
listEmailIdSuccess.add(success.emailId);
|
listEmailId.add(success.emailId);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
readActions = success.readActions;
|
||||||
} else if (success is MarkAsMultipleEmailReadHasSomeEmailFailure) {
|
} else if (success is MarkAsMultipleEmailReadHasSomeEmailFailure) {
|
||||||
success.resultList.forEach((either) {
|
success.resultList.forEach((either) {
|
||||||
either.map((success) {
|
either.map((success) {
|
||||||
if (success is MarkAsEmailReadSuccess) {
|
if (success is MarkAsEmailReadSuccess) {
|
||||||
listEmailIdSuccess.add(success.emailId);
|
listEmailId.add(success.emailId);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
readActions = success.readActions;
|
||||||
}
|
}
|
||||||
|
|
||||||
return listEmailIdSuccess;
|
if (Get.context != null && readActions != null) {
|
||||||
|
_appToast.showSuccessToast(readActions == ReadActions.markAsUnread
|
||||||
|
? AppLocalizations.of(Get.context!).marked_multiple_item_as_unread(listEmailId.length)
|
||||||
|
: AppLocalizations.of(Get.context!).marked_multiple_item_as_read(listEmailId.length));
|
||||||
|
}
|
||||||
|
|
||||||
|
mailboxDashBoardController.dispatchState(Right(success));
|
||||||
}
|
}
|
||||||
|
|
||||||
void _updateStateEmailAndCountUnReadMailbox(AppAction? appAction) {
|
void _markAsSelectedEmailReadFailure(Failure failure) {
|
||||||
mailboxDashBoardController.setMailboxDashBoardAction(appAction);
|
cancelSelectEmail();
|
||||||
|
_appToast.showErrorToast(AppLocalizations.of(Get.context!).an_error_occurred);
|
||||||
}
|
}
|
||||||
|
|
||||||
void openContextMenuSelectedEmail(BuildContext context, ImagePaths imagePaths, List<PresentationEmail> listEmail) {
|
void openContextMenuSelectedEmail(BuildContext context, ImagePaths imagePaths, List<PresentationEmail> listEmail) {
|
||||||
@@ -322,20 +325,20 @@ class ThreadController extends BaseController {
|
|||||||
return [
|
return [
|
||||||
_moveToTrashAction(context, imagePaths, listEmail),
|
_moveToTrashAction(context, imagePaths, listEmail),
|
||||||
_moveToMailboxAction(context, imagePaths, listEmail),
|
_moveToMailboxAction(context, imagePaths, listEmail),
|
||||||
_markAsSeenAction(context, imagePaths, listEmail),
|
_markAsReadAction(context, imagePaths, listEmail),
|
||||||
_markAsFlagAction(context, imagePaths, listEmail),
|
_markAsFlagAction(context, imagePaths, listEmail),
|
||||||
_moveToSpamAction(context, imagePaths, listEmail),
|
_moveToSpamAction(context, imagePaths, listEmail),
|
||||||
SizedBox(height: 40),
|
SizedBox(height: 40),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _markAsSeenAction(BuildContext context, ImagePaths imagePaths, List<PresentationEmail> listEmail) {
|
Widget _markAsReadAction(BuildContext context, ImagePaths imagePaths, List<PresentationEmail> listEmail) {
|
||||||
return (EmailContextMenuActionBuilder(
|
return (EmailContextMenuActionBuilder(
|
||||||
Key('mark_as_seen_context_menu_action'),
|
Key('mark_as_read_context_menu_action'),
|
||||||
SvgPicture.asset(imagePaths.icEyeDisable, width: 24, height: 24, fit: BoxFit.fill),
|
SvgPicture.asset(imagePaths.icEyeDisable, width: 24, height: 24, fit: BoxFit.fill),
|
||||||
_isEmailAllRead(listEmail) ? AppLocalizations.of(context).mark_as_unread : AppLocalizations.of(context).mark_as_read,
|
_isEmailAllRead(listEmail) ? AppLocalizations.of(context).mark_as_unread : AppLocalizations.of(context).mark_as_read,
|
||||||
listEmail)
|
listEmail)
|
||||||
..onActionClick((data) => unreadSelectedEmail(data, fromContextMenuAction: true)))
|
..onActionClick((data) => markAsSelectedEmailRead(data, fromContextMenuAction: true)))
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -383,13 +386,8 @@ class ThreadController extends BaseController {
|
|||||||
mailboxDashBoardController.openDrawer();
|
mailboxDashBoardController.openDrawer();
|
||||||
}
|
}
|
||||||
|
|
||||||
void goToEmail(BuildContext context) async {
|
void goToEmail(BuildContext context) {
|
||||||
final action = await push(AppRoutes.EMAIL);
|
push(AppRoutes.EMAIL);
|
||||||
if (action is MarkAsEmailReadAction) {
|
|
||||||
_updateStateUnReadAllEmail([action.emailId], isUnread: false);
|
|
||||||
mailboxDashBoardController.setMailboxDashBoardAction(action);
|
|
||||||
}
|
|
||||||
mailboxDashBoardController.clearSelectedEmail();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void composeEmailAction() {
|
void composeEmailAction() {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class ThreadView extends GetWidget<ThreadController> {
|
|||||||
controller.getListEmailSelected())
|
controller.getListEmailSelected())
|
||||||
..addCloseActionClick(() => controller.cancelSelectEmail())
|
..addCloseActionClick(() => controller.cancelSelectEmail())
|
||||||
..addRemoveEmailActionClick((listEmail) => {})
|
..addRemoveEmailActionClick((listEmail) => {})
|
||||||
..addUnreadEmailActionClick((listEmail) => controller.unreadSelectedEmail(listEmail))
|
..addOnMarkAsEmailReadActionClick((listEmail) => controller.markAsSelectedEmailRead(listEmail))
|
||||||
..addOpenContextMenuActionClick((listEmail) => controller.openContextMenuSelectedEmail(context, imagePaths, listEmail)))
|
..addOpenContextMenuActionClick((listEmail) => controller.openContextMenuSelectedEmail(context, imagePaths, listEmail)))
|
||||||
.build()));
|
.build()));
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-6
@@ -6,13 +6,13 @@ import 'package:model/email/presentation_email.dart';
|
|||||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||||
|
|
||||||
typedef OnCloseActionClick = void Function();
|
typedef OnCloseActionClick = void Function();
|
||||||
typedef OnUnreadEmailActionClick = void Function(List<PresentationEmail> listEmail);
|
typedef OnMarkAsEmailReadActionClick = void Function(List<PresentationEmail> listEmail);
|
||||||
typedef OnRemoveEmailActionClick = void Function(List<PresentationEmail> listEmail);
|
typedef OnRemoveEmailActionClick = void Function(List<PresentationEmail> listEmail);
|
||||||
typedef OnOpenContextMenuActionClick = void Function(List<PresentationEmail> listEmail);
|
typedef OnOpenContextMenuActionClick = void Function(List<PresentationEmail> listEmail);
|
||||||
|
|
||||||
class AppBarThreadSelectModeActiveBuilder {
|
class AppBarThreadSelectModeActiveBuilder {
|
||||||
OnCloseActionClick? _onCloseActionClick;
|
OnCloseActionClick? _onCloseActionClick;
|
||||||
OnUnreadEmailActionClick? _onUnreadEmailActionClick;
|
OnMarkAsEmailReadActionClick? _onMarkAsEmailReadActionClick;
|
||||||
OnRemoveEmailActionClick? _onRemoveEmailActionClick;
|
OnRemoveEmailActionClick? _onRemoveEmailActionClick;
|
||||||
OnOpenContextMenuActionClick? _onOpenContextMenuActionClick;
|
OnOpenContextMenuActionClick? _onOpenContextMenuActionClick;
|
||||||
|
|
||||||
@@ -26,8 +26,8 @@ class AppBarThreadSelectModeActiveBuilder {
|
|||||||
_onCloseActionClick = onCloseActionClick;
|
_onCloseActionClick = onCloseActionClick;
|
||||||
}
|
}
|
||||||
|
|
||||||
void addUnreadEmailActionClick(OnUnreadEmailActionClick onUnreadEmailActionClick) {
|
void addOnMarkAsEmailReadActionClick(OnMarkAsEmailReadActionClick onMarkAsEmailReadActionClick) {
|
||||||
_onUnreadEmailActionClick = onUnreadEmailActionClick;
|
_onMarkAsEmailReadActionClick = onMarkAsEmailReadActionClick;
|
||||||
}
|
}
|
||||||
|
|
||||||
void addRemoveEmailActionClick(OnRemoveEmailActionClick onRemoveEmailActionClick) {
|
void addRemoveEmailActionClick(OnRemoveEmailActionClick onRemoveEmailActionClick) {
|
||||||
@@ -94,8 +94,8 @@ class AppBarThreadSelectModeActiveBuilder {
|
|||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
ButtonBuilder(_imagePaths.icEyeDisable).key(Key('button_unread_email_selected'))
|
ButtonBuilder(_imagePaths.icEyeDisable).key(Key('button_unread_email_selected'))
|
||||||
.onPressActionClick(() {
|
.onPressActionClick(() {
|
||||||
if (_onUnreadEmailActionClick != null) {
|
if (_onMarkAsEmailReadActionClick != null) {
|
||||||
_onUnreadEmailActionClick!(_listEmail);
|
_onMarkAsEmailReadActionClick!(_listEmail);
|
||||||
}})
|
}})
|
||||||
.build(),
|
.build(),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
|
|||||||
+52
-1
@@ -1,133 +1,162 @@
|
|||||||
{
|
{
|
||||||
"@@last_modified": "2021-07-01T16:29:46.979874",
|
"@@last_modified": "2021-09-15T13:25:41.117609",
|
||||||
"initializing_data": "Initializing data...",
|
"initializing_data": "Initializing data...",
|
||||||
"@initializing_data": {
|
"@initializing_data": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"login_text_slogan": "Team Mail",
|
"login_text_slogan": "Team Mail",
|
||||||
"@login_text_slogan": {
|
"@login_text_slogan": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"prefix_https": "https://",
|
"prefix_https": "https://",
|
||||||
"@prefix_https": {
|
"@prefix_https": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"username": "username",
|
"username": "username",
|
||||||
"@username": {
|
"@username": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"password": "password",
|
"password": "password",
|
||||||
"@password": {
|
"@password": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"@login": {
|
"@login": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"login_text_login_to_continue": "Please login to continue",
|
"login_text_login_to_continue": "Please login to continue",
|
||||||
"@login_text_login_to_continue": {
|
"@login_text_login_to_continue": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"unknown_error_login_message": "Unknown error occurred, please try again",
|
"unknown_error_login_message": "Unknown error occurred, please try again",
|
||||||
"@unknown_error_login_message": {
|
"@unknown_error_login_message": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"search_folder": "Search folder",
|
"search_folder": "Search folder",
|
||||||
"@search_folder": {
|
"@search_folder": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"storage": "STORAGE",
|
"storage": "STORAGE",
|
||||||
"@storage": {
|
"@storage": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"my_folders": "MY FOLDERS",
|
"my_folders": "MY FOLDERS",
|
||||||
"@my_folders": {
|
"@my_folders": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"new_folder": "New folder",
|
"new_folder": "New folder",
|
||||||
"@new_folder": {
|
"@new_folder": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"reply_all": "Reply all",
|
"reply_all": "Reply all",
|
||||||
"@reply_all": {
|
"@reply_all": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"reply": "Reply",
|
"reply": "Reply",
|
||||||
"@reply": {
|
"@reply": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"forward": "Forward",
|
"forward": "Forward",
|
||||||
"@forward": {
|
"@forward": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"no_emails": "No emails",
|
"no_emails": "No emails",
|
||||||
"@no_emails": {
|
"@no_emails": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"no_mail_selected": "No email selected",
|
"no_mail_selected": "No email selected",
|
||||||
"@no_mail_selected": {
|
"@no_mail_selected": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"from_email_address_prefix": "From",
|
"from_email_address_prefix": "From",
|
||||||
"@from_email_address_prefix": {
|
"@from_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"to_email_address_prefix": "To",
|
"to_email_address_prefix": "To",
|
||||||
"@to_email_address_prefix": {
|
"@to_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"unread_email_notification": "new",
|
"unread_email_notification": "new",
|
||||||
"@unread_email_notification": {
|
"@unread_email_notification": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"bcc_email_address_prefix": "Bcc",
|
"bcc_email_address_prefix": "Bcc",
|
||||||
"@bcc_email_address_prefix": {
|
"@bcc_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"cc_email_address_prefix": "Cc",
|
"cc_email_address_prefix": "Cc",
|
||||||
"@cc_email_address_prefix": {
|
"@cc_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"hint_text_email_address": "Name or email address",
|
"hint_text_email_address": "Name or email address",
|
||||||
"@hint_text_email_address": {
|
"@hint_text_email_address": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"subject_email": "Subject",
|
"subject_email": "Subject",
|
||||||
"@subject_email": {
|
"@subject_email": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"hint_content_email_composer": "Start writing your email here",
|
"hint_content_email_composer": "Start writing your email here",
|
||||||
"@hint_content_email_composer": {
|
"@hint_content_email_composer": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"header_email_quoted": "On {sentDate}, from {emailAddress}",
|
"header_email_quoted": "On {sentDate}, from {emailAddress}",
|
||||||
"@header_email_quoted": {
|
"@header_email_quoted": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"sentDate",
|
||||||
|
"emailAddress"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"sentDate": {},
|
"sentDate": {},
|
||||||
"emailAddress": {}
|
"emailAddress": {}
|
||||||
@@ -136,36 +165,45 @@
|
|||||||
"prefix_reply_email": "Re:",
|
"prefix_reply_email": "Re:",
|
||||||
"@prefix_reply_email": {
|
"@prefix_reply_email": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"prefix_forward_email": "Fwd:",
|
"prefix_forward_email": "Fwd:",
|
||||||
"@prefix_forward_email": {
|
"@prefix_forward_email": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"your_email_being_sent": "Your email being sent...",
|
"your_email_being_sent": "Your email being sent...",
|
||||||
"@your_email_being_sent": {
|
"@your_email_being_sent": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"your_email_should_have_at_least_one_recipient": "Your email should have at least one recipient",
|
"your_email_should_have_at_least_one_recipient": "Your email should have at least one recipient",
|
||||||
"@your_email_should_have_at_least_one_recipient": {
|
"@your_email_should_have_at_least_one_recipient": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"message_sent": "Message sent",
|
"message_sent": "Message sent",
|
||||||
"@message_sent": {
|
"@message_sent": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"error_message_sent": "Error message sent",
|
"error_message_sent": "Error message sent",
|
||||||
"@error_message_sent": {
|
"@error_message_sent": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"count_email_selected": "{count} selected",
|
"count_email_selected": "{count} selected",
|
||||||
"@count_email_selected": {
|
"@count_email_selected": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -173,36 +211,45 @@
|
|||||||
"mark_as_unread": "Mark as unread",
|
"mark_as_unread": "Mark as unread",
|
||||||
"@mark_as_unread": {
|
"@mark_as_unread": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"mark_as_read": "Mark as read",
|
"mark_as_read": "Mark as read",
|
||||||
"@mark_as_read": {
|
"@mark_as_read": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_trash": "Move to trash",
|
"move_to_trash": "Move to trash",
|
||||||
"@move_to_trash": {
|
"@move_to_trash": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_mailbox": "Move to mailbox",
|
"move_to_mailbox": "Move to mailbox",
|
||||||
"@move_to_mailbox": {
|
"@move_to_mailbox": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"mark_as_flag": "Star",
|
"mark_as_flag": "Star",
|
||||||
"@mark_as_flag": {
|
"@mark_as_flag": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_spam": "Move to spam",
|
"move_to_spam": "Move to spam",
|
||||||
"@move_to_spam": {
|
"@move_to_spam": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"marked_multiple_item_as_read": "Marked {count} item as read",
|
"marked_multiple_item_as_read": "Marked {count} item as read",
|
||||||
"@marked_multiple_item_as_read": {
|
"@marked_multiple_item_as_read": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -210,6 +257,9 @@
|
|||||||
"marked_multiple_item_as_unread": "Marked {count} item as unread",
|
"marked_multiple_item_as_unread": "Marked {count} item as unread",
|
||||||
"@marked_multiple_item_as_unread": {
|
"@marked_multiple_item_as_unread": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -217,6 +267,7 @@
|
|||||||
"an_error_occurred": "Error! An error occurred. Please try again later.",
|
"an_error_occurred": "Error! An error occurred. Please try again later.",
|
||||||
"@an_error_occurred": {
|
"@an_error_occurred": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+52
-1
@@ -1,133 +1,162 @@
|
|||||||
{
|
{
|
||||||
"@@last_modified": "2021-07-01T16:29:46.979874",
|
"@@last_modified": "2021-09-15T13:25:41.117609",
|
||||||
"initializing_data": "Initializing data...",
|
"initializing_data": "Initializing data...",
|
||||||
"@initializing_data": {
|
"@initializing_data": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"login_text_slogan": "Team Mail",
|
"login_text_slogan": "Team Mail",
|
||||||
"@login_text_slogan": {
|
"@login_text_slogan": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"prefix_https": "https://",
|
"prefix_https": "https://",
|
||||||
"@prefix_https": {
|
"@prefix_https": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"username": "username",
|
"username": "username",
|
||||||
"@username": {
|
"@username": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"password": "password",
|
"password": "password",
|
||||||
"@password": {
|
"@password": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"@login": {
|
"@login": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"login_text_login_to_continue": "Please login to continue",
|
"login_text_login_to_continue": "Please login to continue",
|
||||||
"@login_text_login_to_continue": {
|
"@login_text_login_to_continue": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"unknown_error_login_message": "Unknown error occurred, please try again",
|
"unknown_error_login_message": "Unknown error occurred, please try again",
|
||||||
"@unknown_error_login_message": {
|
"@unknown_error_login_message": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"search_folder": "Search folder",
|
"search_folder": "Search folder",
|
||||||
"@search_folder": {
|
"@search_folder": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"storage": "STORAGE",
|
"storage": "STORAGE",
|
||||||
"@storage": {
|
"@storage": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"my_folders": "MY FOLDERS",
|
"my_folders": "MY FOLDERS",
|
||||||
"@my_folders": {
|
"@my_folders": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"new_folder": "New folder",
|
"new_folder": "New folder",
|
||||||
"@new_folder": {
|
"@new_folder": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"reply_all": "Reply all",
|
"reply_all": "Reply all",
|
||||||
"@reply_all": {
|
"@reply_all": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"reply": "Reply",
|
"reply": "Reply",
|
||||||
"@reply": {
|
"@reply": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"forward": "Forward",
|
"forward": "Forward",
|
||||||
"@forward": {
|
"@forward": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"no_emails": "No emails",
|
"no_emails": "No emails",
|
||||||
"@no_emails": {
|
"@no_emails": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"no_mail_selected": "No email selected",
|
"no_mail_selected": "No email selected",
|
||||||
"@no_mail_selected": {
|
"@no_mail_selected": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"from_email_address_prefix": "From",
|
"from_email_address_prefix": "From",
|
||||||
"@from_email_address_prefix": {
|
"@from_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"to_email_address_prefix": "To",
|
"to_email_address_prefix": "To",
|
||||||
"@to_email_address_prefix": {
|
"@to_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"unread_email_notification": "new",
|
"unread_email_notification": "new",
|
||||||
"@unread_email_notification": {
|
"@unread_email_notification": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"bcc_email_address_prefix": "Bcc",
|
"bcc_email_address_prefix": "Bcc",
|
||||||
"@bcc_email_address_prefix": {
|
"@bcc_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"cc_email_address_prefix": "Cc",
|
"cc_email_address_prefix": "Cc",
|
||||||
"@cc_email_address_prefix": {
|
"@cc_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"hint_text_email_address": "Name or email address",
|
"hint_text_email_address": "Name or email address",
|
||||||
"@hint_text_email_address": {
|
"@hint_text_email_address": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"subject_email": "Subject",
|
"subject_email": "Subject",
|
||||||
"@subject_email": {
|
"@subject_email": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"hint_content_email_composer": "Start writing your email here",
|
"hint_content_email_composer": "Start writing your email here",
|
||||||
"@hint_content_email_composer": {
|
"@hint_content_email_composer": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"header_email_quoted": "On {sentDate}, from {emailAddress}",
|
"header_email_quoted": "On {sentDate}, from {emailAddress}",
|
||||||
"@header_email_quoted": {
|
"@header_email_quoted": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"sentDate",
|
||||||
|
"emailAddress"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"sentDate": {},
|
"sentDate": {},
|
||||||
"emailAddress": {}
|
"emailAddress": {}
|
||||||
@@ -136,36 +165,45 @@
|
|||||||
"prefix_reply_email": "Re:",
|
"prefix_reply_email": "Re:",
|
||||||
"@prefix_reply_email": {
|
"@prefix_reply_email": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"prefix_forward_email": "Fwd:",
|
"prefix_forward_email": "Fwd:",
|
||||||
"@prefix_forward_email": {
|
"@prefix_forward_email": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"your_email_being_sent": "Your email being sent...",
|
"your_email_being_sent": "Your email being sent...",
|
||||||
"@your_email_being_sent": {
|
"@your_email_being_sent": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"your_email_should_have_at_least_one_recipient": "Your email should have at least one recipient",
|
"your_email_should_have_at_least_one_recipient": "Your email should have at least one recipient",
|
||||||
"@your_email_should_have_at_least_one_recipient": {
|
"@your_email_should_have_at_least_one_recipient": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"message_sent": "Message sent",
|
"message_sent": "Message sent",
|
||||||
"@message_sent": {
|
"@message_sent": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"error_message_sent": "Error message sent",
|
"error_message_sent": "Error message sent",
|
||||||
"@error_message_sent": {
|
"@error_message_sent": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"count_email_selected": "{count} selected",
|
"count_email_selected": "{count} selected",
|
||||||
"@count_email_selected": {
|
"@count_email_selected": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -173,36 +211,45 @@
|
|||||||
"mark_as_unread": "Mark as unread",
|
"mark_as_unread": "Mark as unread",
|
||||||
"@mark_as_unread": {
|
"@mark_as_unread": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"mark_as_read": "Mark as read",
|
"mark_as_read": "Mark as read",
|
||||||
"@mark_as_read": {
|
"@mark_as_read": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_trash": "Move to trash",
|
"move_to_trash": "Move to trash",
|
||||||
"@move_to_trash": {
|
"@move_to_trash": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_mailbox": "Move to mailbox",
|
"move_to_mailbox": "Move to mailbox",
|
||||||
"@move_to_mailbox": {
|
"@move_to_mailbox": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"mark_as_flag": "Star",
|
"mark_as_flag": "Star",
|
||||||
"@mark_as_flag": {
|
"@mark_as_flag": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_spam": "Move to spam",
|
"move_to_spam": "Move to spam",
|
||||||
"@move_to_spam": {
|
"@move_to_spam": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"marked_multiple_item_as_read": "Marked {count} item as read",
|
"marked_multiple_item_as_read": "Marked {count} item as read",
|
||||||
"@marked_multiple_item_as_read": {
|
"@marked_multiple_item_as_read": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -210,6 +257,9 @@
|
|||||||
"marked_multiple_item_as_unread": "Marked {count} item as unread",
|
"marked_multiple_item_as_unread": "Marked {count} item as unread",
|
||||||
"@marked_multiple_item_as_unread": {
|
"@marked_multiple_item_as_unread": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -217,6 +267,7 @@
|
|||||||
"an_error_occurred": "Error! An error occurred. Please try again later.",
|
"an_error_occurred": "Error! An error occurred. Please try again later.",
|
||||||
"@an_error_occurred": {
|
"@an_error_occurred": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+17
-21
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"@@last_modified": "2021-09-15T11:00:57.061103",
|
"@@last_modified": "2021-09-15T13:25:41.117609",
|
||||||
"initializing_data": "Initializing data...",
|
"initializing_data": "Initializing data...",
|
||||||
"@initializing_data": {
|
"@initializing_data": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
@@ -198,29 +198,12 @@
|
|||||||
"placeholders_order": [],
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"your_email_being_sent": "Your email being sent...",
|
|
||||||
"@your_email_being_sent": {
|
|
||||||
"type": "text",
|
|
||||||
"placeholders": {}
|
|
||||||
},
|
|
||||||
"your_email_should_have_at_least_one_recipient": "Your email should have at least one recipient",
|
|
||||||
"@your_email_should_have_at_least_one_recipient": {
|
|
||||||
"type": "text",
|
|
||||||
"placeholders": {}
|
|
||||||
},
|
|
||||||
"message_sent": "Message sent",
|
|
||||||
"@message_sent": {
|
|
||||||
"type": "text",
|
|
||||||
"placeholders": {}
|
|
||||||
},
|
|
||||||
"error_message_sent": "Error message sent",
|
|
||||||
"@error_message_sent": {
|
|
||||||
"type": "text",
|
|
||||||
"placeholders": {}
|
|
||||||
},
|
|
||||||
"count_email_selected": "{count} selected",
|
"count_email_selected": "{count} selected",
|
||||||
"@count_email_selected": {
|
"@count_email_selected": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -228,36 +211,45 @@
|
|||||||
"mark_as_unread": "Mark as unread",
|
"mark_as_unread": "Mark as unread",
|
||||||
"@mark_as_unread": {
|
"@mark_as_unread": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"mark_as_read": "Mark as read",
|
"mark_as_read": "Mark as read",
|
||||||
"@mark_as_read": {
|
"@mark_as_read": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_trash": "Move to trash",
|
"move_to_trash": "Move to trash",
|
||||||
"@move_to_trash": {
|
"@move_to_trash": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_mailbox": "Move to mailbox",
|
"move_to_mailbox": "Move to mailbox",
|
||||||
"@move_to_mailbox": {
|
"@move_to_mailbox": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"mark_as_flag": "Star",
|
"mark_as_flag": "Star",
|
||||||
"@mark_as_flag": {
|
"@mark_as_flag": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_spam": "Move to spam",
|
"move_to_spam": "Move to spam",
|
||||||
"@move_to_spam": {
|
"@move_to_spam": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"marked_multiple_item_as_read": "Marked {count} item as read",
|
"marked_multiple_item_as_read": "Marked {count} item as read",
|
||||||
"@marked_multiple_item_as_read": {
|
"@marked_multiple_item_as_read": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -265,6 +257,9 @@
|
|||||||
"marked_multiple_item_as_unread": "Marked {count} item as unread",
|
"marked_multiple_item_as_unread": "Marked {count} item as unread",
|
||||||
"@marked_multiple_item_as_unread": {
|
"@marked_multiple_item_as_unread": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -272,6 +267,7 @@
|
|||||||
"an_error_occurred": "Error! An error occurred. Please try again later.",
|
"an_error_occurred": "Error! An error occurred. Please try again later.",
|
||||||
"@an_error_occurred": {
|
"@an_error_occurred": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+52
-1
@@ -1,133 +1,162 @@
|
|||||||
{
|
{
|
||||||
"@@last_modified": "2021-07-01T16:29:46.979874",
|
"@@last_modified": "2021-09-15T13:25:41.117609",
|
||||||
"initializing_data": "Initializing data...",
|
"initializing_data": "Initializing data...",
|
||||||
"@initializing_data": {
|
"@initializing_data": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"login_text_slogan": "Team Mail",
|
"login_text_slogan": "Team Mail",
|
||||||
"@login_text_slogan": {
|
"@login_text_slogan": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"prefix_https": "https://",
|
"prefix_https": "https://",
|
||||||
"@prefix_https": {
|
"@prefix_https": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"username": "username",
|
"username": "username",
|
||||||
"@username": {
|
"@username": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"password": "password",
|
"password": "password",
|
||||||
"@password": {
|
"@password": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"@login": {
|
"@login": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"login_text_login_to_continue": "Please login to continue",
|
"login_text_login_to_continue": "Please login to continue",
|
||||||
"@login_text_login_to_continue": {
|
"@login_text_login_to_continue": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"unknown_error_login_message": "Unknown error occurred, please try again",
|
"unknown_error_login_message": "Unknown error occurred, please try again",
|
||||||
"@unknown_error_login_message": {
|
"@unknown_error_login_message": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"search_folder": "Search folder",
|
"search_folder": "Search folder",
|
||||||
"@search_folder": {
|
"@search_folder": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"storage": "STORAGE",
|
"storage": "STORAGE",
|
||||||
"@storage": {
|
"@storage": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"my_folders": "MY FOLDERS",
|
"my_folders": "MY FOLDERS",
|
||||||
"@my_folders": {
|
"@my_folders": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"new_folder": "New folder",
|
"new_folder": "New folder",
|
||||||
"@new_folder": {
|
"@new_folder": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"reply_all": "Reply all",
|
"reply_all": "Reply all",
|
||||||
"@reply_all": {
|
"@reply_all": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"reply": "Reply",
|
"reply": "Reply",
|
||||||
"@reply": {
|
"@reply": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"forward": "Forward",
|
"forward": "Forward",
|
||||||
"@forward": {
|
"@forward": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"no_emails": "No emails",
|
"no_emails": "No emails",
|
||||||
"@no_emails": {
|
"@no_emails": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"no_mail_selected": "No email selected",
|
"no_mail_selected": "No email selected",
|
||||||
"@no_mail_selected": {
|
"@no_mail_selected": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"from_email_address_prefix": "From",
|
"from_email_address_prefix": "From",
|
||||||
"@from_email_address_prefix": {
|
"@from_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"to_email_address_prefix": "To",
|
"to_email_address_prefix": "To",
|
||||||
"@to_email_address_prefix": {
|
"@to_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"unread_email_notification": "new",
|
"unread_email_notification": "new",
|
||||||
"@unread_email_notification": {
|
"@unread_email_notification": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"bcc_email_address_prefix": "Bcc",
|
"bcc_email_address_prefix": "Bcc",
|
||||||
"@bcc_email_address_prefix": {
|
"@bcc_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"cc_email_address_prefix": "Cc",
|
"cc_email_address_prefix": "Cc",
|
||||||
"@cc_email_address_prefix": {
|
"@cc_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"hint_text_email_address": "Name or email address",
|
"hint_text_email_address": "Name or email address",
|
||||||
"@hint_text_email_address": {
|
"@hint_text_email_address": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"subject_email": "Subject",
|
"subject_email": "Subject",
|
||||||
"@subject_email": {
|
"@subject_email": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"hint_content_email_composer": "Start writing your email here",
|
"hint_content_email_composer": "Start writing your email here",
|
||||||
"@hint_content_email_composer": {
|
"@hint_content_email_composer": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"header_email_quoted": "On {sentDate}, from {emailAddress}",
|
"header_email_quoted": "On {sentDate}, from {emailAddress}",
|
||||||
"@header_email_quoted": {
|
"@header_email_quoted": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"sentDate",
|
||||||
|
"emailAddress"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"sentDate": {},
|
"sentDate": {},
|
||||||
"emailAddress": {}
|
"emailAddress": {}
|
||||||
@@ -136,36 +165,45 @@
|
|||||||
"prefix_reply_email": "Re:",
|
"prefix_reply_email": "Re:",
|
||||||
"@prefix_reply_email": {
|
"@prefix_reply_email": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"prefix_forward_email": "Fwd:",
|
"prefix_forward_email": "Fwd:",
|
||||||
"@prefix_forward_email": {
|
"@prefix_forward_email": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"your_email_being_sent": "Your email being sent...",
|
"your_email_being_sent": "Your email being sent...",
|
||||||
"@your_email_being_sent": {
|
"@your_email_being_sent": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"your_email_should_have_at_least_one_recipient": "Your email should have at least one recipient",
|
"your_email_should_have_at_least_one_recipient": "Your email should have at least one recipient",
|
||||||
"@your_email_should_have_at_least_one_recipient": {
|
"@your_email_should_have_at_least_one_recipient": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"message_sent": "Message sent",
|
"message_sent": "Message sent",
|
||||||
"@message_sent": {
|
"@message_sent": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"error_message_sent": "Error message sent",
|
"error_message_sent": "Error message sent",
|
||||||
"@error_message_sent": {
|
"@error_message_sent": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"count_email_selected": "{count} selected",
|
"count_email_selected": "{count} selected",
|
||||||
"@count_email_selected": {
|
"@count_email_selected": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -173,36 +211,45 @@
|
|||||||
"mark_as_unread": "Mark as unread",
|
"mark_as_unread": "Mark as unread",
|
||||||
"@mark_as_unread": {
|
"@mark_as_unread": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"mark_as_read": "Mark as read",
|
"mark_as_read": "Mark as read",
|
||||||
"@mark_as_read": {
|
"@mark_as_read": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_trash": "Move to trash",
|
"move_to_trash": "Move to trash",
|
||||||
"@move_to_trash": {
|
"@move_to_trash": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_mailbox": "Move to mailbox",
|
"move_to_mailbox": "Move to mailbox",
|
||||||
"@move_to_mailbox": {
|
"@move_to_mailbox": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"mark_as_flag": "Star",
|
"mark_as_flag": "Star",
|
||||||
"@mark_as_flag": {
|
"@mark_as_flag": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_spam": "Move to spam",
|
"move_to_spam": "Move to spam",
|
||||||
"@move_to_spam": {
|
"@move_to_spam": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"marked_multiple_item_as_read": "Marked {count} item as read",
|
"marked_multiple_item_as_read": "Marked {count} item as read",
|
||||||
"@marked_multiple_item_as_read": {
|
"@marked_multiple_item_as_read": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -210,6 +257,9 @@
|
|||||||
"marked_multiple_item_as_unread": "Marked {count} item as unread",
|
"marked_multiple_item_as_unread": "Marked {count} item as unread",
|
||||||
"@marked_multiple_item_as_unread": {
|
"@marked_multiple_item_as_unread": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -217,6 +267,7 @@
|
|||||||
"an_error_occurred": "Error! An error occurred. Please try again later.",
|
"an_error_occurred": "Error! An error occurred. Please try again later.",
|
||||||
"@an_error_occurred": {
|
"@an_error_occurred": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+52
-1
@@ -1,133 +1,162 @@
|
|||||||
{
|
{
|
||||||
"@@last_modified": "2021-07-01T16:29:46.979874",
|
"@@last_modified": "2021-09-15T13:25:41.117609",
|
||||||
"initializing_data": "Initializing data...",
|
"initializing_data": "Initializing data...",
|
||||||
"@initializing_data": {
|
"@initializing_data": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"login_text_slogan": "Team Mail",
|
"login_text_slogan": "Team Mail",
|
||||||
"@login_text_slogan": {
|
"@login_text_slogan": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"prefix_https": "https://",
|
"prefix_https": "https://",
|
||||||
"@prefix_https": {
|
"@prefix_https": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"username": "username",
|
"username": "username",
|
||||||
"@username": {
|
"@username": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"password": "password",
|
"password": "password",
|
||||||
"@password": {
|
"@password": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"@login": {
|
"@login": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"login_text_login_to_continue": "Please login to continue",
|
"login_text_login_to_continue": "Please login to continue",
|
||||||
"@login_text_login_to_continue": {
|
"@login_text_login_to_continue": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"unknown_error_login_message": "Unknown error occurred, please try again",
|
"unknown_error_login_message": "Unknown error occurred, please try again",
|
||||||
"@unknown_error_login_message": {
|
"@unknown_error_login_message": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"search_folder": "Search folder",
|
"search_folder": "Search folder",
|
||||||
"@search_folder": {
|
"@search_folder": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"storage": "STORAGE",
|
"storage": "STORAGE",
|
||||||
"@storage": {
|
"@storage": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"my_folders": "MY FOLDERS",
|
"my_folders": "MY FOLDERS",
|
||||||
"@my_folders": {
|
"@my_folders": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"new_folder": "New folder",
|
"new_folder": "New folder",
|
||||||
"@new_folder": {
|
"@new_folder": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"reply_all": "Reply all",
|
"reply_all": "Reply all",
|
||||||
"@reply_all": {
|
"@reply_all": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"reply": "Reply",
|
"reply": "Reply",
|
||||||
"@reply": {
|
"@reply": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"forward": "Forward",
|
"forward": "Forward",
|
||||||
"@forward": {
|
"@forward": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"no_emails": "No emails",
|
"no_emails": "No emails",
|
||||||
"@no_emails": {
|
"@no_emails": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"no_mail_selected": "No email selected",
|
"no_mail_selected": "No email selected",
|
||||||
"@no_mail_selected": {
|
"@no_mail_selected": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"from_email_address_prefix": "From",
|
"from_email_address_prefix": "From",
|
||||||
"@from_email_address_prefix": {
|
"@from_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"to_email_address_prefix": "To",
|
"to_email_address_prefix": "To",
|
||||||
"@to_email_address_prefix": {
|
"@to_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"unread_email_notification": "new",
|
"unread_email_notification": "new",
|
||||||
"@unread_email_notification": {
|
"@unread_email_notification": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"bcc_email_address_prefix": "Bcc",
|
"bcc_email_address_prefix": "Bcc",
|
||||||
"@bcc_email_address_prefix": {
|
"@bcc_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"cc_email_address_prefix": "Cc",
|
"cc_email_address_prefix": "Cc",
|
||||||
"@cc_email_address_prefix": {
|
"@cc_email_address_prefix": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"hint_text_email_address": "Name or email address",
|
"hint_text_email_address": "Name or email address",
|
||||||
"@hint_text_email_address": {
|
"@hint_text_email_address": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"subject_email": "Subject",
|
"subject_email": "Subject",
|
||||||
"@subject_email": {
|
"@subject_email": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"hint_content_email_composer": "Start writing your email here",
|
"hint_content_email_composer": "Start writing your email here",
|
||||||
"@hint_content_email_composer": {
|
"@hint_content_email_composer": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"header_email_quoted": "On {sentDate}, from {emailAddress}",
|
"header_email_quoted": "On {sentDate}, from {emailAddress}",
|
||||||
"@header_email_quoted": {
|
"@header_email_quoted": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"sentDate",
|
||||||
|
"emailAddress"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"sentDate": {},
|
"sentDate": {},
|
||||||
"emailAddress": {}
|
"emailAddress": {}
|
||||||
@@ -136,36 +165,45 @@
|
|||||||
"prefix_reply_email": "Re:",
|
"prefix_reply_email": "Re:",
|
||||||
"@prefix_reply_email": {
|
"@prefix_reply_email": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"prefix_forward_email": "Fwd:",
|
"prefix_forward_email": "Fwd:",
|
||||||
"@prefix_forward_email": {
|
"@prefix_forward_email": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"your_email_being_sent": "Your email being sent...",
|
"your_email_being_sent": "Your email being sent...",
|
||||||
"@your_email_being_sent": {
|
"@your_email_being_sent": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"your_email_should_have_at_least_one_recipient": "Your email should have at least one recipient",
|
"your_email_should_have_at_least_one_recipient": "Your email should have at least one recipient",
|
||||||
"@your_email_should_have_at_least_one_recipient": {
|
"@your_email_should_have_at_least_one_recipient": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"message_sent": "Message sent",
|
"message_sent": "Message sent",
|
||||||
"@message_sent": {
|
"@message_sent": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"error_message_sent": "Error message sent",
|
"error_message_sent": "Error message sent",
|
||||||
"@error_message_sent": {
|
"@error_message_sent": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"count_email_selected": "{count} selected",
|
"count_email_selected": "{count} selected",
|
||||||
"@count_email_selected": {
|
"@count_email_selected": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -173,36 +211,45 @@
|
|||||||
"mark_as_unread": "Mark as unread",
|
"mark_as_unread": "Mark as unread",
|
||||||
"@mark_as_unread": {
|
"@mark_as_unread": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"mark_as_read": "Mark as read",
|
"mark_as_read": "Mark as read",
|
||||||
"@mark_as_read": {
|
"@mark_as_read": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_trash": "Move to trash",
|
"move_to_trash": "Move to trash",
|
||||||
"@move_to_trash": {
|
"@move_to_trash": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_mailbox": "Move to mailbox",
|
"move_to_mailbox": "Move to mailbox",
|
||||||
"@move_to_mailbox": {
|
"@move_to_mailbox": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"mark_as_flag": "Star",
|
"mark_as_flag": "Star",
|
||||||
"@mark_as_flag": {
|
"@mark_as_flag": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"move_to_spam": "Move to spam",
|
"move_to_spam": "Move to spam",
|
||||||
"@move_to_spam": {
|
"@move_to_spam": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"marked_multiple_item_as_read": "Marked {count} item as read",
|
"marked_multiple_item_as_read": "Marked {count} item as read",
|
||||||
"@marked_multiple_item_as_read": {
|
"@marked_multiple_item_as_read": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -210,6 +257,9 @@
|
|||||||
"marked_multiple_item_as_unread": "Marked {count} item as unread",
|
"marked_multiple_item_as_unread": "Marked {count} item as unread",
|
||||||
"@marked_multiple_item_as_unread": {
|
"@marked_multiple_item_as_unread": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [
|
||||||
|
"count"
|
||||||
|
],
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {}
|
"count": {}
|
||||||
}
|
}
|
||||||
@@ -217,6 +267,7 @@
|
|||||||
"an_error_occurred": "Error! An error occurred. Please try again later.",
|
"an_error_occurred": "Error! An error occurred. Please try again later.",
|
||||||
"@an_error_occurred": {
|
"@an_error_occurred": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
import 'package:equatable/equatable.dart';
|
|
||||||
|
|
||||||
abstract class AppAction with EquatableMixin {}
|
|
||||||
|
|
||||||
abstract class ActionOnline extends AppAction {}
|
|
||||||
|
|
||||||
abstract class ActionOffline extends AppAction {}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
|
|
||||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
|
||||||
import 'package:model/mailbox/presentation_mailbox.dart';
|
|
||||||
import 'package:tmail_ui_user/main/actions/app_action.dart';
|
|
||||||
|
|
||||||
class MarkAsEmailReadAction extends ActionOffline {
|
|
||||||
final EmailId emailId;
|
|
||||||
final PresentationMailbox presentationMailbox;
|
|
||||||
|
|
||||||
MarkAsEmailReadAction(this.emailId, this.presentationMailbox);
|
|
||||||
|
|
||||||
@override
|
|
||||||
List<Object?> get props => [emailId, presentationMailbox];
|
|
||||||
}
|
|
||||||
|
|
||||||
class MarkAsMultipleEmailReadAndUnreadAction extends ActionOffline {
|
|
||||||
final List<EmailId> listEmailId;
|
|
||||||
final PresentationMailbox presentationMailbox;
|
|
||||||
final bool isUnread;
|
|
||||||
|
|
||||||
MarkAsMultipleEmailReadAndUnreadAction(this.listEmailId, this.presentationMailbox, this.isUnread);
|
|
||||||
|
|
||||||
@override
|
|
||||||
List<Object?> get props => [listEmailId, presentationMailbox, isUnread];
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
enum ReadActions {
|
||||||
|
markAsRead,
|
||||||
|
markAsUnread
|
||||||
|
}
|
||||||
@@ -1,8 +1,15 @@
|
|||||||
import 'package:jmap_dart_client/jmap/core/patch_object.dart';
|
import 'package:jmap_dart_client/jmap/core/patch_object.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/email/keyword_identifier.dart';
|
import 'package:jmap_dart_client/jmap/mail/email/keyword_identifier.dart';
|
||||||
|
import 'package:model/email/read_actions.dart';
|
||||||
|
|
||||||
extension KeyWordIdentifierExtension on KeyWordIdentifier {
|
extension KeyWordIdentifierExtension on KeyWordIdentifier {
|
||||||
String generatePath() {
|
String _generatePath() {
|
||||||
return '${PatchObject.keywordsProperty}/$value';
|
return '${PatchObject.keywordsProperty}/$value';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PatchObject generateReadActionPath(ReadActions readActions) {
|
||||||
|
return PatchObject({
|
||||||
|
_generatePath(): readActions == ReadActions.markAsRead ? true : null
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -14,10 +14,10 @@ extension PresentationEmailExtension on PresentationEmail {
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
PresentationEmail markAsReadPresentationEmail({required bool isUnread}) {
|
PresentationEmail markAsReadPresentationEmail(ReadActions readActions) {
|
||||||
var newKeyWord = keywords;
|
var newKeyWord = keywords;
|
||||||
|
|
||||||
if (isUnread) {
|
if (readActions == ReadActions.markAsUnread) {
|
||||||
newKeyWord?.removeWhere((key, value) => key == KeyWordIdentifier.emailSeen);
|
newKeyWord?.removeWhere((key, value) => key == KeyWordIdentifier.emailSeen);
|
||||||
} else {
|
} else {
|
||||||
if (newKeyWord == null) {
|
if (newKeyWord == null) {
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ export 'email/prefix_email_address.dart';
|
|||||||
export 'email/email_action_type.dart';
|
export 'email/email_action_type.dart';
|
||||||
export 'email/presentation_email_address.dart';
|
export 'email/presentation_email_address.dart';
|
||||||
export 'email/email_address_cache.dart';
|
export 'email/email_address_cache.dart';
|
||||||
|
export 'email/read_actions.dart';
|
||||||
|
|
||||||
// Extensions
|
// Extensions
|
||||||
export 'extensions/email_address_extension.dart';
|
export 'extensions/email_address_extension.dart';
|
||||||
|
|||||||
Reference in New Issue
Block a user