Skip to content

Commit 0e1ab92

Browse files
committed
all: use /gossa prefix
1 parent 0feb49d commit 0e1ab92

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BUILD=ssaplayground
1+
BUILD=ssaplayground.out
22
all:
33
go build -o $(BUILD) -mod vendor
44
start:

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
addr: localhost:6789
33
mode: debug
4-
static: ./public
4+
static: public

public/buildbox/index.html

Whitespace-only changes.

public/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>The Go SSA Playground</title>
77
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
8-
<script src="./linedtext.js"></script>
9-
<link rel="stylesheet" href="./style.css">
10-
<link rel="stylesheet" href="./scrollbar.css">
8+
<script src="/gossa/linedtext.js"></script>
9+
<link rel="stylesheet" href="/gossa/style.css">
10+
<link rel="stylesheet" href="/gossa/scrollbar.css">
1111
</head>
1212
<body>
1313
<div id="app">
@@ -44,6 +44,6 @@
4444
<p>The author of the Go SSA Playground is <a href="https://changkun.de">Changkun Ou</a>.</p>
4545
</div>
4646
</div>
47-
<script src="./main.js"></script>
47+
<script src="/gossa/main.js"></script>
4848
</body>
4949
</html>

public/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function build() {
4343
});
4444
})
4545
.then(res => {
46-
ssabox.src = `./buildbox/${res.data.build_id}/ssa.html`
46+
ssabox.src = `/gossa/buildbox/${res.data.build_id}/ssa.html`
4747
msgbox.innerText = ''
4848
})
4949
.catch(res => {
@@ -57,7 +57,7 @@ let ssablock = document.getElementById('ssa')
5757
ssablock.addEventListener('load', () => {
5858
// wait until ssa is loaded
5959
let $head = $("iframe").contents().find("head");
60-
$head.append($("<link/>", { rel: "stylesheet", href: "/scrollbar.css", type: "text/css"}));
60+
$head.append($("<link/>", { rel: "stylesheet", href: "/gossa/scrollbar.css", type: "text/css"}));
6161
})
6262

6363
// inject version info

src/route/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (r *Router) SetupAPI() {
3636
}
3737

3838
func (r *Router) SetupApp() {
39-
r.Engine.Use(static("/"))
39+
r.Engine.Use(static("/gossa"))
4040
logrus.Infof("GoSSAWeb is on: http://%s, static: %s", config.Get().Addr, config.Get().Static)
4141
}
4242

ssaplayground

-15 MB
Binary file not shown.

0 commit comments

Comments
 (0)