@noldova/git.window 0.0.6 → 0.0.8
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 +34 -9
- package/src/api/index.d.ts +1593 -16
- package/src/api/index.js +33 -0
- package/src/api/index.js.map +1 -1
- package/src/app/components/git-account-dialog/git-account-dialog.component.js +29 -0
- package/src/app/components/git-account-dialog/git-account-dialog.component.js.map +1 -0
- package/src/app/components/git-accounts/git-accounts.component.js +44 -0
- package/src/app/components/git-accounts/git-accounts.component.js.map +1 -0
- package/src/app/components/git-agents/git-agents.component.js +54 -0
- package/src/app/components/git-agents/git-agents.component.js.map +1 -0
- package/src/app/components/git-branch-card/git-branch-card.component.js +6 -4
- package/src/app/components/git-branch-card/git-branch-card.component.js.map +1 -1
- package/src/app/components/git-branch-drop/git-branch-drop.component.js +84 -0
- package/src/app/components/git-branch-drop/git-branch-drop.component.js.map +1 -0
- package/src/app/components/git-bulk-branch-dialog/git-bulk-branch-dialog.component.js +38 -0
- package/src/app/components/git-bulk-branch-dialog/git-bulk-branch-dialog.component.js.map +1 -0
- package/src/app/components/git-bulk-push-dialog/git-bulk-push-dialog.component.js +34 -0
- package/src/app/components/git-bulk-push-dialog/git-bulk-push-dialog.component.js.map +1 -0
- package/src/app/components/git-command-log/git-command-log.component.js +91 -0
- package/src/app/components/git-command-log/git-command-log.component.js.map +1 -0
- package/src/app/components/git-commit-card/git-commit-card.component.js +41 -6
- package/src/app/components/git-commit-card/git-commit-card.component.js.map +1 -1
- package/src/app/components/git-commit-detail/git-commit-detail.component.js +263 -0
- package/src/app/components/git-commit-detail/git-commit-detail.component.js.map +1 -0
- package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js +27 -0
- package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js.map +1 -0
- package/src/app/components/git-conflict-detail/git-conflict-detail.component.js +26 -0
- package/src/app/components/git-conflict-detail/git-conflict-detail.component.js.map +1 -0
- package/src/app/components/git-conflicts/git-conflicts.component.js +251 -0
- package/src/app/components/git-conflicts/git-conflicts.component.js.map +1 -0
- package/src/app/components/git-diff-files/git-diff-files.component.js +178 -0
- package/src/app/components/git-diff-files/git-diff-files.component.js.map +1 -0
- package/src/app/components/git-discard-dialog/git-discard-dialog.component.js +29 -0
- package/src/app/components/git-discard-dialog/git-discard-dialog.component.js.map +1 -0
- package/src/app/components/git-file-group/git-file-group.component.js +78 -5
- package/src/app/components/git-file-group/git-file-group.component.js.map +1 -1
- package/src/app/components/git-file-layout-button/git-file-layout-button.component.js +23 -0
- package/src/app/components/git-file-layout-button/git-file-layout-button.component.js.map +1 -0
- package/src/app/components/git-force-push-dialog/git-force-push-dialog.component.js +30 -0
- package/src/app/components/git-force-push-dialog/git-force-push-dialog.component.js.map +1 -0
- package/src/app/components/git-history/git-history.component.js +480 -0
- package/src/app/components/git-history/git-history.component.js.map +1 -0
- package/src/app/components/git-host-row/git-host-row.component.js +3 -4
- package/src/app/components/git-host-row/git-host-row.component.js.map +1 -1
- package/src/app/components/git-person-avatar/git-person-avatar.component.js +44 -0
- package/src/app/components/git-person-avatar/git-person-avatar.component.js.map +1 -0
- package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js +118 -0
- package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js.map +1 -0
- package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js +123 -0
- package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js.map +1 -0
- package/src/app/components/git-pull-request-files/git-pull-request-files.component.js +228 -0
- package/src/app/components/git-pull-request-files/git-pull-request-files.component.js.map +1 -0
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +211 -0
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js.map +1 -0
- package/src/app/components/git-pull-requests/git-pull-requests.component.js +100 -0
- package/src/app/components/git-pull-requests/git-pull-requests.component.js.map +1 -0
- package/src/app/components/git-rebase/git-rebase.component.js +392 -0
- package/src/app/components/git-rebase/git-rebase.component.js.map +1 -0
- package/src/app/components/git-rebase-preview/git-rebase-preview.component.js +34 -0
- package/src/app/components/git-rebase-preview/git-rebase-preview.component.js.map +1 -0
- package/src/app/components/git-reference-text/git-reference-text.component.js +56 -0
- package/src/app/components/git-reference-text/git-reference-text.component.js.map +1 -0
- package/src/app/components/git-repository/git-repository.component.js +289 -0
- package/src/app/components/git-repository/git-repository.component.js.map +1 -0
- package/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.js +27 -0
- package/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.js.map +1 -0
- package/src/app/components/git-undo-menu/git-undo-menu.component.js +40 -0
- package/src/app/components/git-undo-menu/git-undo-menu.component.js.map +1 -0
- package/src/app/components/git-view/git-view.component.js +62 -10
- package/src/app/components/git-view/git-view.component.js.map +1 -1
- package/src/app/components/git-workspace/git-visible.directive.js +27 -0
- package/src/app/components/git-workspace/git-visible.directive.js.map +1 -0
- package/src/app/components/git-workspace/git-workspace.component.js +301 -0
- package/src/app/components/git-workspace/git-workspace.component.js.map +1 -0
- package/src/app/components/git-workspace-across/git-workspace-across.component.js +128 -0
- package/src/app/components/git-workspace-across/git-workspace-across.component.js.map +1 -0
- package/src/app/components/git-workspace-across-view/git-workspace-across-view.component.js +32 -0
- package/src/app/components/git-workspace-across-view/git-workspace-across-view.component.js.map +1 -0
- package/src/app/components/git-workspaces/git-workspaces.component.js +55 -0
- package/src/app/components/git-workspaces/git-workspaces.component.js.map +1 -0
- package/src/app/enums/git-agent-state.js +15 -0
- package/src/app/enums/git-agent-state.js.map +1 -0
- package/src/app/enums/git-file-layout.js +14 -0
- package/src/app/enums/git-file-layout.js.map +1 -0
- package/src/app/enums/git-history-action.js +19 -0
- package/src/app/enums/git-history-action.js.map +1 -0
- package/src/app/enums/git-host-card-state.js +15 -0
- package/src/app/enums/git-host-card-state.js.map +1 -0
- package/src/app/enums/git-host-feature.js +17 -0
- package/src/app/enums/git-host-feature.js.map +1 -0
- package/src/app/enums/git-pull-request-state.js +15 -0
- package/src/app/enums/git-pull-request-state.js.map +1 -0
- package/src/app/enums/git-pull-requests-state.js +15 -0
- package/src/app/enums/git-pull-requests-state.js.map +1 -0
- package/src/app/enums/git-resolved-by.js +16 -0
- package/src/app/enums/git-resolved-by.js.map +1 -0
- package/src/app/enums/git-workspace-view.js +15 -0
- package/src/app/enums/git-workspace-view.js.map +1 -0
- package/src/app/interfaces/i-git-agents.js +8 -0
- package/src/app/interfaces/i-git-agents.js.map +1 -0
- package/src/app/interfaces/i-git-avatars.js +8 -0
- package/src/app/interfaces/i-git-avatars.js.map +1 -0
- package/src/app/interfaces/i-git-commit-prefixes.js +8 -0
- package/src/app/interfaces/i-git-commit-prefixes.js.map +1 -0
- package/src/app/interfaces/i-git-host-account.js +8 -0
- package/src/app/interfaces/i-git-host-account.js.map +1 -0
- package/src/app/interfaces/i-git-link-references.js +8 -0
- package/src/app/interfaces/i-git-link-references.js.map +1 -0
- package/src/app/interfaces/i-git-pull-request-host.js +8 -0
- package/src/app/interfaces/i-git-pull-request-host.js.map +1 -0
- package/src/app/interfaces/i-git-pull-requests.js +8 -0
- package/src/app/interfaces/i-git-pull-requests.js.map +1 -0
- package/src/app/interfaces/i-git-repository-links.js +8 -0
- package/src/app/interfaces/i-git-repository-links.js.map +1 -0
- package/src/app/interfaces/i-git-workspace-across-page.js +8 -0
- package/src/app/interfaces/i-git-workspace-across-page.js.map +1 -0
- package/src/app/interfaces/i-provided-git-commit-prefixes.js +8 -0
- package/src/app/interfaces/i-provided-git-commit-prefixes.js.map +1 -0
- package/src/app/interfaces/i-provided-git-host-account.js +8 -0
- package/src/app/interfaces/i-provided-git-host-account.js.map +1 -0
- package/src/app/models/focus-place.js +16 -0
- package/src/app/models/focus-place.js.map +1 -0
- package/src/app/models/focus-survivor.js +16 -0
- package/src/app/models/focus-survivor.js.map +1 -0
- package/src/app/models/git-agent-row.js +20 -0
- package/src/app/models/git-agent-row.js.map +1 -0
- package/src/app/models/git-branch-drop.js +40 -0
- package/src/app/models/git-branch-drop.js.map +1 -0
- package/src/app/models/git-branch-menu-item.js +3 -2
- package/src/app/models/git-branch-menu-item.js.map +1 -1
- package/src/app/models/git-branch-pull-request.js +49 -0
- package/src/app/models/git-branch-pull-request.js.map +1 -0
- package/src/app/models/git-branch-row.js +24 -0
- package/src/app/models/git-branch-row.js.map +1 -0
- package/src/app/models/git-branch-tree-node.js +16 -0
- package/src/app/models/git-branch-tree-node.js.map +1 -0
- package/src/app/models/git-branch-view.js +27 -0
- package/src/app/models/git-branch-view.js.map +1 -0
- package/src/app/models/git-bulk-outcome.js +16 -0
- package/src/app/models/git-bulk-outcome.js.map +1 -0
- package/src/app/models/git-bulk-result.js +18 -0
- package/src/app/models/git-bulk-result.js.map +1 -0
- package/src/app/models/git-bulk-target.js +22 -0
- package/src/app/models/git-bulk-target.js.map +1 -0
- package/src/app/models/git-check-counts.js +19 -0
- package/src/app/models/git-check-counts.js.map +1 -0
- package/src/app/models/git-chip-drag.js +20 -0
- package/src/app/models/git-chip-drag.js.map +1 -0
- package/src/app/models/git-chip-split.js +16 -0
- package/src/app/models/git-chip-split.js.map +1 -0
- package/src/app/models/git-code-span.js +54 -0
- package/src/app/models/git-code-span.js.map +1 -0
- package/src/app/models/git-comments-link.js +16 -0
- package/src/app/models/git-comments-link.js.map +1 -0
- package/src/app/models/git-commit-comments.js +18 -0
- package/src/app/models/git-commit-comments.js.map +1 -0
- package/src/app/models/git-commit-file-row.js +28 -0
- package/src/app/models/git-commit-file-row.js.map +1 -0
- package/src/app/models/git-commit-pull-request.js +28 -0
- package/src/app/models/git-commit-pull-request.js.map +1 -0
- package/src/app/models/git-commit-view.js +16 -0
- package/src/app/models/git-commit-view.js.map +1 -0
- package/src/app/models/git-conflict-detail.js +20 -0
- package/src/app/models/git-conflict-detail.js.map +1 -0
- package/src/app/models/git-detail-front.js +16 -0
- package/src/app/models/git-detail-front.js.map +1 -0
- package/src/app/models/git-detail-page.js +16 -0
- package/src/app/models/git-detail-page.js.map +1 -0
- package/src/app/models/git-diff-row.js +19 -8
- package/src/app/models/git-diff-row.js.map +1 -1
- package/src/app/models/git-file-group.js +2 -1
- package/src/app/models/git-file-group.js.map +1 -1
- package/src/app/models/git-file-item.js +22 -0
- package/src/app/models/git-file-item.js.map +1 -0
- package/src/app/models/git-file-line.js +16 -0
- package/src/app/models/git-file-line.js.map +1 -0
- package/src/app/models/git-file-row.js +4 -3
- package/src/app/models/git-file-row.js.map +1 -1
- package/src/app/models/git-first-conflicts-read.js +16 -0
- package/src/app/models/git-first-conflicts-read.js.map +1 -0
- package/src/app/models/git-folder-page.js +16 -0
- package/src/app/models/git-folder-page.js.map +1 -0
- package/src/app/models/git-force-push-offer.js +25 -0
- package/src/app/models/git-force-push-offer.js.map +1 -0
- package/src/app/models/git-graph-line.js +22 -0
- package/src/app/models/git-graph-line.js.map +1 -0
- package/src/app/models/git-graph-row.js +26 -0
- package/src/app/models/git-graph-row.js.map +1 -0
- package/src/app/models/git-history-ask.js +16 -0
- package/src/app/models/git-history-ask.js.map +1 -0
- package/src/app/models/git-history-row.js +39 -0
- package/src/app/models/git-history-row.js.map +1 -0
- package/src/app/models/git-history-toolbar.js +16 -0
- package/src/app/models/git-history-toolbar.js.map +1 -0
- package/src/app/models/git-host-card.js +24 -0
- package/src/app/models/git-host-card.js.map +1 -0
- package/src/app/models/git-host-row-view.js +9 -0
- package/src/app/models/git-host-row-view.js.map +1 -0
- package/src/app/models/git-host-tally.js +16 -0
- package/src/app/models/git-host-tally.js.map +1 -0
- package/src/app/models/git-labeled-prediction.js +16 -0
- package/src/app/models/git-labeled-prediction.js.map +1 -0
- package/src/app/models/git-lane-target.js +16 -0
- package/src/app/models/git-lane-target.js.map +1 -0
- package/src/app/models/git-lane.js +21 -0
- package/src/app/models/git-lane.js.map +1 -0
- package/src/app/models/git-last-write.js +18 -0
- package/src/app/models/git-last-write.js.map +1 -0
- package/src/app/models/git-line-counts.js +20 -0
- package/src/app/models/git-line-counts.js.map +1 -0
- package/src/app/models/git-marked-line.js +19 -0
- package/src/app/models/git-marked-line.js.map +1 -0
- package/src/app/models/git-moving-folder.js +16 -0
- package/src/app/models/git-moving-folder.js.map +1 -0
- package/src/app/models/git-operation-name.js +17 -0
- package/src/app/models/git-operation-name.js.map +1 -0
- package/src/app/models/git-path-entry.js +20 -0
- package/src/app/models/git-path-entry.js.map +1 -0
- package/src/app/models/git-predicted-line.js +18 -0
- package/src/app/models/git-predicted-line.js.map +1 -0
- package/src/app/models/git-prediction-ask.js +16 -0
- package/src/app/models/git-prediction-ask.js.map +1 -0
- package/src/app/models/git-provided-pull-requests.js +16 -0
- package/src/app/models/git-provided-pull-requests.js.map +1 -0
- package/src/app/models/git-pull-request-list.js +33 -0
- package/src/app/models/git-pull-request-list.js.map +1 -0
- package/src/app/models/git-pull-request-read.js +16 -0
- package/src/app/models/git-pull-request-read.js.map +1 -0
- package/src/app/models/git-pull-request-row.js +34 -0
- package/src/app/models/git-pull-request-row.js.map +1 -0
- package/src/app/models/git-pull-request-stack.js +18 -0
- package/src/app/models/git-pull-request-stack.js.map +1 -0
- package/src/app/models/git-rebase-landing.js +16 -0
- package/src/app/models/git-rebase-landing.js.map +1 -0
- package/src/app/models/git-rebase-preview.js +38 -0
- package/src/app/models/git-rebase-preview.js.map +1 -0
- package/src/app/models/git-rebase-row-plan.js +16 -0
- package/src/app/models/git-rebase-row-plan.js.map +1 -0
- package/src/app/models/git-rebase-row.js +82 -0
- package/src/app/models/git-rebase-row.js.map +1 -0
- package/src/app/models/git-rebase-start.js +16 -0
- package/src/app/models/git-rebase-start.js.map +1 -0
- package/src/app/models/git-ref-chip.js +75 -0
- package/src/app/models/git-ref-chip.js.map +1 -0
- package/src/app/models/git-reference-part.js +45 -0
- package/src/app/models/git-reference-part.js.map +1 -0
- package/src/app/models/git-repository-link.js +25 -0
- package/src/app/models/git-repository-link.js.map +1 -0
- package/src/app/models/git-repository-summary.js +60 -0
- package/src/app/models/git-repository-summary.js.map +1 -0
- package/src/app/models/git-resolved-file.js +16 -0
- package/src/app/models/git-resolved-file.js.map +1 -0
- package/src/app/models/git-reviews-read.js +18 -0
- package/src/app/models/git-reviews-read.js.map +1 -0
- package/src/app/models/git-row-pull-request.js +16 -0
- package/src/app/models/git-row-pull-request.js.map +1 -0
- package/src/app/models/git-shared-branch.js +16 -0
- package/src/app/models/git-shared-branch.js.map +1 -0
- package/src/app/models/git-signing-read.js +16 -0
- package/src/app/models/git-signing-read.js.map +1 -0
- package/src/app/models/git-status-bar-items.js +18 -0
- package/src/app/models/git-status-bar-items.js.map +1 -0
- package/src/app/models/git-switch-target.js +16 -0
- package/src/app/models/git-switch-target.js.map +1 -0
- package/src/app/models/git-text-around.js +18 -0
- package/src/app/models/git-text-around.js.map +1 -0
- package/src/app/models/git-track-counts.js +17 -0
- package/src/app/models/git-track-counts.js.map +1 -0
- package/src/app/models/git-workspace-across.js +22 -0
- package/src/app/models/git-workspace-across.js.map +1 -0
- package/src/app/models/git-workspace-host.js +55 -0
- package/src/app/models/git-workspace-host.js.map +1 -0
- package/src/app/models/git-workspace-overview.js +96 -0
- package/src/app/models/git-workspace-overview.js.map +1 -0
- package/src/app/models/git-workspace-review.js +20 -0
- package/src/app/models/git-workspace-review.js.map +1 -0
- package/src/app/models/git-workspace-reviews.js +16 -0
- package/src/app/models/git-workspace-reviews.js.map +1 -0
- package/src/app/models/git-workspace-row.js +185 -0
- package/src/app/models/git-workspace-row.js.map +1 -0
- package/src/app/models/git-workspace-run.js +23 -0
- package/src/app/models/git-workspace-run.js.map +1 -0
- package/src/app/models/git-workspace-side.js +25 -0
- package/src/app/models/git-workspace-side.js.map +1 -0
- package/src/app/models/git-workspace-view-count.js +16 -0
- package/src/app/models/git-workspace-view-count.js.map +1 -0
- package/src/app/models/git-workspace-view-label.js +16 -0
- package/src/app/models/git-workspace-view-label.js.map +1 -0
- package/src/app/models/git-workspace.js +47 -0
- package/src/app/models/git-workspace.js.map +1 -0
- package/src/app/models/thread-line.js +18 -0
- package/src/app/models/thread-line.js.map +1 -0
- package/src/app/services/commit-labels.js +44 -0
- package/src/app/services/commit-labels.js.map +1 -0
- package/src/app/services/focus-keeper.js +76 -0
- package/src/app/services/focus-keeper.js.map +1 -0
- package/src/app/services/git-agents.js +18 -0
- package/src/app/services/git-agents.js.map +1 -0
- package/src/app/services/git-avatars.js +34 -0
- package/src/app/services/git-avatars.js.map +1 -0
- package/src/app/services/git-branch-tree.js +50 -0
- package/src/app/services/git-branch-tree.js.map +1 -0
- package/src/app/services/git-code-colors.js +56 -0
- package/src/app/services/git-code-colors.js.map +1 -0
- package/src/app/services/git-command-logs.js +33 -0
- package/src/app/services/git-command-logs.js.map +1 -0
- package/src/app/services/git-commit-details.js +22 -0
- package/src/app/services/git-commit-details.js.map +1 -0
- package/src/app/services/git-commit-files.js +35 -0
- package/src/app/services/git-commit-files.js.map +1 -0
- package/src/app/services/git-commit-prefixes.js +32 -0
- package/src/app/services/git-commit-prefixes.js.map +1 -0
- package/src/app/services/git-conflict-details.js +22 -0
- package/src/app/services/git-conflict-details.js.map +1 -0
- package/src/app/services/git-counts.js +17 -0
- package/src/app/services/git-counts.js.map +1 -0
- package/src/app/services/git-detail-view.js +81 -0
- package/src/app/services/git-detail-view.js.map +1 -0
- package/src/app/services/git-file-tree.js +19 -0
- package/src/app/services/git-file-tree.js.map +1 -0
- package/src/app/services/git-folder.js +32 -6
- package/src/app/services/git-folder.js.map +1 -1
- package/src/app/services/git-graph-layout.js +80 -0
- package/src/app/services/git-graph-layout.js.map +1 -0
- package/src/app/services/git-gravatars.js +30 -0
- package/src/app/services/git-gravatars.js.map +1 -0
- package/src/app/services/git-history-asks.js +26 -0
- package/src/app/services/git-history-asks.js.map +1 -0
- package/src/app/services/git-history-rows.js +48 -0
- package/src/app/services/git-history-rows.js.map +1 -0
- package/src/app/services/git-history-selection.js +17 -0
- package/src/app/services/git-history-selection.js.map +1 -0
- package/src/app/services/git-host-accounts.js +33 -0
- package/src/app/services/git-host-accounts.js.map +1 -0
- package/src/app/services/git-last-write-undo.js +99 -0
- package/src/app/services/git-last-write-undo.js.map +1 -0
- package/src/app/services/git-link-reference-set.js +33 -0
- package/src/app/services/git-link-reference-set.js.map +1 -0
- package/src/app/services/git-link-references.js +31 -0
- package/src/app/services/git-link-references.js.map +1 -0
- package/src/app/services/git-new-branch.js +21 -0
- package/src/app/services/git-new-branch.js.map +1 -0
- package/src/app/services/git-path-layout.js +77 -0
- package/src/app/services/git-path-layout.js.map +1 -0
- package/src/app/services/git-pending-switch.js +30 -0
- package/src/app/services/git-pending-switch.js.map +1 -0
- package/src/app/services/git-pull-requests.js +43 -0
- package/src/app/services/git-pull-requests.js.map +1 -0
- package/src/app/services/git-rebase-previews.js +22 -0
- package/src/app/services/git-rebase-previews.js.map +1 -0
- package/src/app/services/git-rebasing.js +48 -0
- package/src/app/services/git-rebasing.js.map +1 -0
- package/src/app/services/git-recent-repositories.js +35 -0
- package/src/app/services/git-recent-repositories.js.map +1 -0
- package/src/app/services/git-repository-links.js +20 -0
- package/src/app/services/git-repository-links.js.map +1 -0
- package/src/app/services/git-repository-summaries.js +146 -0
- package/src/app/services/git-repository-summaries.js.map +1 -0
- package/src/app/services/git-resolving.js +32 -0
- package/src/app/services/git-resolving.js.map +1 -0
- package/src/app/services/git-runtime-client.js +112 -1
- package/src/app/services/git-runtime-client.js.map +1 -1
- package/src/app/services/git-status-bar.js +81 -0
- package/src/app/services/git-status-bar.js.map +1 -0
- package/src/app/services/git-status-follower.js +78 -0
- package/src/app/services/git-status-follower.js.map +1 -0
- package/src/app/services/git-view-options.js +15 -0
- package/src/app/services/git-view-options.js.map +1 -0
- package/src/app/services/git-view-state.service.js +232 -17
- package/src/app/services/git-view-state.service.js.map +1 -1
- package/src/app/services/git-viewing.js +31 -0
- package/src/app/services/git-viewing.js.map +1 -0
- package/src/app/services/git-window-part.js +93 -4
- package/src/app/services/git-window-part.js.map +1 -1
- package/src/app/services/git-window-storage.js +27 -0
- package/src/app/services/git-window-storage.js.map +1 -0
- package/src/app/services/git-workspace-across-views.js +22 -0
- package/src/app/services/git-workspace-across-views.js.map +1 -0
- package/src/app/services/git-workspace-bulk.js +81 -0
- package/src/app/services/git-workspace-bulk.js.map +1 -0
- package/src/app/services/git-workspace-pages.js +25 -0
- package/src/app/services/git-workspace-pages.js.map +1 -0
- package/src/app/services/git-workspace-pull-requests.js +199 -0
- package/src/app/services/git-workspace-pull-requests.js.map +1 -0
- package/src/app/services/git-workspace-sides.js +22 -0
- package/src/app/services/git-workspace-sides.js.map +1 -0
- package/src/app/services/git-workspaces.js +58 -0
- package/src/app/services/git-workspaces.js.map +1 -0
- package/src/resources.js +1153 -13
- package/src/resources.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-host-row.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-host-row/git-host-row.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-host-row/git-host-row.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"git-host-row.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-host-row/git-host-row.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-host-row/git-host-row.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAiC,MAAM,eAAe,CAAC;AAC5G,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAkC,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxF,O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AAO,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAChJ,CAAC;kFAAC,CAAC;IAEa,MAAM,GAA2B,KAAK,CAAC,QAAQ;+EAAa,CAAC;IAC7D,MAAM,GAA2B,KAAK,CAAC,QAAQ;+EAAa,CAAC;IAC7D,MAAM,GAAwB,KAAK,CAAC,QAAQ;+EAAU,CAAC;IAE/D,MAAM,CAAC,WAAW,CAAC,SAA0B;QACnD,QAAQ,SAAS,EAAE,CAAC;YAClB,KAAK,eAAe,CAAC,GAAG;gBACtB,OAAO,SAAS,CAAC,GAAG,CAAC;YACvB,KAAK,eAAe,CAAC,KAAK;gBACxB,OAAO,SAAS,CAAC,KAAK,CAAC;YACzB,KAAK,eAAe,CAAC,IAAI;gBACvB,OAAO,SAAS,CAAC,QAAQ,CAAC;YAC5B;gBACE,OAAO,SAAS,CAAC,cAAc,CAAC;QACpC,CAAC;IACH,CAAC;uGAlCU,mBAAmB;2FAAnB,mBAAmB,scCzBhC,ufAgBA,0tBDKY,iBAAiB;;2FAIhB,mBAAmB;kBAN/B,SAAS;+BACE,kBAAkB,WACnB,CAAC,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Component, computed, DestroyRef, ElementRef, inject, input, signal } from "@angular/core";
|
|
9
|
+
import { AvatarComponent, AvatarSize } from "@noldova/ui.components.angular";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export class GitPersonAvatarComponent {
|
|
12
|
+
isSeen = signal(false, /* @ts-ignore */
|
|
13
|
+
...(ngDevMode ? [{ debugName: "isSeen" }] : /* istanbul ignore next */ []));
|
|
14
|
+
shown = computed(() => this.image()
|
|
15
|
+
?? (this.isSeen() ? this.host().personAvatarOf(this.reference(), this.login()) ?? null : null), /* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
|
|
17
|
+
host = input.required(/* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "host" }] : /* istanbul ignore next */ []));
|
|
19
|
+
reference = input.required(/* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "reference" }] : /* istanbul ignore next */ []));
|
|
21
|
+
login = input.required(/* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "login" }] : /* istanbul ignore next */ []));
|
|
23
|
+
image = input(null, /* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "image" }] : /* istanbul ignore next */ []));
|
|
25
|
+
size = input(AvatarSize.Normal, /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
27
|
+
constructor() {
|
|
28
|
+
const observer = new IntersectionObserver(entries => {
|
|
29
|
+
if (!entries.some(t => t.isIntersecting))
|
|
30
|
+
return;
|
|
31
|
+
observer.disconnect();
|
|
32
|
+
this.isSeen.set(true);
|
|
33
|
+
});
|
|
34
|
+
observer.observe(inject(ElementRef).nativeElement);
|
|
35
|
+
inject(DestroyRef).onDestroy(() => observer.disconnect());
|
|
36
|
+
}
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPersonAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: GitPersonAvatarComponent, isStandalone: true, selector: "nol-git-person-avatar", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, login: { classPropertyName: "login", publicName: "login", isSignal: true, isRequired: true, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-avatar [name]=\"login()\" [image]=\"shown()\" [size]=\"size()\" [decorative]=\"true\" />\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: inline-flex;\n flex: none;\n}\n"], dependencies: [{ kind: "component", type: AvatarComponent, selector: "nol-avatar", inputs: ["name", "image", "initials", "color", "colorKey", "size", "label", "decorative", "unavailable", "filled", "filledColor"] }] });
|
|
39
|
+
}
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPersonAvatarComponent, decorators: [{
|
|
41
|
+
type: Component,
|
|
42
|
+
args: [{ selector: "nol-git-person-avatar", imports: [AvatarComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-avatar [name]=\"login()\" [image]=\"shown()\" [size]=\"size()\" [decorative]=\"true\" />\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: inline-flex;\n flex: none;\n}\n"] }]
|
|
43
|
+
}], ctorParameters: () => [], propDecorators: { host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], login: [{ type: i0.Input, args: [{ isSignal: true, alias: "login", required: true }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
44
|
+
//# sourceMappingURL=git-person-avatar.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-person-avatar.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-person-avatar/git-person-avatar.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-person-avatar/git-person-avatar.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAiC,MAAM,EAAuB,MAAM,eAAe,CAAC;AAEvJ,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;;AAU7E,MAAM,OAAO,wBAAwB;IAClB,MAAM,GAA4B,MAAM,CAAU,KAAK;+EAAC,CAAC;IAEvD,KAAK,GAA0B,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE;WACxE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;8EAAC,CAAC;IAElF,IAAI,GAAqC,KAAK,CAAC,QAAQ;6EAAuB,CAAC;IAC/E,SAAS,GAA+B,KAAK,CAAC,QAAQ;kFAAiB,CAAC;IACxE,KAAK,GAAwB,KAAK,CAAC,QAAQ;8EAAU,CAAC;IACtD,KAAK,GAA+B,KAAK,CAAgB,IAAI;8EAAC,CAAC;IAC/D,IAAI,GAA4B,KAAK,CAAa,UAAU,CAAC,MAAM;6EAAC,CAAC;IAErF;QACE,MAAM,QAAQ,GAAyB,IAAI,oBAAoB,CAAC,OAAO,CAAC,EAAE;YACxE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC;gBACtC,OAAO;YACT,QAAQ,CAAC,UAAU,EAAE,CAAC;YACtB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;QACH,QAAQ,CAAC,OAAO,CAAC,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa,CAAC,CAAC;QAC5E,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;IAC5D,CAAC;uGArBU,wBAAwB;2FAAxB,wBAAwB,wrBCpBrC,wQASA,kSDSY,eAAe;;2FAEd,wBAAwB;kBANpC,SAAS;+BACE,uBAAuB,WAGxB,CAAC,eAAe,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Component, effect, inject, input, output, PendingTasks, signal, untracked } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { WindowException, WindowPartTokens } from "@noldova/desktop.window";
|
|
11
|
+
import { HostPullRequestCommits } from "@noldova/git.hosting.protocol";
|
|
12
|
+
import { ButtonComponent, ButtonVariant, SpinnerComponent } from "@noldova/ui.components.angular";
|
|
13
|
+
import { GitFolder } from "../../services/git-folder.js";
|
|
14
|
+
import { GitHistorySelection } from "../../services/git-history-selection.js";
|
|
15
|
+
import { Resources } from "../../../resources.js";
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export class GitPullRequestCommitsComponent {
|
|
18
|
+
context = inject(WindowPartTokens.context);
|
|
19
|
+
tasks = inject(PendingTasks);
|
|
20
|
+
attempt = signal(0, /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "attempt" }] : /* istanbul ignore next */ []));
|
|
22
|
+
dates = new Intl.DateTimeFormat(undefined, Resources.pullRequestCommitDateFormat);
|
|
23
|
+
resources = Resources;
|
|
24
|
+
secondary = ButtonVariant.Secondary;
|
|
25
|
+
list = signal(null, /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
|
|
27
|
+
folder = signal(null, /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
|
|
29
|
+
failure = signal(null, /* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
|
|
31
|
+
isReading = signal(true, /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "isReading" }] : /* istanbul ignore next */ []));
|
|
33
|
+
host = input.required(/* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "host" }] : /* istanbul ignore next */ []));
|
|
35
|
+
reference = input.required(/* @ts-ignore */
|
|
36
|
+
...(ngDevMode ? [{ debugName: "reference" }] : /* istanbul ignore next */ []));
|
|
37
|
+
url = input.required(/* @ts-ignore */
|
|
38
|
+
...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
|
|
39
|
+
counted = output();
|
|
40
|
+
constructor() {
|
|
41
|
+
effect(onCleanup => {
|
|
42
|
+
this.attempt();
|
|
43
|
+
GitFolder.folder();
|
|
44
|
+
const reference = this.reference();
|
|
45
|
+
let isCurrent = true;
|
|
46
|
+
onCleanup(() => {
|
|
47
|
+
isCurrent = false;
|
|
48
|
+
});
|
|
49
|
+
untracked(() => {
|
|
50
|
+
this.list.set(null);
|
|
51
|
+
this.folder.set(null);
|
|
52
|
+
this.failure.set(null);
|
|
53
|
+
this.isReading.set(true);
|
|
54
|
+
void this.readAsync(reference, () => isCurrent);
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
retry() {
|
|
59
|
+
this.attempt.update(t => t + 1);
|
|
60
|
+
}
|
|
61
|
+
shortOf(commit) {
|
|
62
|
+
return commit.id.slice(0, Resources.shortIdLength);
|
|
63
|
+
}
|
|
64
|
+
ageOf(commit) {
|
|
65
|
+
return Resources.formatPullRequestCommitAge(Date.now() - commit.authoredAt) ?? this.dates.format(commit.authoredAt);
|
|
66
|
+
}
|
|
67
|
+
open(commit) {
|
|
68
|
+
void this.openAsync(commit);
|
|
69
|
+
}
|
|
70
|
+
async openAsync(commit) {
|
|
71
|
+
const folder = this.folder();
|
|
72
|
+
const url = this.host().commitPageOf(this.url(), commit.id);
|
|
73
|
+
try {
|
|
74
|
+
if (Object.isNull(folder))
|
|
75
|
+
await this.context.openLinkAsync(url);
|
|
76
|
+
else
|
|
77
|
+
await GitHistorySelection.selectAsync(this.context, folder, commit.id);
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
if (!(error instanceof WindowException))
|
|
81
|
+
throw error;
|
|
82
|
+
this.context.log(Object.isNull(folder) ? Resources.formatHostLinkFailed(this.host().name, url, String(error))
|
|
83
|
+
: Resources.formatHostRequestFailed(this.host().name, Resources.openHistoryCommand, String(error)));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
async readAsync(reference, isCurrent) {
|
|
87
|
+
const done = this.tasks.add();
|
|
88
|
+
try {
|
|
89
|
+
const [answer, folder] = await Promise.all([this.context.requestAsync(this.host().readCommitsMethod, reference.toJson()),
|
|
90
|
+
this.host().localFolderAsync(this.url())]);
|
|
91
|
+
const list = HostPullRequestCommits.fromJson(answer);
|
|
92
|
+
if (isCurrent()) {
|
|
93
|
+
this.list.set(list);
|
|
94
|
+
this.folder.set(folder);
|
|
95
|
+
this.counted.emit(`${list.commits.length}${list.hasMore ? Resources.pullRequestMoreMark : ""}`);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
catch (error) {
|
|
99
|
+
if (!(error instanceof WindowException))
|
|
100
|
+
throw error;
|
|
101
|
+
this.context.log(Resources.formatHostRequestFailed(this.host().name, this.host().readCommitsMethod, String(error)));
|
|
102
|
+
if (isCurrent())
|
|
103
|
+
this.failure.set(Resources.formatPullRequestCommitsUnanswered(this.host().name));
|
|
104
|
+
}
|
|
105
|
+
finally {
|
|
106
|
+
if (isCurrent())
|
|
107
|
+
this.isReading.set(false);
|
|
108
|
+
done();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestCommitsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
112
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestCommitsComponent, isStandalone: true, selector: "nol-git-pull-request-commits", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { counted: "counted" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestCommitsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestCommitsLabel\">\n @for (commit of list.commits; track $index) {\n <button type=\"button\" class=\"row\" (click)=\"open(commit)\">\n <span class=\"sha\">{{ shortOf(commit) }}</span>\n <span class=\"subject\">{{ commit.subject }}</span>\n <span class=\"byline\">{{ commit.author }} \u00B7 {{ ageOf(commit) }}</span>\n </button>\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoCommits }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestCommitsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.row:hover {\n background-color: var(--nol-hover);\n}\n\n.sha {\n flex: none;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n}\n\n.subject {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.byline {\n flex: none;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
113
|
+
}
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestCommitsComponent, decorators: [{
|
|
115
|
+
type: Component,
|
|
116
|
+
args: [{ selector: "nol-git-pull-request-commits", imports: [ButtonComponent, SpinnerComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestCommitsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestCommitsLabel\">\n @for (commit of list.commits; track $index) {\n <button type=\"button\" class=\"row\" (click)=\"open(commit)\">\n <span class=\"sha\">{{ shortOf(commit) }}</span>\n <span class=\"subject\">{{ commit.subject }}</span>\n <span class=\"byline\">{{ commit.author }} \u00B7 {{ ageOf(commit) }}</span>\n </button>\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoCommits }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestCommitsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.row:hover {\n background-color: var(--nol-hover);\n}\n\n.sha {\n flex: none;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n}\n\n.subject {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.byline {\n flex: none;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"] }]
|
|
117
|
+
}], ctorParameters: () => [], propDecorators: { host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: true }] }], counted: [{ type: i0.Output, args: ["counted"] }] } });
|
|
118
|
+
//# sourceMappingURL=git-pull-request-commits.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-pull-request-commits.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-commits/git-pull-request-commits.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-commits/git-pull-request-commits.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAyB,YAAY,EAAE,MAAM,EAAE,SAAS,EAAuB,MAAM,eAAe,CAAC;AACxK,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAA8B,sBAAsB,EAAsB,MAAM,+BAA+B,CAAC;AACvH,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlG,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;;AAQlD,MAAM,OAAO,8BAA8B;IACxB,OAAO,GAAuB,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/D,KAAK,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IAC3C,OAAO,GAA2B,MAAM,CAAS,CAAC;gFAAC,CAAC;IACpD,KAAK,GAAwB,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,SAAS,CAAC,2BAA2B,CAAC,CAAC;IAErG,SAAS,GAAqB,SAAS,CAAC;IACxC,SAAS,GAAkB,aAAa,CAAC,SAAS,CAAC;IACnD,IAAI,GAAkD,MAAM,CAAgC,IAAI;6EAAC,CAAC;IAClG,MAAM,GAAkC,MAAM,CAAgB,IAAI;+EAAC,CAAC;IACpE,OAAO,GAAkC,MAAM,CAAgB,IAAI;gFAAC,CAAC;IACrE,SAAS,GAA4B,MAAM,CAAU,IAAI;kFAAC,CAAC;IAE9D,IAAI,G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CAAC;QACrF,CAAC;gBACO,CAAC;YACP,IAAI,SAAS,EAAE;gBACb,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,EAAE,CAAC;QACT,CAAC;IACH,CAAC;uGAjGU,8BAA8B;2FAA9B,8BAA8B,6eCzB3C,q4CAmCA,wqDDZY,eAAe,oJAAE,gBAAgB;;2FAEhC,8BAA8B;kBAN1C,SAAS;+BACE,8BAA8B,WAG/B,CAAC,eAAe,EAAE,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Component, effect, inject, input, output, PendingTasks, signal, untracked } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { WindowException, WindowPartTokens } from "@noldova/desktop.window";
|
|
11
|
+
import { HostPullRequestConflicts } from "@noldova/git.hosting.protocol";
|
|
12
|
+
import { GitFolderParams, GitNames, GitStatus, OperationKind } from "@noldova/git.protocol";
|
|
13
|
+
import { ButtonComponent, ButtonVariant, SpinnerComponent } from "@noldova/ui.components.angular";
|
|
14
|
+
import { GitFolder } from "../../services/git-folder.js";
|
|
15
|
+
import { Resources } from "../../../resources.js";
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export class GitPullRequestConflictsComponent {
|
|
18
|
+
context = inject(WindowPartTokens.context);
|
|
19
|
+
tasks = inject(PendingTasks);
|
|
20
|
+
attempt = signal(0, /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "attempt" }] : /* istanbul ignore next */ []));
|
|
22
|
+
resources = Resources;
|
|
23
|
+
secondary = ButtonVariant.Secondary;
|
|
24
|
+
list = signal(null, /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
|
|
26
|
+
folder = signal(null, /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
|
|
28
|
+
failure = signal(null, /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
|
|
30
|
+
isReading = signal(true, /* @ts-ignore */
|
|
31
|
+
...(ngDevMode ? [{ debugName: "isReading" }] : /* istanbul ignore next */ []));
|
|
32
|
+
host = input.required(/* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "host" }] : /* istanbul ignore next */ []));
|
|
34
|
+
reference = input.required(/* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "reference" }] : /* istanbul ignore next */ []));
|
|
36
|
+
url = input.required(/* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
|
|
38
|
+
changes = input.required(/* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "changes" }] : /* istanbul ignore next */ []));
|
|
40
|
+
counted = output();
|
|
41
|
+
constructor() {
|
|
42
|
+
effect(onCleanup => {
|
|
43
|
+
this.attempt();
|
|
44
|
+
GitFolder.folder();
|
|
45
|
+
const reference = this.reference();
|
|
46
|
+
let isCurrent = true;
|
|
47
|
+
onCleanup(() => {
|
|
48
|
+
isCurrent = false;
|
|
49
|
+
});
|
|
50
|
+
untracked(() => {
|
|
51
|
+
this.list.set(null);
|
|
52
|
+
this.folder.set(null);
|
|
53
|
+
this.failure.set(null);
|
|
54
|
+
this.isReading.set(true);
|
|
55
|
+
void this.readAsync(reference, () => isCurrent);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
retry() {
|
|
60
|
+
this.attempt.update(t => t + 1);
|
|
61
|
+
}
|
|
62
|
+
open(folder) {
|
|
63
|
+
void this.openAsync(folder);
|
|
64
|
+
}
|
|
65
|
+
async openAsync(folder) {
|
|
66
|
+
try {
|
|
67
|
+
await this.context.runCommandAsync(Resources.openConflictsCommand, new GitFolderParams(folder).toJson());
|
|
68
|
+
}
|
|
69
|
+
catch (error) {
|
|
70
|
+
if (!(error instanceof WindowException))
|
|
71
|
+
throw error;
|
|
72
|
+
this.context.log(Resources.formatHostRequestFailed(this.host().name, Resources.openConflictsCommand, String(error)));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
async readAsync(reference, isCurrent) {
|
|
76
|
+
const done = this.tasks.add();
|
|
77
|
+
try {
|
|
78
|
+
const [answer, folder] = await Promise.all([this.context.requestAsync(this.host().readConflictsMethod, reference.toJson()),
|
|
79
|
+
this.host().localFolderAsync(this.url())]);
|
|
80
|
+
const list = HostPullRequestConflicts.fromJson(answer);
|
|
81
|
+
const merging = Object.isNull(folder) || list.paths.length === 0 ? null : await this.mergingFolderAsync(folder);
|
|
82
|
+
if (!isCurrent())
|
|
83
|
+
return;
|
|
84
|
+
this.list.set(list);
|
|
85
|
+
this.folder.set(merging);
|
|
86
|
+
this.counted.emit(`${list.paths.length}${list.hasMore ? Resources.pullRequestMoreMark : ""}`);
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
if (!(error instanceof WindowException))
|
|
90
|
+
throw error;
|
|
91
|
+
this.context.log(Resources.formatHostRequestFailed(this.host().name, this.host().readConflictsMethod, String(error)));
|
|
92
|
+
if (isCurrent())
|
|
93
|
+
this.failure.set(Resources.formatPullRequestConflictsUnanswered(this.host().name));
|
|
94
|
+
}
|
|
95
|
+
finally {
|
|
96
|
+
if (isCurrent())
|
|
97
|
+
this.isReading.set(false);
|
|
98
|
+
done();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
async mergingFolderAsync(folder) {
|
|
102
|
+
const changes = this.changes();
|
|
103
|
+
try {
|
|
104
|
+
const status = GitStatus.fromJson(await this.context.requestAsync(GitNames.statusMethod, new GitFolderParams(folder).toJson()));
|
|
105
|
+
const isMerging = status.operation?.kind === OperationKind.Merge && !Object.isNull(status.branch)
|
|
106
|
+
&& [changes?.headBranch, changes?.baseBranch].includes(status.branch);
|
|
107
|
+
return isMerging ? folder : null;
|
|
108
|
+
}
|
|
109
|
+
catch (error) {
|
|
110
|
+
if (!(error instanceof WindowException))
|
|
111
|
+
throw error;
|
|
112
|
+
this.context.log(Resources.formatHostRequestFailed(this.host().name, GitNames.statusMethod, String(error)));
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestConflictsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
117
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestConflictsComponent, isStandalone: true, selector: "nol-git-pull-request-conflicts", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, changes: { classPropertyName: "changes", publicName: "changes", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { counted: "counted" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestConflictsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestConflictsLabel\">\n @for (path of list.paths; track $index) {\n @if (folder(); as folder) {\n <button type=\"button\" class=\"row\" [title]=\"path\" [attr.aria-label]=\"resources.formatOpenPullRequestConflict(path)\" (click)=\"open(folder)\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </button>\n } @else {\n <div class=\"row\" [title]=\"path\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </div>\n }\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoConflicts }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestConflictsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\nbutton.row:hover {\n background-color: var(--nol-hover);\n}\n\n.icon {\n flex: none;\n color: var(--nol-status-failed);\n font-size: var(--nol-icon);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
118
|
+
}
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestConflictsComponent, decorators: [{
|
|
120
|
+
type: Component,
|
|
121
|
+
args: [{ selector: "nol-git-pull-request-conflicts", imports: [ButtonComponent, SpinnerComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestConflictsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestConflictsLabel\">\n @for (path of list.paths; track $index) {\n @if (folder(); as folder) {\n <button type=\"button\" class=\"row\" [title]=\"path\" [attr.aria-label]=\"resources.formatOpenPullRequestConflict(path)\" (click)=\"open(folder)\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </button>\n } @else {\n <div class=\"row\" [title]=\"path\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </div>\n }\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoConflicts }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestConflictsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\nbutton.row:hover {\n background-color: var(--nol-hover);\n}\n\n.icon {\n flex: none;\n color: var(--nol-status-failed);\n font-size: var(--nol-icon);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"] }]
|
|
122
|
+
}], ctorParameters: () => [], propDecorators: { host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: true }] }], changes: [{ type: i0.Input, args: [{ isSignal: true, alias: "changes", required: true }] }], counted: [{ type: i0.Output, args: ["counted"] }] } });
|
|
123
|
+
//# sourceMappingURL=git-pull-request-conflicts.component.js.map
|
package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-pull-request-conflicts.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAyB,YAAY,EAAE,MAAM,EAAE,SAAS,EAAuB,MAAM,eAAe,CAAC;AACxK,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAAoB,wBAAwB,EAAsB,MAAM,+BAA+B,CAAC;AAC/G,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlG,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;;AAQlD,MAAM,OAAO,gCAAgC;IAC1B,OAAO,GAAuB,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/D,KAAK,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IAC3C,OAAO,GAA2B,MAAM,CAAS,CAAC;gFAAC,CAAC;IAElD,SAAS,GAA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AI,CAAC;YACH,MAAM,MAAM,GAAc,SAAS,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;YAC3I,MAAM,SAAS,GAAY,MAAM,CAAC,SAAS,EAAE,IAAI,KAAK,aAAa,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;mBACrG,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACxE,OAAO,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACnC,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,CAAC,KAAK,YAAY,eAAe,CAAC;gBACrC,MAAM,KAAK,CAAC;YACd,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC5G,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;uGArGU,gCAAgC;2FAAhC,gCAAgC,4mBCzB7C,gsDAuCA,slDDhBY,eAAe,oJAAE,gBAAgB;;2FAEhC,gCAAgC;kBAN5C,SAAS;+BACE,gCAAgC,WAGjC,CAAC,eAAe,EAAE,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { afterRenderEffect, Component, computed, DestroyRef, effect, inject, input, output, PendingTasks, signal, untracked, viewChild } from "@angular/core";
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { WindowException, WindowPartTokens } from "@noldova/desktop.window";
|
|
11
|
+
import { HostPullRequestFiles } from "@noldova/git.hosting.protocol";
|
|
12
|
+
import { DiffScope, DiffScopeKind, DiffTotals, GitCommitDetailParams, GitDiffParams, GitFetchParams, GitFolderParams, GitNames, GitStatus } from "@noldova/git.protocol";
|
|
13
|
+
import { ButtonComponent, ButtonVariant, FileBadgeComponent, SpinnerComponent } from "@noldova/ui.components.angular";
|
|
14
|
+
import { GitFileLayout } from "../../enums/git-file-layout.js";
|
|
15
|
+
import { GitFolder } from "../../services/git-folder.js";
|
|
16
|
+
import { GitPathLayout } from "../../services/git-path-layout.js";
|
|
17
|
+
import { GitRuntimeClient } from "../../services/git-runtime-client.js";
|
|
18
|
+
import { Resources } from "../../../resources.js";
|
|
19
|
+
import { GitDiffFilesComponent } from "../git-diff-files/git-diff-files.component.js";
|
|
20
|
+
import { GitFileLayoutButtonComponent } from "../git-file-layout-button/git-file-layout-button.component.js";
|
|
21
|
+
import * as i0 from "@angular/core";
|
|
22
|
+
export class GitPullRequestFilesComponent {
|
|
23
|
+
context = inject(WindowPartTokens.context);
|
|
24
|
+
tasks = inject(PendingTasks);
|
|
25
|
+
client = new GitRuntimeClient(this.context);
|
|
26
|
+
attempt = signal(0, /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "attempt" }] : /* istanbul ignore next */ []));
|
|
28
|
+
diffFiles = viewChild(GitDiffFilesComponent, /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "diffFiles" }] : /* istanbul ignore next */ []));
|
|
30
|
+
isFirstRead = true;
|
|
31
|
+
revealed = null;
|
|
32
|
+
resources = Resources;
|
|
33
|
+
secondary = ButtonVariant.Secondary;
|
|
34
|
+
list = signal(null, /* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
|
|
36
|
+
folder = signal(null, /* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
|
|
38
|
+
scope = signal(null, /* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "scope" }] : /* istanbul ignore next */ []));
|
|
40
|
+
failure = signal(null, /* @ts-ignore */
|
|
41
|
+
...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
|
|
42
|
+
isReading = signal(true, /* @ts-ignore */
|
|
43
|
+
...(ngDevMode ? [{ debugName: "isReading" }] : /* istanbul ignore next */ []));
|
|
44
|
+
isFetching = signal(false, /* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [{ debugName: "isFetching" }] : /* istanbul ignore next */ []));
|
|
46
|
+
fetchFailure = signal(null, /* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [{ debugName: "fetchFailure" }] : /* istanbul ignore next */ []));
|
|
48
|
+
layout = signal(GitFileLayout.Folders, /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
50
|
+
closed = signal(new Set(), /* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [{ debugName: "closed" }] : /* istanbul ignore next */ []));
|
|
52
|
+
files = signal([], /* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []));
|
|
54
|
+
rows = computed(() => GitPathLayout.layout(this.files(), t => t.path, this.layout(), this.closed()), /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
56
|
+
host = input.required(/* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [{ debugName: "host" }] : /* istanbul ignore next */ []));
|
|
58
|
+
reference = input.required(/* @ts-ignore */
|
|
59
|
+
...(ngDevMode ? [{ debugName: "reference" }] : /* istanbul ignore next */ []));
|
|
60
|
+
url = input.required(/* @ts-ignore */
|
|
61
|
+
...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
|
|
62
|
+
answer = input(null, /* @ts-ignore */
|
|
63
|
+
...(ngDevMode ? [{ debugName: "answer" }] : /* istanbul ignore next */ []));
|
|
64
|
+
reveal = input(null, /* @ts-ignore */
|
|
65
|
+
...(ngDevMode ? [{ debugName: "reveal" }] : /* istanbul ignore next */ []));
|
|
66
|
+
counted = output();
|
|
67
|
+
unrevealed = output();
|
|
68
|
+
constructor() {
|
|
69
|
+
effect(onCleanup => {
|
|
70
|
+
this.attempt();
|
|
71
|
+
GitFolder.folder();
|
|
72
|
+
const reference = this.reference();
|
|
73
|
+
let isCurrent = true;
|
|
74
|
+
onCleanup(() => {
|
|
75
|
+
isCurrent = false;
|
|
76
|
+
});
|
|
77
|
+
untracked(() => {
|
|
78
|
+
const given = this.isFirstRead ? this.answer() : null;
|
|
79
|
+
this.isFirstRead = false;
|
|
80
|
+
this.list.set(null);
|
|
81
|
+
this.files.set([]);
|
|
82
|
+
this.folder.set(null);
|
|
83
|
+
this.scope.set(null);
|
|
84
|
+
this.failure.set(null);
|
|
85
|
+
this.isReading.set(true);
|
|
86
|
+
void this.readAsync(reference, given, () => isCurrent);
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
inject(DestroyRef).onDestroy(this.client.onChanged(folder => {
|
|
90
|
+
const list = this.list();
|
|
91
|
+
if (!Object.isNull(list) && folder === this.folder() && Object.isNull(this.scope()))
|
|
92
|
+
void this.placeAsync(folder, list);
|
|
93
|
+
}));
|
|
94
|
+
afterRenderEffect(() => {
|
|
95
|
+
const line = this.reveal();
|
|
96
|
+
if (Object.isNull(line) || line === this.revealed || this.isReading())
|
|
97
|
+
return;
|
|
98
|
+
const files = this.diffFiles();
|
|
99
|
+
if (!Object.isUndefined(files) && !files.isRead())
|
|
100
|
+
return;
|
|
101
|
+
this.revealed = line;
|
|
102
|
+
if (!Object.isUndefined(files) && files.holds(line.path))
|
|
103
|
+
untracked(() => files.reveal(line.path, line.line));
|
|
104
|
+
else
|
|
105
|
+
untracked(() => this.unrevealed.emit(line));
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
retry() {
|
|
109
|
+
this.attempt.update(t => t + 1);
|
|
110
|
+
}
|
|
111
|
+
insetOf(depth) {
|
|
112
|
+
return depth === 0 ? null : Resources.rowStartRem + depth * Resources.commitFileStepRem;
|
|
113
|
+
}
|
|
114
|
+
nameOf(path) {
|
|
115
|
+
return path.slice(path.lastIndexOf(Resources.slash) + 1);
|
|
116
|
+
}
|
|
117
|
+
toggle(folder) {
|
|
118
|
+
const closed = new Set(this.closed());
|
|
119
|
+
if (!closed.delete(folder))
|
|
120
|
+
closed.add(folder);
|
|
121
|
+
this.closed.set(closed);
|
|
122
|
+
}
|
|
123
|
+
letterOf(file) {
|
|
124
|
+
return Resources.pullRequestFileLetters[file.kind];
|
|
125
|
+
}
|
|
126
|
+
fetch(folder) {
|
|
127
|
+
void this.fetchAsync(folder);
|
|
128
|
+
}
|
|
129
|
+
async fetchAsync(folder) {
|
|
130
|
+
const done = this.tasks.add();
|
|
131
|
+
this.isFetching.set(true);
|
|
132
|
+
this.fetchFailure.set(null);
|
|
133
|
+
try {
|
|
134
|
+
const status = GitStatus.fromJson(await this.context.requestAsync(GitNames.statusMethod, new GitFolderParams(folder).toJson()));
|
|
135
|
+
await this.context.requestAsync(GitNames.fetchMethod, new GitFetchParams(folder, status.fingerprint).toJson());
|
|
136
|
+
this.retry();
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
if (!(error instanceof WindowException))
|
|
140
|
+
throw error;
|
|
141
|
+
this.context.log(Resources.formatHostRequestFailed(this.host().name, GitNames.fetchMethod, String(error)));
|
|
142
|
+
this.fetchFailure.set(Resources.pullRequestFilesFetchFailed);
|
|
143
|
+
}
|
|
144
|
+
finally {
|
|
145
|
+
this.isFetching.set(false);
|
|
146
|
+
done();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
async readAsync(reference, given, isCurrent) {
|
|
150
|
+
const done = this.tasks.add();
|
|
151
|
+
try {
|
|
152
|
+
const [list, folder] = await Promise.all([given ?? this.readListAsync(reference), this.host().localFolderAsync(this.url())]);
|
|
153
|
+
const scope = Object.isNull(folder) || Object.isNull(list.sourceCommit) || Object.isNull(list.commonCommit) ? null
|
|
154
|
+
: await this.scopeAsync(folder, list.commonCommit, list.sourceCommit);
|
|
155
|
+
const totals = Object.isNull(folder) || Object.isNull(scope) ? null : await this.totalsAsync(folder, scope);
|
|
156
|
+
if (!isCurrent())
|
|
157
|
+
return;
|
|
158
|
+
this.list.set(list);
|
|
159
|
+
this.files.set(list.files);
|
|
160
|
+
this.folder.set(folder);
|
|
161
|
+
this.scope.set(scope);
|
|
162
|
+
this.counted.emit(Object.isNull(totals) ? `${list.files.length}${list.hasMore ? Resources.pullRequestMoreMark : ""}` : String(totals.files));
|
|
163
|
+
}
|
|
164
|
+
catch (error) {
|
|
165
|
+
if (!(error instanceof WindowException))
|
|
166
|
+
throw error;
|
|
167
|
+
this.context.log(Resources.formatHostRequestFailed(this.host().name, this.host().readChangesMethod, String(error)));
|
|
168
|
+
if (isCurrent())
|
|
169
|
+
this.failure.set(Resources.formatPullRequestFilesUnanswered(this.host().name));
|
|
170
|
+
}
|
|
171
|
+
finally {
|
|
172
|
+
if (isCurrent())
|
|
173
|
+
this.isReading.set(false);
|
|
174
|
+
done();
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
async readListAsync(reference) {
|
|
178
|
+
return HostPullRequestFiles.fromJson(await this.context.requestAsync(this.host().readChangesMethod, reference.toJson()));
|
|
179
|
+
}
|
|
180
|
+
async totalsAsync(folder, scope) {
|
|
181
|
+
try {
|
|
182
|
+
return DiffTotals.fromJson(await this.context.requestAsync(GitNames.diffTotalsMethod, new GitDiffParams(folder, scope).toJson()));
|
|
183
|
+
}
|
|
184
|
+
catch (error) {
|
|
185
|
+
if (!(error instanceof WindowException))
|
|
186
|
+
throw error;
|
|
187
|
+
this.context.log(Resources.formatHostRequestFailed(this.host().name, GitNames.diffTotalsMethod, String(error)));
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
async placeAsync(folder, list) {
|
|
192
|
+
if (Object.isNull(list.sourceCommit) || Object.isNull(list.commonCommit))
|
|
193
|
+
return;
|
|
194
|
+
const done = this.tasks.add();
|
|
195
|
+
try {
|
|
196
|
+
const scope = await this.scopeAsync(folder, list.commonCommit, list.sourceCommit);
|
|
197
|
+
if (Object.isNull(scope) || this.list() !== list)
|
|
198
|
+
return;
|
|
199
|
+
const totals = await this.totalsAsync(folder, scope);
|
|
200
|
+
if (this.list() !== list)
|
|
201
|
+
return;
|
|
202
|
+
this.scope.set(scope);
|
|
203
|
+
if (!Object.isNull(totals))
|
|
204
|
+
this.counted.emit(String(totals.files));
|
|
205
|
+
}
|
|
206
|
+
finally {
|
|
207
|
+
done();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
async scopeAsync(folder, common, source) {
|
|
211
|
+
try {
|
|
212
|
+
await Promise.all([common, source].map(t => this.context.requestAsync(GitNames.commitDetailMethod, new GitCommitDetailParams(folder, t).toJson())));
|
|
213
|
+
return new DiffScope(DiffScopeKind.Range, common, source);
|
|
214
|
+
}
|
|
215
|
+
catch (error) {
|
|
216
|
+
if (!(error instanceof WindowException))
|
|
217
|
+
throw error;
|
|
218
|
+
return null;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestFilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
222
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestFilesComponent, isStandalone: true, selector: "nol-git-pull-request-files", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, answer: { classPropertyName: "answer", publicName: "answer", isSignal: true, isRequired: false, transformFunction: null }, reveal: { classPropertyName: "reveal", publicName: "reveal", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { counted: "counted", unrevealed: "unrevealed" }, viewQueries: [{ propertyName: "diffFiles", first: true, predicate: GitDiffFilesComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestFilesReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n @let local = folder();\n @if (local !== null && scope(); as scope) {\n <section class=\"local\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n <nol-git-diff-files [folder]=\"local\" [scope]=\"scope\" [layout]=\"layout\" />\n </section>\n } @else {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n @if (list.files.length > 0) {\n @if (folder(); as folder) {\n @if (list.commonCommit !== null) {\n <div class=\"hint\">\n <span class=\"hint-text\">{{ fetchFailure() ?? resources.pullRequestFilesFetchHint }}</span>\n <button type=\"button\" nol-button class=\"fetch\" [variant]=\"secondary\" [disabled]=\"isFetching()\" (click)=\"fetch(folder)\">{{ resources.fetchOfferLabel }}</button>\n </div>\n }\n } @else {\n <p class=\"hint\"><span class=\"hint-text\">{{ resources.pullRequestFilesOpenHint }}</span></p>\n }\n }\n @if (list.files.length > 0) {\n <div class=\"files-header\">\n <span class=\"caps\">{{ resources.formatFilesChanged(list.files.length) }}</span>\n <nol-git-file-layout-button class=\"layout\" [layout]=\"layout\" />\n </div>\n } @else {\n <p class=\"empty\">{{ resources.pullRequestNoFiles }}</p>\n }\n @for (entry of rows(); track $index) {\n @if (entry.item; as file) {\n <div class=\"row\" [title]=\"file.path\" [style.padding-inline-start.rem]=\"insetOf(entry.depth)\">\n <nol-file-badge [fileName]=\"nameOf(file.path)\" />\n <span class=\"path\">{{ entry.name }}@if (file.previousPath; as previous) {<span class=\"from\">{{ resources.formatPullRequestFileMovedFrom(previous) }}</span>}</span>\n <span class=\"letter\">{{ letterOf(file) }}</span>\n </div>\n } @else {\n <button type=\"button\" class=\"row folder\" [title]=\"entry.folder\" [attr.aria-expanded]=\"!closed().has(entry.folder)\"\n [style.padding-inline-start.rem]=\"insetOf(entry.depth)\" (click)=\"toggle(entry.folder)\">\n <span class=\"ms\">{{ closed().has(entry.folder) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ entry.name }}</span>\n </button>\n }\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.formatPullRequestFilesCapped(list.files.length) }}</p>\n }\n </section>\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.local {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.hint {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n margin: 0 0 var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.hint-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.files-header {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n padding: 0 var(--nol-space-1);\n}\n\n.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n letter-spacing: 0.02em;\n text-transform: uppercase;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.letter {\n flex: none;\n min-width: 1rem;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n text-align: center;\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.from {\n color: var(--nol-text-muted);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "component", type: GitDiffFilesComponent, selector: "nol-git-diff-files", inputs: ["folder", "scope", "layout"] }, { kind: "component", type: GitFileLayoutButtonComponent, selector: "nol-git-file-layout-button", inputs: ["layout"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
223
|
+
}
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestFilesComponent, decorators: [{
|
|
225
|
+
type: Component,
|
|
226
|
+
args: [{ selector: "nol-git-pull-request-files", imports: [ButtonComponent, FileBadgeComponent, GitDiffFilesComponent, GitFileLayoutButtonComponent, SpinnerComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestFilesReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n @let local = folder();\n @if (local !== null && scope(); as scope) {\n <section class=\"local\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n <nol-git-diff-files [folder]=\"local\" [scope]=\"scope\" [layout]=\"layout\" />\n </section>\n } @else {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n @if (list.files.length > 0) {\n @if (folder(); as folder) {\n @if (list.commonCommit !== null) {\n <div class=\"hint\">\n <span class=\"hint-text\">{{ fetchFailure() ?? resources.pullRequestFilesFetchHint }}</span>\n <button type=\"button\" nol-button class=\"fetch\" [variant]=\"secondary\" [disabled]=\"isFetching()\" (click)=\"fetch(folder)\">{{ resources.fetchOfferLabel }}</button>\n </div>\n }\n } @else {\n <p class=\"hint\"><span class=\"hint-text\">{{ resources.pullRequestFilesOpenHint }}</span></p>\n }\n }\n @if (list.files.length > 0) {\n <div class=\"files-header\">\n <span class=\"caps\">{{ resources.formatFilesChanged(list.files.length) }}</span>\n <nol-git-file-layout-button class=\"layout\" [layout]=\"layout\" />\n </div>\n } @else {\n <p class=\"empty\">{{ resources.pullRequestNoFiles }}</p>\n }\n @for (entry of rows(); track $index) {\n @if (entry.item; as file) {\n <div class=\"row\" [title]=\"file.path\" [style.padding-inline-start.rem]=\"insetOf(entry.depth)\">\n <nol-file-badge [fileName]=\"nameOf(file.path)\" />\n <span class=\"path\">{{ entry.name }}@if (file.previousPath; as previous) {<span class=\"from\">{{ resources.formatPullRequestFileMovedFrom(previous) }}</span>}</span>\n <span class=\"letter\">{{ letterOf(file) }}</span>\n </div>\n } @else {\n <button type=\"button\" class=\"row folder\" [title]=\"entry.folder\" [attr.aria-expanded]=\"!closed().has(entry.folder)\"\n [style.padding-inline-start.rem]=\"insetOf(entry.depth)\" (click)=\"toggle(entry.folder)\">\n <span class=\"ms\">{{ closed().has(entry.folder) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ entry.name }}</span>\n </button>\n }\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.formatPullRequestFilesCapped(list.files.length) }}</p>\n }\n </section>\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.local {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.hint {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n margin: 0 0 var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.hint-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.files-header {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n padding: 0 var(--nol-space-1);\n}\n\n.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n letter-spacing: 0.02em;\n text-transform: uppercase;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.letter {\n flex: none;\n min-width: 1rem;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n text-align: center;\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.from {\n color: var(--nol-text-muted);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"] }]
|
|
227
|
+
}], ctorParameters: () => [], propDecorators: { diffFiles: [{ type: i0.ViewChild, args: [i0.forwardRef(() => GitDiffFilesComponent), { isSignal: true }] }], host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: true }] }], answer: [{ type: i0.Input, args: [{ isSignal: true, alias: "answer", required: false }] }], reveal: [{ type: i0.Input, args: [{ isSignal: true, alias: "reveal", required: false }] }], counted: [{ type: i0.Output, args: ["counted"] }], unrevealed: [{ type: i0.Output, args: ["unrevealed"] }] } });
|
|
228
|
+
//# sourceMappingURL=git-pull-request-files.component.js.map
|