diff --git a/scm-ui-components/packages/ui-components/src/config/RepositoryConfigurationBinder.js b/scm-ui-components/packages/ui-components/src/config/RepositoryConfigurationBinder.js deleted file mode 100644 index 6438870860..0000000000 --- a/scm-ui-components/packages/ui-components/src/config/RepositoryConfigurationBinder.js +++ /dev/null @@ -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 ; - }); - - // 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 } - exact/>; - }; - - // bind config route to extension point - binder.bind("repository.route", RepoRoute, repoPredicate); - } - - -} - -export default new RepositoryConfigurationBinder(); diff --git a/scm-ui/.gitignore b/scm-ui/.gitignore new file mode 100644 index 0000000000..d30f40ef44 --- /dev/null +++ b/scm-ui/.gitignore @@ -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* diff --git a/scm-webapp/config/config.xml b/scm-webapp/config/config.xml new file mode 100644 index 0000000000..ed224b98b1 --- /dev/null +++ b/scm-webapp/config/config.xml @@ -0,0 +1,14 @@ + + + false + 0 + gnlViC0YyKoivL+/zNsiOTi9/5a89iIl3GHC + 0 + false + 0 + false + false + false + false + false +