mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
Extension points for information page tables
Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com> Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com> Reviewed-by: Rene Pfeuffer <rene.pfeuffer@cloudogu.com>
This commit is contained in:
committed by
SCM-Manager
parent
31117681e4
commit
d4e03c6f70
2
gradle/changelog/information_page_extension_points.yaml
Normal file
2
gradle/changelog/information_page_extension_points.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: added
|
||||
description: Extension points for bottom of information table
|
||||
@@ -665,3 +665,19 @@ export type RepositoryDeleteButton = RenderableExtensionPointDefinition<
|
||||
"repository.deleteButton",
|
||||
{ repository: Repository }
|
||||
>;
|
||||
|
||||
export type RepositoryInformationTableBottom = RenderableExtensionPointDefinition<
|
||||
"repository.information.table.bottom",
|
||||
{ repository: Repository }
|
||||
>;
|
||||
|
||||
export type UserInformationTableBottom = RenderableExtensionPointDefinition<
|
||||
"user.information.table.bottom",
|
||||
{ user: User }
|
||||
>;
|
||||
|
||||
export type GroupInformationTableBottom = RenderableExtensionPointDefinition<
|
||||
"group.information.table.bottom",
|
||||
{ group: Group }
|
||||
>;
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ import { WithTranslation, withTranslation } from "react-i18next";
|
||||
import { Group } from "@scm-manager/ui-types";
|
||||
import { Checkbox, DateFromNow, InfoTable } from "@scm-manager/ui-components";
|
||||
import GroupMember from "./GroupMember";
|
||||
import { ExtensionPoint, extensionPoints } from "@scm-manager/ui-extensions";
|
||||
|
||||
type Props = WithTranslation & {
|
||||
group: Group;
|
||||
@@ -68,6 +69,7 @@ class Details extends React.Component<Props> {
|
||||
</td>
|
||||
</tr>
|
||||
{this.renderMembers()}
|
||||
<ExtensionPoint<extensionPoints.GroupInformationTableBottom> name="group.information.table.bottom" props={{group}} renderAll={true} />
|
||||
</tbody>
|
||||
</InfoTable>
|
||||
);
|
||||
|
||||
@@ -25,6 +25,7 @@ import React from "react";
|
||||
import { WithTranslation, withTranslation } from "react-i18next";
|
||||
import { Repository } from "@scm-manager/ui-types";
|
||||
import { DateFromNow, InfoTable, MailLink } from "@scm-manager/ui-components";
|
||||
import { ExtensionPoint, extensionPoints } from "@scm-manager/ui-extensions";
|
||||
|
||||
type Props = WithTranslation & {
|
||||
repository: Repository;
|
||||
@@ -66,6 +67,7 @@ class RepositoryDetailTable extends React.Component<Props> {
|
||||
<DateFromNow date={repository.lastModified} />
|
||||
</td>
|
||||
</tr>
|
||||
<ExtensionPoint<extensionPoints.RepositoryInformationTableBottom> name="repository.information.table.bottom" props={{repository}} renderAll={true} />
|
||||
</tbody>
|
||||
</InfoTable>
|
||||
);
|
||||
|
||||
@@ -34,6 +34,7 @@ import {
|
||||
} from "@scm-manager/ui-components";
|
||||
import { Icon } from "@scm-manager/ui-components";
|
||||
import PermissionOverview from "../PermissionOverview";
|
||||
import { ExtensionPoint, extensionPoints } from "@scm-manager/ui-extensions";
|
||||
|
||||
type Props = WithTranslation & {
|
||||
user: User;
|
||||
@@ -102,6 +103,7 @@ const Details: FC<Props> = ({ user }) => {
|
||||
<DateFromNow date={user.lastModified} />
|
||||
</td>
|
||||
</tr>
|
||||
<ExtensionPoint<extensionPoints.UserInformationTableBottom> name="user.information.table.bottom" props={{user}} renderAll={true} />
|
||||
</tbody>
|
||||
</InfoTable>
|
||||
{permissionOverview}
|
||||
|
||||
Reference in New Issue
Block a user