mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2026-02-21 15:31:12 +08:00
界面优化
This commit is contained in:
parent
5ba7c324af
commit
efd18676f3
@ -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' => [
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -73,6 +73,10 @@
|
||||
@media (max-width: 480px) {
|
||||
.account-type-card {
|
||||
width: 100%;
|
||||
height: 78px;
|
||||
}
|
||||
.account-type-card .desc {
|
||||
-webkit-line-clamp: 1;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -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>';
|
||||
|
||||
@ -195,7 +195,7 @@ $(document).ready(function(){
|
||||
}
|
||||
},
|
||||
{
|
||||
field: '',
|
||||
field: 'action',
|
||||
title: '操作',
|
||||
formatter: function(value, row, index) {
|
||||
var html = '';
|
||||
|
||||
@ -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>';
|
||||
|
||||
@ -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>';
|
||||
|
||||
@ -132,7 +132,7 @@ $(document).ready(function(){
|
||||
}
|
||||
},
|
||||
{
|
||||
field: '',
|
||||
field: 'action',
|
||||
title: '操作',
|
||||
formatter: function(value, row, index) {
|
||||
var html = '';
|
||||
|
||||
@ -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> ';
|
||||
|
||||
@ -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>';
|
||||
|
||||
@ -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>';
|
||||
|
||||
@ -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 '-';
|
||||
|
||||
@ -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> ';
|
||||
|
||||
@ -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>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user