├── .gitignore ├── LICENSE ├── README.md ├── __init__.py └── monitor ├── __init__.py ├── __pycache__ ├── monitor_admin.cpython-36.pyc ├── monitor_api.cpython-36.pyc ├── monitor_db.cpython-36.pyc ├── monitor_logger.cpython-36.pyc ├── monitor_resource.cpython-36.pyc ├── monitor_user.cpython-36.pyc └── monitor_util.cpython-36.pyc ├── monitor_admin.py ├── monitor_api.py ├── monitor_db.py ├── monitor_logger.py ├── monitor_main.py ├── monitor_resource.py ├── monitor_user.py ├── monitor_util.py ├── start.py ├── static ├── css │ └── styles.css ├── images │ ├── 400.png │ ├── 401.jpg │ ├── delete.png │ ├── error.png │ └── wd_favicon.ico └── js │ ├── jquery-2.1.1.min.js │ └── layui │ ├── css │ ├── layui.css │ ├── layui.mobile.css │ └── modules │ │ ├── code.css │ │ ├── laydate │ │ └── default │ │ │ └── laydate.css │ │ └── layer │ │ └── default │ │ ├── icon-ext.png │ │ ├── icon.png │ │ ├── layer.css │ │ ├── loading-0.gif │ │ ├── loading-1.gif │ │ └── loading-2.gif │ ├── font │ ├── iconfont.eot │ ├── iconfont.svg │ ├── iconfont.ttf │ └── iconfont.woff │ ├── images │ └── face │ │ ├── 0.gif │ │ ├── 1.gif │ │ ├── 10.gif │ │ ├── 11.gif │ │ ├── 12.gif │ │ ├── 13.gif │ │ ├── 14.gif │ │ ├── 15.gif │ │ ├── 16.gif │ │ ├── 17.gif │ │ ├── 18.gif │ │ ├── 19.gif │ │ ├── 2.gif │ │ ├── 20.gif │ │ ├── 21.gif │ │ ├── 22.gif │ │ ├── 23.gif │ │ ├── 24.gif │ │ ├── 25.gif │ │ ├── 26.gif │ │ ├── 27.gif │ │ ├── 28.gif │ │ ├── 29.gif │ │ ├── 3.gif │ │ ├── 30.gif │ │ ├── 31.gif │ │ ├── 32.gif │ │ ├── 33.gif │ │ ├── 34.gif │ │ ├── 35.gif │ │ ├── 36.gif │ │ ├── 37.gif │ │ ├── 38.gif │ │ ├── 39.gif │ │ ├── 4.gif │ │ ├── 40.gif │ │ ├── 41.gif │ │ ├── 42.gif │ │ ├── 43.gif │ │ ├── 44.gif │ │ ├── 45.gif │ │ ├── 46.gif │ │ ├── 47.gif │ │ ├── 48.gif │ │ ├── 49.gif │ │ ├── 5.gif │ │ ├── 50.gif │ │ ├── 51.gif │ │ ├── 52.gif │ │ ├── 53.gif │ │ ├── 54.gif │ │ ├── 55.gif │ │ ├── 56.gif │ │ ├── 57.gif │ │ ├── 58.gif │ │ ├── 59.gif │ │ ├── 6.gif │ │ ├── 60.gif │ │ ├── 61.gif │ │ ├── 62.gif │ │ ├── 63.gif │ │ ├── 64.gif │ │ ├── 65.gif │ │ ├── 66.gif │ │ ├── 67.gif │ │ ├── 68.gif │ │ ├── 69.gif │ │ ├── 7.gif │ │ ├── 70.gif │ │ ├── 71.gif │ │ ├── 8.gif │ │ └── 9.gif │ ├── lay │ └── modules │ │ ├── carousel.js │ │ ├── code.js │ │ ├── element.js │ │ ├── flow.js │ │ ├── form.js │ │ ├── jquery.js │ │ ├── laydate.js │ │ ├── layedit.js │ │ ├── layer.js │ │ ├── laypage.js │ │ ├── laytpl.js │ │ ├── mobile.js │ │ ├── table.js │ │ ├── tree.js │ │ ├── upload.js │ │ └── util.js │ ├── layui.all.js │ └── layui.js └── templates ├── 400.html ├── 401.html ├── admin └── index.html ├── detail.html ├── error.html ├── index.html └── login.html /.gitignore: -------------------------------------------------------------------------------- 1 | # logs 2 | monitor/logs/ 3 | 4 | # upload 5 | monitor/upload/ 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 ypmc 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flask-sqlalchemy-web 2 | flask-sqlalchemy-web 3 | -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/__init__.py -------------------------------------------------------------------------------- /monitor/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/__init__.py -------------------------------------------------------------------------------- /monitor/__pycache__/monitor_admin.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/__pycache__/monitor_admin.cpython-36.pyc -------------------------------------------------------------------------------- /monitor/__pycache__/monitor_api.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/__pycache__/monitor_api.cpython-36.pyc -------------------------------------------------------------------------------- /monitor/__pycache__/monitor_db.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/__pycache__/monitor_db.cpython-36.pyc -------------------------------------------------------------------------------- /monitor/__pycache__/monitor_logger.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/__pycache__/monitor_logger.cpython-36.pyc -------------------------------------------------------------------------------- /monitor/__pycache__/monitor_resource.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/__pycache__/monitor_resource.cpython-36.pyc -------------------------------------------------------------------------------- /monitor/__pycache__/monitor_user.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/__pycache__/monitor_user.cpython-36.pyc -------------------------------------------------------------------------------- /monitor/__pycache__/monitor_util.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/__pycache__/monitor_util.cpython-36.pyc -------------------------------------------------------------------------------- /monitor/monitor_admin.py: -------------------------------------------------------------------------------- 1 | from flask import Blueprint, render_template, jsonify 2 | import monitor_logger 3 | import time 4 | 5 | # https://spacewander.github.io/explore-flask-zh/7-blueprints.html 6 | # http://flask.pocoo.org/docs/0.12/blueprints/ 7 | admin = Blueprint('admin', __name__, template_folder='admin') 8 | 9 | logger = monitor_logger.get_logger(__name__) 10 | 11 | 12 | @admin.route('/admin/') 13 | def admin_url(page): 14 | logger.debug('admin page is %s' % page) 15 | return render_template('/admin/%s.html' % page) 16 | 17 | 18 | @admin.route('/admin/') 19 | def get(num): 20 | logger.debug('get method is %s' % num) 21 | return jsonify({'value': num + 1, 'timestamp': time.time()}) 22 | -------------------------------------------------------------------------------- /monitor/monitor_api.py: -------------------------------------------------------------------------------- 1 | import random 2 | import time 3 | 4 | from flask import jsonify 5 | from flask_restful import Resource 6 | 7 | 8 | # http://www.flaskapi.org/ 9 | # https://www.fullstackpython.com/api-creation.html 10 | # 使用Flask-RESTful构建REST API 11 | # http://flask-restful.readthedocs.io/en/latest/ 12 | # https://www.codementor.io/sagaragarwal94/building-a-basic-restful-api-in-python-58k02xsiq 13 | class MonitorApi(Resource): 14 | @staticmethod 15 | def get(id): 16 | return jsonify({'id': id, 'value': random.random(), 'timestamp': int(time.time())}) 17 | -------------------------------------------------------------------------------- /monitor/monitor_db.py: -------------------------------------------------------------------------------- 1 | import mysql.connector 2 | from sqlalchemy import create_engine 3 | from sqlalchemy.ext.declarative import declarative_base 4 | from sqlalchemy.orm import sessionmaker 5 | import monitor_logger 6 | import monitor_user 7 | 8 | config = { 9 | 'host': '10.214.168.25', 10 | 'user': 'account', 11 | 'password': 'Account#Pwd123', 12 | 'port': 3306, 13 | 'database': 'wingx_account', 14 | 'charset': 'utf8' 15 | } 16 | user_orm_url = 'mysql+mysqlconnector://account:Account#Pwd123@10.214.168.25:3306/wingx_account' 17 | 18 | user_sql = 'select * from wingx_account.t_user where user_id = %s limit 1' 19 | logger = monitor_logger.get_logger(__name__) 20 | 21 | 22 | # get database connection using mysql.connector 23 | def get_connection(): 24 | try: 25 | conn = mysql.connector.connect(**config) 26 | return conn 27 | except Exception as e: 28 | logger.debug("Exception is %s" % e) 29 | return None 30 | 31 | # get database connection 32 | 33 | 34 | # get user by user_id 35 | def get_user(user_id): 36 | try: 37 | conn = get_connection() 38 | if conn: 39 | cursor = conn.cursor() 40 | cursor.execute(user_sql, (user_id,)) 41 | result = cursor.fetchall() 42 | logger.debug("conn is %s" % conn) 43 | return result 44 | else: 45 | logger.debug("conn is %s" % conn) 46 | return None 47 | logger.debug("conn is %s" % conn) 48 | return None 49 | except Exception as e: 50 | logger.debug("Exception is %s" % e) 51 | return None 52 | finally: 53 | cursor.close() 54 | conn.close() 55 | 56 | 57 | # SQLAlchemy orm 58 | Base = declarative_base() 59 | 60 | 61 | # for login 62 | # SQLAlchemy orm 63 | def get_user_session(user_id): 64 | try: 65 | engine = create_engine(user_orm_url, echo=True) 66 | session = sessionmaker() 67 | session.configure(bind=engine) 68 | Base.metadata.create_all(engine) 69 | s = session() 70 | ret = s.query(monitor_user.User).filter_by(username=user_id).first() 71 | return ret 72 | except Exception as e: 73 | logger.debug("Exception is %s" % e) 74 | return None 75 | 76 | 77 | # get connection session 78 | def get_connection_session(url): 79 | try: 80 | engine = create_engine(url, echo=True) 81 | session = sessionmaker() 82 | session.configure(bind=engine) 83 | Base.metadata.create_all(engine) 84 | s = session() 85 | return s 86 | except Exception as e: 87 | logger.debug("Exception is %s" % e) 88 | return None 89 | 90 | 91 | # get connection using url 92 | def get_connection_with_url(url): 93 | try: 94 | engine = create_engine(url, echo=True) 95 | conn = engine.connect() 96 | return conn 97 | except Exception as e: 98 | logger.debug("Exception is %s" % e) 99 | return None 100 | 101 | 102 | if __name__ == '__main__': 103 | print(get_user_session('admin')) 104 | print(get_user('admin')) 105 | -------------------------------------------------------------------------------- /monitor/monitor_logger.py: -------------------------------------------------------------------------------- 1 | import os 2 | import logging 3 | 4 | import sys 5 | 6 | LOG_PATH = 'logs' 7 | LOG_FILE = 'text.txt' 8 | 9 | 10 | def get_logger(name): 11 | i_logger = logging.getLogger(name) 12 | if os.path.exists(LOG_PATH): 13 | pass 14 | else: 15 | os.mkdir(LOG_PATH) 16 | # 指定logger输出格式 17 | formatter = logging.Formatter('%(asctime)s %(levelname)-8s: %(message)s') 18 | # 文件日志 19 | file_handler = logging.FileHandler("%s/%s" % (LOG_PATH, LOG_FILE)) 20 | file_handler.setFormatter(formatter) # 可以通过setFormatter指定输出格式 21 | # 控制台日志 22 | console_handler = logging.StreamHandler(sys.stdout) 23 | console_handler.formatter = formatter # 也可以直接给formatter赋值 24 | # 为logger添加的日志处理器,可以自定义日志处理器让其输出到其他地方 25 | i_logger.addHandler(file_handler) 26 | i_logger.addHandler(console_handler) 27 | # 指定日志的最低输出级别,默认为WARN级别 28 | i_logger.setLevel(logging.DEBUG) 29 | return i_logger 30 | 31 | 32 | if __name__ == '__main__': 33 | logger = get_logger(__name__) 34 | logger.debug('test') 35 | -------------------------------------------------------------------------------- /monitor/monitor_main.py: -------------------------------------------------------------------------------- 1 | import functools 2 | import json 3 | import os 4 | import random 5 | import time 6 | 7 | import flask_login 8 | import monitor_api 9 | import monitor_db 10 | import monitor_logger 11 | import monitor_util 12 | from flask import Flask, redirect, url_for, request, render_template, make_response, abort, jsonify, \ 13 | send_from_directory 14 | from flask_login import LoginManager 15 | from flask_restful import Api 16 | from flask_uploads import UploadSet, configure_uploads 17 | from monitor_admin import admin 18 | from monitor_resource import monitor_resource 19 | 20 | app = Flask(__name__) 21 | login_manager = LoginManager() 22 | login_manager.init_app(app) 23 | login_manager.login_view = 'login' 24 | # login_manager.login_message = 'please login!' 25 | login_manager.session_protection = 'strong' 26 | logger = monitor_logger.get_logger(__name__) 27 | 28 | app.config['ALLOWED_EXTENSIONS'] = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif']) 29 | app.config['UPLOAD_PATH'] = 'upload' 30 | 31 | app.config['UPLOADS_DEFAULT_DEST'] = app.config['UPLOAD_PATH'] 32 | app.config['UPLOADS_DEFAULT_URL'] = 'http://127.0.0.1:9000/' 33 | uploaded_photos = UploadSet() 34 | configure_uploads(app, uploaded_photos) 35 | api = Api(app) 36 | api.add_resource(monitor_api.MonitorApi, '/api/') 37 | 38 | app.register_blueprint(monitor_resource) 39 | 40 | app.register_blueprint(admin) 41 | app.register_blueprint(admin, url_prefix='/v1') 42 | 43 | 44 | # http://www.pythondoc.com/flask-login/index.html#request-loader 45 | # http://docs.jinkan.org/docs/flask/index.html 46 | # http://flask-login.readthedocs.io/en/latest/#login-example 47 | class User(flask_login.UserMixin): 48 | pass 49 | 50 | 51 | def log(*text): 52 | def decorator(func): 53 | @functools.wraps(func) 54 | def wrapper(*args, **kw): 55 | logger.debug('执行方法:%s,请求参数:%s():' % (func.__name__, text)) 56 | return func(*args, **kw) 57 | 58 | return wrapper 59 | 60 | return decorator 61 | 62 | 63 | @login_manager.user_loader 64 | def user_loader(username): 65 | user = User() 66 | user.id = username 67 | logger.debug("user_loader user is %s, is_authenticated %s" % (user.id, user.is_authenticated)) 68 | return user 69 | 70 | 71 | # 使用request_loader的自定义登录, 同时支持url参数和和使用Authorization头部的基础认证的登录: 72 | @login_manager.request_loader 73 | def request_loader(req): 74 | logger.debug("request_loader url is %s, request args is %s" % (req.url, req.args)) 75 | authorization = request.headers.get('Authorization') 76 | logger.debug("Authorization is %s" % authorization) 77 | # 模拟api登录 78 | if authorization: 79 | # get user from authorization 80 | user = User() 81 | user.id = 'admin' 82 | logger.debug("user is %s" % user) 83 | return user 84 | return None 85 | 86 | 87 | @log 88 | def is_safe_url(next_url): 89 | logger.debug("next url is %s:" % next_url) 90 | return True 91 | 92 | 93 | @app.route('/', methods=['GET', 'POST']) 94 | @app.route('/index', methods=['GET', 'POST']) 95 | @flask_login.login_required 96 | def index(): 97 | logger.debug("index page, method is %s" % request.method) 98 | return render_template('index.html', name=flask_login.current_user.id) 99 | 100 | 101 | @app.route('/error') 102 | @app.errorhandler(400) 103 | @app.errorhandler(401) 104 | @app.errorhandler(500) 105 | def error(e): 106 | logger.debug("error occurred: %s" % e) 107 | try: 108 | code = e.code 109 | if code == 400: 110 | return render_template('400.html') 111 | elif code == 401: 112 | return render_template('401.html') 113 | else: 114 | return render_template('error.html') 115 | except Exception as e: 116 | logger.debug('exception is %s' % e) 117 | finally: 118 | return render_template('error.html') 119 | 120 | 121 | @app.route('/login', methods=['GET', 'POST']) 122 | def login(): 123 | if request.method == 'POST': 124 | logger.debug("login post method") 125 | username = request.form['username'] 126 | password = request.form['password'] 127 | 128 | user = monitor_db.get_user_session(username) 129 | logger.debug('db user id is %s, detail is %s' % (user.username, user)) 130 | 131 | next_url = request.args.get("next") 132 | logger.debug('next is %s' % next_url) 133 | 134 | if password == 'admin123' and username == user.username: 135 | # set login user 136 | user = User() 137 | user.id = username 138 | flask_login.login_user(user) 139 | 140 | resp = make_response(render_template('index.html', name=username)) 141 | resp.set_cookie('username', username) 142 | if not is_safe_url(next_url): 143 | return abort(400) 144 | return redirect(next_url or url_for('index')) 145 | else: 146 | return abort(401) 147 | 148 | logger.debug("login get method") 149 | return render_template('login.html') 150 | 151 | 152 | @app.route('/logout') 153 | @flask_login.login_required 154 | def logout(): 155 | # remove the username from the session if it's there 156 | logger.debug("logout page") 157 | flask_login.logout_user() 158 | return redirect(url_for('login')) 159 | 160 | 161 | @app.route('/detail') 162 | @flask_login.login_required 163 | def detail(): 164 | return render_template('detail.html') 165 | 166 | 167 | @app.route('/api', methods=['GET']) 168 | @flask_login.login_required 169 | def api(): 170 | return jsonify({'value': random.random(), 'timestamp': int(time.time())}) 171 | 172 | 173 | # 文件下载 174 | @app.route('/download/') 175 | def send_html(filename): 176 | logger.debug("download file, path is %s" % filename) 177 | return send_from_directory(app.config['UPLOAD_PATH'], filename, as_attachment=True) 178 | 179 | 180 | @app.route('/api/list', methods=['GET']) 181 | def get_list(): 182 | page = request.args.get('page') 183 | limit = request.args.get('limit') 184 | logger.debug("get_list: page = %s, limit = %s" % (page, limit)) 185 | pages = monitor_util.get_monitor_flask_sqlalchemy(int(page), int(limit)) 186 | if pages is None: 187 | return jsonify({"code": 0, "msg": "", "count": 0, "data": {}}) 188 | else: 189 | data = [] 190 | for item in pages.items: 191 | item.__dict__['_sa_instance_state'] = '' 192 | item.__dict__['create_time'] = "%s" % item.__dict__['create_time'] 193 | item.__dict__['monitor_time'] = "%s" % item.__dict__['monitor_time'] 194 | data.append(item.__dict__) 195 | result = json.dumps({"code": 0, "msg": "", "count": pages.total, "data": data}) 196 | return result 197 | 198 | 199 | # http://flask-uploads.readthedocs.io/en/latest/ 200 | @app.route('/flask-upload', methods=['POST']) 201 | def flask_upload(): 202 | if request.method == 'POST': 203 | # check if the post request has the file part 204 | if 'file' not in request.files: 205 | logger.debug('No file part') 206 | return jsonify({'code': -1, 'filename': '', 'msg': 'No file part'}) 207 | file = request.files['file'] 208 | # if user does not select file, browser also submit a empty part without filename 209 | if file.filename == '': 210 | logger.debug('No selected file') 211 | return jsonify({'code': -1, 'filename': '', 'msg': 'No selected file'}) 212 | else: 213 | try: 214 | filename = uploaded_photos.save(file) 215 | logger.debug('%s url is %s' % (filename, uploaded_photos.url(filename))) 216 | return jsonify({'code': 0, 'filename': filename, 'msg': uploaded_photos.url(filename)}) 217 | except Exception as e: 218 | logger.debug('upload file exception: %s' % e) 219 | return jsonify({'code': -1, 'filename': '', 'msg': 'Error occurred'}) 220 | else: 221 | return jsonify({'code': -1, 'filename': '', 'msg': 'Method not allowed'}) 222 | 223 | 224 | # show photo 225 | @app.route('/files/', methods=['GET']) 226 | def show_photo(filename): 227 | if request.method == 'GET': 228 | if filename is None: 229 | pass 230 | else: 231 | logger.debug('filename is %s' % filename) 232 | image_data = open(os.path.join(app.config['UPLOAD_PATH'], 'files/%s' % filename), "rb").read() 233 | response = make_response(image_data) 234 | response.headers['Content-Type'] = 'image/png' 235 | return response 236 | else: 237 | pass 238 | 239 | 240 | # http://flask.pocoo.org/docs/0.12/patterns/fileuploads/ 241 | @app.route('/upload', methods=['POST']) 242 | def upload_file(): 243 | if request.method == 'POST': 244 | # check if the post request has the file part 245 | if 'file' not in request.files: 246 | logger.debug('No file part') 247 | return jsonify({'code': -1, 'filename': '', 'msg': 'No file part'}) 248 | file = request.files['file'] 249 | # if user does not select file, browser also submit a empty part without filename 250 | if file.filename == '': 251 | logger.debug('No selected file') 252 | return jsonify({'code': -1, 'filename': '', 'msg': 'No selected file'}) 253 | else: 254 | try: 255 | if file and allowed_file(file.filename): 256 | origin_file_name = file.filename 257 | logger.debug('filename is %s' % origin_file_name) 258 | # filename = secure_filename(file.filename) 259 | filename = origin_file_name 260 | 261 | if os.path.exists(app.config['UPLOAD_PATH']): 262 | logger.debug('%s path exist' % app.config['UPLOAD_PATH']) 263 | pass 264 | else: 265 | logger.debug('%s path not exist, do make dir' % app.config['UPLOAD_PATH']) 266 | os.makedirs(app.config['PLOAD_PATH']) 267 | 268 | file.save(os.path.join(app.config['UPLOAD_PATH'], filename)) 269 | logger.debug('%s save successfully' % filename) 270 | return jsonify({'code': 0, 'filename': origin_file_name, 'msg': ''}) 271 | else: 272 | logger.debug('%s not allowed' % file.filename) 273 | return jsonify({'code': -1, 'filename': '', 'msg': 'File not allowed'}) 274 | except Exception as e: 275 | logger.debug('upload file exception: %s' % e) 276 | return jsonify({'code': -1, 'filename': '', 'msg': 'Error occurred'}) 277 | else: 278 | return jsonify({'code': -1, 'filename': '', 'msg': 'Method not allowed'}) 279 | 280 | 281 | def allowed_file(filename): 282 | return '.' in filename and \ 283 | filename.rsplit('.', 1)[1].lower() in app.config['ALLOWED_EXTENSIONS'] 284 | 285 | 286 | @app.route('/delete', methods=['GET']) 287 | def delete_file(): 288 | if request.method == 'GET': 289 | filename = request.args.get('filename') 290 | timestamp = request.args.get('timestamp') 291 | logger.debug('delete file : %s, timestamp is %s' % (filename, timestamp)) 292 | try: 293 | fullfile = os.path.join(app.config['UPLOAD_PATH'], filename) 294 | 295 | if os.path.exists(fullfile): 296 | os.remove(fullfile) 297 | logger.debug("%s removed successfully" % fullfile) 298 | return jsonify({'code': 0, 'msg': ''}) 299 | else: 300 | return jsonify({'code': -1, 'msg': 'File not exist'}) 301 | 302 | except Exception as e: 303 | logger.debug("delete file error %s" % e) 304 | return jsonify({'code': -1, 'msg': 'File deleted error'}) 305 | 306 | else: 307 | return jsonify({'code': -1, 'msg': 'Method not allowed'}) 308 | 309 | 310 | @app.route('/add', methods=['POST']) 311 | def add_monitor(): 312 | if request.method == 'POST': 313 | logger.debug('form data is : %s' % request.form) 314 | try: 315 | # # if request data is 'application/x-www-form-urlencoded' 316 | # monitor_util.add_monitor(request.form) 317 | # if request data is 'application/json' 318 | monitor_util.add_monitor(request.get_data()) 319 | # monitor_util.add_monitor(request.data) 320 | return jsonify({'code': 0, 'msg': ''}) 321 | except Exception as e: 322 | logger.debug("add monitor error %s" % e) 323 | return jsonify({'code': -1, 'msg': 'Add monitor error'}) 324 | else: 325 | return jsonify({'code': -1, 'msg': 'Method not allowed'}) 326 | 327 | 328 | @app.route('/blueprint/', methods=['GET']) 329 | def blueprint(name): 330 | if name == 'r': 331 | logger.debug('"style.css" url is "%s"' % url_for('monitor_resource.static', filename='css/style.css')) 332 | return jsonify({'name': 'style.css', 'url': url_for('monitor_resource.static', filename='css/style.css')}) 333 | else: 334 | pass 335 | 336 | 337 | app.secret_key = 'aHR0cDovL3d3dy53YW5kYS5jbi8=' 338 | 339 | if __name__ == '__main__': 340 | # print(type(flask_db.get_user('admin'))) 341 | # print(flask_db.get_user('admin')) 342 | app.run(port=9000) 343 | -------------------------------------------------------------------------------- /monitor/monitor_resource.py: -------------------------------------------------------------------------------- 1 | from flask import Blueprint 2 | 3 | monitor_resource = Blueprint('monitor_resource', __name__, static_folder='static', 4 | template_folder='templates') 5 | -------------------------------------------------------------------------------- /monitor/monitor_user.py: -------------------------------------------------------------------------------- 1 | from sqlalchemy import Column, Integer, String 2 | from sqlalchemy.ext.declarative import declarative_base 3 | 4 | Base = declarative_base() 5 | 6 | 7 | # http://docs.sqlalchemy.org/en/latest/orm/mapping_columns.html 8 | class User(Base): 9 | __tablename__ = 't_user' 10 | 11 | id = Column('id', Integer, primary_key=True) 12 | username = Column('user_id', String(128)) 13 | email = Column('email', String(128)) 14 | password = Column('pwd_hash', String(128)) 15 | create_time = Column('create_time', String(128)) 16 | update_time = Column('update_time', String(128)) 17 | 18 | def __init__(self, id, username, email, password, create_time, update_time): 19 | self.id = id 20 | self.username = username 21 | self.email = email 22 | self.password = password 23 | self.create_time = create_time 24 | self.update_time = update_time 25 | 26 | def __repr__(self): 27 | return '' % ( 28 | self.id, self.username, self.password, self.email, self.create_time, self.update_time) 29 | -------------------------------------------------------------------------------- /monitor/monitor_util.py: -------------------------------------------------------------------------------- 1 | import json 2 | import random 3 | 4 | from flask import Flask 5 | from flask_sqlalchemy import SQLAlchemy 6 | from sqlalchemy import Column, Integer, String, MetaData, Table 7 | from sqlalchemy.ext.declarative import declarative_base 8 | from sqlalchemy.sql import select 9 | 10 | import monitor_db 11 | import monitor_logger 12 | import monitor_util 13 | 14 | Base = declarative_base() 15 | 16 | url = 'mysql+mysqlconnector://hawkeye:Hawkeye#Pwd123@10.214.168.25:3306/wingx_hawkeye' 17 | 18 | app = Flask(__name__) 19 | app.config['SQLALCHEMY_DATABASE_URI'] = url 20 | app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True 21 | db = SQLAlchemy(app) 22 | 23 | logger = monitor_logger.get_logger(__name__) 24 | 25 | 26 | # http://flask-sqlalchemy.pocoo.org/2.3/ 27 | # http://docs.sqlalchemy.org/en/latest/ 28 | # SQLAlchemy orm 29 | class Monitor(Base): 30 | __tablename__ = 't_credit_monitor' 31 | 32 | id = Column('id', Integer, primary_key=True) 33 | credit_type = Column('credit_type', String(128)) 34 | query_type = Column('query_type', String(128)) 35 | credit_status = Column('credit_status', String(128)) 36 | monitor_time = Column('monitor_time', String(128)) 37 | elapsed_time = Column('elapsed_time', String(128)) 38 | create_time = Column('create_time', String(128)) 39 | 40 | def __init__(self, id, credit_type, query_type, credit_status, monitor_time, elapsed_time, create_time): 41 | self.id = id 42 | self.credit_type = credit_type 43 | self.query_type = query_type 44 | self.credit_status = credit_status 45 | self.monitor_time = monitor_time 46 | self.elapsed_time = elapsed_time 47 | self.create_time = create_time 48 | 49 | def __repr__(self): 50 | return '' % ( 51 | self.id, self.credit_type, self.query_type, self.credit_status, self.monitor_time, self.elapsed_time) 52 | 53 | 54 | # Flask-SQLAlchemy 55 | class FlaskMonitor(db.Model): 56 | __tablename__ = 't_credit_monitor' 57 | 58 | id = Column('id', Integer, primary_key=True) 59 | credit_type = Column('credit_type', String(128)) 60 | query_type = Column('query_type', String(128)) 61 | credit_status = Column('credit_status', String(128)) 62 | monitor_time = Column('monitor_time', String(128)) 63 | elapsed_time = Column('elapsed_time', String(128)) 64 | create_time = Column('create_time', String(128)) 65 | 66 | def __init__(self, id, credit_type, query_type, credit_status, monitor_time, elapsed_time, create_time): 67 | self.id = id 68 | self.credit_type = credit_type 69 | self.query_type = query_type 70 | self.credit_status = credit_status 71 | self.monitor_time = monitor_time 72 | self.elapsed_time = elapsed_time 73 | self.create_time = create_time 74 | 75 | def __repr__(self): 76 | return '' % ( 77 | self.id, self.credit_type, self.query_type, self.credit_status, self.monitor_time, self.elapsed_time) 78 | 79 | 80 | # SQLAlchemy core 81 | metadata = MetaData() 82 | T_Monitor = Table('t_credit_monitor', metadata, Column('id', Integer, primary_key=True) 83 | , Column('credit_type', String(128)) 84 | , Column('query_type', String(128)) 85 | , Column('credit_status', String(128)) 86 | , Column('monitor_time', String(128)) 87 | , Column('elapsed_time', String(128)) 88 | , Column('create_time', String(128))) 89 | 90 | 91 | # http://docs.sqlalchemy.org/en/latest/ 92 | # SQLAlchemy orm 93 | def get_monitor_with_orm(): 94 | s = monitor_db.get_connection_session(url) 95 | print(s.query(Monitor).limit(2).all()) 96 | print(s.query(Monitor).first()) 97 | print(type(s.query(Monitor))) 98 | print(s.query(Monitor).count()) 99 | 100 | 101 | # SQLAlchemy core 102 | def get_monitor_with_core(): 103 | conn = monitor_db.get_connection_with_url(url) 104 | sql = select([T_Monitor]) 105 | result = conn.execute(sql) 106 | print(result.rowcount) 107 | print(type(result.fetchall())) 108 | 109 | 110 | # using flask_sqlalchemy 111 | def get_monitor_flask_sqlalchemy(page=1, limit=10): 112 | try: 113 | logger.debug('get_monitor_flask_sqlalchemy: page is %s, limit is %s' % (page, limit)) 114 | return FlaskMonitor.query.paginate(page, limit) 115 | except Exception as e: 116 | logger.debug("Exception in get_monitor_flask_sqlalchemy %s" % e) 117 | return None 118 | 119 | 120 | # add monitor 121 | def add_monitor(d): 122 | logger.debug('add monitor is %s' % d) 123 | conn = monitor_db.get_connection_with_url(url) 124 | d = json.loads(d) 125 | # Content-Type: application/json 126 | conn.execute(T_Monitor.insert(), [{ 127 | 'credit_type': d['credit_type'] 128 | , 'query_type': d['query_type'] 129 | , 'credit_status': d['credit_status'] 130 | , 'elapsed_time': int(random.random() * 100) 131 | }]) 132 | 133 | # # Content-Type: application/x-www-form-urlencoded; charset=UTF-8 134 | # for key in d.keys(): 135 | # logger.debug("form data is %s" % json.loads(key)) 136 | # d_dict = json.loads(key) 137 | # conn.execute(T_Monitor.insert(), [{ 138 | # 'credit_type': d_dict['credit_type'] 139 | # , 'query_type': d_dict['query_type'] 140 | # , 'credit_status': d_dict['credit_status'] 141 | # , 'elapsed_time': int(random.random() * 100) 142 | # }]) 143 | 144 | 145 | if __name__ == '__main__': 146 | print(get_monitor_flask_sqlalchemy(1, 2).items) 147 | -------------------------------------------------------------------------------- /monitor/start.py: -------------------------------------------------------------------------------- 1 | import flask_login 2 | from flask import Flask, session, redirect, url_for, escape, request, render_template, make_response, jsonify 3 | import logging 4 | import sys 5 | import os 6 | from flask_login import LoginManager 7 | 8 | login_manager = LoginManager() 9 | 10 | app = Flask(__name__) 11 | login_manager.init_app(app) 12 | 13 | # 获取logger实例,如果参数为空则返回root logger 14 | logger = logging.getLogger(__name__) 15 | LOG_PATH = 'logs' 16 | LOG_FILE = 'text.txt' 17 | 18 | 19 | def config(): 20 | if os.path.exists(LOG_PATH): 21 | pass 22 | else: 23 | os.mkdir(LOG_PATH) 24 | # 指定logger输出格式 25 | formatter = logging.Formatter('%(asctime)s %(levelname)-8s: %(message)s') 26 | # 文件日志 27 | file_handler = logging.FileHandler("%s/%s" % (LOG_PATH, LOG_FILE)) 28 | file_handler.setFormatter(formatter) # 可以通过setFormatter指定输出格式 29 | # 控制台日志 30 | console_handler = logging.StreamHandler(sys.stdout) 31 | console_handler.formatter = formatter # 也可以直接给formatter赋值 32 | # 为logger添加的日志处理器,可以自定义日志处理器让其输出到其他地方 33 | logger.addHandler(file_handler) 34 | logger.addHandler(console_handler) 35 | # 指定日志的最低输出级别,默认为WARN级别 36 | logger.setLevel(logging.DEBUG) 37 | 38 | 39 | @app.route('/', methods=['GET', 'POST']) 40 | @flask_login.login_required 41 | def index(): 42 | logger.debug("index page") 43 | logger.debug("cookie name %s" % request.cookies.get('username')) 44 | 45 | if 'username' in session: 46 | logger.debug("login user is %s" % flask_login.current_user) 47 | logger.debug('Logged in as %s' % escape(session['username'])) 48 | return render_template('index.html', name=session['username']) 49 | else: 50 | logger.debug("you are not logged in") 51 | return render_template('login.html') 52 | 53 | 54 | @app.route('/error') 55 | def error(): 56 | logger.debug("error page") 57 | return render_template('error.html') 58 | 59 | 60 | class User(flask_login.UserMixin): 61 | pass 62 | 63 | 64 | @app.route('/login', methods=['GET', 'POST']) 65 | def login(): 66 | if request.method == 'POST': 67 | logger.debug("login post method") 68 | username = request.form['username'] 69 | password = request.form['password'] 70 | 71 | if username == 'admin' and password == 'admin123': 72 | user = User() 73 | flask_login.login_user(user) 74 | user.id = "admin" 75 | user.is_authenticated = True 76 | flask_login.login_user(user) 77 | session['username'] = username 78 | session['password'] = password 79 | resp = make_response(render_template('index.html', name=username)) 80 | resp.set_cookie('username', username) 81 | # return resp 82 | return jsonify({'status': '0', 'errmsg': '登录成功!'}) 83 | else: 84 | # return redirect(url_for('error')) 85 | return jsonify({'status': '-1', 'errmsg': '用户名或密码错误!'}) 86 | 87 | logger.debug("login get method") 88 | return render_template('login.html') 89 | 90 | 91 | @app.route('/logout') 92 | def logout(): 93 | # remove the username from the session if it's there 94 | logger.debug("logout page") 95 | session.pop('username', None) 96 | return redirect(url_for('login')) 97 | 98 | 99 | @app.route('/hello') 100 | @app.route('/hello/') 101 | def hello(name=None): 102 | return render_template('index.html', name=name) 103 | 104 | 105 | @app.route('/json') 106 | def json(): 107 | return jsonify({'username': session['username'], 'password': session['password']}) 108 | 109 | 110 | # set the secret key. keep this really secret: 111 | app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT' 112 | 113 | if __name__ == '__main__': 114 | config() 115 | app.run(port=9000) 116 | -------------------------------------------------------------------------------- /monitor/static/css/styles.css: -------------------------------------------------------------------------------- 1 | /*@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,300);*/ 2 | 3 | * { 4 | box-sizing: border-box; 5 | margin: 0; 6 | padding: 0; 7 | font-weight: 300; 8 | } 9 | body { 10 | font-family: 'Source Sans Pro', sans-serif; 11 | color: white; 12 | font-weight: 300; 13 | } 14 | body ::-webkit-input-placeholder { 15 | /* WebKit browsers */ 16 | font-family: 'Source Sans Pro', sans-serif; 17 | color: white; 18 | font-weight: 300; 19 | } 20 | body :-moz-placeholder { 21 | /* Mozilla Firefox 4 to 18 */ 22 | font-family: 'Source Sans Pro', sans-serif; 23 | color: white; 24 | opacity: 1; 25 | font-weight: 300; 26 | } 27 | body ::-moz-placeholder { 28 | /* Mozilla Firefox 19+ */ 29 | font-family: 'Source Sans Pro', sans-serif; 30 | color: white; 31 | opacity: 1; 32 | font-weight: 300; 33 | } 34 | body :-ms-input-placeholder { 35 | /* Internet Explorer 10+ */ 36 | font-family: 'Source Sans Pro', sans-serif; 37 | color: white; 38 | font-weight: 300; 39 | } 40 | .wrapper { 41 | background: #50a3a2; 42 | background: -webkit-linear-gradient(top left, #50a3a2 0%, #53e3a6 100%); 43 | background: linear-gradient(to bottom right, #50a3a2 0%, #53e3a6 100%); 44 | opacity: 0.8; 45 | position: absolute; 46 | top: 50%; 47 | left: 0; 48 | width: 100%; 49 | height: 400px; 50 | margin-top: -200px; 51 | overflow: hidden; 52 | 53 | } 54 | 55 | .wrapper.form-success .container h1 { 56 | -webkit-transform: translateY(85px); 57 | -ms-transform: translateY(85px); 58 | transform: translateY(85px); 59 | } 60 | .container { 61 | max-width: 600px; 62 | margin: 0 auto; 63 | padding: 80px 0; 64 | height: 400px; 65 | text-align: center; 66 | } 67 | .container h1 { 68 | font-size: 40px; 69 | -webkit-transition-duration: 1s; 70 | transition-duration: 1s; 71 | -webkit-transition-timing-function: ease-in-put; 72 | transition-timing-function: ease-in-put; 73 | font-weight: 200; 74 | } 75 | form { 76 | padding: 20px 0; 77 | position: relative; 78 | z-index: 2; 79 | } 80 | form input { 81 | -webkit-appearance: none; 82 | -moz-appearance: none; 83 | appearance: none; 84 | outline: 0; 85 | border: 1px solid rgba(255, 255, 255, 0.4); 86 | background-color: rgba(255, 255, 255, 0.2); 87 | width: 250px; 88 | border-radius: 3px; 89 | padding: 10px 15px; 90 | margin: 0 auto 10px auto; 91 | display: block; 92 | text-align: center; 93 | font-size: 18px; 94 | color: white; 95 | -webkit-transition-duration: 0.25s; 96 | transition-duration: 0.25s; 97 | font-weight: 300; 98 | } 99 | form input:hover { 100 | background-color: rgba(255, 255, 255, 0.4); 101 | } 102 | form input:focus { 103 | background-color: white; 104 | width: 300px; 105 | color: #53e3a6; 106 | } 107 | form button { 108 | -webkit-appearance: none; 109 | -moz-appearance: none; 110 | appearance: none; 111 | outline: 0; 112 | background-color: white; 113 | border: 0; 114 | padding: 10px 15px; 115 | color: #53e3a6; 116 | border-radius: 3px; 117 | width: 250px; 118 | cursor: pointer; 119 | font-size: 18px; 120 | -webkit-transition-duration: 0.25s; 121 | transition-duration: 0.25s; 122 | } 123 | form button:hover { 124 | background-color: #f5f7f9; 125 | } 126 | .bg-bubbles { 127 | position: absolute; 128 | top: 0; 129 | left: 0; 130 | width: 100%; 131 | height: 100%; 132 | z-index: 1; 133 | } 134 | .bg-bubbles li { 135 | position: absolute; 136 | list-style: none; 137 | display: block; 138 | width: 40px; 139 | height: 40px; 140 | background-color: rgba(255, 255, 255, 0.15); 141 | bottom: -160px; 142 | -webkit-animation: square 25s infinite; 143 | animation: square 25s infinite; 144 | -webkit-transition-timing-function: linear; 145 | transition-timing-function: linear; 146 | } 147 | .bg-bubbles li:nth-child(1) { 148 | left: 10%; 149 | } 150 | .bg-bubbles li:nth-child(2) { 151 | left: 20%; 152 | width: 80px; 153 | height: 80px; 154 | -webkit-animation-delay: 2s; 155 | animation-delay: 2s; 156 | -webkit-animation-duration: 17s; 157 | animation-duration: 17s; 158 | } 159 | .bg-bubbles li:nth-child(3) { 160 | left: 25%; 161 | -webkit-animation-delay: 4s; 162 | animation-delay: 4s; 163 | } 164 | .bg-bubbles li:nth-child(4) { 165 | left: 40%; 166 | width: 60px; 167 | height: 60px; 168 | -webkit-animation-duration: 22s; 169 | animation-duration: 22s; 170 | background-color: rgba(255, 255, 255, 0.25); 171 | } 172 | .bg-bubbles li:nth-child(5) { 173 | left: 70%; 174 | } 175 | .bg-bubbles li:nth-child(6) { 176 | left: 80%; 177 | width: 120px; 178 | height: 120px; 179 | -webkit-animation-delay: 3s; 180 | animation-delay: 3s; 181 | background-color: rgba(255, 255, 255, 0.2); 182 | } 183 | .bg-bubbles li:nth-child(7) { 184 | left: 32%; 185 | width: 160px; 186 | height: 160px; 187 | -webkit-animation-delay: 7s; 188 | animation-delay: 7s; 189 | } 190 | .bg-bubbles li:nth-child(8) { 191 | left: 55%; 192 | width: 20px; 193 | height: 20px; 194 | -webkit-animation-delay: 15s; 195 | animation-delay: 15s; 196 | -webkit-animation-duration: 40s; 197 | animation-duration: 40s; 198 | } 199 | .bg-bubbles li:nth-child(9) { 200 | left: 25%; 201 | width: 10px; 202 | height: 10px; 203 | -webkit-animation-delay: 2s; 204 | animation-delay: 2s; 205 | -webkit-animation-duration: 40s; 206 | animation-duration: 40s; 207 | background-color: rgba(255, 255, 255, 0.3); 208 | } 209 | .bg-bubbles li:nth-child(10) { 210 | left: 90%; 211 | width: 160px; 212 | height: 160px; 213 | -webkit-animation-delay: 11s; 214 | animation-delay: 11s; 215 | } 216 | @-webkit-keyframes square { 217 | 0% { 218 | -webkit-transform: translateY(0); 219 | transform: translateY(0); 220 | } 221 | 100% { 222 | -webkit-transform: translateY(-700px) rotate(600deg); 223 | transform: translateY(-700px) rotate(600deg); 224 | } 225 | } 226 | @keyframes square { 227 | 0% { 228 | -webkit-transform: translateY(0); 229 | transform: translateY(0); 230 | } 231 | 100% { 232 | -webkit-transform: translateY(-700px) rotate(600deg); 233 | transform: translateY(-700px) rotate(600deg); 234 | } 235 | } -------------------------------------------------------------------------------- /monitor/static/images/400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/images/400.png -------------------------------------------------------------------------------- /monitor/static/images/401.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/images/401.jpg -------------------------------------------------------------------------------- /monitor/static/images/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/images/delete.png -------------------------------------------------------------------------------- /monitor/static/images/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/images/error.png -------------------------------------------------------------------------------- /monitor/static/images/wd_favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/images/wd_favicon.ico -------------------------------------------------------------------------------- /monitor/static/js/layui/css/layui.mobile.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}html{font:12px 'Helvetica Neue','PingFang SC',STHeitiSC-Light,Helvetica,Arial,sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}a,button,input{-webkit-tap-highlight-color:rgba(255,0,0,0)}a{text-decoration:none;background:0 0}a:active,a:hover{outline:0}table{border-collapse:collapse;border-spacing:0}li{list-style:none}b,strong{font-weight:700}h1,h2,h3,h4,h5,h6{font-weight:500}address,cite,dfn,em,var{font-style:normal}dfn{font-style:italic}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}img{border:0;vertical-align:bottom}.layui-inline,input,label{vertical-align:middle}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;outline:0}button,select{text-transform:none}select{-webkit-appearance:none;border:none}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=1.0.7);src:url(../font/iconfont.eot?v=1.0.7#iefix) format('embedded-opentype'),url(../font/iconfont.woff?v=1.0.7) format('woff'),url(../font/iconfont.ttf?v=1.0.7) format('truetype'),url(../font/iconfont.svg?v=1.0.7#iconfont) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-box,.layui-box *{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important}.layui-border-box,.layui-border-box *{-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important}.layui-inline{position:relative;display:inline-block;*display:inline;*zoom:1}.layui-edge,.layui-upload-iframe{position:absolute;width:0;height:0}.layui-edge{border-style:dashed;border-color:transparent;overflow:hidden}.layui-elip{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-disabled,.layui-disabled:active{background-color:#d2d2d2!important;color:#fff!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}.layui-upload-iframe{border:0;visibility:hidden}.layui-upload-enter{border:1px solid #009E94;background-color:#009E94;color:#fff;-webkit-transform:scale(1.1);transform:scale(1.1)}@-webkit-keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.layui-m-anim-scale{animation-name:layui-m-anim-scale;-webkit-animation-name:layui-m-anim-scale}@-webkit-keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.layui-m-anim-up{-webkit-animation-name:layui-m-anim-up;animation-name:layui-m-anim-up}@-webkit-keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-left{-webkit-animation-name:layui-m-anim-left;animation-name:layui-m-anim-left}@-webkit-keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-right{-webkit-animation-name:layui-m-anim-right;animation-name:layui-m-anim-right}@-webkit-keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}.layui-m-anim-lout{-webkit-animation-name:layui-m-anim-lout;animation-name:layui-m-anim-lout}@-webkit-keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}.layui-m-anim-rout{-webkit-animation-name:layui-m-anim-rout;animation-name:layui-m-anim-rout}.layui-m-layer{position:relative;z-index:19891014}.layui-m-layer *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.layui-m-layermain,.layui-m-layershade{position:fixed;left:0;top:0;width:100%;height:100%}.layui-m-layershade{background-color:rgba(0,0,0,.7);pointer-events:auto}.layui-m-layermain{display:table;font-family:Helvetica,arial,sans-serif;pointer-events:none}.layui-m-layermain .layui-m-layersection{display:table-cell;vertical-align:middle;text-align:center}.layui-m-layerchild{position:relative;display:inline-block;text-align:left;background-color:#fff;font-size:14px;border-radius:5px;box-shadow:0 0 8px rgba(0,0,0,.1);pointer-events:auto;-webkit-overflow-scrolling:touch;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}.layui-m-layer0 .layui-m-layerchild{width:90%;max-width:640px}.layui-m-layer1 .layui-m-layerchild{border:none;border-radius:0}.layui-m-layer2 .layui-m-layerchild{width:auto;max-width:260px;min-width:40px;border:none;background:0 0;box-shadow:none;color:#fff}.layui-m-layerchild h3{padding:0 10px;height:60px;line-height:60px;font-size:16px;font-weight:400;border-radius:5px 5px 0 0;text-align:center}.layui-m-layerbtn span,.layui-m-layerchild h3{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-m-layercont{padding:50px 30px;line-height:22px;text-align:center}.layui-m-layer1 .layui-m-layercont{padding:0;text-align:left}.layui-m-layer2 .layui-m-layercont{text-align:center;padding:0;line-height:0}.layui-m-layer2 .layui-m-layercont i{width:25px;height:25px;margin-left:8px;display:inline-block;background-color:#fff;border-radius:100%;-webkit-animation:layui-m-anim-loading 1.4s infinite ease-in-out;animation:layui-m-anim-loading 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.layui-m-layerbtn,.layui-m-layerbtn span{position:relative;text-align:center;border-radius:0 0 5px 5px}.layui-m-layer2 .layui-m-layercont p{margin-top:20px}@-webkit-keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}@keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}.layui-m-layer2 .layui-m-layercont i:first-child{margin-left:0;-webkit-animation-delay:-.32s;animation-delay:-.32s}.layui-m-layer2 .layui-m-layercont i.layui-m-layerload{-webkit-animation-delay:-.16s;animation-delay:-.16s}.layui-m-layer2 .layui-m-layercont>div{line-height:22px;padding-top:7px;margin-bottom:20px;font-size:14px}.layui-m-layerbtn{display:box;display:-moz-box;display:-webkit-box;width:100%;height:50px;line-height:50px;font-size:0;border-top:1px solid #D0D0D0;background-color:#F2F2F2}.layui-m-layerbtn span{display:block;-moz-box-flex:1;box-flex:1;-webkit-box-flex:1;font-size:14px;cursor:pointer}.layui-m-layerbtn span[yes]{color:#40AFFE}.layui-m-layerbtn span[no]{border-right:1px solid #D0D0D0;border-radius:0 0 0 5px}.layui-m-layerbtn span:active{background-color:#F6F6F6}.layui-m-layerend{position:absolute;right:7px;top:10px;width:30px;height:30px;border:0;font-weight:400;background:0 0;cursor:pointer;-webkit-appearance:none;font-size:30px}.layui-m-layerend::after,.layui-m-layerend::before{position:absolute;left:5px;top:15px;content:'';width:18px;height:1px;background-color:#999;transform:rotate(45deg);-webkit-transform:rotate(45deg);border-radius:3px}.layui-m-layerend::after{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}body .layui-m-layer .layui-m-layer-footer{position:fixed;width:95%;max-width:100%;margin:0 auto;left:0;right:0;bottom:10px;background:0 0}.layui-m-layer-footer .layui-m-layercont{padding:20px;border-radius:5px 5px 0 0;background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn{display:block;height:auto;background:0 0;border-top:none}.layui-m-layer-footer .layui-m-layerbtn span{background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn span[no]{color:#FD482C;border-top:1px solid #c2c2c2;border-radius:0 0 5px 5px}.layui-m-layer-footer .layui-m-layerbtn span[yes]{margin-top:10px;border-radius:5px}body .layui-m-layer .layui-m-layer-msg{width:auto;max-width:90%;margin:0 auto;bottom:-150px;background-color:rgba(0,0,0,.7);color:#fff}.layui-m-layer-msg .layui-m-layercont{padding:10px 20px} -------------------------------------------------------------------------------- /monitor/static/js/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /monitor/static/js/layui/css/modules/laydate/default/laydate.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | .laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:laydate-upbit;animation-name:laydate-upbit}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@-webkit-keyframes laydate-upbit{from{-webkit-transform:translate3d(0,20px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes laydate-upbit{from{transform:translate3d(0,20px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon,.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.laydate-set-ym span,.layui-laydate-header i{padding:0 5px;cursor:pointer}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;color:#999;font-size:18px}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;height:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px 20px}.layui-laydate-footer span{margin-right:15px;display:inline-block;cursor:pointer;font-size:12px}.layui-laydate-footer span:hover{color:#5FB878}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{height:26px;line-height:26px;margin:0 0 0 -1px;padding:0 10px;border:1px solid #C9C9C9;background-color:#fff;white-space:nowrap;vertical-align:top;border-radius:2px}.layui-laydate-list>li,.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;background-color:#fff}.layui-laydate-list>li{position:relative;width:33.3%;height:36px;line-height:36px;margin:3px 0;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px}.layui-laydate-range{width:546px}.layui-laydate-range .laydate-main-list-0 .laydate-next-m,.layui-laydate-range .laydate-main-list-0 .laydate-next-y,.layui-laydate-range .laydate-main-list-1 .laydate-prev-m,.layui-laydate-range .laydate-main-list-1 .laydate-prev-y{display:none}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5FB878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{font-weight:400;color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#00F7DE}.laydate-selected:hover{background-color:#00F7DE!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eaeaea;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#FF5722}.laydate-day-mark::after{background-color:#5FB878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5FB878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead,.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px} -------------------------------------------------------------------------------- /monitor/static/js/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /monitor/static/js/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /monitor/static/js/layui/css/modules/layer/default/layer.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | .layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url(loading-1.gif) center center no-repeat #eee}.layui-layer-ico{background:url(icon.png) no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:42px;line-height:42px;border-bottom:1px solid #eee;font-size:14px;color:#333;overflow:hidden;background-color:#F8F8F8;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:15px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1E9FFF;background-color:#1E9FFF;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:260px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url(loading-0.gif) no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url(loading-1.gif) no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url(loading-2.gif) no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url(icon-ext.png) no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:230px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:260px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:43px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{-webkit-animation-duration:.8s;animation-duration:.8s}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgbar,.layui-layer-imguide{display:none}.layui-layer-imgnext,.layui-layer-imgprev{position:absolute;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:10px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:10px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:absolute;left:0;bottom:0;width:100%;height:32px;line-height:32px;background-color:rgba(0,0,0,.8);background-color:#000\9;filter:Alpha(opacity=80);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}} -------------------------------------------------------------------------------- /monitor/static/js/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/font/iconfont.eot -------------------------------------------------------------------------------- /monitor/static/js/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /monitor/static/js/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/font/iconfont.woff -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/0.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/1.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/10.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/11.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/12.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/13.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/14.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/15.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/16.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/17.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/18.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/19.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/2.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/20.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/21.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/22.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/23.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/24.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/25.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/26.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/27.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/28.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/29.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/3.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/30.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/31.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/32.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/33.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/34.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/35.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/36.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/37.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/38.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/39.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/4.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/40.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/41.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/42.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/43.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/44.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/45.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/46.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/47.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/48.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/49.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/5.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/50.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/51.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/52.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/53.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/54.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/55.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/56.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/57.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/58.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/59.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/6.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/60.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/61.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/62.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/63.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/64.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/65.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/66.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/67.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/68.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/69.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/7.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/70.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/71.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/8.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ypmc/flask-sqlalchemy-web/e7245997d5b41b777ca8d4d8141ccdb393e364da/monitor/static/js/layui/images/face/9.gif -------------------------------------------------------------------------------- /monitor/static/js/layui/lay/modules/carousel.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['
    ',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("")}),i.join("")}(),"
