From 5bad2c0e4f97353e251d3398c40f7fcefab983fe Mon Sep 17 00:00:00 2001
From: Atreya <44151328+atreya2011@users.noreply.github.com>
Date: Thu, 6 May 2021 16:23:55 +0900
Subject: [PATCH] add cosmetic improvements
---
code.js | 14 ++--
index.html | 198 +++++++++++++++++++++++++++++++++--------------------
style.css | 6 +-
3 files changed, 134 insertions(+), 84 deletions(-)
diff --git a/code.js b/code.js
index 0a6efb9..9f3981c 100644
--- a/code.js
+++ b/code.js
@@ -21,9 +21,9 @@ function onData(data) {
var html = ""
for (var i in broken) {
edge = broken[i]
- html += " "
- + "" + packages[edge[0]].PkgPath + " ⟶ "
- + "" + packages[edge[1]].PkgPath + "
"
+ html += " "
+ + "" + packages[edge[0]].PkgPath + " ⟶ "
+ + "" + packages[edge[1]].PkgPath + "
"
}
$('#broken').html(html)
@@ -102,11 +102,11 @@ function selectPkg(json) {
for (var i in path) {
var p = packages[path[i]]
if (i > 0) {
- html += " "
- + " "
- + "⟶ "
+ html += " "
+ + ""
+ html += "⟶"
}
- html += "" + p.PkgPath + "
"
+ html += "" + p.PkgPath + "
"
}
$('#path').html(html)
}
diff --git a/index.html b/index.html
index 599090a..413fee1 100644
--- a/index.html
+++ b/index.html
@@ -1,92 +1,144 @@
+
- This tool displays the complete dependencies of these initial packages: -
-...-
- Click on a package in the tree view to display information about it, - including a path by which it is reached from one of the initial packages. - Use the break button to remove an edge from the graph, so - that you can assess what edges need to be broken to eliminate an - unwanted dependency. -
+ ++ Spaghetti: dependency analysis for Go packages +
+-