Skip to content

Commit

Permalink
feat(ui): add strategy management view
Browse files Browse the repository at this point in the history
- add StrategyManagementView.vue to handle strategy CRUD operations
- integrate various UI components for strategy management functionality
  • Loading branch information
ShiinaKin committed Nov 30, 2024
1 parent 210485b commit 75b30d0
Show file tree
Hide file tree
Showing 2 changed files with 708 additions and 0 deletions.
153 changes: 153 additions & 0 deletions ui/src/locales/zh_cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -461,3 +461,156 @@ adminUserManageView:
toast:
successTitle: "删除成功"
failedTitle: "删除失败"
adminStrategyManageView:
strategyFilter:
createTimeASC: "创建时间升序"
createTimeDESC: "创建时间降序"
table:
id: "策略ID"
name: "策略名"
type: "策略类型"
createTime: "创建时间"
ops:
title: "操作"
detail: "查看"
edit: "编辑"
delete: "删除"
detail:
title: "存储策略详情"
id: "策略ID"
name: "策略名"
type: "策略类型"
config:
local:
uploadFolder: "上传目录"
thumbnailFolder: "缩略图目录"
s3:
endpoint: "终端点"
bucketName: "存储桶名"
region: "区域"
publicUrl: "公开访问URL"
uploadFolder: "上传目录"
thumbnailFolder: "缩略图目录"
email: "邮箱"
createTime: "创建时间"
create:
dialog:
title: "创建存储策略"
form:
name: "策略名"
type: "策略类型"
typeOptions:
local: "本地"
s3: "S3"
config:
local:
uploadFolder: "上传目录"
thumbnailFolder: "缩略图目录"
s3:
endpoint: "终端点"
bucketName: "存储桶名"
region: "区域"
accessKey: "访问密钥"
secretKey: "私密密钥"
publicUrl: "公开访问URL"
uploadFolder: "上传目录"
thumbnailFolder: "缩略图目录"
submitButton: "创建"
cancelButton: "取消"
verify:
name:
required: "策略名不能为空"
type:
invalid: "策略类型无效"
required: "策略类型不能为空"
config:
local:
uploadFolder:
dontStartWithSlash: "上传目录不能以 / 开头"
required: "上传目录不能为空"
thumbnailFolder:
dontStartWithSlash: "缩略图目录不能以 / 开头"
required: "缩略图目录不能为空"
s3:
endpoint:
invalid: "终端点必须是URL格式: http(s)://~"
dontEndWithSlash: "终端点不能以 / 结尾"
required: "终端点不能为空"
bucketName:
required: "存储桶名不能为空"
region:
required: "区域不能为空"
accessKey:
required: "访问密钥不能为空"
secretKey:
required: "私密密钥不能为空"
publicUrl:
invalid: "公开访问URL必须是URL格式: http(s)://~"
dontEndWithSlash: "公开访问URL不能以 / 结尾"
required: "公开访问URL不能为空"
uploadFolder:
dontStartWithSlash: "上传目录不能以 / 开头"
required: "上传目录不能为空"
thumbnailFolder:
dontStartWithSlash: "缩略图目录不能以 / 开头"
required: "缩略图目录不能为空"
toast:
successTitle: "创建成功"
failedTitle: "创建失败"
edit:
dialog:
title: "修改存储策略"
form:
name: "策略名"
config:
local:
uploadFolder: "上传目录"
thumbnailFolder: "缩略图目录"
s3:
endpoint: "终端点"
bucketName: "存储桶名"
region: "区域"
accessKey: "访问密钥"
secretKey: "私密密钥"
publicUrl: "公开访问URL"
uploadFolder: "上传目录"
thumbnailFolder: "缩略图目录"
submitButton: "创建"
cancelButton: "取消"
verify:
name:
config:
local:
uploadFolder:
dontStartWithSlash: "上传目录不能以 / 开头"
thumbnailFolder:
dontStartWithSlash: "缩略图目录不能以 / 开头"
s3:
endpoint:
invalid: "终端点必须是URL格式: http(s)://~"
dontEndWithSlash: "终端点不能以 / 结尾"
bucketName:
region:
accessKey:
secretKey:
publicUrl:
invalid: "公开访问URL必须是URL格式: http(s)://~"
dontEndWithSlash: "公开访问URL不能以 / 结尾"
uploadFolder:
dontStartWithSlash: "上传目录不能以 / 开头"
thumbnailFolder:
dontStartWithSlash: "缩略图目录不能以 / 开头"
atLeastOneField: "请至少修改一个字段"
toast:
successTitle: "创建成功"
failedTitle: "创建失败"
delete:
confirmDialog:
header: "确认删除"
mainContent: "你确定要删除用户吗?"
subContent: "真的会删除,而且无法找回,用户的图片和相册会被物理删除"
cancelButton: "取消"
submitButton: "确认删除"
toast:
successTitle: "删除成功"
failedTitle: "删除失败"
Loading

0 comments on commit 75b30d0

Please sign in to comment.