Skip to content

Commit cb91063

Browse files
committed
feat: 角标
1 parent d767758 commit cb91063

15 files changed

Lines changed: 1577 additions & 60 deletions

lib/l10n/app_en.arb

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,5 +753,81 @@
753753
"announcementDeleteSuccess": "Announcement deleted",
754754
"announcementDeleteFailed": "Failed to delete announcement",
755755
"adminAnnouncements": "Announcements",
756-
"adminAnnouncementsDescription": "Create and manage system announcements"
756+
"adminAnnouncementsDescription": "Create and manage system announcements",
757+
"adminAccountManagement": "Account Management",
758+
"adminAccountManagementDescription": "View and manage user accounts",
759+
"adminAccountLoadFailed": "Failed to load users",
760+
"adminAccountEmpty": "No users found",
761+
"adminAccountCreated": "Created: {date}",
762+
"@adminAccountCreated": {
763+
"placeholders": {
764+
"date": {"type": "String"}
765+
}
766+
},
767+
"adminAccountChangeRole": "Change Role",
768+
"adminAccountChangeRoleTitle": "Change role of {name}",
769+
"@adminAccountChangeRoleTitle": {
770+
"placeholders": {
771+
"name": {"type": "String"}
772+
}
773+
},
774+
"adminAccountCurrentRole": "Current role",
775+
"adminAccountRoleRoot": "Root",
776+
"adminAccountRoleAdmin": "Admin",
777+
"adminAccountRoleUser": "User",
778+
"adminAccountRoleBanned": "Banned",
779+
"adminAccountRoleChangeFailed": "Failed to change role",
780+
"adminAccountRoleChangeSuccess": "{name}: role changed to {role}",
781+
"@adminAccountRoleChangeSuccess": {
782+
"placeholders": {
783+
"name": {"type": "String"},
784+
"role": {"type": "String"}
785+
}
786+
},
787+
"adminAccountBanTitle": "Ban User",
788+
"adminAccountBanAction": "Ban",
789+
"adminAccountBanConfirm": "Ban {name}? They will be unable to log in.",
790+
"@adminAccountBanConfirm": {
791+
"placeholders": {
792+
"name": {"type": "String"}
793+
}
794+
},
795+
"adminAccountBanSuccess": "{name} has been banned",
796+
"@adminAccountBanSuccess": {
797+
"placeholders": {
798+
"name": {"type": "String"}
799+
}
800+
},
801+
"adminAccountBanFailed": "Failed to ban user",
802+
"adminAccountUnbanTitle": "Unban User",
803+
"adminAccountUnbanAction": "Unban",
804+
"adminAccountUnbanConfirm": "Unban {name}?",
805+
"@adminAccountUnbanConfirm": {
806+
"placeholders": {
807+
"name": {"type": "String"}
808+
}
809+
},
810+
"adminAccountUnbanSuccess": "{name} has been unbanned",
811+
"@adminAccountUnbanSuccess": {
812+
"placeholders": {
813+
"name": {"type": "String"}
814+
}
815+
},
816+
"adminAccountUnbanFailed": "Failed to unban user",
817+
"adminAccountDeleteTitle": "Delete User",
818+
"adminAccountDeleteAction": "Delete",
819+
"adminAccountDeleteConfirm": "Permanently delete {name}? This action cannot be undone.",
820+
"@adminAccountDeleteConfirm": {
821+
"placeholders": {
822+
"name": {"type": "String"}
823+
}
824+
},
825+
"adminAccountDeleteSuccess": "{name} has been deleted",
826+
"@adminAccountDeleteSuccess": {
827+
"placeholders": {
828+
"name": {"type": "String"}
829+
}
830+
},
831+
"adminAccountDeleteFailed": "Failed to delete user",
832+
"adminAccountTotalUsers": "users"
757833
}

