Proposal: Show overall number of modules like Deno is doing - see screenshot
michael-spengler opened this issue ยท 11 comments
in gallery.
Just exploring how this goes together with the lazy loading 24 ... + more on demand ...
If somebody reading this knows if the API provides something like https://x.nest.land/api/modulecount/ please let me know.
It is provided as a HTTP response header:
https://github.com/nestdotland/x/blob/c94add3607c9fb7b45ac916d5f0776eb0fc0aeb1/src/routes/package.ts#L44
cool thanks - will probably draft this tomorrow.
It is provided as a HTTP response header:
https://github.com/nestdotland/x/blob/c94add3607c9fb7b45ac916d5f0776eb0fc0aeb1/src/routes/package.ts#L44
It's really cool to have X-Total however it seems that the following is necessary to enable this:
Access-Control-Expose-Headers: X-Total
Background:
https://stackoverflow.com/questions/37897523/axios-get-access-to-response-header-fields
If that's right: Could anyone tell me where I can do that because so far response.headers only contains / reveals content-type when called via browser / page ?
CC @maximousblk & @justablob
I like @thewizardbear's idea of showing
Showing $visible of $total modules
I'd even suggest we should do what deno has with the search box
I really like @thewizardbear's idea too. I'd be happy with either representation of this data.
ok - does anyone have updates on this one
#267 (comment) ?
As this is imo necessary to get the X-Total