added data table, formatter

revert context on __root beforeLoad
refactor project structure
refactor role badge
dynamic nav menu
This commit is contained in:
2026-01-14 09:35:46 +07:00
parent a44fa70500
commit edb4ebe11c
45 changed files with 1519 additions and 149 deletions

View File

@@ -1,11 +1,29 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"common_page_show": [
{
"declarations": ["input count", "local countPlural = count: plural"],
"selectors": ["countPlural"],
"match": {
"countPlural=one": "Hiện chỉ có 1 dữ liệu",
"countPlural=other": "Hiển thị {start} tới {end} của {count} dữ liệu"
}
}
],
"common_per_page": "Show",
"common_select_page_size": "Select page size",
"common_no_list": "Hiện tại chưa có dữ liệu nào!",
"common_is_required": "{field} is required.",
"role_tags_admin": "Administrator",
"role_tags_user": "User",
"role_tags_member": "Member",
"role_tags_owner": "Owner",
"role_tags": [
{
"match": {
"role=admin": "Administrator",
"role=user": "User",
"role=member": "Member",
"role=owner": "Owner"
}
}
],
"ui_login_btn": "Sign in",
"ui_logout_btn": "Sign out",
"ui_cancel_btn": "Cancel",
@@ -15,6 +33,10 @@
"ui_view_btn": "View",
"ui_save_btn": "Save",
"ui_update_btn": "Update",
"ui_delete_btn": "Delete",
"ui_ban_btn": "Lock",
"ui_unban_btn": "Unlock",
"ui_dialog_view_title": "View {type} details",
"ui_view_all_notifications": "View All Notifications",
"ui_label_notifications": "Notifications",
"ui_change_password_btn": "Change password",
@@ -24,7 +46,7 @@
"nav_add_new": "Add new",
"nav_edit": "Edit",
"nav_change_password": "Change password",
"nav_log": "Audit log",
"nav_log": "Logs",
"nav_roles": "Vai trò & quyền hạn",
"nav_box": "Box",
"nav_account": "Account",
@@ -57,6 +79,25 @@
"settings_ui_title": "Settings",
"settings_messages_update_success": "Updated settings successfully!",
"settings_messages_update_fail": "Update fail!",
"logs_page_ui_title": "Logs",
"logs_page_ui_table_header_username": "User name",
"logs_page_ui_table_header_table": "Table",
"logs_page_ui_table_header_action": "Action",
"logs_page_ui_table_header_create_at": "Create date",
"logs_page_ui_badge_action": [
{
"match": {
"action=create": "Create",
"action=update": "Update",
"action=delete": "Delete",
"action=ban": "Lock",
"action=unban": "Unlock",
"action=sign_in": "Sign in",
"action=sign_out": "Sign out",
"action=*": "Other"
}
}
],
"backend_INVALID_EMAIL_OR_PASSWORD": "Email or password incorrect!",
"backend_INVALID_PASSWORD": "Password incorrect!"
}