mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 19:15:52 +01:00
New extension point (for readme) in code overview
The readme files should be rendered in the code overview below the file tree and not in a separate page. To render the readme file, a new extension point was added. The order of items in the side menu also got changed.
This commit is contained in:
@@ -34,7 +34,6 @@ import {
|
||||
FileControlFactory,
|
||||
HealthCheckFailureDetail,
|
||||
JumpToFileButton,
|
||||
Loading,
|
||||
NavLink,
|
||||
Page,
|
||||
PrimaryContentColumn,
|
||||
@@ -44,6 +43,7 @@ import {
|
||||
SubNavigation,
|
||||
urls,
|
||||
} from "@scm-manager/ui-components";
|
||||
import { Loading } from "@scm-manager/ui-core";
|
||||
import RepositoryDetails from "../components/RepositoryDetails";
|
||||
import EditRepo from "./EditRepo";
|
||||
import BranchesOverview from "../branches/containers/BranchesOverview";
|
||||
@@ -349,6 +349,16 @@ const RepositoryRoot = () => {
|
||||
</PrimaryContentColumn>
|
||||
<SecondaryNavigationColumn>
|
||||
<SecondaryNavigation label={t("repositoryRoot.menu.navigationLabel")}>
|
||||
<RepositoryNavLink
|
||||
repository={repository}
|
||||
linkName={codeLinkname}
|
||||
to={evaluateDestinationForCodeLink()}
|
||||
icon="fas fa-code"
|
||||
label={t("repositoryRoot.menu.sourcesNavLink")}
|
||||
activeWhenMatch={matchesCode}
|
||||
activeOnlyWhenExact={false}
|
||||
title={t("repositoryRoot.menu.sourcesNavLink")}
|
||||
/>
|
||||
<ExtensionPoint<extensionPoints.RepositoryNavigationTopLevel>
|
||||
name="repository.navigation.topLevel"
|
||||
props={extensionProps}
|
||||
@@ -380,16 +390,6 @@ const RepositoryRoot = () => {
|
||||
activeOnlyWhenExact={false}
|
||||
title={t("repositoryRoot.menu.tagsNavLink")}
|
||||
/>
|
||||
<RepositoryNavLink
|
||||
repository={repository}
|
||||
linkName={codeLinkname}
|
||||
to={evaluateDestinationForCodeLink()}
|
||||
icon="fas fa-code"
|
||||
label={t("repositoryRoot.menu.sourcesNavLink")}
|
||||
activeWhenMatch={matchesCode}
|
||||
activeOnlyWhenExact={false}
|
||||
title={t("repositoryRoot.menu.sourcesNavLink")}
|
||||
/>
|
||||
<ExtensionPoint<extensionPoints.RepositoryNavigation>
|
||||
name="repository.navigation"
|
||||
props={extensionProps}
|
||||
|
||||
Reference in New Issue
Block a user