Skip to content

Commit 118398e

Browse files
committed
add github button, core v 3.15
1 parent 96d354c commit 118398e

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

.github/workflows/core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
go-version: '1.25.6'
4141

4242
- name: Install Core
43-
run: go install cogentcore.org/core@v0.3.14 && core setup
43+
run: go install cogentcore.org/core@main && core setup
4444

4545
- name: Build App
4646
run: core build web -o static

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module github.com/compcogneuro/web
33
go 1.25.6
44

55
require (
6-
cogentcore.org/core v0.3.14
7-
cogentcore.org/lab v0.1.3-0.20260119090522-b4994bf75d3d
6+
cogentcore.org/core v0.3.15
7+
cogentcore.org/lab v0.1.3
88
github.com/emer/axon/v2 v2.0.0-dev0.2.88
99
github.com/emer/emergent/v2 v2.0.0-dev0.1.7.0.20260118035849-68022169e155
1010
)

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
codeberg.org/go-pdf/fpdf v0.11.0 h1:n3I8WISQ1cr0S2rvx9DOlE/GypbcimMWqLpel3slHmY=
22
codeberg.org/go-pdf/fpdf v0.11.0/go.mod h1:Y0DGRAdZ0OmnZPvjbMp/1bYxmIPxm0ws4tfoPOc4LjU=
3-
cogentcore.org/core v0.3.14 h1:dfkws5ET/68Q8UsF1P8+F5RtpA/CoZYK4gd8i+66t5A=
4-
cogentcore.org/core v0.3.14/go.mod h1:IQBEleZr+h6O/UjnymY875ve9kY0yokLK8YJ/JUPPBg=
5-
cogentcore.org/lab v0.1.3-0.20260119090522-b4994bf75d3d h1:Cl2aDShXtGmVMjmbmbBqhbBZ8l1zm15VI1nwRqewMT0=
6-
cogentcore.org/lab v0.1.3-0.20260119090522-b4994bf75d3d/go.mod h1:G0TG6kYntb6W+lg+JLR8g17oRNzKY1HbSpjy3mf+5JU=
3+
cogentcore.org/core v0.3.15 h1:szgSwZ5HFPhLTmyzo9juggvCO+BGJRQAaU+x/uVvE8o=
4+
cogentcore.org/core v0.3.15/go.mod h1:IQBEleZr+h6O/UjnymY875ve9kY0yokLK8YJ/JUPPBg=
5+
cogentcore.org/lab v0.1.3 h1:ww6sBC4ffXYAIosrNsD0o/kGKalPuGqQx6mew1lpRBo=
6+
cogentcore.org/lab v0.1.3/go.mod h1:G0TG6kYntb6W+lg+JLR8g17oRNzKY1HbSpjy3mf+5JU=
77
git.sr.ht/~sbinet/cmpimg v0.1.0 h1:E0zPRk2muWuCqSKSVZIWsgtU9pjsw3eKHi8VmQeScxo=
88
git.sr.ht/~sbinet/cmpimg v0.1.0/go.mod h1:FU12psLbF4TfNXkKH2ZZQ29crIqoiqTZmeQ7dkp/pxE=
99
github.com/Bios-Marcel/wastebasket/v2 v2.0.3 h1:TkoDPcSqluhLGE+EssHu7UGmLgUEkWg7kNyHyyJ3Q9g=

web.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"cogentcore.org/core/content"
1111
"cogentcore.org/core/core"
1212
"cogentcore.org/core/htmlcore"
13+
"cogentcore.org/core/icons"
1314
"cogentcore.org/core/styles"
1415
"cogentcore.org/core/text/csl"
1516
_ "cogentcore.org/core/text/tex" // include this to get math
@@ -51,6 +52,10 @@ func main() {
5152
core.NewToolbar(bar).Maker(func(p *tree.Plan) {
5253
ct.MakeToolbar(p)
5354
ct.MakeToolbarPDF(p)
55+
tree.Add(p, func(w *core.Button) {
56+
ctx.LinkButton(w, "https://github.com/compcogneuro/web")
57+
w.SetText("GitHub").SetIcon(icons.GitHub)
58+
})
5459
})
5560
})
5661

0 commit comments

Comments
 (0)