@industry-theme/github-panels 0.1.0 → 0.1.1
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/panels.bundle.js +93 -480
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +1 -1
package/dist/panels.bundle.js
CHANGED
|
@@ -1,34 +1,5 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
1
2
|
import React2, { createContext, useState, useEffect, useContext, forwardRef, createElement, useRef, useCallback, useMemo } from "react";
|
|
2
|
-
var jsxDevRuntime = { exports: {} };
|
|
3
|
-
var reactJsxDevRuntime_production = {};
|
|
4
|
-
/**
|
|
5
|
-
* @license React
|
|
6
|
-
* react-jsx-dev-runtime.production.js
|
|
7
|
-
*
|
|
8
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/
|
|
13
|
-
var hasRequiredReactJsxDevRuntime_production;
|
|
14
|
-
function requireReactJsxDevRuntime_production() {
|
|
15
|
-
if (hasRequiredReactJsxDevRuntime_production) return reactJsxDevRuntime_production;
|
|
16
|
-
hasRequiredReactJsxDevRuntime_production = 1;
|
|
17
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
18
|
-
reactJsxDevRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
19
|
-
reactJsxDevRuntime_production.jsxDEV = void 0;
|
|
20
|
-
return reactJsxDevRuntime_production;
|
|
21
|
-
}
|
|
22
|
-
var hasRequiredJsxDevRuntime;
|
|
23
|
-
function requireJsxDevRuntime() {
|
|
24
|
-
if (hasRequiredJsxDevRuntime) return jsxDevRuntime.exports;
|
|
25
|
-
hasRequiredJsxDevRuntime = 1;
|
|
26
|
-
{
|
|
27
|
-
jsxDevRuntime.exports = requireReactJsxDevRuntime_production();
|
|
28
|
-
}
|
|
29
|
-
return jsxDevRuntime.exports;
|
|
30
|
-
}
|
|
31
|
-
var jsxDevRuntimeExports = requireJsxDevRuntime();
|
|
32
3
|
var terminalTheme = {
|
|
33
4
|
space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
|
|
34
5
|
fonts: {
|
|
@@ -556,7 +527,7 @@ const GitHubProjectCard = ({
|
|
|
556
527
|
};
|
|
557
528
|
const starCount = repository.stargazers_count ?? 0;
|
|
558
529
|
const forkCount = repository.forks_count ?? 0;
|
|
559
|
-
return /* @__PURE__ */
|
|
530
|
+
return /* @__PURE__ */ jsxs(
|
|
560
531
|
"div",
|
|
561
532
|
{
|
|
562
533
|
style: {
|
|
@@ -574,7 +545,7 @@ const GitHubProjectCard = ({
|
|
|
574
545
|
onMouseEnter: () => setIsHovered(true),
|
|
575
546
|
onMouseLeave: () => setIsHovered(false),
|
|
576
547
|
children: [
|
|
577
|
-
repository.owner.avatar_url ? /* @__PURE__ */
|
|
548
|
+
repository.owner.avatar_url ? /* @__PURE__ */ jsx(
|
|
578
549
|
"img",
|
|
579
550
|
{
|
|
580
551
|
src: repository.owner.avatar_url,
|
|
@@ -585,16 +556,8 @@ const GitHubProjectCard = ({
|
|
|
585
556
|
borderRadius: "50%",
|
|
586
557
|
flexShrink: 0
|
|
587
558
|
}
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
false,
|
|
591
|
-
{
|
|
592
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
593
|
-
lineNumber: 127,
|
|
594
|
-
columnNumber: 9
|
|
595
|
-
},
|
|
596
|
-
void 0
|
|
597
|
-
) : /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
559
|
+
}
|
|
560
|
+
) : /* @__PURE__ */ jsx(
|
|
598
561
|
"div",
|
|
599
562
|
{
|
|
600
563
|
style: {
|
|
@@ -611,17 +574,9 @@ const GitHubProjectCard = ({
|
|
|
611
574
|
color: theme2.colors.textSecondary
|
|
612
575
|
},
|
|
613
576
|
children: ((_a = repository.owner.login[0]) == null ? void 0 : _a.toUpperCase()) || "?"
|
|
614
|
-
}
|
|
615
|
-
void 0,
|
|
616
|
-
false,
|
|
617
|
-
{
|
|
618
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
619
|
-
lineNumber: 138,
|
|
620
|
-
columnNumber: 9
|
|
621
|
-
},
|
|
622
|
-
void 0
|
|
577
|
+
}
|
|
623
578
|
),
|
|
624
|
-
/* @__PURE__ */
|
|
579
|
+
/* @__PURE__ */ jsxs(
|
|
625
580
|
"div",
|
|
626
581
|
{
|
|
627
582
|
style: {
|
|
@@ -632,8 +587,8 @@ const GitHubProjectCard = ({
|
|
|
632
587
|
gap: "4px"
|
|
633
588
|
},
|
|
634
589
|
children: [
|
|
635
|
-
/* @__PURE__ */
|
|
636
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
591
|
+
/* @__PURE__ */ jsx(
|
|
637
592
|
"span",
|
|
638
593
|
{
|
|
639
594
|
style: {
|
|
@@ -645,32 +600,12 @@ const GitHubProjectCard = ({
|
|
|
645
600
|
whiteSpace: "nowrap"
|
|
646
601
|
},
|
|
647
602
|
children: repository.name
|
|
648
|
-
}
|
|
649
|
-
void 0,
|
|
650
|
-
false,
|
|
651
|
-
{
|
|
652
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
653
|
-
lineNumber: 169,
|
|
654
|
-
columnNumber: 11
|
|
655
|
-
},
|
|
656
|
-
void 0
|
|
603
|
+
}
|
|
657
604
|
),
|
|
658
|
-
repository.private && /* @__PURE__ */
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
}, void 0),
|
|
663
|
-
repository.fork && /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(GitFork, { size: 12, color: theme2.colors.textSecondary }, void 0, false, {
|
|
664
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
665
|
-
lineNumber: 185,
|
|
666
|
-
columnNumber: 13
|
|
667
|
-
}, void 0)
|
|
668
|
-
] }, void 0, true, {
|
|
669
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
670
|
-
lineNumber: 168,
|
|
671
|
-
columnNumber: 9
|
|
672
|
-
}, void 0),
|
|
673
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
605
|
+
repository.private && /* @__PURE__ */ jsx(Lock, { size: 12, color: theme2.colors.warning || "#f59e0b" }),
|
|
606
|
+
repository.fork && /* @__PURE__ */ jsx(GitFork, { size: 12, color: theme2.colors.textSecondary })
|
|
607
|
+
] }),
|
|
608
|
+
/* @__PURE__ */ jsxs(
|
|
674
609
|
"div",
|
|
675
610
|
{
|
|
676
611
|
style: {
|
|
@@ -682,8 +617,8 @@ const GitHubProjectCard = ({
|
|
|
682
617
|
flexWrap: "wrap"
|
|
683
618
|
},
|
|
684
619
|
children: [
|
|
685
|
-
repository.language && /* @__PURE__ */
|
|
686
|
-
/* @__PURE__ */
|
|
620
|
+
repository.language && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
621
|
+
/* @__PURE__ */ jsx(
|
|
687
622
|
"span",
|
|
688
623
|
{
|
|
689
624
|
style: {
|
|
@@ -693,70 +628,22 @@ const GitHubProjectCard = ({
|
|
|
693
628
|
borderRadius: "50%",
|
|
694
629
|
backgroundColor: getLanguageColor(repository.language)
|
|
695
630
|
}
|
|
696
|
-
}
|
|
697
|
-
void 0,
|
|
698
|
-
false,
|
|
699
|
-
{
|
|
700
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
701
|
-
lineNumber: 203,
|
|
702
|
-
columnNumber: 15
|
|
703
|
-
},
|
|
704
|
-
void 0
|
|
631
|
+
}
|
|
705
632
|
),
|
|
706
|
-
/* @__PURE__ */
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
] },
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
}
|
|
716
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
717
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(Star, { size: 12 }, void 0, false, {
|
|
718
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
719
|
-
lineNumber: 218,
|
|
720
|
-
columnNumber: 13
|
|
721
|
-
}, void 0),
|
|
722
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { children: formatCount(starCount) }, void 0, false, {
|
|
723
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
724
|
-
lineNumber: 219,
|
|
725
|
-
columnNumber: 13
|
|
726
|
-
}, void 0)
|
|
727
|
-
] }, void 0, true, {
|
|
728
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
729
|
-
lineNumber: 217,
|
|
730
|
-
columnNumber: 11
|
|
731
|
-
}, void 0),
|
|
732
|
-
forkCount > 0 && /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
733
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(GitFork, { size: 12 }, void 0, false, {
|
|
734
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
735
|
-
lineNumber: 225,
|
|
736
|
-
columnNumber: 15
|
|
737
|
-
}, void 0),
|
|
738
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { children: formatCount(forkCount) }, void 0, false, {
|
|
739
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
740
|
-
lineNumber: 226,
|
|
741
|
-
columnNumber: 15
|
|
742
|
-
}, void 0)
|
|
743
|
-
] }, void 0, true, {
|
|
744
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
745
|
-
lineNumber: 224,
|
|
746
|
-
columnNumber: 13
|
|
747
|
-
}, void 0)
|
|
633
|
+
/* @__PURE__ */ jsx("span", { children: repository.language })
|
|
634
|
+
] }),
|
|
635
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
636
|
+
/* @__PURE__ */ jsx(Star, { size: 12 }),
|
|
637
|
+
/* @__PURE__ */ jsx("span", { children: formatCount(starCount) })
|
|
638
|
+
] }),
|
|
639
|
+
forkCount > 0 && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
640
|
+
/* @__PURE__ */ jsx(GitFork, { size: 12 }),
|
|
641
|
+
/* @__PURE__ */ jsx("span", { children: formatCount(forkCount) })
|
|
642
|
+
] })
|
|
748
643
|
]
|
|
749
|
-
}
|
|
750
|
-
void 0,
|
|
751
|
-
true,
|
|
752
|
-
{
|
|
753
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
754
|
-
lineNumber: 190,
|
|
755
|
-
columnNumber: 9
|
|
756
|
-
},
|
|
757
|
-
void 0
|
|
644
|
+
}
|
|
758
645
|
),
|
|
759
|
-
repository.description && /* @__PURE__ */
|
|
646
|
+
repository.description && /* @__PURE__ */ jsx(
|
|
760
647
|
"div",
|
|
761
648
|
{
|
|
762
649
|
style: {
|
|
@@ -767,28 +654,12 @@ const GitHubProjectCard = ({
|
|
|
767
654
|
whiteSpace: "nowrap"
|
|
768
655
|
},
|
|
769
656
|
children: repository.description
|
|
770
|
-
}
|
|
771
|
-
void 0,
|
|
772
|
-
false,
|
|
773
|
-
{
|
|
774
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
775
|
-
lineNumber: 233,
|
|
776
|
-
columnNumber: 11
|
|
777
|
-
},
|
|
778
|
-
void 0
|
|
657
|
+
}
|
|
779
658
|
)
|
|
780
659
|
]
|
|
781
|
-
}
|
|
782
|
-
void 0,
|
|
783
|
-
true,
|
|
784
|
-
{
|
|
785
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
786
|
-
lineNumber: 158,
|
|
787
|
-
columnNumber: 7
|
|
788
|
-
},
|
|
789
|
-
void 0
|
|
660
|
+
}
|
|
790
661
|
),
|
|
791
|
-
/* @__PURE__ */
|
|
662
|
+
/* @__PURE__ */ jsx(
|
|
792
663
|
"button",
|
|
793
664
|
{
|
|
794
665
|
type: "button",
|
|
@@ -815,31 +686,11 @@ const GitHubProjectCard = ({
|
|
|
815
686
|
e.currentTarget.style.backgroundColor = theme2.colors.background;
|
|
816
687
|
e.currentTarget.style.color = theme2.colors.textSecondary;
|
|
817
688
|
},
|
|
818
|
-
children: /* @__PURE__ */
|
|
819
|
-
|
|
820
|
-
lineNumber: 275,
|
|
821
|
-
columnNumber: 9
|
|
822
|
-
}, void 0)
|
|
823
|
-
},
|
|
824
|
-
void 0,
|
|
825
|
-
false,
|
|
826
|
-
{
|
|
827
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
828
|
-
lineNumber: 248,
|
|
829
|
-
columnNumber: 7
|
|
830
|
-
},
|
|
831
|
-
void 0
|
|
689
|
+
children: /* @__PURE__ */ jsx(ExternalLink, { size: 14 })
|
|
690
|
+
}
|
|
832
691
|
)
|
|
833
692
|
]
|
|
834
|
-
}
|
|
835
|
-
void 0,
|
|
836
|
-
true,
|
|
837
|
-
{
|
|
838
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/components/GitHubProjectCard.tsx",
|
|
839
|
-
lineNumber: 103,
|
|
840
|
-
columnNumber: 5
|
|
841
|
-
},
|
|
842
|
-
void 0
|
|
693
|
+
}
|
|
843
694
|
);
|
|
844
695
|
};
|
|
845
696
|
const EXPANDED_BREAKPOINT = 600;
|
|
@@ -854,7 +705,7 @@ const Section = ({
|
|
|
854
705
|
}) => {
|
|
855
706
|
const { theme: theme2 } = useTheme();
|
|
856
707
|
const showContent = layoutMode === "expanded" || isExpanded;
|
|
857
|
-
return /* @__PURE__ */
|
|
708
|
+
return /* @__PURE__ */ jsxs(
|
|
858
709
|
"div",
|
|
859
710
|
{
|
|
860
711
|
style: {
|
|
@@ -867,7 +718,7 @@ const Section = ({
|
|
|
867
718
|
overflow: "hidden"
|
|
868
719
|
},
|
|
869
720
|
children: [
|
|
870
|
-
/* @__PURE__ */
|
|
721
|
+
/* @__PURE__ */ jsxs(
|
|
871
722
|
"button",
|
|
872
723
|
{
|
|
873
724
|
type: "button",
|
|
@@ -887,22 +738,10 @@ const Section = ({
|
|
|
887
738
|
borderBottom: layoutMode === "expanded" ? `1px solid ${theme2.colors.border}` : void 0
|
|
888
739
|
},
|
|
889
740
|
children: [
|
|
890
|
-
layoutMode === "compact" && (isExpanded ? /* @__PURE__ */
|
|
891
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
892
|
-
lineNumber: 88,
|
|
893
|
-
columnNumber: 52
|
|
894
|
-
}, void 0) : /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(ChevronRight, { size: 16 }, void 0, false, {
|
|
895
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
896
|
-
lineNumber: 88,
|
|
897
|
-
columnNumber: 80
|
|
898
|
-
}, void 0)),
|
|
741
|
+
layoutMode === "compact" && (isExpanded ? /* @__PURE__ */ jsx(ChevronDown, { size: 16 }) : /* @__PURE__ */ jsx(ChevronRight, { size: 16 })),
|
|
899
742
|
icon,
|
|
900
|
-
/* @__PURE__ */
|
|
901
|
-
|
|
902
|
-
lineNumber: 90,
|
|
903
|
-
columnNumber: 9
|
|
904
|
-
}, void 0),
|
|
905
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
743
|
+
/* @__PURE__ */ jsx("span", { children: title }),
|
|
744
|
+
/* @__PURE__ */ jsx(
|
|
906
745
|
"span",
|
|
907
746
|
{
|
|
908
747
|
style: {
|
|
@@ -914,28 +753,12 @@ const Section = ({
|
|
|
914
753
|
borderRadius: "10px"
|
|
915
754
|
},
|
|
916
755
|
children: count
|
|
917
|
-
}
|
|
918
|
-
void 0,
|
|
919
|
-
false,
|
|
920
|
-
{
|
|
921
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
922
|
-
lineNumber: 91,
|
|
923
|
-
columnNumber: 9
|
|
924
|
-
},
|
|
925
|
-
void 0
|
|
756
|
+
}
|
|
926
757
|
)
|
|
927
758
|
]
|
|
928
|
-
}
|
|
929
|
-
void 0,
|
|
930
|
-
true,
|
|
931
|
-
{
|
|
932
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
933
|
-
lineNumber: 70,
|
|
934
|
-
columnNumber: 7
|
|
935
|
-
},
|
|
936
|
-
void 0
|
|
759
|
+
}
|
|
937
760
|
),
|
|
938
|
-
showContent && /* @__PURE__ */
|
|
761
|
+
showContent && /* @__PURE__ */ jsx(
|
|
939
762
|
"div",
|
|
940
763
|
{
|
|
941
764
|
style: {
|
|
@@ -947,26 +770,10 @@ const Section = ({
|
|
|
947
770
|
overflowY: layoutMode === "expanded" ? "auto" : void 0
|
|
948
771
|
},
|
|
949
772
|
children
|
|
950
|
-
}
|
|
951
|
-
void 0,
|
|
952
|
-
false,
|
|
953
|
-
{
|
|
954
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
955
|
-
lineNumber: 105,
|
|
956
|
-
columnNumber: 9
|
|
957
|
-
},
|
|
958
|
-
void 0
|
|
773
|
+
}
|
|
959
774
|
)
|
|
960
775
|
]
|
|
961
|
-
}
|
|
962
|
-
void 0,
|
|
963
|
-
true,
|
|
964
|
-
{
|
|
965
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
966
|
-
lineNumber: 59,
|
|
967
|
-
columnNumber: 5
|
|
968
|
-
},
|
|
969
|
-
void 0
|
|
776
|
+
}
|
|
970
777
|
);
|
|
971
778
|
};
|
|
972
779
|
const GitHubProjectsPanelContent = ({
|
|
@@ -1039,7 +846,7 @@ const GitHubProjectsPanelContent = ({
|
|
|
1039
846
|
}
|
|
1040
847
|
});
|
|
1041
848
|
};
|
|
1042
|
-
const renderEmptyState = (message) => /* @__PURE__ */
|
|
849
|
+
const renderEmptyState = (message) => /* @__PURE__ */ jsx(
|
|
1043
850
|
"div",
|
|
1044
851
|
{
|
|
1045
852
|
style: {
|
|
@@ -1050,34 +857,19 @@ const GitHubProjectsPanelContent = ({
|
|
|
1050
857
|
gridColumn: layoutMode === "expanded" ? "1 / -1" : void 0
|
|
1051
858
|
},
|
|
1052
859
|
children: message
|
|
1053
|
-
}
|
|
1054
|
-
void 0,
|
|
1055
|
-
false,
|
|
1056
|
-
{
|
|
1057
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1058
|
-
lineNumber: 214,
|
|
1059
|
-
columnNumber: 5
|
|
1060
|
-
},
|
|
1061
|
-
void 0
|
|
860
|
+
}
|
|
1062
861
|
);
|
|
1063
|
-
const renderCards = (repos) => repos.map((repo) => /* @__PURE__ */
|
|
862
|
+
const renderCards = (repos) => repos.map((repo) => /* @__PURE__ */ jsx(
|
|
1064
863
|
GitHubProjectCard,
|
|
1065
864
|
{
|
|
1066
865
|
repository: repo,
|
|
1067
866
|
isSelected: selectedRepoId === repo.id,
|
|
1068
867
|
onSelect: handleSelectRepository
|
|
1069
868
|
},
|
|
1070
|
-
repo.id
|
|
1071
|
-
false,
|
|
1072
|
-
{
|
|
1073
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1074
|
-
lineNumber: 230,
|
|
1075
|
-
columnNumber: 7
|
|
1076
|
-
},
|
|
1077
|
-
void 0
|
|
869
|
+
repo.id
|
|
1078
870
|
));
|
|
1079
871
|
if (hasData && data && !data.isAuthenticated) {
|
|
1080
|
-
return /* @__PURE__ */
|
|
872
|
+
return /* @__PURE__ */ jsxs(
|
|
1081
873
|
"div",
|
|
1082
874
|
{
|
|
1083
875
|
ref: containerRef,
|
|
@@ -1092,12 +884,8 @@ const GitHubProjectsPanelContent = ({
|
|
|
1092
884
|
color: theme2.colors.textSecondary
|
|
1093
885
|
},
|
|
1094
886
|
children: [
|
|
1095
|
-
/* @__PURE__ */
|
|
1096
|
-
|
|
1097
|
-
lineNumber: 254,
|
|
1098
|
-
columnNumber: 9
|
|
1099
|
-
}, void 0),
|
|
1100
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
887
|
+
/* @__PURE__ */ jsx(LogIn, { size: 48, color: theme2.colors.textSecondary }),
|
|
888
|
+
/* @__PURE__ */ jsx(
|
|
1101
889
|
"h3",
|
|
1102
890
|
{
|
|
1103
891
|
style: {
|
|
@@ -1106,22 +894,10 @@ const GitHubProjectsPanelContent = ({
|
|
|
1106
894
|
color: theme2.colors.text
|
|
1107
895
|
},
|
|
1108
896
|
children: "Sign in to GitHub"
|
|
1109
|
-
}
|
|
1110
|
-
void 0,
|
|
1111
|
-
false,
|
|
1112
|
-
{
|
|
1113
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1114
|
-
lineNumber: 255,
|
|
1115
|
-
columnNumber: 9
|
|
1116
|
-
},
|
|
1117
|
-
void 0
|
|
897
|
+
}
|
|
1118
898
|
),
|
|
1119
|
-
/* @__PURE__ */
|
|
1120
|
-
|
|
1121
|
-
lineNumber: 264,
|
|
1122
|
-
columnNumber: 9
|
|
1123
|
-
}, void 0),
|
|
1124
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
899
|
+
/* @__PURE__ */ jsx("p", { style: { margin: 0, textAlign: "center" }, children: "Connect your GitHub account to see your repositories" }),
|
|
900
|
+
/* @__PURE__ */ jsxs(
|
|
1125
901
|
"button",
|
|
1126
902
|
{
|
|
1127
903
|
type: "button",
|
|
@@ -1139,37 +915,17 @@ const GitHubProjectsPanelContent = ({
|
|
|
1139
915
|
cursor: "pointer"
|
|
1140
916
|
},
|
|
1141
917
|
children: [
|
|
1142
|
-
/* @__PURE__ */
|
|
1143
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1144
|
-
lineNumber: 283,
|
|
1145
|
-
columnNumber: 11
|
|
1146
|
-
}, void 0),
|
|
918
|
+
/* @__PURE__ */ jsx(Github, { size: 18 }),
|
|
1147
919
|
"Sign in with GitHub"
|
|
1148
920
|
]
|
|
1149
|
-
}
|
|
1150
|
-
void 0,
|
|
1151
|
-
true,
|
|
1152
|
-
{
|
|
1153
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1154
|
-
lineNumber: 267,
|
|
1155
|
-
columnNumber: 9
|
|
1156
|
-
},
|
|
1157
|
-
void 0
|
|
921
|
+
}
|
|
1158
922
|
)
|
|
1159
923
|
]
|
|
1160
|
-
}
|
|
1161
|
-
void 0,
|
|
1162
|
-
true,
|
|
1163
|
-
{
|
|
1164
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1165
|
-
lineNumber: 241,
|
|
1166
|
-
columnNumber: 7
|
|
1167
|
-
},
|
|
1168
|
-
void 0
|
|
924
|
+
}
|
|
1169
925
|
);
|
|
1170
926
|
}
|
|
1171
927
|
if (isLoading) {
|
|
1172
|
-
return /* @__PURE__ */
|
|
928
|
+
return /* @__PURE__ */ jsx(
|
|
1173
929
|
"div",
|
|
1174
930
|
{
|
|
1175
931
|
ref: containerRef,
|
|
@@ -1181,19 +937,11 @@ const GitHubProjectsPanelContent = ({
|
|
|
1181
937
|
color: theme2.colors.textSecondary
|
|
1182
938
|
},
|
|
1183
939
|
children: "Loading repositories..."
|
|
1184
|
-
}
|
|
1185
|
-
void 0,
|
|
1186
|
-
false,
|
|
1187
|
-
{
|
|
1188
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1189
|
-
lineNumber: 293,
|
|
1190
|
-
columnNumber: 7
|
|
1191
|
-
},
|
|
1192
|
-
void 0
|
|
940
|
+
}
|
|
1193
941
|
);
|
|
1194
942
|
}
|
|
1195
943
|
if (!hasData || !data) {
|
|
1196
|
-
return /* @__PURE__ */
|
|
944
|
+
return /* @__PURE__ */ jsxs(
|
|
1197
945
|
"div",
|
|
1198
946
|
{
|
|
1199
947
|
ref: containerRef,
|
|
@@ -1208,29 +956,13 @@ const GitHubProjectsPanelContent = ({
|
|
|
1208
956
|
color: theme2.colors.textSecondary
|
|
1209
957
|
},
|
|
1210
958
|
children: [
|
|
1211
|
-
/* @__PURE__ */
|
|
1212
|
-
|
|
1213
|
-
lineNumber: 324,
|
|
1214
|
-
columnNumber: 9
|
|
1215
|
-
}, void 0),
|
|
1216
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("p", { style: { margin: 0 }, children: "No GitHub data available" }, void 0, false, {
|
|
1217
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1218
|
-
lineNumber: 325,
|
|
1219
|
-
columnNumber: 9
|
|
1220
|
-
}, void 0)
|
|
959
|
+
/* @__PURE__ */ jsx(CircleAlert, { size: 48 }),
|
|
960
|
+
/* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: "No GitHub data available" })
|
|
1221
961
|
]
|
|
1222
|
-
}
|
|
1223
|
-
void 0,
|
|
1224
|
-
true,
|
|
1225
|
-
{
|
|
1226
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1227
|
-
lineNumber: 311,
|
|
1228
|
-
columnNumber: 7
|
|
1229
|
-
},
|
|
1230
|
-
void 0
|
|
962
|
+
}
|
|
1231
963
|
);
|
|
1232
964
|
}
|
|
1233
|
-
return /* @__PURE__ */
|
|
965
|
+
return /* @__PURE__ */ jsxs(
|
|
1234
966
|
"div",
|
|
1235
967
|
{
|
|
1236
968
|
ref: containerRef,
|
|
@@ -1243,7 +975,7 @@ const GitHubProjectsPanelContent = ({
|
|
|
1243
975
|
fontFamily: theme2.fonts.body
|
|
1244
976
|
},
|
|
1245
977
|
children: [
|
|
1246
|
-
/* @__PURE__ */
|
|
978
|
+
/* @__PURE__ */ jsxs(
|
|
1247
979
|
"div",
|
|
1248
980
|
{
|
|
1249
981
|
style: {
|
|
@@ -1255,12 +987,8 @@ const GitHubProjectsPanelContent = ({
|
|
|
1255
987
|
flexWrap: "wrap"
|
|
1256
988
|
},
|
|
1257
989
|
children: [
|
|
1258
|
-
/* @__PURE__ */
|
|
1259
|
-
|
|
1260
|
-
lineNumber: 353,
|
|
1261
|
-
columnNumber: 9
|
|
1262
|
-
}, void 0),
|
|
1263
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
990
|
+
/* @__PURE__ */ jsx(Github, { size: 20, color: theme2.colors.primary }),
|
|
991
|
+
/* @__PURE__ */ jsx(
|
|
1264
992
|
"h2",
|
|
1265
993
|
{
|
|
1266
994
|
style: {
|
|
@@ -1269,17 +997,9 @@ const GitHubProjectsPanelContent = ({
|
|
|
1269
997
|
fontWeight: theme2.fontWeights.semibold
|
|
1270
998
|
},
|
|
1271
999
|
children: "GitHub Projects"
|
|
1272
|
-
}
|
|
1273
|
-
void 0,
|
|
1274
|
-
false,
|
|
1275
|
-
{
|
|
1276
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1277
|
-
lineNumber: 354,
|
|
1278
|
-
columnNumber: 9
|
|
1279
|
-
},
|
|
1280
|
-
void 0
|
|
1000
|
+
}
|
|
1281
1001
|
),
|
|
1282
|
-
data.username && /* @__PURE__ */
|
|
1002
|
+
data.username && /* @__PURE__ */ jsxs(
|
|
1283
1003
|
"span",
|
|
1284
1004
|
{
|
|
1285
1005
|
style: {
|
|
@@ -1290,28 +1010,12 @@ const GitHubProjectsPanelContent = ({
|
|
|
1290
1010
|
"@",
|
|
1291
1011
|
data.username
|
|
1292
1012
|
]
|
|
1293
|
-
}
|
|
1294
|
-
void 0,
|
|
1295
|
-
true,
|
|
1296
|
-
{
|
|
1297
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1298
|
-
lineNumber: 364,
|
|
1299
|
-
columnNumber: 11
|
|
1300
|
-
},
|
|
1301
|
-
void 0
|
|
1013
|
+
}
|
|
1302
1014
|
)
|
|
1303
1015
|
]
|
|
1304
|
-
}
|
|
1305
|
-
void 0,
|
|
1306
|
-
true,
|
|
1307
|
-
{
|
|
1308
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1309
|
-
lineNumber: 343,
|
|
1310
|
-
columnNumber: 7
|
|
1311
|
-
},
|
|
1312
|
-
void 0
|
|
1016
|
+
}
|
|
1313
1017
|
),
|
|
1314
|
-
/* @__PURE__ */
|
|
1018
|
+
/* @__PURE__ */ jsx("div", { style: { padding: "12px 16px" }, children: /* @__PURE__ */ jsxs(
|
|
1315
1019
|
"div",
|
|
1316
1020
|
{
|
|
1317
1021
|
style: {
|
|
@@ -1324,12 +1028,8 @@ const GitHubProjectsPanelContent = ({
|
|
|
1324
1028
|
border: `1px solid ${theme2.colors.border}`
|
|
1325
1029
|
},
|
|
1326
1030
|
children: [
|
|
1327
|
-
/* @__PURE__ */
|
|
1328
|
-
|
|
1329
|
-
lineNumber: 388,
|
|
1330
|
-
columnNumber: 11
|
|
1331
|
-
}, void 0),
|
|
1332
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
1031
|
+
/* @__PURE__ */ jsx(Search, { size: 16, color: theme2.colors.textSecondary }),
|
|
1032
|
+
/* @__PURE__ */ jsx(
|
|
1333
1033
|
"input",
|
|
1334
1034
|
{
|
|
1335
1035
|
type: "text",
|
|
@@ -1344,32 +1044,12 @@ const GitHubProjectsPanelContent = ({
|
|
|
1344
1044
|
fontSize: `${theme2.fontSizes[2]}px`,
|
|
1345
1045
|
color: theme2.colors.text
|
|
1346
1046
|
}
|
|
1347
|
-
}
|
|
1348
|
-
void 0,
|
|
1349
|
-
false,
|
|
1350
|
-
{
|
|
1351
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1352
|
-
lineNumber: 389,
|
|
1353
|
-
columnNumber: 11
|
|
1354
|
-
},
|
|
1355
|
-
void 0
|
|
1047
|
+
}
|
|
1356
1048
|
)
|
|
1357
1049
|
]
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
{
|
|
1362
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1363
|
-
lineNumber: 377,
|
|
1364
|
-
columnNumber: 9
|
|
1365
|
-
},
|
|
1366
|
-
void 0
|
|
1367
|
-
) }, void 0, false, {
|
|
1368
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1369
|
-
lineNumber: 376,
|
|
1370
|
-
columnNumber: 7
|
|
1371
|
-
}, void 0),
|
|
1372
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
1050
|
+
}
|
|
1051
|
+
) }),
|
|
1052
|
+
/* @__PURE__ */ jsxs(
|
|
1373
1053
|
"div",
|
|
1374
1054
|
{
|
|
1375
1055
|
style: {
|
|
@@ -1381,129 +1061,62 @@ const GitHubProjectsPanelContent = ({
|
|
|
1381
1061
|
overflowX: layoutMode === "expanded" ? "auto" : void 0
|
|
1382
1062
|
},
|
|
1383
1063
|
children: [
|
|
1384
|
-
/* @__PURE__ */
|
|
1064
|
+
/* @__PURE__ */ jsx(
|
|
1385
1065
|
Section,
|
|
1386
1066
|
{
|
|
1387
1067
|
id: "owned",
|
|
1388
1068
|
title: "Your Repositories",
|
|
1389
|
-
icon: /* @__PURE__ */
|
|
1390
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1391
|
-
lineNumber: 421,
|
|
1392
|
-
columnNumber: 17
|
|
1393
|
-
}, void 0),
|
|
1069
|
+
icon: /* @__PURE__ */ jsx(Folder, { size: 16, color: theme2.colors.primary }),
|
|
1394
1070
|
count: filteredOwned.length,
|
|
1395
1071
|
isExpanded: expandedSections.has("owned"),
|
|
1396
1072
|
onToggle: () => toggleSection("owned"),
|
|
1397
1073
|
layoutMode,
|
|
1398
1074
|
children: filteredOwned.length === 0 ? renderEmptyState(searchQuery ? "No repositories match your search" : "No repositories found") : renderCards(filteredOwned)
|
|
1399
|
-
}
|
|
1400
|
-
void 0,
|
|
1401
|
-
false,
|
|
1402
|
-
{
|
|
1403
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1404
|
-
lineNumber: 418,
|
|
1405
|
-
columnNumber: 9
|
|
1406
|
-
},
|
|
1407
|
-
void 0
|
|
1075
|
+
}
|
|
1408
1076
|
),
|
|
1409
|
-
filteredOrgs.map((org) => /* @__PURE__ */
|
|
1077
|
+
filteredOrgs.map((org) => /* @__PURE__ */ jsx(
|
|
1410
1078
|
Section,
|
|
1411
1079
|
{
|
|
1412
1080
|
id: `org-${org.id}`,
|
|
1413
1081
|
title: org.login,
|
|
1414
|
-
icon: org.avatar_url ? /* @__PURE__ */
|
|
1082
|
+
icon: org.avatar_url ? /* @__PURE__ */ jsx(
|
|
1415
1083
|
"img",
|
|
1416
1084
|
{
|
|
1417
1085
|
src: org.avatar_url,
|
|
1418
1086
|
alt: org.login,
|
|
1419
1087
|
style: { width: 16, height: 16, borderRadius: 4 }
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
false,
|
|
1423
|
-
{
|
|
1424
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1425
|
-
lineNumber: 440,
|
|
1426
|
-
columnNumber: 17
|
|
1427
|
-
},
|
|
1428
|
-
void 0
|
|
1429
|
-
) : /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(Building2, { size: 16, color: theme2.colors.info || "#3b82f6" }, void 0, false, {
|
|
1430
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1431
|
-
lineNumber: 446,
|
|
1432
|
-
columnNumber: 17
|
|
1433
|
-
}, void 0),
|
|
1088
|
+
}
|
|
1089
|
+
) : /* @__PURE__ */ jsx(Building2, { size: 16, color: theme2.colors.info || "#3b82f6" }),
|
|
1434
1090
|
count: org.repositories.length,
|
|
1435
1091
|
isExpanded: expandedSections.has(`org-${org.id}`),
|
|
1436
1092
|
onToggle: () => toggleSection(`org-${org.id}`),
|
|
1437
1093
|
layoutMode,
|
|
1438
1094
|
children: org.repositories.length === 0 ? renderEmptyState(searchQuery ? "No repositories match your search" : "No repositories") : renderCards(org.repositories)
|
|
1439
1095
|
},
|
|
1440
|
-
org.id
|
|
1441
|
-
false,
|
|
1442
|
-
{
|
|
1443
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1444
|
-
lineNumber: 434,
|
|
1445
|
-
columnNumber: 11
|
|
1446
|
-
},
|
|
1447
|
-
void 0
|
|
1096
|
+
org.id
|
|
1448
1097
|
)),
|
|
1449
|
-
/* @__PURE__ */
|
|
1098
|
+
/* @__PURE__ */ jsx(
|
|
1450
1099
|
Section,
|
|
1451
1100
|
{
|
|
1452
1101
|
id: "starred",
|
|
1453
1102
|
title: "Starred",
|
|
1454
|
-
icon: /* @__PURE__ */
|
|
1455
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1456
|
-
lineNumber: 464,
|
|
1457
|
-
columnNumber: 17
|
|
1458
|
-
}, void 0),
|
|
1103
|
+
icon: /* @__PURE__ */ jsx(Star, { size: 16, color: theme2.colors.warning || "#f59e0b" }),
|
|
1459
1104
|
count: filteredStarred.length,
|
|
1460
1105
|
isExpanded: expandedSections.has("starred"),
|
|
1461
1106
|
onToggle: () => toggleSection("starred"),
|
|
1462
1107
|
layoutMode,
|
|
1463
1108
|
children: filteredStarred.length === 0 ? renderEmptyState(searchQuery ? "No repositories match your search" : "No starred repositories") : renderCards(filteredStarred)
|
|
1464
|
-
}
|
|
1465
|
-
void 0,
|
|
1466
|
-
false,
|
|
1467
|
-
{
|
|
1468
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1469
|
-
lineNumber: 461,
|
|
1470
|
-
columnNumber: 9
|
|
1471
|
-
},
|
|
1472
|
-
void 0
|
|
1109
|
+
}
|
|
1473
1110
|
)
|
|
1474
1111
|
]
|
|
1475
|
-
}
|
|
1476
|
-
void 0,
|
|
1477
|
-
true,
|
|
1478
|
-
{
|
|
1479
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1480
|
-
lineNumber: 407,
|
|
1481
|
-
columnNumber: 7
|
|
1482
|
-
},
|
|
1483
|
-
void 0
|
|
1112
|
+
}
|
|
1484
1113
|
)
|
|
1485
1114
|
]
|
|
1486
|
-
}
|
|
1487
|
-
void 0,
|
|
1488
|
-
true,
|
|
1489
|
-
{
|
|
1490
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1491
|
-
lineNumber: 331,
|
|
1492
|
-
columnNumber: 5
|
|
1493
|
-
},
|
|
1494
|
-
void 0
|
|
1115
|
+
}
|
|
1495
1116
|
);
|
|
1496
1117
|
};
|
|
1497
1118
|
const GitHubProjectsPanel = (props) => {
|
|
1498
|
-
return /* @__PURE__ */
|
|
1499
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1500
|
-
lineNumber: 493,
|
|
1501
|
-
columnNumber: 7
|
|
1502
|
-
}, void 0) }, void 0, false, {
|
|
1503
|
-
fileName: "/Users/griever/Developer/new-panels/industry-themed-github-panels/src/panels/GitHubProjectsPanel.tsx",
|
|
1504
|
-
lineNumber: 492,
|
|
1505
|
-
columnNumber: 5
|
|
1506
|
-
}, void 0);
|
|
1119
|
+
return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(GitHubProjectsPanelContent, { ...props }) });
|
|
1507
1120
|
};
|
|
1508
1121
|
const GitHubProjectsPanelMetadata = {
|
|
1509
1122
|
id: "github-projects",
|