mirrorz-org / mirrorz-help

https://help.mirrorz.org
MIT License
57 stars 43 forks source link

feat: mask not available help from input mirrorz.json #66

Open ZenithalHourlyRate opened 1 year ago

ZenithalHourlyRate commented 1 year ago

Currently, the list in https://mirrors.help always displays all mirror items.

However, once we do not have data for one help doc, accessing that help doc would result in an exception. We should mask them in the list.

xtom.help just overrides the json https://github.com/xtomcom/xtom.help/blob/master/override/routes.json

TUNA mirror-web instead, masks them by deleting items after statically rendering them in https://github.com/tuna/mirror-web/blob/cdc12cd622e43206b7b7b32be3b112db9d44bf32/static/js/help.es6#L55