Support for Gitea is broken
Currently the icons do not seem to work when self-hosting Gitea. Tested with Gitea Version: 1.11.0+dev-339-g54dab5a, github-file-icon v1.0.0 (fromt he chrome webstore) and Chromium Version 80.0.3977.0. (E.g. on this repo)
Also doesn't work on self-hosted Gitea version 1.16.8 (tested with Firefox 101.0.1 and github-file-icons 1.3.0 from addons.mozilla.org)
@homerchen19 Changing content.ts default selector to
default:
return {
filenameSelector: 'tr > td.name > span > a',
iconSelector: 'tr > td.name > span > span, tr > td.name > span > svg',
host: Host.Others,
};
seems to fix gitea. I put two selectors for the icon, as the repo linked above https://code.minebench.de/Minebench/Minequery is different than other gitea sites, such as https://gitea.artixlinux.org/packagesPython/python-pip.
Maybe there should a case specific to gitea?
still broken, forgejo aswell