"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
  1. '+o.replace(/[\r\t\n]+/g,"
  2. ")+"
"),c.find(">.layui-code-h3")[0]||c.prepend('

'+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); -------------------------------------------------------------------------------- /monitor/static/js/layui/lay/modules/element.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(i){"use strict";var t=layui.$,a=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(i){var a=this;return t.extend(!0,a.config,i),a},s.prototype.on=function(i,t){return layui.onevent.call(this,e,i,t)},s.prototype.tabAdd=function(i,a){var e=".layui-tab-title",l=t(".layui-tab[lay-filter="+i+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),c='
  • '+(a.title||"unnaming")+"
  • ";return s[0]?s.before(c):n.append(c),o.append('
    '+(a.content||"")+"
    "),y.hideTabMore(!0),y.tabAuto(),this},s.prototype.tabDelete=function(i,a){var e=".layui-tab-title",l=t(".layui-tab[lay-filter="+i+"]"),n=l.children(e),s=n.find('>li[lay-id="'+a+'"]');return y.tabDelete(null,s),this},s.prototype.tabChange=function(i,a){var e=".layui-tab-title",l=t(".layui-tab[lay-filter="+i+"]"),n=l.children(e),s=n.find('>li[lay-id="'+a+'"]');return y.tabClick.call(s[0],null,null,s),this},s.prototype.tab=function(i){i=i||{},v.on("click",i.headerElem,function(a){var e=t(this).index();y.tabClick.call(this,a,e,null,i)})},s.prototype.progress=function(i,a){var e="layui-progress",l=t("."+e+"[lay-filter="+i+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",a),s.text(a),this};var o=".layui-nav",c="layui-nav-item",r="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",h="layui-nav-more",f="layui-anim layui-anim-upbit",y={tabClick:function(i,a,s,o){o=o||{};var c=s||t(this),a=a||c.parent().children("li").index(c),r=o.headerElem?c.parent():c.parents(".layui-tab").eq(0),u=o.bodyElem?t(o.bodyElem):r.children(".layui-tab-content").children(".layui-tab-item"),d=c.find("a"),h=r.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(c.addClass(l).siblings().removeClass(l),u.eq(a).addClass(n).siblings().removeClass(n)),layui.event.call(this,e,"tab("+h+")",{elem:r,index:a})},tabDelete:function(i,a){var n=a||t(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),c=o.children(".layui-tab-content").children(".layui-tab-item"),r=o.attr("lay-filter");n.hasClass(l)&&(n.next()[0]?y.tabClick.call(n.next()[0],null,s+1):n.prev()[0]&&y.tabClick.call(n.prev()[0],null,s-1)),n.remove(),c.eq(s).remove(),setTimeout(function(){y.tabAuto()},50),layui.event.call(this,e,"tabDelete("+r+")",{elem:o,index:s})},tabAuto:function(){var i="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;t(".layui-tab").each(function(){var s=t(this),o=s.children(".layui-tab-title"),c=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),r=t('');if(n===window&&8!=a.ie&&y.hideTabMore(!0),s.attr("lay-allowClose")&&o.find("li").each(function(){var i=t(this);if(!i.find("."+l)[0]){var a=t('');a.on("click",y.tabDelete),i.append(a)}}),o.prop("scrollWidth")>o.outerWidth()+1){if(o.find("."+e)[0])return;o.append(r),s.attr("overflow",""),r.on("click",function(t){o[this.title?"removeClass":"addClass"](i),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeAttr("overflow")})},hideTabMore:function(i){var a=t(".layui-tab-title");i!==!0&&"tabmore"===t(i.target).attr("lay-stope")||(a.removeClass("layui-tab-more"),a.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var i=t(this),a=i.parents(o),n=a.attr("lay-filter"),s=i.find("a"),c="string"==typeof i.attr("lay-unselect");i.find("."+d)[0]||("javascript:;"!==s.attr("href")&&"_blank"===s.attr("target")||c||(a.find("."+l).removeClass(l),i.addClass(l)),layui.event.call(this,e,"nav("+n+")",i))},clickChild:function(){var i=t(this),a=i.parents(o),n=a.attr("lay-filter");a.find("."+l).removeClass(l),i.addClass(l),layui.event.call(this,e,"nav("+n+")",i)},showChild:function(){var i=t(this),a=i.parents(o),e=i.parent(),l=i.siblings("."+d);a.hasClass(u)&&(l.removeClass(f),e["none"===l.css("display")?"addClass":"removeClass"](c+"ed"))},collapse:function(){var i=t(this),a=i.find(".layui-colla-icon"),l=i.siblings(".layui-colla-content"),s=i.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),c="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var r=s.children(".layui-colla-item").children("."+n);r.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),r.removeClass(n)}l[c?"addClass":"removeClass"](n),a.html(c?"":""),layui.event.call(this,e,"collapse("+o+")",{title:i,content:l,show:c})}};s.prototype.init=function(i,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){y.tabAuto.call({})},nav:function(){var i=200,e={},s={},p={},v=function(l,o,c){var r=t(this),y=r.find("."+d);o.hasClass(u)?l.css({top:r.position().top,height:r.children("a").height(),opacity:1}):(y.addClass(f),l.css({left:r.position().left+parseFloat(r.css("marginLeft")),top:r.position().top+r.height()-l.height()}),e[c]=setTimeout(function(){l.css({width:r.width(),opacity:1})},a.ie&&a.ie<10?0:i),clearTimeout(p[c]),"block"===y.css("display")&&clearTimeout(s[c]),s[c]=setTimeout(function(){y.addClass(n),r.find("."+h).addClass(h+"d")},300))};t(o+l).each(function(a){var l=t(this),o=t(''),f=l.find("."+c);l.find("."+r)[0]||(l.append(o),f.on("mouseenter",function(){v.call(this,o,l,a)}).on("mouseleave",function(){l.hasClass(u)||(clearTimeout(s[a]),s[a]=setTimeout(function(){l.find("."+d).removeClass(n),l.find("."+h).removeClass(h+"d")},300))}),l.on("mouseleave",function(){clearTimeout(e[a]),p[a]=setTimeout(function(){l.hasClass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},i)})),f.each(function(){var i=t(this),a=i.find("."+d);if(a[0]&&!i.find("."+h)[0]){var e=i.children("a");e.append('')}i.off("click",y.clickThis).on("click",y.clickThis),i.children("a").off("click",y.showChild).on("click",y.showChild),a.children("dd").off("click",y.clickChild).on("click",y.clickChild)})})},breadcrumb:function(){var i=".layui-breadcrumb";t(i+l).each(function(){var i=t(this),a="lay-separator",e=i.attr(a)||"/",l=i.find("a");l.next("span["+a+"]")[0]||(l.each(function(i){i!==l.length-1&&t(this).after(""+e+"")}),i.css("visibility","visible"))})},progress:function(){var i="layui-progress";t("."+i+l).each(function(){var a=t(this),e=a.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new Function("return "+l)()+"%":l}()),a.attr("lay-showPercent")&&setTimeout(function(){e.html(''+l+"")},350)})},collapse:function(){var i="layui-collapse";t("."+i+l).each(function(){var i=t(this).find(".layui-colla-item");i.each(function(){var i=t(this),a=i.find(".layui-colla-title"),e=i.find(".layui-colla-content"),l="none"===e.css("display");a.find(".layui-colla-icon").remove(),a.append(''+(l?"":"")+""),a.off("click",y.collapse).on("click",y.collapse)})})}};return s[i]?s[i]():layui.each(s,function(i,t){t()})},s.prototype.render=s.prototype.init;var p=new s,v=t(document);p.render();var b=".layui-tab-title li";v.on("click",b,y.tabClick),v.on("click",y.hideTabMore),t(window).on("resize",y.tabAuto),i(e,p)}); -------------------------------------------------------------------------------- /monitor/static/js/layui/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)}); -------------------------------------------------------------------------------- /monitor/static/js/layui/lay/modules/form.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | ;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",u="layui-disabled",c=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(e){if(!e||isNaN(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};c.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},c.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},c.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},c.prototype.render=function(e,i){var n=this,c=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),d={select:function(){var e,i="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=c.find("select"),y=function(i,l){t(i.target).parent().hasClass(n)&&!l||(t("."+a).removeClass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},h=function(i,c,f){var h=t(this),p=i.find("."+n),m=p.find("input"),k=i.find("dl"),g=k.children("dd");if(!c){var x=function(){var e=i.offset().top+i.outerHeight()+5-v.scrollTop(),t=k.outerHeight();i.addClass(a+"ed"),g.removeClass(o),e+t>v.height()&&e>=t&&i.addClass(a+"up")},b=function(e){i.removeClass(a+"ed "+a+"up"),m.blur(),e||C(m.val(),function(e){e&&(d=k.find("."+s).html(),m&&m.val(d))})};p.on("click",function(e){i.hasClass(a+"ed")?b():(y(e,!0),x()),k.find("."+r).remove()}),p.find(".layui-edge").on("click",function(){m.focus()}),m.on("keyup",function(e){var t=e.keyCode;9===t&&x()}).on("keydown",function(e){var t=e.keyCode;9===t?b():13===t&&e.preventDefault()});var C=function(e,i,a){var n=0;layui.each(g,function(){var i=t(this),l=i.text(),r=l.indexOf(e)===-1;(""===e||"blur"===a?e!==l:r)&&n++,"keyup"===a&&i[r?"addClass":"removeClass"](o)});var l=n===g.length;return i(l),l},w=function(e){var t=this.value,i=e.keyCode;return 9!==i&&13!==i&&37!==i&&38!==i&&39!==i&&40!==i&&(C(t,function(e){e?k.find("."+r)[0]||k.append('

    无匹配项

    '):k.find("."+r).remove()},"keyup"),void(""===t&&k.find("."+r).remove()))};f&&m.on("keyup",w).on("blur",function(t){e=m,d=k.find("."+s).html(),setTimeout(function(){C(m.val(),function(e){d||m.val("")},"blur")},200)}),g.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=h.attr("lay-filter");return!e.hasClass(u)&&(e.hasClass("layui-select-tips")?m.val(""):(m.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),h.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:h[0],value:a,othis:i}),b(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",y).on("click",y)}};f.each(function(e,l){var r=t(this),o=r.next("."+a),c=this.disabled,d=l.value,f=t(l.options[l.selectedIndex]),y=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var v="string"==typeof r.attr("lay-search"),p=y?y.value?i:y.innerHTML||i:i,m=t(['
    ','
    ','
    ','
    '+function(e){var t=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagName.toLowerCase()?t.push("
    "+a.label+"
    "):t.push('
    '+a.innerHTML+"
    "):t.push('
    '+(a.innerHTML||i)+"
    ")}),0===t.length&&t.push('
    没有选项
    '),t.join("")}(r.find("*"))+"
    ","
    "].join(""));o[0]&&o.remove(),r.after(m),h.call(this,m,c,v)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=c.find("input[type=checkbox]"),a=function(e,i){var a=t(this);e.on("click",function(){var t=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeClass(i[1]).find("em").text(n[1])):(a[0].checked=!0,e.addClass(i[1]).find("em").text(n[0])),layui.event.call(a[0],l,i[2]+"("+t+")",{elem:a[0],value:a[0].value,othis:e}))})};i.each(function(i,n){var l=t(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var c=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+c[0]),f=t(['
    ',{_switch:""+((n.checked?s[0]:s[1])||"")+""}[r]||(n.title.replace(/\s/g,"")?""+n.title+"":"")+''+(r?"":"")+"","
    "].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,c)})},radio:function(){var e="layui-form-radio",i=["",""],a=c.find("input[type=radio]"),n=function(a){var n=t(this),s="layui-anim-scaleSpring";a.on("click",function(){var o=n[0].name,u=n.parents(r),c=n.attr("lay-filter"),d=u.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=t(this).next("."+e);this.checked=!1,a.removeClass(e+"ed"),a.find(".layui-icon").removeClass(s).html(i[1])}),n[0].checked=!0,a.addClass(e+"ed"),a.find(".layui-icon").addClass(s).html(i[0]),layui.event.call(n[0],l,"radio("+c+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var c=t(['
    ',''+i[l.checked?0:1]+"","
    "+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"
    ","
    "].join(""));r.after(c),n.call(this,c)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,t){t()}),n};var d=function(){var e=t(this),a=f.config.verify,s=null,o="layui-form-danger",u={},c=e.parents(r),d=c.find("*[lay-verify]"),y=e.parents("form")[0],v=c.find("input,select,textarea"),h=e.attr("lay-filter");if(layui.each(d,function(e,l){var r=t(this),u=r.attr("lay-verify").split("|"),c=r.attr("lay-verType"),d=r.val();if(r.removeClass(o),layui.each(u,function(e,t){var u,f="",y="function"==typeof a[t];if(a[t]){var u=y?f=a[t](d,l):!a[t][0].test(d);if(f=f||a[t][1],u)return"tips"===c?i.tips(f,function(){return"string"==typeof r.attr("lay-ignore")||"select"!==l.tagName.toLowerCase()&&!/^checkbox|radio$/.test(l.type)?r:r.next()}(),{tips:1}):"alert"===c?i.alert(f,{title:"提示",shadeClose:!0}):i.msg(f,{icon:5,shift:6}),n.android||n.ios||l.focus(),r.addClass(o),s=!0}}),s)return s}),s)return!1;var p={};return layui.each(v,function(e,t){if(t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name){if(/^.*\[\]$/.test(t.name)){var i=t.name.match(/^(.*)\[\]$/g)[0];p[i]=0|p[i],t.name=t.name.replace(/^(.*)\[\]$/,"$1["+p[i]++ +"]")}/^checkbox|radio$/.test(t.type)&&!t.checked||(u[t.name]=t.value)}}),layui.event.call(this,l,"submit("+h+")",{elem:this,form:y,field:u})},f=new c,y=t(document),v=t(window);f.render(),y.on("reset",r,function(){var e=t(this).attr("lay-filter");setTimeout(function(){f.render(null,e)},50)}),y.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)}); -------------------------------------------------------------------------------- /monitor/static/js/layui/lay/modules/layedit.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | ;layui.define(["layer","form"],function(t){"use strict";var e=layui.$,i=layui.layer,a=layui.form,l=(layui.hint(),layui.device()),n="layedit",o="layui-show",r="layui-disabled",c=function(){var t=this;t.index=0,t.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hideTool:[],height:280}};c.prototype.set=function(t){var i=this;return e.extend(!0,i.config,t),i},c.prototype.on=function(t,e){return layui.onevent(n,t,e)},c.prototype.build=function(t,i){i=i||{};var a=this,n=a.config,r="layui-layedit",c=e("#"+t),u="LAY_layedit_"+ ++a.index,d=c.next("."+r),y=e.extend({},n,i),f=function(){var t=[],e={};return layui.each(y.hideTool,function(t,i){e[i]=!0}),layui.each(y.tool,function(i,a){C[a]&&!e[a]&&t.push(C[a])}),t.join("")}(),m=e(['
    ','
    '+f+"
    ",'
    ','',"
    ","
    "].join(""));return l.ie&&l.ie<8?c.removeClass("layui-hide").addClass(o):(d[0]&&d.remove(),s.call(a,m,c[0],y),c.addClass("layui-hide").after(m),a.index)},c.prototype.getContent=function(t){var e=u(t);if(e[0])return d(e[0].document.body.innerHTML)},c.prototype.getText=function(t){var i=u(t);if(i[0])return e(i[0].document.body).text()},c.prototype.setContent=function(t,i,a){var l=u(t);l[0]&&(a?e(l[0].document.body).append(i):e(l[0].document.body).html(i),layedit.sync(t))},c.prototype.sync=function(t){var i=u(t);if(i[0]){var a=e("#"+i[1].attr("textarea"));a.val(d(i[0].document.body.innerHTML))}},c.prototype.getSelection=function(t){var e=u(t);if(e[0]){var i=m(e[0].document);return document.selection?i.text:i.toString()}};var s=function(t,i,a){var l=this,n=t.find("iframe");n.css({height:a.height}).on("load",function(){var o=n.contents(),r=n.prop("contentWindow"),c=o.find("head"),s=e([""].join("")),u=o.find("body");c.append(s),u.attr("contenteditable","true").css({"min-height":a.height}).html(i.value||""),y.apply(l,[r,n,i,a]),g.call(l,r,t,a)})},u=function(t){var i=e("#LAY_layedit_"+t),a=i.prop("contentWindow");return[a,i]},d=function(t){return 8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),t},y=function(t,a,n,o){var r=t.document,c=e(r.body);c.on("keydown",function(t){var e=t.keyCode;if(13===e){var a=m(r),l=p(a),n=l.parentNode;if("pre"===n.tagName.toLowerCase()){if(t.shiftKey)return;return i.msg("请暂时用shift+enter"),!1}r.execCommand("formatBlock",!1,"

    ")}}),e(n).parents("form").on("submit",function(){var t=c.html();8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),n.value=t}),c.on("paste",function(e){r.execCommand("formatBlock",!1,"

    "),setTimeout(function(){f.call(t,c),n.value=c.html()},100)})},f=function(t){var i=this;i.document;t.find("*[style]").each(function(){var t=this.style.textAlign;this.removeAttribute("style"),e(this).css({"text-align":t||""})}),t.find("table").addClass("layui-table"),t.find("script,link").remove()},m=function(t){return t.selection?t.selection.createRange():t.getSelection().getRangeAt(0)},p=function(t){return t.endContainer||t.parentElement().childNodes[0]},v=function(t,i,a){var l=this.document,n=document.createElement(t);for(var o in i)n.setAttribute(o,i[o]);if(n.removeAttribute("text"),l.selection){var r=a.text||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.pasteHTML(e(n).prop("outerHTML")),a.select()}else{var r=a.toString()||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.deleteContents(),a.insertNode(n)}},h=function(t,i){var a=this.document,l="layedit-tool-active",n=p(m(a)),o=function(e){return t.find(".layedit-tool-"+e)};i&&i[i.hasClass(l)?"removeClass":"addClass"](l),t.find(">i").removeClass(l),o("unlink").addClass(r),e(n).parents().each(function(){var t=this.tagName.toLowerCase(),e=this.style.textAlign;"b"!==t&&"strong"!==t||o("b").addClass(l),"i"!==t&&"em"!==t||o("i").addClass(l),"u"===t&&o("u").addClass(l),"strike"===t&&o("d").addClass(l),"p"===t&&("center"===e?o("center").addClass(l):"right"===e?o("right").addClass(l):o("left").addClass(l)),"a"===t&&(o("link").addClass(l),o("unlink").removeClass(r))})},g=function(t,a,l){var n=t.document,o=e(n.body),c={link:function(i){var a=p(i),l=e(a).parent();b.call(o,{href:l.attr("href"),target:l.attr("target")},function(e){var a=l[0];"A"===a.tagName?a.href=e.url:v.call(t,"a",{target:e.target,href:e.url,text:e.url},i)})},unlink:function(t){n.execCommand("unlink")},face:function(e){x.call(this,function(i){v.call(t,"img",{src:i.src,alt:i.alt},e)})},image:function(a){var n=this;layui.use("upload",function(o){var r=l.uploadImage||{};o.render({url:r.url,method:r.type,elem:e(n).find("input")[0],done:function(e){0==e.code?(e.data=e.data||{},v.call(t,"img",{src:e.data.src,alt:e.data.title},a)):i.msg(e.msg||"上传失败")}})})},code:function(e){k.call(o,function(i){v.call(t,"pre",{text:i.code,"lay-lang":i.lang},e)})},help:function(){i.open({type:2,title:"帮助",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},s=a.find(".layui-layedit-tool"),u=function(){var i=e(this),a=i.attr("layedit-event"),l=i.attr("lay-command");if(!i.hasClass(r)){o.focus();var u=m(n);u.commonAncestorContainer;l?(n.execCommand(l),/justifyLeft|justifyCenter|justifyRight/.test(l)&&n.execCommand("formatBlock",!1,"

    "),setTimeout(function(){o.focus()},10)):c[a]&&c[a].call(this,u),h.call(t,s,i)}},d=/image/;s.find(">i").on("mousedown",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)||u.call(this)}).on("click",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)&&u.call(this)}),o.on("click",function(){h.call(t,s),i.close(x.index)})},b=function(t,e){var l=this,n=i.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"超链接",skin:"layui-layer-msg",content:['

      ','
    • ','','
      ','',"
      ","
    • ",'
    • ','','
      ','",'","
      ","
    • ",'
    • ','','',"
    • ","
    "].join(""),success:function(t,n){var o="submit(layedit-link-yes)";a.render("radio"),t.find(".layui-btn-primary").on("click",function(){i.close(n),l.focus()}),a.on(o,function(t){i.close(b.index),e&&e(t.field)})}});b.index=n},x=function(t){var a=function(){var t=["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[NO]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],e={};return layui.each(t,function(t,i){e[i]=layui.cache.dir+"images/face/"+t+".gif"}),e}();return x.hide=x.hide||function(t){"face"!==e(t.target).attr("layedit-event")&&i.close(x.index)},x.index=i.tips(function(){var t=[];return layui.each(a,function(e,i){t.push('
  • '+e+'
  • ')}),'
      '+t.join("")+"
    "}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxWidth:500,success:function(l,n){l.css({marginTop:-4,marginLeft:-10}).find(".layui-clear>li").on("click",function(){t&&t({src:a[this.title],alt:this.title}),i.close(n)}),e(document).off("click",x.hide).on("click",x.hide)}})},k=function(t){var e=this,l=i.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"插入代码",skin:"layui-layer-msg",content:['
      ','
    • ','','
      ','","
      ","
    • ",'
    • ','','
      ','',"
      ","
    • ",'
    • ','','',"
    • ","
    "].join(""),success:function(l,n){var o="submit(layedit-code-yes)";a.render("select"),l.find(".layui-btn-primary").on("click",function(){i.close(n),e.focus()}),a.on(o,function(e){i.close(k.index),t&&t(e.field)})}});k.index=l},C={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',face:'',image:'',code:'',help:''},w=new c;t(n,w)}); -------------------------------------------------------------------------------- /monitor/static/js/layui/lay/modules/layer.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | ;!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,i=t.length-1,n=i;n>0;n--)if("interactive"===t[n].readyState){e=t[n].src;break}return e||t[i].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(t,i){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](i)},link:function(t,i,n){if(r.path){var a=document.getElementsByTagName("head")[0],s=document.createElement("link");"string"==typeof i&&(n=i);var l=(n||t).replace(/\.|\//g,""),f="layuicss-"+l,c=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,document.getElementById(f)||a.appendChild(s),"function"==typeof i&&!function u(){return++c>80?e.console&&console.error("layer.css: Invalid"):void(1989===parseInt(o.getStyle(document.getElementById(f),"width"))?i():setTimeout(u,100))}()}}},r={v:"3.1.1",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(e.ActiveXObject||"ActiveXObject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getPath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):o.link("theme/"+e.extend),this):this},ready:function(e){var t="layer",i="",n=(a?"modules/layer/":"theme/")+"default/layer.css?v="+r.v+i;return a?layui.addcss(n,e,t):o.link(n,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closeBtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},n))}},s=function(e){var t=this;t.index=++r.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zIndex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'
    '+(f?r.title[0]:r.title)+"
    ":"";return r.zIndex=s,t([r.shade?'
    ':"",'
    '+(e&&2!=r.type?"":u)+'
    '+(0==r.type&&r.icon!==-1?'':"")+(1==r.type&&e?"":r.content||"")+'
    '+function(){var e=c?'':"";return r.closeBtn&&(e+=''),e}()+""+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t'+r.btn[t]+"";return'
    '+e+"
    "}():"")+(r.resize?'':"")+"
    "],u,i('
    ')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeAll("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"http://layer.layui.com","auto"];t.content='';break;case 3:delete t.title,delete t.closeBtn,t.icon===-1&&0===t.icon,r.closeAll("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsMore||r.closeAll("tips")}if(e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i(".layui-layer-move")[0]||c.append(o.moveElem=u),e.layero=i("#"+l[0]+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),i("#layui-layer-shade"+e.index).css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():e.offset(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||setTimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]){var u="layer-anim "+l.anim[t.anim];e.layero.addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){i(this).removeClass(u)})}t.isOutAnim&&e.layero.data("isOutAnim",!0)}},s.pt.auto=function(e){var t=this,a=t.config,o=i("#"+l[0]+e);""===a.area[0]&&a.maxWidth>0&&(r.ie&&r.ie<8&&a.btn&&o.width(o.innerWidth()),o.outerWidth()>a.maxWidth&&o.width(a.maxWidth));var s=[o.innerWidth(),o.innerHeight()],f=o.find(l[1]).outerHeight()||0,c=o.find("."+l[6]).outerHeight()||0,u=function(e){e=o.find(e),e.height(s[1]-f-c-2*(0|parseFloat(e.css("padding-top"))))};switch(a.type){case 2:u("iframe");break;default:""===a.area[1]?a.maxHeight>0&&o.outerHeight()>a.maxHeight?(s[1]=a.maxHeight,u("."+l[5])):a.fixed&&s[1]>=n.height()&&(s[1]=n.height(),u("."+l[5])):u("."+l[5])}return t},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],o="object"==typeof t.offset;e.offsetTop=(n.height()-a[1])/2,e.offsetLeft=(n.width()-a[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=n.width()-a[0]:"b"===t.offset?e.offsetTop=n.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=n.width()-a[0]):"rb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=n.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?n.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?n.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=n.scrollTop(),e.offsetLeft+=n.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=n.height()-(i.find(l[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerWidth(),a.outerHeight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerWidth(),height:r.outerHeight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-TipsG"),c=t.tips[0];t.tips[1]||f.remove(),s.autoLeft=function(){s.left+o[0]-n.width()>0?(s.tipLeft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-o[1]-10,f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top,f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){s.autoLeft(),s.tipTop=s.top+s.height+10,f.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left-o[0]-10,s.tipTop=s.top,f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrollTop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrollTop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),a.css({left:s.tipLeft-(t.fixed?n.scrollLeft():0),top:s.tipTop-(t.fixed?n.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventDefault(),t.move&&(c.moveStart=!0,c.offset=[e.clientX-parseFloat(s.css("left")),e.clientY-parseFloat(s.css("top"))],o.moveElem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventDefault(),c.resizeStart=!0,c.offset=[e.clientX,e.clientY],c.area=[s.outerWidth(),s.outerHeight()],o.moveElem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.moveStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1],l="fixed"===s.css("position");if(i.preventDefault(),c.stX=l?0:n.scrollLeft(),c.stY=l?0:n.scrollTop(),!t.moveOut){var f=n.width()-s.outerWidth()+c.stX,u=n.height()-s.outerHeight()+c.stY;af&&(a=f),ou&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizeStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1];i.preventDefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isResize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.moveStart&&(delete c.moveStart,o.moveElem.hide(),t.moveEnd&&t.moveEnd(s)),c.resizeStart&&(delete c.resizeStart,o.moveElem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openLayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.IE6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeClose&&i("#layui-layer-shade"+t.index).on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasClass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n)):(r.full(t.index,a),setTimeout(function(){a.full&&a.full(n)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeAttr("layer").show(),n=null})},s.pt.IE6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openLayer=function(){var e=this;r.zIndex=e.config.zIndex,r.setTop=function(e){var t=function(){r.zIndex++,e.css("z-index",r.zIndex+1)};return r.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),r.zIndex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeProperty?l.html[0].style.removeProperty("overflow"):l.html[0].style.removeAttribute("overflow"),l.html.removeAttr("layer-full"))},e.layer=r,r.getChildFrame=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getFrameIndex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeAuto=function(e){if(e){var t=r.getChildFrame("html",e).outerHeight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerHeight()||0,o=n.find("."+l[6]).outerHeight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframeSrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerHeight()||0,c=a.find("."+l[6]).outerHeight()||0;a.attr("minLeft");s!==o.type[3]&&s!==o.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerHeight(),s===o.type[2]?a.find("iframe").css({height:parseFloat(t.height)-f-c}):r.css({height:parseFloat(t.height)-f-c-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom"))}))},r.min=function(e,t){var a=i("#"+l[0]+e),s=a.find(l[1]).outerHeight()||0,f=a.attr("minLeft")||181*o.minIndex+"px",c=a.css("position");o.record(a),o.minLeft[0]&&(f=o.minLeft[0],o.minLeft.shift()),a.attr("position",c),r.style(e,{width:180,height:s,left:f,top:n.height()-s,position:"fixed",overflow:"hidden"},!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),a.attr("minLeft")||o.minIndex++,a.attr("minLeft",f)},r.restore=function(e){var t=i("#"+l[0]+e),n=t.attr("area").split(",");t.attr("type");r.style(e,{width:parseFloat(n[0]),height:parseFloat(n[1]),top:parseFloat(n[2]),left:parseFloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e)},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),clearTimeout(t),t=setTimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrollTop(),left:t?0:n.scrollLeft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e){var t=i("#"+l[0]+e),n=t.attr("type"),a="layer-anim-close";if(t[0]){var s="layui-layer-wrap",f=function(){if(n===o.type[1]&&"object"===t.attr("conType")){t.children(":not(."+l[5]+")").remove();for(var a=t.find("."+s),r=0;r<2;r++)a.unwrap();a.css("display",a.data("display")).removeClass(s)}else{if(n===o.type[2])try{var f=i("#"+l[4]+e)[0];f.contentWindow.document.write(""),f.contentWindow.close(),t.find("."+l[5])[0].removeChild(f)}catch(c){}t[0].innerHTML="",t.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isOutAnim")&&t.addClass("layer-anim "+a),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),t.attr("minLeft")&&(o.minIndex--,o.minLeft.push(t.attr("minLeft"))),r.ie&&r.ie<10||!t.data("isOutAnim")?f():setTimeout(function(){f()},200)}},r.closeAll=function(e){i.each(i("."+l[0]),function(){var t=i(this),n=e?t.attr("type")===e:1;n&&r.close(t.attr("times")),n=null})};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formType?'":function(){return''}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["确定","取消"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxWidth:n.width(),success:function(t){s=t.find(".layui-layer-input"),s.val(e.value||"").focus(),"function"==typeof f&&f(t)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("最多输入"+(e.maxlength||500)+"个字数",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",a=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,a="";if(e>0)for(a=''+t[0].title+"";i"+t[i].title+"";return a}(),content:'
      '+function(){var e=t.length,i=1,a="";if(e>0)for(a='
    • '+(t[0].content||"no content")+"
    • ";i'+(t[i].content||"no content")+"";return a}()+"
    ",success:function(t){var o=t.find(".layui-layer-title").children(),r=t.find(".layui-layer-tabmain").children();o.on("mousedown",function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var a=i(this),o=a.index();a.addClass(n).siblings().removeClass(n),r.eq(o).show().siblings().hide(),"function"==typeof e.change&&e.change(o)}),"function"==typeof a&&a(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=t.photos.constructor===Object,f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgIndex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("没有图片")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0),h()}),!n)return}s.imgprev=function(e){s.imgIndex--,s.imgIndex<1&&(s.imgIndex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgIndex++,s.imgIndex>u.length&&(s.imgIndex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keyCode;e.preventDefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgIndex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),s.imgnext()}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]'+(u[d].alt||
    '+(u.length>1?'':"")+'
    '+(u[d].alt||"")+""+s.imgIndex+"/"+u.length+"
    ",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常
    是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.$),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jQuery),r}):function(){o.run(e.jQuery),r.ready()}()}(window); -------------------------------------------------------------------------------- /monitor/static/js/layui/lay/modules/laypage.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),skip:function(){return['到第','','页',""].join("")}()};return['
    ',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
    "].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)}); -------------------------------------------------------------------------------- /monitor/static/js/layui/lay/modules/laytpl.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)}); -------------------------------------------------------------------------------- /monitor/static/js/layui/lay/modules/table.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | ;layui.define(["laytpl","laypage","layer","form"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=layui.hint(),r=layui.device(),d={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,s,e,t)}},c=function(){var e=this,t=e.config,i=t.id;return i&&(c.config[i]=t),{reload:function(t){e.reload.call(e,t)},config:t}},s="table",u=".layui-table",h="layui-hide",f="layui-none",y="layui-table-view",p=".layui-table-header",m=".layui-table-body",v=".layui-table-main",g=".layui-table-fixed",x=".layui-table-fixed-l",b=".layui-table-fixed-r",k=".layui-table-tool",C=".layui-table-page",w=".layui-table-sort",N="layui-table-edit",F="layui-table-hover",W=function(e){var t='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return e=e||{},['',"","{{# layui.each(d.data.cols, function(i1, item1){ }}","","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',function(){return e.fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':""}(),'",e.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
    ','
    1){ }}","group","{{# } else { }}","{{d.index}}-{{item2.field || i2}}",'{{# if(item2.type !== "normal"){ }}'," laytable-cell-{{ item2.type }}","{{# } }}","{{# } }}",'" {{#if(item2.align){}}align="{{item2.align}}"{{#}}}>','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{item2.title||""}}',"{{# if(!(item2.colspan > 1) && item2.sort){ }}",'',"{{# } }}","{{# } }}","
    ","
    "].join("")},z=['',"","
    "].join(""),A=['
    ',"{{# if(d.data.toolbar){ }}",'
    ',"{{# } }}",'
    ',"{{# var left, right; }}",'
    ',W(),"
    ",'
    ',z,"
    ","{{# if(left){ }}",'
    ','
    ',W({fixed:!0}),"
    ",'
    ',z,"
    ","
    ","{{# }; }}","{{# if(right){ }}",'
    ','
    ',W({fixed:"right"}),'
    ',"
    ",'
    ',z,"
    ","
    ","{{# }; }}","
    ","{{# if(d.data.page){ }}",'
    ','
    ',"
    ","{{# } }}","","
    "].join(""),T=t(window),M=t(document),S=function(e){var i=this;i.index=++d.index,i.config=t.extend({},i.config,d.config,e),i.render()};S.prototype.config={limit:10,loading:!0,cellMinWidth:60,text:{none:"无数据"}},S.prototype.render=function(){var e=this,a=e.config;if(a.elem=t(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id"),a.request=t.extend({pageName:"page",limitName:"limit"},a.request),a.response=t.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",countName:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,e.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return e;e.setArea();var l=a.elem,n=l.next("."+y),o=e.elem=t(i(A).render({VIEW_CLASS:y,data:a,index:e.index}));if(a.index=e.index,n[0]&&n.remove(),l.after(o),e.layHeader=o.find(p),e.layMain=o.find(v),e.layBody=o.find(m),e.layFixed=o.find(g),e.layFixLeft=o.find(x),e.layFixRight=o.find(b),e.layTool=o.find(k),e.layPage=o.find(C),e.layTool.html(i(t(a.toolbar).html()||"").render(a)),a.height&&e.fullSize(),a.cols.length>1){var r=e.layFixed.find(p).find("th");r.height(e.layHeader.height()-1-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom")))}e.pullData(e.page),e.events()},S.prototype.initOpts=function(e){var t=this,i=(t.config,{checkbox:48,space:15,numbers:40});e.checkbox&&(e.type="checkbox"),e.space&&(e.type="space"),e.type||(e.type="normal"),"normal"!==e.type&&(e.unresize=!0,e.width=e.width||i[e.type])},S.prototype.setArea=function(){var e=this,t=e.config,i=0,a=0,l=0,n=0,o=t.width||function(){var e=function(i){var a,l;i=i||t.elem.parent(),a=i.width();try{l="none"===i.css("display")}catch(n){}return!i[0]||a&&!l?a:e(i.parent())};return e()}();e.eachCols(function(){i++}),o-=function(){return"line"===t.skin||"nob"===t.skin?2:i+1}(),layui.each(t.cols,function(t,i){layui.each(i,function(t,l){var r;return l?(e.initOpts(l),r=l.width||0,void(l.colspan>1||(/\d+%$/.test(r)?l.width=r=Math.floor(parseFloat(r)/100*o):r||(l.width=r=0,a++),n+=r))):void i.splice(t,1)})}),e.autoColNums=a,o>n&&a&&(l=(o-n)/a),layui.each(t.cols,function(e,i){layui.each(i,function(e,i){var a=i.minWidth||t.cellMinWidth;i.colspan>1||0===i.width&&(i.width=Math.floor(l>=a?l:a))})}),t.height&&/^full-\d+$/.test(t.height)&&(e.fullHeightGap=t.height.split("-")[1],t.height=T.height()-e.fullHeightGap)},S.prototype.reload=function(e){var i=this;i.config.data&&i.config.data.constructor===Array&&delete i.config.data,i.config=t.extend({},i.config,e),i.render()},S.prototype.page=1,S.prototype.pullData=function(e,i){var a=this,n=a.config,o=n.request,r=n.response,d=function(){"object"==typeof n.initSort&&a.sort(n.initSort.field,n.initSort.type)};if(a.startTime=(new Date).getTime(),n.url){var c={};c[o.pageName]=e,c[o.limitName]=n.limit,t.ajax({type:n.method||"get",url:n.url,data:t.extend(c,n.where),dataType:"json",success:function(t){t[r.statusName]!=r.statusCode?(a.renderForm(),a.layMain.html('
    '+(t[r.msgName]||"返回的数据状态异常")+"
    ")):(a.renderData(t,e,t[r.countName]),d(),n.time=(new Date).getTime()-a.startTime+" ms"),i&&l.close(i),"function"==typeof n.done&&n.done(t,e,t[r.countName])},error:function(e,t){a.layMain.html('
    数据接口请求异常
    '),a.renderForm(),i&&l.close(i)}})}else if(n.data&&n.data.constructor===Array){var s={},u=e*n.limit-n.limit;s[r.dataName]=n.data.concat().splice(u,n.limit),s[r.countName]=n.data.length,a.renderData(s,e,n.data.length),d(),"function"==typeof n.done&&n.done(s,e,s[r.countName])}},S.prototype.eachCols=function(e){var i=t.extend(!0,[],this.config.cols),a=[],l=0;layui.each(i,function(e,t){layui.each(t,function(t,n){if(n.colspan>1){var o=0;l++,n.CHILD_COLS=[],layui.each(i[e+1],function(e,t){t.PARENT_COL||o==n.colspan||(t.PARENT_COL=l,n.CHILD_COLS.push(t),o+=t.colspan>1?t.colspan:1)})}n.PARENT_COL||a.push(n)})});var n=function(t){layui.each(t||a,function(t,i){return i.CHILD_COLS?n(i.CHILD_COLS):void e(t,i)})};n()},S.prototype.renderData=function(e,n,o,r){var c=this,s=c.config,u=e[s.response.dataName]||[],y=[],p=[],m=[],v=function(){return!r&&c.sortKey?c.sort(c.sortKey.field,c.sortKey.sort,!0):(layui.each(u,function(e,a){var l=[],o=[],u=[],h=e+s.limit*(n-1)+1;0!==a.length&&(r||(a[d.config.indexName]=e),c.eachCols(function(e,n){var r=n.field||e,f=a[r];c.getColElem(c.layHeader,r);if(void 0!==f&&null!==f||(f=""),!(n.colspan>1)){var y=['",'
    '+function(){var e=t.extend(!0,{LAY_INDEX:h},a);return"checkbox"===n.type?'":"numbers"===n.type?h:n.toolbar?i(t(n.toolbar).html()||"").render(e):n.templet?function(){return"function"==typeof n.templet?n.templet(e):i(t(n.templet).html()||String(f)).render(e)}():f}(),"
    "].join("");l.push(y),n.fixed&&"right"!==n.fixed&&o.push(y),"right"===n.fixed&&u.push(y)}}),y.push(''+l.join("")+""),p.push(''+o.join("")+""),m.push(''+u.join("")+""))}),c.layBody.scrollTop(0),c.layMain.find("."+f).remove(),c.layMain.find("tbody").html(y.join("")),c.layFixLeft.find("tbody").html(p.join("")),c.layFixRight.find("tbody").html(m.join("")),c.renderForm(),c.syncCheckAll(),c.haveInit?c.scrollPatch():setTimeout(function(){c.scrollPatch()},50),c.haveInit=!0,void l.close(c.tipsIndex))};return c.key=s.id||s.index,d.cache[c.key]=u,c.layPage[0===u.length&&1==n?"addClass":"removeClass"](h),r?v():0===u.length?(c.renderForm(),c.layFixed.remove(),c.layMain.find("tbody").html(""),c.layMain.find("."+f).remove(),c.layMain.append('
    '+s.text.none+"
    ")):(v(),void(s.page&&(s.page=t.extend({elem:"layui-table-page"+s.index,count:o,limit:s.limit,limits:s.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'',next:'',jump:function(e,t){t||(c.page=e.curr,s.limit=e.limit,c.pullData(e.curr,c.loading()))}},s.page),s.page.count=o,a.render(s.page))))},S.prototype.getColElem=function(e,t){var i=this,a=i.config;return e.eq(0).find(".laytable-cell-"+(a.index+"-"+t)+":eq(0)")},S.prototype.renderForm=function(e){n.render(e,"LAY-table-"+this.index)},S.prototype.sort=function(e,i,a,l){var n,r,c=this,u={},h=c.config,f=h.elem.attr("lay-filter"),y=d.cache[c.key];"string"==typeof e&&c.layHeader.find("th").each(function(i,a){var l=t(this),o=l.data("field");if(o===e)return e=l,n=o,!1});try{var n=n||e.data("field");if(c.sortKey&&!a&&n===c.sortKey.field&&i===c.sortKey.sort)return;var p=c.layHeader.find("th .laytable-cell-"+h.index+"-"+n).find(w);c.layHeader.find("th").find(w).removeAttr("lay-sort"),p.attr("lay-sort",i||null),c.layFixed.find("th")}catch(m){return o.error("Table modules: Did not match to field")}c.sortKey={field:n,sort:i},"asc"===i?r=layui.sort(y,n):"desc"===i?r=layui.sort(y,n,!0):(r=layui.sort(y,d.config.indexName),delete c.sortKey),u[h.response.dataName]=r,c.renderData(u,c.page,c.count,!0),l&&layui.event.call(e,s,"sort("+f+")",{field:n,type:i})},S.prototype.loading=function(){var e=this,t=e.config;if(t.loading&&t.url)return l.msg("数据请求中",{icon:16,offset:[e.elem.offset().top+e.elem.height()/2-35-T.scrollTop()+"px",e.elem.offset().left+e.elem.width()/2-90-T.scrollLeft()+"px"],time:-1,anim:-1,fixed:!1})},S.prototype.setCheckData=function(e,t){var i=this,a=i.config,l=d.cache[i.key];l[e]&&l[e].constructor!==Array&&(l[e][a.checkName]=t)},S.prototype.syncCheckAll=function(){var e=this,t=e.config,i=e.layHeader.find('input[name="layTableCheckbox"]'),a=function(i){return e.eachCols(function(e,a){"checkbox"===a.type&&(a[t.checkName]=i)}),i};i[0]&&(d.checkStatus(e.key).isAll?(i[0].checked||(i.prop("checked",!0),e.renderForm("checkbox")),a(!0)):(i[0].checked&&(i.prop("checked",!1),e.renderForm("checkbox")),a(!1)))},S.prototype.getCssRule=function(e,t){var i=this,a=i.elem.find("style")[0],l=a.sheet||a.styleSheet||{},n=l.cssRules||l.rules;layui.each(n,function(a,l){if(l.selectorText===".laytable-cell-"+i.index+"-"+e)return t(l),!0})},S.prototype.fullSize=function(){var e,t=this,i=t.config,a=i.height;t.fullHeightGap&&(a=T.height()-t.fullHeightGap,a<135&&(a=135),t.elem.css("height",a)),e=parseFloat(a)-parseFloat(t.layHeader.height())-1,i.toolbar&&(e-=t.layTool.outerHeight()),i.page&&(e=e-t.layPage.outerHeight()-1),t.layMain.css("height",e)},S.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:(e=document.createElement("div"),e.style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},S.prototype.scrollPatch=function(){var e=this,i=e.layMain.children("table"),a=e.layMain.width()-e.layMain.prop("clientWidth"),l=e.layMain.height()-e.layMain.prop("clientHeight"),n=e.getScrollWidth(e.layMain[0]),o=i.outerWidth()-e.layMain.width();if(e.autoColNums&&o<5&&!e.scrollPatchWStatus){var r=e.layHeader.eq(0).find("thead th:last-child"),d=r.data("field");e.getCssRule(d,function(t){var i=t.style.width||r.outerWidth();t.style.width=parseFloat(i)-n-o+"px",e.layMain.height()-e.layMain.prop("clientHeight")>0&&(t.style.width=parseFloat(t.style.width)-1+"px"),e.scrollPatchWStatus=!0})}if(a&&l){if(!e.elem.find(".layui-table-patch")[0]){var c=t('
    ');c.find("div").css({width:a}),e.layHeader.eq(0).find("thead tr").append(c)}}else e.layHeader.eq(0).find(".layui-table-patch").remove();var s=e.layMain.height(),u=s-l;e.layFixed.find(m).css("height",i.height()>u?u:"auto"),e.layFixRight[o>0?"removeClass":"addClass"](h),e.layFixRight.css("right",a-1)},S.prototype.events=function(){var e,a=this,n=a.config,o=t("body"),c={},u=a.layHeader.find("th"),h=".layui-table-cell",f=n.elem.attr("lay-filter");u.on("mousemove",function(e){var i=t(this),a=i.offset().left,l=e.clientX-a;i.attr("colspan")>1||i.data("unresize")||c.resizeStart||(c.allowResize=i.width()-l<=10,o.css("cursor",c.allowResize?"col-resize":""))}).on("mouseleave",function(){t(this);c.resizeStart||o.css("cursor","")}).on("mousedown",function(e){var i=t(this);if(c.allowResize){var l=i.data("field");e.preventDefault(),c.resizeStart=!0,c.offset=[e.clientX,e.clientY],a.getCssRule(l,function(e){var t=e.style.width||i.outerWidth();c.rule=e,c.ruleWidth=parseFloat(t),c.minWidth=i.data("minwidth")||n.cellMinWidth})}}),M.on("mousemove",function(t){if(c.resizeStart){if(t.preventDefault(),c.rule){var i=c.ruleWidth+t.clientX-c.offset[0];i');d[0].value=e.data("content")||o.text(),e.find("."+N)[0]||e.append(d),d.focus()}else o.find(".layui-form-switch,.layui-form-checkbox")[0]||Math.round(o.prop("scrollWidth"))>Math.round(o.outerWidth())&&(a.tipsIndex=l.tips(['
    ',o.html(),"
    ",''].join(""),o[0],{tips:[3,""],time:-1,anim:-1,maxWidth:r.ios||r.android?300:600,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){l.close(t)})}}))}),a.layBody.on("click","*[lay-event]",function(){var e=t(this),l=e.parents("tr").eq(0).data("index"),n=a.layBody.find('tr[data-index="'+l+'"]'),o="layui-table-click",r=d.cache[a.key][l];layui.event.call(this,s,"tool("+f+")",{data:d.clearCacheKey(r),event:e.attr("lay-event"),tr:n,del:function(){d.cache[a.key][l]=[],n.remove(),a.scrollPatch()},update:function(e){e=e||{},layui.each(e,function(e,l){if(e in r){var o,d=n.children('td[data-field="'+e+'"]');r[e]=l,a.eachCols(function(t,i){i.field==e&&i.templet&&(o=i.templet)}),d.children(h).html(o?i(t(o).html()||l).render(r):l),d.data("content",l)}})}}),n.addClass(o).siblings("tr").removeClass(o)}),a.layMain.on("scroll",function(){var e=t(this),i=e.scrollLeft(),n=e.scrollTop();a.layHeader.scrollLeft(i),a.layFixed.find(m).scrollTop(n),l.close(a.tipsIndex)}),T.on("resize",function(){a.fullSize(),a.scrollPatch()})},d.init=function(e,i){i=i||{};var a=this,l=t(e?'table[lay-filter="'+e+'"]':u+"[lay-data]"),n="Table element property lay-data configuration item has a syntax error: ";return l.each(function(){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){o.error(n+l)}var c=[],s=t.extend({elem:this,cols:[],data:[],skin:a.attr("lay-skin"),size:a.attr("lay-size"),even:"string"==typeof a.attr("lay-even")},d.config,i,l);e&&a.hide(),a.find("thead>tr").each(function(e){s.cols[e]=[],t(this).children().each(function(i){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){return o.error(n+l)}var d=t.extend({title:a.text(),colspan:a.attr("colspan")||0,rowspan:a.attr("rowspan")||0},l);d.colspan<2&&c.push(d),s.cols[e].push(d)})}),a.find("tbody>tr").each(function(e){var i=t(this),a={};i.children("td").each(function(e,i){var l=t(this),n=l.data("field");if(n)return a[n]=l.html()}),layui.each(c,function(e,t){var l=i.children("td").eq(e);a[t.field]=l.html()}),s.data[e]=a}),d.render(s)}),a},d.checkStatus=function(e){var t=0,i=0,a=[],l=d.cache[e]||[];return layui.each(l,function(e,l){return l.constructor===Array?void i++:void(l[d.config.checkName]&&(t++,a.push(d.clearCacheKey(l))))}),{data:a,isAll:!!l.length&&t===l.length-i}},c.config={},d.reload=function(e,i){var a=c.config[e];return i=i||{},a?(i.data&&i.data.constructor===Array&&delete a.data,d.render(t.extend(!0,{},a,i))):o.error("The ID option was not found in the table instance")},d.render=function(e){var t=new S(e);return c.call(t)},d.clearCacheKey=function(e){return e=t.extend({},e),delete e[d.config.checkName],delete e[d.config.indexName],e},d.init(),e(s,d)}); -------------------------------------------------------------------------------- /monitor/static/js/layui/lay/modules/tree.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var o=layui.$,a=layui.hint(),i="layui-tree-enter",r=function(e){this.options=e},t={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};r.prototype.init=function(e){var o=this;e.addClass("layui-box layui-tree"),o.options.skin&&e.addClass("layui-tree-skin-"+o.options.skin),o.tree(e),o.on(e)},r.prototype.tree=function(e,a){var i=this,r=i.options,n=a||r.nodes;layui.each(n,function(a,n){var l=n.children&&n.children.length>0,c=o('
      '),s=o(["
    • ",function(){return l?''+(n.spread?t.arrow[1]:t.arrow[0])+"":""}(),function(){return r.check?''+("checkbox"===r.check?t.checkbox[0]:"radio"===r.check?t.radio[0]:"")+"":""}(),function(){return'"+(''+(l?n.spread?t.branch[1]:t.branch[0]:t.leaf)+"")+(""+(n.name||"未命名")+"")}(),"
    • "].join(""));l&&(s.append(c),i.tree(c,n.children)),e.append(s),"function"==typeof r.click&&i.click(s,n),i.spread(s,n),r.drag&&i.drag(s,n)})},r.prototype.click=function(e,o){var a=this,i=a.options;e.children("a").on("click",function(e){layui.stope(e),i.click(o)})},r.prototype.spread=function(e,o){var a=this,i=(a.options,e.children(".layui-tree-spread")),r=e.children("ul"),n=e.children("a"),l=function(){e.data("spread")?(e.data("spread",null),r.removeClass("layui-show"),i.html(t.arrow[0]),n.find(".layui-icon").html(t.branch[0])):(e.data("spread",!0),r.addClass("layui-show"),i.html(t.arrow[1]),n.find(".layui-icon").html(t.branch[1]))};r[0]&&(i.on("click",l),n.on("dblclick",l))},r.prototype.on=function(e){var a=this,r=a.options,t="layui-tree-drag";e.find("i").on("selectstart",function(e){return!1}),r.drag&&o(document).on("mousemove",function(e){var i=a.move;if(i.from){var r=(i.to,o('
      '));e.preventDefault(),o("."+t)[0]||o("body").append(r);var n=o("."+t)[0]?o("."+t):r;n.addClass("layui-show").html(i.from.elem.children("a").html()),n.css({left:e.pageX+10,top:e.pageY+10})}}).on("mouseup",function(){var e=a.move;e.from&&(e.from.elem.children("a").removeClass(i),e.to&&e.to.elem.children("a").removeClass(i),a.move={},o("."+t).remove())})},r.prototype.move={},r.prototype.drag=function(e,a){var r=this,t=(r.options,e.children("a")),n=function(){var t=o(this),n=r.move;n.from&&(n.to={item:a,elem:e},t.addClass(i))};t.on("mousedown",function(){var o=r.move;o.from={item:a,elem:e}}),t.on("mouseenter",n).on("mousemove",n).on("mouseleave",function(){var e=o(this),a=r.move;a.from&&(delete a.to,e.removeClass(i))})},e("tree",function(e){var i=new r(e=e||{}),t=o(e.elem);return t[0]?void i.init(t):a.error("layui.tree 没有找到"+e.elem+"元素")})}); -------------------------------------------------------------------------------- /monitor/static/js/layui/lay/modules/upload.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | ;layui.define("layer",function(e){"use strict";var i=layui.$,t=layui.layer,n=layui.hint(),a=layui.device(),o={config:{},set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,r,e,i)}},l=function(){var e=this;return{upload:function(i){e.upload.call(e,i)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var t=this;t.config=i.extend({},t.config,o.config,e),t.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var t=this,e=t.config;e.elem=i(e.elem),e.bindAction=i(e.bindAction),t.file(),t.events()},p.prototype.file=function(){var e=this,t=e.config,n=e.elemFile=i(['"].join("")),o=t.elem.next();(o.hasClass(u)||o.hasClass(c))&&o.remove(),a.ie&&a.ie<10&&t.elem.wrap('
      '),e.isFile()?(e.elemFile=t.elem,t.field=t.elem[0].name):t.elem.after(n),a.ie&&a.ie<10&&e.initIE()},p.prototype.initIE=function(){var e=this,t=e.config,n=i(''),a=i(['
      ',"
      "].join(""));i("#"+f)[0]||i("body").append(n),t.elem.next().hasClass(f)||(e.elemFile.wrap(a),t.elem.next("."+f).append(function(){var e=[];return layui.each(t.data,function(i,t){e.push('')}),e.join("")}()))},p.prototype.msg=function(e){return t.msg(e,{icon:2,shift:6})},p.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},p.prototype.preview=function(e){var i=this;window.FileReader&&layui.each(i.chooseFiles,function(i,t){var n=new FileReader;n.readAsDataURL(t),n.onload=function(){e&&e(i,t,this.result)}})},p.prototype.upload=function(e,t){var n,o=this,l=o.config,r=o.elemFile[0],u=function(){var t=0,n=0,a=e||o.files||o.chooseFiles||r.files,u=function(){l.multiple&&t+n===o.fileLength&&"function"==typeof l.allDone&&l.allDone({total:o.fileLength,successful:t,aborted:n})};layui.each(a,function(e,a){var r=new FormData;r.append(l.field,a),layui.each(l.data,function(e,i){r.append(e,i)}),i.ajax({url:l.url,type:l.method,data:r,contentType:!1,processData:!1,dataType:"json",success:function(i){t++,d(e,i),u()},error:function(){n++,o.msg("请求上传接口出现异常"),m(e),u()}})})},c=function(){var e=i("#"+f);o.elemFile.parent().submit(),clearInterval(p.timer),p.timer=setInterval(function(){var i,t=e.contents().find("body");try{i=t.text()}catch(n){o.msg("获取上传后的响应信息出现异常"),clearInterval(p.timer),m()}i&&(clearInterval(p.timer),t.html(""),d(0,i))},30)},d=function(e,i){if(o.elemFile.next("."+s).remove(),r.value="","object"!=typeof i)try{i=JSON.parse(i)}catch(t){return i={},o.msg("请对上传接口返回有效JSON")}"function"==typeof l.done&&l.done(i,e||0,function(e){o.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){o.upload(e)})},h=l.exts,v=function(){var i=[];return layui.each(e||o.chooseFiles,function(e,t){i.push(t.name)}),i}(),g={preview:function(e){o.preview(e)},upload:function(e,i){var t={};t[e]=i,o.upload(t)},pushFile:function(){return o.files=o.files||{},layui.each(o.chooseFiles,function(e,i){o.files[e]=i}),o.files}},y=function(){return"choose"===t?l.choose&&l.choose(g):(l.before&&l.before(g),a.ie?a.ie>9?u():c():void u())};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!RegExp("\\w\\.("+h+")$","i").test(escape(v)))return o.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!RegExp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return o.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!RegExp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return o.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,i){RegExp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(i))||(n=!0)}),n)return o.msg("选择的图片中包含不支持的格式"),r.value=""}if(o.fileLength=function(){var i=0,t=e||o.files||o.chooseFiles||r.files;return layui.each(t,function(){i++}),i}(),l.number&&o.fileLength>l.number)return o.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(a.ie&&a.ie<10)){var F;if(layui.each(o.chooseFiles,function(e,i){if(i.size>1024*l.size){var t=l.size/1024;t=t>=1?Math.floor(t)+(t%1>0?t.toFixed(1):0)+"MB":l.size+"KB",r.value="",F=t}}),F)return o.msg("文件不能超过"+F)}y()}},p.prototype.events=function(){var e=this,t=e.config,o=function(i){e.chooseFiles={},layui.each(i,function(i,t){var n=(new Date).getTime();e.chooseFiles[n+"-"+i]=t})},l=function(i,n){var a=e.elemFile,o=i.length>1?i.length+"个文件":(i[0]||{}).name||a[0].value.match(/[^\/\\]+\..+/g)||[]||"";a.next().hasClass(s)&&a.next().remove(),e.upload(null,"choose"),e.isFile()||t.choose||a.after(''+o+"")};t.elem.off("upload.start").on("upload.start",function(){var a=i(this),o=a.attr("lay-data");if(o)try{o=new Function("return "+o)(),e.config=i.extend({},t,o)}catch(l){n.error("Upload element property lay-data configuration item has a syntax error: "+o)}e.config.item=a,e.elemFile[0].click()}),a.ie&&a.ie<10||t.elem.off("upload.over").on("upload.over",function(){var e=i(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=i(this);e.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(n,a){var r=i(this),u=a.originalEvent.dataTransfer.files||[];r.removeAttr("lay-over"),o(u),t.auto?e.upload(u):l(u)}),e.elemFile.off("upload.change").on("upload.change",function(){var i=this.files||[];o(i),t.auto?e.upload():l(i)}),t.bindAction.off("upload.action").on("upload.action",function(){e.upload()}),t.elem.data("haveEvents")||(e.elemFile.on("change",function(){i(this).trigger("upload.change")}),t.elem.on("click",function(){e.isFile()||i(this).trigger("upload.start")}),t.drag&&t.elem.on("dragover",function(e){e.preventDefault(),i(this).trigger("upload.over")}).on("dragleave",function(e){i(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),i(this).trigger("upload.drop",e)}),t.bindAction.on("click",function(){i(this).trigger("upload.action")}),t.elem.data("haveEvents",!0))},o.render=function(e){var i=new p(e);return l.call(i)},e(r,o)}); -------------------------------------------------------------------------------- /monitor/static/js/layui/lay/modules/util.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var t=layui.$,i={fixbar:function(e){var i,o,a="layui-fixbar",r="layui-fixbar-top",n=t(document),l=t("body");e=t.extend({showHeight:200},e),e.bar1=e.bar1===!0?"":e.bar1,e.bar2=e.bar2===!0?"":e.bar2,e.bgcolor=e.bgcolor?"background-color:"+e.bgcolor:"";var c=[e.bar1,e.bar2,""],g=t(['
        ',e.bar1?'
      • '+c[0]+"
      • ":"",e.bar2?'
      • '+c[1]+"
      • ":"",'
      • '+c[2]+"
      • ","
      "].join("")),s=g.find("."+r),u=function(){var t=n.scrollTop();t>=e.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};t("."+a)[0]||("object"==typeof e.css&&g.css(e.css),l.append(g),u(),g.find("li").on("click",function(){var i=t(this),o=i.attr("lay-type");"top"===o&&t("html,body").animate({scrollTop:0},200),e.click&&e.click.call(this,o)}),n.on("scroll",function(){clearTimeout(o),o=setTimeout(function(){u()},100)}))},countdown:function(e,t,i){var o=this,a="function"==typeof t,r=new Date(e).getTime(),n=new Date(!t||a?(new Date).getTime():t).getTime(),l=r-n,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=t);var g=setTimeout(function(){o.countdown(e,n+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],t,g),l<=0&&clearTimeout(g),g},timeAgo:function(e,t){var i=this,o=[[],[]],a=(new Date).getTime()-new Date(e).getTime();return a>6912e5?(a=new Date(e),o[0][0]=i.digit(a.getFullYear(),4),o[0][1]=i.digit(a.getMonth()+1),o[0][2]=i.digit(a.getDate()),t||(o[1][0]=i.digit(a.getHours()),o[1][1]=i.digit(a.getMinutes()),o[1][2]=i.digit(a.getSeconds())),o[0].join("-")+" "+o[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=12e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(e,t){var i="";e=String(e),t=t||2;for(var o=e.length;o0;r--)if("interactive"===n[r].readyState){e=n[r].src;break}return e||n[o].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),a=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},i="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",table:"modules/table",element:"modules/element",util:"modules/util",flow:"modules/flow",carousel:"modules/carousel",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};o.prototype.cache=n,o.prototype.define=function(e,t){var o=this,r="function"==typeof e,a=function(){var e=function(e,t){layui[e]=t,n.status[e]=!0};return"function"==typeof t&&t(function(o,r){e(o,r),n.callback[o]=function(){t(e)}}),this};return r&&(t=e,e=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?a.call(o):(o.use(e,a),o)},o.prototype.use=function(e,o,l){function s(e,t){var o="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||o.test((e.currentTarget||e.srcElement).readyState))&&(n.modules[f]=t,d.removeChild(v),function r(){return++m>1e3*n.timeout/4?a(f+" is not a valid module"):void(n.status[f]?c():setTimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),o,l):"function"==typeof o&&o.apply(layui,l)}var y=this,p=n.dir=n.dir?n.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,n){"jquery"===n&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(l=l||[],n.host=n.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(n.modules[f])!function g(){return++m>1e3*n.timeout/4?a(f+" is not a valid module"):void("string"==typeof n.modules[f]&&n.status[f]?c():setTimeout(g,4))}();else{var v=t.createElement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":n.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=n.version===!0?n.v||(new Date).getTime():n.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||i?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),n.modules[f]=h}return y},o.prototype.getStyle=function(t,n){var o=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return o[o.getPropertyValue?"getPropertyValue":"getAttribute"](n)},o.prototype.link=function(e,o,r){var i=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof o&&(r=o);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(n.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeof o?i:(function p(){return++y>1e3*n.timeout/100?a(e+" timeout"):void(1989===parseInt(i.getStyle(t.getElementById(c),"width"))?function(){o()}():setTimeout(p,100))}(),i)},n.callback={},o.prototype.factory=function(e){if(layui[e])return"function"==typeof n.callback[e]?n.callback[e]:null},o.prototype.addcss=function(e,t,o){return layui.link(n.dir+"css/"+e,t,o)},o.prototype.img=function(e,t,n){var o=new Image;return o.src=e,o.complete?t(o):(o.onload=function(){o.onload=null,t(o)},void(o.onerror=function(e){o.onerror=null,n(e)}))},o.prototype.config=function(e){e=e||{};for(var t in e)n[t]=e[t];return this},o.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),o.prototype.extend=function(e){var t=this;e=e||{};for(var n in e)t[n]||t.modules[n]?a("模块名 "+n+" 已被占用"):t.modules[n]=e[n];return t},o.prototype.router=function(e){var t=this,e=e||location.hash,n={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(n.href=e=e.replace(/^#\//,""),e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),n.search[t[0]]=t[1]}():n.path.push(t)}),n):n},o.prototype.data=function(t,n,o){if(t=t||"layui",o=o||localStorage,e.JSON&&e.JSON.parse){if(null===n)return delete o[t];n="object"==typeof n?n:{key:n};try{var r=JSON.parse(o[t])}catch(a){var r={}}return"value"in n&&(r[n.key]=n.value),n.remove&&delete r[n.key],o[t]=JSON.stringify(r),n.key?r[n.key]:r}},o.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},o.prototype.device=function(t){var n=navigator.userAgent.toLowerCase(),o=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(n.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(n)?"windows":/linux/.test(n)?"linux":/iphone|ipod|ipad|ios/.test(n)?"ios":/mac/.test(n)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((n.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:o("micromessenger")};return t&&!r[t]&&(r[t]=o(t)),r.android=/android/.test(n),r.ios="ios"===r.os,r},o.prototype.hint=function(){return{error:a}},o.prototype.each=function(e,t){var n,o=this;if("function"!=typeof t)return o;if(e=e||[],e.constructor===Object){for(n in e)if(t.call(e[n],n,e[n]))break}else for(n=0;na?1:r 2 | 3 | 4 | 5 | 错误 6 | 7 | 8 | 9 |
      10 | 非法请求! 11 |
      12 |
      13 | 返回 14 |
      15 | 16 | -------------------------------------------------------------------------------- /monitor/templates/401.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 错误 6 | 7 | 8 | 9 |
      10 | 用户名或密码错误! 11 |
      12 |
      13 | 返回 14 |
      15 | 16 | -------------------------------------------------------------------------------- /monitor/templates/admin/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Admin 6 | 7 | 8 |

      admin page

      9 | 10 | 13 | 14 | -------------------------------------------------------------------------------- /monitor/templates/detail.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 详情页 6 | 7 | 8 |

      9 |

      详情页

      10 |

      11 | 12 | -------------------------------------------------------------------------------- /monitor/templates/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 错误 6 | 7 | 8 | 9 |
      10 | 系统错误! 11 |
      12 |
      13 | 返回 14 |
      15 | 16 | -------------------------------------------------------------------------------- /monitor/templates/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 首页 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
      16 | {% if name %} 17 | Hello {{ name }}! 18 | {% else %} 19 | Hello World! 20 | {% endif %} 21 |
      22 | 23 |
      24 | logout 25 |
      26 |
      27 |
      28 |
      29 | 30 |
      31 |
      32 | 34 |
      35 |
      36 |
      37 |
      38 | 39 |
      40 |
      41 | 43 |
      44 |
      45 |
      46 | 47 |
      48 | 49 |
      50 |
      51 | 53 |
      54 |
      55 |
      56 |
      57 |
      58 | 59 |
      60 | 62 |
      63 |
      64 |
      65 | 67 | 68 | 69 |
      70 |
      71 |
      72 | 73 |
      74 |
      75 | 76 |
      77 | 78 |

      79 |
      80 |
      81 |
      82 |
      83 |
      84 |
      85 |
      86 | 87 | 88 |
      89 |
      90 |
      91 |
      92 | 97 | 121 | 195 | 217 | 218 | -------------------------------------------------------------------------------- /monitor/templates/login.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 用户登录 8 | 9 | 10 | 11 | 12 |
      13 |
      14 |
      15 |

      Welcome

      16 | 17 |
      18 | 19 | 20 | 21 |
      22 |
      23 | 24 |
        25 |
      • 26 |
      • 27 |
      • 28 |
      • 29 |
      • 30 |
      • 31 |
      • 32 |
      • 33 |
      • 34 |
      • 35 |
      36 |
      37 |
      38 | 39 | 40 | 68 | 69 |
      70 |

      管理后台

      71 |
      72 | 73 | --------------------------------------------------------------------------------