@industry-theme/github-panels 0.1.27 → 0.1.28
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/components/GitHubProjectCard.d.ts.map +1 -1
- package/dist/mocks/githubData.d.ts.map +1 -1
- package/dist/panels/OwnerRepositoriesPanel.d.ts +10 -2
- package/dist/panels/OwnerRepositoriesPanel.d.ts.map +1 -1
- package/dist/panels.bundle.js +105 -92
- package/dist/panels.bundle.js.map +1 -1
- package/dist/types/github.d.ts +29 -0
- package/dist/types/github.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitHubProjectCard.d.ts","sourceRoot":"","sources":["../../src/components/GitHubProjectCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GitHubProjectCard.d.ts","sourceRoot":"","sources":["../../src/components/GitHubProjectCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,WAAW,sBAAsB;IACrC,qCAAqC;IACrC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,0DAA0D;IAC1D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAClD,gDAAgD;IAChD,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACzD;AA4CD;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAoN9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"githubData.d.ts","sourceRoot":"","sources":["../../src/mocks/githubData.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"githubData.d.ts","sourceRoot":"","sources":["../../src/mocks/githubData.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,gBAAgB,EA0FnD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,gBAAgB,EAyFrD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,kBAAkB,EAwHjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,GACpC,YAAY,OAAO,CAAC,2BAA2B,CAAC,KAC/C,2BAOD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,8BAA8B,QAAO,2BAIhD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB,QAAO,2BAKtC,CAAC"}
|
|
@@ -4,11 +4,19 @@ import type { PanelComponentProps } from '../types';
|
|
|
4
4
|
* OwnerRepositoriesPanel - A panel for browsing a GitHub user or organization's repositories
|
|
5
5
|
*
|
|
6
6
|
* Features:
|
|
7
|
-
* - Shows
|
|
7
|
+
* - Shows repositories for a user/org (including private if authenticated)
|
|
8
8
|
* - Displays owner info (avatar, bio, repo count)
|
|
9
9
|
* - Sort by updated, stars, or name
|
|
10
10
|
* - Filter by programming language
|
|
11
11
|
* - Click to preview README, double-click to open
|
|
12
|
+
*
|
|
13
|
+
* Required data slice: 'owner-repositories' (OwnerRepositoriesSliceData)
|
|
14
|
+
*
|
|
15
|
+
* Events emitted:
|
|
16
|
+
* - 'owner-repositories:request' - Request data for a specific owner
|
|
17
|
+
* - 'owner-repositories:refresh' - Request a refresh of current data
|
|
18
|
+
* - 'repository:preview' - When a repo is clicked
|
|
19
|
+
* - 'repository:selected' - When a repo is double-clicked
|
|
12
20
|
*/
|
|
13
21
|
export declare const OwnerRepositoriesPanel: React.FC<PanelComponentProps & {
|
|
14
22
|
owner?: string;
|
|
@@ -22,7 +30,7 @@ export declare const OwnerRepositoriesPanelMetadata: {
|
|
|
22
30
|
description: string;
|
|
23
31
|
icon: string;
|
|
24
32
|
version: string;
|
|
25
|
-
slices:
|
|
33
|
+
slices: string[];
|
|
26
34
|
surfaces: string[];
|
|
27
35
|
};
|
|
28
36
|
//# sourceMappingURL=OwnerRepositoriesPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwnerRepositoriesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/OwnerRepositoriesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OwnerRepositoriesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/OwnerRepositoriesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAgBhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AA0mBpD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAErF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;CAQ1C,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -128,31 +128,31 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
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$
|
|
131
|
+
const __iconNode$n = [
|
|
132
132
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
133
133
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
134
134
|
];
|
|
135
|
-
const ArrowRight = createLucideIcon("arrow-right", __iconNode$
|
|
135
|
+
const ArrowRight = createLucideIcon("arrow-right", __iconNode$n);
|
|
136
136
|
/**
|
|
137
137
|
* @license lucide-react v0.552.0 - ISC
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the ISC license.
|
|
140
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
141
|
*/
|
|
142
|
-
const __iconNode$
|
|
142
|
+
const __iconNode$m = [
|
|
143
143
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
144
144
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
145
145
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
146
146
|
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
147
147
|
];
|
|
148
|
-
const ArrowUpDown = createLucideIcon("arrow-up-down", __iconNode$
|
|
148
|
+
const ArrowUpDown = createLucideIcon("arrow-up-down", __iconNode$m);
|
|
149
149
|
/**
|
|
150
150
|
* @license lucide-react v0.552.0 - ISC
|
|
151
151
|
*
|
|
152
152
|
* This source code is licensed under the ISC license.
|
|
153
153
|
* See the LICENSE file in the root directory of this source tree.
|
|
154
154
|
*/
|
|
155
|
-
const __iconNode$
|
|
155
|
+
const __iconNode$l = [
|
|
156
156
|
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
157
157
|
[
|
|
158
158
|
"path",
|
|
@@ -162,14 +162,14 @@ const __iconNode$k = [
|
|
|
162
162
|
}
|
|
163
163
|
]
|
|
164
164
|
];
|
|
165
|
-
const BookOpen = createLucideIcon("book-open", __iconNode$
|
|
165
|
+
const BookOpen = createLucideIcon("book-open", __iconNode$l);
|
|
166
166
|
/**
|
|
167
167
|
* @license lucide-react v0.552.0 - ISC
|
|
168
168
|
*
|
|
169
169
|
* This source code is licensed under the ISC license.
|
|
170
170
|
* See the LICENSE file in the root directory of this source tree.
|
|
171
171
|
*/
|
|
172
|
-
const __iconNode$
|
|
172
|
+
const __iconNode$k = [
|
|
173
173
|
["path", { d: "M10 12h4", key: "a56b0p" }],
|
|
174
174
|
["path", { d: "M10 8h4", key: "1sr2af" }],
|
|
175
175
|
["path", { d: "M14 21v-3a2 2 0 0 0-4 0v3", key: "1rgiei" }],
|
|
@@ -182,55 +182,55 @@ const __iconNode$j = [
|
|
|
182
182
|
],
|
|
183
183
|
["path", { d: "M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16", key: "16ra0t" }]
|
|
184
184
|
];
|
|
185
|
-
const Building2 = createLucideIcon("building-2", __iconNode$
|
|
185
|
+
const Building2 = createLucideIcon("building-2", __iconNode$k);
|
|
186
186
|
/**
|
|
187
187
|
* @license lucide-react v0.552.0 - ISC
|
|
188
188
|
*
|
|
189
189
|
* This source code is licensed under the ISC license.
|
|
190
190
|
* See the LICENSE file in the root directory of this source tree.
|
|
191
191
|
*/
|
|
192
|
-
const __iconNode$
|
|
192
|
+
const __iconNode$j = [
|
|
193
193
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
194
194
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
195
195
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
196
196
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
197
197
|
];
|
|
198
|
-
const Calendar = createLucideIcon("calendar", __iconNode$
|
|
198
|
+
const Calendar = createLucideIcon("calendar", __iconNode$j);
|
|
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$
|
|
206
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
205
|
+
const __iconNode$i = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
206
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$i);
|
|
207
207
|
/**
|
|
208
208
|
* @license lucide-react v0.552.0 - ISC
|
|
209
209
|
*
|
|
210
210
|
* This source code is licensed under the ISC license.
|
|
211
211
|
* See the LICENSE file in the root directory of this source tree.
|
|
212
212
|
*/
|
|
213
|
-
const __iconNode$
|
|
214
|
-
const ChevronRight = createLucideIcon("chevron-right", __iconNode$
|
|
213
|
+
const __iconNode$h = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
214
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$h);
|
|
215
215
|
/**
|
|
216
216
|
* @license lucide-react v0.552.0 - ISC
|
|
217
217
|
*
|
|
218
218
|
* This source code is licensed under the ISC license.
|
|
219
219
|
* See the LICENSE file in the root directory of this source tree.
|
|
220
220
|
*/
|
|
221
|
-
const __iconNode$
|
|
221
|
+
const __iconNode$g = [
|
|
222
222
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
223
223
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
224
224
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
225
225
|
];
|
|
226
|
-
const ExternalLink = createLucideIcon("external-link", __iconNode$
|
|
226
|
+
const ExternalLink = createLucideIcon("external-link", __iconNode$g);
|
|
227
227
|
/**
|
|
228
228
|
* @license lucide-react v0.552.0 - ISC
|
|
229
229
|
*
|
|
230
230
|
* This source code is licensed under the ISC license.
|
|
231
231
|
* See the LICENSE file in the root directory of this source tree.
|
|
232
232
|
*/
|
|
233
|
-
const __iconNode$
|
|
233
|
+
const __iconNode$f = [
|
|
234
234
|
[
|
|
235
235
|
"path",
|
|
236
236
|
{
|
|
@@ -239,14 +239,14 @@ const __iconNode$e = [
|
|
|
239
239
|
}
|
|
240
240
|
]
|
|
241
241
|
];
|
|
242
|
-
const Folder = createLucideIcon("folder", __iconNode$
|
|
242
|
+
const Folder = createLucideIcon("folder", __iconNode$f);
|
|
243
243
|
/**
|
|
244
244
|
* @license lucide-react v0.552.0 - ISC
|
|
245
245
|
*
|
|
246
246
|
* This source code is licensed under the ISC license.
|
|
247
247
|
* See the LICENSE file in the root directory of this source tree.
|
|
248
248
|
*/
|
|
249
|
-
const __iconNode$
|
|
249
|
+
const __iconNode$e = [
|
|
250
250
|
[
|
|
251
251
|
"path",
|
|
252
252
|
{
|
|
@@ -255,28 +255,28 @@ const __iconNode$d = [
|
|
|
255
255
|
}
|
|
256
256
|
]
|
|
257
257
|
];
|
|
258
|
-
const Funnel = createLucideIcon("funnel", __iconNode$
|
|
258
|
+
const Funnel = createLucideIcon("funnel", __iconNode$e);
|
|
259
259
|
/**
|
|
260
260
|
* @license lucide-react v0.552.0 - ISC
|
|
261
261
|
*
|
|
262
262
|
* This source code is licensed under the ISC license.
|
|
263
263
|
* See the LICENSE file in the root directory of this source tree.
|
|
264
264
|
*/
|
|
265
|
-
const __iconNode$
|
|
265
|
+
const __iconNode$d = [
|
|
266
266
|
["circle", { cx: "12", cy: "18", r: "3", key: "1mpf1b" }],
|
|
267
267
|
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
268
268
|
["circle", { cx: "18", cy: "6", r: "3", key: "1h7g24" }],
|
|
269
269
|
["path", { d: "M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9", key: "1uq4wg" }],
|
|
270
270
|
["path", { d: "M12 12v3", key: "158kv8" }]
|
|
271
271
|
];
|
|
272
|
-
const GitFork = createLucideIcon("git-fork", __iconNode$
|
|
272
|
+
const GitFork = createLucideIcon("git-fork", __iconNode$d);
|
|
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$c = [
|
|
280
280
|
[
|
|
281
281
|
"path",
|
|
282
282
|
{
|
|
@@ -286,69 +286,83 @@ const __iconNode$b = [
|
|
|
286
286
|
],
|
|
287
287
|
["path", { d: "M9 18c-4.51 2-5-2-7-2", key: "9comsn" }]
|
|
288
288
|
];
|
|
289
|
-
const Github = createLucideIcon("github", __iconNode$
|
|
289
|
+
const Github = createLucideIcon("github", __iconNode$c);
|
|
290
290
|
/**
|
|
291
291
|
* @license lucide-react v0.552.0 - ISC
|
|
292
292
|
*
|
|
293
293
|
* This source code is licensed under the ISC license.
|
|
294
294
|
* See the LICENSE file in the root directory of this source tree.
|
|
295
295
|
*/
|
|
296
|
-
const __iconNode$
|
|
296
|
+
const __iconNode$b = [
|
|
297
297
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
298
298
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
299
299
|
["path", { d: "M12 7v5l4 2", key: "1fdv2h" }]
|
|
300
300
|
];
|
|
301
|
-
const History = createLucideIcon("history", __iconNode$
|
|
301
|
+
const History = createLucideIcon("history", __iconNode$b);
|
|
302
302
|
/**
|
|
303
303
|
* @license lucide-react v0.552.0 - ISC
|
|
304
304
|
*
|
|
305
305
|
* This source code is licensed under the ISC license.
|
|
306
306
|
* See the LICENSE file in the root directory of this source tree.
|
|
307
307
|
*/
|
|
308
|
-
const __iconNode$
|
|
308
|
+
const __iconNode$a = [
|
|
309
309
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
310
310
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
311
311
|
];
|
|
312
|
-
const Lock = createLucideIcon("lock", __iconNode$
|
|
312
|
+
const Lock = createLucideIcon("lock", __iconNode$a);
|
|
313
313
|
/**
|
|
314
314
|
* @license lucide-react v0.552.0 - ISC
|
|
315
315
|
*
|
|
316
316
|
* This source code is licensed under the ISC license.
|
|
317
317
|
* See the LICENSE file in the root directory of this source tree.
|
|
318
318
|
*/
|
|
319
|
-
const __iconNode$
|
|
319
|
+
const __iconNode$9 = [
|
|
320
320
|
["path", { d: "m10 17 5-5-5-5", key: "1bsop3" }],
|
|
321
321
|
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
322
322
|
["path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4", key: "u53s6r" }]
|
|
323
323
|
];
|
|
324
|
-
const LogIn = createLucideIcon("log-in", __iconNode$
|
|
324
|
+
const LogIn = createLucideIcon("log-in", __iconNode$9);
|
|
325
325
|
/**
|
|
326
326
|
* @license lucide-react v0.552.0 - ISC
|
|
327
327
|
*
|
|
328
328
|
* This source code is licensed under the ISC license.
|
|
329
329
|
* See the LICENSE file in the root directory of this source tree.
|
|
330
330
|
*/
|
|
331
|
-
const __iconNode$
|
|
331
|
+
const __iconNode$8 = [
|
|
332
332
|
["rect", { x: "16", y: "16", width: "6", height: "6", rx: "1", key: "4q2zg0" }],
|
|
333
333
|
["rect", { x: "2", y: "16", width: "6", height: "6", rx: "1", key: "8cvhb9" }],
|
|
334
334
|
["rect", { x: "9", y: "2", width: "6", height: "6", rx: "1", key: "1egb70" }],
|
|
335
335
|
["path", { d: "M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3", key: "1jsf9p" }],
|
|
336
336
|
["path", { d: "M12 12V8", key: "2874zd" }]
|
|
337
337
|
];
|
|
338
|
-
const Network = createLucideIcon("network", __iconNode$
|
|
338
|
+
const Network = createLucideIcon("network", __iconNode$8);
|
|
339
339
|
/**
|
|
340
340
|
* @license lucide-react v0.552.0 - ISC
|
|
341
341
|
*
|
|
342
342
|
* This source code is licensed under the ISC license.
|
|
343
343
|
* See the LICENSE file in the root directory of this source tree.
|
|
344
344
|
*/
|
|
345
|
-
const __iconNode$
|
|
345
|
+
const __iconNode$7 = [
|
|
346
346
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
347
347
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
348
348
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
349
349
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
350
350
|
];
|
|
351
|
-
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$
|
|
351
|
+
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$7);
|
|
352
|
+
/**
|
|
353
|
+
* @license lucide-react v0.552.0 - ISC
|
|
354
|
+
*
|
|
355
|
+
* This source code is licensed under the ISC license.
|
|
356
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
357
|
+
*/
|
|
358
|
+
const __iconNode$6 = [
|
|
359
|
+
["path", { d: "m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z", key: "7g6ntu" }],
|
|
360
|
+
["path", { d: "m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z", key: "ijws7r" }],
|
|
361
|
+
["path", { d: "M7 21h10", key: "1b0cd5" }],
|
|
362
|
+
["path", { d: "M12 3v18", key: "108xh3" }],
|
|
363
|
+
["path", { d: "M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2", key: "3gwbw2" }]
|
|
364
|
+
];
|
|
365
|
+
const Scale = createLucideIcon("scale", __iconNode$6);
|
|
352
366
|
/**
|
|
353
367
|
* @license lucide-react v0.552.0 - ISC
|
|
354
368
|
*
|
|
@@ -599,6 +613,10 @@ const GitHubProjectCard = ({
|
|
|
599
613
|
forkCount > 0 && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
600
614
|
/* @__PURE__ */ jsx(GitFork, { size: 12 }),
|
|
601
615
|
/* @__PURE__ */ jsx("span", { children: formatCount(forkCount) })
|
|
616
|
+
] }),
|
|
617
|
+
repository.license && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
618
|
+
/* @__PURE__ */ jsx(Scale, { size: 12 }),
|
|
619
|
+
/* @__PURE__ */ jsx("span", { children: repository.license })
|
|
602
620
|
] })
|
|
603
621
|
]
|
|
604
622
|
}
|
|
@@ -1522,66 +1540,42 @@ const OwnerRepositoriesPanelContent = ({
|
|
|
1522
1540
|
context,
|
|
1523
1541
|
owner: propOwner
|
|
1524
1542
|
}) => {
|
|
1525
|
-
var _a, _b;
|
|
1543
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1526
1544
|
const { theme } = useTheme();
|
|
1527
|
-
const [repositories, setRepositories] = useState([]);
|
|
1528
|
-
const [ownerInfo, setOwnerInfo] = useState(null);
|
|
1529
|
-
const [isLoading, setIsLoading] = useState(true);
|
|
1530
|
-
const [error, setError] = useState(null);
|
|
1531
1545
|
const [selectedRepoId, setSelectedRepoId] = useState(null);
|
|
1532
1546
|
const [sortField, setSortField] = useState("updated");
|
|
1533
1547
|
const [sortOrder, setSortOrder] = useState("desc");
|
|
1534
1548
|
const [languageFilter, setLanguageFilter] = useState(null);
|
|
1535
|
-
const [languages, setLanguages] = useState([]);
|
|
1536
1549
|
const owner = propOwner || ((_b = (_a = context == null ? void 0 : context.currentScope) == null ? void 0 : _a.repository) == null ? void 0 : _b.name);
|
|
1537
|
-
const
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
type:
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1550
|
+
const ownerSlice = context.getSlice("owner-repositories");
|
|
1551
|
+
const isLoading = context.isSliceLoading("owner-repositories");
|
|
1552
|
+
const ownerInfo = ((_c = ownerSlice == null ? void 0 : ownerSlice.data) == null ? void 0 : _c.owner) ?? null;
|
|
1553
|
+
const repositories = ((_d = ownerSlice == null ? void 0 : ownerSlice.data) == null ? void 0 : _d.repositories) ?? [];
|
|
1554
|
+
const error = ((_e = ownerSlice == null ? void 0 : ownerSlice.data) == null ? void 0 : _e.error) ?? null;
|
|
1555
|
+
((_f = ownerSlice == null ? void 0 : ownerSlice.data) == null ? void 0 : _f.isAuthenticated) ?? false;
|
|
1556
|
+
const languages = React2.useMemo(() => {
|
|
1557
|
+
return [...new Set(
|
|
1558
|
+
repositories.map((r) => r.language).filter((lang) => lang !== null)
|
|
1559
|
+
)].sort();
|
|
1560
|
+
}, [repositories]);
|
|
1561
|
+
const handleRefresh = useCallback(() => {
|
|
1562
|
+
events.emit({
|
|
1563
|
+
type: "owner-repositories:refresh",
|
|
1564
|
+
source: "owner-repositories-panel",
|
|
1565
|
+
timestamp: Date.now(),
|
|
1566
|
+
payload: { owner }
|
|
1567
|
+
});
|
|
1568
|
+
}, [events, owner]);
|
|
1569
|
+
useEffect(() => {
|
|
1570
|
+
if (owner) {
|
|
1571
|
+
events.emit({
|
|
1572
|
+
type: "owner-repositories:request",
|
|
1573
|
+
source: "owner-repositories-panel",
|
|
1574
|
+
timestamp: Date.now(),
|
|
1575
|
+
payload: { owner }
|
|
1563
1576
|
});
|
|
1564
|
-
const reposResponse = await fetch(
|
|
1565
|
-
`https://api.github.com/users/${owner}/repos?per_page=100&sort=updated`
|
|
1566
|
-
);
|
|
1567
|
-
if (!reposResponse.ok) {
|
|
1568
|
-
throw new Error("Failed to fetch repositories");
|
|
1569
|
-
}
|
|
1570
|
-
const reposData = await reposResponse.json();
|
|
1571
|
-
setRepositories(reposData);
|
|
1572
|
-
const uniqueLanguages = [...new Set(
|
|
1573
|
-
reposData.map((r) => r.language).filter((lang) => lang !== null)
|
|
1574
|
-
)].sort();
|
|
1575
|
-
setLanguages(uniqueLanguages);
|
|
1576
|
-
} catch (err) {
|
|
1577
|
-
setError(err instanceof Error ? err.message : "Failed to load data");
|
|
1578
|
-
} finally {
|
|
1579
|
-
setIsLoading(false);
|
|
1580
1577
|
}
|
|
1581
|
-
}, [owner]);
|
|
1582
|
-
useEffect(() => {
|
|
1583
|
-
fetchOwnerData();
|
|
1584
|
-
}, [fetchOwnerData]);
|
|
1578
|
+
}, [events, owner]);
|
|
1585
1579
|
const sortedAndFilteredRepos = React2.useMemo(() => {
|
|
1586
1580
|
let filtered = repositories;
|
|
1587
1581
|
if (languageFilter) {
|
|
@@ -1728,7 +1722,7 @@ const OwnerRepositoriesPanelContent = ({
|
|
|
1728
1722
|
},
|
|
1729
1723
|
children: [
|
|
1730
1724
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
1731
|
-
|
|
1725
|
+
repositories.length,
|
|
1732
1726
|
" repositories"
|
|
1733
1727
|
] }),
|
|
1734
1728
|
ownerInfo.followers !== void 0 && /* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -1742,7 +1736,7 @@ const OwnerRepositoriesPanelContent = ({
|
|
|
1742
1736
|
/* @__PURE__ */ jsx(
|
|
1743
1737
|
"button",
|
|
1744
1738
|
{
|
|
1745
|
-
onClick:
|
|
1739
|
+
onClick: handleRefresh,
|
|
1746
1740
|
style: {
|
|
1747
1741
|
padding: "8px",
|
|
1748
1742
|
borderRadius: "6px",
|
|
@@ -1892,7 +1886,7 @@ const OwnerRepositoriesPanelContent = ({
|
|
|
1892
1886
|
/* @__PURE__ */ jsx(
|
|
1893
1887
|
"button",
|
|
1894
1888
|
{
|
|
1895
|
-
onClick:
|
|
1889
|
+
onClick: handleRefresh,
|
|
1896
1890
|
style: {
|
|
1897
1891
|
padding: "8px 16px",
|
|
1898
1892
|
borderRadius: "6px",
|
|
@@ -1922,7 +1916,7 @@ const OwnerRepositoriesPanelContent = ({
|
|
|
1922
1916
|
},
|
|
1923
1917
|
children: [
|
|
1924
1918
|
/* @__PURE__ */ jsx(Github, { size: 48, color: theme.colors.border, style: { marginBottom: 16 } }),
|
|
1925
|
-
/* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: "No
|
|
1919
|
+
/* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: "No repositories found" })
|
|
1926
1920
|
]
|
|
1927
1921
|
}
|
|
1928
1922
|
),
|
|
@@ -1967,6 +1961,25 @@ const OwnerRepositoriesPanelContent = ({
|
|
|
1967
1961
|
children: repo.name
|
|
1968
1962
|
}
|
|
1969
1963
|
),
|
|
1964
|
+
repo.private && /* @__PURE__ */ jsxs(
|
|
1965
|
+
"span",
|
|
1966
|
+
{
|
|
1967
|
+
style: {
|
|
1968
|
+
fontSize: `${theme.fontSizes[0]}px`,
|
|
1969
|
+
padding: "2px 6px",
|
|
1970
|
+
borderRadius: "4px",
|
|
1971
|
+
backgroundColor: theme.colors.backgroundTertiary,
|
|
1972
|
+
color: theme.colors.textSecondary,
|
|
1973
|
+
display: "flex",
|
|
1974
|
+
alignItems: "center",
|
|
1975
|
+
gap: "4px"
|
|
1976
|
+
},
|
|
1977
|
+
children: [
|
|
1978
|
+
/* @__PURE__ */ jsx(Lock, { size: 10 }),
|
|
1979
|
+
"Private"
|
|
1980
|
+
]
|
|
1981
|
+
}
|
|
1982
|
+
),
|
|
1970
1983
|
repo.archived && /* @__PURE__ */ jsx(
|
|
1971
1984
|
"span",
|
|
1972
1985
|
{
|
|
@@ -2123,8 +2136,8 @@ const OwnerRepositoriesPanelMetadata = {
|
|
|
2123
2136
|
name: "Owner Repositories",
|
|
2124
2137
|
description: "Browse repositories for a GitHub user or organization",
|
|
2125
2138
|
icon: "github",
|
|
2126
|
-
version: "0.
|
|
2127
|
-
slices: [],
|
|
2139
|
+
version: "0.2.0",
|
|
2140
|
+
slices: ["owner-repositories"],
|
|
2128
2141
|
surfaces: ["panel"]
|
|
2129
2142
|
};
|
|
2130
2143
|
const STORAGE_KEY = "recent-repositories";
|