mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 14:05:44 +01:00
remove unsuned file
This commit is contained in:
@@ -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
21
scm-ui/.gitignore
vendored
Normal 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*
|
||||||
14
scm-webapp/config/config.xml
Normal file
14
scm-webapp/config/config.xml
Normal 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>
|
||||||
Reference in New Issue
Block a user