@noldova/git.window 0.0.8 → 0.0.10
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/api/index.d.ts +107 -13
- package/src/api/index.js +1 -0
- package/src/api/index.js.map +1 -1
- package/src/app/components/git-account-dialog/git-account-dialog.component.js +7 -3
- package/src/app/components/git-account-dialog/git-account-dialog.component.js.map +1 -1
- package/src/app/components/git-accounts/git-accounts.component.js +8 -4
- package/src/app/components/git-accounts/git-accounts.component.js.map +1 -1
- package/src/app/components/git-branch-card/git-branch-card.component.js +2 -2
- package/src/app/components/git-branch-card/git-branch-card.component.js.map +1 -1
- package/src/app/components/git-command-log/git-command-log.component.js +40 -7
- package/src/app/components/git-command-log/git-command-log.component.js.map +1 -1
- package/src/app/components/git-commit-card/git-commit-card.component.js +5 -15
- 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 +6 -5
- package/src/app/components/git-commit-detail/git-commit-detail.component.js.map +1 -1
- package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js +3 -5
- package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js.map +1 -1
- package/src/app/components/git-conflicts/git-conflicts.component.js +2 -2
- package/src/app/components/git-conflicts/git-conflicts.component.js.map +1 -1
- package/src/app/components/git-dashboard/git-dashboard.component.js +30 -0
- package/src/app/components/git-dashboard/git-dashboard.component.js.map +1 -0
- package/src/app/components/git-diff-files/git-diff-files.component.js +6 -3
- package/src/app/components/git-diff-files/git-diff-files.component.js.map +1 -1
- package/src/app/components/git-file-group/git-file-group.component.js +3 -3
- package/src/app/components/git-file-group/git-file-group.component.js.map +1 -1
- package/src/app/components/git-history/git-history.component.js +116 -16
- package/src/app/components/git-history/git-history.component.js.map +1 -1
- package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js +3 -3
- package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js.map +1 -1
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +21 -11
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js.map +1 -1
- package/src/app/components/git-pull-requests/git-pull-requests.component.js +7 -3
- package/src/app/components/git-pull-requests/git-pull-requests.component.js.map +1 -1
- package/src/app/components/git-rebase/git-rebase.component.js +2 -2
- package/src/app/components/git-rebase/git-rebase.component.js.map +1 -1
- package/src/app/components/git-repository/git-repository.component.js +16 -4
- package/src/app/components/git-repository/git-repository.component.js.map +1 -1
- package/src/app/components/git-repository-scan-dialog/git-repository-scan-dialog.component.js +62 -0
- package/src/app/components/git-repository-scan-dialog/git-repository-scan-dialog.component.js.map +1 -0
- package/src/app/components/git-undo-menu/git-undo-menu.component.js +23 -5
- package/src/app/components/git-undo-menu/git-undo-menu.component.js.map +1 -1
- package/src/app/components/git-view/git-view.component.js +39 -7
- package/src/app/components/git-view/git-view.component.js.map +1 -1
- package/src/app/components/git-workspace/git-workspace.component.js +65 -15
- package/src/app/components/git-workspace/git-workspace.component.js.map +1 -1
- package/src/app/components/git-workspace-across/git-workspace-across.component.js +2 -2
- package/src/app/components/git-workspace-across/git-workspace-across.component.js.map +1 -1
- package/src/app/components/git-workspaces/git-workspaces.component.js +2 -2
- package/src/app/components/git-workspaces/git-workspaces.component.js.map +1 -1
- package/src/app/exceptions/git-window-inactive.exception.js +16 -0
- package/src/app/exceptions/git-window-inactive.exception.js.map +1 -0
- package/src/app/models/git-branch-menu-item.js.map +1 -1
- package/src/app/models/git-detail-page.js +3 -1
- package/src/app/models/git-detail-page.js.map +1 -1
- package/src/app/models/git-folder-look.js +20 -0
- package/src/app/models/git-folder-look.js.map +1 -0
- package/src/app/models/git-host-card.js +5 -1
- package/src/app/models/git-host-card.js.map +1 -1
- package/src/app/models/git-host-failure.js +29 -0
- package/src/app/models/git-host-failure.js.map +1 -0
- package/src/app/models/git-pull-request-list.js +8 -1
- package/src/app/models/git-pull-request-list.js.map +1 -1
- package/src/app/models/git-pull-request-row.js +3 -1
- package/src/app/models/git-pull-request-row.js.map +1 -1
- package/src/app/models/git-repository-summary.js +3 -1
- package/src/app/models/git-repository-summary.js.map +1 -1
- package/src/app/models/git-status-bar-items.js +3 -1
- package/src/app/models/git-status-bar-items.js.map +1 -1
- package/src/app/models/git-workspace-overview.js +8 -0
- package/src/app/models/git-workspace-overview.js.map +1 -1
- package/src/app/models/git-workspace-row.js +5 -5
- package/src/app/models/git-workspace-row.js.map +1 -1
- package/src/app/services/commit-labels.js +2 -4
- package/src/app/services/commit-labels.js.map +1 -1
- package/src/app/services/git-commit-details.js +1 -1
- package/src/app/services/git-commit-details.js.map +1 -1
- package/src/app/services/git-detail-view.js +21 -7
- package/src/app/services/git-detail-view.js.map +1 -1
- package/src/app/services/git-folder-looks.js +44 -0
- package/src/app/services/git-folder-looks.js.map +1 -0
- package/src/app/services/git-history-rows.js +5 -4
- package/src/app/services/git-history-rows.js.map +1 -1
- package/src/app/services/git-host-accounts.js +2 -1
- package/src/app/services/git-host-accounts.js.map +1 -1
- package/src/app/services/git-repository-scans.js +41 -0
- package/src/app/services/git-repository-scans.js.map +1 -0
- package/src/app/services/git-repository-summaries.js +2 -1
- package/src/app/services/git-repository-summaries.js.map +1 -1
- package/src/app/services/git-runtime-client.js +13 -1
- package/src/app/services/git-runtime-client.js.map +1 -1
- package/src/app/services/git-status-bar.js +13 -7
- package/src/app/services/git-status-bar.js.map +1 -1
- package/src/app/services/git-view-commands.js +46 -0
- package/src/app/services/git-view-commands.js.map +1 -0
- package/src/app/services/git-view-state.service.js +53 -0
- package/src/app/services/git-view-state.service.js.map +1 -1
- package/src/app/services/git-window-context.js +25 -0
- package/src/app/services/git-window-context.js.map +1 -0
- package/src/app/services/git-window-part.js +16 -6
- package/src/app/services/git-window-part.js.map +1 -1
- package/src/app/services/git-workspace-across-views.js +4 -1
- package/src/app/services/git-workspace-across-views.js.map +1 -1
- package/src/app/services/git-workspace-pages.js +0 -2
- package/src/app/services/git-workspace-pages.js.map +1 -1
- package/src/resources.js +83 -17
- package/src/resources.js.map +1 -1
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* This source code is licensed under the license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import { Component, ErrorHandler, inject } from "@angular/core";
|
|
8
|
+
import { afterRenderEffect, Component, DOCUMENT, ErrorHandler, inject, viewChild } from "@angular/core";
|
|
9
|
+
import { TimeFormatService } from "@noldova/desktop.window";
|
|
9
10
|
import { UndoMode } from "@noldova/git.protocol";
|
|
10
11
|
import { IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective } from "@noldova/ui.components.angular";
|
|
11
12
|
import { Resources } from "../../../resources.js";
|
|
@@ -13,8 +14,20 @@ import { GitViewStateService } from "../../services/git-view-state.service.js";
|
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export class GitUndoMenuComponent {
|
|
15
16
|
errors = inject(ErrorHandler);
|
|
17
|
+
dates = inject(TimeFormatService);
|
|
18
|
+
document = inject(DOCUMENT);
|
|
19
|
+
trigger = viewChild.required(MenuTriggerDirective, /* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []));
|
|
16
21
|
resources = Resources;
|
|
17
22
|
state = inject(GitViewStateService);
|
|
23
|
+
constructor() {
|
|
24
|
+
afterRenderEffect({
|
|
25
|
+
write: () => {
|
|
26
|
+
this.state.recentActions();
|
|
27
|
+
this.keepFocus();
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
18
31
|
read() {
|
|
19
32
|
this.state.readRecentActionsAsync().catch((error) => this.errors.handleError(error));
|
|
20
33
|
}
|
|
@@ -22,7 +35,7 @@ export class GitUndoMenuComponent {
|
|
|
22
35
|
return Resources.formatRecentAction(entry.method, entry.branch);
|
|
23
36
|
}
|
|
24
37
|
timeOf(entry) {
|
|
25
|
-
return
|
|
38
|
+
return this.dates.shortDateTime(entry.at);
|
|
26
39
|
}
|
|
27
40
|
canUndo(entry) {
|
|
28
41
|
return entry.undo !== UndoMode.None;
|
|
@@ -30,11 +43,16 @@ export class GitUndoMenuComponent {
|
|
|
30
43
|
undo(entry) {
|
|
31
44
|
void this.state.undoEntryAsync(entry);
|
|
32
45
|
}
|
|
46
|
+
keepFocus() {
|
|
47
|
+
const trigger = this.trigger();
|
|
48
|
+
if (trigger.isOpen() && this.document.activeElement === this.document.body)
|
|
49
|
+
trigger.openFocusing("mouse");
|
|
50
|
+
}
|
|
33
51
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitUndoMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
34
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitUndoMenuComponent, isStandalone: true, selector: "nol-git-undo-menu", 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<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (
|
|
52
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitUndoMenuComponent, isStandalone: true, selector: "nol-git-undo-menu", viewQueries: [{ propertyName: "trigger", first: true, predicate: MenuTriggerDirective, 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<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (cdkMenuOpened)=\"read()\"></button>\n<ng-template #actions>\n <nol-menu>\n @for (entry of state.recentActions(); track entry.id) {\n <button nol-menu-item [label]=\"labelOf(entry)\" [description]=\"timeOf(entry)\" [value]=\"canUndo(entry) ? resources.undoLabel : null\"\n [disabled]=\"!canUndo(entry) || state.busy()\" (triggered)=\"undo(entry)\"></button>\n } @empty {\n <button nol-menu-item [label]=\"resources.noRecentActions\" [disabled]=\"true\"></button>\n }\n </nol-menu>\n</ng-template>\n", dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
35
53
|
}
|
|
36
54
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitUndoMenuComponent, decorators: [{
|
|
37
55
|
type: Component,
|
|
38
|
-
args: [{ selector: "nol-git-undo-menu", imports: [IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective], 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<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (
|
|
39
|
-
}] });
|
|
56
|
+
args: [{ selector: "nol-git-undo-menu", imports: [IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective], 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<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (cdkMenuOpened)=\"read()\"></button>\n<ng-template #actions>\n <nol-menu>\n @for (entry of state.recentActions(); track entry.id) {\n <button nol-menu-item [label]=\"labelOf(entry)\" [description]=\"timeOf(entry)\" [value]=\"canUndo(entry) ? resources.undoLabel : null\"\n [disabled]=\"!canUndo(entry) || state.busy()\" (triggered)=\"undo(entry)\"></button>\n } @empty {\n <button nol-menu-item [label]=\"resources.noRecentActions\" [disabled]=\"true\"></button>\n }\n </nol-menu>\n</ng-template>\n" }]
|
|
57
|
+
}], ctorParameters: () => [], propDecorators: { trigger: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MenuTriggerDirective), { isSignal: true }] }] } });
|
|
40
58
|
//# sourceMappingURL=git-undo-menu.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-undo-menu.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-undo-menu/git-undo-menu.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-undo-menu/git-undo-menu.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"git-undo-menu.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-undo-menu/git-undo-menu.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-undo-menu/git-undo-menu.component.html"],"names":[],"mappings":"AAAA;;;;;;GAM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C,CAAC;IAClE,CAAC;IAES,MAAM,CAAC,KAAsB;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;IAES,OAAO,CAAC,KAAsB;QACtC,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,CAAC;IACtC,CAAC;IAES,IAAI,CAAC,KAAsB;QACnC,KAAK,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC;IAEO,SAAS;QACf,MAAM,OAAO,GAAyB,IAAI,CAAC,OAAO,EAAE,CAAC;QACrD,IAAI,OAAO,CAAC,MAAM,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,aAAa,KAAK,IAAI,CAAC,QAAQ,CAAC,IAAI;YACxE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;uGA1CU,oBAAoB;2FAApB,oBAAoB,sHAI6C,oBAAoB,gECzBlG,24BAoBA,4CDFY,mBAAmB,2MAAE,aAAa,2EAAE,iBAAiB,6LAAE,oBAAoB,oJAAE,gBAAgB;;2FAG5F,oBAAoB;kBALhC,SAAS;+BACE,mBAAmB,WACpB,CAAC,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,gBAAgB,CAAC;mHAO5B,oBAAoB"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This source code is licensed under the license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import { Component, computed, DestroyRef, ElementRef, ErrorHandler, inject, signal } from "@angular/core";
|
|
8
|
+
import { Component, computed, DestroyRef, effect, ElementRef, ErrorHandler, inject, signal, untracked } from "@angular/core";
|
|
9
9
|
import { WindowException, WindowPartTokens } from "@noldova/desktop.window";
|
|
10
10
|
import { ButtonComponent, ButtonVariant, DialogService, SpinnerComponent } from "@noldova/ui.components.angular";
|
|
11
11
|
import { GitFileGroupKind } from "../../enums/git-file-group-kind.js";
|
|
@@ -14,8 +14,12 @@ import { GitEmptyState } from "../../models/git-empty-state.js";
|
|
|
14
14
|
import { GitOperationName } from "../../models/git-operation-name.js";
|
|
15
15
|
import { Resources } from "../../../resources.js";
|
|
16
16
|
import { FocusKeeper } from "../../services/focus-keeper.js";
|
|
17
|
+
import { GitFolderLooks } from "../../services/git-folder-looks.js";
|
|
17
18
|
import { GitPendingSwitch } from "../../services/git-pending-switch.js";
|
|
19
|
+
import { GitRepositoryScans } from "../../services/git-repository-scans.js";
|
|
18
20
|
import { GitResolving } from "../../services/git-resolving.js";
|
|
21
|
+
import { GitRuntimeClient } from "../../services/git-runtime-client.js";
|
|
22
|
+
import { GitViewCommands } from "../../services/git-view-commands.js";
|
|
19
23
|
import { GitViewOptions } from "../../services/git-view-options.js";
|
|
20
24
|
import { GitViewStateService } from "../../services/git-view-state.service.js";
|
|
21
25
|
import { GitBranchCardComponent } from "../git-branch-card/git-branch-card.component.js";
|
|
@@ -32,11 +36,12 @@ export class GitViewComponent {
|
|
|
32
36
|
phases = GitViewPhase;
|
|
33
37
|
errors = inject(ErrorHandler);
|
|
34
38
|
secondary = ButtonVariant.Secondary;
|
|
39
|
+
primary = ButtonVariant.Primary;
|
|
35
40
|
state = inject(GitViewStateService);
|
|
36
41
|
showsBranch = GitViewOptions.showsBranch;
|
|
37
42
|
switching = computed(() => GitPendingSwitch.branchOf(this.state.folder()), /* @ts-ignore */
|
|
38
43
|
...(ngDevMode ? [{ debugName: "switching" }] : /* istanbul ignore next */ []));
|
|
39
|
-
empty = computed(() => this.emptyOf(this.state.phase()), /* @ts-ignore */
|
|
44
|
+
empty = computed(() => this.emptyOf(this.state.phase(), this.look()?.text() ?? ""), /* @ts-ignore */
|
|
40
45
|
...(ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []));
|
|
41
46
|
linkFailed = signal(false, /* @ts-ignore */
|
|
42
47
|
...(ngDevMode ? [{ debugName: "linkFailed" }] : /* istanbul ignore next */ []));
|
|
@@ -44,8 +49,20 @@ export class GitViewComponent {
|
|
|
44
49
|
...(ngDevMode ? [{ debugName: "firstConflict" }] : /* istanbul ignore next */ []));
|
|
45
50
|
offersGit = computed(() => this.state.phase() === GitViewPhase.GitMissing || this.state.phase() === GitViewPhase.GitTooOld, /* @ts-ignore */
|
|
46
51
|
...(ngDevMode ? [{ debugName: "offersGit" }] : /* istanbul ignore next */ []));
|
|
52
|
+
look = signal(null, /* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []));
|
|
54
|
+
lookFolder = computed(() => this.state.phase() === GitViewPhase.NotRepository ? this.state.readFolder() : null, /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "lookFolder" }] : /* istanbul ignore next */ []));
|
|
56
|
+
offer = (scan) => GitRepositoryScans.offerToDashboard(this.dialogs, this.context, this.state.readFolder(), scan);
|
|
47
57
|
constructor() {
|
|
48
|
-
inject(DestroyRef)
|
|
58
|
+
const destroyed = inject(DestroyRef);
|
|
59
|
+
destroyed.onDestroy(FocusKeeper.keep(inject(ElementRef).nativeElement));
|
|
60
|
+
destroyed.onDestroy(GitViewCommands.attach(this.state));
|
|
61
|
+
effect(() => {
|
|
62
|
+
const folder = this.lookFolder();
|
|
63
|
+
untracked(() => this.lookUnder(folder));
|
|
64
|
+
});
|
|
65
|
+
destroyed.onDestroy(() => this.lookUnder(null));
|
|
49
66
|
}
|
|
50
67
|
async getGitAsync() {
|
|
51
68
|
this.linkFailed.set(false);
|
|
@@ -93,12 +110,27 @@ export class GitViewComponent {
|
|
|
93
110
|
abortOperation() {
|
|
94
111
|
void this.state.abortOperationAsync().catch((error) => this.errors.handleError(error));
|
|
95
112
|
}
|
|
96
|
-
|
|
113
|
+
continueOperation() {
|
|
114
|
+
void this.state.continueOperationAsync().catch((error) => this.errors.handleError(error));
|
|
115
|
+
}
|
|
116
|
+
skipOperation() {
|
|
117
|
+
void this.state.skipOperationAsync().catch((error) => this.errors.handleError(error));
|
|
118
|
+
}
|
|
119
|
+
lookUnder(folder) {
|
|
120
|
+
const look = this.look();
|
|
121
|
+
if (!Object.isNull(look))
|
|
122
|
+
GitFolderLooks.leave(look, this.offer);
|
|
123
|
+
this.look.set(Object.isNull(folder) ? null : GitFolderLooks.join(folder, new GitRuntimeClient(this.context), this.offer, error => {
|
|
124
|
+
if (!GitRuntimeClient.isFailure(error))
|
|
125
|
+
this.errors.handleError(error);
|
|
126
|
+
}));
|
|
127
|
+
}
|
|
128
|
+
emptyOf(phase, lookText) {
|
|
97
129
|
switch (phase) {
|
|
98
130
|
case GitViewPhase.NoFolder:
|
|
99
131
|
return new GitEmptyState(Resources.noFolderIcon, Resources.noFolderHeading, Resources.noFolderText);
|
|
100
132
|
case GitViewPhase.NotRepository:
|
|
101
|
-
return new GitEmptyState(Resources.noFolderIcon, Resources.notRepositoryHeading,
|
|
133
|
+
return new GitEmptyState(Resources.noFolderIcon, Resources.notRepositoryHeading, lookText);
|
|
102
134
|
case GitViewPhase.FolderUnreadable:
|
|
103
135
|
return new GitEmptyState(Resources.folderUnreadableIcon, Resources.folderUnreadableHeading, Resources.formatFolderUnreadableText(this.state.readFolder()));
|
|
104
136
|
case GitViewPhase.GitMissing:
|
|
@@ -114,11 +146,11 @@ export class GitViewComponent {
|
|
|
114
146
|
}
|
|
115
147
|
}
|
|
116
148
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
117
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitViewComponent, isStandalone: true, selector: "nol-git-view", providers: [GitViewStateService], 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 (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\"><span class=\"strong\">{{ operationOf(operation, status.branch) }}</span><span class=\"muted\">{{ resources.formatConflictText(state.conflicts()) }}</span></span>\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n @if (state.forcePushOffer(); as offer) {\n <button nol-button type=\"button\" class=\"banner-action force-push\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"forcePush(offer)\">{{ resources.forcePushOfferLabel }}</button>\n }\n @if (state.fetchOffered()) {\n <button nol-button type=\"button\" class=\"banner-action fetch\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"fetch()\">{{ resources.fetchOfferLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></div>\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 position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\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}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n gap: var(--nol-space-2);\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 font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitBranchCardComponent, selector: "nol-git-branch-card", inputs: ["status"] }, { kind: "component", type: GitCommitCardComponent, selector: "nol-git-commit-card", inputs: ["status"] }, { kind: "component", type: GitFileGroupComponent, selector: "nol-git-file-group", inputs: ["group"], outputs: ["openConflict"] }, { kind: "component", type: GitHostRowComponent, selector: "nol-git-host-row", inputs: ["remote", "status", "folder"] }, { kind: "component", type: GitUndoMenuComponent, selector: "nol-git-undo-menu" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
149
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitViewComponent, isStandalone: true, selector: "nol-git-view", providers: [GitViewStateService], 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 (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\">\n <span class=\"strong\">{{ operationOf(operation, status.branch) }}</span>\n <span class=\"muted\">{{ state.conflicts() === 0 ? resources.formatOperationReady(operation.kind) : resources.formatConflictText(state.conflicts()) }}</span>\n <span class=\"operation-actions\">\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action continue-operation\" [variant]=\"firstConflict() ? secondary : primary\" [disabled]=\"state.busy() || state.conflicts() > 0\"\n (click)=\"continueOperation()\">{{ resources.continueLabels[operation.kind] }}</button>\n @if (!operation.editStop && resources.skipLabels[operation.kind]; as skip) {\n <button nol-button type=\"button\" class=\"banner-action skip-operation\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"skipOperation()\">{{ skip }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </span>\n </span>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n @if (state.forcePushOffer(); as offer) {\n <button nol-button type=\"button\" class=\"banner-action force-push\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"forcePush(offer)\">{{ resources.forcePushOfferLabel }}</button>\n }\n @if (state.fetchOffered()) {\n <button nol-button type=\"button\" class=\"banner-action fetch\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"fetch()\">{{ resources.fetchOfferLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></div>\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 position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\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}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.operation-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n margin-top: var(--nol-space-1);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n gap: var(--nol-space-2);\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 font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitBranchCardComponent, selector: "nol-git-branch-card", inputs: ["status"] }, { kind: "component", type: GitCommitCardComponent, selector: "nol-git-commit-card", inputs: ["status"] }, { kind: "component", type: GitFileGroupComponent, selector: "nol-git-file-group", inputs: ["group"], outputs: ["openConflict"] }, { kind: "component", type: GitHostRowComponent, selector: "nol-git-host-row", inputs: ["remote", "status", "folder"] }, { kind: "component", type: GitUndoMenuComponent, selector: "nol-git-undo-menu" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
118
150
|
}
|
|
119
151
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitViewComponent, decorators: [{
|
|
120
152
|
type: Component,
|
|
121
153
|
args: [{ selector: "nol-git-view", imports: [ButtonComponent, GitBranchCardComponent, GitCommitCardComponent, GitFileGroupComponent, GitHostRowComponent, GitUndoMenuComponent,
|
|
122
|
-
SpinnerComponent], providers: [GitViewStateService], 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 (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\"
|
|
154
|
+
SpinnerComponent], providers: [GitViewStateService], 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 (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\">\n <span class=\"strong\">{{ operationOf(operation, status.branch) }}</span>\n <span class=\"muted\">{{ state.conflicts() === 0 ? resources.formatOperationReady(operation.kind) : resources.formatConflictText(state.conflicts()) }}</span>\n <span class=\"operation-actions\">\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action continue-operation\" [variant]=\"firstConflict() ? secondary : primary\" [disabled]=\"state.busy() || state.conflicts() > 0\"\n (click)=\"continueOperation()\">{{ resources.continueLabels[operation.kind] }}</button>\n @if (!operation.editStop && resources.skipLabels[operation.kind]; as skip) {\n <button nol-button type=\"button\" class=\"banner-action skip-operation\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"skipOperation()\">{{ skip }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </span>\n </span>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n @if (state.forcePushOffer(); as offer) {\n <button nol-button type=\"button\" class=\"banner-action force-push\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"forcePush(offer)\">{{ resources.forcePushOfferLabel }}</button>\n }\n @if (state.fetchOffered()) {\n <button nol-button type=\"button\" class=\"banner-action fetch\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"fetch()\">{{ resources.fetchOfferLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></div>\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 position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\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}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.operation-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n margin-top: var(--nol-space-1);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n gap: var(--nol-space-2);\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 font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"] }]
|
|
123
155
|
}], ctorParameters: () => [] });
|
|
124
156
|
//# sourceMappingURL=git-view.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-view.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-view/git-view.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-view/git-view.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAe,MAAM,EAAuB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"git-view.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-view/git-view.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-view/git-view.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAe,MAAM,EAAE,SAAS,EAAuB,MAAM,eAAe,CAAC;AAC/J,OAAO,EAA2B,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAErG,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEjH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE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