I think the layer of dldddt is unnecessarily bulky. I think we can make a more concise structure, provided that we have the "node" render its own directory entry name. Let's use a dummy value like "(root)" the store path for the directory entry name when we're rendering the root node.
I think the layer of
dl
dd
dt
is unnecessarily bulky. I think we can make a more concise structure, provided that we have the "node" render its own directory entry name. Let's usea dummy value like "(root)"the store path for the directory entry name when we're rendering the root node.Here are my ideas:
Regular
Symlink
Directory
See around here for the current code that builds the tree https://github.com/wh0/nix-cache-view/blob/1a5bba2d55272506ff2f7c6af27cf0bf92d79474/nar.html#L55
Vanilla js + dom preferred. Sorry for the verbosity. It's more convenient for me to maintain this way without external dependencies.