implemented avatar and information extension point for svn, hg and git

This commit is contained in:
Sebastian Sdorra
2018-08-24 11:03:35 +02:00
parent c342e1d57c
commit 8fa1308169
22 changed files with 15316 additions and 534 deletions

View File

@@ -1,4 +1,10 @@
import { binder } from "@scm-manager/ui-extensions";
import CloneInformation from './CloneInformation';
import ProtocolInformation from './ProtocolInformation';
import GitAvatar from './GitAvatar';
binder.bind("repos.repository-details.informations", CloneInformation);
const gitPredicate = (props: Object) => {
return props.repository && props.repository.type === "git";
};
binder.bind("repos.repository-details.information", ProtocolInformation, gitPredicate);
binder.bind("repos.repository-avatar", GitAvatar, gitPredicate);