@industry-theme/git-panels 0.1.16 → 0.1.18
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitCommitHistoryPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitCommitHistoryPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAG5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAIpD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"GitCommitHistoryPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitCommitHistoryPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAG5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAIpD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0N/D,CAAC;AA0EF;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EA+DhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitPullRequestsPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GitPullRequestsPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAIpD;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAoS9D,CAAC;AA6HF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAkE/C,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -101,19 +101,6 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
101
101
|
Component.displayName = toPascalCase(iconName);
|
|
102
102
|
return Component;
|
|
103
103
|
};
|
|
104
|
-
/**
|
|
105
|
-
* @license lucide-react v0.552.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/
|
|
110
|
-
const __iconNode$j = [
|
|
111
|
-
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
112
|
-
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
113
|
-
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
114
|
-
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
115
|
-
];
|
|
116
|
-
const Calendar = createLucideIcon("calendar", __iconNode$j);
|
|
117
104
|
/**
|
|
118
105
|
* @license lucide-react v0.552.0 - ISC
|
|
119
106
|
*
|
|
@@ -401,9 +388,12 @@ function formatDate(dateString) {
|
|
|
401
388
|
if (diffDays === 0) return "Today";
|
|
402
389
|
if (diffDays === 1) return "Yesterday";
|
|
403
390
|
if (diffDays < 7) return `${diffDays} days ago`;
|
|
404
|
-
|
|
405
|
-
if (diffDays <
|
|
406
|
-
|
|
391
|
+
const weeks = Math.floor(diffDays / 7);
|
|
392
|
+
if (diffDays < 30) return `${weeks} ${weeks === 1 ? "week" : "weeks"} ago`;
|
|
393
|
+
const months = Math.floor(diffDays / 30);
|
|
394
|
+
if (diffDays < 365) return `${months} ${months === 1 ? "month" : "months"} ago`;
|
|
395
|
+
const years = Math.floor(diffDays / 365);
|
|
396
|
+
return `${years} ${years === 1 ? "year" : "years"} ago`;
|
|
407
397
|
}
|
|
408
398
|
const GitCommitHistoryPanel = ({
|
|
409
399
|
context,
|
|
@@ -481,65 +471,67 @@ const GitCommitHistoryPanel = ({
|
|
|
481
471
|
}
|
|
482
472
|
return /* @__PURE__ */ jsxs("div", { style: containerStyle, children: [
|
|
483
473
|
/* @__PURE__ */ jsx("style", { children: `.hide-scrollbar::-webkit-scrollbar { display: none; }` }),
|
|
484
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ jsx(
|
|
485
475
|
"div",
|
|
486
476
|
{
|
|
487
477
|
style: {
|
|
478
|
+
position: "relative",
|
|
488
479
|
height: "40px",
|
|
489
|
-
|
|
490
|
-
padding: "0 12px",
|
|
491
|
-
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
492
|
-
backgroundColor: theme2.colors.background,
|
|
480
|
+
padding: "0 16px",
|
|
493
481
|
display: "flex",
|
|
494
|
-
|
|
495
|
-
justifyContent: "
|
|
482
|
+
flexDirection: "column",
|
|
483
|
+
justifyContent: "center",
|
|
484
|
+
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
485
|
+
backgroundColor: theme2.colors.backgroundLight,
|
|
496
486
|
boxSizing: "border-box"
|
|
497
487
|
},
|
|
498
|
-
children:
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
{
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
488
|
+
children: /* @__PURE__ */ jsxs(
|
|
489
|
+
"div",
|
|
490
|
+
{
|
|
491
|
+
style: {
|
|
492
|
+
display: "flex",
|
|
493
|
+
alignItems: "center",
|
|
494
|
+
justifyContent: "space-between"
|
|
495
|
+
},
|
|
496
|
+
children: [
|
|
497
|
+
/* @__PURE__ */ jsx(
|
|
498
|
+
"span",
|
|
499
|
+
{
|
|
500
|
+
style: {
|
|
501
|
+
fontFamily: theme2.fonts.body,
|
|
502
|
+
fontSize: theme2.fontSizes[1],
|
|
503
|
+
color: theme2.colors.textSecondary,
|
|
504
|
+
fontWeight: 500
|
|
505
|
+
},
|
|
506
|
+
children: "Commit History"
|
|
507
|
+
}
|
|
508
|
+
),
|
|
509
|
+
/* @__PURE__ */ jsx(
|
|
510
|
+
"button",
|
|
511
|
+
{
|
|
512
|
+
type: "button",
|
|
513
|
+
onClick: handleRefresh,
|
|
514
|
+
disabled: isLoading,
|
|
515
|
+
style: {
|
|
516
|
+
background: "none",
|
|
517
|
+
border: "1px solid transparent",
|
|
518
|
+
borderRadius: "4px",
|
|
519
|
+
cursor: isLoading ? "default" : "pointer",
|
|
520
|
+
padding: "4px",
|
|
521
|
+
display: "flex",
|
|
522
|
+
alignItems: "center",
|
|
523
|
+
justifyContent: "center",
|
|
524
|
+
color: theme2.colors.textSecondary,
|
|
525
|
+
opacity: isLoading ? 0.7 : 1,
|
|
526
|
+
transition: "all 0.2s ease"
|
|
527
|
+
},
|
|
528
|
+
title: isLoading ? "Refreshing..." : "Refresh",
|
|
529
|
+
children: /* @__PURE__ */ jsx(RefreshCcw, { size: 16 })
|
|
530
|
+
}
|
|
531
|
+
)
|
|
532
|
+
]
|
|
533
|
+
}
|
|
534
|
+
)
|
|
543
535
|
}
|
|
544
536
|
),
|
|
545
537
|
/* @__PURE__ */ jsxs(
|
|
@@ -670,7 +662,7 @@ const CommitCard = ({ commit, theme: theme2, isSelected, onClick }) => {
|
|
|
670
662
|
/* @__PURE__ */ jsx("span", { title: new Date(commit.date).toLocaleString(), children: relative }),
|
|
671
663
|
commit.author && /* @__PURE__ */ jsxs("span", { children: [
|
|
672
664
|
"by ",
|
|
673
|
-
commit.author
|
|
665
|
+
/* @__PURE__ */ jsx("span", { style: { color: theme2.colors.primary }, children: commit.author })
|
|
674
666
|
] })
|
|
675
667
|
]
|
|
676
668
|
}
|
|
@@ -731,7 +723,7 @@ const GitCommitHistoryPanelPreview = () => {
|
|
|
731
723
|
fontFamily: theme2.fonts.body
|
|
732
724
|
},
|
|
733
725
|
children: [
|
|
734
|
-
/* @__PURE__ */ jsx("span", { children: commit.author }),
|
|
726
|
+
/* @__PURE__ */ jsx("span", { style: { color: theme2.colors.primary }, children: commit.author }),
|
|
735
727
|
/* @__PURE__ */ jsx("span", { children: "•" }),
|
|
736
728
|
/* @__PURE__ */ jsx("span", { style: { fontFamily: theme2.fonts.monospace }, children: commit.sha }),
|
|
737
729
|
/* @__PURE__ */ jsx("span", { children: "•" }),
|
|
@@ -41277,8 +41269,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
41277
41269
|
style: {
|
|
41278
41270
|
flex: 1,
|
|
41279
41271
|
cursor: "pointer",
|
|
41280
|
-
|
|
41281
|
-
opacity: isChecked ? 0.6 : 1,
|
|
41272
|
+
color: isChecked ? theme2.colors.textMuted : "inherit",
|
|
41282
41273
|
lineHeight: theme2.lineHeights.relaxed
|
|
41283
41274
|
}
|
|
41284
41275
|
}, labelContent.length > 0 ? labelContent : null)), nestedListElements.length > 0 ? nestedListElements : null);
|
|
@@ -42346,6 +42337,7 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
42346
42337
|
handleRunBashCommand,
|
|
42347
42338
|
handlePromptCopy,
|
|
42348
42339
|
enableHtmlPopout = true,
|
|
42340
|
+
autoFocusOnVisible = true,
|
|
42349
42341
|
searchQuery,
|
|
42350
42342
|
slideHeaderMarginTopOverride,
|
|
42351
42343
|
theme: themeOverride,
|
|
@@ -42552,11 +42544,10 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
42552
42544
|
}
|
|
42553
42545
|
}, [enableKeyboardScrolling, isVisible, slideIndex, scrollConfig]);
|
|
42554
42546
|
useEffect(() => {
|
|
42555
|
-
if (isVisible && slideRef.current) {
|
|
42556
|
-
|
|
42557
|
-
slideRef.current.focus();
|
|
42547
|
+
if (autoFocusOnVisible && isVisible && slideRef.current) {
|
|
42548
|
+
slideRef.current.focus({ preventScroll: true });
|
|
42558
42549
|
}
|
|
42559
|
-
}, [isVisible]);
|
|
42550
|
+
}, [autoFocusOnVisible, isVisible]);
|
|
42560
42551
|
const openPlaceholderModal = (placeholders, promptContent) => {
|
|
42561
42552
|
if (!handlePromptCopy)
|
|
42562
42553
|
return;
|
|
@@ -44521,15 +44512,12 @@ var Vt;
|
|
|
44521
44512
|
})();
|
|
44522
44513
|
var DocumentView = ({
|
|
44523
44514
|
content: content2,
|
|
44524
|
-
showSegmented = false,
|
|
44525
44515
|
onCheckboxChange,
|
|
44526
|
-
onSectionClick,
|
|
44527
44516
|
maxWidth = "900px",
|
|
44528
|
-
showSectionHeaders = true,
|
|
44529
|
-
showSeparators = true,
|
|
44530
44517
|
slideIdPrefix = "document",
|
|
44531
44518
|
enableHtmlPopout = true,
|
|
44532
44519
|
enableKeyboardScrolling = true,
|
|
44520
|
+
autoFocusOnVisible = true,
|
|
44533
44521
|
onLinkClick,
|
|
44534
44522
|
handleRunBashCommand,
|
|
44535
44523
|
handlePromptCopy,
|
|
@@ -44539,88 +44527,7 @@ var DocumentView = ({
|
|
|
44539
44527
|
transparentBackground = false
|
|
44540
44528
|
}) => {
|
|
44541
44529
|
const containerRef = useRef(null);
|
|
44542
|
-
const sectionRefs = useRef([]);
|
|
44543
44530
|
const backgroundColor = transparentBackground ? "transparent" : theme2.colors.background;
|
|
44544
|
-
const scrollToSection = useCallback((sectionIndex) => {
|
|
44545
|
-
var _a;
|
|
44546
|
-
if (sectionRefs.current[sectionIndex]) {
|
|
44547
|
-
(_a = sectionRefs.current[sectionIndex]) == null ? void 0 : _a.scrollIntoView({
|
|
44548
|
-
behavior: "smooth",
|
|
44549
|
-
block: "start"
|
|
44550
|
-
});
|
|
44551
|
-
}
|
|
44552
|
-
}, []);
|
|
44553
|
-
const handleSectionClick = useCallback((index2) => {
|
|
44554
|
-
scrollToSection(index2);
|
|
44555
|
-
onSectionClick == null ? void 0 : onSectionClick(index2);
|
|
44556
|
-
}, [scrollToSection, onSectionClick]);
|
|
44557
|
-
if (typeof content2 === "string") {
|
|
44558
|
-
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
44559
|
-
ref: containerRef,
|
|
44560
|
-
style: {
|
|
44561
|
-
height: "100%",
|
|
44562
|
-
overflow: "auto",
|
|
44563
|
-
backgroundColor
|
|
44564
|
-
}
|
|
44565
|
-
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
44566
|
-
style: {
|
|
44567
|
-
maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
|
|
44568
|
-
margin: "0 auto",
|
|
44569
|
-
height: "100%"
|
|
44570
|
-
}
|
|
44571
|
-
}, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
44572
|
-
content: content2,
|
|
44573
|
-
slideIdPrefix,
|
|
44574
|
-
slideIndex: 0,
|
|
44575
|
-
isVisible: true,
|
|
44576
|
-
theme: theme2,
|
|
44577
|
-
onCheckboxChange,
|
|
44578
|
-
enableHtmlPopout,
|
|
44579
|
-
enableKeyboardScrolling,
|
|
44580
|
-
onLinkClick,
|
|
44581
|
-
handleRunBashCommand,
|
|
44582
|
-
fontSizeScale,
|
|
44583
|
-
handlePromptCopy,
|
|
44584
|
-
repositoryInfo,
|
|
44585
|
-
transparentBackground
|
|
44586
|
-
})));
|
|
44587
|
-
}
|
|
44588
|
-
if (!showSegmented) {
|
|
44589
|
-
const fullContent = content2.join(`
|
|
44590
|
-
|
|
44591
|
-
---
|
|
44592
|
-
|
|
44593
|
-
`);
|
|
44594
|
-
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
44595
|
-
ref: containerRef,
|
|
44596
|
-
style: {
|
|
44597
|
-
height: "100%",
|
|
44598
|
-
overflow: "auto",
|
|
44599
|
-
backgroundColor
|
|
44600
|
-
}
|
|
44601
|
-
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
44602
|
-
style: {
|
|
44603
|
-
maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
|
|
44604
|
-
margin: "0 auto",
|
|
44605
|
-
height: "100%"
|
|
44606
|
-
}
|
|
44607
|
-
}, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
44608
|
-
content: fullContent,
|
|
44609
|
-
slideIdPrefix,
|
|
44610
|
-
slideIndex: 0,
|
|
44611
|
-
isVisible: true,
|
|
44612
|
-
theme: theme2,
|
|
44613
|
-
onCheckboxChange,
|
|
44614
|
-
enableHtmlPopout,
|
|
44615
|
-
enableKeyboardScrolling,
|
|
44616
|
-
onLinkClick,
|
|
44617
|
-
handleRunBashCommand,
|
|
44618
|
-
fontSizeScale,
|
|
44619
|
-
handlePromptCopy,
|
|
44620
|
-
repositoryInfo,
|
|
44621
|
-
transparentBackground
|
|
44622
|
-
})));
|
|
44623
|
-
}
|
|
44624
44531
|
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
44625
44532
|
ref: containerRef,
|
|
44626
44533
|
style: {
|
|
@@ -44631,69 +44538,26 @@ var DocumentView = ({
|
|
|
44631
44538
|
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
44632
44539
|
style: {
|
|
44633
44540
|
maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
|
|
44634
|
-
margin: "0 auto"
|
|
44635
|
-
|
|
44636
|
-
}, content2.map((slideContent, index2) => /* @__PURE__ */ React2__default.createElement("div", {
|
|
44637
|
-
key: index2,
|
|
44638
|
-
ref: (el) => {
|
|
44639
|
-
if (el)
|
|
44640
|
-
sectionRefs.current[index2] = el;
|
|
44641
|
-
},
|
|
44642
|
-
style: {
|
|
44643
|
-
marginBottom: index2 < content2.length - 1 ? "48px" : "0",
|
|
44644
|
-
scrollMarginTop: "20px"
|
|
44645
|
-
}
|
|
44646
|
-
}, showSectionHeaders && /* @__PURE__ */ React2__default.createElement("div", {
|
|
44647
|
-
onClick: () => handleSectionClick(index2),
|
|
44648
|
-
style: {
|
|
44649
|
-
display: "flex",
|
|
44650
|
-
alignItems: "center",
|
|
44651
|
-
justifyContent: "space-between",
|
|
44652
|
-
marginBottom: "16px",
|
|
44653
|
-
paddingBottom: "8px",
|
|
44654
|
-
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
44655
|
-
opacity: 0.7,
|
|
44656
|
-
cursor: "pointer",
|
|
44657
|
-
transition: "opacity 0.2s ease"
|
|
44658
|
-
},
|
|
44659
|
-
onMouseOver: (e2) => {
|
|
44660
|
-
e2.currentTarget.style.opacity = "1";
|
|
44661
|
-
},
|
|
44662
|
-
onMouseOut: (e2) => {
|
|
44663
|
-
e2.currentTarget.style.opacity = "0.7";
|
|
44664
|
-
}
|
|
44665
|
-
}, /* @__PURE__ */ React2__default.createElement("span", {
|
|
44666
|
-
style: {
|
|
44667
|
-
fontSize: "11px",
|
|
44668
|
-
fontWeight: 600,
|
|
44669
|
-
color: theme2.colors.textSecondary,
|
|
44670
|
-
textTransform: "uppercase",
|
|
44671
|
-
letterSpacing: "0.5px"
|
|
44541
|
+
margin: "0 auto",
|
|
44542
|
+
height: "100%"
|
|
44672
44543
|
}
|
|
44673
|
-
},
|
|
44674
|
-
content:
|
|
44675
|
-
slideIdPrefix
|
|
44676
|
-
slideIndex:
|
|
44544
|
+
}, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
44545
|
+
content: content2,
|
|
44546
|
+
slideIdPrefix,
|
|
44547
|
+
slideIndex: 0,
|
|
44677
44548
|
isVisible: true,
|
|
44678
44549
|
theme: theme2,
|
|
44679
44550
|
onCheckboxChange,
|
|
44680
44551
|
enableHtmlPopout,
|
|
44681
44552
|
enableKeyboardScrolling,
|
|
44553
|
+
autoFocusOnVisible,
|
|
44682
44554
|
onLinkClick,
|
|
44683
44555
|
handleRunBashCommand,
|
|
44684
44556
|
fontSizeScale,
|
|
44685
44557
|
handlePromptCopy,
|
|
44686
44558
|
repositoryInfo,
|
|
44687
44559
|
transparentBackground
|
|
44688
|
-
})
|
|
44689
|
-
style: {
|
|
44690
|
-
marginTop: "32px",
|
|
44691
|
-
marginBottom: "32px",
|
|
44692
|
-
height: "1px",
|
|
44693
|
-
backgroundColor: theme2.colors.border,
|
|
44694
|
-
opacity: 0.3
|
|
44695
|
-
}
|
|
44696
|
-
})))));
|
|
44560
|
+
})));
|
|
44697
44561
|
};
|
|
44698
44562
|
const GitCommitDetailPanelContent = ({
|
|
44699
44563
|
events
|
|
@@ -45282,93 +45146,100 @@ const GitPullRequestsPanel = ({
|
|
|
45282
45146
|
}
|
|
45283
45147
|
return /* @__PURE__ */ jsxs("div", { style: containerStyle, children: [
|
|
45284
45148
|
/* @__PURE__ */ jsx("style", { children: `.hide-scrollbar::-webkit-scrollbar { display: none; }` }),
|
|
45285
|
-
/* @__PURE__ */
|
|
45149
|
+
/* @__PURE__ */ jsx(
|
|
45286
45150
|
"div",
|
|
45287
45151
|
{
|
|
45288
45152
|
style: {
|
|
45153
|
+
position: "relative",
|
|
45289
45154
|
height: "40px",
|
|
45290
|
-
|
|
45291
|
-
padding: "0 12px",
|
|
45292
|
-
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
45293
|
-
backgroundColor: theme2.colors.background,
|
|
45155
|
+
padding: "0 16px",
|
|
45294
45156
|
display: "flex",
|
|
45295
|
-
|
|
45296
|
-
justifyContent: "
|
|
45157
|
+
flexDirection: "column",
|
|
45158
|
+
justifyContent: "center",
|
|
45159
|
+
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
45160
|
+
backgroundColor: theme2.colors.backgroundLight,
|
|
45297
45161
|
boxSizing: "border-box"
|
|
45298
45162
|
},
|
|
45299
|
-
children:
|
|
45300
|
-
|
|
45301
|
-
|
|
45302
|
-
{
|
|
45303
|
-
|
|
45304
|
-
|
|
45305
|
-
|
|
45306
|
-
|
|
45307
|
-
|
|
45308
|
-
|
|
45309
|
-
|
|
45310
|
-
|
|
45311
|
-
|
|
45312
|
-
|
|
45313
|
-
|
|
45314
|
-
|
|
45315
|
-
|
|
45316
|
-
|
|
45317
|
-
|
|
45318
|
-
|
|
45319
|
-
|
|
45320
|
-
|
|
45321
|
-
|
|
45322
|
-
|
|
45323
|
-
|
|
45324
|
-
|
|
45325
|
-
|
|
45326
|
-
|
|
45327
|
-
|
|
45328
|
-
|
|
45329
|
-
|
|
45330
|
-
|
|
45331
|
-
|
|
45332
|
-
|
|
45333
|
-
|
|
45334
|
-
|
|
45335
|
-
|
|
45336
|
-
|
|
45337
|
-
|
|
45338
|
-
|
|
45339
|
-
|
|
45340
|
-
|
|
45341
|
-
|
|
45342
|
-
|
|
45343
|
-
|
|
45344
|
-
|
|
45345
|
-
|
|
45346
|
-
|
|
45347
|
-
|
|
45348
|
-
|
|
45349
|
-
|
|
45350
|
-
|
|
45351
|
-
|
|
45352
|
-
|
|
45353
|
-
|
|
45354
|
-
|
|
45355
|
-
|
|
45356
|
-
|
|
45357
|
-
|
|
45358
|
-
|
|
45359
|
-
|
|
45360
|
-
|
|
45361
|
-
|
|
45362
|
-
|
|
45363
|
-
|
|
45364
|
-
|
|
45365
|
-
|
|
45366
|
-
|
|
45367
|
-
|
|
45368
|
-
|
|
45369
|
-
|
|
45370
|
-
|
|
45371
|
-
|
|
45163
|
+
children: /* @__PURE__ */ jsxs(
|
|
45164
|
+
"div",
|
|
45165
|
+
{
|
|
45166
|
+
style: {
|
|
45167
|
+
display: "flex",
|
|
45168
|
+
alignItems: "center",
|
|
45169
|
+
justifyContent: "space-between"
|
|
45170
|
+
},
|
|
45171
|
+
children: [
|
|
45172
|
+
/* @__PURE__ */ jsx(
|
|
45173
|
+
"div",
|
|
45174
|
+
{
|
|
45175
|
+
style: {
|
|
45176
|
+
display: "flex",
|
|
45177
|
+
alignItems: "center",
|
|
45178
|
+
gap: "8px"
|
|
45179
|
+
},
|
|
45180
|
+
children: /* @__PURE__ */ jsx(
|
|
45181
|
+
"span",
|
|
45182
|
+
{
|
|
45183
|
+
style: {
|
|
45184
|
+
fontFamily: theme2.fonts.body,
|
|
45185
|
+
fontSize: theme2.fontSizes[1],
|
|
45186
|
+
color: theme2.colors.textSecondary,
|
|
45187
|
+
fontWeight: 500
|
|
45188
|
+
},
|
|
45189
|
+
children: "Open Pull Requests"
|
|
45190
|
+
}
|
|
45191
|
+
)
|
|
45192
|
+
}
|
|
45193
|
+
),
|
|
45194
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
45195
|
+
draftCount > 0 && /* @__PURE__ */ jsx(
|
|
45196
|
+
"button",
|
|
45197
|
+
{
|
|
45198
|
+
type: "button",
|
|
45199
|
+
onClick: () => setShowDrafts(!showDrafts),
|
|
45200
|
+
style: {
|
|
45201
|
+
background: showDrafts ? theme2.colors.backgroundSecondary : "none",
|
|
45202
|
+
border: `1px solid ${showDrafts ? theme2.colors.border : "transparent"}`,
|
|
45203
|
+
borderRadius: "4px",
|
|
45204
|
+
cursor: "pointer",
|
|
45205
|
+
padding: "4px 8px",
|
|
45206
|
+
color: showDrafts ? theme2.colors.primary : theme2.colors.textSecondary,
|
|
45207
|
+
fontSize: theme2.fontSizes[0],
|
|
45208
|
+
fontFamily: theme2.fonts.body,
|
|
45209
|
+
fontWeight: 500,
|
|
45210
|
+
transition: "all 0.2s ease"
|
|
45211
|
+
},
|
|
45212
|
+
title: showDrafts ? "Hide draft PRs" : "Show draft PRs",
|
|
45213
|
+
children: "Drafts"
|
|
45214
|
+
}
|
|
45215
|
+
),
|
|
45216
|
+
/* @__PURE__ */ jsx(
|
|
45217
|
+
"button",
|
|
45218
|
+
{
|
|
45219
|
+
type: "button",
|
|
45220
|
+
onClick: handleRefresh,
|
|
45221
|
+
disabled: isLoading,
|
|
45222
|
+
style: {
|
|
45223
|
+
background: "none",
|
|
45224
|
+
border: "1px solid transparent",
|
|
45225
|
+
borderRadius: "4px",
|
|
45226
|
+
cursor: isLoading ? "default" : "pointer",
|
|
45227
|
+
padding: "4px",
|
|
45228
|
+
display: "flex",
|
|
45229
|
+
alignItems: "center",
|
|
45230
|
+
justifyContent: "center",
|
|
45231
|
+
color: theme2.colors.textSecondary,
|
|
45232
|
+
opacity: isLoading ? 0.7 : 1,
|
|
45233
|
+
transition: "all 0.2s ease"
|
|
45234
|
+
},
|
|
45235
|
+
title: isLoading ? "Refreshing..." : "Refresh",
|
|
45236
|
+
children: isLoading ? /* @__PURE__ */ jsx(LoaderCircle, { size: 16, className: "spin" }) : /* @__PURE__ */ jsx(RefreshCcw, { size: 16 })
|
|
45237
|
+
}
|
|
45238
|
+
)
|
|
45239
|
+
] })
|
|
45240
|
+
]
|
|
45241
|
+
}
|
|
45242
|
+
)
|
|
45372
45243
|
}
|
|
45373
45244
|
),
|
|
45374
45245
|
/* @__PURE__ */ jsx(
|
|
@@ -45497,23 +45368,9 @@ const PullRequestCard = ({ pr, theme: theme2, isSelected, onClick }) => {
|
|
|
45497
45368
|
),
|
|
45498
45369
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
45499
45370
|
"by ",
|
|
45500
|
-
((_a = pr.user) == null ? void 0 : _a.login) ?? "unknown"
|
|
45371
|
+
/* @__PURE__ */ jsx("span", { style: { color: theme2.colors.primary }, children: ((_a = pr.user) == null ? void 0 : _a.login) ?? "unknown" })
|
|
45501
45372
|
] }),
|
|
45502
|
-
/* @__PURE__ */
|
|
45503
|
-
"span",
|
|
45504
|
-
{
|
|
45505
|
-
style: {
|
|
45506
|
-
display: "inline-flex",
|
|
45507
|
-
alignItems: "center",
|
|
45508
|
-
gap: "4px"
|
|
45509
|
-
},
|
|
45510
|
-
children: [
|
|
45511
|
-
/* @__PURE__ */ jsx(Calendar, { size: 12 }),
|
|
45512
|
-
" ",
|
|
45513
|
-
formatDate(pr.created_at)
|
|
45514
|
-
]
|
|
45515
|
-
}
|
|
45516
|
-
),
|
|
45373
|
+
/* @__PURE__ */ jsx("span", { children: formatDate(pr.created_at) }),
|
|
45517
45374
|
!isOpen && /* @__PURE__ */ jsxs(
|
|
45518
45375
|
"span",
|
|
45519
45376
|
{
|