@scm-manager/ui-components 3.4.2 → 3.4.3-20240825-085111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -9
- package/src/Autocomplete.tsx +11 -18
- package/src/BackendErrorNotification.tsx +11 -18
- package/src/BranchSelector.stories.tsx +10 -18
- package/src/BranchSelector.tsx +11 -18
- package/src/Breadcrumb.stories.tsx +11 -18
- package/src/Breadcrumb.tsx +11 -18
- package/src/CardColumn.stories.tsx +11 -18
- package/src/CardColumn.tsx +11 -18
- package/src/CardColumnGroup.tsx +11 -18
- package/src/CardColumnSmall.stories.tsx +11 -18
- package/src/CardColumnSmall.tsx +10 -18
- package/src/CommaSeparatedList.tsx +10 -18
- package/src/CopyToClipboard.ts +10 -18
- package/src/DangerZone.tsx +10 -18
- package/src/Date.stories.tsx +11 -18
- package/src/DateElement.ts +11 -18
- package/src/DateFromNow.tsx +10 -18
- package/src/DateShort.tsx +10 -18
- package/src/Duration.stories.tsx +10 -18
- package/src/Duration.tsx +10 -18
- package/src/ErrorBoundary.tsx +11 -18
- package/src/ErrorNotification.tsx +11 -18
- package/src/ErrorPage.tsx +11 -18
- package/src/FileSize.test.ts +10 -18
- package/src/FileSize.tsx +11 -18
- package/src/GroupAutocomplete.tsx +11 -18
- package/src/Help.stories.tsx +11 -18
- package/src/Help.tsx +11 -18
- package/src/HelpIcon.tsx +11 -18
- package/src/Icon.stories.tsx +11 -18
- package/src/Icon.tsx +11 -18
- package/src/Image.tsx +11 -18
- package/src/LinkPaginator.tsx +11 -18
- package/src/Loading.stories.tsx +11 -18
- package/src/Loading.tsx +11 -18
- package/src/Logo.stories.tsx +11 -18
- package/src/Logo.tsx +11 -18
- package/src/MailLink.tsx +11 -18
- package/src/Notification.stories.tsx +10 -18
- package/src/Notification.tsx +11 -18
- package/src/OverviewPageActions.tsx +11 -18
- package/src/Paginator.test.tsx +11 -18
- package/src/Paginator.tsx +11 -18
- package/src/PdfViewer.stories.tsx +10 -18
- package/src/PdfViewer.tsx +10 -18
- package/src/PreformattedCodeBlock.stories.tsx +11 -18
- package/src/PreformattedCodeBlock.tsx +11 -18
- package/src/ProtectedRoute.tsx +11 -18
- package/src/SmallLoadingSpinner.stories.tsx +11 -18
- package/src/SmallLoadingSpinner.tsx +11 -18
- package/src/StatePaginator.tsx +11 -18
- package/src/SyntaxHighlighter.stories.tsx +11 -18
- package/src/SyntaxHighlighter.tsx +11 -18
- package/src/SyntaxHighlighterRenderer.tsx +10 -18
- package/src/Tag.stories.tsx +10 -18
- package/src/Tag.tsx +11 -18
- package/src/Tooltip.stories.tsx +10 -18
- package/src/Tooltip.tsx +11 -18
- package/src/UserAutocomplete.tsx +11 -18
- package/src/UserGroupAutocomplete.tsx +11 -18
- package/src/__resources__/Diff.binary.ts +10 -18
- package/src/__resources__/Diff.hunks.ts +10 -18
- package/src/__resources__/Diff.markdown.ts +10 -18
- package/src/__resources__/Diff.simple.ts +10 -18
- package/src/__resources__/HttpServer.go.ts +10 -18
- package/src/__resources__/HttpServer.java.ts +10 -18
- package/src/__resources__/HttpServer.js.ts +10 -18
- package/src/__resources__/HttpServer.py.ts +10 -18
- package/src/__resources__/SearchHit.ts +10 -18
- package/src/__resources__/changesets.tsx +10 -18
- package/src/__resources__/markdown-changelog.md.ts +11 -18
- package/src/__resources__/markdown-commit-link.md.ts +11 -18
- package/src/__resources__/markdown-images.md.ts +10 -18
- package/src/__resources__/markdown-inline-xml.md.ts +11 -18
- package/src/__resources__/markdown-links.md.ts +10 -18
- package/src/__resources__/markdown-uml-codeblock.md.ts +11 -18
- package/src/__resources__/markdown-without-lang.md.ts +10 -18
- package/src/__resources__/markdown-xml-codeblock.md.ts +11 -18
- package/src/__resources__/markdown-xss.md.ts +10 -18
- package/src/__resources__/repository.ts +11 -18
- package/src/__resources__/test-page.md.ts +10 -18
- package/src/avatar/Avatar.ts +10 -18
- package/src/avatar/AvatarImage.tsx +11 -18
- package/src/avatar/AvatarWrapper.tsx +11 -18
- package/src/avatar/index.ts +10 -18
- package/src/buttons/AddButton.tsx +11 -18
- package/src/buttons/Button.tsx +11 -18
- package/src/buttons/ButtonAddons.tsx +11 -18
- package/src/buttons/ButtonGroup.tsx +11 -18
- package/src/buttons/CreateButton.tsx +11 -18
- package/src/buttons/DeleteButton.tsx +11 -18
- package/src/buttons/DownloadButton.tsx +11 -18
- package/src/buttons/EditButton.tsx +11 -18
- package/src/buttons/LinkStyleButton.tsx +10 -18
- package/src/buttons/NoStyleButton.tsx +10 -18
- package/src/buttons/OpenInFullscreenButton.tsx +11 -18
- package/src/buttons/RemoveEntryOfTableButton.tsx +11 -18
- package/src/buttons/SubmitButton.tsx +11 -18
- package/src/buttons/index.stories.tsx +11 -18
- package/src/buttons/index.ts +10 -18
- package/src/comparators.test.ts +10 -18
- package/src/comparators.ts +10 -18
- package/src/config/Configuration.tsx +11 -18
- package/src/config/ConfigurationBinder.tsx +11 -18
- package/src/config/ConfigurationForm.tsx +10 -18
- package/src/config/index.ts +10 -18
- package/src/createA11yId.tsx +10 -18
- package/src/devBuild.test.ts +10 -18
- package/src/devBuild.ts +10 -18
- package/src/devices.ts +10 -18
- package/src/forms/AddEntryToTableField.tsx +11 -18
- package/src/forms/AddKeyValueEntryToTableField.stories.tsx +11 -18
- package/src/forms/AddKeyValueEntryToTableField.tsx +11 -18
- package/src/forms/AutocompleteAddEntryToTableField.tsx +11 -18
- package/src/forms/Checkbox.stories.tsx +11 -18
- package/src/forms/Checkbox.tsx +11 -18
- package/src/forms/DropDown.stories.tsx +11 -18
- package/src/forms/DropDown.tsx +11 -18
- package/src/forms/FileInput.stories.tsx +11 -18
- package/src/forms/FileInput.tsx +11 -18
- package/src/forms/FileUpload.tsx +10 -18
- package/src/forms/FilterInput.tsx +11 -18
- package/src/forms/FormFieldTypes.tsx +11 -18
- package/src/forms/InputField.stories.tsx +11 -18
- package/src/forms/InputField.tsx +11 -18
- package/src/forms/LabelWithHelpIcon.tsx +11 -18
- package/src/forms/MemberNameTagGroup.tsx +11 -18
- package/src/forms/PasswordConfirmation.tsx +11 -18
- package/src/forms/Radio.stories.tsx +11 -18
- package/src/forms/Radio.tsx +11 -18
- package/src/forms/Select.stories.tsx +11 -18
- package/src/forms/Select.tsx +11 -18
- package/src/forms/TagGroup.tsx +11 -18
- package/src/forms/Textarea.stories.tsx +11 -18
- package/src/forms/Textarea.tsx +11 -18
- package/src/forms/TriStateCheckbox.tsx +11 -18
- package/src/forms/index.ts +10 -18
- package/src/forms/useAutofocus.ts +10 -18
- package/src/forms/useInnerRef.ts +10 -18
- package/src/index.ts +17 -20
- package/src/languages.test.ts +10 -18
- package/src/languages.ts +10 -18
- package/src/layout/CustomQueryFlexWrappedColumns.tsx +11 -18
- package/src/layout/Footer.stories.tsx +11 -18
- package/src/layout/Footer.tsx +11 -18
- package/src/layout/FooterSection.tsx +11 -18
- package/src/layout/GroupEntries.tsx +11 -18
- package/src/layout/Header.tsx +11 -18
- package/src/layout/Level.tsx +11 -18
- package/src/layout/NamespaceEntries.tsx +11 -18
- package/src/layout/Page.tsx +11 -18
- package/src/layout/PageActions.tsx +11 -18
- package/src/layout/PrimaryContentColumn.tsx +11 -18
- package/src/layout/SecondaryNavigationColumn.tsx +11 -18
- package/src/layout/SubSubtitle.tsx +11 -18
- package/src/layout/Subtitle.tsx +11 -18
- package/src/layout/Title.tsx +11 -18
- package/src/layout/index.ts +10 -18
- package/src/markdown/LazyMarkdownView.tsx +11 -18
- package/src/markdown/MarkdownCodeRenderer.tsx +10 -18
- package/src/markdown/MarkdownHeadingRenderer.test.ts +10 -18
- package/src/markdown/MarkdownHeadingRenderer.tsx +11 -18
- package/src/markdown/MarkdownImageRenderer.test.ts +10 -18
- package/src/markdown/MarkdownImageRenderer.tsx +11 -18
- package/src/markdown/MarkdownLinkRenderer.test.tsx +11 -18
- package/src/markdown/MarkdownLinkRenderer.tsx +11 -18
- package/src/markdown/MarkdownView.stories.tsx +11 -18
- package/src/markdown/MarkdownView.tsx +11 -18
- package/src/markdown/PluginApi.ts +11 -18
- package/src/markdown/createComponentList.ts +11 -18
- package/src/markdown/createMdastPlugin.ts +11 -18
- package/src/markdown/markdownExtensions.ts +11 -18
- package/src/markdown/paths.ts +10 -18
- package/src/markdown/remarkChangesetShortLinkParser.test.ts +10 -18
- package/src/markdown/remarkChangesetShortLinkParser.ts +10 -18
- package/src/markdown/remarkToRehypeRendererAdapters.ts +11 -18
- package/src/markdown/remarkValuelessTextAdapter.ts +10 -18
- package/src/modals/ActiveModalCountContextProvider.tsx +10 -18
- package/src/modals/ConfirmAlert.stories.tsx +10 -18
- package/src/modals/ConfirmAlert.tsx +11 -18
- package/src/modals/CreateTagModal.tsx +10 -18
- package/src/modals/FullscreenModal.tsx +11 -18
- package/src/modals/Modal.stories.tsx +10 -18
- package/src/modals/Modal.tsx +11 -18
- package/src/modals/activeModalCountContext.ts +10 -18
- package/src/modals/index.ts +10 -18
- package/src/modals/useActiveModals.ts +10 -18
- package/src/modals/useRegisterModal.test.tsx +10 -18
- package/src/modals/useRegisterModal.ts +10 -18
- package/src/navigation/ExternalLink.tsx +11 -18
- package/src/navigation/ExternalNavLink.tsx +11 -18
- package/src/navigation/MenuContext.tsx +10 -18
- package/src/navigation/NavAction.tsx +11 -18
- package/src/navigation/NavLink.tsx +11 -18
- package/src/navigation/Navigation.tsx +11 -18
- package/src/navigation/PrimaryNavigation.tsx +11 -18
- package/src/navigation/PrimaryNavigationLink.tsx +11 -18
- package/src/navigation/RoutingProps.ts +10 -18
- package/src/navigation/SecondaryNavigation.stories.tsx +10 -18
- package/src/navigation/SecondaryNavigation.tsx +11 -18
- package/src/navigation/SecondaryNavigationContext.ts +11 -18
- package/src/navigation/SecondaryNavigationItem.tsx +11 -18
- package/src/navigation/SubNavigation.tsx +11 -18
- package/src/navigation/SubNavigationContext.ts +11 -18
- package/src/navigation/index.ts +10 -18
- package/src/navigation/useActiveMatch.ts +10 -18
- package/src/navigation/useNavigationLock.ts +10 -18
- package/src/popover/Popover.stories.tsx +10 -18
- package/src/popover/Popover.tsx +10 -18
- package/src/popover/index.ts +10 -18
- package/src/popover/usePopover.ts +10 -18
- package/src/repos/CommitAuthor.tsx +10 -18
- package/src/repos/Diff.stories.tsx +11 -18
- package/src/repos/Diff.tsx +75 -29
- package/src/repos/DiffButton.tsx +11 -18
- package/src/repos/DiffDropDown.tsx +11 -18
- package/src/repos/DiffExpander.test.ts +11 -18
- package/src/repos/DiffExpander.ts +10 -18
- package/src/repos/DiffFile.tsx +10 -18
- package/src/repos/DiffStatistics.tsx +27 -18
- package/src/repos/DiffTypes.ts +10 -18
- package/src/repos/HealthCheckFailureDetail.tsx +10 -18
- package/src/repos/HealthCheckFailureList.tsx +10 -18
- package/src/repos/HunkExpandDivider.tsx +11 -18
- package/src/repos/HunkExpandLink.tsx +11 -18
- package/src/repos/JumpToFileButton.tsx +17 -20
- package/src/repos/LoadingDiff.tsx +57 -35
- package/src/repos/RepositoryAvatar.tsx +11 -18
- package/src/repos/RepositoryEntry.stories.tsx +11 -18
- package/src/repos/RepositoryEntry.tsx +11 -18
- package/src/repos/RepositoryEntryLink.tsx +11 -18
- package/src/repos/RepositoryFlag.tsx +10 -18
- package/src/repos/RepositoryFlags.tsx +11 -18
- package/src/repos/TokenizedDiffView.tsx +11 -18
- package/src/repos/annotate/Annotate.stories.tsx +10 -18
- package/src/repos/annotate/Annotate.tsx +10 -18
- package/src/repos/annotate/AnnotateLine.tsx +11 -18
- package/src/repos/annotate/AnnotatePopover.tsx +10 -18
- package/src/repos/annotate/AuthorImage.tsx +10 -18
- package/src/repos/annotate/actions.ts +10 -18
- package/src/repos/annotate/index.ts +10 -18
- package/src/repos/changesets/ChangesetAuthor.tsx +11 -18
- package/src/repos/changesets/ChangesetButtonGroup.tsx +11 -18
- package/src/repos/changesets/ChangesetDescription.tsx +10 -18
- package/src/repos/changesets/ChangesetDiff.test.ts +10 -18
- package/src/repos/changesets/ChangesetDiff.tsx +11 -18
- package/src/repos/changesets/ChangesetId.tsx +11 -18
- package/src/repos/changesets/ChangesetList.tsx +11 -18
- package/src/repos/changesets/ChangesetRow.tsx +11 -18
- package/src/repos/changesets/ChangesetTag.tsx +11 -18
- package/src/repos/changesets/ChangesetTagBase.tsx +11 -18
- package/src/repos/changesets/ChangesetTags.tsx +11 -18
- package/src/repos/changesets/ChangesetTagsCollapsed.tsx +11 -18
- package/src/repos/changesets/Changesets.stories.tsx +10 -18
- package/src/repos/changesets/ContributorAvatar.tsx +10 -18
- package/src/repos/changesets/SignatureIcon.tsx +11 -18
- package/src/repos/changesets/SingleChangeset.tsx +11 -18
- package/src/repos/changesets/changesets.test.ts +10 -18
- package/src/repos/changesets/changesets.ts +10 -18
- package/src/repos/changesets/index.ts +10 -18
- package/src/repos/defaultCollapsed.ts +10 -18
- package/src/repos/diff/BinaryDiffFileContent.tsx +10 -18
- package/src/repos/diff/ChangeTag.tsx +10 -18
- package/src/repos/diff/DiffFileHunk.tsx +10 -18
- package/src/repos/diff/DiffFileTree.tsx +123 -0
- package/src/repos/diff/FileTitle.tsx +10 -18
- package/src/repos/diff/HunkFooter.tsx +10 -18
- package/src/repos/diff/HunkHeader.tsx +10 -18
- package/src/repos/diff/LastHunkFooter.tsx +10 -18
- package/src/repos/diff/LazyDiffFile.tsx +11 -18
- package/src/repos/diff/helpers.ts +10 -18
- package/src/repos/diff/styledElements.tsx +39 -18
- package/src/repos/diff/types.ts +10 -18
- package/src/repos/diffs.test.ts +10 -18
- package/src/repos/diffs.ts +20 -18
- package/src/repos/index.ts +10 -18
- package/src/repositories.test.ts +10 -18
- package/src/repositories.ts +10 -18
- package/src/search/HighlightedFragment.tsx +10 -18
- package/src/search/Hit.tsx +10 -18
- package/src/search/TextHitField.stories.tsx +11 -18
- package/src/search/TextHitField.tsx +10 -18
- package/src/search/fields.ts +10 -18
- package/src/search/index.ts +10 -18
- package/src/storyshots.test.ts +10 -18
- package/src/styleConstants.ts +10 -18
- package/src/table/Column.tsx +11 -18
- package/src/table/InfoTable.tsx +10 -18
- package/src/table/SortIcon.tsx +11 -18
- package/src/table/Table.stories.tsx +11 -18
- package/src/table/Table.tsx +11 -18
- package/src/table/TextColumn.tsx +11 -18
- package/src/table/index.ts +10 -18
- package/src/table/types.ts +10 -18
- package/src/toast/Toast.tsx +11 -18
- package/src/toast/ToastArea.tsx +10 -18
- package/src/toast/ToastButton.tsx +11 -18
- package/src/toast/ToastButtons.tsx +11 -18
- package/src/toast/ToastNotification.tsx +11 -18
- package/src/toast/index.stories.tsx +11 -18
- package/src/toast/index.ts +10 -18
- package/src/toast/themes.ts +10 -18
- package/src/useDateFormatter.test.ts +10 -18
- package/src/useDateFormatter.ts +10 -18
- package/src/useGeneratedId.tsx +10 -18
- package/src/usePortalRootElement.ts +10 -18
- package/src/useScrollToElement.ts +36 -22
- package/src/useSecondaryNavigation.tsx +11 -18
- package/src/validation.test.ts +10 -18
- package/src/validation.ts +10 -18
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
24
16
|
|
|
25
17
|
import { HealthCheckFailure } from "@scm-manager/ui-types";
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
16
|
+
|
|
24
17
|
import React, { FC } from "react";
|
|
25
18
|
// @ts-ignore
|
|
26
19
|
import { Decoration } from "react-diff-view";
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
16
|
+
|
|
24
17
|
import React, { FC, useState } from "react";
|
|
25
18
|
import { useTranslation } from "react-i18next";
|
|
26
19
|
import classNames from "classnames";
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
16
|
+
|
|
24
17
|
import React, { FC } from "react";
|
|
25
18
|
import styled from "styled-components";
|
|
26
19
|
import { Link } from "react-router-dom";
|
|
@@ -37,13 +30,17 @@ const Button = styled(Link)`
|
|
|
37
30
|
type Props = {
|
|
38
31
|
link: string;
|
|
39
32
|
tooltip: string;
|
|
33
|
+
icon?: string;
|
|
34
|
+
color?: string;
|
|
40
35
|
};
|
|
41
36
|
|
|
42
|
-
const JumpToFileButton: FC<Props> = ({ link, tooltip }) => {
|
|
37
|
+
const JumpToFileButton: FC<Props> = ({ link, tooltip, icon, color }) => {
|
|
38
|
+
const iconToUse = icon ?? "file-code";
|
|
39
|
+
const colorToUse = color ?? "inherit";
|
|
43
40
|
return (
|
|
44
41
|
<Tooltip message={tooltip} side="top">
|
|
45
42
|
<Button aria-label={tooltip} className="button is-clickable" to={link}>
|
|
46
|
-
<Icon name=
|
|
43
|
+
<Icon name={iconToUse} color={colorToUse} alt="" />
|
|
47
44
|
</Button>
|
|
48
45
|
</Tooltip>
|
|
49
46
|
);
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
16
|
+
|
|
24
17
|
import React, { FC, useState } from "react";
|
|
25
18
|
import { useTranslation } from "react-i18next";
|
|
26
19
|
import { NotFoundError, useDiff } from "@scm-manager/ui-api";
|
|
@@ -32,6 +25,10 @@ import Diff from "./Diff";
|
|
|
32
25
|
import { DiffObjectProps } from "./DiffTypes";
|
|
33
26
|
import DiffStatistics from "./DiffStatistics";
|
|
34
27
|
import { DiffDropDown } from "../index";
|
|
28
|
+
import DiffFileTree from "./diff/DiffFileTree";
|
|
29
|
+
import { DiffContent, FileTreeContent } from "./diff/styledElements";
|
|
30
|
+
import { useHistory, useLocation } from "react-router-dom";
|
|
31
|
+
import { getFileNameFromHash } from "./diffs";
|
|
35
32
|
|
|
36
33
|
type Props = DiffObjectProps & {
|
|
37
34
|
url: string;
|
|
@@ -60,9 +57,13 @@ const PartialNotification: FC<NotificationProps> = ({ fetchNextPage, isFetchingN
|
|
|
60
57
|
const LoadingDiff: FC<Props> = ({ url, limit, refetchOnWindowFocus, ...props }) => {
|
|
61
58
|
const [ignoreWhitespace, setIgnoreWhitespace] = useState(false);
|
|
62
59
|
const [collapsed, setCollapsed] = useState(false);
|
|
60
|
+
const [prevHash, setPrevHash] = useState("");
|
|
61
|
+
const location = useLocation();
|
|
62
|
+
const history = useHistory();
|
|
63
|
+
|
|
63
64
|
const evaluateWhiteSpace = () => {
|
|
64
|
-
return ignoreWhitespace ? "ALL" : "NONE"
|
|
65
|
-
}
|
|
65
|
+
return ignoreWhitespace ? "ALL" : "NONE";
|
|
66
|
+
};
|
|
66
67
|
const { error, isLoading, data, fetchNextPage, isFetchingNextPage } = useDiff(url, {
|
|
67
68
|
limit,
|
|
68
69
|
refetchOnWindowFocus,
|
|
@@ -78,6 +79,11 @@ const LoadingDiff: FC<Props> = ({ url, limit, refetchOnWindowFocus, ...props })
|
|
|
78
79
|
setCollapsed(!collapsed);
|
|
79
80
|
};
|
|
80
81
|
|
|
82
|
+
const setFilePath = (path: string) => {
|
|
83
|
+
setPrevHash("");
|
|
84
|
+
history.push(`#diff-${encodeURIComponent(path)}`);
|
|
85
|
+
};
|
|
86
|
+
|
|
81
87
|
if (error) {
|
|
82
88
|
if (error instanceof NotFoundError) {
|
|
83
89
|
return <Notification type="info">{t("changesets.noChangesets")}</Notification>;
|
|
@@ -89,21 +95,37 @@ const LoadingDiff: FC<Props> = ({ url, limit, refetchOnWindowFocus, ...props })
|
|
|
89
95
|
return null;
|
|
90
96
|
} else {
|
|
91
97
|
return (
|
|
92
|
-
|
|
93
|
-
<
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
98
|
+
<div className="is-flex has-gap-4 mb-4 mt-4 is-justify-content-space-between">
|
|
99
|
+
<FileTreeContent className={"is-three-quarters"}>
|
|
100
|
+
{data?.tree && (
|
|
101
|
+
<DiffFileTree
|
|
102
|
+
tree={data.tree}
|
|
103
|
+
currentFile={decodeURIComponent(getFileNameFromHash(location.hash) ?? "")}
|
|
104
|
+
setCurrentFile={setFilePath}
|
|
105
|
+
/>
|
|
106
|
+
)}
|
|
107
|
+
</FileTreeContent>
|
|
108
|
+
<DiffContent>
|
|
109
|
+
<div className="is-flex has-gap-4 mb-4 mt-4 is-justify-content-space-between">
|
|
110
|
+
<DiffStatistics data={data.statistics} />
|
|
111
|
+
<DiffDropDown collapseDiffs={collapseDiffs} ignoreWhitespaces={ignoreWhitespaces} renderOnMount={true} />
|
|
112
|
+
</div>
|
|
113
|
+
<Diff
|
|
114
|
+
defaultCollapse={collapsed}
|
|
115
|
+
diff={data.files}
|
|
116
|
+
ignoreWhitespace={evaluateWhiteSpace()}
|
|
117
|
+
fetchNextPage={fetchNextPage}
|
|
118
|
+
isFetchingNextPage={isFetchingNextPage}
|
|
119
|
+
isDataPartial={data.partial}
|
|
120
|
+
prevHash={prevHash}
|
|
121
|
+
setPrevHash={setPrevHash}
|
|
122
|
+
{...props}
|
|
123
|
+
/>
|
|
124
|
+
{data.partial ? (
|
|
125
|
+
<PartialNotification fetchNextPage={fetchNextPage} isFetchingNextPage={isFetchingNextPage} />
|
|
126
|
+
) : null}
|
|
127
|
+
</DiffContent>
|
|
128
|
+
</div>
|
|
107
129
|
);
|
|
108
130
|
}
|
|
109
131
|
};
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
16
|
+
|
|
24
17
|
import React, { FC } from "react";
|
|
25
18
|
import { ExtensionPoint, extensionPoints } from "@scm-manager/ui-extensions";
|
|
26
19
|
import { Repository } from "@scm-manager/ui-types";
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
16
|
+
|
|
24
17
|
import { storiesOf } from "@storybook/react";
|
|
25
18
|
import React, { FC, ReactNode } from "react";
|
|
26
19
|
import styled from "styled-components";
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
16
|
+
|
|
24
17
|
import React, { FC } from "react";
|
|
25
18
|
import { Repository } from "@scm-manager/ui-types";
|
|
26
19
|
import { DateFromNow } from "@scm-manager/ui-components";
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
16
|
+
|
|
24
17
|
import React from "react";
|
|
25
18
|
import { Link } from "react-router-dom";
|
|
26
19
|
import { Icon } from "@scm-manager/ui-components";
|
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
24
16
|
|
|
25
17
|
import React, { FC } from "react";
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
16
|
+
|
|
24
17
|
import React, { FC, useState } from "react";
|
|
25
18
|
import { useTranslation } from "react-i18next";
|
|
26
19
|
import classNames from "classnames";
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
16
|
+
|
|
24
17
|
import React, { FC } from "react";
|
|
25
18
|
import styled from "styled-components";
|
|
26
19
|
// @ts-ignore we have no typings for react-diff-view
|
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
23
15
|
*/
|
|
24
16
|
|
|
25
17
|
import { storiesOf } from "@storybook/react";
|