Skip to content

Commit

Permalink
chore: cleanup input
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Aug 12, 2024
1 parent 1a13e24 commit 8898a13
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

Service Lens is an enterprise service management tool. It allows you to manage your services, identify risks, review the solutions that created them and the business context of every service. It follows the Well-Architected methodology established by AWS and Microsoft.

![preview](assets/screenshot_2.png)
![preview](assets/screenshot_1.png)

It is build on [fiber-htmx](https://github.com/ZEISS/fiber-htmx) and uses a 3-tier architecture.

Expand Down
Binary file modified assets/screenshot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions internal/components/designs/design-new-form.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func DesignNewForm(props DesignNewFormProps) htmx.Node {
}
}`),
htmx.Template(
alpine.XFor("({ name, value }, index) in tags"),
alpine.XFor("(tag, index) in tags"),
htmx.Attribute(":key", "index"),
htmx.Div(
htmx.ClassNames{
Expand All @@ -150,7 +150,7 @@ func DesignNewForm(props DesignNewFormProps) htmx.Node {
},
forms.TextInputBordered(
forms.TextInputProps{},
alpine.XModel("name"),
alpine.XModel("tag.name"),
),
forms.FormControlLabel(
forms.FormControlLabelProps{},
Expand All @@ -170,7 +170,7 @@ func DesignNewForm(props DesignNewFormProps) htmx.Node {
},
forms.TextInputBordered(
forms.TextInputProps{},
alpine.XModel("value"),
alpine.XModel("tag.value"),
),
forms.FormControlLabel(
forms.FormControlLabelProps{},
Expand Down
4 changes: 0 additions & 4 deletions internal/components/lenses/lenses-tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ import (
"github.com/zeiss/service-lens/internal/utils"
)

const (
deleteProfileURL = "/profiles/%s"
)

// LensesTableProps ...
type LensesTableProps struct {
Lenses []*models.Lens
Expand Down
5 changes: 0 additions & 5 deletions internal/components/profiles/profiles-table.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ import (
"github.com/zeiss/service-lens/internal/utils"
)

const (
createProfileURL = "/teams/%s/profiles/new"
showProfileURL = "/teams/%s/profiles/%s"
)

// ProfilesTableProps ...
type ProfilesTableProps struct {
Profiles []*models.Profile
Expand Down
2 changes: 1 addition & 1 deletion internal/controllers/designs/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/zeiss/service-lens/internal/ports"

"github.com/yuin/goldmark"
"github.com/yuin/goldmark-emoji"
emoji "github.com/yuin/goldmark-emoji"
"github.com/yuin/goldmark/extension"
"github.com/yuin/goldmark/renderer/html"
htmx "github.com/zeiss/fiber-htmx"
Expand Down
3 changes: 1 addition & 2 deletions internal/controllers/profiles/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package profiles

import (
"context"
"fmt"

seed "github.com/zeiss/gorm-seed"
"github.com/zeiss/service-lens/internal/models"
Expand Down Expand Up @@ -56,5 +55,5 @@ func (l *CreateProfileControllerImpl) Prepare() error {

// Post ...
func (l *CreateProfileControllerImpl) Post() error {
return l.Redirect(fmt.Sprintf(listProfilesURL))
return l.Redirect(listProfilesURL)
}

0 comments on commit 8898a13

Please sign in to comment.