Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Oct 7, 2018
1 parent b14accd commit 742bb6d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion plugins/mysql/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type":"运行环境",
"ps":"MySQL是一种关系数据库管理系统!",
"versions":[
{"status":false,"version":"1.0"}
{"status":false,"version":"1.0","task": "1"}
],
"shell":"install.sh",
"checks":"/www/server/panel/plugin/safelogin",
Expand Down
22 changes: 15 additions & 7 deletions plugins/nginx/info.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
{
"title":"Nginx",
"tip":"lib",
"tip":"soft",
"name":"nginx",
"type":"其他插件",
"ps":"轻量级,占有内存少,并发能力强",
"versions":[
{"status":false,"version":"1.0"}
],
"shell":"install.sh",
"checks":"/www/server/panel/plugin/safelogin",
"author":"midoks",
"home":"http://www.bt.cn/bbs",
"author":"伊戈尔·赛索耶夫",
"home":"https://www.nginx.org",
"path": "/www/server/nginx",
"date":"2017-11-24",
"default":true,
"display":1,
"pid": "1"
"pid": "1",
"update": ["1.14.0", "1.12.2", "1.8.1", "1.15.3", "-Tengine2.2.2", "openresty"],
"versions": [
{"status": false, "version": "1.14", "run": false, "no": "", "task": "1"},
{"status": false, "version": "1.14", "run": false, "no": "", "task": "1"},
{"status": false, "version": "1.12", "run": false, "no": "", "task": "1"},
{"status": false, "version": "1.8", "run": false, "no": "", "task": "1"},
{"status": false, "version": "1.15", "run": false, "no": "", "task": "1"},
{"status": false, "version": "-Tengine2.2", "run": false, "no": "", "task": "1"},
{"status": false, "version": "openresty", "run": false, "no": "", "task": "1"}
]
}
4 changes: 0 additions & 4 deletions static/js/soft.js
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,6 @@ function GetSList(isdisplay) {
var checked = '';

checked = rdata.data[i].display ? 'checked' : '';
console.log(len);
for (var j = 0; j < len; j++) {
if (rdata.data[i].versions[j].status) continue;
version_info += rdata.data[i].versions[j].version + '|';
Expand All @@ -1802,9 +1801,6 @@ function GetSList(isdisplay) {
version_info = version_info.substring(0, version_info.length - 1);
}

console.log(version_info);

console.log(rdata.data[i]);
var handle = '<a class="btlink" onclick="AddVersion(\'' + rdata.data[i].name + '\',\'' + version_info + '\',\'' + rdata.data[i].tip + '\',this,\'' + rdata.data[i].title + '\')">' + lan.soft.install + '</a>';
var isSetup = false;
if (rdata.data[i].name != 'php') {
Expand Down

0 comments on commit 742bb6d

Please sign in to comment.