@industry-theme/git-panels 0.1.8 → 0.1.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/dist/panels/GitPullRequestDetailPanel.d.ts +1 -1
- package/dist/panels/GitPullRequestDetailPanel.d.ts.map +1 -1
- package/dist/panels/GitPullRequestsPanel.d.ts.map +1 -1
- package/dist/panels.bundle.js +57 -407
- package/dist/panels.bundle.js.map +1 -1
- package/dist/types/index.d.ts +0 -6
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitPullRequestDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GitPullRequestDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,UAAU,CAAC;AAmVrE;;GAEG;AACH,eAAO,MAAM,yBAAyB,+BAAmC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,EAyDpD,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;AAU5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAMpD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2S9D,CAAC;AAwIF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAkE/C,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import * as React2 from "react";
|
|
3
|
-
import React2__default, { forwardRef, createElement, createContext, useContext, useState,
|
|
3
|
+
import React2__default, { forwardRef, createElement, createContext, useContext, useState, useMemo, useEffect, useRef, useImperativeHandle, useCallback, useLayoutEffect } from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.552.0 - ISC
|
|
@@ -107,78 +107,70 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
107
107
|
* This source code is licensed under the ISC license.
|
|
108
108
|
* See the LICENSE file in the root directory of this source tree.
|
|
109
109
|
*/
|
|
110
|
-
const __iconNode$
|
|
110
|
+
const __iconNode$h = [
|
|
111
111
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
112
112
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
113
113
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
114
114
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
115
115
|
];
|
|
116
|
-
const Calendar = createLucideIcon("calendar", __iconNode$
|
|
116
|
+
const Calendar = createLucideIcon("calendar", __iconNode$h);
|
|
117
117
|
/**
|
|
118
118
|
* @license lucide-react v0.552.0 - ISC
|
|
119
119
|
*
|
|
120
120
|
* This source code is licensed under the ISC license.
|
|
121
121
|
* See the LICENSE file in the root directory of this source tree.
|
|
122
122
|
*/
|
|
123
|
-
const __iconNode$
|
|
124
|
-
const Check = createLucideIcon("check", __iconNode$
|
|
123
|
+
const __iconNode$g = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
124
|
+
const Check = createLucideIcon("check", __iconNode$g);
|
|
125
125
|
/**
|
|
126
126
|
* @license lucide-react v0.552.0 - ISC
|
|
127
127
|
*
|
|
128
128
|
* This source code is licensed under the ISC license.
|
|
129
129
|
* See the LICENSE file in the root directory of this source tree.
|
|
130
130
|
*/
|
|
131
|
-
const __iconNode$
|
|
132
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
131
|
+
const __iconNode$f = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
132
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$f);
|
|
133
133
|
/**
|
|
134
134
|
* @license lucide-react v0.552.0 - ISC
|
|
135
135
|
*
|
|
136
136
|
* This source code is licensed under the ISC license.
|
|
137
137
|
* See the LICENSE file in the root directory of this source tree.
|
|
138
138
|
*/
|
|
139
|
-
const __iconNode$
|
|
140
|
-
const ChevronUp = createLucideIcon("chevron-up", __iconNode$h);
|
|
141
|
-
/**
|
|
142
|
-
* @license lucide-react v0.552.0 - ISC
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the ISC license.
|
|
145
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/
|
|
147
|
-
const __iconNode$g = [
|
|
139
|
+
const __iconNode$e = [
|
|
148
140
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
149
141
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
150
142
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
151
143
|
];
|
|
152
|
-
const CircleAlert = createLucideIcon("circle-alert", __iconNode$
|
|
144
|
+
const CircleAlert = createLucideIcon("circle-alert", __iconNode$e);
|
|
153
145
|
/**
|
|
154
146
|
* @license lucide-react v0.552.0 - ISC
|
|
155
147
|
*
|
|
156
148
|
* This source code is licensed under the ISC license.
|
|
157
149
|
* See the LICENSE file in the root directory of this source tree.
|
|
158
150
|
*/
|
|
159
|
-
const __iconNode$
|
|
151
|
+
const __iconNode$d = [
|
|
160
152
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }],
|
|
161
153
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
162
154
|
];
|
|
163
|
-
const Clock = createLucideIcon("clock", __iconNode$
|
|
155
|
+
const Clock = createLucideIcon("clock", __iconNode$d);
|
|
164
156
|
/**
|
|
165
157
|
* @license lucide-react v0.552.0 - ISC
|
|
166
158
|
*
|
|
167
159
|
* This source code is licensed under the ISC license.
|
|
168
160
|
* See the LICENSE file in the root directory of this source tree.
|
|
169
161
|
*/
|
|
170
|
-
const __iconNode$
|
|
162
|
+
const __iconNode$c = [
|
|
171
163
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
172
164
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
173
165
|
];
|
|
174
|
-
const Copy = createLucideIcon("copy", __iconNode$
|
|
166
|
+
const Copy = createLucideIcon("copy", __iconNode$c);
|
|
175
167
|
/**
|
|
176
168
|
* @license lucide-react v0.552.0 - ISC
|
|
177
169
|
*
|
|
178
170
|
* This source code is licensed under the ISC license.
|
|
179
171
|
* See the LICENSE file in the root directory of this source tree.
|
|
180
172
|
*/
|
|
181
|
-
const __iconNode$
|
|
173
|
+
const __iconNode$b = [
|
|
182
174
|
["path", { d: "m15 15 6 6", key: "1s409w" }],
|
|
183
175
|
["path", { d: "m15 9 6-6", key: "ko1vev" }],
|
|
184
176
|
["path", { d: "M21 16v5h-5", key: "1ck2sf" }],
|
|
@@ -188,26 +180,26 @@ const __iconNode$d = [
|
|
|
188
180
|
["path", { d: "M3 8V3h5", key: "1ln10m" }],
|
|
189
181
|
["path", { d: "M9 9 3 3", key: "v551iv" }]
|
|
190
182
|
];
|
|
191
|
-
const Expand = createLucideIcon("expand", __iconNode$
|
|
183
|
+
const Expand = createLucideIcon("expand", __iconNode$b);
|
|
192
184
|
/**
|
|
193
185
|
* @license lucide-react v0.552.0 - ISC
|
|
194
186
|
*
|
|
195
187
|
* This source code is licensed under the ISC license.
|
|
196
188
|
* See the LICENSE file in the root directory of this source tree.
|
|
197
189
|
*/
|
|
198
|
-
const __iconNode$
|
|
190
|
+
const __iconNode$a = [
|
|
199
191
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
200
192
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
201
193
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
202
194
|
];
|
|
203
|
-
const ExternalLink = createLucideIcon("external-link", __iconNode$
|
|
195
|
+
const ExternalLink = createLucideIcon("external-link", __iconNode$a);
|
|
204
196
|
/**
|
|
205
197
|
* @license lucide-react v0.552.0 - ISC
|
|
206
198
|
*
|
|
207
199
|
* This source code is licensed under the ISC license.
|
|
208
200
|
* See the LICENSE file in the root directory of this source tree.
|
|
209
201
|
*/
|
|
210
|
-
const __iconNode$
|
|
202
|
+
const __iconNode$9 = [
|
|
211
203
|
[
|
|
212
204
|
"path",
|
|
213
205
|
{
|
|
@@ -220,32 +212,7 @@ const __iconNode$b = [
|
|
|
220
212
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
221
213
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
222
214
|
];
|
|
223
|
-
const FileText = createLucideIcon("file-text", __iconNode$
|
|
224
|
-
/**
|
|
225
|
-
* @license lucide-react v0.552.0 - ISC
|
|
226
|
-
*
|
|
227
|
-
* This source code is licensed under the ISC license.
|
|
228
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
-
*/
|
|
230
|
-
const __iconNode$a = [
|
|
231
|
-
["line", { x1: "6", x2: "6", y1: "3", y2: "15", key: "17qcm7" }],
|
|
232
|
-
["circle", { cx: "18", cy: "6", r: "3", key: "1h7g24" }],
|
|
233
|
-
["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
|
|
234
|
-
["path", { d: "M18 9a9 9 0 0 1-9 9", key: "n2h4wq" }]
|
|
235
|
-
];
|
|
236
|
-
const GitBranch = createLucideIcon("git-branch", __iconNode$a);
|
|
237
|
-
/**
|
|
238
|
-
* @license lucide-react v0.552.0 - ISC
|
|
239
|
-
*
|
|
240
|
-
* This source code is licensed under the ISC license.
|
|
241
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
242
|
-
*/
|
|
243
|
-
const __iconNode$9 = [
|
|
244
|
-
["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }],
|
|
245
|
-
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
246
|
-
["path", { d: "M6 21V9a9 9 0 0 0 9 9", key: "7kw0sc" }]
|
|
247
|
-
];
|
|
248
|
-
const GitMerge = createLucideIcon("git-merge", __iconNode$9);
|
|
215
|
+
const FileText = createLucideIcon("file-text", __iconNode$9);
|
|
249
216
|
/**
|
|
250
217
|
* @license lucide-react v0.552.0 - ISC
|
|
251
218
|
*
|
|
@@ -358,158 +325,6 @@ const __iconNode = [
|
|
|
358
325
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
359
326
|
];
|
|
360
327
|
const X = createLucideIcon("x", __iconNode);
|
|
361
|
-
var terminalTheme$1 = {
|
|
362
|
-
space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
|
|
363
|
-
fonts: {
|
|
364
|
-
body: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
|
|
365
|
-
heading: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
|
|
366
|
-
monospace: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace'
|
|
367
|
-
},
|
|
368
|
-
fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
|
|
369
|
-
fontScale: 1,
|
|
370
|
-
fontWeights: {
|
|
371
|
-
body: 400,
|
|
372
|
-
heading: 500,
|
|
373
|
-
bold: 600,
|
|
374
|
-
light: 300,
|
|
375
|
-
medium: 500,
|
|
376
|
-
semibold: 600
|
|
377
|
-
},
|
|
378
|
-
lineHeights: {
|
|
379
|
-
body: 1.6,
|
|
380
|
-
heading: 1.3,
|
|
381
|
-
tight: 1.4,
|
|
382
|
-
relaxed: 1.8
|
|
383
|
-
},
|
|
384
|
-
breakpoints: ["640px", "768px", "1024px", "1280px"],
|
|
385
|
-
sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
|
|
386
|
-
radii: [0, 2, 4, 6, 8, 12, 16, 24],
|
|
387
|
-
shadows: [
|
|
388
|
-
"none",
|
|
389
|
-
"0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
390
|
-
"0 2px 4px 0 rgba(0, 0, 0, 0.06)",
|
|
391
|
-
"0 4px 6px 0 rgba(0, 0, 0, 0.07)",
|
|
392
|
-
"0 8px 12px 0 rgba(0, 0, 0, 0.08)",
|
|
393
|
-
"0 16px 24px 0 rgba(0, 0, 0, 0.10)"
|
|
394
|
-
],
|
|
395
|
-
zIndices: [0, 1, 10, 20, 30, 40, 50],
|
|
396
|
-
colors: {
|
|
397
|
-
text: "#e4e4e4",
|
|
398
|
-
background: "rgba(10, 10, 10, 0.85)",
|
|
399
|
-
primary: "#66b3ff",
|
|
400
|
-
secondary: "#80c4ff",
|
|
401
|
-
accent: "#66ff99",
|
|
402
|
-
highlight: "rgba(102, 179, 255, 0.15)",
|
|
403
|
-
muted: "rgba(26, 26, 26, 0.8)",
|
|
404
|
-
success: "#66ff99",
|
|
405
|
-
warning: "#ffcc66",
|
|
406
|
-
error: "#ff6666",
|
|
407
|
-
info: "#66b3ff",
|
|
408
|
-
border: "rgba(255, 255, 255, 0.1)",
|
|
409
|
-
backgroundSecondary: "rgba(15, 15, 15, 0.9)",
|
|
410
|
-
backgroundTertiary: "rgba(20, 20, 20, 0.9)",
|
|
411
|
-
backgroundLight: "rgba(255, 255, 255, 0.05)",
|
|
412
|
-
backgroundHover: "rgba(102, 179, 255, 0.08)",
|
|
413
|
-
surface: "rgba(15, 15, 15, 0.95)",
|
|
414
|
-
textSecondary: "rgba(255, 255, 255, 0.7)",
|
|
415
|
-
textTertiary: "rgba(255, 255, 255, 0.5)",
|
|
416
|
-
textMuted: "rgba(255, 255, 255, 0.4)",
|
|
417
|
-
highlightBg: "rgba(255, 235, 59, 0.25)",
|
|
418
|
-
highlightBorder: "rgba(255, 235, 59, 0.5)"
|
|
419
|
-
},
|
|
420
|
-
modes: {
|
|
421
|
-
light: {
|
|
422
|
-
text: "#1a1a1a",
|
|
423
|
-
background: "rgba(255, 255, 255, 0.9)",
|
|
424
|
-
primary: "#0066cc",
|
|
425
|
-
secondary: "#0052a3",
|
|
426
|
-
accent: "#00cc88",
|
|
427
|
-
highlight: "rgba(0, 102, 204, 0.08)",
|
|
428
|
-
muted: "rgba(245, 245, 245, 0.8)",
|
|
429
|
-
success: "#00cc88",
|
|
430
|
-
warning: "#ffaa00",
|
|
431
|
-
error: "#ff3333",
|
|
432
|
-
info: "#0066cc",
|
|
433
|
-
border: "rgba(0, 0, 0, 0.1)",
|
|
434
|
-
backgroundSecondary: "rgba(250, 250, 250, 0.9)",
|
|
435
|
-
backgroundTertiary: "rgba(245, 245, 245, 0.9)",
|
|
436
|
-
backgroundLight: "rgba(0, 0, 0, 0.02)",
|
|
437
|
-
backgroundHover: "rgba(0, 102, 204, 0.04)",
|
|
438
|
-
surface: "rgba(255, 255, 255, 0.95)",
|
|
439
|
-
textSecondary: "rgba(0, 0, 0, 0.6)",
|
|
440
|
-
textTertiary: "rgba(0, 0, 0, 0.4)",
|
|
441
|
-
textMuted: "rgba(0, 0, 0, 0.3)",
|
|
442
|
-
highlightBg: "rgba(255, 235, 59, 0.3)",
|
|
443
|
-
highlightBorder: "rgba(255, 235, 59, 0.6)"
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
buttons: {
|
|
447
|
-
primary: {
|
|
448
|
-
color: "white",
|
|
449
|
-
bg: "primary",
|
|
450
|
-
borderWidth: 0,
|
|
451
|
-
"&:hover": {
|
|
452
|
-
bg: "secondary"
|
|
453
|
-
}
|
|
454
|
-
},
|
|
455
|
-
secondary: {
|
|
456
|
-
color: "primary",
|
|
457
|
-
bg: "transparent",
|
|
458
|
-
borderWidth: 1,
|
|
459
|
-
borderStyle: "solid",
|
|
460
|
-
borderColor: "primary",
|
|
461
|
-
"&:hover": {
|
|
462
|
-
bg: "highlight"
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
ghost: {
|
|
466
|
-
color: "text",
|
|
467
|
-
bg: "transparent",
|
|
468
|
-
"&:hover": {
|
|
469
|
-
bg: "backgroundHover"
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
text: {
|
|
474
|
-
heading: {
|
|
475
|
-
fontFamily: "heading",
|
|
476
|
-
fontWeight: "heading",
|
|
477
|
-
lineHeight: "heading"
|
|
478
|
-
},
|
|
479
|
-
body: {
|
|
480
|
-
fontFamily: "body",
|
|
481
|
-
fontWeight: "body",
|
|
482
|
-
lineHeight: "body"
|
|
483
|
-
},
|
|
484
|
-
caption: {
|
|
485
|
-
fontSize: 1,
|
|
486
|
-
color: "textSecondary"
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
cards: {
|
|
490
|
-
primary: {
|
|
491
|
-
bg: "surface",
|
|
492
|
-
border: "1px solid",
|
|
493
|
-
borderColor: "border",
|
|
494
|
-
borderRadius: 1
|
|
495
|
-
},
|
|
496
|
-
secondary: {
|
|
497
|
-
bg: "backgroundSecondary",
|
|
498
|
-
border: "1px solid",
|
|
499
|
-
borderColor: "border",
|
|
500
|
-
borderRadius: 1
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
};
|
|
504
|
-
function getMode(theme2, mode) {
|
|
505
|
-
if (!mode || !theme2.modes || !theme2.modes[mode]) {
|
|
506
|
-
return theme2.colors;
|
|
507
|
-
}
|
|
508
|
-
return {
|
|
509
|
-
...theme2.colors,
|
|
510
|
-
...theme2.modes[mode]
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
328
|
var ThemeContext$1;
|
|
514
329
|
var getThemeContext$1 = () => {
|
|
515
330
|
if (typeof window !== "undefined") {
|
|
@@ -533,46 +348,6 @@ var useTheme = () => {
|
|
|
533
348
|
}
|
|
534
349
|
return context;
|
|
535
350
|
};
|
|
536
|
-
var ThemeProvider = ({
|
|
537
|
-
children: children2,
|
|
538
|
-
theme: customTheme = theme$1,
|
|
539
|
-
initialMode
|
|
540
|
-
}) => {
|
|
541
|
-
const [mode, setMode] = useState(initialMode);
|
|
542
|
-
const activeTheme = React2__default.useMemo(() => {
|
|
543
|
-
if (!mode || !customTheme.modes || !customTheme.modes[mode]) {
|
|
544
|
-
return customTheme;
|
|
545
|
-
}
|
|
546
|
-
return {
|
|
547
|
-
...customTheme,
|
|
548
|
-
colors: getMode(customTheme, mode)
|
|
549
|
-
};
|
|
550
|
-
}, [customTheme, mode]);
|
|
551
|
-
useEffect(() => {
|
|
552
|
-
if (!initialMode) {
|
|
553
|
-
const savedMode = localStorage.getItem("principlemd-theme-mode");
|
|
554
|
-
if (savedMode) {
|
|
555
|
-
setMode(savedMode);
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}, [initialMode]);
|
|
559
|
-
useEffect(() => {
|
|
560
|
-
if (mode) {
|
|
561
|
-
localStorage.setItem("principlemd-theme-mode", mode);
|
|
562
|
-
} else {
|
|
563
|
-
localStorage.removeItem("principlemd-theme-mode");
|
|
564
|
-
}
|
|
565
|
-
}, [mode]);
|
|
566
|
-
const value = {
|
|
567
|
-
theme: activeTheme,
|
|
568
|
-
mode,
|
|
569
|
-
setMode
|
|
570
|
-
};
|
|
571
|
-
return /* @__PURE__ */ React2__default.createElement(ThemeContextSingleton.Provider, {
|
|
572
|
-
value
|
|
573
|
-
}, children2);
|
|
574
|
-
};
|
|
575
|
-
var theme$1 = terminalTheme$1;
|
|
576
351
|
function formatRelativeTime(dateStr) {
|
|
577
352
|
if (!dateStr) return "Unknown";
|
|
578
353
|
const date = new Date(dateStr);
|
|
@@ -1064,6 +839,7 @@ const GitPullRequestsPanel = ({
|
|
|
1064
839
|
);
|
|
1065
840
|
}
|
|
1066
841
|
return /* @__PURE__ */ jsxs("div", { style: containerStyle, children: [
|
|
842
|
+
/* @__PURE__ */ jsx("style", { children: `.hide-scrollbar::-webkit-scrollbar { display: none; }` }),
|
|
1067
843
|
/* @__PURE__ */ jsxs(
|
|
1068
844
|
"div",
|
|
1069
845
|
{
|
|
@@ -1181,8 +957,11 @@ const GitPullRequestsPanel = ({
|
|
|
1181
957
|
flex: 1,
|
|
1182
958
|
overflowY: "auto",
|
|
1183
959
|
display: "flex",
|
|
1184
|
-
flexDirection: "column"
|
|
960
|
+
flexDirection: "column",
|
|
961
|
+
scrollbarWidth: "none",
|
|
962
|
+
msOverflowStyle: "none"
|
|
1185
963
|
},
|
|
964
|
+
className: "hide-scrollbar",
|
|
1186
965
|
children: filteredPullRequests.length === 0 ? /* @__PURE__ */ jsxs(
|
|
1187
966
|
"div",
|
|
1188
967
|
{
|
|
@@ -1208,8 +987,7 @@ const GitPullRequestsPanel = ({
|
|
|
1208
987
|
] });
|
|
1209
988
|
};
|
|
1210
989
|
const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
1211
|
-
var _a
|
|
1212
|
-
const [isExpanded, setIsExpanded] = useState(false);
|
|
990
|
+
var _a;
|
|
1213
991
|
const isMerged = pr.merged_at !== null;
|
|
1214
992
|
const isOpen = pr.state === "open";
|
|
1215
993
|
const totalComments = (pr.comments || 0) + (pr.review_comments || 0);
|
|
@@ -1308,23 +1086,6 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
|
1308
1086
|
children: "Draft"
|
|
1309
1087
|
}
|
|
1310
1088
|
),
|
|
1311
|
-
pr.changed_files != null && /* @__PURE__ */ jsxs(
|
|
1312
|
-
"span",
|
|
1313
|
-
{
|
|
1314
|
-
style: {
|
|
1315
|
-
display: "inline-flex",
|
|
1316
|
-
alignItems: "center",
|
|
1317
|
-
gap: "4px"
|
|
1318
|
-
},
|
|
1319
|
-
children: [
|
|
1320
|
-
/* @__PURE__ */ jsx(FileText, { size: 12 }),
|
|
1321
|
-
" ",
|
|
1322
|
-
pr.changed_files,
|
|
1323
|
-
" ",
|
|
1324
|
-
pr.changed_files === 1 ? "file" : "files"
|
|
1325
|
-
]
|
|
1326
|
-
}
|
|
1327
|
-
),
|
|
1328
1089
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
1329
1090
|
"by ",
|
|
1330
1091
|
((_a = pr.user) == null ? void 0 : _a.login) ?? "unknown"
|
|
@@ -1376,76 +1137,6 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
|
1376
1137
|
)
|
|
1377
1138
|
]
|
|
1378
1139
|
}
|
|
1379
|
-
),
|
|
1380
|
-
/* @__PURE__ */ jsxs(
|
|
1381
|
-
"button",
|
|
1382
|
-
{
|
|
1383
|
-
type: "button",
|
|
1384
|
-
onClick: (e) => {
|
|
1385
|
-
e.stopPropagation();
|
|
1386
|
-
setIsExpanded(!isExpanded);
|
|
1387
|
-
},
|
|
1388
|
-
style: {
|
|
1389
|
-
display: "inline-flex",
|
|
1390
|
-
alignItems: "center",
|
|
1391
|
-
gap: "4px",
|
|
1392
|
-
padding: 0,
|
|
1393
|
-
border: "none",
|
|
1394
|
-
backgroundColor: "transparent",
|
|
1395
|
-
color: theme2.colors.textSecondary,
|
|
1396
|
-
fontFamily: theme2.fonts.body,
|
|
1397
|
-
fontSize: theme2.fontSizes[0],
|
|
1398
|
-
cursor: "pointer"
|
|
1399
|
-
},
|
|
1400
|
-
children: [
|
|
1401
|
-
isExpanded ? /* @__PURE__ */ jsx(ChevronUp, { size: 14 }) : /* @__PURE__ */ jsx(ChevronDown, { size: 14 }),
|
|
1402
|
-
isExpanded ? "Collapse" : "Expand"
|
|
1403
|
-
]
|
|
1404
|
-
}
|
|
1405
|
-
),
|
|
1406
|
-
isExpanded && /* @__PURE__ */ jsxs(
|
|
1407
|
-
"div",
|
|
1408
|
-
{
|
|
1409
|
-
style: {
|
|
1410
|
-
display: "flex",
|
|
1411
|
-
flexDirection: "column",
|
|
1412
|
-
gap: "10px"
|
|
1413
|
-
},
|
|
1414
|
-
children: [
|
|
1415
|
-
/* @__PURE__ */ jsxs(
|
|
1416
|
-
"span",
|
|
1417
|
-
{
|
|
1418
|
-
style: {
|
|
1419
|
-
display: "inline-flex",
|
|
1420
|
-
alignItems: "center",
|
|
1421
|
-
gap: "6px",
|
|
1422
|
-
color: theme2.colors.textSecondary,
|
|
1423
|
-
fontFamily: theme2.fonts.monospace,
|
|
1424
|
-
fontSize: theme2.fontSizes[0]
|
|
1425
|
-
},
|
|
1426
|
-
children: [
|
|
1427
|
-
/* @__PURE__ */ jsx(GitBranch, { size: 14 }),
|
|
1428
|
-
((_b = pr.head) == null ? void 0 : _b.ref) ?? "unknown",
|
|
1429
|
-
" → ",
|
|
1430
|
-
((_c = pr.base) == null ? void 0 : _c.ref) ?? "unknown"
|
|
1431
|
-
]
|
|
1432
|
-
}
|
|
1433
|
-
),
|
|
1434
|
-
pr.body && /* @__PURE__ */ jsx(
|
|
1435
|
-
"div",
|
|
1436
|
-
{
|
|
1437
|
-
style: {
|
|
1438
|
-
color: theme2.colors.textSecondary,
|
|
1439
|
-
fontFamily: theme2.fonts.body,
|
|
1440
|
-
fontSize: theme2.fontSizes[1],
|
|
1441
|
-
lineHeight: 1.5,
|
|
1442
|
-
wordBreak: "break-word"
|
|
1443
|
-
},
|
|
1444
|
-
children: pr.body
|
|
1445
|
-
}
|
|
1446
|
-
)
|
|
1447
|
-
]
|
|
1448
|
-
}
|
|
1449
1140
|
)
|
|
1450
1141
|
]
|
|
1451
1142
|
}
|
|
@@ -45622,7 +45313,6 @@ const GitPullRequestDetailPanelContent = ({
|
|
|
45622
45313
|
textTransform: "uppercase"
|
|
45623
45314
|
},
|
|
45624
45315
|
children: [
|
|
45625
|
-
isMerged ? /* @__PURE__ */ jsx(GitMerge, { size: 12 }) : /* @__PURE__ */ jsx(GitPullRequest, { size: 12 }),
|
|
45626
45316
|
statusLabel,
|
|
45627
45317
|
selectedPR.draft && /* @__PURE__ */ jsx(
|
|
45628
45318
|
"span",
|
|
@@ -45651,14 +45341,40 @@ const GitPullRequestDetailPanelContent = ({
|
|
|
45651
45341
|
alignItems: "center",
|
|
45652
45342
|
gap: "6px",
|
|
45653
45343
|
color: theme2.colors.textSecondary,
|
|
45654
|
-
fontFamily: theme2.fonts.monospace,
|
|
45655
45344
|
fontSize: theme2.fontSizes[0]
|
|
45656
45345
|
},
|
|
45657
45346
|
children: [
|
|
45658
|
-
/* @__PURE__ */ jsx(
|
|
45659
|
-
((_a = selectedPR.
|
|
45660
|
-
"
|
|
45661
|
-
((_b = selectedPR.
|
|
45347
|
+
isOpen && /* @__PURE__ */ jsx("span", { style: { fontFamily: theme2.fonts.body }, children: "on" }),
|
|
45348
|
+
/* @__PURE__ */ jsx("span", { style: { fontFamily: theme2.fonts.monospace, color: theme2.colors.primary }, children: ((_a = selectedPR.head) == null ? void 0 : _a.ref) ?? "?" }),
|
|
45349
|
+
/* @__PURE__ */ jsx("span", { style: { fontFamily: theme2.fonts.body }, children: isOpen ? "merging into" : "into" }),
|
|
45350
|
+
/* @__PURE__ */ jsx("span", { style: { fontFamily: theme2.fonts.monospace, color: theme2.colors.primary }, children: ((_b = selectedPR.base) == null ? void 0 : _b.ref) ?? "?" })
|
|
45351
|
+
]
|
|
45352
|
+
}
|
|
45353
|
+
),
|
|
45354
|
+
!isOpen && /* @__PURE__ */ jsx(
|
|
45355
|
+
"span",
|
|
45356
|
+
{
|
|
45357
|
+
style: {
|
|
45358
|
+
color: theme2.colors.textSecondary,
|
|
45359
|
+
fontSize: theme2.fontSizes[0],
|
|
45360
|
+
fontFamily: theme2.fonts.body
|
|
45361
|
+
},
|
|
45362
|
+
children: formatDate(selectedPR.merged_at || selectedPR.closed_at || selectedPR.updated_at)
|
|
45363
|
+
}
|
|
45364
|
+
),
|
|
45365
|
+
totalComments > 0 && /* @__PURE__ */ jsxs(
|
|
45366
|
+
"span",
|
|
45367
|
+
{
|
|
45368
|
+
style: {
|
|
45369
|
+
display: "inline-flex",
|
|
45370
|
+
alignItems: "center",
|
|
45371
|
+
gap: "4px",
|
|
45372
|
+
color: theme2.colors.textSecondary,
|
|
45373
|
+
fontSize: theme2.fontSizes[0]
|
|
45374
|
+
},
|
|
45375
|
+
children: [
|
|
45376
|
+
/* @__PURE__ */ jsx(MessageSquare, { size: 12 }),
|
|
45377
|
+
totalComments
|
|
45662
45378
|
]
|
|
45663
45379
|
}
|
|
45664
45380
|
),
|
|
@@ -45735,40 +45451,6 @@ const GitPullRequestDetailPanelContent = ({
|
|
|
45735
45451
|
children: selectedPR.title
|
|
45736
45452
|
}
|
|
45737
45453
|
),
|
|
45738
|
-
(totalComments > 0 || !isOpen) && /* @__PURE__ */ jsxs(
|
|
45739
|
-
"div",
|
|
45740
|
-
{
|
|
45741
|
-
style: {
|
|
45742
|
-
display: "flex",
|
|
45743
|
-
gap: "16px",
|
|
45744
|
-
marginBottom: "20px",
|
|
45745
|
-
padding: "12px",
|
|
45746
|
-
backgroundColor: theme2.colors.backgroundSecondary,
|
|
45747
|
-
borderRadius: "8px",
|
|
45748
|
-
border: `1px solid ${theme2.colors.border}`
|
|
45749
|
-
},
|
|
45750
|
-
children: [
|
|
45751
|
-
totalComments > 0 && /* @__PURE__ */ jsx(
|
|
45752
|
-
MetadataRow,
|
|
45753
|
-
{
|
|
45754
|
-
icon: /* @__PURE__ */ jsx(MessageSquare, { size: 14 }),
|
|
45755
|
-
label: "Comments",
|
|
45756
|
-
value: String(totalComments),
|
|
45757
|
-
theme: theme2
|
|
45758
|
-
}
|
|
45759
|
-
),
|
|
45760
|
-
!isOpen && /* @__PURE__ */ jsx(
|
|
45761
|
-
MetadataRow,
|
|
45762
|
-
{
|
|
45763
|
-
icon: isMerged ? /* @__PURE__ */ jsx(GitMerge, { size: 14 }) : /* @__PURE__ */ jsx(GitPullRequest, { size: 14 }),
|
|
45764
|
-
label: isMerged ? "Merged" : "Closed",
|
|
45765
|
-
value: formatDate(selectedPR.merged_at || selectedPR.closed_at || selectedPR.updated_at),
|
|
45766
|
-
theme: theme2
|
|
45767
|
-
}
|
|
45768
|
-
)
|
|
45769
|
-
]
|
|
45770
|
-
}
|
|
45771
|
-
),
|
|
45772
45454
|
/* @__PURE__ */ jsx(
|
|
45773
45455
|
"div",
|
|
45774
45456
|
{
|
|
@@ -45805,39 +45487,7 @@ const GitPullRequestDetailPanelContent = ({
|
|
|
45805
45487
|
)
|
|
45806
45488
|
] });
|
|
45807
45489
|
};
|
|
45808
|
-
const
|
|
45809
|
-
"div",
|
|
45810
|
-
{
|
|
45811
|
-
style: {
|
|
45812
|
-
display: "flex",
|
|
45813
|
-
alignItems: "center",
|
|
45814
|
-
gap: "8px",
|
|
45815
|
-
fontFamily: theme2.fonts.body,
|
|
45816
|
-
fontSize: theme2.fontSizes[0]
|
|
45817
|
-
},
|
|
45818
|
-
children: [
|
|
45819
|
-
/* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textMuted }, children: icon }),
|
|
45820
|
-
/* @__PURE__ */ jsxs("span", { style: { color: theme2.colors.textSecondary }, children: [
|
|
45821
|
-
label,
|
|
45822
|
-
":"
|
|
45823
|
-
] }),
|
|
45824
|
-
/* @__PURE__ */ jsx(
|
|
45825
|
-
"span",
|
|
45826
|
-
{
|
|
45827
|
-
style: {
|
|
45828
|
-
color: theme2.colors.text,
|
|
45829
|
-
fontFamily: mono ? theme2.fonts.monospace : theme2.fonts.body,
|
|
45830
|
-
fontWeight: 500
|
|
45831
|
-
},
|
|
45832
|
-
children: value
|
|
45833
|
-
}
|
|
45834
|
-
)
|
|
45835
|
-
]
|
|
45836
|
-
}
|
|
45837
|
-
);
|
|
45838
|
-
const GitPullRequestDetailPanel = (props) => {
|
|
45839
|
-
return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(GitPullRequestDetailPanelContent, { ...props }) });
|
|
45840
|
-
};
|
|
45490
|
+
const GitPullRequestDetailPanel = GitPullRequestDetailPanelContent;
|
|
45841
45491
|
const GitPullRequestDetailPanelPreview = () => {
|
|
45842
45492
|
const { theme: theme2 } = useTheme();
|
|
45843
45493
|
return /* @__PURE__ */ jsxs(
|