Subject: [PATCH] refactor(web/tvl): factor out common styles

From: [email-masked]
Date: Mon, 11 May 2020 00:45:09 +0100

From: Luke Granger-Brown <[email-masked]>

---
 web/tvl/tvl.dot | 94 +++++++++++++++++++++++++++----------------------
 1 file changed, 51 insertions(+), 43 deletions(-)

diff --git a/web/tvl/tvl.dot b/web/tvl/tvl.dot
index ee31fc3..45ffd92 100644
--- a/web/tvl/tvl.dot
+++ b/web/tvl/tvl.dot
@@ -52,18 +52,22 @@ digraph tvl {
   yuuko;
 
   // companies (blue)
-  spotify [color="#4285f4" fontcolor="#4285f4" href="https://www.spotify.com/"];
-  google [color="#4285f4" fontcolor="#4285f4" href="https://www.google.com/"];
+  node [color="#4285f4" fontcolor="#4285f4"];
+  spotify [href="https://www.spotify.com/"];
+  google [href="https://www.google.com/"];
 
   // communities? (red)
-  eve [color="#DB4437" fontcolor="#DB4437" href="https://www.eveonline.com/"];
-  nix [color="#DB4437" fontcolor="#DB4437" href="https://nixos.org/nix/"];
-  ircv3 [color="#DB4437" fontcolor="#DB4437" href="https://ircv3.net/"];
-  lgbtslack [label="lgbt.tech" color="#DB4437" fontcolor="#DB4437" href="https://lgbtq.technology/"];
-  muccc [label="µccc" color="#DB4437" fontcolor="#DB4437" href="https://muc.ccc.de/"];
-  hswaw [label="hswaw" color="#DB4437" fontcolor="#DB4437" href="https://hackerspace.pl/"];
-  unspecific [color="grey" fontcolor="grey"];
+  node [color="#db4437" fontcolor="#db4437"];
+  eve [href="https://www.eveonline.com/"];
+  nix [href="https://nixos.org/nix/"];
+  ircv3 [href="https://ircv3.net/"];
+  lgbtslack [label="lgbt.tech" href="https://lgbtq.technology/"];
+  muccc [label="µccc" href="https://muc.ccc.de/"];
+  hswaw [href="https://hackerspace.pl/"];
+
+  // special
   baby [color="pink" fontcolor="pink" href="https://cynthia.re/s/baby"];
+  unspecific [color="grey" fontcolor="grey"];
 
   // primary edges (how did they end up in TVL?)
 
@@ -127,48 +131,52 @@ digraph tvl {
   hyperfekt -> espes;
 
   // secondary edges (how are they connected otherwise?)
+  edge [weight=0 style="dotted" color="grey" arrowhead="none"];
 
   // lgbt slack
-  aurora -> lgbtslack [weight=0 style="dotted" color="grey" arrowhead="none"];
-  leah2 -> lgbtslack  [weight=0 style="dotted" color="grey" arrowhead="none"];
-  edef -> lgbtslack  [weight=0 style="dotted" color="grey" arrowhead="none"];
-  artemist -> lgbtslack  [weight=0 style="dotted" color="grey" arrowhead="none"];
+  aurora -> lgbtslack;
+  leah2 -> lgbtslack;
+  edef -> lgbtslack;
+  artemist -> lgbtslack;
 
   // ircv3
-  multi -> ircv3  [weight=0 style="dotted" color="grey" arrowhead="none"];
-  eta -> ircv3  [weight=0 style="dotted" color="grey" arrowhead="none"];
-  firefly -> ircv3  [weight=0 style="dotted" color="grey" arrowhead="none"];
+  multi -> ircv3;
+  eta -> ircv3;
+  firefly -> ircv3;
 
   // µccc
-  leah2 -> muccc [weight=0 style="dotted" color="grey" arrowhead="none"];
-  hexchen -> muccc [weight=0 style="dotted" color="grey" arrowhead="none"];
-  q3k -> muccc [weight=0 style="dotted" color="grey" arrowhead="none"];
+  leah2 -> muccc;
+  hexchen -> muccc;
+  q3k -> muccc;
 
   // hswaw
-  implr -> hswaw [weight=0 style="dotted" color="grey" arrowhead="none"];
-  q3k -> hswaw [weight=0 style="dotted" color="grey" arrowhead="none"];
+  implr -> hswaw;
+  q3k -> hswaw;
 
   // random
-  leah2 -> edef  [weight=0 style="dotted" color="grey" arrowhead="none"];
-  lukegb -> isomer  [weight=0 style="dotted" color="grey" arrowhead="none"];
-  eta -> multi  [weight=0 style="dotted" color="grey" arrowhead="none"];
-  eta -> firefly  [weight=0 style="dotted" color="grey" arrowhead="none"];
-  cynthia -> firefly [weight=0 style="dotted" color="grey" arrowhead="none"];
-  cynthia -> lukegb [weight=0 style="dotted" color="grey" arrowhead="none"];
-  kanepyork -> google [weight=0 style="dotted" color="grey" arrowhead="none"];
-  lukegb -> benjojo [weight=0 style="dotted" color="grey" arrowhead="none"];
-  multi -> benjojo [weight=0 style="dotted" color="grey" arrowhead="none"];
-  espes -> benjojo [weight=0 style="dotted" color="grey" arrowhead="none"];
-  espes -> aurora [weight=0 style="dotted" color="grey" arrowhead="none"];
-  puck -> nix [weight=0 style="dotted" color="grey" arrowhead="none"];
-  qyliss -> nix [weight=0 style="dotted" color="grey" arrowhead="none"];
-  glittershark -> nix [weight=0 style="dotted" color="grey" arrowhead="none"];
-  edef -> nix [weight=0 style="dotted" color="grey" arrowhead="none"];
-  cynthia -> baby [weight=0 style="dotted" arrowhead="none" color="pink"];
-  eta -> baby [weight=0 style="dotted" arrowhead="none" color="pink"];
-  Q -> baby [weight=0 style="dotted" arrowhead="none" color="pink"];
-  aranea -> nix [weight=0 style="dotted" color="grey" arrowhead="none"];
-  aranea -> profpatsch [weight=0 style="dotted" color="grey" arrowhead="none"];
-  artemist -> nix [weight=0 style="dotted" color="grey" arrowhead="none"];
-  hyperfekt -> edef [weight=0 style="dotted" color="grey" arrowhead="none"];
+  leah2 -> edef;
+  lukegb -> isomer;
+  eta -> multi;
+  eta -> firefly;
+  cynthia -> firefly;
+  cynthia -> lukegb;
+  kanepyork -> google;
+  lukegb -> benjojo;
+  multi -> benjojo;
+  espes -> benjojo;
+  espes -> aurora;
+  puck -> nix;
+  qyliss -> nix;
+  glittershark -> nix;
+  edef -> nix;
+  aranea -> nix;
+  aranea -> profpatsch;
+  artemist -> nix;
+  hyperfekt -> edef;
+
+  // baby
+  edge [color="pink"];
+  cynthia -> baby;
+  eta -> baby;
+  Q -> baby;
 }
-- 
2.25.1