diff --git a/app.py b/app.py
index 4874d3ab5..dc6818f3d 100644
--- a/app.py
+++ b/app.py
@@ -1,6 +1,11 @@
from flask import Flask
# from flask import Blueprint,render_template
-from views import dashboard, site, files, soft
+from views import dashboard
+from views import site
+from views import files
+from views import soft
+from views import config
+from views import plugins
app = Flask(__name__)
app.debug = True
@@ -9,9 +14,12 @@ DEFAULT_MODULES = (
(dashboard, "/"),
(site, "/site"),
(files, "/files"),
- (soft, "/soft")
+ (soft, "/soft"),
+ (config, "/config"),
+ (plugins, "/plugins"),
)
+
def setting_modules(app, modules):
for module, url_prefix in modules:
app.register_blueprint(module, url_prefix=url_prefix)
@@ -20,4 +28,4 @@ setting_modules(app, DEFAULT_MODULES)
if __name__ == "__main__":
- app.run()
\ No newline at end of file
+ app.run()
diff --git a/start.sh b/start.sh
index e0232300e..3978f246b 100755
--- a/start.sh
+++ b/start.sh
@@ -1,6 +1,5 @@
#!/bin/sh
-DEBUG=True
gunicorn -b 127.0.0.1:7200 app:app
#open "http://127.0.0.1:7200"
\ No newline at end of file
diff --git a/templates/default/config.html b/templates/default/config.html
index d0ff2db39..6d5082158 100755
--- a/templates/default/config.html
+++ b/templates/default/config.html
@@ -1,29 +1,32 @@
-$def with (data)
+{% extends "default/layout.html" %}
+
+{% block content %}
+
-
$data['lan']['I1']
+
关闭面板
-
$data['lan']['I2']
+
自动更新
-
$data['lan']['I3']
+
面板SSL
@@ -33,11 +36,11 @@ $def with (data)
-
$data['lan']['C1']
+ 设置
-
$data['lan']['C3']
+
为了提高安全,请修改别名、默认端口、面板用户和密码!
- $data['lan']['S1'] $data['lan']['S2'] $data['lan']['S3'] $data['lan']['S4']
-
-
-
+ 系统: $data['lan']['S2'] 已不间断运行: $data['lan']['S4']
+
+
+
diff --git a/templates/default/layout.html b/templates/default/layout.html
index 38472f951..a2e567a37 100755
--- a/templates/default/layout.html
+++ b/templates/default/layout.html
@@ -43,7 +43,6 @@
$web.ctx.session.config['sites_path']
-
diff --git a/templates/default/soft.html b/templates/default/soft.html
index c3317cda1..f6db82de1 100755
--- a/templates/default/soft.html
+++ b/templates/default/soft.html
@@ -1,9 +1,12 @@
+{% extends "default/layout.html" %}
+
+{% block content %}