@activecollab/components 2.0.468 → 2.0.469
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/dist/cjs/presentation/shared/SourceCodeSection.js +88 -82
- package/dist/cjs/presentation/shared/SourceCodeSection.js.map +1 -1
- package/dist/esm/presentation/shared/SourceCodeSection.d.ts.map +1 -1
- package/dist/esm/presentation/shared/SourceCodeSection.js +88 -82
- package/dist/esm/presentation/shared/SourceCodeSection.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/SourceCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,WAAW,EACX,YAAY,EAIb,MAAM,OAAO,CAAC;AA0Gf,KAAK,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAa1D,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAKD,UAAU,YAAY;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;+CAC2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;CACtD;AAiDD;;;;;;;GAOG;AACH,UAAU,UAAU;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB;0CACsC;IACtC,cAAc,EAAE,MAAM,C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YAUH,CAAC;AAwIF,QAAA,MAAM,aAAa,GAAI,qBAGpB;IACD,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,KAAG,
|
|
1
|
+
{"version":3,"file":"SourceCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/SourceCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,WAAW,EACX,YAAY,EAIb,MAAM,OAAO,CAAC;AA0Gf,KAAK,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAa1D,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAKD,UAAU,YAAY;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;+CAC2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;CACtD;AAiDD;;;;;;;GAOG;AACH,UAAU,UAAU;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB;0CACsC;IACtC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,KAAK,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;GASG;AACH,UAAU,SAAS;IACjB,IAAI,EAAE,IAAI,GAAG,QAAQ,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,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AE,UAAU,CAAA;CAAE,KAAG,YA8CpD,CAAC;AAwCF,QAAA,MAAM,OAAO,GAAI,2BAGd;IACD,KAAK,EAAE,SAAS,CAAC;IACjB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,KAAG,YA0GH,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,gCAItB;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,KAAG,YAcH,CAAC;AA+JF,KAAK,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,CAAC;AAEnD,QAAA,MAAM,iBAAiB,GAAI,yDAOxB;IACD,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;6DAEyD;IACzD,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;IACnB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,KAAG,YA0IH,CAAC;AAEF,YAAY,EACV,UAAU,EACV,KAAK,EACL,YAAY,EACZ,UAAU,EACV,UAAU,EACV,SAAS,EACT,cAAc,GACf,CAAC;AAEF,OAAO,EACL,KAAK,EACL,aAAa,EACb,QAAQ,EACR,OAAO,EACP,eAAe,EACf,iBAAiB,GAClB,CAAC"}
|
|
@@ -850,88 +850,94 @@ const StyledHistory = styled.div.withConfig({
|
|
|
850
850
|
const HistoryDialog = _ref4 => {
|
|
851
851
|
let entry = _ref4.entry,
|
|
852
852
|
onClose = _ref4.onClose;
|
|
853
|
-
return
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
entry:
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
853
|
+
return (
|
|
854
|
+
/*#__PURE__*/
|
|
855
|
+
/* Same width as the Source Code dialog, so the two read alike when one opens
|
|
856
|
+
from the other. */
|
|
857
|
+
React.createElement(Dialog, {
|
|
858
|
+
open: !!entry,
|
|
859
|
+
onClose: onClose,
|
|
860
|
+
enableBackgroundClick: true,
|
|
861
|
+
size: "l"
|
|
862
|
+
}, /*#__PURE__*/React.createElement(Dialog.Title, {
|
|
863
|
+
onClose: onClose
|
|
864
|
+
}, (entry == null ? void 0 : entry.kind) === "branch" ? "Branch History" : "Pull Request History"), /*#__PURE__*/React.createElement(Dialog.ContentDivider, null), /*#__PURE__*/React.createElement(Dialog.Content, null, entry && /*#__PURE__*/React.createElement(StyledHistory, null, /*#__PURE__*/React.createElement("div", {
|
|
865
|
+
className: "hist-header"
|
|
866
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
867
|
+
className: "hist-name"
|
|
868
|
+
}, /*#__PURE__*/React.createElement(Body1, {
|
|
869
|
+
weight: "medium"
|
|
870
|
+
}, entry.status === "deleted" ? entry.title : /*#__PURE__*/React.createElement(TitleLink, {
|
|
871
|
+
href: codeUrl(entry),
|
|
872
|
+
target: "_blank",
|
|
873
|
+
rel: "noopener noreferrer"
|
|
874
|
+
}, entry.title)), /*#__PURE__*/React.createElement(CodeStatusChip, {
|
|
875
|
+
entry: entry
|
|
876
|
+
})), entry.kind === "pr" && entry.sourceBranch && entry.targetBranch && /*#__PURE__*/React.createElement("div", {
|
|
877
|
+
className: "hist-branches"
|
|
878
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
879
|
+
className: "hist-branch"
|
|
880
|
+
}, /*#__PURE__*/React.createElement(GitBranchIcon, {
|
|
881
|
+
width: 14,
|
|
882
|
+
height: 14
|
|
883
|
+
}), entry.sourceBranch), /*#__PURE__*/React.createElement(ArrowRightIcon, {
|
|
884
|
+
width: 14,
|
|
885
|
+
height: 14
|
|
886
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
887
|
+
className: "hist-branch"
|
|
888
|
+
}, /*#__PURE__*/React.createElement(GitBranchIcon, {
|
|
889
|
+
width: 14,
|
|
890
|
+
height: 14
|
|
891
|
+
}), entry.targetBranch)), /*#__PURE__*/React.createElement("span", {
|
|
892
|
+
className: "hist-repo"
|
|
893
|
+
}, /*#__PURE__*/React.createElement(GitRepositoryIcon, {
|
|
894
|
+
width: 14,
|
|
895
|
+
height: 14
|
|
896
|
+
}), entry.repoFull)), [...entry.history].sort((a, b) => a.minutesAgo - b.minutesAgo).map((ev, i) => /*#__PURE__*/React.createElement("div", {
|
|
897
|
+
className: "hist-event",
|
|
898
|
+
key: ev.title + "-" + i
|
|
899
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
900
|
+
className: "hist-icon"
|
|
901
|
+
}, /*#__PURE__*/React.createElement(ev.icon, _extends({
|
|
902
|
+
width: 22,
|
|
903
|
+
height: 22
|
|
904
|
+
}, iconColorProps(ev.icon)))), /*#__PURE__*/React.createElement("div", {
|
|
905
|
+
className: "hist-body"
|
|
906
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
907
|
+
className: "hist-title"
|
|
908
|
+
}, /*#__PURE__*/React.createElement(Body1, {
|
|
909
|
+
weight: "medium"
|
|
910
|
+
}, ev.title), ev.tone === "success" && /*#__PURE__*/React.createElement("span", {
|
|
911
|
+
className: "hist-status"
|
|
912
|
+
}, /*#__PURE__*/React.createElement(CheckIcon, {
|
|
913
|
+
width: 16,
|
|
914
|
+
height: 16,
|
|
915
|
+
fill: "var(--color-sucess-green)"
|
|
916
|
+
})), ev.tone === "danger" && /*#__PURE__*/React.createElement(StatusChip, {
|
|
917
|
+
label: "Failed",
|
|
918
|
+
tone: "fail",
|
|
919
|
+
glyph: /*#__PURE__*/React.createElement(CloseIcon, {
|
|
920
|
+
width: 12,
|
|
921
|
+
height: 12,
|
|
922
|
+
fill: "var(--red-alert)"
|
|
923
|
+
})
|
|
924
|
+
})), ev.detail && /*#__PURE__*/React.createElement("span", {
|
|
925
|
+
className: "hist-line"
|
|
926
|
+
}, ev.detail), ev.author && /*#__PURE__*/React.createElement("span", {
|
|
927
|
+
className: "hist-line"
|
|
928
|
+
}, ev.author)), /*#__PURE__*/React.createElement("div", {
|
|
929
|
+
className: "hist-meta"
|
|
930
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
931
|
+
className: "hist-line"
|
|
932
|
+
}, formatAgo(ev.minutesAgo))))), !entry.pipelineSupported && /*#__PURE__*/React.createElement("div", {
|
|
933
|
+
className: "hist-note"
|
|
934
|
+
}, /*#__PURE__*/React.createElement(InfoSmallIcon, {
|
|
935
|
+
width: 15,
|
|
936
|
+
height: 15
|
|
937
|
+
}), /*#__PURE__*/React.createElement(Caption1, {
|
|
938
|
+
color: "secondary"
|
|
939
|
+
}, "No CI or deployment pipeline is configured for this repository.")))))
|
|
940
|
+
);
|
|
935
941
|
};
|
|
936
942
|
|
|
937
943
|
/* ================================================================== */
|