mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-20 05:43:41 -05:00
add some new admin page routes
This commit is contained in:
parent
f316d89e9d
commit
5f1f154789
1 changed files with 21 additions and 0 deletions
21
app.py
21
app.py
|
@ -227,6 +227,11 @@ def index():
|
||||||
def information():
|
def information():
|
||||||
return render_template('admin/categories/instance.html')
|
return render_template('admin/categories/instance.html')
|
||||||
|
|
||||||
|
@admin_bp.route('/accessibility/', methods=['GET', 'POST'])
|
||||||
|
@loginRequired
|
||||||
|
def accessibility():
|
||||||
|
return render_template('admin/categories/accessibility.html')
|
||||||
|
|
||||||
@admin_bp.route('/general/', methods=['GET', 'POST'])
|
@admin_bp.route('/general/', methods=['GET', 'POST'])
|
||||||
@loginRequired
|
@loginRequired
|
||||||
def general():
|
def general():
|
||||||
|
@ -237,6 +242,11 @@ def general():
|
||||||
def customize():
|
def customize():
|
||||||
return render_template('admin/categories/customize.html')
|
return render_template('admin/categories/customize.html')
|
||||||
|
|
||||||
|
@admin_bp.route('/antispam/', methods=['GET', 'POST'])
|
||||||
|
@loginRequired
|
||||||
|
def antispam():
|
||||||
|
return render_template('admin/categories/antispam.html')
|
||||||
|
|
||||||
@admin_bp.route('/emojis/', methods=['GET', 'POST'])
|
@admin_bp.route('/emojis/', methods=['GET', 'POST'])
|
||||||
@loginRequired
|
@loginRequired
|
||||||
def emojis():
|
def emojis():
|
||||||
|
@ -274,6 +284,17 @@ def blacklist():
|
||||||
|
|
||||||
return render_template('admin/categories/blacklist.html', blacklist=blacklist)
|
return render_template('admin/categories/blacklist.html', blacklist=blacklist)
|
||||||
|
|
||||||
|
# TODO: implement deleting exports
|
||||||
|
|
||||||
|
@admin_bp.route('/import-export/', methods=['GET'])
|
||||||
|
@loginRequired
|
||||||
|
def importExport():
|
||||||
|
if os.path.exists(const.exportsFile):
|
||||||
|
exports = func.loadJSON(const.exportsFile)
|
||||||
|
else:
|
||||||
|
exports = None
|
||||||
|
return render_template('admin/categories/import.html', exports=exports)
|
||||||
|
|
||||||
# TODO: implement first-launch setup route
|
# TODO: implement first-launch setup route
|
||||||
"""
|
"""
|
||||||
@admin_bp.route('/post-install/', methods=['GET', 'POST'])
|
@admin_bp.route('/post-install/', methods=['GET', 'POST'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue