/* * Copyright (c) 2020 - present Cloudogu GmbH * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ import React, { FC } from "react"; import classNames from "classnames"; import { AvatarImage, AvatarWrapper } from "../../avatar"; import { ExtensionPoint, extensionPoints } from "@scm-manager/ui-extensions"; import ChangesetDescription from "./ChangesetDescription"; import { Trans } from "react-i18next"; import ChangesetAuthor from "./ChangesetAuthor"; import SignatureIcon from "./SignatureIcon"; import ChangesetTags from "./ChangesetTags"; import { parseDescription } from "./changesets"; import DateFromNow from "../../DateFromNow"; import { Changeset, Repository } from "@scm-manager/ui-types"; import styled from "styled-components"; import ChangesetId from "./ChangesetId"; type Props = { repository: Repository; changeset: Changeset; }; const FixedSizedAvatar = styled.div` width: 35px; height: 35px; overflow: hidden; `; const FullWidthDiv = styled.div` width: 100%; `; const SingleChangeset: FC = ({ repository, changeset }) => { const createChangesetId = () => { return ; }; const description = parseDescription(changeset.description); const changesetId = createChangesetId(); const dateFromNow = ; return (

name="changeset.description" props={{ changeset, value: description.title, }} renderAll={false} >

{changeset?.signatures && changeset.signatures.length > 0 && ( )}
); }; export default SingleChangeset;