kubo/assets/dir-index-html
Henrique Dias 7bdb341132
feat: fast directory listings with DAG Size column (#9481)
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-12-12 21:45:13 +01:00
..
src feat: fast directory listings with DAG Size column (#9481) 2022-12-12 21:45:13 +01:00
test feat: fast directory listings with DAG Size column (#9481) 2022-12-12 21:45:13 +01:00
dir-index.html feat: fast directory listings with DAG Size column (#9481) 2022-12-12 21:45:13 +01:00
index.go removed dir-index-html submodule 2021-11-18 14:28:13 +08:00
knownIcons.txt removed dir-index-html submodule 2021-11-18 14:28:13 +08:00
package.json chore: cleanup after merging dir-index-html 2021-11-23 20:32:39 +01:00
README.md feat(gateway): JSON and CBOR response formats (IPIP-328) (#9335) 2022-12-05 20:22:26 +01:00

dir-index-html

Directory listing HTML for HTTP gateway

Updating

When making updates to the directory listing page template, please note the following:

  1. Make your changes to the (human-friendly) source documents in the src directory and run npm run build
  2. Before testing or releasing, go to the top-level ./assets directory and make sure to run the go generate . script to update the bindata version

Testing

  1. Make sure you have Go installed
  2. Start the test server, which lives in its own directory:
> cd test
> go run .

This will listen on localhost:3000 and reload the template every time you refresh the page.

If you get a "no such file or directory" error upon trying go run ., make sure you ran npm run build to generate the minified artifact that the test is looking for.