-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add webui * ラベル修正 * サブグラフ取り出し機能実装 * フィルター解除ボタン追加 * lintエラー修正
- Loading branch information
Showing
10 changed files
with
414 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
dist | ||
dist | ||
/isucrud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/mazrean/isucrud | ||
|
||
go 1.22.0 | ||
go 1.23 | ||
|
||
toolchain go1.22.9 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html lang="ja"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Mermaid</title> | ||
<script src="https://unpkg.com/mermaid/dist/mermaid.min.js" | ||
integrity="sha512-3PBlo2Duz3n8ZReWwpL22r4w1JZH8ZRv2cdYkXZ4K+O50hB9KdKfJ5Tevi5M1fCqfH7GQt2AcDDMRrneJ/dfYw==" | ||
crossorigin="anonymous"></script> | ||
<script> | ||
mermaid.initialize({ | ||
startOnLoad: true, | ||
theme: 'defalt', | ||
// clockを有効にするためにセキュリティレベルを下げる | ||
securityLevel: 'loose', | ||
}); | ||
</script> | ||
</head> | ||
|
||
<body> | ||
{{if .IsFiltered}}<button onclick="location.href = '/'">全ノードを表示する</button>{{end}} | ||
<div> | ||
nodes: | ||
{{range .NodeTypes}}<span> | ||
<span style="color: #{{.Color}};">■</span> | ||
{{.Label}} | ||
</span>{{end}} | ||
</div><div> | ||
edges: | ||
{{range .EdgeTypes}}<span> | ||
<span style="color: #{{.Color}};">■</span> | ||
{{.Label}} | ||
</span>{{end}} | ||
</div> | ||
<div | ||
class="mermaid" | ||
id="mermaid-data" | ||
>{{.MermaidData}}</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# DB Graph | ||
node: {{range .NodeTypes}}![](https://via.placeholder.com/16/{{.Color}}/FFFFFF/?text=%20) `{{.Label}}` {{end}} | ||
|
||
edge: {{range .EdgeTypes}}![](https://via.placeholder.com/16/{{.Color}}/FFFFFF/?text=%20) `{{.Label}}` {{end}} | ||
```mermaid | ||
{{.MermaidData}} | ||
``` |
Oops, something went wrong.