github-file-icons icon indicating copy to clipboard operation
github-file-icons copied to clipboard

Support for Gitea is broken

Open Phoenix616 opened this issue 6 years ago • 3 comments

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)

Phoenix616 avatar Dec 19 '19 15:12 Phoenix616

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)

rafal06 avatar Jun 29 '22 12:06 rafal06

@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?

christopherpickering avatar Jun 29 '22 12:06 christopherpickering

still broken, forgejo aswell

wanesty avatar Sep 08 '23 14:09 wanesty