Skip to content

Commit

Permalink
Update project name in code and some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnStarich committed Aug 1, 2021
1 parent b591435 commit 4882d7a
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ build: static

.PHONY: docker
docker:
docker build -t go-wasm .
docker build -t hackpad .

.PHONY: docker-run
docker-run: docker
docker run -it --rm \
--name go-wasm \
--name hackpad \
-p 8080:80 \
go-wasm:latest
hackpad:latest
2 changes: 1 addition & 1 deletion cmd/editor/ide/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func New(elem *dom.Element, editorBuilder EditorBuilder, consoleBuilder ConsoleB
dialogElem := dom.New("div")
dialogElem.AddClass("compatibility-warning-dialog")
dialogElem.SetInnerHTML(`
<p>Go Wasm may not work reliably in your browser.</p>
<p>Hackpad may not work reliably in your browser.</p>
<p>If you're experience any issues, try a recent version of Chrome or Firefox on a device with enough memory, like a PC.</p>
`)

Expand Down
2 changes: 1 addition & 1 deletion cmd/editor/ide/window.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1 class="app-title">
<div class="loading-indicator"></div>
<div class="spacer"></div>
<div class="control">
<a target="_blank" title="Go Wasm on GitHub" href="https://github.com/hack-pad/hackpad">
<a target="_blank" title="Hackpad on GitHub" href="https://github.com/hack-pad/hackpad">
<span class="fab fa-github"></span>
</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions internal/interop/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TraceProfileJS(this js.Value, args []js.Value) interface{} {
log.Error("Failed to create memory profile: ", err)
return nil
}
StartDownload("", "go-wasm-trace.pprof", buf)
StartDownload("", "hackpad-trace.pprof", buf)
return nil
}

Expand All @@ -61,7 +61,7 @@ func MemoryProfileJS(this js.Value, args []js.Value) interface{} {
log.Error("Failed to create memory profile: ", err)
return nil
}
StartDownload("", "go-wasm-mem.pprof", buf)
StartDownload("", "hackpad-mem.pprof", buf)
return nil
}

Expand All @@ -75,7 +75,7 @@ func StartCPUProfile(ctx context.Context) error {
go func() {
<-ctx.Done()
pprof.StopCPUProfile()
StartDownload("", "go-wasm-cpu.pprof", buf.Bytes())
StartDownload("", "hackpad-cpu.pprof", buf.Bytes())
}()
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion server/package-lock.json

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

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "go-wasm",
"name": "hackpad",
"version": "0.1.0",
"private": true,
"homepage": ".",
Expand Down
2 changes: 1 addition & 1 deletion server/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Go Wasm | Playground</title>
<title>Hackpad | Playground</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
4 changes: 2 additions & 2 deletions server/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "Go Wasm",
"name": "Go Wasm",
"short_name": "Hackpad",
"name": "Hackpad",
"icons": [
{
"src": "favicon.ico",
Expand Down
2 changes: 1 addition & 1 deletion server/src/Compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function Compat() {
}
return (
<div className="compat">
<p>Go Wasm may not work reliably in your browser.</p>
<p>Hackpad may not work reliably in your browser.</p>
<p>If you're experience any issues, try a recent version of {joinOr(knownWorkingBrowsers)} on a device with enough memory, like a PC.</p>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion server/src/GoWASM.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function init() {
}
go.run(cmd.instance)
const { goWasm, fs } = window
console.debug(`go-wasm status: ${goWasm.ready ? 'ready' : 'not ready'}`)
console.debug(`hackpad status: ${goWasm.ready ? 'ready' : 'not ready'}`)

const mkdir = promisify(fs.mkdir)
await mkdir("/bin", {mode: 0o700})
Expand Down

0 comments on commit 4882d7a

Please sign in to comment.