pull/109/head
Mr Chen 7 years ago
parent f376f946a8
commit 7c59b1f678
  1. 0
      plugins/deployment/ico.png
  2. BIN
      plugins/mysql/ico.png
  3. 0
      plugins/nginx/ico.png
  4. BIN
      plugins/php/ico.png
  5. BIN
      plugins/php/icon.png
  6. BIN
      plugins/phpguard/ico.png
  7. BIN
      plugins/score/ico.png
  8. BIN
      plugins/vpn/ico-vpn.png
  9. 0
      plugins/vpn/ico.png
  10. 2
      plugins/vpn/info.json
  11. 11
      static/js/soft.js
  12. 21
      views/plugins.py

Before

Width:  |  Height:  |  Size: 553 B

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

Before

Width:  |  Height:  |  Size: 501 B

After

Width:  |  Height:  |  Size: 501 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 987 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -1,7 +1,7 @@
{
"title":"VPN",
"tip":"lib",
"name":"VPN",
"name":"vpn",
"type":"其他插件",
"ps":"科学上网",
"versions":[

@ -1755,6 +1755,7 @@ function GetSList(isdisplay) {
if (istype == 'undefined' || istype == 'null' || !istype) {
istype = '0';
}
type = '&type=' + istype;
var page = '';
if (isdisplay) {
@ -1762,7 +1763,9 @@ function GetSList(isdisplay) {
setCookie('p' + getCookie('softType'), isdisplay);
}
$.post('/plugins/list?' + search + type + page, '', function(rdata) {
var condition = (search + type + page).slice(1);
$.post('/plugins/list?' + condition, '', function(rdata) {
console.log(rdata);
layer.close(loadT);
var tBody = '';
var sBody = '';
@ -1836,7 +1839,9 @@ function GetSList(isdisplay) {
}
sBody += '<tr>' +
'<td><span ' + titleClick + '><img src="/static/img/soft_ico/ico-' + rdata.data[i].name + '.png">' + rdata.data[i].title + ' ' + version + '</span></td>' +
'<td><span ' + titleClick +
'><img src="/plugins/file?name=' + rdata.data[i].name +
'&f=ico.png' + '">' + rdata.data[i].title + ' ' + version + '</span></td>' +
'<td>' + rdata.data[i].ps + '</td>' +
'<td>' + softPath + '</td>' +
'<td>' + state + '</td>' +
@ -1887,7 +1892,7 @@ function GetSList(isdisplay) {
handle = '<a style="color:#C0C0C0;" href="javascript:task();">' + lan.soft.sleep_install + '</a>'
}
pBody += '<tr>' +
'<td><span ' + titleClick + '><img src="/static/img/soft_ico/ico-' + rdata.data[i].name + '.png">' + rdata.data[i].title + '-' + rdata.data[i].versions[n].version + '</span></td>'
'<td><span ' + titleClick + '><img src="/plugins/file?name=' + rdata.data[i].name + "&f=ico.png"+ '">' + rdata.data[i].title + '-' + rdata.data[i].versions[n].version + '</span></td>'
//+'<td>'+rdata.data[i].versions[n].no+'</td>'
//+'<td>'+rdata.data[i].type+'</td>'
+

@ -27,13 +27,20 @@ def index():
@plugins.route("/file", methods=['GET'])
def file():
file = request.args.get('f', '')
print file
return jsonify({})
# if file:
# print file
# else:
# print "error"
name = request.args.get('name', '')
if name.strip() == '':
return ''
f = request.args.get('f', '')
if f.strip() == '':
return ''
file = "plugins/" + name + "/" + f
if not os.path.exists(file):
return ""
c = public.readFile(file)
return c
@plugins.route("/list", methods=['GET', 'POST'])

Loading…
Cancel
Save