lib/l10n/app_localizations.dart

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3669,6 +3669,186 @@ abstract class AppLocalizations {
36693669
/// In en, this message translates to:
36703670
/// **'Create and manage system announcements'**
36713671
String get adminAnnouncementsDescription;
3672+
3673+
/// No description provided for @adminAccountManagement.
3674+
///
3675+
/// In en, this message translates to:
3676+
/// **'Account Management'**
3677+
String get adminAccountManagement;
3678+
3679+
/// No description provided for @adminAccountManagementDescription.
3680+
///
3681+
/// In en, this message translates to:
3682+
/// **'View and manage user accounts'**
3683+
String get adminAccountManagementDescription;
3684+
3685+
/// No description provided for @adminAccountLoadFailed.
3686+
///
3687+
/// In en, this message translates to:
3688+
/// **'Failed to load users'**
3689+
String get adminAccountLoadFailed;
3690+
3691+
/// No description provided for @adminAccountEmpty.
3692+
///
3693+
/// In en, this message translates to:
3694+
/// **'No users found'**
3695+
String get adminAccountEmpty;
3696+
3697+
/// No description provided for @adminAccountCreated.
3698+
///
3699+
/// In en, this message translates to:
3700+
/// **'Created: {date}'**
3701+
String adminAccountCreated(String date);
3702+
3703+
/// No description provided for @adminAccountChangeRole.
3704+
///
3705+
/// In en, this message translates to:
3706+
/// **'Change Role'**
3707+
String get adminAccountChangeRole;
3708+
3709+
/// No description provided for @adminAccountChangeRoleTitle.
3710+
///
3711+
/// In en, this message translates to:
3712+
/// **'Change role of {name}'**
3713+
String adminAccountChangeRoleTitle(String name);
3714+
3715+
/// No description provided for @adminAccountCurrentRole.
3716+
///
3717+
/// In en, this message translates to:
3718+
/// **'Current role'**
3719+
String get adminAccountCurrentRole;
3720+
3721+
/// No description provided for @adminAccountRoleRoot.
3722+
///
3723+
/// In en, this message translates to:
3724+
/// **'Root'**
3725+
String get adminAccountRoleRoot;
3726+
3727+
/// No description provided for @adminAccountRoleAdmin.
3728+
///
3729+
/// In en, this message translates to:
3730+
/// **'Admin'**
3731+
String get adminAccountRoleAdmin;
3732+
3733+
/// No description provided for @adminAccountRoleUser.
3734+
///
3735+
/// In en, this message translates to:
3736+
/// **'User'**
3737+
String get adminAccountRoleUser;
3738+
3739+
/// No description provided for @adminAccountRoleBanned.
3740+
///
3741+
/// In en, this message translates to:
3742+
/// **'Banned'**
3743+
String get adminAccountRoleBanned;
3744+
3745+
/// No description provided for @adminAccountRoleChangeFailed.
3746+
///
3747+
/// In en, this message translates to:
3748+
/// **'Failed to change role'**
3749+
String get adminAccountRoleChangeFailed;
3750+
3751+
/// No description provided for @adminAccountRoleChangeSuccess.
3752+
///
3753+
/// In en, this message translates to:
3754+
/// **'{name}: role changed to {role}'**
3755+
String adminAccountRoleChangeSuccess(String name, String role);
3756+
3757+
/// No description provided for @adminAccountBanTitle.
3758+
///
3759+
/// In en, this message translates to:
3760+
/// **'Ban User'**
3761+
String get adminAccountBanTitle;
3762+
3763+
/// No description provided for @adminAccountBanAction.
3764+
///
3765+
/// In en, this message translates to:
3766+
/// **'Ban'**
3767+
String get adminAccountBanAction;
3768+
3769+
/// No description provided for @adminAccountBanConfirm.
3770+
///
3771+
/// In en, this message translates to:
3772+
/// **'Ban {name}? They will be unable to log in.'**
3773+
String adminAccountBanConfirm(String name);
3774+
3775+
/// No description provided for @adminAccountBanSuccess.
3776+
///
3777+
/// In en, this message translates to:
3778+
/// **'{name} has been banned'**
3779+
String adminAccountBanSuccess(String name);
3780+
3781+
/// No description provided for @adminAccountBanFailed.
3782+
///
3783+
/// In en, this message translates to:
3784+
/// **'Failed to ban user'**
3785+
String get adminAccountBanFailed;
3786+
3787+
/// No description provided for @adminAccountUnbanTitle.
3788+
///
3789+
/// In en, this message translates to:
3790+
/// **'Unban User'**
3791+
String get adminAccountUnbanTitle;
3792+
3793+
/// No description provided for @adminAccountUnbanAction.
3794+
///
3795+
/// In en, this message translates to:
3796+
/// **'Unban'**
3797+
String get adminAccountUnbanAction;
3798+
3799+
/// No description provided for @adminAccountUnbanConfirm.
3800+
///
3801+
/// In en, this message translates to:
3802+
/// **'Unban {name}?'**
3803+
String adminAccountUnbanConfirm(String name);
3804+
3805+
/// No description provided for @adminAccountUnbanSuccess.
3806+
///
3807+
/// In en, this message translates to:
3808+
/// **'{name} has been unbanned'**
3809+
String adminAccountUnbanSuccess(String name);
3810+
3811+
/// No description provided for @adminAccountUnbanFailed.
3812+
///
3813+
/// In en, this message translates to:
3814+
/// **'Failed to unban user'**
3815+
String get adminAccountUnbanFailed;
3816+
3817+
/// No description provided for @adminAccountDeleteTitle.
3818+
///
3819+
/// In en, this message translates to:
3820+
/// **'Delete User'**
3821+
String get adminAccountDeleteTitle;
3822+
3823+
/// No description provided for @adminAccountDeleteAction.
3824+
///
3825+
/// In en, this message translates to:
3826+
/// **'Delete'**
3827+
String get adminAccountDeleteAction;
3828+
3829+
/// No description provided for @adminAccountDeleteConfirm.
3830+
///
3831+
/// In en, this message translates to:
3832+
/// **'Permanently delete {name}? This action cannot be undone.'**
3833+
String adminAccountDeleteConfirm(String name);
3834+
3835+
/// No description provided for @adminAccountDeleteSuccess.
3836+
///
3837+
/// In en, this message translates to:
3838+
/// **'{name} has been deleted'**
3839+
String adminAccountDeleteSuccess(String name);
3840+
3841+
/// No description provided for @adminAccountDeleteFailed.
3842+
///
3843+
/// In en, this message translates to:
3844+
/// **'Failed to delete user'**
3845+
String get adminAccountDeleteFailed;
3846+
3847+
/// No description provided for @adminAccountTotalUsers.
3848+
///
3849+
/// In en, this message translates to:
3850+
/// **'users'**
3851+
String get adminAccountTotalUsers;
36723852
}
36733853

