From fc2d9292c2572cc6d4b57e5f00723fe361fdcf48 Mon Sep 17 00:00:00 2001 From: adibwp Date: Thu, 22 Aug 2024 17:25:43 +0700 Subject: [PATCH] change typo label --- component/chart/chart.templ | 1 - component/chart/chart_templ.go | 9 ++++----- handlers/routes.go | 2 ++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/component/chart/chart.templ b/component/chart/chart.templ index 16b75c0..d62661a 100644 --- a/component/chart/chart.templ +++ b/component/chart/chart.templ @@ -88,7 +88,6 @@ script GenerateChartResponsive(idDiv string, udata string, height string) { option[idDiv]['series'][0]['radius'] = ['30%', '55%']; } - console.log(option[idDiv]); myChart[idDiv].setOption(option[idDiv]); var resizeObserver = new ResizeObserver(function() { diff --git a/component/chart/chart_templ.go b/component/chart/chart_templ.go index 81476ee..0aba09f 100644 --- a/component/chart/chart_templ.go +++ b/component/chart/chart_templ.go @@ -195,8 +195,8 @@ func ShowChartResponsiveWidth(idDiv string, udata string, height string) templ.C func GenerateChartResponsive(idDiv string, udata string, height string) templ.ComponentScript { return templ.ComponentScript{ - Name: `__templ_GenerateChartResponsive_ddb7`, - Function: `function __templ_GenerateChartResponsive_ddb7(idDiv, udata, height){htmx.onLoad(function(elt) { + Name: `__templ_GenerateChartResponsive_fa78`, + Function: `function __templ_GenerateChartResponsive_fa78(idDiv, udata, height){htmx.onLoad(function(elt) { // console.log("elt ",elt) var element = document.getElementById(idDiv); // console.log("element ",element) @@ -220,7 +220,6 @@ func GenerateChartResponsive(idDiv string, udata string, height string) templ.Co option[idDiv]['series'][0]['radius'] = ['30%', '55%']; } - console.log(option[idDiv]); myChart[idDiv].setOption(option[idDiv]); var resizeObserver = new ResizeObserver(function() { @@ -230,7 +229,7 @@ func GenerateChartResponsive(idDiv string, udata string, height string) templ.Co resizeObserver.observe(element); }); }`, - Call: templ.SafeScript(`__templ_GenerateChartResponsive_ddb7`, idDiv, udata, height), - CallInline: templ.SafeScriptInline(`__templ_GenerateChartResponsive_ddb7`, idDiv, udata, height), + Call: templ.SafeScript(`__templ_GenerateChartResponsive_fa78`, idDiv, udata, height), + CallInline: templ.SafeScriptInline(`__templ_GenerateChartResponsive_fa78`, idDiv, udata, height), } } diff --git a/handlers/routes.go b/handlers/routes.go index b1a077a..30a5f62 100644 --- a/handlers/routes.go +++ b/handlers/routes.go @@ -64,6 +64,7 @@ func SetupRoutesEmployee(app *echo.Echo, e *dev_handlers.EmployeeHandler) { func SetupRoutesProject(app *echo.Echo) { } + func SetupRoutesPublic(app *echo.Echo, appStore db.AppStore) { public := app.Group("/") l := public_services.NewServicesLandingPage(public_services.LandingPage{}, appStore) @@ -102,6 +103,7 @@ func SetupRoutesPublic(app *echo.Echo, appStore db.AppStore) { // redirect to survey mcu page public.GET("redirectsurveymcu", publicKartuKontrolhandlers.HandlerRedirectToSurveyMcu) } + func SetupRoutesCorporate(app *echo.Echo, appStore db.AppStore) { corp := app.Group("/corp", auth.IsLoggedIn) // corp := app.Group("/corp")