diff --git a/static/device.js b/static/device.js
new file mode 100644
index 0000000..12ece79
--- /dev/null
+++ b/static/device.js
@@ -0,0 +1,26 @@
+function deviceUpdate(){
+ $.ajax(
+ "/stats/device",
+ {
+ success: function (res){
+ $("#memTotal").text(res.data.status.memTotal)
+ $("#memUsed").text(res.data.status.memUsed)
+ $("#memUsage").text(res.data.status.memUsage)
+ $("#diskTotal").text(res.data.status.diskTotal)
+ $("#diskUsed").text(res.data.status.diskUsed)
+ $("#diskUsage").text(res.data.status.diskUsage)
+ $("#cpu").text(res.data.status.cpu)
+ $("#memUsageP").val(res.data.status.memUsage)
+ $("#diskUsageP").val(res.data.status.diskUsage)
+ $("#cpuP").val(res.data.status.cpu)
+ $("#inSpeed").text(res.data.status.inSpeed)
+ $("#outSpeed").text(res.data.status.outSpeed)
+ $("#doCleanTime").text(res.data.status.doCleanTime)
+ $("#fileExpire").text(res.data.status.fileExpire)
+ }
+ }
+ )
+}
+
+deviceUpdate()
+setInterval(deviceUpdate,2000)
diff --git a/static/index.js b/static/index.js
new file mode 100644
index 0000000..4ad9983
--- /dev/null
+++ b/static/index.js
@@ -0,0 +1,59 @@
+function taskUpdate(){
+ $.ajax(
+ "/stats",
+ {
+ success: function (res){
+ $("#broadcaster").text(res.data.broadcast.broadcaster)
+ $("#isBroadcasting").text(res.data.broadcast.isBroadcasting)
+ $("#streamUrl").text(res.data.broadcast.streamUrl)
+ $("#delayTime").text(res.data.broadcast.delayTime)
+ $("#forceNotBroadcasting").text(res.data.config.forceNotBroadcasting)
+ $("#forceNotDownload").text(res.data.config.forceNotDownload)
+ $("#forceNotUpload").text(res.data.config.forceNotUpload)
+ $("#forceNotEncode").text(res.data.config.forceNotEncode)
+ $("#downloadOnly").text(res.data.config.downloadOnly)
+ $("#updateTime").text(res.data.broadcast.updateTime)
+ $("#encodeQueueSize").text(res.data.encodeQueueSize)
+ $("#uploadQueueSize").text(res.data.uploadQueueSize)
+ $("#download").html(function(){
+ var ret = ""
+ res.data.download.reverse().forEach(function(obj){
+ ret += "
" + obj.datetime + " | " + obj.message + " |
"
+ })
+ return ""
+ })
+ $("#encode").html(function(){
+ var ret = ""
+ res.data.encode.reverse().forEach(function(obj){
+ ret += "" + obj.datetime + " | " + obj.message + " |
"
+ })
+ return ""
+ })
+ $("#upload").html(function(){
+ var ret = ""
+ res.data.upload.reverse().forEach(function(obj){
+ ret += "" + obj.datetime + " | " + obj.message + " |
"
+ })
+ return ""
+ })
+ $("#error").html(function(){
+ var ret = ""
+ res.data.error.reverse().forEach(function(obj){
+ ret += "" + obj.datetime + " | " + obj.message + " |
"
+ })
+ return ""
+ })
+ $("#operation").html(function(){
+ var ret = ""
+ res.data.operation.reverse().forEach(function(obj){
+ ret += "" + obj.datetime + " | " + obj.message + " |
"
+ })
+ return ""
+ })
+ }
+ }
+ )
+}
+
+taskUpdate()
+setInterval(taskUpdate,8000)
diff --git a/templates/device.html b/templates/device.html
new file mode 100644
index 0000000..8d878c7
--- /dev/null
+++ b/templates/device.html
@@ -0,0 +1,30 @@
+ 机器状态
+
+
+ CPU使用率 |
+ |
+ % |
+
+
+ 内存使用率 |
+ |
+ /(%) |
+
+
+ 磁盘使用率 |
+ |
+ /(%) |
+
+
+ 网络速率 |
+ ↓ /s |
+ ↑ /s |
+
+
+ 文件清理 |
+ 清理天前的文件 |
+ @ |
+
+
+
+
diff --git a/templates/files.html b/templates/files.html
new file mode 100644
index 0000000..40221cb
--- /dev/null
+++ b/templates/files.html
@@ -0,0 +1,26 @@
+
+
+
+ 文件
+ {% include 'head.html' %}
+
+
+
+
所有录像文件
+
部分录像文件已转移至百度云,请在这里下载 提取码: ddxt
+
+
+ 文件名 | 文件大小 | 链接 |
+
+ {%for i in files %}
+
+ {{i.name}} | {{i.size}} | 下载文件 |
+
+ {% endfor %}
+
+
+
+ {% include 'device.html' %}
+
+
+
\ No newline at end of file
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..351910a
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,86 @@
+
+
+
+ 录播
+ {% include 'head.html' %}
+
+
+
+
基本信息
+
+
+ 主播名 |
+ |
+
+
+ 是否正在直播 |
+ |
+
+
+ 直播视频流地址 |
+ |
+
+
+ 信息更新时间 |
+ |
+
+
+ 延迟投稿时间 |
+ |
+
+
+
+
特殊设置
+
+
+ 是否设置强制认为不直播 |
+ |
+
+
+ 是否设置强制不下载 |
+ |
+
+
+ 是否设置强制不上传 |
+ |
+
+
+ 是否设置强制不转码 |
+ |
+
+
+ 是否设置为仅下载(不上传不转码) |
+ |
+
+
+
+
当前状态
+
+
+ 下载日志 |
+ |
+
+
+ 转码日志 队列 |
+ |
+
+
+ 上传日志 队列 |
+ |
+
+
+ 错误日志 |
+ |
+
+
+ 操作日志 |
+ |
+
+
+
+
+ {% include 'device.html' %}
+
+
+
+
\ No newline at end of file