diff --git a/web/admin/control/__init__.py b/web/admin/control/__init__.py new file mode 100644 index 000000000..bf865e5f8 --- /dev/null +++ b/web/admin/control/__init__.py @@ -0,0 +1,17 @@ +# coding:utf-8 + +# --------------------------------------------------------------------------------- +# MW-Linux面板 +# --------------------------------------------------------------------------------- +# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved. +# --------------------------------------------------------------------------------- +# Author: midoks +# --------------------------------------------------------------------------------- + + +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={}) \ No newline at end of file diff --git a/web/admin/crontab/__init__.py b/web/admin/crontab/__init__.py new file mode 100644 index 000000000..b69e725cc --- /dev/null +++ b/web/admin/crontab/__init__.py @@ -0,0 +1,17 @@ +# coding:utf-8 + +# --------------------------------------------------------------------------------- +# MW-Linux面板 +# --------------------------------------------------------------------------------- +# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved. +# --------------------------------------------------------------------------------- +# Author: midoks +# --------------------------------------------------------------------------------- + + +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={}) \ No newline at end of file diff --git a/web/admin/firewall/__init__.py b/web/admin/firewall/__init__.py new file mode 100644 index 000000000..e1414fa71 --- /dev/null +++ b/web/admin/firewall/__init__.py @@ -0,0 +1,17 @@ +# coding:utf-8 + +# --------------------------------------------------------------------------------- +# MW-Linux面板 +# --------------------------------------------------------------------------------- +# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved. +# --------------------------------------------------------------------------------- +# Author: midoks +# --------------------------------------------------------------------------------- + + +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={}) \ No newline at end of file diff --git a/web/admin/plugins/__init__.py b/web/admin/plugins/__init__.py new file mode 100644 index 000000000..5349cc527 --- /dev/null +++ b/web/admin/plugins/__init__.py @@ -0,0 +1,17 @@ +# coding:utf-8 + +# --------------------------------------------------------------------------------- +# MW-Linux面板 +# --------------------------------------------------------------------------------- +# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved. +# --------------------------------------------------------------------------------- +# Author: midoks +# --------------------------------------------------------------------------------- + + +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={}) \ No newline at end of file diff --git a/web/admin/soft/__init__.py b/web/admin/soft/__init__.py new file mode 100644 index 000000000..d3d9654f5 --- /dev/null +++ b/web/admin/soft/__init__.py @@ -0,0 +1,17 @@ +# coding:utf-8 + +# --------------------------------------------------------------------------------- +# MW-Linux面板 +# --------------------------------------------------------------------------------- +# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved. +# --------------------------------------------------------------------------------- +# Author: midoks +# --------------------------------------------------------------------------------- + + +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={}) \ No newline at end of file diff --git a/web/admin/submodules.py b/web/admin/submodules.py index 4f53d3a96..8c5cc4e8d 100644 --- a/web/admin/submodules.py +++ b/web/admin/submodules.py @@ -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, ] diff --git a/web/templates/default/layout.html b/web/templates/default/layout.html index 52f9fce01..205d8f6ea 100755 --- a/web/templates/default/layout.html +++ b/web/templates/default/layout.html @@ -41,18 +41,18 @@