pull/109/head
midoks 7 years ago
parent 427ad56fee
commit 0180a6d498
  1. 3
      app.py
  2. 8
      class/public.py
  3. 8
      templates/default/crontab.html
  4. 2
      templates/default/database.html
  5. 2
      templates/default/login.html
  6. 2
      views/__init__.py
  7. 10
      views/crontab.py

@ -21,7 +21,8 @@ DEFAULT_MODULES = (
(views.plugins, "/plugins"), (views.plugins, "/plugins"),
(views.task, "/task"), (views.task, "/task"),
(views.system, "/system"), (views.system, "/system"),
(views.database, "/database") (views.database, "/database"),
(views.crontab, "/crontab")
) )
import time import time

@ -17,13 +17,19 @@ sys.path.append(os.getcwd() + "/class/")
import db import db
from random import Random from random import Random
# from flask import jsonify from flask import jsonify
def getRunDir(): def getRunDir():
# 运行目录
return os.getcwd() return os.getcwd()
def getBinDir():
# 安装软件
pass
def M(table): def M(table):
sql = db.Sql() sql = db.Sql()

@ -1,4 +1,7 @@
$def with (data) {% extends "default/layout.html" %}
{% block content %}
<div class="main-content"> <div class="main-content">
<div class="container-fluid" style="padding-bottom:54px"> <div class="container-fluid" style="padding-bottom:54px">
<div class="pos-box bgw mtb15"> <div class="pos-box bgw mtb15">
@ -172,4 +175,5 @@ $def with (data)
toMinute(); toMinute();
toShell(); toShell();
getCronData(); getCronData();
</script> </script>
{% endblock %}

@ -79,4 +79,4 @@
}); });
</script> </script>
<script src="/static/js/upload.js?date=20180124"></script> <script src="/static/js/upload.js?date=20180124"></script>
{% endblock %} {% endblock %}

@ -1,4 +1,4 @@
$def with (tData)
<!doctype html> <!doctype html>
<html lang="zh"> <html lang="zh">
<head> <head>

@ -1,3 +1,4 @@
from dashboard import * from dashboard import *
from site import * from site import *
from files import * from files import *
@ -7,3 +8,4 @@ from task import *
from system import * from system import *
from plugins import * from plugins import *
from database import * from database import *
from crontab import *

@ -0,0 +1,10 @@
# coding:utf-8
from flask import Blueprint, render_template
crontab = Blueprint('crontab', __name__, template_folder='templates')
@crontab.route("/")
def index():
return render_template('default/crontab.html')
Loading…
Cancel
Save