Skip to content

Commit

Permalink
Add Monaco
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrFerenc committed Apr 22, 2024
1 parent 22d8728 commit 2401bad
Show file tree
Hide file tree
Showing 21 changed files with 1,014 additions and 2 deletions.
15 changes: 15 additions & 0 deletions web/modules/editor/editor.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package editor

import (
"github.com/labstack/echo/v4"
"net/http"
)

func CreateEditorHandler() func(c echo.Context) error {
return func(c echo.Context) error {
data := map[string]interface{}{
"Title": "Edytor",
}
return c.Render(http.StatusOK, "edytor.html", data)
}
}
4 changes: 2 additions & 2 deletions web/modules/register-module.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package modules
import (
"github.com/PiotrFerenc/mash2/cmd/worker/actions"
"github.com/PiotrFerenc/mash2/web/modules/actions/handlers"
"github.com/PiotrFerenc/mash2/web/modules/dashboard"
"github.com/PiotrFerenc/mash2/web/modules/editor"
"github.com/PiotrFerenc/mash2/web/modules/parameters"
"github.com/PiotrFerenc/mash2/web/modules/pipeline"
"github.com/PiotrFerenc/mash2/web/repositories"
Expand All @@ -20,7 +20,7 @@ func RegisterActionModule(e *echo.Echo, actions map[string]actions.Action, steps
}

func RegisterDashboardModule(e *echo.Echo, pipelineRepository repositories.PipelineRepository) {
e.GET("/", dashboard.CreateHomeHandler(pipelineRepository))
e.GET("/", editor.CreateEditorHandler())
}

func RegisterParametersModule(e *echo.Echo, parametersRepository repositories.ParametersRepository, actions map[string]actions.Action) (g *echo.Group) {
Expand Down
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2401bad

Please sign in to comment.