update
This commit is contained in:
parent
76199a20a4
commit
b92cfdeade
|
|
@ -0,0 +1,17 @@
|
|||
# coding:utf-8
|
||||
|
||||
# ---------------------------------------------------------------------------------
|
||||
# MW-Linux面板
|
||||
# ---------------------------------------------------------------------------------
|
||||
# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved.
|
||||
# ---------------------------------------------------------------------------------
|
||||
# Author: midoks <midoks@163.com>
|
||||
# ---------------------------------------------------------------------------------
|
||||
|
||||
|
||||
from flask import Blueprint, render_template
|
||||
|
||||
blueprint = Blueprint('control', __name__, url_prefix='/control', template_folder='../../templates/default')
|
||||
@blueprint.route('/index', endpoint='index')
|
||||
def index():
|
||||
return render_template('control.html', data={})
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
# coding:utf-8
|
||||
|
||||
# ---------------------------------------------------------------------------------
|
||||
# MW-Linux面板
|
||||
# ---------------------------------------------------------------------------------
|
||||
# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved.
|
||||
# ---------------------------------------------------------------------------------
|
||||
# Author: midoks <midoks@163.com>
|
||||
# ---------------------------------------------------------------------------------
|
||||
|
||||
|
||||
from flask import Blueprint, render_template
|
||||
|
||||
blueprint = Blueprint('crontab', __name__, url_prefix='/crontab', template_folder='../../templates/default')
|
||||
@blueprint.route('/index', endpoint='index')
|
||||
def index():
|
||||
return render_template('crontab.html', data={})
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
# coding:utf-8
|
||||
|
||||
# ---------------------------------------------------------------------------------
|
||||
# MW-Linux面板
|
||||
# ---------------------------------------------------------------------------------
|
||||
# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved.
|
||||
# ---------------------------------------------------------------------------------
|
||||
# Author: midoks <midoks@163.com>
|
||||
# ---------------------------------------------------------------------------------
|
||||
|
||||
|
||||
from flask import Blueprint, render_template
|
||||
|
||||
blueprint = Blueprint('firewall', __name__, url_prefix='/firewall', template_folder='../../templates/default')
|
||||
@blueprint.route('/index', endpoint='index')
|
||||
def index():
|
||||
return render_template('firewall.html', data={})
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
# coding:utf-8
|
||||
|
||||
# ---------------------------------------------------------------------------------
|
||||
# MW-Linux面板
|
||||
# ---------------------------------------------------------------------------------
|
||||
# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved.
|
||||
# ---------------------------------------------------------------------------------
|
||||
# Author: midoks <midoks@163.com>
|
||||
# ---------------------------------------------------------------------------------
|
||||
|
||||
|
||||
from flask import Blueprint, render_template
|
||||
|
||||
blueprint = Blueprint('plugins', __name__, url_prefix='/plugins', template_folder='../../templates/default')
|
||||
@blueprint.route('/index', endpoint='index')
|
||||
def index():
|
||||
return render_template('plugins.html', data={})
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
# coding:utf-8
|
||||
|
||||
# ---------------------------------------------------------------------------------
|
||||
# MW-Linux面板
|
||||
# ---------------------------------------------------------------------------------
|
||||
# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved.
|
||||
# ---------------------------------------------------------------------------------
|
||||
# Author: midoks <midoks@163.com>
|
||||
# ---------------------------------------------------------------------------------
|
||||
|
||||
|
||||
from flask import Blueprint, render_template
|
||||
|
||||
blueprint = Blueprint('soft', __name__, url_prefix='/soft', template_folder='../../templates/default')
|
||||
@blueprint.route('/index', endpoint='index')
|
||||
def index():
|
||||
return render_template('soft.html', data={})
|
||||
|
|
@ -5,6 +5,11 @@ from .task import blueprint as TaskModule
|
|||
from .config import blueprint as ConfigModule
|
||||
from .logs import blueprint as LogsModule
|
||||
from .files import blueprint as FilesModule
|
||||
from .soft import blueprint as SoftModule
|
||||
from .plugins import blueprint as PluginsModule
|
||||
from .crontab import blueprint as CrontabModule
|
||||
from .firewall import blueprint as FirewallModule
|
||||
from .control import blueprint as ControlModule
|
||||
|
||||
def get_submodules():
|
||||
return [
|
||||
|
|
@ -13,5 +18,10 @@ def get_submodules():
|
|||
TaskModule,
|
||||
LogsModule,
|
||||
FilesModule,
|
||||
ConfigModule
|
||||
SoftModule,
|
||||
PluginsModule,
|
||||
CrontabModule,
|
||||
FirewallModule,
|
||||
ControlModule,
|
||||
ConfigModule,
|
||||
]
|
||||
|
|
|
|||
|
|
@ -41,18 +41,18 @@
|
|||
<ul class="menu">
|
||||
<li id="memuA"><a class="menu_home" href="/">首页</a></li>
|
||||
<li id="memuAsite"><a class="menu_web" href="/site/index">网站</a></li>
|
||||
<li id="memuAcontrol"><a class="menu_control" href="/control">监控</a></li>
|
||||
<li id="memuAfirewall"><a class="menu_firewall" href="/firewall">安全</a></li>
|
||||
<li id="memuAcontrol"><a class="menu_control" href="/control/index">监控</a></li>
|
||||
<li id="memuAfirewall"><a class="menu_firewall" href="/firewall/index">安全</a></li>
|
||||
<li id="memuAfiles"><a class="menu_folder" href="/files/index">文件</a></li>
|
||||
<li id="memuAlogs"><a class="menu_logs" href="/logs/index">日志</a></li>
|
||||
<li id="memuAcrontab"><a class="menu_day" href="/crontab">计划任务</a></li>
|
||||
<li id="memuAcrontab"><a class="menu_day" href="/crontab/index">计划任务</a></li>
|
||||
<!-- 插件设置的菜单 -->
|
||||
{% for menu in data['hook_menu'] %}
|
||||
<li id="memuAplugins_{{menu['name']}}">
|
||||
<a class="menu_plugin_{{menu['name']}}" href="/plugins/menu?tag={{menu['name']}}">{{menu['title']}}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
<li id="memuAsoft"><a class="menu_soft" href="/soft">软件管理</a><span class="softnum">1</span></li>
|
||||
<li id="memuAsoft"><a class="menu_soft" href="/soft/index">软件管理</a><span class="softnum">1</span></li>
|
||||
<li id="memuAconfig"><a class="menu_set" href="/config/index">面板设置</a></li>
|
||||
<li><a class="menu_exit" href="javascript:;" id="signout">退出</a></li>
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Reference in New Issue