From 903125214abad4e4b17469959cc820ba27805cfa Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Mon, 12 Dec 2016 20:25:30 +0800 Subject: [PATCH] =?UTF-8?q?-=20GoDoc=20updated,=20fixed=20some=20spelling?= =?UTF-8?q?=20mistakes=EF=BC=9B=20-=20Readme=20update,=20add=20new=20todo?= =?UTF-8?q?=20list;=20-=20Improve=20coverage=20of=20code;=20-=20HTML=20upd?= =?UTF-8?q?ate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + currentTubeJobsActionsRow.go | 2 +- main.go | 2 +- main_test.go | 10 ++++++++++ modalClearTubes.go | 2 +- 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8f3ba1b..6e04080 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ Contributions are welcome! Open a pull request to fix a bug, or open an issue to ## Todo +- Handle 404 error page - Filter the tubes by name in the overview - Logout support when Basic Auth has been enabled - Custom job content hightlight display theme support diff --git a/currentTubeJobsActionsRow.go b/currentTubeJobsActionsRow.go index c707df0..f39ed77 100644 --- a/currentTubeJobsActionsRow.go +++ b/currentTubeJobsActionsRow.go @@ -87,7 +87,7 @@ func currentTubeJobsActionsRowSample(server string, tube string) string { } } if sample.String() == "" { - return `
  • There are no sample jobs
  • ` + return `
  • There are no sample jobs
  • ` } sample.WriteString(`
  • Manage samples
  • `) return sample.String() diff --git a/main.go b/main.go index 1518e46..72b826d 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( ) // main function defines the entry point for the program -// if read cong file or init fail, the application will be exit. +// if read config file or init failed, the application will be exit. func main() { parseFlags() var err error diff --git a/main_test.go b/main_test.go index 3baf8a2..00128bc 100644 --- a/main_test.go +++ b/main_test.go @@ -487,6 +487,16 @@ func TestStatistic(t *testing.T) { t.SkipNow() } +func TestMain(t *testing.T) { + once.Do(testSetup) + go func() { + openPage() + handleSignals() + }() + time.Sleep(5 * time.Second) + t.SkipNow() +} + func createFile(path string) { // Detect if file exists var _, err = os.Stat(path) diff --git a/modalClearTubes.go b/modalClearTubes.go index 489e274..2360b19 100644 --- a/modalClearTubes.go +++ b/modalClearTubes.go @@ -25,7 +25,7 @@ func modalClearTubes(server string) string { } buf.WriteString(``) return buf.String()