Skip to content

Commit

Permalink
major fix on frontend; add simple api auth;
Browse files Browse the repository at this point in the history
  • Loading branch information
JokerQyou committed Jun 15, 2024
1 parent f1eac30 commit f526f09
Show file tree
Hide file tree
Showing 24 changed files with 551 additions and 172 deletions.
2 changes: 1 addition & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (a *App) Start() {
case <-quitMenu.ClickedCh:
systray.Quit()
case <-openMenu.ClickedCh:
browser.OpenURL("http://127.0.0.1:9763")
browser.OpenURL(a.apiServer.GetAccessUrl())
}
}
}()
Expand Down
6 changes: 6 additions & 0 deletions extension/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ func LocateBinary(executable string) (string, error) {
self string
err error
)
var cwd string
if cwd, err = os.Getwd(); err == nil {
if _, err = os.Stat(filepath.Join(cwd, executable)); err == nil {
return filepath.Join(cwd, executable), nil
}
}
if self, err = os.Executable(); err != nil {
return "", err
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Cloak</title>
</head>
<body>
<div id="app-root"></div>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
259 changes: 259 additions & 0 deletions frontend/package-lock.json

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

2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"format": "prettier --write src/"
},
"dependencies": {
"@tanstack/vue-query": "^5.45.0",
"@vianetz/spectre.css": "^2.0.0",
"@vueuse/core": "^10.11.0",
"pinia": "^2.1.7",
"remixicon": "^4.2.0",
"vue": "^3.4.21",
Expand Down
Loading

0 comments on commit f526f09

Please sign in to comment.