36743854
class _AppLocalizationsDelegate

lib/l10n/app_localizations_en.dart

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,4 +1918,113 @@ class AppLocalizationsEn extends AppLocalizations {
19181918
@override
19191919
String get adminAnnouncementsDescription =>
19201920
'Create and manage system announcements';
1921+
1922+
@override
1923+
String get adminAccountManagement => 'Account Management';
1924+
1925+
@override
1926+
String get adminAccountManagementDescription =>
1927+
'View and manage user accounts';
1928+
1929+
@override
1930+
String get adminAccountLoadFailed => 'Failed to load users';
1931+
1932+
@override
1933+
String get adminAccountEmpty => 'No users found';
1934+
1935+
@override
1936+
String adminAccountCreated(String date) {
1937+
return 'Created: $date';
1938+
}
1939+
1940+
@override
1941+
String get adminAccountChangeRole => 'Change Role';
1942+
1943+
@override
1944+
String adminAccountChangeRoleTitle(String name) {
1945+
return 'Change role of $name';
1946+
}
1947+
1948+
@override
1949+
String get adminAccountCurrentRole => 'Current role';
1950+
1951+
@override
1952+
String get adminAccountRoleRoot => 'Root';
1953+
1954+
@override
1955+
String get adminAccountRoleAdmin => 'Admin';
1956+
1957+
@override
1958+
String get adminAccountRoleUser => 'User';
1959+
1960+
@override
1961+
String get adminAccountRoleBanned => 'Banned';
1962+
1963+
@override
1964+
String get adminAccountRoleChangeFailed => 'Failed to change role';
1965+
1966+
@override
1967+
String adminAccountRoleChangeSuccess(String name, String role) {
1968+
return '$name: role changed to $role';
1969+
}
1970+
1971+
@override
1972+
String get adminAccountBanTitle => 'Ban User';
1973+
1974+
@override
1975+
String get adminAccountBanAction => 'Ban';
1976+
1977+
@override
1978+
String adminAccountBanConfirm(String name) {
1979+
return 'Ban $name? They will be unable to log in.';
1980+
}
1981+
1982+
@override
1983+
String adminAccountBanSuccess(String name) {
1984+
return '$name has been banned';
1985+
}
1986+
1987+
@override
1988+
String get adminAccountBanFailed => 'Failed to ban user';
1989+
1990+
@override
1991+
String get adminAccountUnbanTitle => 'Unban User';
1992+
1993+
@override
1994+
String get adminAccountUnbanAction => 'Unban';
1995+
1996+
@override
1997+
String adminAccountUnbanConfirm(String name) {
1998+
return 'Unban $name?';
1999+
}
2000+
2001+
@override
2002+
String adminAccountUnbanSuccess(String name) {
2003+
return '$name has been unbanned';
2004+
}
2005+
2006+
@override
2007+
String get adminAccountUnbanFailed => 'Failed to unban user';
2008+
2009+
@override
2010+
String get adminAccountDeleteTitle => 'Delete User';
2011+
2012+
@override
2013+
String get adminAccountDeleteAction => 'Delete';
2014+
2015+
@override
2016+
String adminAccountDeleteConfirm(String name) {
2017+
return 'Permanently delete $name? This action cannot be undone.';
2018+
}
2019+
2020+
@override
2021+
String adminAccountDeleteSuccess(String name) {
2022+
return '$name has been deleted';
2023+
}
2024+
2025+
@override
2026+
String get adminAccountDeleteFailed => 'Failed to delete user';
2027+
2028+
@override
2029+
String get adminAccountTotalUsers => 'users';
19212030
}

0 commit comments

Comments
 (0)