feat(apps): 重构 UI 架构为 presentation 层并新增 l10n 国际化支持

This commit is contained in:
qzl
2026-03-27 14:05:03 +08:00
parent b1f0eb8921
commit c592cc7854
178 changed files with 10748 additions and 5764 deletions
@@ -20,12 +20,12 @@ class ScheduleItemModel {
final DateTime createdAt;
final DateTime updatedAt;
static const int PERMISSION_VIEW = 1;
static const int PERMISSION_INVITE = 2;
static const int PERMISSION_EDIT = 4;
static const int permissionView = 1;
static const int permissionInvite = 2;
static const int permissionEdit = 4;
bool get canEdit => isOwner || (permission & PERMISSION_EDIT) != 0;
bool get canInvite => isOwner || (permission & PERMISSION_INVITE) != 0;
bool get canEdit => isOwner || (permission & permissionEdit) != 0;
bool get canInvite => isOwner || (permission & permissionInvite) != 0;
bool get canDelete => isOwner;
ScheduleItemModel({