Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Gitea is broken #70

Open
Phoenix616 opened this issue Dec 19, 2019 · 3 comments
Open

Support for Gitea is broken #70

Phoenix616 opened this issue Dec 19, 2019 · 3 comments

Comments

@Phoenix616
Copy link

Phoenix616 commented Dec 19, 2019

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)

@rafal06
Copy link

rafal06 commented Jun 29, 2022

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)

@christopherpickering
Copy link
Contributor

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

@wanesty
Copy link

wanesty commented Sep 8, 2023

still broken, forgejo aswell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants