Skip to content

Commit 02b876a

Browse files
about to change directions
1 parent 8bda0f2 commit 02b876a

File tree

14 files changed

+83
-174
lines changed

14 files changed

+83
-174
lines changed

playground/go.mod

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,16 @@ go 1.19
44

55
require (
66
github.com/gopherjs/gopherjs v1.19.0-beta2.0.20251008200541-113c92b42b18
7-
github.com/stretchr/testify v1.11.1
87
golang.org/x/tools v0.16.0
98
honnef.co/go/js/dom v0.0.0-20210725211120-f030747120f2
109
honnef.co/go/js/xhr v0.0.0-20150307031022-00e3346113ae
1110
)
1211

1312
require (
14-
github.com/davecgh/go-spew v1.1.1 // indirect
1513
github.com/evanw/esbuild v0.25.4 // indirect
1614
github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86 // indirect
17-
github.com/pmezard/go-difflib v1.0.0 // indirect
1815
github.com/sirupsen/logrus v1.8.1 // indirect
19-
github.com/stretchr/objx v0.5.2 // indirect
16+
github.com/stretchr/testify v1.11.1 // indirect
2017
golang.org/x/sys v0.10.0 // indirect
21-
gopkg.in/yaml.v3 v3.0.1 // indirect
2218
honnef.co/go/js/util v0.0.0-20150216223935-96b8dd9d1621 // indirect
2319
)

playground/go.sum

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

playground/internal/common/commontest/banner.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

playground/internal/common/commontest/codeBox.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

playground/internal/common/commontest/fetcher.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

playground/internal/common/commontest/outputBox.go

Lines changed: 0 additions & 15 deletions
This file was deleted.

playground/internal/common/commontest/snippetStore.go

Lines changed: 0 additions & 21 deletions
This file was deleted.

playground/internal/common/outputBox.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ type OutputBox interface {
88
Clear()
99

1010
// AddError adds an error message to the output.
11+
//
12+
// All text including new lines will be escaped for HTML.
1113
AddError(err error)
1214

1315
// AddOutput adds output text to the output.
1416
// This will also scroll the output box to the bottom.
17+
//
18+
// If a form feed ("\0c") is encountered in the output,
19+
// the output box is cleared before adding the remaining output.
20+
// All text including new lines will be escaped for HTML.
1521
AddOutput(out string)
1622
}

playground/internal/playground/playground_test.go

Lines changed: 0 additions & 3 deletions
This file was deleted.

playground/internal/react/banner.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ type banner struct {
2424
location *dom.Location
2525
}
2626

27-
var _ Component = (*banner)(nil)
28-
2927
func NewBanner() common.Banner {
3028
return &banner{
3129
// We might be inside an iframe, but want to use the location of topmost window.
@@ -83,7 +81,7 @@ func (b *banner) SetVersion(version string) {
8381
b.version.Set(version)
8482
}
8583

86-
func (b *banner) Render(props Props) *Element {
84+
func (b *banner) Render(props any) *Element {
8785
b.importChecked = UseState(true)
8886
b.shareUrl = UseState(``)
8987
b.shareUrlVisible = UseState(false)
@@ -96,9 +94,9 @@ func (b *banner) Render(props Props) *Element {
9694
}
9795
}, []any{b.shareUrlVisible, b.shareUrlRef})
9896

99-
return Div(props.Add(Props{
97+
return Div(Props{
10098
`id`: `banner`,
101-
}), Span(Props{
99+
}, Span(Props{
102100
`id`: `head`,
103101
}, `playground `,
104102
CreateElement(`small`, nil, `GopherJS (`, b.version.Get(), `)`),

0 commit comments

Comments
 (0)