This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from ilworkcn/v1.9.0_official
V1.9.0 official 002 update
- Loading branch information
Showing
50 changed files
with
1,052 additions
and
1,020 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
{{-- Pterodactyl - Panel --}} | ||
{{-- Pterodactyl - Panel which Sinicizated by iLwork.CN STUDIO --}} | ||
{{-- Copyright (c) 2015 - 2017 Dane Everitt <[email protected]> --}} | ||
{{-- Simplified Chinese Translation Copyright (c) 2021 - 2022 Ice Ling <[email protected]> --}} | ||
|
||
{{-- This software is licensed under the terms of the MIT license. --}} | ||
{{-- https://opensource.org/licenses/MIT --}} | ||
@extends('layouts.admin') | ||
|
||
@section('title') | ||
Database Hosts | ||
数据库主机 | ||
@endsection | ||
|
||
@section('content-header') | ||
<h1>Database Hosts<small>Database hosts that servers can have databases created on.</small></h1> | ||
<h1>数据库主机<small>服务器可以在其上创建数据库的数据库主机。</small></h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="{{ route('admin.index') }}">Admin</a></li> | ||
<li class="active">Database Hosts</li> | ||
<li><a href="{{ route('admin.index') }}">管理</a></li> | ||
<li class="active">数据库主机</li> | ||
</ol> | ||
@endsection | ||
|
||
|
@@ -22,22 +23,22 @@ | |
<div class="col-xs-12"> | ||
<div class="box box-primary"> | ||
<div class="box-header with-border"> | ||
<h3 class="box-title">Host List</h3> | ||
<h3 class="box-title">主机列表</h3> | ||
<div class="box-tools"> | ||
<button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#newHostModal">Create New</button> | ||
<button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#newHostModal">新建</button> | ||
</div> | ||
</div> | ||
<div class="box-body table-responsive no-padding"> | ||
<table class="table table-hover"> | ||
<tbody> | ||
<tr> | ||
<th>ID</th> | ||
<th>Name</th> | ||
<th>Host</th> | ||
<th>Port</th> | ||
<th>Username</th> | ||
<th class="text-center">Databases</th> | ||
<th class="text-center">Node</th> | ||
<th>名称</th> | ||
<th>地址</th> | ||
<th>端口</th> | ||
<th>用户名</th> | ||
<th class="text-center">数据库</th> | ||
<th class="text-center">节点</th> | ||
</tr> | ||
@foreach ($hosts as $host) | ||
<tr> | ||
|
@@ -51,7 +52,7 @@ | |
@if(! is_null($host->node)) | ||
<a href="{{ route('admin.nodes.view', $host->node->id) }}">{{ $host->node->name }}</a> | ||
@else | ||
<span class="label label-default">None</span> | ||
<span class="label label-default">无</span> | ||
@endif | ||
</td> | ||
</tr> | ||
|
@@ -68,42 +69,42 @@ | |
<form action="{{ route('admin.databases') }}" method="POST"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
<h4 class="modal-title">Create New Database Host</h4> | ||
<h4 class="modal-title">新建数据库主机</h4> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="form-group"> | ||
<label for="pName" class="form-label">Name</label> | ||
<label for="pName" class="form-label">名称</label> | ||
<input type="text" name="name" id="pName" class="form-control" /> | ||
<p class="text-muted small">A short identifier used to distinguish this location from others. Must be between 1 and 60 characters, for example, <code>us.nyc.lvl3</code>.</p> | ||
<p class="text-muted small">用于将此主机与其他主机区分开来的简短标识符。 必须介于 1 到 60 个字符之间,例如, <code>us.nyc.lvl3</code>.</p> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<label for="pHost" class="form-label">Host</label> | ||
<label for="pHost" class="form-label">地址</label> | ||
<input type="text" name="host" id="pHost" class="form-control" /> | ||
<p class="text-muted small">The IP address or FQDN that should be used when attempting to connect to this MySQL host <em>from the panel</em> to add new databases.</p> | ||
<p class="text-muted small">尝试连接到此 MySQL 主机时应使用的 IP 地址或域名.</p> | ||
</div> | ||
<div class="col-md-6"> | ||
<label for="pPort" class="form-label">Port</label> | ||
<label for="pPort" class="form-label">端口</label> | ||
<input type="text" name="port" id="pPort" class="form-control" value="3306"/> | ||
<p class="text-muted small">The port that MySQL is running on for this host.</p> | ||
<p class="text-muted small">MYSQL 主机运行开放的端口.</p> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<label for="pUsername" class="form-label">Username</label> | ||
<label for="pUsername" class="form-label">用户名</label> | ||
<input type="text" name="username" id="pUsername" class="form-control" /> | ||
<p class="text-muted small">The username of an account that has enough permissions to create new users and databases on the system.</p> | ||
<p class="text-muted small">具有足够权限在系统上创建新用户和数据库的帐户的用户名.</p> | ||
</div> | ||
<div class="col-md-6"> | ||
<label for="pPassword" class="form-label">Password</label> | ||
<label for="pPassword" class="form-label">密码</label> | ||
<input type="password" name="password" id="pPassword" class="form-control" /> | ||
<p class="text-muted small">The password to the account defined.</p> | ||
<p class="text-muted small">上方阁下填写的账户的密码.</p> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="pNodeId" class="form-label">Linked Node</label> | ||
<label for="pNodeId" class="form-label">关联的节点服务器</label> | ||
<select name="node_id" id="pNodeId" class="form-control"> | ||
<option value="">None</option> | ||
<option value="">无</option> | ||
@foreach($locations as $location) | ||
<optgroup label="{{ $location->short }}"> | ||
@foreach($location->nodes as $node) | ||
|
@@ -112,14 +113,14 @@ | |
</optgroup> | ||
@endforeach | ||
</select> | ||
<p class="text-muted small">This setting does nothing other than default to this database host when adding a database to a server on the selected node.</p> | ||
<p class="text-muted small">此设置除了将数据库默认添加到所选节点上的服务器以外没有任何作用.</p> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<p class="text-danger small text-left">The account defined for this database host <strong>must</strong> have the <code>WITH GRANT OPTION</code> permission. If the defined account does not have this permission requests to create databases <em>will</em> fail. <strong>Do not use the same account details for MySQL that you have defined for this panel.</strong></p> | ||
<p class="text-danger small text-left">连接此数据库主机所使用的账户 <strong>必须</strong> 具有 <code>WITH GRANT OPTION</code> 权限. 如果账户没有此权限将 <em>无法</em> 成功建立数据库. <strong>不要为 MySQL 使用您为此面板使用的相同帐户详细信息.</strong></p> | ||
{!! csrf_field() !!} | ||
<button type="button" class="btn btn-default btn-sm pull-left" data-dismiss="modal">Cancel</button> | ||
<button type="submit" class="btn btn-success btn-sm">Create</button> | ||
<button type="button" class="btn btn-default btn-sm pull-left" data-dismiss="modal">取消</button> | ||
<button type="submit" class="btn btn-success btn-sm">创建</button> | ||
</div> | ||
</form> | ||
</div> | ||
|
Oops, something went wrong.