diff --git a/SourceTraceFront/controllers/search.go b/SourceTraceFront/controllers/search.go
index 774c2b4..1ab0faa 100644
--- a/SourceTraceFront/controllers/search.go
+++ b/SourceTraceFront/controllers/search.go
@@ -11,7 +11,7 @@ import (
)
func Index(c *gin.Context) {
- c.HTML(200, "index.tpl", nil)
+ c.HTML(200, "index.html", nil)
}
func Search(c *gin.Context) {
diff --git a/SourceTraceFront/views/index.html b/SourceTraceFront/views/index.html
new file mode 100644
index 0000000..097cbd5
--- /dev/null
+++ b/SourceTraceFront/views/index.html
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+ {{ .title }}
+
+
+
+
+
+
+
+ {{ .title }}
+ {{ .time }}
+
+
+
+
+ | 指标 |
+ 值 |
+
+
+
+
+ |
+ 待爬队列长度
+ |
+
+ 24103
+ |
+
+
+ |
+ 预估URL总数
+ |
+
+ 61038
+ |
+
+
+ |
+ 已爬总数
+ |
+
+ 36935
+ |
+
+
+ |
+ 已爬无效数
+ |
+
+ 105
+ |
+
+
+ |
+ 过去1分钟爬取数
+ |
+
+ 32
+ |
+
+
+ |
+ 多次网络错误数
+ |
+
+ 1
+ |
+
+
+ |
+ 过去10分钟爬取数
+ |
+
+ 312
+ |
+
+
+ |
+ 多次网络错误数
+ |
+
+ 1
+ |
+
+
+
+
+
+
+
diff --git a/SourceTraceFront/views/index.tpl b/SourceTraceFront/views/index.tpl
deleted file mode 100644
index cef6641..0000000
--- a/SourceTraceFront/views/index.tpl
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
-
- {{ .title }}
-
-
-
-
-
-
-
- {{ .title }}
- {{ .time }}
-
-
-
-
- | Key |
- Value |
-
-
-
- {{range $index, $value := .values}}
-
- {{range $k, $v := $value}}
- |
- {{ $k }}
- |
-
- {{ $v }}
- |
- {{end}}
-
- {{end}}
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SourceTraceFront/views/search.tpl b/SourceTraceFront/views/search.tpl
index 36db61e..4996105 100644
--- a/SourceTraceFront/views/search.tpl
+++ b/SourceTraceFront/views/search.tpl
@@ -44,12 +44,13 @@
{{if .username}}
下午好! {{ .username }}
个人中心
+ 提交URL
+ 监控面板
+ 用户管理
{{else}}
登录
注册
{{end}}
- 提交URL
- 监控面板