Skip to content

Commit

Permalink
gitea submodule/symlink support
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudiohbsantos committed Jul 1, 2022
1 parent b5a1a61 commit 1cc9fd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/gitea.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ const giteaConfig = {
filename: 'td.name.four.wide > span.truncate > a',
icon: 'td.name.four.wide > span.truncate > svg',
},
getIsLightTheme: () => false, // TODO: needs further investigation
getIsLightTheme: () => false,
getIsDirectory: (svgEl) => svgEl.classList.contains('octicon-file-directory-fill'),
getIsSubmodule: () => false, // TODO: needs further investigation
getIsSymlink: () => false, // TODO: needs further investigation
getIsSubmodule: (svgEl) => svgEl.classList.contains('octicon-file-submodule'),
getIsSymlink: (svgEl) => svgEl.classList.contains('octicon-file-symlink-file'),
replaceIcon: (svgEl, newSVG) => {
svgEl
.getAttributeNames()
Expand Down

0 comments on commit 1cc9fd3

Please sign in to comment.