feat(ui): enhance table and admin components with improved layout and status display

- Updated global CSS to center-align table headers and cells, ensuring a consistent layout.
- Modified admin table components to replace switches with status badges for better clarity.
- Enhanced internationalization support by adding new strings for version actions and validation messages in multiple locales.
- Refactored configuration document screens to include version selection and improved user feedback on status changes.
This commit is contained in:
2026-05-26 11:13:16 +08:00
parent 05fa0cbeec
commit 4080f0b601
38 changed files with 788 additions and 608 deletions

View File

@@ -47,6 +47,7 @@
"effectiveAt": "Effective at: {{value}}",
"note": "Note: {{value}}",
"current": "Current",
"moreActions": "More actions for v{{version}}",
"selected": "Selected",
"view": "View",
"rollback": "Rollback",
@@ -54,8 +55,11 @@
"deleteConfirmTitle": "Delete this version?",
"deleteConfirmDescription": "Version ID {{id}} (version_no {{version}}) will be permanently deleted. Active versions cannot be deleted."
},
"versionToolbar": {
"draftEditing": "Editing a draft — save and publish to go live"
},
"versionActions": {
"publishCurrent": "Set as current version",
"publishCurrent": "Publish",
"refreshing": "Refreshing",
"refresh": "Refresh versions",
"newDraft": "New draft",
@@ -194,7 +198,8 @@
"batchSwitchEnable": "Enable",
"batchSwitchDisable": "Disable",
"toggleConfirmTitle": "{{action}} play {{playCode}}?",
"toggleConfirmDescription": "This calls the API immediately (not draft-only).",
"toggleConfirmDescription": "This updates the current draft only. Players see changes after save and publish.",
"batchPartialEnabled": "{{enabledCount}}/{{total}} enabled (not all on — turn on to enable all)",
"toggleEnable": "Enable",
"toggleDisable": "Disable",
"toggleInstantFailed": "Failed to apply play switch. Try again later.",