]> acesimba.cloud Git - studybase.git/commitdiff
Initial import
authorroot <root@localhost.localdomain>
Sun, 17 May 2026 13:34:50 +0000 (21:34 +0800)
committerroot <root@localhost.localdomain>
Sun, 17 May 2026 13:34:50 +0000 (21:34 +0800)
app.py
custom/conf/app.ini [new file with mode: 0644]
templates/index.html
templates/papers/index.html [new file with mode: 0644]
templates/questions/index.html [new file with mode: 0644]
templates/settings/index.html [new file with mode: 0644]
templates/subject/index.html [new file with mode: 0644]

diff --git a/app.py b/app.py
index bf730646620288c423776c3e57eebafd749113f6..cc2b3154cbfa7d3bd6db62d3635fe08a9ddb82d1 100644 (file)
--- a/app.py
+++ b/app.py
@@ -2,10 +2,30 @@ from flask import Flask, render_template
 
 app = Flask(__name__)
 
+# 首页
 @app.route('/')
 def index():
     return render_template('index.html')
 
+# 科目面板
+@app.route('/subject/')
+def subject():
+    return render_template('subject/index.html')
+
+# 题目管理
+@app.route('/questions/')
+def questions():
+    return render_template('questions/index.html')
+
+# 试卷管理
+@app.route('/papers/')
+def papers():
+    return render_template('papers/index.html')
+
+# 系统设定
+@app.route('/settings/')
+def settings():
+    return render_template('settings/index.html')
+
 if __name__ == '__main__':
-    # host='0.0.0.0' 允许公网访问,port=5000 指定端口
     app.run(host='0.0.0.0', port=5000)
\ No newline at end of file
diff --git a/custom/conf/app.ini b/custom/conf/app.ini
new file mode 100644 (file)
index 0000000..b3e5be5
--- /dev/null
@@ -0,0 +1,2 @@
+[server]
+LOCAL_ROOT_URL = http://localhost:4999/
index 2c9c298af5aaa5c5bb7652852190d697a24a1e42..1e601347c9ed0776e8167715f384ff3b1c38aa22 100644 (file)
     <div class="navbar">错题智能整理系统</div>
 
     <div class="container">
-        <a href="#" class="card card-subject"><span class="icon-num">①</span> 科目面板</a>
-        <a href="#" class="card card-question"><span class="icon-num">②</span> 题目管理</a>
-        <a href="#" class="card card-paper"><span class="icon-num">③</span> 试卷管理</a>
-        <a href="#" class="card card-setting"><span class="icon-num">④</span> 系统设定</a>
+        <a href="/subject/" class="card card-subject"><span class="icon-num">①</span> 科目面板</a>
+        <a href="/questions/" class="card card-question"><span class="icon-num">②</span> 题目管理</a>
+        <a href="/papers/" class="card card-paper"><span class="icon-num">③</span> 试卷管理</a>
+        <a href="/settings/" class="card card-setting"><span class="icon-num">④</span> 系统设定</a>
     </div>
 </body>
 </html>
diff --git a/templates/papers/index.html b/templates/papers/index.html
new file mode 100644 (file)
index 0000000..65fb4ab
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="zh">
+<head>
+    <meta charset="UTF-8">
+    <title>试卷管理 - 错题系统</title>
+    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
+    <style>
+        .sub-container { padding: 50px; text-align: center; }
+        .back-btn { display: inline-block; margin-top: 20px; padding: 10px 20px; background: #666; color: white; text-decoration: none; border-radius: 5px; }
+    </style>
+</head>
+<body>
+    <div class="navbar">试卷管理</div>
+    <div class="sub-container">
+        <h2>这里是试卷管理内容区域</h2>
+        <p>正在从原 Python 程序迁移逻辑...</p>
+        <a href="/" class="back-btn">返回首页</a>
+    </div>
+</body>
+</html>
diff --git a/templates/questions/index.html b/templates/questions/index.html
new file mode 100644 (file)
index 0000000..4b36bab
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="zh">
+<head>
+    <meta charset="UTF-8">
+    <title>科目面板 - 错题系统</title>
+    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
+    <style>
+        .sub-container { padding: 50px; text-align: center; }
+        .back-btn { display: inline-block; margin-top: 20px; padding: 10px 20px; background: #666; color: white; text-decoration: none; border-radius: 5px; }
+    </style>
+</head>
+<body>
+    <div class="navbar">科目面板</div>
+    <div class="sub-container">
+        <h2>这里是科目面板内容区域</h2>
+        <p>正在从原 Python 程序迁移逻辑...</p>
+        <a href="/" class="back-btn">返回首页</a>
+    </div>
+</body>
+</html>
diff --git a/templates/settings/index.html b/templates/settings/index.html
new file mode 100644 (file)
index 0000000..d2097d1
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="zh">
+<head>
+    <meta charset="UTF-8">
+    <title>系统设定 - 错题系统</title>
+    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
+    <style>
+        .sub-container { padding: 50px; text-align: center; }
+        .back-btn { display: inline-block; margin-top: 20px; padding: 10px 20px; background: #666; color: white; text-decoration: none; border-radius: 5px; }
+    </style>
+</head>
+<body>
+    <div class="navbar">系统设定</div>
+    <div class="sub-container">
+        <h2>这里是系统设定内容区域</h2>
+        <p>正在从原 Python 程序迁移逻辑...</p>
+        <a href="/" class="back-btn">返回首页</a>
+    </div>
+</body>
+</html>
diff --git a/templates/subject/index.html b/templates/subject/index.html
new file mode 100644 (file)
index 0000000..2f8730b
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="zh">
+<head>
+    <meta charset="UTF-8">
+    <title>科目首页 - 错题系统</title>
+    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
+    <style>
+        .sub-container { padding: 50px; text-align: center; }
+        .back-btn { display: inline-block; margin-top: 20px; padding: 10px 20px; background: #666; color: white; text-decoration: none; border-radius: 5px; }
+    </style>
+</head>
+<body>
+    <div class="navbar">科目首页</div>
+    <div class="sub-container">
+        <h2>这里是科目首页内容区域</h2>
+        <p>正在从原 Python 程序迁移逻辑...</p>
+        <a href="/" class="back-btn">返回首页</a>
+    </div>
+</body>
+</html>