From a9d500e3f9bf59e3a60b7bd49494391497b11f3d Mon Sep 17 00:00:00 2001 From: powerkimhub Date: Mon, 30 Sep 2024 22:48:00 +0900 Subject: [PATCH] Fix the missing link between AdminWeb2 and AdminWeb1 --- api-runtime/rest-runtime/CBSpiderRuntime.go | 16 ++++++++-------- .../rest-runtime/admin-web/AdminWeb-Frame.go | 10 +++++----- .../rest-runtime/admin-web/html/connection.html | 6 +++--- .../rest-runtime/admin-web/html/left_menu.html | 4 ++-- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/api-runtime/rest-runtime/CBSpiderRuntime.go b/api-runtime/rest-runtime/CBSpiderRuntime.go index 710424adb..5b403bd55 100644 --- a/api-runtime/rest-runtime/CBSpiderRuntime.go +++ b/api-runtime/rest-runtime/CBSpiderRuntime.go @@ -476,17 +476,17 @@ func RunServer() { {"GET", "/adminweb/dashboard", aw.Dashboard}, - {"GET", "/adminweb/driver", aw.Driver}, - {"GET", "/adminweb2/driver", aw.DriverManagement}, + {"GET", "/adminweb/driver1", aw.Driver}, + {"GET", "/adminweb/driver", aw.DriverManagement}, - {"GET", "/adminweb/credential", aw.Credential}, - {"GET", "/adminweb2/credential", aw.CredentialManagement}, + {"GET", "/adminweb/credential1", aw.Credential}, + {"GET", "/adminweb/credential", aw.CredentialManagement}, - {"GET", "/adminweb/region", aw.Region}, - {"GET", "/adminweb2/region", aw.RegionManagement}, + {"GET", "/adminweb/region1", aw.Region}, + {"GET", "/adminweb/region", aw.RegionManagement}, - {"GET", "/adminweb/connectionconfig", aw.Connectionconfig}, - {"GET", "/adminweb2/connectionconfig", aw.ConnectionManagement}, + {"GET", "/adminweb/connectionconfig1", aw.Connectionconfig}, + {"GET", "/adminweb/connectionconfig", aw.ConnectionManagement}, {"GET", "/adminweb/dashboard", aw.Dashboard}, diff --git a/api-runtime/rest-runtime/admin-web/AdminWeb-Frame.go b/api-runtime/rest-runtime/admin-web/AdminWeb-Frame.go index 6b50fa7fe..a948ec1e4 100644 --- a/api-runtime/rest-runtime/admin-web/AdminWeb-Frame.go +++ b/api-runtime/rest-runtime/admin-web/AdminWeb-Frame.go @@ -112,7 +112,7 @@ func Top(c echo.Context) error { - + $$TIME$$ @@ -125,25 +125,25 @@ func Top(c echo.Context) error { - + 1.Driver - + 1.Credential - + 1.Region - + 2.CONNECTION diff --git a/api-runtime/rest-runtime/admin-web/html/connection.html b/api-runtime/rest-runtime/admin-web/html/connection.html index 8787f5a4f..9baeaeb07 100644 --- a/api-runtime/rest-runtime/admin-web/html/connection.html +++ b/api-runtime/rest-runtime/admin-web/html/connection.html @@ -527,19 +527,19 @@

{{$provider}}

Connection Name Driver Name : Driver Library - + Manage Driver Credential Name - + Manage Credential Region Name : Region / Zone - + Manage Region diff --git a/api-runtime/rest-runtime/admin-web/html/left_menu.html b/api-runtime/rest-runtime/admin-web/html/left_menu.html index e714acf06..305b98ce4 100644 --- a/api-runtime/rest-runtime/admin-web/html/left_menu.html +++ b/api-runtime/rest-runtime/admin-web/html/left_menu.html @@ -89,7 +89,7 @@ changeSelectedImage(menu); const menuUrlMap = { dashboard: "/spider/adminweb/dashboard?showEmpty=true", - connection: "/spider/adminweb2/connectionconfig" + connection: "/spider/adminweb/connectionconfig" }; const targetUrl = menuUrlMap[menu]; @@ -140,7 +140,7 @@ -