@industry-theme/github-panels 0.3.2 → 0.4.0
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/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/panels/ProfilePanel/index.d.ts +56 -0
- package/dist/panels/ProfilePanel/index.d.ts.map +1 -0
- package/dist/panels/ProfilePanel/tools.d.ts +49 -0
- package/dist/panels/ProfilePanel/tools.d.ts.map +1 -0
- package/dist/panels/ProfilePanel/types.d.ts +272 -0
- package/dist/panels/ProfilePanel/types.d.ts.map +1 -0
- package/dist/panels.bundle.js +365 -236
- package/dist/panels.bundle.js.map +1 -1
- package/dist/types/github.d.ts +2 -1
- package/dist/types/github.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/panels/OrgProfilePanel/index.d.ts +0 -46
- package/dist/panels/OrgProfilePanel/index.d.ts.map +0 -1
- package/dist/panels/OrgProfilePanel/tools.d.ts +0 -46
- package/dist/panels/OrgProfilePanel/tools.d.ts.map +0 -1
- package/dist/panels/OrgProfilePanel/types.d.ts +0 -174
- package/dist/panels/OrgProfilePanel/types.d.ts.map +0 -1
package/dist/panels.bundle.js
CHANGED
|
@@ -133,7 +133,7 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
133
133
|
* This source code is licensed under the ISC license.
|
|
134
134
|
* See the LICENSE file in the root directory of this source tree.
|
|
135
135
|
*/
|
|
136
|
-
const __iconNode$
|
|
136
|
+
const __iconNode$I = [
|
|
137
137
|
["path", { d: "M10 12h4", key: "a56b0p" }],
|
|
138
138
|
["path", { d: "M10 8h4", key: "1sr2af" }],
|
|
139
139
|
["path", { d: "M14 21v-3a2 2 0 0 0-4 0v3", key: "1rgiei" }],
|
|
@@ -146,108 +146,108 @@ const __iconNode$H = [
|
|
|
146
146
|
],
|
|
147
147
|
["path", { d: "M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16", key: "16ra0t" }]
|
|
148
148
|
];
|
|
149
|
-
const Building2 = createLucideIcon("building-2", __iconNode$
|
|
149
|
+
const Building2 = createLucideIcon("building-2", __iconNode$I);
|
|
150
150
|
/**
|
|
151
151
|
* @license lucide-react v0.552.0 - ISC
|
|
152
152
|
*
|
|
153
153
|
* This source code is licensed under the ISC license.
|
|
154
154
|
* See the LICENSE file in the root directory of this source tree.
|
|
155
155
|
*/
|
|
156
|
-
const __iconNode$
|
|
156
|
+
const __iconNode$H = [
|
|
157
157
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
158
158
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
159
159
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
160
160
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
161
161
|
];
|
|
162
|
-
const Calendar = createLucideIcon("calendar", __iconNode$
|
|
162
|
+
const Calendar = createLucideIcon("calendar", __iconNode$H);
|
|
163
163
|
/**
|
|
164
164
|
* @license lucide-react v0.552.0 - ISC
|
|
165
165
|
*
|
|
166
166
|
* This source code is licensed under the ISC license.
|
|
167
167
|
* See the LICENSE file in the root directory of this source tree.
|
|
168
168
|
*/
|
|
169
|
-
const __iconNode$
|
|
170
|
-
const Check = createLucideIcon("check", __iconNode$
|
|
169
|
+
const __iconNode$G = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
170
|
+
const Check = createLucideIcon("check", __iconNode$G);
|
|
171
171
|
/**
|
|
172
172
|
* @license lucide-react v0.552.0 - ISC
|
|
173
173
|
*
|
|
174
174
|
* This source code is licensed under the ISC license.
|
|
175
175
|
* See the LICENSE file in the root directory of this source tree.
|
|
176
176
|
*/
|
|
177
|
-
const __iconNode$
|
|
178
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
177
|
+
const __iconNode$F = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
178
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$F);
|
|
179
179
|
/**
|
|
180
180
|
* @license lucide-react v0.552.0 - ISC
|
|
181
181
|
*
|
|
182
182
|
* This source code is licensed under the ISC license.
|
|
183
183
|
* See the LICENSE file in the root directory of this source tree.
|
|
184
184
|
*/
|
|
185
|
-
const __iconNode$
|
|
186
|
-
const ChevronRight = createLucideIcon("chevron-right", __iconNode$
|
|
185
|
+
const __iconNode$E = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
186
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$E);
|
|
187
187
|
/**
|
|
188
188
|
* @license lucide-react v0.552.0 - ISC
|
|
189
189
|
*
|
|
190
190
|
* This source code is licensed under the ISC license.
|
|
191
191
|
* See the LICENSE file in the root directory of this source tree.
|
|
192
192
|
*/
|
|
193
|
-
const __iconNode$
|
|
193
|
+
const __iconNode$D = [
|
|
194
194
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
195
195
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
196
196
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
197
197
|
];
|
|
198
|
-
const CircleAlert = createLucideIcon("circle-alert", __iconNode$
|
|
198
|
+
const CircleAlert = createLucideIcon("circle-alert", __iconNode$D);
|
|
199
199
|
/**
|
|
200
200
|
* @license lucide-react v0.552.0 - ISC
|
|
201
201
|
*
|
|
202
202
|
* This source code is licensed under the ISC license.
|
|
203
203
|
* See the LICENSE file in the root directory of this source tree.
|
|
204
204
|
*/
|
|
205
|
-
const __iconNode$
|
|
205
|
+
const __iconNode$C = [
|
|
206
206
|
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
207
207
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
208
208
|
];
|
|
209
|
-
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$
|
|
209
|
+
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$C);
|
|
210
210
|
/**
|
|
211
211
|
* @license lucide-react v0.552.0 - ISC
|
|
212
212
|
*
|
|
213
213
|
* This source code is licensed under the ISC license.
|
|
214
214
|
* See the LICENSE file in the root directory of this source tree.
|
|
215
215
|
*/
|
|
216
|
-
const __iconNode$
|
|
216
|
+
const __iconNode$B = [
|
|
217
217
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
218
218
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }]
|
|
219
219
|
];
|
|
220
|
-
const CircleDot = createLucideIcon("circle-dot", __iconNode$
|
|
220
|
+
const CircleDot = createLucideIcon("circle-dot", __iconNode$B);
|
|
221
221
|
/**
|
|
222
222
|
* @license lucide-react v0.552.0 - ISC
|
|
223
223
|
*
|
|
224
224
|
* This source code is licensed under the ISC license.
|
|
225
225
|
* See the LICENSE file in the root directory of this source tree.
|
|
226
226
|
*/
|
|
227
|
-
const __iconNode$
|
|
227
|
+
const __iconNode$A = [
|
|
228
228
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
229
229
|
["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" }]
|
|
230
230
|
];
|
|
231
|
-
const Copy = createLucideIcon("copy", __iconNode$
|
|
231
|
+
const Copy = createLucideIcon("copy", __iconNode$A);
|
|
232
232
|
/**
|
|
233
233
|
* @license lucide-react v0.552.0 - ISC
|
|
234
234
|
*
|
|
235
235
|
* This source code is licensed under the ISC license.
|
|
236
236
|
* See the LICENSE file in the root directory of this source tree.
|
|
237
237
|
*/
|
|
238
|
-
const __iconNode$
|
|
238
|
+
const __iconNode$z = [
|
|
239
239
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
240
240
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
241
241
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
242
242
|
];
|
|
243
|
-
const Download = createLucideIcon("download", __iconNode$
|
|
243
|
+
const Download = createLucideIcon("download", __iconNode$z);
|
|
244
244
|
/**
|
|
245
245
|
* @license lucide-react v0.552.0 - ISC
|
|
246
246
|
*
|
|
247
247
|
* This source code is licensed under the ISC license.
|
|
248
248
|
* See the LICENSE file in the root directory of this source tree.
|
|
249
249
|
*/
|
|
250
|
-
const __iconNode$
|
|
250
|
+
const __iconNode$y = [
|
|
251
251
|
["path", { d: "m15 15 6 6", key: "1s409w" }],
|
|
252
252
|
["path", { d: "m15 9 6-6", key: "ko1vev" }],
|
|
253
253
|
["path", { d: "M21 16v5h-5", key: "1ck2sf" }],
|
|
@@ -257,26 +257,26 @@ const __iconNode$x = [
|
|
|
257
257
|
["path", { d: "M3 8V3h5", key: "1ln10m" }],
|
|
258
258
|
["path", { d: "M9 9 3 3", key: "v551iv" }]
|
|
259
259
|
];
|
|
260
|
-
const Expand = createLucideIcon("expand", __iconNode$
|
|
260
|
+
const Expand = createLucideIcon("expand", __iconNode$y);
|
|
261
261
|
/**
|
|
262
262
|
* @license lucide-react v0.552.0 - ISC
|
|
263
263
|
*
|
|
264
264
|
* This source code is licensed under the ISC license.
|
|
265
265
|
* See the LICENSE file in the root directory of this source tree.
|
|
266
266
|
*/
|
|
267
|
-
const __iconNode$
|
|
267
|
+
const __iconNode$x = [
|
|
268
268
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
269
269
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
270
270
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
271
271
|
];
|
|
272
|
-
const ExternalLink = createLucideIcon("external-link", __iconNode$
|
|
272
|
+
const ExternalLink = createLucideIcon("external-link", __iconNode$x);
|
|
273
273
|
/**
|
|
274
274
|
* @license lucide-react v0.552.0 - ISC
|
|
275
275
|
*
|
|
276
276
|
* This source code is licensed under the ISC license.
|
|
277
277
|
* See the LICENSE file in the root directory of this source tree.
|
|
278
278
|
*/
|
|
279
|
-
const __iconNode$
|
|
279
|
+
const __iconNode$w = [
|
|
280
280
|
[
|
|
281
281
|
"path",
|
|
282
282
|
{
|
|
@@ -294,14 +294,14 @@ const __iconNode$v = [
|
|
|
294
294
|
],
|
|
295
295
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
296
296
|
];
|
|
297
|
-
const EyeOff = createLucideIcon("eye-off", __iconNode$
|
|
297
|
+
const EyeOff = createLucideIcon("eye-off", __iconNode$w);
|
|
298
298
|
/**
|
|
299
299
|
* @license lucide-react v0.552.0 - ISC
|
|
300
300
|
*
|
|
301
301
|
* This source code is licensed under the ISC license.
|
|
302
302
|
* See the LICENSE file in the root directory of this source tree.
|
|
303
303
|
*/
|
|
304
|
-
const __iconNode$
|
|
304
|
+
const __iconNode$v = [
|
|
305
305
|
[
|
|
306
306
|
"path",
|
|
307
307
|
{
|
|
@@ -311,14 +311,14 @@ const __iconNode$u = [
|
|
|
311
311
|
],
|
|
312
312
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
313
313
|
];
|
|
314
|
-
const Eye = createLucideIcon("eye", __iconNode$
|
|
314
|
+
const Eye = createLucideIcon("eye", __iconNode$v);
|
|
315
315
|
/**
|
|
316
316
|
* @license lucide-react v0.552.0 - ISC
|
|
317
317
|
*
|
|
318
318
|
* This source code is licensed under the ISC license.
|
|
319
319
|
* See the LICENSE file in the root directory of this source tree.
|
|
320
320
|
*/
|
|
321
|
-
const __iconNode$
|
|
321
|
+
const __iconNode$u = [
|
|
322
322
|
[
|
|
323
323
|
"path",
|
|
324
324
|
{
|
|
@@ -331,14 +331,14 @@ const __iconNode$t = [
|
|
|
331
331
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
332
332
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
333
333
|
];
|
|
334
|
-
const FileText = createLucideIcon("file-text", __iconNode$
|
|
334
|
+
const FileText = createLucideIcon("file-text", __iconNode$u);
|
|
335
335
|
/**
|
|
336
336
|
* @license lucide-react v0.552.0 - ISC
|
|
337
337
|
*
|
|
338
338
|
* This source code is licensed under the ISC license.
|
|
339
339
|
* See the LICENSE file in the root directory of this source tree.
|
|
340
340
|
*/
|
|
341
|
-
const __iconNode$
|
|
341
|
+
const __iconNode$t = [
|
|
342
342
|
[
|
|
343
343
|
"path",
|
|
344
344
|
{
|
|
@@ -350,14 +350,14 @@ const __iconNode$s = [
|
|
|
350
350
|
["path", { d: "M18 19c-2.8 0-5-2.2-5-5v8", key: "pkpw2h" }],
|
|
351
351
|
["circle", { cx: "20", cy: "19", r: "2", key: "1obnsp" }]
|
|
352
352
|
];
|
|
353
|
-
const FolderGit2 = createLucideIcon("folder-git-2", __iconNode$
|
|
353
|
+
const FolderGit2 = createLucideIcon("folder-git-2", __iconNode$t);
|
|
354
354
|
/**
|
|
355
355
|
* @license lucide-react v0.552.0 - ISC
|
|
356
356
|
*
|
|
357
357
|
* This source code is licensed under the ISC license.
|
|
358
358
|
* See the LICENSE file in the root directory of this source tree.
|
|
359
359
|
*/
|
|
360
|
-
const __iconNode$
|
|
360
|
+
const __iconNode$s = [
|
|
361
361
|
[
|
|
362
362
|
"path",
|
|
363
363
|
{
|
|
@@ -366,14 +366,14 @@ const __iconNode$r = [
|
|
|
366
366
|
}
|
|
367
367
|
]
|
|
368
368
|
];
|
|
369
|
-
const FolderOpen = createLucideIcon("folder-open", __iconNode$
|
|
369
|
+
const FolderOpen = createLucideIcon("folder-open", __iconNode$s);
|
|
370
370
|
/**
|
|
371
371
|
* @license lucide-react v0.552.0 - ISC
|
|
372
372
|
*
|
|
373
373
|
* This source code is licensed under the ISC license.
|
|
374
374
|
* See the LICENSE file in the root directory of this source tree.
|
|
375
375
|
*/
|
|
376
|
-
const __iconNode$
|
|
376
|
+
const __iconNode$r = [
|
|
377
377
|
["path", { d: "M12 10v6", key: "1bos4e" }],
|
|
378
378
|
["path", { d: "M9 13h6", key: "1uhe8q" }],
|
|
379
379
|
[
|
|
@@ -384,14 +384,14 @@ const __iconNode$q = [
|
|
|
384
384
|
}
|
|
385
385
|
]
|
|
386
386
|
];
|
|
387
|
-
const FolderPlus = createLucideIcon("folder-plus", __iconNode$
|
|
387
|
+
const FolderPlus = createLucideIcon("folder-plus", __iconNode$r);
|
|
388
388
|
/**
|
|
389
389
|
* @license lucide-react v0.552.0 - ISC
|
|
390
390
|
*
|
|
391
391
|
* This source code is licensed under the ISC license.
|
|
392
392
|
* See the LICENSE file in the root directory of this source tree.
|
|
393
393
|
*/
|
|
394
|
-
const __iconNode$
|
|
394
|
+
const __iconNode$q = [
|
|
395
395
|
[
|
|
396
396
|
"path",
|
|
397
397
|
{
|
|
@@ -400,52 +400,52 @@ const __iconNode$p = [
|
|
|
400
400
|
}
|
|
401
401
|
]
|
|
402
402
|
];
|
|
403
|
-
const Folder = createLucideIcon("folder", __iconNode$
|
|
403
|
+
const Folder = createLucideIcon("folder", __iconNode$q);
|
|
404
404
|
/**
|
|
405
405
|
* @license lucide-react v0.552.0 - ISC
|
|
406
406
|
*
|
|
407
407
|
* This source code is licensed under the ISC license.
|
|
408
408
|
* See the LICENSE file in the root directory of this source tree.
|
|
409
409
|
*/
|
|
410
|
-
const __iconNode$
|
|
410
|
+
const __iconNode$p = [
|
|
411
411
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }],
|
|
412
412
|
["line", { x1: "3", x2: "9", y1: "12", y2: "12", key: "1dyftd" }],
|
|
413
413
|
["line", { x1: "15", x2: "21", y1: "12", y2: "12", key: "oup4p8" }]
|
|
414
414
|
];
|
|
415
|
-
const GitCommitHorizontal = createLucideIcon("git-commit-horizontal", __iconNode$
|
|
415
|
+
const GitCommitHorizontal = createLucideIcon("git-commit-horizontal", __iconNode$p);
|
|
416
416
|
/**
|
|
417
417
|
* @license lucide-react v0.552.0 - ISC
|
|
418
418
|
*
|
|
419
419
|
* This source code is licensed under the ISC license.
|
|
420
420
|
* See the LICENSE file in the root directory of this source tree.
|
|
421
421
|
*/
|
|
422
|
-
const __iconNode$
|
|
422
|
+
const __iconNode$o = [
|
|
423
423
|
["circle", { cx: "12", cy: "18", r: "3", key: "1mpf1b" }],
|
|
424
424
|
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
425
425
|
["circle", { cx: "18", cy: "6", r: "3", key: "1h7g24" }],
|
|
426
426
|
["path", { d: "M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9", key: "1uq4wg" }],
|
|
427
427
|
["path", { d: "M12 12v3", key: "158kv8" }]
|
|
428
428
|
];
|
|
429
|
-
const GitFork = createLucideIcon("git-fork", __iconNode$
|
|
429
|
+
const GitFork = createLucideIcon("git-fork", __iconNode$o);
|
|
430
430
|
/**
|
|
431
431
|
* @license lucide-react v0.552.0 - ISC
|
|
432
432
|
*
|
|
433
433
|
* This source code is licensed under the ISC license.
|
|
434
434
|
* See the LICENSE file in the root directory of this source tree.
|
|
435
435
|
*/
|
|
436
|
-
const __iconNode$
|
|
436
|
+
const __iconNode$n = [
|
|
437
437
|
["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }],
|
|
438
438
|
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
439
439
|
["path", { d: "M6 21V9a9 9 0 0 0 9 9", key: "7kw0sc" }]
|
|
440
440
|
];
|
|
441
|
-
const GitMerge = createLucideIcon("git-merge", __iconNode$
|
|
441
|
+
const GitMerge = createLucideIcon("git-merge", __iconNode$n);
|
|
442
442
|
/**
|
|
443
443
|
* @license lucide-react v0.552.0 - ISC
|
|
444
444
|
*
|
|
445
445
|
* This source code is licensed under the ISC license.
|
|
446
446
|
* See the LICENSE file in the root directory of this source tree.
|
|
447
447
|
*/
|
|
448
|
-
const __iconNode$
|
|
448
|
+
const __iconNode$m = [
|
|
449
449
|
[
|
|
450
450
|
"path",
|
|
451
451
|
{
|
|
@@ -455,56 +455,56 @@ const __iconNode$l = [
|
|
|
455
455
|
],
|
|
456
456
|
["path", { d: "M9 18c-4.51 2-5-2-7-2", key: "9comsn" }]
|
|
457
457
|
];
|
|
458
|
-
const Github = createLucideIcon("github", __iconNode$
|
|
458
|
+
const Github = createLucideIcon("github", __iconNode$m);
|
|
459
459
|
/**
|
|
460
460
|
* @license lucide-react v0.552.0 - ISC
|
|
461
461
|
*
|
|
462
462
|
* This source code is licensed under the ISC license.
|
|
463
463
|
* See the LICENSE file in the root directory of this source tree.
|
|
464
464
|
*/
|
|
465
|
-
const __iconNode$
|
|
465
|
+
const __iconNode$l = [
|
|
466
466
|
["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
|
|
467
467
|
["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
|
|
468
468
|
];
|
|
469
|
-
const Link = createLucideIcon("link", __iconNode$
|
|
469
|
+
const Link = createLucideIcon("link", __iconNode$l);
|
|
470
470
|
/**
|
|
471
471
|
* @license lucide-react v0.552.0 - ISC
|
|
472
472
|
*
|
|
473
473
|
* This source code is licensed under the ISC license.
|
|
474
474
|
* See the LICENSE file in the root directory of this source tree.
|
|
475
475
|
*/
|
|
476
|
-
const __iconNode$
|
|
477
|
-
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$
|
|
476
|
+
const __iconNode$k = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
477
|
+
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$k);
|
|
478
478
|
/**
|
|
479
479
|
* @license lucide-react v0.552.0 - ISC
|
|
480
480
|
*
|
|
481
481
|
* This source code is licensed under the ISC license.
|
|
482
482
|
* See the LICENSE file in the root directory of this source tree.
|
|
483
483
|
*/
|
|
484
|
-
const __iconNode$
|
|
484
|
+
const __iconNode$j = [
|
|
485
485
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
486
486
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
487
487
|
];
|
|
488
|
-
const Lock = createLucideIcon("lock", __iconNode$
|
|
488
|
+
const Lock = createLucideIcon("lock", __iconNode$j);
|
|
489
489
|
/**
|
|
490
490
|
* @license lucide-react v0.552.0 - ISC
|
|
491
491
|
*
|
|
492
492
|
* This source code is licensed under the ISC license.
|
|
493
493
|
* See the LICENSE file in the root directory of this source tree.
|
|
494
494
|
*/
|
|
495
|
-
const __iconNode$
|
|
495
|
+
const __iconNode$i = [
|
|
496
496
|
["path", { d: "m10 17 5-5-5-5", key: "1bsop3" }],
|
|
497
497
|
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
498
498
|
["path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4", key: "u53s6r" }]
|
|
499
499
|
];
|
|
500
|
-
const LogIn = createLucideIcon("log-in", __iconNode$
|
|
500
|
+
const LogIn = createLucideIcon("log-in", __iconNode$i);
|
|
501
501
|
/**
|
|
502
502
|
* @license lucide-react v0.552.0 - ISC
|
|
503
503
|
*
|
|
504
504
|
* This source code is licensed under the ISC license.
|
|
505
505
|
* See the LICENSE file in the root directory of this source tree.
|
|
506
506
|
*/
|
|
507
|
-
const __iconNode$
|
|
507
|
+
const __iconNode$h = [
|
|
508
508
|
[
|
|
509
509
|
"path",
|
|
510
510
|
{
|
|
@@ -514,14 +514,14 @@ const __iconNode$g = [
|
|
|
514
514
|
],
|
|
515
515
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
516
516
|
];
|
|
517
|
-
const MapPin = createLucideIcon("map-pin", __iconNode$
|
|
517
|
+
const MapPin = createLucideIcon("map-pin", __iconNode$h);
|
|
518
518
|
/**
|
|
519
519
|
* @license lucide-react v0.552.0 - ISC
|
|
520
520
|
*
|
|
521
521
|
* This source code is licensed under the ISC license.
|
|
522
522
|
* See the LICENSE file in the root directory of this source tree.
|
|
523
523
|
*/
|
|
524
|
-
const __iconNode$
|
|
524
|
+
const __iconNode$g = [
|
|
525
525
|
[
|
|
526
526
|
"path",
|
|
527
527
|
{
|
|
@@ -530,37 +530,37 @@ const __iconNode$f = [
|
|
|
530
530
|
}
|
|
531
531
|
]
|
|
532
532
|
];
|
|
533
|
-
const MessageSquare = createLucideIcon("message-square", __iconNode$
|
|
533
|
+
const MessageSquare = createLucideIcon("message-square", __iconNode$g);
|
|
534
534
|
/**
|
|
535
535
|
* @license lucide-react v0.552.0 - ISC
|
|
536
536
|
*
|
|
537
537
|
* This source code is licensed under the ISC license.
|
|
538
538
|
* See the LICENSE file in the root directory of this source tree.
|
|
539
539
|
*/
|
|
540
|
-
const __iconNode$
|
|
540
|
+
const __iconNode$f = [
|
|
541
541
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
542
542
|
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
543
543
|
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
544
544
|
];
|
|
545
|
-
const Monitor = createLucideIcon("monitor", __iconNode$
|
|
545
|
+
const Monitor = createLucideIcon("monitor", __iconNode$f);
|
|
546
546
|
/**
|
|
547
547
|
* @license lucide-react v0.552.0 - ISC
|
|
548
548
|
*
|
|
549
549
|
* This source code is licensed under the ISC license.
|
|
550
550
|
* See the LICENSE file in the root directory of this source tree.
|
|
551
551
|
*/
|
|
552
|
-
const __iconNode$
|
|
552
|
+
const __iconNode$e = [
|
|
553
553
|
["path", { d: "M18 8L22 12L18 16", key: "1r0oui" }],
|
|
554
554
|
["path", { d: "M2 12H22", key: "1m8cig" }]
|
|
555
555
|
];
|
|
556
|
-
const MoveRight = createLucideIcon("move-right", __iconNode$
|
|
556
|
+
const MoveRight = createLucideIcon("move-right", __iconNode$e);
|
|
557
557
|
/**
|
|
558
558
|
* @license lucide-react v0.552.0 - ISC
|
|
559
559
|
*
|
|
560
560
|
* This source code is licensed under the ISC license.
|
|
561
561
|
* See the LICENSE file in the root directory of this source tree.
|
|
562
562
|
*/
|
|
563
|
-
const __iconNode$
|
|
563
|
+
const __iconNode$d = [
|
|
564
564
|
[
|
|
565
565
|
"path",
|
|
566
566
|
{
|
|
@@ -569,38 +569,38 @@ const __iconNode$c = [
|
|
|
569
569
|
}
|
|
570
570
|
]
|
|
571
571
|
];
|
|
572
|
-
const Play = createLucideIcon("play", __iconNode$
|
|
572
|
+
const Play = createLucideIcon("play", __iconNode$d);
|
|
573
573
|
/**
|
|
574
574
|
* @license lucide-react v0.552.0 - ISC
|
|
575
575
|
*
|
|
576
576
|
* This source code is licensed under the ISC license.
|
|
577
577
|
* See the LICENSE file in the root directory of this source tree.
|
|
578
578
|
*/
|
|
579
|
-
const __iconNode$
|
|
579
|
+
const __iconNode$c = [
|
|
580
580
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
581
581
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
582
582
|
];
|
|
583
|
-
const Plus = createLucideIcon("plus", __iconNode$
|
|
583
|
+
const Plus = createLucideIcon("plus", __iconNode$c);
|
|
584
584
|
/**
|
|
585
585
|
* @license lucide-react v0.552.0 - ISC
|
|
586
586
|
*
|
|
587
587
|
* This source code is licensed under the ISC license.
|
|
588
588
|
* See the LICENSE file in the root directory of this source tree.
|
|
589
589
|
*/
|
|
590
|
-
const __iconNode$
|
|
590
|
+
const __iconNode$b = [
|
|
591
591
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
592
592
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
593
593
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
594
594
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
595
595
|
];
|
|
596
|
-
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$
|
|
596
|
+
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$b);
|
|
597
597
|
/**
|
|
598
598
|
* @license lucide-react v0.552.0 - ISC
|
|
599
599
|
*
|
|
600
600
|
* This source code is licensed under the ISC license.
|
|
601
601
|
* See the LICENSE file in the root directory of this source tree.
|
|
602
602
|
*/
|
|
603
|
-
const __iconNode$
|
|
603
|
+
const __iconNode$a = [
|
|
604
604
|
[
|
|
605
605
|
"path",
|
|
606
606
|
{
|
|
@@ -618,39 +618,39 @@ const __iconNode$9 = [
|
|
|
618
618
|
["path", { d: "M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0", key: "1f8sc4" }],
|
|
619
619
|
["path", { d: "M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5", key: "qeys4" }]
|
|
620
620
|
];
|
|
621
|
-
const Rocket = createLucideIcon("rocket", __iconNode$
|
|
621
|
+
const Rocket = createLucideIcon("rocket", __iconNode$a);
|
|
622
622
|
/**
|
|
623
623
|
* @license lucide-react v0.552.0 - ISC
|
|
624
624
|
*
|
|
625
625
|
* This source code is licensed under the ISC license.
|
|
626
626
|
* See the LICENSE file in the root directory of this source tree.
|
|
627
627
|
*/
|
|
628
|
-
const __iconNode$
|
|
628
|
+
const __iconNode$9 = [
|
|
629
629
|
["path", { d: "m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z", key: "7g6ntu" }],
|
|
630
630
|
["path", { d: "m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z", key: "ijws7r" }],
|
|
631
631
|
["path", { d: "M7 21h10", key: "1b0cd5" }],
|
|
632
632
|
["path", { d: "M12 3v18", key: "108xh3" }],
|
|
633
633
|
["path", { d: "M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2", key: "3gwbw2" }]
|
|
634
634
|
];
|
|
635
|
-
const Scale = createLucideIcon("scale", __iconNode$
|
|
635
|
+
const Scale = createLucideIcon("scale", __iconNode$9);
|
|
636
636
|
/**
|
|
637
637
|
* @license lucide-react v0.552.0 - ISC
|
|
638
638
|
*
|
|
639
639
|
* This source code is licensed under the ISC license.
|
|
640
640
|
* See the LICENSE file in the root directory of this source tree.
|
|
641
641
|
*/
|
|
642
|
-
const __iconNode$
|
|
642
|
+
const __iconNode$8 = [
|
|
643
643
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
644
644
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
645
645
|
];
|
|
646
|
-
const Search = createLucideIcon("search", __iconNode$
|
|
646
|
+
const Search = createLucideIcon("search", __iconNode$8);
|
|
647
647
|
/**
|
|
648
648
|
* @license lucide-react v0.552.0 - ISC
|
|
649
649
|
*
|
|
650
650
|
* This source code is licensed under the ISC license.
|
|
651
651
|
* See the LICENSE file in the root directory of this source tree.
|
|
652
652
|
*/
|
|
653
|
-
const __iconNode$
|
|
653
|
+
const __iconNode$7 = [
|
|
654
654
|
[
|
|
655
655
|
"path",
|
|
656
656
|
{
|
|
@@ -659,14 +659,14 @@ const __iconNode$6 = [
|
|
|
659
659
|
}
|
|
660
660
|
]
|
|
661
661
|
];
|
|
662
|
-
const Star = createLucideIcon("star", __iconNode$
|
|
662
|
+
const Star = createLucideIcon("star", __iconNode$7);
|
|
663
663
|
/**
|
|
664
664
|
* @license lucide-react v0.552.0 - ISC
|
|
665
665
|
*
|
|
666
666
|
* This source code is licensed under the ISC license.
|
|
667
667
|
* See the LICENSE file in the root directory of this source tree.
|
|
668
668
|
*/
|
|
669
|
-
const __iconNode$
|
|
669
|
+
const __iconNode$6 = [
|
|
670
670
|
[
|
|
671
671
|
"path",
|
|
672
672
|
{
|
|
@@ -676,46 +676,57 @@ const __iconNode$5 = [
|
|
|
676
676
|
],
|
|
677
677
|
["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
|
|
678
678
|
];
|
|
679
|
-
const Tag = createLucideIcon("tag", __iconNode$
|
|
679
|
+
const Tag = createLucideIcon("tag", __iconNode$6);
|
|
680
680
|
/**
|
|
681
681
|
* @license lucide-react v0.552.0 - ISC
|
|
682
682
|
*
|
|
683
683
|
* This source code is licensed under the ISC license.
|
|
684
684
|
* See the LICENSE file in the root directory of this source tree.
|
|
685
685
|
*/
|
|
686
|
-
const __iconNode$
|
|
686
|
+
const __iconNode$5 = [
|
|
687
687
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
688
688
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
689
689
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
690
690
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
691
691
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
692
692
|
];
|
|
693
|
-
const Trash2 = createLucideIcon("trash-2", __iconNode$
|
|
693
|
+
const Trash2 = createLucideIcon("trash-2", __iconNode$5);
|
|
694
694
|
/**
|
|
695
695
|
* @license lucide-react v0.552.0 - ISC
|
|
696
696
|
*
|
|
697
697
|
* This source code is licensed under the ISC license.
|
|
698
698
|
* See the LICENSE file in the root directory of this source tree.
|
|
699
699
|
*/
|
|
700
|
-
const __iconNode$
|
|
700
|
+
const __iconNode$4 = [
|
|
701
701
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
702
702
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
703
703
|
["line", { x1: "22", x2: "16", y1: "11", y2: "11", key: "1shjgl" }]
|
|
704
704
|
];
|
|
705
|
-
const UserMinus = createLucideIcon("user-minus", __iconNode$
|
|
705
|
+
const UserMinus = createLucideIcon("user-minus", __iconNode$4);
|
|
706
706
|
/**
|
|
707
707
|
* @license lucide-react v0.552.0 - ISC
|
|
708
708
|
*
|
|
709
709
|
* This source code is licensed under the ISC license.
|
|
710
710
|
* See the LICENSE file in the root directory of this source tree.
|
|
711
711
|
*/
|
|
712
|
-
const __iconNode$
|
|
712
|
+
const __iconNode$3 = [
|
|
713
713
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
714
714
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
715
715
|
["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
|
|
716
716
|
["line", { x1: "22", x2: "16", y1: "11", y2: "11", key: "1shjgl" }]
|
|
717
717
|
];
|
|
718
|
-
const UserPlus = createLucideIcon("user-plus", __iconNode$
|
|
718
|
+
const UserPlus = createLucideIcon("user-plus", __iconNode$3);
|
|
719
|
+
/**
|
|
720
|
+
* @license lucide-react v0.552.0 - ISC
|
|
721
|
+
*
|
|
722
|
+
* This source code is licensed under the ISC license.
|
|
723
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
724
|
+
*/
|
|
725
|
+
const __iconNode$2 = [
|
|
726
|
+
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
727
|
+
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
728
|
+
];
|
|
729
|
+
const User = createLucideIcon("user", __iconNode$2);
|
|
719
730
|
/**
|
|
720
731
|
* @license lucide-react v0.552.0 - ISC
|
|
721
732
|
*
|
|
@@ -1989,10 +2000,10 @@ function formatNumber(num) {
|
|
|
1989
2000
|
}
|
|
1990
2001
|
return num.toString();
|
|
1991
2002
|
}
|
|
1992
|
-
const PANEL_ID$
|
|
2003
|
+
const PANEL_ID$1 = "github-search-panel";
|
|
1993
2004
|
const createPanelEvent$1 = (type, payload) => ({
|
|
1994
2005
|
type,
|
|
1995
|
-
source: PANEL_ID$
|
|
2006
|
+
source: PANEL_ID$1,
|
|
1996
2007
|
timestamp: Date.now(),
|
|
1997
2008
|
payload
|
|
1998
2009
|
});
|
|
@@ -2074,7 +2085,7 @@ const GitHubSearchPanelContent = ({ context, actions, events }) => {
|
|
|
2074
2085
|
setSelectedRepoId(repo.id);
|
|
2075
2086
|
events.emit({
|
|
2076
2087
|
type: "repository:preview",
|
|
2077
|
-
source: PANEL_ID$
|
|
2088
|
+
source: PANEL_ID$1,
|
|
2078
2089
|
timestamp: Date.now(),
|
|
2079
2090
|
payload: {
|
|
2080
2091
|
repository: repo,
|
|
@@ -2087,7 +2098,7 @@ const GitHubSearchPanelContent = ({ context, actions, events }) => {
|
|
|
2087
2098
|
if (panelActions.addToCollection) {
|
|
2088
2099
|
await panelActions.addToCollection(repo);
|
|
2089
2100
|
events.emit(
|
|
2090
|
-
createPanelEvent$1(`${PANEL_ID$
|
|
2101
|
+
createPanelEvent$1(`${PANEL_ID$1}:repository-added-to-collection`, {
|
|
2091
2102
|
repository: repo
|
|
2092
2103
|
})
|
|
2093
2104
|
);
|
|
@@ -53800,10 +53811,22 @@ const RecentRepositoriesPanelMetadata = {
|
|
|
53800
53811
|
slices: [],
|
|
53801
53812
|
surfaces: ["panel"]
|
|
53802
53813
|
};
|
|
53803
|
-
|
|
53804
|
-
|
|
53814
|
+
function isOrgProfile(profile) {
|
|
53815
|
+
return profile.type === "Organization";
|
|
53816
|
+
}
|
|
53817
|
+
function isUserProfile(profile) {
|
|
53818
|
+
return profile.type !== "Organization";
|
|
53819
|
+
}
|
|
53820
|
+
function getProfileDescription(profile) {
|
|
53821
|
+
if (isOrgProfile(profile)) {
|
|
53822
|
+
return profile.description;
|
|
53823
|
+
}
|
|
53824
|
+
return profile.bio;
|
|
53825
|
+
}
|
|
53826
|
+
const DEFAULT_PANEL_ID = "industry-theme.profile";
|
|
53827
|
+
const createPanelEvent = (panelId, type, payload) => ({
|
|
53805
53828
|
type,
|
|
53806
|
-
source:
|
|
53829
|
+
source: panelId,
|
|
53807
53830
|
timestamp: Date.now(),
|
|
53808
53831
|
payload
|
|
53809
53832
|
});
|
|
@@ -53882,18 +53905,26 @@ const CollectionCard = ({ collection, isSelected, onClick }) => {
|
|
|
53882
53905
|
}
|
|
53883
53906
|
);
|
|
53884
53907
|
};
|
|
53885
|
-
const
|
|
53908
|
+
const ProfilePanelContent = ({
|
|
53886
53909
|
context,
|
|
53887
53910
|
actions,
|
|
53888
|
-
events
|
|
53911
|
+
events,
|
|
53912
|
+
profileType = "user",
|
|
53913
|
+
panelId = DEFAULT_PANEL_ID,
|
|
53914
|
+
extensions
|
|
53889
53915
|
}) => {
|
|
53890
|
-
var _a, _b, _c, _d, _e2;
|
|
53916
|
+
var _a, _b, _c, _d, _e2, _f, _g;
|
|
53891
53917
|
const { theme: theme2 } = useTheme();
|
|
53918
|
+
const availableViews = useMemo(() => {
|
|
53919
|
+
if (profileType === "user") {
|
|
53920
|
+
return ["collections", "repositories", "starred"];
|
|
53921
|
+
}
|
|
53922
|
+
return ["collections", "repositories"];
|
|
53923
|
+
}, [profileType]);
|
|
53892
53924
|
const [activeView, setActiveView] = useState("repositories");
|
|
53893
53925
|
const [searchQuery, setSearchQuery] = useState("");
|
|
53894
|
-
const
|
|
53895
|
-
const
|
|
53896
|
-
const org = ((_a = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _a.org) ?? null;
|
|
53926
|
+
const { profile: profileSlice } = context;
|
|
53927
|
+
const profile = ((_a = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _a.profile) ?? null;
|
|
53897
53928
|
const collections = useMemo(
|
|
53898
53929
|
() => {
|
|
53899
53930
|
var _a2;
|
|
@@ -53908,36 +53939,44 @@ const OrgProfilePanelContent = ({
|
|
|
53908
53939
|
},
|
|
53909
53940
|
[(_c = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _c.repositories]
|
|
53910
53941
|
);
|
|
53911
|
-
const
|
|
53912
|
-
|
|
53942
|
+
const starredRepositories = useMemo(
|
|
53943
|
+
() => {
|
|
53944
|
+
var _a2;
|
|
53945
|
+
return ((_a2 = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _a2.starredRepositories) || [];
|
|
53946
|
+
},
|
|
53947
|
+
[(_d = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _d.starredRepositories]
|
|
53948
|
+
);
|
|
53949
|
+
const selectedCollectionId = (_e2 = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _e2.selectedCollectionId;
|
|
53950
|
+
const selectedRepositoryId = (_f = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _f.selectedRepositoryId;
|
|
53913
53951
|
const loading = (profileSlice == null ? void 0 : profileSlice.loading) ?? false;
|
|
53914
53952
|
const filteredRepositories = useMemo(() => {
|
|
53915
|
-
|
|
53953
|
+
const repos = activeView === "starred" ? starredRepositories : repositories;
|
|
53954
|
+
if (!searchQuery.trim()) return repos;
|
|
53916
53955
|
const query = searchQuery.toLowerCase().trim();
|
|
53917
|
-
return
|
|
53956
|
+
return repos.filter(
|
|
53918
53957
|
(repo) => {
|
|
53919
53958
|
var _a2, _b2;
|
|
53920
53959
|
return repo.name.toLowerCase().includes(query) || repo.full_name.toLowerCase().includes(query) || ((_a2 = repo.description) == null ? void 0 : _a2.toLowerCase().includes(query)) || ((_b2 = repo.language) == null ? void 0 : _b2.toLowerCase().includes(query));
|
|
53921
53960
|
}
|
|
53922
53961
|
);
|
|
53923
|
-
}, [repositories, searchQuery]);
|
|
53962
|
+
}, [repositories, starredRepositories, searchQuery, activeView]);
|
|
53924
53963
|
const handleCollectionSelect = useCallback(
|
|
53925
53964
|
(collection) => {
|
|
53926
53965
|
events.emit(
|
|
53927
|
-
createPanelEvent(`${
|
|
53966
|
+
createPanelEvent(panelId, `${panelId}:collection:selected`, {
|
|
53928
53967
|
collectionId: collection.id,
|
|
53929
53968
|
collection
|
|
53930
53969
|
})
|
|
53931
53970
|
);
|
|
53932
53971
|
},
|
|
53933
|
-
[events]
|
|
53972
|
+
[events, panelId]
|
|
53934
53973
|
);
|
|
53935
53974
|
const handleRepositorySelect = useCallback(
|
|
53936
53975
|
(repository) => {
|
|
53937
53976
|
var _a2;
|
|
53938
53977
|
events.emit({
|
|
53939
53978
|
type: "repository:preview",
|
|
53940
|
-
source:
|
|
53979
|
+
source: panelId,
|
|
53941
53980
|
timestamp: Date.now(),
|
|
53942
53981
|
payload: {
|
|
53943
53982
|
repository,
|
|
@@ -53945,46 +53984,46 @@ const OrgProfilePanelContent = ({
|
|
|
53945
53984
|
}
|
|
53946
53985
|
});
|
|
53947
53986
|
events.emit(
|
|
53948
|
-
createPanelEvent(`${
|
|
53987
|
+
createPanelEvent(panelId, `${panelId}:repository:selected`, {
|
|
53949
53988
|
owner: repository.owner.login,
|
|
53950
53989
|
repo: repository.name,
|
|
53951
53990
|
repository
|
|
53952
53991
|
})
|
|
53953
53992
|
);
|
|
53954
|
-
(_a2 =
|
|
53993
|
+
(_a2 = actions.viewRepository) == null ? void 0 : _a2.call(actions, repository.owner.login, repository.name);
|
|
53955
53994
|
},
|
|
53956
|
-
[events,
|
|
53995
|
+
[events, panelId, actions]
|
|
53957
53996
|
);
|
|
53958
53997
|
const handleCloneRepository = useCallback(
|
|
53959
53998
|
(repository) => {
|
|
53960
53999
|
var _a2;
|
|
53961
54000
|
events.emit(
|
|
53962
|
-
createPanelEvent(`${
|
|
54001
|
+
createPanelEvent(panelId, `${panelId}:repository:clone-requested`, {
|
|
53963
54002
|
repository
|
|
53964
54003
|
})
|
|
53965
54004
|
);
|
|
53966
|
-
(_a2 =
|
|
54005
|
+
(_a2 = actions.cloneRepository) == null ? void 0 : _a2.call(actions, repository);
|
|
53967
54006
|
},
|
|
53968
|
-
[events,
|
|
54007
|
+
[events, panelId, actions]
|
|
53969
54008
|
);
|
|
53970
54009
|
const handleViewChange = useCallback(
|
|
53971
54010
|
(view) => {
|
|
53972
54011
|
setActiveView(view);
|
|
53973
54012
|
setSearchQuery("");
|
|
53974
|
-
events.emit(createPanelEvent(`${
|
|
54013
|
+
events.emit(createPanelEvent(panelId, `${panelId}:view:changed`, { view }));
|
|
53975
54014
|
},
|
|
53976
|
-
[events]
|
|
54015
|
+
[events, panelId]
|
|
53977
54016
|
);
|
|
53978
54017
|
useEffect(() => {
|
|
53979
54018
|
const unsubscribers = [
|
|
53980
|
-
events.on(`${
|
|
54019
|
+
events.on(`${panelId}:set-view`, (event) => {
|
|
53981
54020
|
var _a2;
|
|
53982
|
-
if ((_a2 = event.payload) == null ? void 0 : _a2.view) {
|
|
54021
|
+
if (((_a2 = event.payload) == null ? void 0 : _a2.view) && availableViews.includes(event.payload.view)) {
|
|
53983
54022
|
handleViewChange(event.payload.view);
|
|
53984
54023
|
}
|
|
53985
54024
|
}),
|
|
53986
54025
|
events.on(
|
|
53987
|
-
`${
|
|
54026
|
+
`${panelId}:select-collection`,
|
|
53988
54027
|
(event) => {
|
|
53989
54028
|
const { collectionId } = event.payload || {};
|
|
53990
54029
|
if (collectionId) {
|
|
@@ -53996,11 +54035,12 @@ const OrgProfilePanelContent = ({
|
|
|
53996
54035
|
}
|
|
53997
54036
|
),
|
|
53998
54037
|
events.on(
|
|
53999
|
-
`${
|
|
54038
|
+
`${panelId}:select-repository`,
|
|
54000
54039
|
(event) => {
|
|
54001
54040
|
const { owner, repo } = event.payload || {};
|
|
54002
54041
|
if (owner && repo) {
|
|
54003
|
-
const
|
|
54042
|
+
const allRepos = [...repositories, ...starredRepositories];
|
|
54043
|
+
const repository = allRepos.find(
|
|
54004
54044
|
(r2) => r2.owner.login === owner && r2.name === repo
|
|
54005
54045
|
);
|
|
54006
54046
|
if (repository) {
|
|
@@ -54010,11 +54050,12 @@ const OrgProfilePanelContent = ({
|
|
|
54010
54050
|
}
|
|
54011
54051
|
),
|
|
54012
54052
|
events.on(
|
|
54013
|
-
`${
|
|
54053
|
+
`${panelId}:clone-repository`,
|
|
54014
54054
|
(event) => {
|
|
54015
54055
|
const { owner, repo } = event.payload || {};
|
|
54016
54056
|
if (owner && repo) {
|
|
54017
|
-
const
|
|
54057
|
+
const allRepos = [...repositories, ...starredRepositories];
|
|
54058
|
+
const repository = allRepos.find(
|
|
54018
54059
|
(r2) => r2.owner.login === owner && r2.name === repo
|
|
54019
54060
|
);
|
|
54020
54061
|
if (repository) {
|
|
@@ -54023,19 +54064,25 @@ const OrgProfilePanelContent = ({
|
|
|
54023
54064
|
}
|
|
54024
54065
|
}
|
|
54025
54066
|
),
|
|
54026
|
-
events.on(`${
|
|
54067
|
+
events.on(`${panelId}:filter-repositories`, (event) => {
|
|
54027
54068
|
var _a2;
|
|
54028
54069
|
if (((_a2 = event.payload) == null ? void 0 : _a2.filter) !== void 0) {
|
|
54029
54070
|
setSearchQuery(event.payload.filter);
|
|
54030
|
-
|
|
54071
|
+
if (activeView === "collections") {
|
|
54072
|
+
setActiveView("repositories");
|
|
54073
|
+
}
|
|
54031
54074
|
}
|
|
54032
54075
|
})
|
|
54033
54076
|
];
|
|
54034
54077
|
return () => unsubscribers.forEach((unsub) => unsub());
|
|
54035
54078
|
}, [
|
|
54036
54079
|
events,
|
|
54080
|
+
panelId,
|
|
54037
54081
|
collections,
|
|
54038
54082
|
repositories,
|
|
54083
|
+
starredRepositories,
|
|
54084
|
+
availableViews,
|
|
54085
|
+
activeView,
|
|
54039
54086
|
handleViewChange,
|
|
54040
54087
|
handleCollectionSelect,
|
|
54041
54088
|
handleRepositorySelect,
|
|
@@ -54069,7 +54116,7 @@ const OrgProfilePanelContent = ({
|
|
|
54069
54116
|
gap: "16px",
|
|
54070
54117
|
maxWidth: "360px"
|
|
54071
54118
|
},
|
|
54072
|
-
children: /* @__PURE__ */
|
|
54119
|
+
children: /* @__PURE__ */ jsxs(
|
|
54073
54120
|
"h3",
|
|
54074
54121
|
{
|
|
54075
54122
|
style: {
|
|
@@ -54079,7 +54126,11 @@ const OrgProfilePanelContent = ({
|
|
|
54079
54126
|
fontWeight: theme2.fontWeights.semibold,
|
|
54080
54127
|
fontFamily: theme2.fonts.body
|
|
54081
54128
|
},
|
|
54082
|
-
children:
|
|
54129
|
+
children: [
|
|
54130
|
+
"Loading ",
|
|
54131
|
+
profileType === "organization" ? "organization" : "user",
|
|
54132
|
+
"..."
|
|
54133
|
+
]
|
|
54083
54134
|
}
|
|
54084
54135
|
)
|
|
54085
54136
|
}
|
|
@@ -54087,7 +54138,9 @@ const OrgProfilePanelContent = ({
|
|
|
54087
54138
|
}
|
|
54088
54139
|
) });
|
|
54089
54140
|
}
|
|
54090
|
-
if (!
|
|
54141
|
+
if (!profile) {
|
|
54142
|
+
const EmptyIcon = profileType === "organization" ? Building2 : User;
|
|
54143
|
+
const entityName = profileType === "organization" ? "organization" : "user";
|
|
54091
54144
|
return /* @__PURE__ */ jsx("div", { style: baseContainerStyle, children: /* @__PURE__ */ jsx(
|
|
54092
54145
|
"div",
|
|
54093
54146
|
{
|
|
@@ -54110,8 +54163,8 @@ const OrgProfilePanelContent = ({
|
|
|
54110
54163
|
maxWidth: "360px"
|
|
54111
54164
|
},
|
|
54112
54165
|
children: [
|
|
54113
|
-
/* @__PURE__ */ jsx(
|
|
54114
|
-
/* @__PURE__ */
|
|
54166
|
+
/* @__PURE__ */ jsx(EmptyIcon, { size: 48, style: { color: theme2.colors.textSecondary } }),
|
|
54167
|
+
/* @__PURE__ */ jsxs(
|
|
54115
54168
|
"h3",
|
|
54116
54169
|
{
|
|
54117
54170
|
style: {
|
|
@@ -54121,10 +54174,15 @@ const OrgProfilePanelContent = ({
|
|
|
54121
54174
|
fontWeight: theme2.fontWeights.semibold,
|
|
54122
54175
|
fontFamily: theme2.fonts.body
|
|
54123
54176
|
},
|
|
54124
|
-
children:
|
|
54177
|
+
children: [
|
|
54178
|
+
"Select ",
|
|
54179
|
+
entityName === "organization" ? "an" : "a",
|
|
54180
|
+
" ",
|
|
54181
|
+
entityName
|
|
54182
|
+
]
|
|
54125
54183
|
}
|
|
54126
54184
|
),
|
|
54127
|
-
/* @__PURE__ */
|
|
54185
|
+
/* @__PURE__ */ jsxs(
|
|
54128
54186
|
"p",
|
|
54129
54187
|
{
|
|
54130
54188
|
style: {
|
|
@@ -54133,7 +54191,13 @@ const OrgProfilePanelContent = ({
|
|
|
54133
54191
|
fontSize: `${theme2.fontSizes[1]}px`,
|
|
54134
54192
|
fontFamily: theme2.fonts.body
|
|
54135
54193
|
},
|
|
54136
|
-
children:
|
|
54194
|
+
children: [
|
|
54195
|
+
"Click on ",
|
|
54196
|
+
entityName === "organization" ? "an" : "a",
|
|
54197
|
+
" ",
|
|
54198
|
+
entityName,
|
|
54199
|
+
" to view its profile and repositories"
|
|
54200
|
+
]
|
|
54137
54201
|
}
|
|
54138
54202
|
)
|
|
54139
54203
|
]
|
|
@@ -54142,6 +54206,24 @@ const OrgProfilePanelContent = ({
|
|
|
54142
54206
|
}
|
|
54143
54207
|
) });
|
|
54144
54208
|
}
|
|
54209
|
+
const description = getProfileDescription(profile);
|
|
54210
|
+
const ProfileIcon = isOrgProfile(profile) ? Building2 : User;
|
|
54211
|
+
const renderRepositoryCard = (repo) => {
|
|
54212
|
+
const card = /* @__PURE__ */ jsx(
|
|
54213
|
+
GitHubRepositoryCard,
|
|
54214
|
+
{
|
|
54215
|
+
repository: repo,
|
|
54216
|
+
isSelected: repo.id === selectedRepositoryId,
|
|
54217
|
+
onSelect: handleRepositorySelect,
|
|
54218
|
+
onClone: actions.cloneRepository ? handleCloneRepository : void 0
|
|
54219
|
+
},
|
|
54220
|
+
repo.id
|
|
54221
|
+
);
|
|
54222
|
+
if (extensions == null ? void 0 : extensions.wrapRepositoryCard) {
|
|
54223
|
+
return /* @__PURE__ */ jsx(React2__default.Fragment, { children: extensions.wrapRepositoryCard(card, repo) }, repo.id);
|
|
54224
|
+
}
|
|
54225
|
+
return card;
|
|
54226
|
+
};
|
|
54145
54227
|
return /* @__PURE__ */ jsxs("div", { style: baseContainerStyle, children: [
|
|
54146
54228
|
/* @__PURE__ */ jsxs(
|
|
54147
54229
|
"div",
|
|
@@ -54152,19 +54234,22 @@ const OrgProfilePanelContent = ({
|
|
|
54152
54234
|
},
|
|
54153
54235
|
children: [
|
|
54154
54236
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "12px" }, children: [
|
|
54155
|
-
/* @__PURE__ */
|
|
54156
|
-
|
|
54157
|
-
|
|
54158
|
-
|
|
54159
|
-
|
|
54160
|
-
|
|
54161
|
-
|
|
54162
|
-
|
|
54163
|
-
|
|
54164
|
-
|
|
54237
|
+
/* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
|
|
54238
|
+
/* @__PURE__ */ jsx(
|
|
54239
|
+
"img",
|
|
54240
|
+
{
|
|
54241
|
+
src: profile.avatar_url,
|
|
54242
|
+
alt: profile.login,
|
|
54243
|
+
style: {
|
|
54244
|
+
width: "80px",
|
|
54245
|
+
height: "80px",
|
|
54246
|
+
borderRadius: "12px",
|
|
54247
|
+
objectFit: "cover"
|
|
54248
|
+
}
|
|
54165
54249
|
}
|
|
54166
|
-
|
|
54167
|
-
|
|
54250
|
+
),
|
|
54251
|
+
(_g = extensions == null ? void 0 : extensions.renderHeaderExtra) == null ? void 0 : _g.call(extensions, profile)
|
|
54252
|
+
] }),
|
|
54168
54253
|
/* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
54169
54254
|
/* @__PURE__ */ jsx(
|
|
54170
54255
|
"div",
|
|
@@ -54175,7 +54260,7 @@ const OrgProfilePanelContent = ({
|
|
|
54175
54260
|
color: theme2.colors.text,
|
|
54176
54261
|
fontFamily: theme2.fonts.body
|
|
54177
54262
|
},
|
|
54178
|
-
children:
|
|
54263
|
+
children: profile.name || profile.login
|
|
54179
54264
|
}
|
|
54180
54265
|
),
|
|
54181
54266
|
/* @__PURE__ */ jsxs(
|
|
@@ -54183,21 +54268,21 @@ const OrgProfilePanelContent = ({
|
|
|
54183
54268
|
{
|
|
54184
54269
|
onClick: () => {
|
|
54185
54270
|
var _a2;
|
|
54186
|
-
return (_a2 =
|
|
54271
|
+
return (_a2 = actions.openInBrowser) == null ? void 0 : _a2.call(actions, `https://github.com/${profile.login}`);
|
|
54187
54272
|
},
|
|
54188
54273
|
style: {
|
|
54189
54274
|
fontSize: `${theme2.fontSizes[1]}px`,
|
|
54190
54275
|
color: theme2.colors.primary,
|
|
54191
54276
|
fontFamily: theme2.fonts.body,
|
|
54192
|
-
cursor:
|
|
54277
|
+
cursor: actions.openInBrowser ? "pointer" : "default"
|
|
54193
54278
|
},
|
|
54194
54279
|
children: [
|
|
54195
54280
|
"@",
|
|
54196
|
-
|
|
54281
|
+
profile.login
|
|
54197
54282
|
]
|
|
54198
54283
|
}
|
|
54199
54284
|
),
|
|
54200
|
-
|
|
54285
|
+
description && /* @__PURE__ */ jsx(
|
|
54201
54286
|
"div",
|
|
54202
54287
|
{
|
|
54203
54288
|
style: {
|
|
@@ -54206,7 +54291,7 @@ const OrgProfilePanelContent = ({
|
|
|
54206
54291
|
fontFamily: theme2.fonts.body,
|
|
54207
54292
|
marginTop: "8px"
|
|
54208
54293
|
},
|
|
54209
|
-
children:
|
|
54294
|
+
children: description
|
|
54210
54295
|
}
|
|
54211
54296
|
)
|
|
54212
54297
|
] })
|
|
@@ -54224,11 +54309,11 @@ const OrgProfilePanelContent = ({
|
|
|
54224
54309
|
fontFamily: theme2.fonts.body
|
|
54225
54310
|
},
|
|
54226
54311
|
children: [
|
|
54227
|
-
|
|
54312
|
+
profile.location && /* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
54228
54313
|
/* @__PURE__ */ jsx(MapPin, { size: 12 }),
|
|
54229
|
-
|
|
54314
|
+
profile.location
|
|
54230
54315
|
] }),
|
|
54231
|
-
|
|
54316
|
+
profile.blog && /* @__PURE__ */ jsxs(
|
|
54232
54317
|
"span",
|
|
54233
54318
|
{
|
|
54234
54319
|
style: {
|
|
@@ -54239,19 +54324,19 @@ const OrgProfilePanelContent = ({
|
|
|
54239
54324
|
},
|
|
54240
54325
|
onClick: () => {
|
|
54241
54326
|
var _a2;
|
|
54242
|
-
return (_a2 =
|
|
54327
|
+
return (_a2 = actions.openInBrowser) == null ? void 0 : _a2.call(actions, profile.blog);
|
|
54243
54328
|
},
|
|
54244
54329
|
children: [
|
|
54245
54330
|
/* @__PURE__ */ jsx(Link, { size: 12 }),
|
|
54246
|
-
|
|
54331
|
+
profile.blog.replace(/^https?:\/\//, "")
|
|
54247
54332
|
]
|
|
54248
54333
|
}
|
|
54249
54334
|
),
|
|
54250
|
-
|
|
54335
|
+
profile.email && /* @__PURE__ */ jsx("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: profile.email }),
|
|
54251
54336
|
/* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
54252
54337
|
/* @__PURE__ */ jsx(Calendar, { size: 12 }),
|
|
54253
54338
|
"Created ",
|
|
54254
|
-
formatDate(
|
|
54339
|
+
formatDate(profile.created_at)
|
|
54255
54340
|
] })
|
|
54256
54341
|
]
|
|
54257
54342
|
}
|
|
@@ -54269,13 +54354,25 @@ const OrgProfilePanelContent = ({
|
|
|
54269
54354
|
children: [
|
|
54270
54355
|
/* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
54271
54356
|
/* @__PURE__ */ jsx(Users, { size: 14, style: { color: theme2.colors.textSecondary } }),
|
|
54272
|
-
/* @__PURE__ */ jsx("strong", { style: { color: theme2.colors.text }, children:
|
|
54357
|
+
/* @__PURE__ */ jsx("strong", { style: { color: theme2.colors.text }, children: profile.followers }),
|
|
54273
54358
|
" ",
|
|
54274
54359
|
/* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textSecondary }, children: "followers" })
|
|
54275
54360
|
] }),
|
|
54361
|
+
/* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
54362
|
+
/* @__PURE__ */ jsx(
|
|
54363
|
+
ProfileIcon,
|
|
54364
|
+
{
|
|
54365
|
+
size: 14,
|
|
54366
|
+
style: { color: theme2.colors.textSecondary }
|
|
54367
|
+
}
|
|
54368
|
+
),
|
|
54369
|
+
/* @__PURE__ */ jsx("strong", { style: { color: theme2.colors.text }, children: profile.following }),
|
|
54370
|
+
" ",
|
|
54371
|
+
/* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textSecondary }, children: "following" })
|
|
54372
|
+
] }),
|
|
54276
54373
|
/* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
54277
54374
|
/* @__PURE__ */ jsx(FolderGit2, { size: 14, style: { color: theme2.colors.textSecondary } }),
|
|
54278
|
-
/* @__PURE__ */ jsx("strong", { style: { color: theme2.colors.text }, children:
|
|
54375
|
+
/* @__PURE__ */ jsx("strong", { style: { color: theme2.colors.text }, children: profile.public_repos }),
|
|
54279
54376
|
" ",
|
|
54280
54377
|
/* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textSecondary }, children: "repos" })
|
|
54281
54378
|
] })
|
|
@@ -54346,16 +54443,46 @@ const OrgProfilePanelContent = ({
|
|
|
54346
54443
|
},
|
|
54347
54444
|
children: [
|
|
54348
54445
|
/* @__PURE__ */ jsx(FolderGit2, { size: 16 }),
|
|
54349
|
-
"
|
|
54446
|
+
profileType === "user" ? "Projects" : "Repositories",
|
|
54447
|
+
" (",
|
|
54350
54448
|
repositories.length,
|
|
54351
54449
|
")"
|
|
54352
54450
|
]
|
|
54353
54451
|
}
|
|
54452
|
+
),
|
|
54453
|
+
profileType === "user" && /* @__PURE__ */ jsxs(
|
|
54454
|
+
"button",
|
|
54455
|
+
{
|
|
54456
|
+
onClick: () => handleViewChange("starred"),
|
|
54457
|
+
style: {
|
|
54458
|
+
flex: 1,
|
|
54459
|
+
display: "flex",
|
|
54460
|
+
alignItems: "center",
|
|
54461
|
+
justifyContent: "center",
|
|
54462
|
+
gap: "6px",
|
|
54463
|
+
padding: "12px",
|
|
54464
|
+
border: "none",
|
|
54465
|
+
backgroundColor: "transparent",
|
|
54466
|
+
color: activeView === "starred" ? theme2.colors.primary : theme2.colors.textSecondary,
|
|
54467
|
+
fontSize: `${theme2.fontSizes[1]}px`,
|
|
54468
|
+
fontWeight: activeView === "starred" ? theme2.fontWeights.semibold : theme2.fontWeights.medium,
|
|
54469
|
+
fontFamily: theme2.fonts.body,
|
|
54470
|
+
cursor: "pointer",
|
|
54471
|
+
borderBottom: activeView === "starred" ? `2px solid ${theme2.colors.primary}` : "2px solid transparent",
|
|
54472
|
+
transition: "all 0.15s ease"
|
|
54473
|
+
},
|
|
54474
|
+
children: [
|
|
54475
|
+
/* @__PURE__ */ jsx(Star, { size: 16 }),
|
|
54476
|
+
"Starred (",
|
|
54477
|
+
starredRepositories.length,
|
|
54478
|
+
")"
|
|
54479
|
+
]
|
|
54480
|
+
}
|
|
54354
54481
|
)
|
|
54355
54482
|
]
|
|
54356
54483
|
}
|
|
54357
54484
|
),
|
|
54358
|
-
activeView === "repositories" && /* @__PURE__ */ jsx(
|
|
54485
|
+
(activeView === "repositories" || activeView === "starred") && /* @__PURE__ */ jsx(
|
|
54359
54486
|
"div",
|
|
54360
54487
|
{
|
|
54361
54488
|
style: {
|
|
@@ -54458,7 +54585,7 @@ const OrgProfilePanelContent = ({
|
|
|
54458
54585
|
},
|
|
54459
54586
|
collection.id
|
|
54460
54587
|
)) }),
|
|
54461
|
-
activeView === "repositories" && /* @__PURE__ */ jsx(Fragment, { children: filteredRepositories.length === 0 ? /* @__PURE__ */ jsxs(
|
|
54588
|
+
(activeView === "repositories" || activeView === "starred") && /* @__PURE__ */ jsx(Fragment, { children: filteredRepositories.length === 0 ? /* @__PURE__ */ jsxs(
|
|
54462
54589
|
"div",
|
|
54463
54590
|
{
|
|
54464
54591
|
style: {
|
|
@@ -54467,38 +54594,33 @@ const OrgProfilePanelContent = ({
|
|
|
54467
54594
|
color: theme2.colors.textSecondary
|
|
54468
54595
|
},
|
|
54469
54596
|
children: [
|
|
54470
|
-
/* @__PURE__ */ jsx(
|
|
54597
|
+
activeView === "starred" ? /* @__PURE__ */ jsx(Star, { size: 32, style: { marginBottom: "12px", opacity: 0.5 } }) : /* @__PURE__ */ jsx(
|
|
54471
54598
|
FolderGit2,
|
|
54472
54599
|
{
|
|
54473
54600
|
size: 32,
|
|
54474
54601
|
style: { marginBottom: "12px", opacity: 0.5 }
|
|
54475
54602
|
}
|
|
54476
54603
|
),
|
|
54477
|
-
/* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: searchQuery ? `No repositories matching "${searchQuery}"` : "No repositories" })
|
|
54604
|
+
/* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: searchQuery ? `No repositories matching "${searchQuery}"` : activeView === "starred" ? "No starred repositories" : "No repositories" })
|
|
54478
54605
|
]
|
|
54479
54606
|
}
|
|
54480
54607
|
) : filteredRepositories.sort(
|
|
54481
54608
|
(a, b) => a.name.localeCompare(b.name, void 0, { sensitivity: "base" })
|
|
54482
|
-
).map(
|
|
54483
|
-
GitHubRepositoryCard,
|
|
54484
|
-
{
|
|
54485
|
-
repository: repo,
|
|
54486
|
-
isSelected: repo.id === selectedRepositoryId,
|
|
54487
|
-
onSelect: handleRepositorySelect,
|
|
54488
|
-
onClone: panelActions.cloneRepository ? handleCloneRepository : void 0
|
|
54489
|
-
},
|
|
54490
|
-
repo.id
|
|
54491
|
-
)) })
|
|
54609
|
+
).map(renderRepositoryCard) })
|
|
54492
54610
|
]
|
|
54493
54611
|
}
|
|
54494
54612
|
)
|
|
54495
54613
|
] });
|
|
54496
54614
|
};
|
|
54497
|
-
const
|
|
54498
|
-
return /* @__PURE__ */ jsx(
|
|
54615
|
+
const ProfilePanel = (props) => {
|
|
54616
|
+
return /* @__PURE__ */ jsx(ProfilePanelContent, { ...props });
|
|
54499
54617
|
};
|
|
54500
|
-
const
|
|
54618
|
+
const ProfilePanelPreview = ({
|
|
54619
|
+
profileType = "user"
|
|
54620
|
+
}) => {
|
|
54501
54621
|
const { theme: theme2 } = useTheme();
|
|
54622
|
+
const Icon2 = profileType === "organization" ? Building2 : User;
|
|
54623
|
+
const label = profileType === "organization" ? "Organization" : "User";
|
|
54502
54624
|
return /* @__PURE__ */ jsxs(
|
|
54503
54625
|
"div",
|
|
54504
54626
|
{
|
|
@@ -54522,12 +54644,12 @@ const OrgProfilePanelPreview = () => {
|
|
|
54522
54644
|
fontWeight: theme2.fontWeights.semibold
|
|
54523
54645
|
},
|
|
54524
54646
|
children: [
|
|
54525
|
-
/* @__PURE__ */ jsx(
|
|
54526
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
54647
|
+
/* @__PURE__ */ jsx(Icon2, { size: 16, style: { color: theme2.colors.primary } }),
|
|
54648
|
+
/* @__PURE__ */ jsx("span", { children: label })
|
|
54527
54649
|
]
|
|
54528
54650
|
}
|
|
54529
54651
|
),
|
|
54530
|
-
/* @__PURE__ */
|
|
54652
|
+
/* @__PURE__ */ jsxs(
|
|
54531
54653
|
"div",
|
|
54532
54654
|
{
|
|
54533
54655
|
style: {
|
|
@@ -54536,20 +54658,24 @@ const OrgProfilePanelPreview = () => {
|
|
|
54536
54658
|
color: theme2.colors.textSecondary,
|
|
54537
54659
|
marginTop: "4px"
|
|
54538
54660
|
},
|
|
54539
|
-
children:
|
|
54661
|
+
children: [
|
|
54662
|
+
"View ",
|
|
54663
|
+
label.toLowerCase(),
|
|
54664
|
+
" collections and repos"
|
|
54665
|
+
]
|
|
54540
54666
|
}
|
|
54541
54667
|
)
|
|
54542
54668
|
]
|
|
54543
54669
|
}
|
|
54544
54670
|
);
|
|
54545
54671
|
};
|
|
54546
|
-
const
|
|
54547
|
-
id: "industry-theme.
|
|
54548
|
-
name: "
|
|
54549
|
-
description: "View organization profiles with collections and repositories",
|
|
54550
|
-
icon: "
|
|
54672
|
+
const ProfilePanelMetadata = {
|
|
54673
|
+
id: "industry-theme.profile",
|
|
54674
|
+
name: "Profile",
|
|
54675
|
+
description: "View user or organization profiles with collections and repositories",
|
|
54676
|
+
icon: "user",
|
|
54551
54677
|
version: "0.1.0",
|
|
54552
|
-
slices: ["
|
|
54678
|
+
slices: ["profile"],
|
|
54553
54679
|
surfaces: ["panel"]
|
|
54554
54680
|
};
|
|
54555
54681
|
const listRepositoriesTool = {
|
|
@@ -54833,17 +54959,17 @@ const githubToolsMetadata = {
|
|
|
54833
54959
|
description: "Tools for browsing and managing GitHub repositories",
|
|
54834
54960
|
tools: githubTools
|
|
54835
54961
|
};
|
|
54836
|
-
const PANEL_ID = "industry-theme.
|
|
54837
|
-
const
|
|
54838
|
-
name: "
|
|
54839
|
-
description: "Switch between collections and
|
|
54962
|
+
const PANEL_ID = "industry-theme.profile";
|
|
54963
|
+
const setProfileViewTool = {
|
|
54964
|
+
name: "set_profile_view",
|
|
54965
|
+
description: "Switch between collections, repositories, and starred views in the profile panel. The starred view is only available for user profiles.",
|
|
54840
54966
|
inputs: {
|
|
54841
54967
|
type: "object",
|
|
54842
54968
|
properties: {
|
|
54843
54969
|
view: {
|
|
54844
54970
|
type: "string",
|
|
54845
|
-
enum: ["collections", "repositories"],
|
|
54846
|
-
description: "The view to switch to (collections or
|
|
54971
|
+
enum: ["collections", "repositories", "starred"],
|
|
54972
|
+
description: "The view to switch to (collections, repositories, or starred)"
|
|
54847
54973
|
}
|
|
54848
54974
|
},
|
|
54849
54975
|
required: ["view"]
|
|
@@ -54854,15 +54980,15 @@ const setOrgViewTool = {
|
|
|
54854
54980
|
success: { type: "boolean" }
|
|
54855
54981
|
}
|
|
54856
54982
|
},
|
|
54857
|
-
tags: ["
|
|
54983
|
+
tags: ["profile", "view", "switch"],
|
|
54858
54984
|
tool_call_template: {
|
|
54859
54985
|
call_template_type: "panel_event",
|
|
54860
54986
|
event_type: `${PANEL_ID}:set-view`
|
|
54861
54987
|
}
|
|
54862
54988
|
};
|
|
54863
|
-
const
|
|
54864
|
-
name: "
|
|
54865
|
-
description: "Select a collection from the organization's collections to view its repositories.",
|
|
54989
|
+
const selectProfileCollectionTool = {
|
|
54990
|
+
name: "select_profile_collection",
|
|
54991
|
+
description: "Select a collection from the user or organization's collections to view its repositories.",
|
|
54866
54992
|
inputs: {
|
|
54867
54993
|
type: "object",
|
|
54868
54994
|
properties: {
|
|
@@ -54880,21 +55006,21 @@ const selectOrgCollectionTool = {
|
|
|
54880
55006
|
collectionId: { type: "string" }
|
|
54881
55007
|
}
|
|
54882
55008
|
},
|
|
54883
|
-
tags: ["
|
|
55009
|
+
tags: ["profile", "collection", "select"],
|
|
54884
55010
|
tool_call_template: {
|
|
54885
55011
|
call_template_type: "panel_event",
|
|
54886
55012
|
event_type: `${PANEL_ID}:select-collection`
|
|
54887
55013
|
}
|
|
54888
55014
|
};
|
|
54889
|
-
const
|
|
54890
|
-
name: "
|
|
54891
|
-
description: "Select a repository from the organization's repositories to view its details.",
|
|
55015
|
+
const selectProfileRepositoryTool = {
|
|
55016
|
+
name: "select_profile_repository",
|
|
55017
|
+
description: "Select a repository from the user or organization's repositories to view its details.",
|
|
54892
55018
|
inputs: {
|
|
54893
55019
|
type: "object",
|
|
54894
55020
|
properties: {
|
|
54895
55021
|
owner: {
|
|
54896
55022
|
type: "string",
|
|
54897
|
-
description: "The repository owner (organization login)"
|
|
55023
|
+
description: "The repository owner (user or organization login)"
|
|
54898
55024
|
},
|
|
54899
55025
|
repo: {
|
|
54900
55026
|
type: "string",
|
|
@@ -54910,21 +55036,21 @@ const selectOrgRepositoryTool = {
|
|
|
54910
55036
|
repository: { type: "string" }
|
|
54911
55037
|
}
|
|
54912
55038
|
},
|
|
54913
|
-
tags: ["
|
|
55039
|
+
tags: ["profile", "repository", "select", "navigate"],
|
|
54914
55040
|
tool_call_template: {
|
|
54915
55041
|
call_template_type: "panel_event",
|
|
54916
55042
|
event_type: `${PANEL_ID}:select-repository`
|
|
54917
55043
|
}
|
|
54918
55044
|
};
|
|
54919
|
-
const
|
|
54920
|
-
name: "
|
|
54921
|
-
description: "Clone a repository from the organization to your local machine.",
|
|
55045
|
+
const cloneProfileRepositoryTool = {
|
|
55046
|
+
name: "clone_profile_repository",
|
|
55047
|
+
description: "Clone a repository from the user or organization to your local machine.",
|
|
54922
55048
|
inputs: {
|
|
54923
55049
|
type: "object",
|
|
54924
55050
|
properties: {
|
|
54925
55051
|
owner: {
|
|
54926
55052
|
type: "string",
|
|
54927
|
-
description: "The repository owner (organization login)"
|
|
55053
|
+
description: "The repository owner (user or organization login)"
|
|
54928
55054
|
},
|
|
54929
55055
|
repo: {
|
|
54930
55056
|
type: "string",
|
|
@@ -54939,15 +55065,15 @@ const cloneOrgRepositoryTool = {
|
|
|
54939
55065
|
success: { type: "boolean" }
|
|
54940
55066
|
}
|
|
54941
55067
|
},
|
|
54942
|
-
tags: ["
|
|
55068
|
+
tags: ["profile", "repository", "clone", "download"],
|
|
54943
55069
|
tool_call_template: {
|
|
54944
55070
|
call_template_type: "panel_event",
|
|
54945
55071
|
event_type: `${PANEL_ID}:clone-repository`
|
|
54946
55072
|
}
|
|
54947
55073
|
};
|
|
54948
|
-
const
|
|
54949
|
-
name: "
|
|
54950
|
-
description: "Filter the organization's repositories by name, description, or language.",
|
|
55074
|
+
const filterProfileRepositoriesTool = {
|
|
55075
|
+
name: "filter_profile_repositories",
|
|
55076
|
+
description: "Filter the user or organization's repositories by name, description, or language.",
|
|
54951
55077
|
inputs: {
|
|
54952
55078
|
type: "object",
|
|
54953
55079
|
properties: {
|
|
@@ -54964,24 +55090,24 @@ const filterOrgRepositoriesTool = {
|
|
|
54964
55090
|
success: { type: "boolean" }
|
|
54965
55091
|
}
|
|
54966
55092
|
},
|
|
54967
|
-
tags: ["
|
|
55093
|
+
tags: ["profile", "repository", "filter", "search"],
|
|
54968
55094
|
tool_call_template: {
|
|
54969
55095
|
call_template_type: "panel_event",
|
|
54970
55096
|
event_type: `${PANEL_ID}:filter-repositories`
|
|
54971
55097
|
}
|
|
54972
55098
|
};
|
|
54973
|
-
const
|
|
54974
|
-
|
|
54975
|
-
|
|
54976
|
-
|
|
54977
|
-
|
|
54978
|
-
|
|
55099
|
+
const profileTools = [
|
|
55100
|
+
setProfileViewTool,
|
|
55101
|
+
selectProfileCollectionTool,
|
|
55102
|
+
selectProfileRepositoryTool,
|
|
55103
|
+
cloneProfileRepositoryTool,
|
|
55104
|
+
filterProfileRepositoriesTool
|
|
54979
55105
|
];
|
|
54980
|
-
const
|
|
54981
|
-
id: "
|
|
54982
|
-
name: "
|
|
54983
|
-
description: "Tools for browsing organization profiles, collections, and repositories",
|
|
54984
|
-
tools:
|
|
55106
|
+
const profileToolsMetadata = {
|
|
55107
|
+
id: "profile-panel",
|
|
55108
|
+
name: "Profile Panel",
|
|
55109
|
+
description: "Tools for browsing user and organization profiles, collections, and repositories",
|
|
55110
|
+
tools: profileTools
|
|
54985
55111
|
};
|
|
54986
55112
|
function getTimelineEventType(event) {
|
|
54987
55113
|
return event.event;
|
|
@@ -55072,15 +55198,15 @@ const panels = [
|
|
|
55072
55198
|
},
|
|
55073
55199
|
{
|
|
55074
55200
|
metadata: {
|
|
55075
|
-
...
|
|
55076
|
-
tools:
|
|
55201
|
+
...ProfilePanelMetadata,
|
|
55202
|
+
tools: profileTools
|
|
55077
55203
|
},
|
|
55078
|
-
component:
|
|
55204
|
+
component: ProfilePanel,
|
|
55079
55205
|
onMount: async (_context) => {
|
|
55080
|
-
console.log("
|
|
55206
|
+
console.log("Profile Panel mounted");
|
|
55081
55207
|
},
|
|
55082
55208
|
onUnmount: async (_context) => {
|
|
55083
|
-
console.log("
|
|
55209
|
+
console.log("Profile Panel unmounting");
|
|
55084
55210
|
}
|
|
55085
55211
|
}
|
|
55086
55212
|
];
|
|
@@ -55097,38 +55223,41 @@ export {
|
|
|
55097
55223
|
GitHubProjectCard,
|
|
55098
55224
|
GitHubProjectsPanel,
|
|
55099
55225
|
GitHubSearchPanel,
|
|
55100
|
-
OrgProfilePanel,
|
|
55101
|
-
OrgProfilePanelMetadata,
|
|
55102
|
-
OrgProfilePanelPreview,
|
|
55103
55226
|
OwnerRepositoriesPanel,
|
|
55227
|
+
ProfilePanel,
|
|
55228
|
+
ProfilePanelMetadata,
|
|
55229
|
+
ProfilePanelPreview,
|
|
55104
55230
|
RecentRepositoriesPanel,
|
|
55105
55231
|
addRecentOwner,
|
|
55106
55232
|
addRecentRepository,
|
|
55107
|
-
|
|
55108
|
-
|
|
55233
|
+
cloneProfileRepositoryTool,
|
|
55234
|
+
filterProfileRepositoriesTool,
|
|
55235
|
+
getProfileDescription,
|
|
55109
55236
|
getTimelineEventType,
|
|
55110
55237
|
githubTools,
|
|
55111
55238
|
githubToolsMetadata,
|
|
55112
55239
|
isCommentEvent,
|
|
55113
55240
|
isCommitEvent,
|
|
55241
|
+
isOrgProfile,
|
|
55114
55242
|
isReviewEvent,
|
|
55243
|
+
isUserProfile,
|
|
55115
55244
|
listIssuesTool,
|
|
55116
55245
|
listRepositoriesTool,
|
|
55117
55246
|
onPackageLoad,
|
|
55118
55247
|
onPackageUnload,
|
|
55119
55248
|
openRepositorySwitcherTool,
|
|
55120
|
-
orgProfileTools,
|
|
55121
|
-
orgProfileToolsMetadata,
|
|
55122
55249
|
panels,
|
|
55123
55250
|
previewRepositoryTool,
|
|
55251
|
+
profileTools,
|
|
55252
|
+
profileToolsMetadata,
|
|
55124
55253
|
refreshIssuesTool,
|
|
55125
55254
|
refreshMessagesTool,
|
|
55126
55255
|
requestGitHubLoginTool,
|
|
55127
55256
|
searchRepositoriesTool,
|
|
55128
|
-
|
|
55129
|
-
|
|
55257
|
+
selectProfileCollectionTool,
|
|
55258
|
+
selectProfileRepositoryTool,
|
|
55130
55259
|
selectRepositoryTool,
|
|
55131
|
-
|
|
55260
|
+
setProfileViewTool,
|
|
55132
55261
|
viewIssueMessagesTool,
|
|
55133
55262
|
viewPullRequestMessagesTool
|
|
55134
55263
|
};
|