添加插件管理功能,显示插件的相关信息。
This commit is contained in:
@@ -11,7 +11,7 @@ LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
# 机器人管理页面
|
||||
@plugin_routes.route('/plugins')
|
||||
@plugin_routes.route('/plugins_manage')
|
||||
@login_required
|
||||
def robot_management():
|
||||
return render_template('plugins_manage.html')
|
||||
|
||||
@@ -122,7 +122,8 @@ class DashboardServer:
|
||||
from admin.dashboard.blueprints.stats import stats_bp
|
||||
from admin.dashboard.blueprints.system import system_bp
|
||||
from admin.dashboard.blueprints.main import main_bp
|
||||
|
||||
from admin.dashboard.blueprints.plugin_routes import plugin_routes
|
||||
|
||||
# 将服务器实例存储在应用上下文中
|
||||
app.dashboard_server = self
|
||||
|
||||
@@ -134,6 +135,7 @@ class DashboardServer:
|
||||
app.register_blueprint(messages_bp)
|
||||
app.register_blueprint(stats_bp)
|
||||
app.register_blueprint(system_bp)
|
||||
app.register_blueprint(plugin_routes)
|
||||
|
||||
self.logger.info("所有蓝图已注册")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user