From a7f469985373f3d4c94378032878f29ce55c3a70 Mon Sep 17 00:00:00 2001 From: Mohamed Karray Date: Thu, 21 Feb 2019 17:08:23 +0100 Subject: [PATCH 1/4] add extension point to the content ui --- scm-ui/src/repos/sources/containers/Content.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scm-ui/src/repos/sources/containers/Content.js b/scm-ui/src/repos/sources/containers/Content.js index 2f3f5ba853..9eb1bc9172 100644 --- a/scm-ui/src/repos/sources/containers/Content.js +++ b/scm-ui/src/repos/sources/containers/Content.js @@ -11,6 +11,7 @@ import SourcesView from "./SourcesView"; import HistoryView from "./HistoryView"; import { getSources } from "../modules/sources"; import { connect } from "react-redux"; +import {ExtensionPoint} from "@scm-manager/ui-extensions"; type Props = { loading: boolean, @@ -148,6 +149,11 @@ class Content extends React.Component { {t("sources.content.description")} {description} + + From dac7b4543eb2772e4000c0951714a44e0c35b313 Mon Sep 17 00:00:00 2001 From: Mohamed Karray Date: Mon, 25 Feb 2019 16:24:05 +0100 Subject: [PATCH 2/4] add extension point to the content ui --- scm-ui/src/repos/sources/containers/Content.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scm-ui/src/repos/sources/containers/Content.js b/scm-ui/src/repos/sources/containers/Content.js index 9eb1bc9172..5f6321244b 100644 --- a/scm-ui/src/repos/sources/containers/Content.js +++ b/scm-ui/src/repos/sources/containers/Content.js @@ -104,7 +104,7 @@ class Content extends React.Component { showMoreInformation() { const collapsed = this.state.collapsed; - const { classes, file, revision, t } = this.props; + const { classes, file, revision, t, repository } = this.props; const date = ; const description = file.description ? (

@@ -151,7 +151,7 @@ class Content extends React.Component { From a5f64771937c3ab92ae14769a914bdf589d5399d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Thu, 28 Feb 2019 17:15:20 +0100 Subject: [PATCH 3/4] Enhance extension point --- scm-ui/src/repos/sources/containers/Content.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/scm-ui/src/repos/sources/containers/Content.js b/scm-ui/src/repos/sources/containers/Content.js index 5f6321244b..639b24df8e 100644 --- a/scm-ui/src/repos/sources/containers/Content.js +++ b/scm-ui/src/repos/sources/containers/Content.js @@ -11,7 +11,7 @@ import SourcesView from "./SourcesView"; import HistoryView from "./HistoryView"; import { getSources } from "../modules/sources"; import { connect } from "react-redux"; -import {ExtensionPoint} from "@scm-manager/ui-extensions"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; type Props = { loading: boolean, @@ -121,12 +121,7 @@ class Content extends React.Component { const fileSize = file.directory ? "" : ; if (!collapsed) { return ( -

+
@@ -151,9 +146,9 @@ class Content extends React.Component { - + renderAll={true} + props={{ file, repository, revision }} + />
From 4ba58aa5e37dcf8e7784d4ca8415f574992729d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Thu, 28 Feb 2019 16:16:41 +0000 Subject: [PATCH 4/4] Close branch feature/directfilelink_extenssion_point