remove unsuned file

This commit is contained in:
Maren Süwer
2018-11-15 09:50:22 +01:00
parent 39f46e46b1
commit 74fd7a67cb
3 changed files with 35 additions and 44 deletions

View File

@@ -1,44 +0,0 @@
// @flow
import * as React from "react";
import { binder } from "@scm-manager/ui-extensions";
import { RepositoryNavLink } from "../navigation";
import { Route } from "react-router-dom";
import { translate } from "react-i18next";
class RepositoryConfigurationBinder {
i18nNamespace: string = "plugins";
bindRepository(to: string, labelI18nKey: string, linkName: string, RepositoryComponent: any) {
// create predicate based on the link name of the current repository route
// if the linkname is not available, the navigation link and the route are not bound to the extension points
const repoPredicate = (props: Object) => {
return props.repository && props.repository._links && props.repository._links[linkName];
};
// create NavigationLink with translated label
const RepoNavLink = translate(this.i18nNamespace)(({t, url}) => {
return <RepositoryNavLink to={url + to} label={t(labelI18nKey)} />;
});
// bind navigation link to extension point
binder.bind("repository.navigation", RepoNavLink, repoPredicate);
// route for global configuration, passes the current repository to component
const RepoRoute = ({ url, repository }) => {
return <Route path={url + to}
render={() => <RepositoryComponent repository={repository}/>}
exact/>;
};
// bind config route to extension point
binder.bind("repository.route", RepoRoute, repoPredicate);
}
}
export default new RepositoryConfigurationBinder();

21
scm-ui/.gitignore vendored Normal file
View File

@@ -0,0 +1,21 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.
# dependencies
/node_modules
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<scm-config>
<force-base-url>false</force-base-url>
<login-attempt-limit>0</login-attempt-limit>
<proxyPassword>gnlViC0YyKoivL+/zNsiOTi9/5a89iIl3GHC</proxyPassword>
<proxyPort>0</proxyPort>
<skip-failed-authenticators>false</skip-failed-authenticators>
<login-attempt-limit-timeout>0</login-attempt-limit-timeout>
<enableProxy>false</enableProxy>
<enableRepositoryArchive>false</enableRepositoryArchive>
<disableGroupingGrid>false</disableGroupingGrid>
<anonymousAccessEnabled>false</anonymousAccessEnabled>
<xsrf-protection>false</xsrf-protection>
</scm-config>