Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LW-11309] Add a WebView with dashboards to the current app #3

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Nix
result
result-*

# macOS
.DS_Store

# Node.js
node_modules/
dist/
3 changes: 3 additions & 0 deletions core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/assets
/constants
/blockchain-services
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"encoding/json"

"lace.io/blockchain-services/ourpaths"
"iog.io/blockchain-services/ourpaths"
)

const (
Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strings"
"regexp"

"lace.io/blockchain-services/ourpaths"
"lace.io/blockchain-services/constants"
"iog.io/blockchain-services/ourpaths"
"iog.io/blockchain-services/constants"

"github.com/acarl005/stripansi"
)
Expand Down Expand Up @@ -147,7 +147,7 @@ func childCardanoNode(shared SharedState, statusCh chan<- StatusAndUrl) ManagedC
return line
},
TerminateGracefullyByInheritedFd3: true,
ForceKillAfter: 10 * time.Second,
ForceKillAfter: 15 * time.Second,
PostStop: func() error { return nil },
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"time"
"strings"

"lace.io/blockchain-services/ourpaths"
"lace.io/blockchain-services/constants"
"lace.io/blockchain-services/appconfig"
"iog.io/blockchain-services/ourpaths"
"iog.io/blockchain-services/constants"
"iog.io/blockchain-services/appconfig"

"github.com/acarl005/stripansi"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (

"github.com/sqweek/dialog"

"lace.io/blockchain-services/appconfig"
"lace.io/blockchain-services/constants"
"lace.io/blockchain-services/ourpaths"
"lace.io/blockchain-services/mainthread"
"lace.io/blockchain-services/ui"
"iog.io/blockchain-services/appconfig"
"iog.io/blockchain-services/constants"
"iog.io/blockchain-services/ourpaths"
"iog.io/blockchain-services/mainthread"
"iog.io/blockchain-services/ui"
)

func childMithril(appConfig appconfig.AppConfig) func(SharedState, chan<- StatusAndUrl) ManagedChild { return func(shared SharedState, statusCh chan<- StatusAndUrl) ManagedChild {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strconv"
"regexp"

"lace.io/blockchain-services/constants"
"lace.io/blockchain-services/ourpaths"
"iog.io/blockchain-services/constants"
"iog.io/blockchain-services/ourpaths"
)

func childOgmios(syncProgressCh chan<- float64) func(SharedState, chan<- StatusAndUrl) ManagedChild { return func(shared SharedState, statusCh chan<- StatusAndUrl) ManagedChild {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"time"
"encoding/base64"

"lace.io/blockchain-services/constants"
"lace.io/blockchain-services/ourpaths"
"iog.io/blockchain-services/constants"
"iog.io/blockchain-services/ourpaths"
)

func childPostgres(shared SharedState, statusCh chan<- StatusAndUrl) ManagedChild {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"regexp"
"strconv"

"lace.io/blockchain-services/constants"
"lace.io/blockchain-services/ourpaths"
"iog.io/blockchain-services/constants"
"iog.io/blockchain-services/ourpaths"
)

func childProjector(shared SharedState, statusCh chan<- StatusAndUrl) ManagedChild {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"time"
"net/url"

"lace.io/blockchain-services/constants"
"lace.io/blockchain-services/ourpaths"
"iog.io/blockchain-services/constants"
"iog.io/blockchain-services/ourpaths"
)

func childProviderServer(shared SharedState, statusCh chan<- StatusAndUrl) ManagedChild {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"strings"
"time"

t "lace.io/blockchain-services/types"
"lace.io/blockchain-services/ourpaths"
"lace.io/blockchain-services/appconfig"
t "iog.io/blockchain-services/types"
"iog.io/blockchain-services/ourpaths"
"iog.io/blockchain-services/appconfig"

"github.com/creack/pty"
"github.com/acarl005/stripansi"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"time"

"lace.io/blockchain-services/ourpaths"
"iog.io/blockchain-services/ourpaths"
"github.com/UserExistsError/conpty"
"github.com/acarl005/stripansi"
)
Expand Down Expand Up @@ -125,7 +125,7 @@ func childProcessPTYWindows(
outputLines <- fmt.Sprintf("fatal: exec.CreateEnvBlock: %v", err)
return
}
cptyEnv = conpty.ConPtyEnv(envBlock)
cptyEnv = conpty.ConPtyEnv(&envBlock[0])
}

cpty, err := conpty.Start(cmdLine, cptyEnv)
Expand Down
76 changes: 76 additions & 0 deletions core/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
module iog.io/blockchain-services

go 1.22.6

require (
github.com/UserExistsError/conpty v0.1.1
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
github.com/allan-simon/go-singleinstance v0.0.0-20210120080615-d0997106ab37
github.com/atotto/clipboard v0.1.4
github.com/creack/pty v1.1.18
github.com/getlantern/systray v1.2.2
github.com/gorilla/websocket v1.5.0
github.com/shirou/gopsutil/v3 v3.23.5
github.com/sqweek/dialog v0.0.0-20220809060634-e981b270ebbf
github.com/wailsapp/wails/v3 v3.0.0-alpha.6
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce
)

require (
dario.cat/mergo v1.0.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect
github.com/TheTitanrain/w32 v0.0.0-20180517000239-4f5cfb03fabf // indirect
github.com/bep/debounce v1.2.1 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/ebitengine/purego v0.4.0-alpha.4 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/getlantern/context v0.0.0-20190109183933-c447772a6520 // indirect
github.com/getlantern/errors v0.0.0-20190325191628-abdb3e3e36f7 // indirect
github.com/getlantern/golog v0.0.0-20190830074920-4ef2e798c2d7 // indirect
github.com/getlantern/hex v0.0.0-20190417191902-c6586a6fe0b7 // indirect
github.com/getlantern/hidden v0.0.0-20190325191715-f02dbb02be55 // indirect
github.com/getlantern/ops v0.0.0-20190325191751-d70cb0d6f85f // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/go-git/go-git/v5 v5.11.0 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-stack/stack v1.8.0 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/leaanthony/go-ansi-parser v1.6.1 // indirect
github.com/leaanthony/u v1.1.0 // indirect
github.com/lmittmann/tint v1.0.4 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/samber/lo v1.38.1 // indirect
github.com/sergi/go-diff v1.2.0 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/skeema/knownhosts v1.2.1 // indirect
github.com/tklauser/go-sysconf v0.3.11 // indirect
github.com/tklauser/numcpus v0.6.0 // indirect
github.com/wailsapp/go-webview2 v1.0.11 // indirect
github.com/wailsapp/mimetype v1.4.1 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/yusufpapurcu/wmi v1.2.3 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/tools v0.21.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
)
Loading