mirror of https://github.com/midoks/mdserver-web
pull/109/head
parent
812ad14374
commit
3ba534e41f
Before Width: | Height: | Size: 1.1 KiB |
@ -1,57 +0,0 @@ |
||||
<div class="bt-form"> |
||||
<div class="bt-w-main"> |
||||
<div class="bt-w-menu"> |
||||
<p class="bgw" onclick="readme();">插件说明</p> |
||||
<p onclick="infojson();">INFO说明</p> |
||||
<p onclick="indexPy();">index.py说明</p> |
||||
</div> |
||||
|
||||
<div class="bt-w-con pd15"> |
||||
<div class="soft-man-con v0"> |
||||
<div><p>在每一个插件中,都必须包含一个info.json文件,格式如下:</p><br/></div> |
||||
<div>123</div> |
||||
</div> |
||||
|
||||
<div class="soft-man-con v1"> |
||||
<div><p>在每一个插件中,都必须包含一个info.json文件,格式如下:</p><br/></div> |
||||
<div><pre>{ |
||||
"title": "插件开发说明", |
||||
"tip": "soft", |
||||
"name": "readme", |
||||
"type": "扩展", |
||||
"ps": "(mdserver-web)插件产开发说明,每个版本可能有所变化!", |
||||
"versions": "0.1", |
||||
"shell": "install.sh", |
||||
"checks": "server/readme", |
||||
"path": "server/readme", |
||||
"author": "mdserver-web", |
||||
"home": "github.com/midoks/mdserver-web", |
||||
"date": "2018-11-30", |
||||
"pid": "5" |
||||
}</pre></div> |
||||
</div> |
||||
|
||||
<div class="soft-man-con v2"> |
||||
<div><p>在每一个插件中,都必须包含一个index.py文件</p><br/></div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
<script type="text/javascript"> |
||||
|
||||
function readme() { |
||||
$('.bt-w-main .soft-man-con').hide(); |
||||
$('.bt-w-main .v0').show(); |
||||
} |
||||
|
||||
function infojson() { |
||||
$('.bt-w-main .soft-man-con').hide(); |
||||
$('.bt-w-main .v1').show(); |
||||
} |
||||
|
||||
function indexPy() { |
||||
$('.bt-w-main .soft-man-con').hide(); |
||||
$('.bt-w-main .v2').show(); |
||||
} |
||||
</script> |
@ -1,20 +0,0 @@ |
||||
# coding: utf-8 |
||||
|
||||
import time |
||||
import random |
||||
import os |
||||
import json |
||||
import re |
||||
import sys |
||||
|
||||
sys.path.append(os.getcwd() + "/class/core") |
||||
import public |
||||
|
||||
|
||||
def status(): |
||||
return 'start' |
||||
|
||||
if __name__ == "__main__": |
||||
func = sys.argv[1] |
||||
if func == 'status': |
||||
print status() |
@ -1,15 +0,0 @@ |
||||
{ |
||||
"title":"开发说明", |
||||
"tip":"soft", |
||||
"name":"readme", |
||||
"type":"扩展", |
||||
"ps":"[mdserver-web]插件产开发说明,每个版本可能有所变化!", |
||||
"versions": "0.1", |
||||
"shell":"install.sh", |
||||
"checks":"server/readme", |
||||
"path":"server/readme", |
||||
"author":"mdserver-web", |
||||
"home":"https://github.com/midoks/mdserver-web", |
||||
"date":"2018-11-30", |
||||
"pid":"5" |
||||
} |
@ -1,30 +0,0 @@ |
||||
#!/bin/bash |
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin |
||||
export PATH |
||||
|
||||
curPath=`pwd` |
||||
rootPath=$(dirname "$curPath") |
||||
rootPath=$(dirname "$rootPath") |
||||
serverPath=$(dirname "$rootPath") |
||||
|
||||
install_tmp=${rootPath}/tmp/bt_install.pl |
||||
|
||||
Install_readme() |
||||
{ |
||||
mkdir -p ${serverPath}/readme |
||||
echo "${1}" > ${serverPath}/readme/version.pl |
||||
echo '安装完成' > $install_tmp |
||||
} |
||||
|
||||
Uninstall_readme() |
||||
{ |
||||
rm -rf ${serverPath}/readme |
||||
echo '卸载完成' > $install_tmp |
||||
} |
||||
|
||||
action=$1 |
||||
if [ "${1}" == 'install' ];then |
||||
Install_readme $2 |
||||
else |
||||
Uninstall_readme $2 |
||||
fi |
Loading…
Reference in new issue