界面优化

This commit is contained in:
net909 2025-06-04 22:52:38 +08:00
parent 5ba7c324af
commit efd18676f3
14 changed files with 23 additions and 13 deletions

View File

@ -370,7 +370,7 @@ class DeployHelper
'name' => 'GoEdge',
'class' => 1,
'icon' => 'waf.png',
'desc' => '',
'desc' => '支持GoEdge与FlexCDN',
'note' => '需要先<a href="https://goedge.cloud/docs/API/Settings.md" target="_blank" rel="noreferrer">开启HTTP API端口</a>',
'tasknote' => '系统会根据关联SSL证书的域名自动更新对应证书',
'inputs' => [

View File

@ -2,6 +2,8 @@
namespace app\utils;
use Exception;
class DnsQueryUtils
{
private static $doh_servers = ['https://dns.alidns.com/resolve', 'https://doh.pub/resolve', 'https://doh.360.cn/resolve'];
@ -10,7 +12,11 @@ class DnsQueryUtils
{
$dns_type = ['A' => DNS_A, 'AAAA' => DNS_AAAA, 'CNAME' => DNS_CNAME, 'MX' => DNS_MX, 'TXT' => DNS_TXT];
if (!array_key_exists($type, $dns_type)) return false;
$list = dns_get_record($domain, $dns_type[$type]);
try{
$list = dns_get_record($domain, $dns_type[$type]);
}catch(Exception $e){
return false;
}
if (!$list || empty($list)) return false;
$result = [];
foreach ($list as $row) {

View File

@ -73,6 +73,10 @@
@media (max-width: 480px) {
.account-type-card {
width: 100%;
height: 78px;
}
.account-type-card .desc {
-webkit-line-clamp: 1;
}
}
</style>

View File

@ -65,7 +65,7 @@ $(document).ready(function(){
title: '添加时间'
},
{
field: '',
field: 'action',
title: '操作',
formatter: function(value, row, index) {
var html = '<a href="/cert/account/edit?deploy=0&id='+row.id+'" class="btn btn-info btn-xs">编辑</a> <a href="javascript:delItem('+row.id+')" class="btn btn-danger btn-xs">删除</a> <a href="/cert/certorder?aid='+row.id+'" class="btn btn-default btn-xs">订单</a>';

View File

@ -195,7 +195,7 @@ $(document).ready(function(){
}
},
{
field: '',
field: 'action',
title: '操作',
formatter: function(value, row, index) {
var html = '';

View File

@ -130,7 +130,7 @@ $(document).ready(function(){
title: '添加时间'
},
{
field: '',
field: 'action',
title: '操作',
formatter: function(value, row, index) {
var html = '<a href="javascript:editframe('+row.id+')" class="btn btn-primary btn-xs">编辑</a> <a href="javascript:delItem('+row.id+')" class="btn btn-danger btn-xs">删除</a>';

View File

@ -65,7 +65,7 @@ $(document).ready(function(){
title: '添加时间'
},
{
field: '',
field: 'action',
title: '操作',
formatter: function(value, row, index) {
var html = '<a href="/cert/account/edit?deploy=1&id='+row.id+'" class="btn btn-info btn-xs">编辑</a> <a href="javascript:delItem('+row.id+')" class="btn btn-danger btn-xs">删除</a> <a href="/cert/deploytask?aid='+row.id+'" class="btn btn-default btn-xs">任务</a>';

View File

@ -132,7 +132,7 @@ $(document).ready(function(){
}
},
{
field: '',
field: 'action',
title: '操作',
formatter: function(value, row, index) {
var html = '';

View File

@ -134,7 +134,7 @@ $(document).ready(function(){
}
},
{
field: '',
field: 'action',
title: '操作',
formatter: function(value, row, index) {
var html = '<a href="/dmonitor/task/info/'+row.id+'" class="btn btn-info btn-xs">切换日志</a>&nbsp;&nbsp;';

View File

@ -130,7 +130,7 @@ $(document).ready(function(){
title: '添加时间'
},
{
field: '',
field: 'action',
title: '操作',
formatter: function(value, row, index) {
var html = '<a href="javascript:editframe('+row.id+')" class="btn btn-info btn-xs">编辑</a> <a href="javascript:delItem('+row.id+')" class="btn btn-danger btn-xs">删除</a>';

View File

@ -271,7 +271,7 @@ $(document).ready(function(){
title: '备注'
},
{
field: '',
field: 'action',
title: '操作',
formatter: function(value, row, index) {
var html = '<a href="/record/'+row.id+'" class="btn btn-success btn-xs" onclick="loading()">解析</a>';

View File

@ -316,7 +316,7 @@ $(document).ready(function(){
}
},
{
field: '',
field: 'action',
title: '操作',
formatter: function(value, row, index) {
if((row.Type == 'NS' || row.Type == 'SOA') && row.Name == '@') return '-';

View File

@ -131,7 +131,7 @@ $(document).ready(function(){
}
},
{
field: '',
field: 'action',
title: '操作',
formatter: function(value, row, index) {
var html = '<a href="javascript:runTask(\''+row.id+'\')" class="btn btn-success btn-xs">手动更新</a>&nbsp;&nbsp;';

View File

@ -174,7 +174,7 @@ $(document).ready(function(){
}
},
{
field: '',
field: 'action',
title: '操作',
formatter: function(value, row, index) {
var html = '<a href="javascript:editframe('+row.id+')" class="btn btn-info btn-xs">编辑</a> <a href="javascript:delItem('+row.id+')" class="btn btn-danger btn-xs">删除</a>';