diff --git a/handlers/client/mcupreregister.handlers.go b/handlers/client/mcupreregister.handlers.go new file mode 100644 index 0000000..2f76f0c --- /dev/null +++ b/handlers/client/mcupreregister.handlers.go @@ -0,0 +1,26 @@ +package client_handlers + +import ( + "cpone/utils" + client_mcupreregister "cpone/views/client/mcupreregister" + + "github.com/labstack/echo/v4" +) + +type MCUPreregisterService interface { +} + +func NewMCUPreregisterHandler(us MCUPreregisterService) *MCUPreregisterHandler { + return &MCUPreregisterHandler{ + MCUPreregisterService: us, + } +} + +type MCUPreregisterHandler struct { + MCUPreregisterService MCUPreregisterService +} + +func (uh *MCUPreregisterHandler) ShowMCUPreregister(c echo.Context) error { + helo := client_mcupreregister.Show() + return utils.View(c, helo) +} diff --git a/handlers/client/mcusetup.handlers.go b/handlers/client/mcusetup.handlers.go new file mode 100644 index 0000000..48fc23a --- /dev/null +++ b/handlers/client/mcusetup.handlers.go @@ -0,0 +1,26 @@ +package client_handlers + +import ( + "cpone/utils" + client_mcusetup "cpone/views/client/mcusetup" + + "github.com/labstack/echo/v4" +) + +type MCUSetupService interface { +} + +func NewMCUSetupHandler(us MCUSetupService) *MCUSetupHandler { + return &MCUSetupHandler{ + MCUSetupService: us, + } +} + +type MCUSetupHandler struct { + MCUSetupService MCUSetupService +} + +func (uh *MCUSetupHandler) ShowMCUSetup(c echo.Context) error { + helo := client_mcusetup.Show() + return utils.View(c, helo) +} diff --git a/handlers/client/mdprofile.handlers.go b/handlers/client/mdprofile.handlers.go new file mode 100644 index 0000000..68c6fa5 --- /dev/null +++ b/handlers/client/mdprofile.handlers.go @@ -0,0 +1,26 @@ +package client_handlers + +import ( + "cpone/utils" + client_mdprofile "cpone/views/client/mdprofile" + + "github.com/labstack/echo/v4" +) + +type MdProfileService interface { +} + +func NewMdProfileHandler(us MdProfileService) *MdProfileHandler { + return &MdProfileHandler{ + MdProfileService: us, + } +} + +type MdProfileHandler struct { + MdProfileService MdProfileService +} + +func (uh *MdProfileHandler) ShowMdProfile(c echo.Context) error { + helo := client_mdprofile.Show() + return utils.View(c, helo) +} diff --git a/handlers/client/transaksisamplestation.handler.go b/handlers/client/transaksisamplestation.handler.go new file mode 100644 index 0000000..71521a1 --- /dev/null +++ b/handlers/client/transaksisamplestation.handler.go @@ -0,0 +1,26 @@ +package client_handlers + +import ( + "cpone/utils" + client_transaksisamplestation "cpone/views/client/TransaksiSampleStation" + + "github.com/labstack/echo/v4" +) + +type TransaksiSampleStationService interface { +} + +func NewTransaksiSampleStationHandler(us TransaksiSampleStationService) *TransaksiSampleStationHandler { + return &TransaksiSampleStationHandler{ + TransaksiSampleStationService: us, + } +} + +type TransaksiSampleStationHandler struct { + TransaksiSampleStationService TransaksiSampleStationService +} + +func (uh *TransaksiSampleStationHandler) ShowTransaksiSampleStation(c echo.Context) error { + helo := client_transaksisamplestation.Show() + return utils.View(c, helo) +} diff --git a/handlers/routes.go b/handlers/routes.go index 105f31a..a034426 100644 --- a/handlers/routes.go +++ b/handlers/routes.go @@ -81,17 +81,53 @@ func SetupRoutesCorporate(app *echo.Echo, appStore db.AppStore) { func SetupRoutesClient(app *echo.Echo, appStore db.AppStore) { public := app.Group("/client") - l := client_services.NewServicesMdBahan(appStore) - lh := client_handlers.NewMdBahanHandler(l) - public.GET("/md/bahan", lh.ShowMdBahan) - clientdshbrdHandler := client_handlers.NewClientDashboardHandler(l) + //MD BAHAN + mdBahanService := client_services.NewServicesMdBahan(appStore) + mdbahanHandler := client_handlers.NewMdBahanHandler(mdBahanService) + public.GET("/md/bahan", mdbahanHandler.ShowMdBahan) + + //Client Dahboard + clientDashboardService := client_services.NewServicesClientDashboard(appStore) + clientdshbrdHandler := client_handlers.NewClientDashboardHandler(clientDashboardService) public.GET("", clientdshbrdHandler.ShowClientDashboard) - mdUserHandler := client_handlers.NewMdUserHandler(l) + + //MD User + mdUserService := client_services.NewServicesMdUser(appStore) + mdUserHandler := client_handlers.NewMdUserHandler(mdUserService) public.GET("/md/user", mdUserHandler.ShowMdUser) - mdCorpHandler := client_handlers.NewMdCorpHandler(l) + + // MD Corp + mdCorpService := client_services.NewServicesMdCorp(appStore) + mdCorpHandler := client_handlers.NewMdCorpHandler(mdCorpService) public.GET("/md/corp", mdCorpHandler.ShowMdCorp) - mdUserGroupHandler := client_handlers.NewMdUserGroupHandler(l) + + // Md User Group + mdUserGroupService := client_services.NewServicesMdUserGroup(appStore) + mdUserGroupHandler := client_handlers.NewMdUserGroupHandler(mdUserGroupService) public.GET("/md/usergroup", mdUserGroupHandler.ShowMdUserGroup) - mdTestpHandler := client_handlers.NewMdTestHandler(l) - public.GET("/md/test", mdTestpHandler.ShowMdTest) + + //MD Test + mdTestService := client_services.NewServicesMdTest(appStore) + mdTestHandler := client_handlers.NewMdTestHandler(mdTestService) + public.GET("/md/test", mdTestHandler.ShowMdTest) + + //MD Profile + mdProfileService := client_services.NewServicesMdProfile(appStore) + mdProfileHandler := client_handlers.NewMdProfileHandler(mdProfileService) + public.GET("/md/profile", mdProfileHandler.ShowMdProfile) + + //MCU Setup + mcuSetupService := client_services.NewServicesMCUSetup(appStore) + mcuSetupHandler := client_handlers.NewMCUSetupHandler(mcuSetupService) + public.GET("/mcu/setup", mcuSetupHandler.ShowMCUSetup) + + //MCU Preregister + mcuPreregisterService := client_services.NewServicesMCUPreregister(appStore) + mcuPreregisterHandler := client_handlers.NewMCUPreregisterHandler(mcuPreregisterService) + public.GET("/mcu/preregister", mcuPreregisterHandler.ShowMCUPreregister) + + //Transaksi Sample Station + txSampleStationService := client_services.NewServicesTransaksiSampleStation(appStore) + txSampleStationHandler := client_handlers.NewTransaksiSampleStationHandler(txSampleStationService) + public.GET("/transaksi/samplestation", txSampleStationHandler.ShowTransaksiSampleStation) } diff --git a/services/client/mcupreregister.services.go b/services/client/mcupreregister.services.go new file mode 100644 index 0000000..ccfb6ae --- /dev/null +++ b/services/client/mcupreregister.services.go @@ -0,0 +1,15 @@ +package client_services + +import "cpone/db" + +type ServicesMCUPreregister struct { + MCUPreregisterStore db.AppStore +} + +func NewServicesMCUPreregister(uStore db.AppStore) *ServicesMCUPreregister { + + return &ServicesMCUPreregister{ + + MCUPreregisterStore: uStore, + } +} diff --git a/services/client/mcusetup.services.go b/services/client/mcusetup.services.go new file mode 100644 index 0000000..61aba72 --- /dev/null +++ b/services/client/mcusetup.services.go @@ -0,0 +1,15 @@ +package client_services + +import "cpone/db" + +type ServicesMCUSetup struct { + MCUSetupStore db.AppStore +} + +func NewServicesMCUSetup(uStore db.AppStore) *ServicesMCUSetup { + + return &ServicesMCUSetup{ + + MCUSetupStore: uStore, + } +} diff --git a/services/client/mdprofile.services.go b/services/client/mdprofile.services.go new file mode 100644 index 0000000..a8d0a88 --- /dev/null +++ b/services/client/mdprofile.services.go @@ -0,0 +1,15 @@ +package client_services + +import "cpone/db" + +type ServicesMdProfile struct { + MdProfileStore db.AppStore +} + +func NewServicesMdProfile(uStore db.AppStore) *ServicesMdProfile { + + return &ServicesMdProfile{ + + MdProfileStore: uStore, + } +} diff --git a/services/client/transaksisamplestation.services.go b/services/client/transaksisamplestation.services.go new file mode 100644 index 0000000..9f144b0 --- /dev/null +++ b/services/client/transaksisamplestation.services.go @@ -0,0 +1,15 @@ +package client_services + +import "cpone/db" + +type ServicesTransaksiSampleStation struct { + TransaksiSampleStationStore db.AppStore +} + +func NewServicesTransaksiSampleStation(uStore db.AppStore) *ServicesTransaksiSampleStation { + + return &ServicesTransaksiSampleStation{ + + TransaksiSampleStationStore: uStore, + } +} diff --git a/views/client/mcupreregister/mcupreregister.templ b/views/client/mcupreregister/mcupreregister.templ new file mode 100644 index 0000000..6e70bbd --- /dev/null +++ b/views/client/mcupreregister/mcupreregister.templ @@ -0,0 +1,40 @@ +package client_mcupreregister + +import ( + "cpone/component/under_development" + "cpone/layout" +) + +templ Content() { +
+ @under_development.UnderDevelopment() +
+} + +templ Css() { + +} + +templ Js() { +} + +templ Show() { + @layout.PlaygroundLayout("Client MCU Preregister", Css(), Js()) { + @Content() + } +} diff --git a/views/client/mcupreregister/mcupreregister_templ.go b/views/client/mcupreregister/mcupreregister_templ.go new file mode 100644 index 0000000..62eb234 --- /dev/null +++ b/views/client/mcupreregister/mcupreregister_templ.go @@ -0,0 +1,131 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.2.663 +package client_mcupreregister + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import "context" +import "io" +import "bytes" + +import ( + "cpone/component/under_development" + "cpone/layout" +) + +func Content() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = under_development.UnderDevelopment().Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Css() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var2 := templ.GetChildren(ctx) + if templ_7745c5c3_Var2 == nil { + templ_7745c5c3_Var2 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Js() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var3 := templ.GetChildren(ctx) + if templ_7745c5c3_Var3 == nil { + templ_7745c5c3_Var3 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Show() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var4 := templ.GetChildren(ctx) + if templ_7745c5c3_Var4 == nil { + templ_7745c5c3_Var4 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var5 := templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + templ_7745c5c3_Err = Content().Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = io.Copy(templ_7745c5c3_W, templ_7745c5c3_Buffer) + } + return templ_7745c5c3_Err + }) + templ_7745c5c3_Err = layout.PlaygroundLayout("Client MCU Preregister", Css(), Js()).Render(templ.WithChildren(ctx, templ_7745c5c3_Var5), templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} diff --git a/views/client/mcusetup/mcusetup.templ b/views/client/mcusetup/mcusetup.templ new file mode 100644 index 0000000..77e3c0e --- /dev/null +++ b/views/client/mcusetup/mcusetup.templ @@ -0,0 +1,40 @@ +package client_mcusetup + +import ( + "cpone/component/under_development" + "cpone/layout" +) + +templ Content() { +
+ @under_development.UnderDevelopment() +
+} + +templ Css() { + +} + +templ Js() { +} + +templ Show() { + @layout.PlaygroundLayout("Client MCU Setup", Css(), Js()) { + @Content() + } +} diff --git a/views/client/mcusetup/mcusetup_templ.go b/views/client/mcusetup/mcusetup_templ.go new file mode 100644 index 0000000..b8616f9 --- /dev/null +++ b/views/client/mcusetup/mcusetup_templ.go @@ -0,0 +1,131 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.2.663 +package client_mcusetup + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import "context" +import "io" +import "bytes" + +import ( + "cpone/component/under_development" + "cpone/layout" +) + +func Content() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = under_development.UnderDevelopment().Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Css() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var2 := templ.GetChildren(ctx) + if templ_7745c5c3_Var2 == nil { + templ_7745c5c3_Var2 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Js() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var3 := templ.GetChildren(ctx) + if templ_7745c5c3_Var3 == nil { + templ_7745c5c3_Var3 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Show() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var4 := templ.GetChildren(ctx) + if templ_7745c5c3_Var4 == nil { + templ_7745c5c3_Var4 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var5 := templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + templ_7745c5c3_Err = Content().Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = io.Copy(templ_7745c5c3_W, templ_7745c5c3_Buffer) + } + return templ_7745c5c3_Err + }) + templ_7745c5c3_Err = layout.PlaygroundLayout("Client MCU Setup", Css(), Js()).Render(templ.WithChildren(ctx, templ_7745c5c3_Var5), templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} diff --git a/views/client/mdprofile/mdprofile.templ b/views/client/mdprofile/mdprofile.templ new file mode 100644 index 0000000..01c19ee --- /dev/null +++ b/views/client/mdprofile/mdprofile.templ @@ -0,0 +1,40 @@ +package client_mdprofile + +import ( + "cpone/component/under_development" + "cpone/layout" +) + +templ Content() { +
+ @under_development.UnderDevelopment() +
+} + +templ Css() { + +} + +templ Js() { +} + +templ Show() { + @layout.PlaygroundLayout("Client Md Profile", Css(), Js()) { + @Content() + } +} diff --git a/views/client/mdprofile/mdprofile_templ.go b/views/client/mdprofile/mdprofile_templ.go new file mode 100644 index 0000000..f4f54c2 --- /dev/null +++ b/views/client/mdprofile/mdprofile_templ.go @@ -0,0 +1,131 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.2.663 +package client_mdprofile + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import "context" +import "io" +import "bytes" + +import ( + "cpone/component/under_development" + "cpone/layout" +) + +func Content() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = under_development.UnderDevelopment().Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Css() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var2 := templ.GetChildren(ctx) + if templ_7745c5c3_Var2 == nil { + templ_7745c5c3_Var2 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Js() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var3 := templ.GetChildren(ctx) + if templ_7745c5c3_Var3 == nil { + templ_7745c5c3_Var3 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Show() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var4 := templ.GetChildren(ctx) + if templ_7745c5c3_Var4 == nil { + templ_7745c5c3_Var4 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var5 := templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + templ_7745c5c3_Err = Content().Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = io.Copy(templ_7745c5c3_W, templ_7745c5c3_Buffer) + } + return templ_7745c5c3_Err + }) + templ_7745c5c3_Err = layout.PlaygroundLayout("Client Md Profile", Css(), Js()).Render(templ.WithChildren(ctx, templ_7745c5c3_Var5), templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} diff --git a/views/client/transaksisamplestation/transaksisamplestation.templ b/views/client/transaksisamplestation/transaksisamplestation.templ new file mode 100644 index 0000000..af8a33a --- /dev/null +++ b/views/client/transaksisamplestation/transaksisamplestation.templ @@ -0,0 +1,40 @@ +package client_transaksisamplestation + +import ( + "cpone/component/under_development" + "cpone/layout" +) + +templ Content() { +
+ @under_development.UnderDevelopment() +
+} + +templ Css() { + +} + +templ Js() { +} + +templ Show() { + @layout.PlaygroundLayout("Client Transaksi Sample Station", Css(), Js()) { + @Content() + } +} diff --git a/views/client/transaksisamplestation/transaksisamplestation_templ.go b/views/client/transaksisamplestation/transaksisamplestation_templ.go new file mode 100644 index 0000000..18d2524 --- /dev/null +++ b/views/client/transaksisamplestation/transaksisamplestation_templ.go @@ -0,0 +1,131 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.2.663 +package client_transaksisamplestation + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import "context" +import "io" +import "bytes" + +import ( + "cpone/component/under_development" + "cpone/layout" +) + +func Content() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = under_development.UnderDevelopment().Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Css() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var2 := templ.GetChildren(ctx) + if templ_7745c5c3_Var2 == nil { + templ_7745c5c3_Var2 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Js() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var3 := templ.GetChildren(ctx) + if templ_7745c5c3_Var3 == nil { + templ_7745c5c3_Var3 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Show() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var4 := templ.GetChildren(ctx) + if templ_7745c5c3_Var4 == nil { + templ_7745c5c3_Var4 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var5 := templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + templ_7745c5c3_Err = Content().Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = io.Copy(templ_7745c5c3_W, templ_7745c5c3_Buffer) + } + return templ_7745c5c3_Err + }) + templ_7745c5c3_Err = layout.PlaygroundLayout("Client Transaksi Sample Station", Css(), Js()).Render(templ.WithChildren(ctx, templ_7745c5c3_Var5), templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +}