Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aaPanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
aaPanel
Commits
d3664c1e
Commit
d3664c1e
authored
Jul 13, 2019
by
jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize the ssl application process
parent
2ab75d9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
38 deletions
+11
-38
site.js
BTPanel/static/js/site.js
+11
-38
No files found.
BTPanel/static/js/site.js
View file @
d3664c1e
...
...
@@ -8,16 +8,7 @@ var site = {
}
bt
.
site
.
get_list
(
page
,
search
,
type
,
function
(
rdata
)
{
$
(
'
.dataTables_paginate
'
).
html
(
rdata
.
page
);
//bt.plugin.get_firewall_state(function (fdata) {
var
data
=
rdata
.
data
;
// for (var x = 0; x < data.length; x++) {
// data[x]['firewall'] = false;
// data[x]['waf_setup'] = false;
// if (fdata.status !== false) {
// data[x]['firewall'] = true
// data[x]['waf_setup'] = true
// }
// }
var
_tab
=
bt
.
render
({
table
:
'
#webBody
'
,
columns
:
[
...
...
@@ -69,20 +60,10 @@ var site = {
return
"
<span class='c9 input-edit' onclick=
\"
bt.pub.set_data_by_key('sites','ps',this)
\"
>
"
+
item
.
ps
+
"
</span>
"
;
}
},
/*bt.os == 'Linux' ? {
field: 'id', title: '防火墙', templet: function (item) {
var _check = ' onclick="site.no_firewall(this)"';
if (item.waf_setup) _check = ' onclick="set_site_obj_state(\'' + item.name + '\',\'open\')"';
var _waf = '<input class="btswitch btswitch-ios " ' + _check + ' id="closewaf_' + item.name + '" ' + (item.firewall ? 'checked' : '') + ' type="checkbox">';
_waf += '<label class="btswitch-btn bt-waf-firewall" for="closewaf_' + item.name + '" title="' + bt.get_cookie('serverType') + '防火墙开关"></label>';
return _waf;
}
} : '',*/
{
field
:
'
opt
'
,
width
:
260
,
title
:
lan
.
site
.
operate
,
align
:
'
right
'
,
templet
:
function
(
item
)
{
var
opt
=
''
;
//var _check = ' onclick="site.no_firewall()"';
//if (item.waf_setup)
var
_check
=
'
onclick="site.site_waf(
\'
'
+
item
.
name
+
'
\'
)"
'
;
//if (bt.os == 'Linux') opt += '<a href="javascript:;" ' + _check + ' class="btlink ">'+lan.site.firewalld+'</a> | ';
...
...
@@ -1508,21 +1489,13 @@ var site = {
data
:
data
})
if
(
ret
.
dns_names
.
length
==
0
)
ret
.
dns_names
.
append
(
'
_acme-challenge.bt.cn
'
)
$
(
'
.div_txt_jx
'
).
append
(
bt
.
render_help
([
lan
.
site
.
dns_resolve_tips4
,
lan
.
site
.
dns_resolve_tips2
+
ret
.
fullDomain
[
0
],
lan
.
site
.
dns_resolve_tips3
]));
$
(
'
.div_txt_jx
'
).
append
(
bt
.
render_help
([
lan
.
site
.
dns_resolve_tips4
,
lan
.
site
.
dns_resolve_tips2
+
ret
.
dns_names
[
0
].
acme_name
,
lan
.
site
.
dns_resolve_tips3
]));
$
(
'
.btn_check_txt
'
).
click
(
function
()
{
var
new_data
=
{
siteName
:
web
.
name
,
domains
:
ddata
.
domains
,
updateOf
:
1
,
email
:
ldata
.
email
,
renew
:
'
True
'
,
dnsapi
:
'
dns
'
}
site
.
create_let
(
new_data
,
function
(
ldata
)
{
ddata
[
'
renew
'
]
=
'
True
'
site
.
create_let
(
ddata
,
function
(
ldata
)
{
if
(
ldata
.
status
)
{
b_load
.
close
();
site
.
ssl
.
reload
(
1
);
site
.
reload
()
}
});
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment