Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
修复数据库details未汉化的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ilworkcn committed Jun 29, 2022
1 parent afbaafb commit 2d3fded
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions resources/scripts/components/server/databases/DatabaseRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,31 +97,31 @@ export default ({ database, className }: Props) => {
<FlashMessageRender byKey={'database-connection-modal'} css={tw`mb-6`} />
<h3 css={tw`mb-6 text-2xl`}>Database connection details</h3>
<div>
<Label>Endpoint</Label>
<Label>连接地址</Label>
<CopyOnClick text={database.connectionString}>
<Input type={'text'} readOnly value={database.connectionString} />
</CopyOnClick>
</div>
<div css={tw`mt-6`}>
<Label>Connections from</Label>
<Label>连接白名单</Label>
<Input type={'text'} readOnly value={database.allowConnectionsFrom} />
</div>
<div css={tw`mt-6`}>
<Label>Username</Label>
<Label>用户名</Label>
<CopyOnClick text={database.username}>
<Input type={'text'} readOnly value={database.username} />
</CopyOnClick>
</div>
<Can action={'database.view_password'}>
<div css={tw`mt-6`}>
<Label>Password</Label>
<Label>密码</Label>
<CopyOnClick text={database.password}>
<Input type={'text'} readOnly value={database.password} />
</CopyOnClick>
</div>
</Can>
<div css={tw`mt-6`}>
<Label>JDBC Connection String</Label>
<Label>JDBC 连接字符串</Label>
<CopyOnClick
text={`jdbc:mysql://${database.username}:${database.password}@${database.connectionString}/${database.name}`}
>
Expand All @@ -137,7 +137,7 @@ export default ({ database, className }: Props) => {
<RotatePasswordButton databaseId={database.id} onUpdate={appendDatabase} />
</Can>
<Button isSecondary onClick={() => setConnectionVisible(false)}>
Close
关闭
</Button>
</div>
</Modal>
Expand All @@ -154,17 +154,17 @@ export default ({ database, className }: Props) => {
<CopyOnClick text={database.connectionString}>
<p css={tw`text-sm`}>{database.connectionString}</p>
</CopyOnClick>
<p css={tw`mt-1 text-2xs text-neutral-500 uppercase select-none`}>Endpoint</p>
<p css={tw`mt-1 text-2xs text-neutral-500 uppercase select-none`}>连接地址</p>
</div>
<div css={tw`ml-8 text-center hidden md:block`}>
<p css={tw`text-sm`}>{database.allowConnectionsFrom}</p>
<p css={tw`mt-1 text-2xs text-neutral-500 uppercase select-none`}>Connections from</p>
<p css={tw`mt-1 text-2xs text-neutral-500 uppercase select-none`}>连接白名单</p>
</div>
<div css={tw`ml-8 text-center hidden md:block`}>
<CopyOnClick text={database.username}>
<p css={tw`text-sm`}>{database.username}</p>
</CopyOnClick>
<p css={tw`mt-1 text-2xs text-neutral-500 uppercase select-none`}>Username</p>
<p css={tw`mt-1 text-2xs text-neutral-500 uppercase select-none`}>用户名</p>
</div>
<div css={tw`ml-8`}>
<Button isSecondary css={tw`mr-2`} onClick={() => setConnectionVisible(true)}>
Expand Down

0 comments on commit 2d3fded

Please sign in to comment.