为了端到端验证 Shrimp 框架,把 hand-admin 前端拷进 examples/basic-admin/web
作为临时演示用前端,@shrimp alias 直接指向同仓 src/,免构建。
修改要点:
- web/vite.config.ts: @shrimp 改成 ../../../src; proxy /admin-api 到 :3100
- web/tsconfig.json: 同步 @shrimp 路径; 删掉 hand-server-2 的 paths
- web/src/locales: 删掉 matter_*/zerobase 业务 key
- web/src/module: 删掉 matter_*/zerobase 业务 vue,只留 user/role/FieldRelativeTime
- examples/basic-admin/index.ts:
- mount 到 /admin-api/* 而不是 /api/*
- 加 /config /login /me 端点 (mock super-admin operator,固定 token)
- DemoShrimp 子类覆盖 getMenuTree 用模块自身 label
- MemoryShrimpCrud 的 getRelatedCrud 手动 wire 到 crudRegistry,
populate 才能跑 (后续 70→90 改进项)
curl 已验证 /config /login /me /product/list 全通,tagIds_label 正确旁挂。
131 lines
4.0 KiB
JSON
131 lines
4.0 KiB
JSON
{
|
|
"base": {
|
|
"name": "Name",
|
|
"add": "Add",
|
|
"edit": "Edit",
|
|
"delete": "Delete",
|
|
"search": "Search",
|
|
"filter": "Filter",
|
|
"reset": "Reset",
|
|
"confirm": "Confirm",
|
|
"cancel": "Cancel",
|
|
"close": "Close",
|
|
"save": "Save",
|
|
"submit": "Submit",
|
|
"operation": "Operation",
|
|
"exportExcel": "Export Excel",
|
|
"importExcel": "Import Excel",
|
|
"success": "Success",
|
|
"fail": "Failed",
|
|
"noNavMenu": "No submenu",
|
|
"clearCache": "Clear Cache",
|
|
"logout": "Logout",
|
|
"netError": "Network error",
|
|
"disabled": "Disabled",
|
|
"enabled": "Enabled",
|
|
"pressEnter": "Press Enter to add",
|
|
"expand": "Expand",
|
|
"collapse": "Collapse"
|
|
},
|
|
"user": {
|
|
"username": "Username",
|
|
"password": "Password",
|
|
"nickname": "Nickname",
|
|
"roleId": "Role",
|
|
"active": "Active",
|
|
"createdAt": "Created At",
|
|
"updatedAt": "Updated At",
|
|
"menuManage": "User",
|
|
"operationLog": "Operation Log"
|
|
},
|
|
"operationLog": {
|
|
"ip": "IP",
|
|
"method": "Action",
|
|
"args": "Args",
|
|
"success": "Success",
|
|
"errorMsg": "Error",
|
|
"createdAt": "Time"
|
|
},
|
|
"role": {
|
|
"name": "Role Name",
|
|
"description": "Description",
|
|
"isSuperAdmin": "Super Admin",
|
|
"powers": "Permissions",
|
|
"createdAt": "Created At",
|
|
"updatedAt": "Updated At",
|
|
"menuManage": "Role",
|
|
"menuList": "Role List",
|
|
"empty": "No roles",
|
|
"addRole": "Add Role",
|
|
"confirmDelete": "Are you sure you want to delete this role?",
|
|
"selectOrCreate": "Please select or create a role",
|
|
"selectAll": "Select All",
|
|
"newRole": "New Role"
|
|
},
|
|
"table": {
|
|
"addSuccess": "Added successfully",
|
|
"editSuccess": "Updated successfully",
|
|
"confirmDelete": "Are you sure you want to delete this record?",
|
|
"confirmClear": "Are you sure you want to clear all data? This cannot be undone!",
|
|
"yes": "Yes",
|
|
"no": "No",
|
|
"unlimited": "Any",
|
|
"startTime": "Start Time",
|
|
"endTime": "End Time",
|
|
"min": "Min",
|
|
"max": "Max",
|
|
"justNow": "Just now",
|
|
"minutesAgo": "{n} min ago",
|
|
"hoursAgo": "{n} hr ago",
|
|
"daysAgo": "{n} days ago",
|
|
"textareaMultipleNotSupported": "Textarea does not support multiple selection",
|
|
"passwordMultipleNotSupported": "Password does not support multiple selection",
|
|
"pressEnterForNumber": "Type number and press Enter"
|
|
},
|
|
"login": {
|
|
"userPlaceholder": "Username / Phone / Email",
|
|
"PWPlaceholder": "Please enter password",
|
|
"signIn": "Sign In",
|
|
"userError": "Please enter username",
|
|
"PWError": "Please enter password"
|
|
},
|
|
"power": {
|
|
"user": "User",
|
|
"role": "Role",
|
|
"add": "Add",
|
|
"edit": "Edit",
|
|
"delete": "Delete",
|
|
"list": "List",
|
|
"get": "Detail",
|
|
"importExcel": "Import Excel",
|
|
"exportExcel": "Export Excel",
|
|
"view": "View",
|
|
"clear": "Clear",
|
|
"export": "Export",
|
|
"import": "Import"
|
|
},
|
|
"shrimp": {
|
|
"loginFailed": "Incorrect username or password",
|
|
"userNotFound": "User not found",
|
|
"relogin": "Please log in again",
|
|
"userDisabled": "User has been disabled",
|
|
"emptyPath": "Request path cannot be empty",
|
|
"forbidden": "Insufficient permissions",
|
|
"serverError": "Server error",
|
|
"cannotDisableSelf": "Cannot disable yourself",
|
|
"cannotDeleteSelf": "Cannot delete yourself",
|
|
"cannotChangeOwnRole": "Cannot change your own role",
|
|
"cannotEditOwnRole": "Cannot edit your own role",
|
|
"cannotDeleteOwnRole": "Cannot delete your own role",
|
|
"cannotClearAllUsers": "Cannot clear all users",
|
|
"cannotClearAllRoles": "Cannot clear all roles",
|
|
"fieldRequired": "Field \"{field}\" is required",
|
|
"fieldTypeError": "Field \"{field}\" has invalid type",
|
|
"fieldInvalid": "Field \"{field}\" has invalid value",
|
|
"fieldMin": "Field \"{field}\" minimum value is {min}",
|
|
"fieldMax": "Field \"{field}\" maximum value is {max}",
|
|
"fieldMinLength": "Field \"{field}\" minimum length is {min}",
|
|
"fieldMaxLength": "Field \"{field}\" maximum length is {max}",
|
|
"invalidJson": "Invalid JSON format"
|
|
}
|
|
} |