change typo label

This commit is contained in:
2024-08-22 17:25:43 +07:00
parent 74d564e303
commit fc2d9292c2
3 changed files with 6 additions and 6 deletions

View File

@@ -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() {

View File

@@ -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),
}
}

View File

@@ -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")