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

Commit

Permalink
Merge pull request #9 from ilworkcn/v1.9.1_official
Browse files Browse the repository at this point in the history
V1.9.1 official database translate fix
  • Loading branch information
Ice-Ling authored Jun 29, 2022
2 parents f20372a + 07876d2 commit abec90c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,12 @@ export default ({ activity, children }: Props) => {
<Translate ns={'activity'} values={properties} i18nKey={activity.event.replace(':', '.')} />
</p>
<div className={'mt-1 flex items-center text-sm'}>
<Link
to={`#${pathTo({ ip: activity.ip })}`}
className={'transition-colors duration-75 active:text-cyan-400 hover:text-cyan-400'}
>
{activity.ip}
</Link>
<span className={'text-gray-400'}>&nbsp;|&nbsp;</span>
{activity.ip && (
<span>
{activity.ip}
<span className={'text-gray-400'}>&nbsp;|&nbsp;</span>
</span>
)}
<Tooltip placement={'right'} content={format(activity.timestamp, 'MMM do, yyyy H:mm:ss')}>
<span>{formatDistanceToNowStrict(activity.timestamp, { addSuffix: true })}</span>
</Tooltip>
Expand Down
20 changes: 10 additions & 10 deletions resources/scripts/components/server/databases/DatabaseRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,33 +95,33 @@ export default ({ database, className }: Props) => {
</Formik>
<Modal visible={connectionVisible} onDismissed={() => setConnectionVisible(false)}>
<FlashMessageRender byKey={'database-connection-modal'} css={tw`mb-6`} />
<h3 css={tw`mb-6 text-2xl`}>Database connection details</h3>
<h3 css={tw`mb-6 text-2xl`}>数据库连接详细信息</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
4 changes: 2 additions & 2 deletions resources/views/admin/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
</div>
<div class="box-body">
@if ($version->isLatestPanel())
您正运行 Pterodactyl 最新翼龙面板版本 <code>{{ config('app.version') }}</code>. 冰凌家汉化版本 <code>sc_v1.9.1_001</code>.
您正运行 Pterodactyl 最新翼龙面板版本 <code>{{ config('app.version') }}</code>. 冰凌家汉化版本 <code>sc_v1.9.1_002</code>.
@else
您目前使用的面板 <strong>并非最新版!</strong> 目前最新版本为 <a href="https://github.com/Pterodactyl/Panel/releases/v{{ $version->getPanel() }}" target="_blank"><code>{{ $version->getPanel() }}</code></a> 您正运行的版本为 <code>{{ config('app.version') }}</code>. 冰凌家汉化版本 <code>sc_v1.9.1_001</code>.
您目前使用的面板 <strong>并非最新版!</strong> 目前最新版本为 <a href="https://github.com/Pterodactyl/Panel/releases/v{{ $version->getPanel() }}" target="_blank"><code>{{ $version->getPanel() }}</code></a> 您正运行的版本为 <code>{{ config('app.version') }}</code>. 冰凌家汉化版本 <code>sc_v1.9.1_002</code>.
@endif
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/layouts/admin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@
<li class="header">基础管理</li>
<li class="{{ Route::currentRouteName() !== 'admin.index' ?: 'active' }}">
<a href="{{ route('admin.index') }}">
<i class="fa fa-home"></i> <span>概况</span>
<i class="fa fa-home"></i> <span>面板概况</span>
</a>
</li>
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.settings') ?: 'active' }}">
<a href="{{ route('admin.settings')}}">
<i class="fa fa-wrench"></i> <span>设置</span>
<i class="fa fa-wrench"></i> <span>面板设置</span>
</a>
</li>
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.api') ?: 'active' }}">
Expand Down

0 comments on commit abec90c

Please sign in to comment.