@peasant-labs/fairtrade 0.0.29 → 0.0.31
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/lib/{GraphLegend-kO2WP4yM.js → GraphLegend-CxEDHRXa.js} +1215 -835
- package/dist/lib/commons.js +256 -256
- package/dist/lib/components.css +1 -1
- package/dist/lib/graph.js +442 -442
- package/dist/lib/types/VillageObservations.d.ts +87 -0
- package/dist/lib/types/graph/index.d.ts +6 -0
- package/dist/lib/types/index.d.ts +6 -0
- package/dist/lib/{ui-kyAEj4Vo.js → ui-BaKO2zmG.js} +3521 -3726
- package/dist/lib/ui.js +4 -4
- package/package.json +3 -3
package/dist/lib/commons.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Ot as e, Tt as t, ht as n, lt as r, pt as i, ut as a } from "./GraphLegend-CxEDHRXa.js";
|
|
2
|
+
import { Dt as o, Et as s, Ot as c, Vn as l, Xn as u, an as d, er as f, ft as p, ht as m, in as h, jt as g, kt as _, mt as v, nn as y, on as b, rr as x, tr as S, ut as C, vr as w, wt as T } from "./ui-BaKO2zmG.js";
|
|
3
3
|
import { useEffect as E, useId as D, useMemo as O, useRef as k, useState as A } from "react";
|
|
4
4
|
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
5
5
|
import { ArrowRight as P, Check as F, ChevronDown as I, ChevronRight as L, ClipboardCheck as R, Compass as z, Copy as B, ExternalLink as V, Eye as H, EyeOff as U, FileText as W, FolderGit2 as G, GitBranch as K, Hash as ee, LayoutGrid as te, List as ne, Lock as q, LogOut as J, MoreHorizontal as re, Plus as ie, Search as ae, SearchX as oe, Settings as Y, ShieldAlert as X, Upload as Z, User as se, UserPlus as ce, Users as Q, X as $ } from "lucide-react";
|
|
@@ -178,10 +178,10 @@ var le = Object.freeze([
|
|
|
178
178
|
usageCount: 24
|
|
179
179
|
}
|
|
180
180
|
]
|
|
181
|
-
}), he =
|
|
181
|
+
}), he = r, ge = (e) => {
|
|
182
182
|
let t = Math.max(0, Math.round(e / 6e4));
|
|
183
183
|
return t >= 60 ? `${Math.floor(t / 60)}h ${String(t % 60).padStart(2, "0")}m` : `${t}min`;
|
|
184
|
-
}, _e =
|
|
184
|
+
}, _e = a, ve = (e = "") => e.split(/[\s-]+/).filter(Boolean).slice(0, 2).map((e) => e[0]).join("").toUpperCase() || "?", ye = (e) => e.trim().toLowerCase();
|
|
185
185
|
function be(e) {
|
|
186
186
|
return e ? e.length ? e[0].toUpperCase() + e.slice(1) : e : "";
|
|
187
187
|
}
|
|
@@ -202,20 +202,20 @@ function Ce(e) {
|
|
|
202
202
|
function we(e) {
|
|
203
203
|
return Number.isInteger(e) && e >= 1 ? e : 1;
|
|
204
204
|
}
|
|
205
|
-
function Te({ transcript: e, href: t, onOpen:
|
|
206
|
-
let
|
|
205
|
+
function Te({ transcript: e, href: t, onOpen: r }) {
|
|
206
|
+
let i = /* @__PURE__ */ N(j, { children: [
|
|
207
207
|
/* @__PURE__ */ N("div", {
|
|
208
208
|
className: "card-head",
|
|
209
209
|
children: [/* @__PURE__ */ N("span", {
|
|
210
210
|
className: "metaitem cex-model",
|
|
211
|
-
children: [/* @__PURE__ */ M(
|
|
211
|
+
children: [/* @__PURE__ */ M(n, {
|
|
212
212
|
harness: e.modelProvider,
|
|
213
213
|
accent: !0
|
|
214
214
|
}), /* @__PURE__ */ M("span", {
|
|
215
215
|
className: "mono",
|
|
216
216
|
children: e.modelName || e.modelProvider
|
|
217
217
|
})]
|
|
218
|
-
}), /* @__PURE__ */ M(
|
|
218
|
+
}), /* @__PURE__ */ M(C, { visibility: e.visibility })]
|
|
219
219
|
}),
|
|
220
220
|
/* @__PURE__ */ M("h3", {
|
|
221
221
|
className: "cex-title",
|
|
@@ -250,20 +250,20 @@ function Te({ transcript: e, href: t, onOpen: n }) {
|
|
|
250
250
|
return t ? /* @__PURE__ */ M("a", {
|
|
251
251
|
href: t,
|
|
252
252
|
className: "card cex-tcard",
|
|
253
|
-
onClick: (t) => Se(t,
|
|
254
|
-
children:
|
|
253
|
+
onClick: (t) => Se(t, r, e),
|
|
254
|
+
children: i
|
|
255
255
|
}) : /* @__PURE__ */ M("button", {
|
|
256
256
|
type: "button",
|
|
257
257
|
className: "card cex-tcard",
|
|
258
|
-
onClick: () =>
|
|
259
|
-
children:
|
|
258
|
+
onClick: () => r?.(e),
|
|
259
|
+
children: i
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
|
-
function Ee({ transcript: e, href: t, onOpen:
|
|
263
|
-
let
|
|
262
|
+
function Ee({ transcript: e, href: t, onOpen: r }) {
|
|
263
|
+
let i = /* @__PURE__ */ N(j, { children: [
|
|
264
264
|
/* @__PURE__ */ N("span", {
|
|
265
265
|
className: "cex-trow-model",
|
|
266
|
-
children: [/* @__PURE__ */ M(
|
|
266
|
+
children: [/* @__PURE__ */ M(n, { harness: e.modelProvider }), /* @__PURE__ */ M("b", { children: e.modelName || e.modelProvider })]
|
|
267
267
|
}),
|
|
268
268
|
/* @__PURE__ */ M("span", {
|
|
269
269
|
className: "cex-trow-title",
|
|
@@ -281,18 +281,18 @@ function Ee({ transcript: e, href: t, onOpen: n }) {
|
|
|
281
281
|
className: "cex-trow-date mono tnum",
|
|
282
282
|
children: _e(e.sessionStart || e.sessionEnd || "")
|
|
283
283
|
}),
|
|
284
|
-
/* @__PURE__ */ M(
|
|
284
|
+
/* @__PURE__ */ M(C, { visibility: e.visibility })
|
|
285
285
|
] });
|
|
286
286
|
return t ? /* @__PURE__ */ M("a", {
|
|
287
287
|
href: t,
|
|
288
288
|
className: "row cex-trow",
|
|
289
|
-
onClick: (t) => Se(t,
|
|
290
|
-
children:
|
|
289
|
+
onClick: (t) => Se(t, r, e),
|
|
290
|
+
children: i
|
|
291
291
|
}) : /* @__PURE__ */ M("button", {
|
|
292
292
|
type: "button",
|
|
293
293
|
className: "row cex-trow",
|
|
294
|
-
onClick: () =>
|
|
295
|
-
children:
|
|
294
|
+
onClick: () => r?.(e),
|
|
295
|
+
children: i
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
function De({ collective: e, href: t, onOpen: n }) {
|
|
@@ -331,21 +331,21 @@ function De({ collective: e, href: t, onOpen: n }) {
|
|
|
331
331
|
children: r
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
|
-
function Oe({ data:
|
|
335
|
-
let
|
|
334
|
+
function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript: a, onOpenProfile: o, onOpenCollective: s, transcriptHref: c, profileHref: l, collectiveHref: u }) {
|
|
335
|
+
let d = Ce(t), f = d.transcripts.transcripts, [p, m] = A(""), [h, v] = A(""), [y, b] = A("recent"), [x, S] = A("all"), [w, T] = A(() => /* @__PURE__ */ new Set()), [D, j] = A("grid"), [P, F] = A(() => we(d.transcripts.page)), [I, L] = A(null), [R, B] = A("browse"), V = k(!0), H = k(null);
|
|
336
336
|
E(() => {
|
|
337
337
|
if (V.current) {
|
|
338
|
-
V.current = !1,
|
|
338
|
+
V.current = !1, v(p);
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
|
-
let e = setTimeout(() =>
|
|
341
|
+
let e = setTimeout(() => v(p), 250);
|
|
342
342
|
return () => clearTimeout(e);
|
|
343
|
-
}, [V,
|
|
343
|
+
}, [V, p]), E(() => {
|
|
344
344
|
let e = JSON.stringify([
|
|
345
345
|
h,
|
|
346
|
-
|
|
346
|
+
y,
|
|
347
347
|
x,
|
|
348
|
-
[...
|
|
348
|
+
[...w].sort()
|
|
349
349
|
]);
|
|
350
350
|
if (H.current === null || H.current === e) {
|
|
351
351
|
H.current = e;
|
|
@@ -354,60 +354,60 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
354
354
|
H.current = e, F(1);
|
|
355
355
|
}, [
|
|
356
356
|
h,
|
|
357
|
-
|
|
357
|
+
y,
|
|
358
358
|
x,
|
|
359
|
-
|
|
359
|
+
w
|
|
360
360
|
]), E(() => {
|
|
361
|
-
|
|
361
|
+
i?.({
|
|
362
362
|
query: h,
|
|
363
363
|
provider: x,
|
|
364
|
-
topics: [...
|
|
365
|
-
order:
|
|
364
|
+
topics: [...w],
|
|
365
|
+
order: y,
|
|
366
366
|
page: P
|
|
367
367
|
});
|
|
368
368
|
}, [
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
y,
|
|
370
|
+
i,
|
|
371
371
|
P,
|
|
372
372
|
x,
|
|
373
373
|
h,
|
|
374
|
-
|
|
374
|
+
w
|
|
375
375
|
]);
|
|
376
|
-
let U =
|
|
376
|
+
let U = f.find((e) => e.id === I) ?? f[0] ?? null, G = U?.owner ?? null, K = G ? f.filter((e) => e.owner.githubUsername === G.githubUsername) : [], ee = O(() => {
|
|
377
377
|
let e = /* @__PURE__ */ new Map();
|
|
378
|
-
for (let t of
|
|
378
|
+
for (let t of f) e.set(t.modelProvider, (e.get(t.modelProvider) || 0) + 1);
|
|
379
379
|
return [{
|
|
380
380
|
slug: "all",
|
|
381
|
-
count:
|
|
381
|
+
count: f.length
|
|
382
382
|
}, ...[...e.entries()].map(([e, t]) => ({
|
|
383
383
|
slug: e,
|
|
384
384
|
count: t
|
|
385
385
|
}))];
|
|
386
|
-
}, [
|
|
386
|
+
}, [f]);
|
|
387
387
|
E(() => {
|
|
388
|
-
I && !
|
|
389
|
-
}, [I,
|
|
388
|
+
I && !f.some((e) => e.id === I) && (L(null), B("browse"));
|
|
389
|
+
}, [I, f]);
|
|
390
390
|
let q = O(() => {
|
|
391
391
|
let e = ye(h);
|
|
392
|
-
return e ?
|
|
392
|
+
return e ? d.collectives.filter((t) => [
|
|
393
393
|
t.name,
|
|
394
394
|
t.description,
|
|
395
395
|
t.linkedGithubOrg
|
|
396
396
|
].filter(Boolean).join(" ").toLowerCase().includes(e)) : null;
|
|
397
|
-
}, [
|
|
398
|
-
if (
|
|
399
|
-
|
|
397
|
+
}, [d.collectives, h]), J = f, re = w.size, ie = d.transcripts.total ?? f.length, ae = P, Y = d.transcripts.limit || f.length || 1, X = (e) => {
|
|
398
|
+
if (a) {
|
|
399
|
+
a(e);
|
|
400
400
|
return;
|
|
401
401
|
}
|
|
402
402
|
L(e.id), B("detail");
|
|
403
403
|
}, Z = () => {
|
|
404
|
-
if (
|
|
405
|
-
|
|
404
|
+
if (o && G) {
|
|
405
|
+
o(G);
|
|
406
406
|
return;
|
|
407
407
|
}
|
|
408
|
-
U ? (L(U.id), B("profile")) :
|
|
408
|
+
U ? (L(U.id), B("profile")) : f[0] && (L(f[0].id), B("profile"));
|
|
409
409
|
}, ce = () => {
|
|
410
|
-
m(""),
|
|
410
|
+
m(""), v(""), b("recent"), S("all"), T(/* @__PURE__ */ new Set()), F(1);
|
|
411
411
|
}, Q = O(() => G ? [...xe(K, (e) => e.projectName || "untitled project").entries()].map(([e, t]) => ({
|
|
412
412
|
project: e,
|
|
413
413
|
items: t
|
|
@@ -420,7 +420,7 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
420
420
|
};
|
|
421
421
|
}, [K, Q.length]);
|
|
422
422
|
return R === "detail" && U ? /* @__PURE__ */ N("div", {
|
|
423
|
-
className: `cex-root cex-detail ${
|
|
423
|
+
className: `cex-root cex-detail ${r}`.trim(),
|
|
424
424
|
children: [/* @__PURE__ */ N("div", {
|
|
425
425
|
className: "cex-detail-back",
|
|
426
426
|
children: [/* @__PURE__ */ N("button", {
|
|
@@ -473,7 +473,7 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
473
473
|
children: [/* @__PURE__ */ M("h2", {
|
|
474
474
|
className: "win-title cex-vtitle",
|
|
475
475
|
children: be(U.title || "untitled transcript")
|
|
476
|
-
}), /* @__PURE__ */ M(
|
|
476
|
+
}), /* @__PURE__ */ M(C, { visibility: U.visibility })]
|
|
477
477
|
}),
|
|
478
478
|
/* @__PURE__ */ N("p", {
|
|
479
479
|
className: "cex-vdesc",
|
|
@@ -488,7 +488,7 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
488
488
|
children: [
|
|
489
489
|
/* @__PURE__ */ N("span", {
|
|
490
490
|
className: "metaitem",
|
|
491
|
-
children: [/* @__PURE__ */ M(
|
|
491
|
+
children: [/* @__PURE__ */ M(n, {
|
|
492
492
|
harness: U.modelProvider,
|
|
493
493
|
accent: !0
|
|
494
494
|
}), /* @__PURE__ */ M("span", { children: U.modelName || U.modelProvider })]
|
|
@@ -583,7 +583,7 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
583
583
|
})]
|
|
584
584
|
})]
|
|
585
585
|
}),
|
|
586
|
-
/* @__PURE__ */ M(
|
|
586
|
+
/* @__PURE__ */ M(_, { tiles: [
|
|
587
587
|
{
|
|
588
588
|
key: "transcripts",
|
|
589
589
|
label: "transcripts",
|
|
@@ -605,7 +605,7 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
605
605
|
})]
|
|
606
606
|
})]
|
|
607
607
|
}) : R === "profile" && G ? /* @__PURE__ */ N("div", {
|
|
608
|
-
className: `cex-root cex-profile ${
|
|
608
|
+
className: `cex-root cex-profile ${r}`.trim(),
|
|
609
609
|
children: [
|
|
610
610
|
/* @__PURE__ */ N("div", {
|
|
611
611
|
className: "cex-detail-back",
|
|
@@ -659,7 +659,7 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
659
659
|
})]
|
|
660
660
|
})]
|
|
661
661
|
}),
|
|
662
|
-
/* @__PURE__ */ M(
|
|
662
|
+
/* @__PURE__ */ M(_, { tiles: [
|
|
663
663
|
{
|
|
664
664
|
key: "transcripts",
|
|
665
665
|
label: "transcripts",
|
|
@@ -719,7 +719,7 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
719
719
|
className: "cex-lib-rows",
|
|
720
720
|
children: t.map((e) => /* @__PURE__ */ M(Ee, {
|
|
721
721
|
transcript: e,
|
|
722
|
-
href:
|
|
722
|
+
href: c?.(e),
|
|
723
723
|
onOpen: X
|
|
724
724
|
}, e.id))
|
|
725
725
|
})]
|
|
@@ -728,7 +728,7 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
728
728
|
})
|
|
729
729
|
]
|
|
730
730
|
}) : /* @__PURE__ */ N("div", {
|
|
731
|
-
className: `cex-root ${
|
|
731
|
+
className: `cex-root ${r}`.trim(),
|
|
732
732
|
children: [/* @__PURE__ */ N("header", {
|
|
733
733
|
className: "cex-explore-head",
|
|
734
734
|
children: [
|
|
@@ -745,11 +745,11 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
745
745
|
children: [/* @__PURE__ */ M("input", {
|
|
746
746
|
className: "input",
|
|
747
747
|
type: "text",
|
|
748
|
-
value:
|
|
748
|
+
value: p,
|
|
749
749
|
onChange: (e) => m(e.target.value),
|
|
750
750
|
placeholder: "search transcripts, collectives, projects, models...",
|
|
751
751
|
"aria-label": "search transcripts, collectives, projects, models"
|
|
752
|
-
}),
|
|
752
|
+
}), p && /* @__PURE__ */ M("button", {
|
|
753
753
|
type: "button",
|
|
754
754
|
className: "cex-clear",
|
|
755
755
|
"aria-label": "clear search",
|
|
@@ -763,17 +763,17 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
763
763
|
]
|
|
764
764
|
}), /* @__PURE__ */ N("div", {
|
|
765
765
|
className: "cex-explore-body",
|
|
766
|
-
children: [/* @__PURE__ */ M(
|
|
767
|
-
order:
|
|
766
|
+
children: [/* @__PURE__ */ M(g, {
|
|
767
|
+
order: y,
|
|
768
768
|
onOrder: (e) => b(e),
|
|
769
769
|
providers: ee,
|
|
770
770
|
activeProviders: x === "all" ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([x]),
|
|
771
771
|
onProvider: (e) => S((t) => t === e ? "all" : e),
|
|
772
|
-
topics:
|
|
772
|
+
topics: d.popularTags.map((e) => ({
|
|
773
773
|
tag: e.name,
|
|
774
774
|
count: e.usageCount
|
|
775
775
|
})),
|
|
776
|
-
activeTopics:
|
|
776
|
+
activeTopics: w,
|
|
777
777
|
onTopic: (e) => {
|
|
778
778
|
T((t) => {
|
|
779
779
|
let n = new Set(t);
|
|
@@ -804,8 +804,8 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
804
804
|
className: "cex-coll-grid",
|
|
805
805
|
children: q.map((e) => /* @__PURE__ */ M(De, {
|
|
806
806
|
collective: e,
|
|
807
|
-
href:
|
|
808
|
-
onOpen:
|
|
807
|
+
href: u?.(e),
|
|
808
|
+
onOpen: s
|
|
809
809
|
}, e.id))
|
|
810
810
|
})]
|
|
811
811
|
}),
|
|
@@ -888,18 +888,18 @@ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
888
888
|
className: "cex-grid",
|
|
889
889
|
children: J.map((e) => /* @__PURE__ */ M(Te, {
|
|
890
890
|
transcript: e,
|
|
891
|
-
href:
|
|
891
|
+
href: c?.(e),
|
|
892
892
|
onOpen: X
|
|
893
893
|
}, e.id))
|
|
894
894
|
}) : /* @__PURE__ */ M("div", {
|
|
895
895
|
className: "cex-list",
|
|
896
896
|
children: J.map((e) => /* @__PURE__ */ M(Ee, {
|
|
897
897
|
transcript: e,
|
|
898
|
-
href:
|
|
898
|
+
href: c?.(e),
|
|
899
899
|
onOpen: X
|
|
900
900
|
}, e.id))
|
|
901
901
|
}),
|
|
902
|
-
ie > Y && /* @__PURE__ */ M(
|
|
902
|
+
ie > Y && /* @__PURE__ */ M(e, {
|
|
903
903
|
page: ae,
|
|
904
904
|
totalItems: ie,
|
|
905
905
|
pageSize: Y,
|
|
@@ -917,7 +917,7 @@ function ke(e) {
|
|
|
917
917
|
return String(e || "unknown").replace(/[-_]+/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
918
918
|
}
|
|
919
919
|
function Ae(e) {
|
|
920
|
-
return
|
|
920
|
+
return t(e);
|
|
921
921
|
}
|
|
922
922
|
//#endregion
|
|
923
923
|
//#region src/mockups/inuse/CommonsManage.jsx
|
|
@@ -1534,7 +1534,7 @@ function Re() {
|
|
|
1534
1534
|
})]
|
|
1535
1535
|
})
|
|
1536
1536
|
]
|
|
1537
|
-
}), /* @__PURE__ */ M(
|
|
1537
|
+
}), /* @__PURE__ */ M(b, {
|
|
1538
1538
|
open: i,
|
|
1539
1539
|
title: /* @__PURE__ */ N(j, { children: [
|
|
1540
1540
|
"make ",
|
|
@@ -1656,7 +1656,7 @@ function We(e, t, n) {
|
|
|
1656
1656
|
}, e));
|
|
1657
1657
|
}
|
|
1658
1658
|
function Ge({ data: e = {}, actions: t = {} } = {}) {
|
|
1659
|
-
let { collectives: n = [], linkedOrgs:
|
|
1659
|
+
let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a = "a collective is a group that can read the transcripts its members publish to it. link your repositories so pull requests find them.", crumb: o, caption: s = "collectives", createLabel: c = "new collective", createBusy: u = !1, whoCanPublish: f = ze, whoCanRead: p = Be } = e, { onCreateCollective: m, onOpenCollective: h, onSearchCollectives: g } = t, [_, v] = A(!1), [y, b] = A(""), [S, C] = A(""), [T, E] = A(f[0]?.value ?? ""), [O, k] = A(p[0]?.value ?? ""), [j, P] = A(""), [F, I] = A(""), L = D(), R = [
|
|
1660
1660
|
{
|
|
1661
1661
|
key: "name",
|
|
1662
1662
|
label: "name",
|
|
@@ -1665,7 +1665,7 @@ function Ge({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1665
1665
|
children: [/* @__PURE__ */ M("button", {
|
|
1666
1666
|
type: "button",
|
|
1667
1667
|
className: "cmg-table-link",
|
|
1668
|
-
onClick: () =>
|
|
1668
|
+
onClick: () => h?.(t.id),
|
|
1669
1669
|
children: t.name
|
|
1670
1670
|
}), t.desc ? /* @__PURE__ */ M("span", {
|
|
1671
1671
|
className: "cmg-cell-desc",
|
|
@@ -1715,9 +1715,9 @@ function Ge({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1715
1715
|
return /* @__PURE__ */ N("div", {
|
|
1716
1716
|
className: "iu-page",
|
|
1717
1717
|
children: [
|
|
1718
|
-
|
|
1718
|
+
o ? /* @__PURE__ */ M("div", {
|
|
1719
1719
|
className: "cmg-crumb",
|
|
1720
|
-
children: /* @__PURE__ */ M(
|
|
1720
|
+
children: /* @__PURE__ */ M(x, { items: [{ label: o }] })
|
|
1721
1721
|
}) : null,
|
|
1722
1722
|
/* @__PURE__ */ N("header", {
|
|
1723
1723
|
className: "iu-page-head",
|
|
@@ -1725,27 +1725,27 @@ function Ge({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1725
1725
|
className: "iu-page-titlerow",
|
|
1726
1726
|
children: [/* @__PURE__ */ M("h2", {
|
|
1727
1727
|
className: "iu-page-title",
|
|
1728
|
-
children:
|
|
1728
|
+
children: i
|
|
1729
1729
|
}), /* @__PURE__ */ N("button", {
|
|
1730
1730
|
type: "button",
|
|
1731
|
-
className: "btn btn-sm " + (
|
|
1732
|
-
"aria-expanded":
|
|
1733
|
-
onClick: () =>
|
|
1731
|
+
className: "btn btn-sm " + (_ ? "btn-secondary" : "btn-primary"),
|
|
1732
|
+
"aria-expanded": _,
|
|
1733
|
+
onClick: () => v((e) => !e),
|
|
1734
1734
|
children: [
|
|
1735
1735
|
/* @__PURE__ */ M(ie, {
|
|
1736
1736
|
size: 14,
|
|
1737
1737
|
"aria-hidden": "true"
|
|
1738
1738
|
}),
|
|
1739
1739
|
" ",
|
|
1740
|
-
|
|
1740
|
+
_ ? "close" : c
|
|
1741
1741
|
]
|
|
1742
1742
|
})]
|
|
1743
|
-
}),
|
|
1743
|
+
}), a ? /* @__PURE__ */ M("p", {
|
|
1744
1744
|
className: "iu-page-sub",
|
|
1745
|
-
children:
|
|
1745
|
+
children: a
|
|
1746
1746
|
}) : null]
|
|
1747
1747
|
}),
|
|
1748
|
-
|
|
1748
|
+
_ && /* @__PURE__ */ N("section", {
|
|
1749
1749
|
className: "cmg-form card",
|
|
1750
1750
|
"aria-labelledby": `${L}-form`,
|
|
1751
1751
|
children: [
|
|
@@ -1765,8 +1765,8 @@ function Ge({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1765
1765
|
}), /* @__PURE__ */ M("input", {
|
|
1766
1766
|
className: "input",
|
|
1767
1767
|
type: "text",
|
|
1768
|
-
value:
|
|
1769
|
-
onChange: (e) =>
|
|
1768
|
+
value: y,
|
|
1769
|
+
onChange: (e) => b(e.target.value)
|
|
1770
1770
|
})]
|
|
1771
1771
|
}),
|
|
1772
1772
|
/* @__PURE__ */ N("label", {
|
|
@@ -1777,19 +1777,19 @@ function Ge({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1777
1777
|
}), /* @__PURE__ */ M("textarea", {
|
|
1778
1778
|
className: "input",
|
|
1779
1779
|
rows: 2,
|
|
1780
|
-
value:
|
|
1781
|
-
onChange: (e) =>
|
|
1780
|
+
value: S,
|
|
1781
|
+
onChange: (e) => C(e.target.value)
|
|
1782
1782
|
})]
|
|
1783
1783
|
}),
|
|
1784
1784
|
/* @__PURE__ */ M("div", {
|
|
1785
1785
|
className: "cmg-field",
|
|
1786
|
-
children: /* @__PURE__ */ M(
|
|
1786
|
+
children: /* @__PURE__ */ M(d, {
|
|
1787
1787
|
variant: "select",
|
|
1788
1788
|
label: "who can publish",
|
|
1789
1789
|
name: "who-can-publish",
|
|
1790
1790
|
value: T,
|
|
1791
1791
|
onChange: E,
|
|
1792
|
-
options:
|
|
1792
|
+
options: f.map((e) => ({
|
|
1793
1793
|
...e,
|
|
1794
1794
|
rationale: e.help
|
|
1795
1795
|
}))
|
|
@@ -1797,13 +1797,13 @@ function Ge({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1797
1797
|
}),
|
|
1798
1798
|
/* @__PURE__ */ M("div", {
|
|
1799
1799
|
className: "cmg-field",
|
|
1800
|
-
children: /* @__PURE__ */ M(
|
|
1800
|
+
children: /* @__PURE__ */ M(d, {
|
|
1801
1801
|
variant: "select",
|
|
1802
1802
|
label: "who can read",
|
|
1803
1803
|
name: "who-can-read",
|
|
1804
1804
|
value: O,
|
|
1805
1805
|
onChange: k,
|
|
1806
|
-
options:
|
|
1806
|
+
options: p
|
|
1807
1807
|
})
|
|
1808
1808
|
}),
|
|
1809
1809
|
/* @__PURE__ */ N("label", {
|
|
@@ -1820,7 +1820,7 @@ function Ge({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1820
1820
|
children: [/* @__PURE__ */ M("option", {
|
|
1821
1821
|
value: "",
|
|
1822
1822
|
children: "not linked"
|
|
1823
|
-
}),
|
|
1823
|
+
}), r.map((e) => /* @__PURE__ */ M("option", {
|
|
1824
1824
|
value: e,
|
|
1825
1825
|
children: e
|
|
1826
1826
|
}, e))]
|
|
@@ -1834,28 +1834,28 @@ function Ge({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1834
1834
|
children: [/* @__PURE__ */ M("button", {
|
|
1835
1835
|
type: "button",
|
|
1836
1836
|
className: "btn btn-sm btn-primary",
|
|
1837
|
-
disabled: !
|
|
1837
|
+
disabled: !y.trim() || u,
|
|
1838
1838
|
"aria-describedby": L,
|
|
1839
|
-
onClick: () =>
|
|
1840
|
-
name:
|
|
1841
|
-
purpose:
|
|
1839
|
+
onClick: () => m?.({
|
|
1840
|
+
name: y,
|
|
1841
|
+
purpose: S,
|
|
1842
1842
|
mode: T,
|
|
1843
1843
|
access: O,
|
|
1844
1844
|
org: j
|
|
1845
1845
|
}),
|
|
1846
|
-
children:
|
|
1846
|
+
children: u ? "creating" : "create collective"
|
|
1847
1847
|
}), /* @__PURE__ */ M("span", {
|
|
1848
1848
|
id: L,
|
|
1849
1849
|
className: "cmg-form-hint mono",
|
|
1850
|
-
children:
|
|
1850
|
+
children: f.find((e) => e.value === T)?.help
|
|
1851
1851
|
})]
|
|
1852
1852
|
})
|
|
1853
1853
|
]
|
|
1854
1854
|
}),
|
|
1855
1855
|
/* @__PURE__ */ N("div", {
|
|
1856
1856
|
className: "cmg-section",
|
|
1857
|
-
children: [/* @__PURE__ */ M(
|
|
1858
|
-
caption: `${
|
|
1857
|
+
children: [/* @__PURE__ */ M(l, {
|
|
1858
|
+
caption: `${s} ${n.length}`,
|
|
1859
1859
|
columns: R,
|
|
1860
1860
|
rows: n,
|
|
1861
1861
|
rowKey: (e) => e.id
|
|
@@ -1864,7 +1864,7 @@ function Ge({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1864
1864
|
children: "in a curated collective, each transcript you publish waits for the owner to approve it."
|
|
1865
1865
|
}) : null]
|
|
1866
1866
|
}),
|
|
1867
|
-
|
|
1867
|
+
g && /* @__PURE__ */ N("section", {
|
|
1868
1868
|
className: "cmg-section",
|
|
1869
1869
|
"aria-labelledby": `${L}-find`,
|
|
1870
1870
|
children: [
|
|
@@ -1881,9 +1881,9 @@ function Ge({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1881
1881
|
className: "cmg-find",
|
|
1882
1882
|
role: "search",
|
|
1883
1883
|
onSubmit: (e) => {
|
|
1884
|
-
e.preventDefault(),
|
|
1884
|
+
e.preventDefault(), g(F);
|
|
1885
1885
|
},
|
|
1886
|
-
children: [/* @__PURE__ */ M(
|
|
1886
|
+
children: [/* @__PURE__ */ M(w, {
|
|
1887
1887
|
label: "collective or github org",
|
|
1888
1888
|
type: "search",
|
|
1889
1889
|
iconLeft: ae,
|
|
@@ -1921,23 +1921,23 @@ function qe(e = {}) {
|
|
|
1921
1921
|
org: e.org === void 0 ? t : e.org
|
|
1922
1922
|
};
|
|
1923
1923
|
}
|
|
1924
|
-
function Je({ data: e = {}, actions:
|
|
1925
|
-
let { owners:
|
|
1924
|
+
function Je({ data: e = {}, actions: t = {} } = {}) {
|
|
1925
|
+
let { owners: n = [], linkedRepos: r = [], hrefFor: a } = e, o = qe(e.collective), { onSettings: c, onContribute: u, onReview: d, onOpenTranscript: f, onOpenPullRequest: m, onLinkRepos: h, onShowMore: g } = t, [_, v] = A(!1), y = D(), b = o.transcriptCount ?? o.transcripts.length, C = [
|
|
1926
1926
|
{
|
|
1927
1927
|
key: "title",
|
|
1928
1928
|
label: "title",
|
|
1929
1929
|
width: "18rem",
|
|
1930
1930
|
render: (e, t) => /* @__PURE__ */ N("span", {
|
|
1931
1931
|
className: "iu-session",
|
|
1932
|
-
children: [/* @__PURE__ */ M(
|
|
1932
|
+
children: [/* @__PURE__ */ M(i, {
|
|
1933
1933
|
harness: t.harness,
|
|
1934
1934
|
accent: !0
|
|
1935
1935
|
}), /* @__PURE__ */ N("span", {
|
|
1936
1936
|
className: "iu-session-text",
|
|
1937
1937
|
children: [/* @__PURE__ */ M(Ue, {
|
|
1938
1938
|
className: "iu-session-title",
|
|
1939
|
-
href:
|
|
1940
|
-
onOpen:
|
|
1939
|
+
href: a?.("transcript", t.id),
|
|
1940
|
+
onOpen: f ? () => f(t.id) : void 0,
|
|
1941
1941
|
children: t.title
|
|
1942
1942
|
}), /* @__PURE__ */ N("span", {
|
|
1943
1943
|
className: "iu-session-sub",
|
|
@@ -1966,8 +1966,8 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
|
|
|
1966
1966
|
label: "pull requests",
|
|
1967
1967
|
render: (e, t) => t.pullRequests?.length ? /* @__PURE__ */ N("span", {
|
|
1968
1968
|
className: "cmg-prs",
|
|
1969
|
-
children: [/* @__PURE__ */ M(
|
|
1970
|
-
items: We(t.pullRequests, m,
|
|
1969
|
+
children: [/* @__PURE__ */ M(T, {
|
|
1970
|
+
items: We(t.pullRequests, m, a),
|
|
1971
1971
|
label: "pull requests",
|
|
1972
1972
|
noun: ["pull request", "pull requests"]
|
|
1973
1973
|
}), t.repo && /* @__PURE__ */ M("span", {
|
|
@@ -1983,21 +1983,21 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
|
|
|
1983
1983
|
key: "when",
|
|
1984
1984
|
label: "when"
|
|
1985
1985
|
}
|
|
1986
|
-
],
|
|
1986
|
+
], w = [
|
|
1987
1987
|
{
|
|
1988
1988
|
key: "read",
|
|
1989
1989
|
title: "who can read",
|
|
1990
|
-
text:
|
|
1990
|
+
text: o.whoCanRead
|
|
1991
1991
|
},
|
|
1992
1992
|
{
|
|
1993
1993
|
key: "publish",
|
|
1994
1994
|
title: "who can publish",
|
|
1995
|
-
text:
|
|
1995
|
+
text: o.whoCanPublish
|
|
1996
1996
|
},
|
|
1997
1997
|
{
|
|
1998
1998
|
key: "role",
|
|
1999
1999
|
title: "your role",
|
|
2000
|
-
text:
|
|
2000
|
+
text: o.yourRole
|
|
2001
2001
|
}
|
|
2002
2002
|
].filter((e) => e.text);
|
|
2003
2003
|
return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ N("div", {
|
|
@@ -2005,10 +2005,10 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
|
|
|
2005
2005
|
children: [
|
|
2006
2006
|
/* @__PURE__ */ M("div", {
|
|
2007
2007
|
className: "cmg-crumb-content",
|
|
2008
|
-
children: /* @__PURE__ */ M(
|
|
2008
|
+
children: /* @__PURE__ */ M(x, { items: [{
|
|
2009
2009
|
label: "collectives",
|
|
2010
|
-
href:
|
|
2011
|
-
}, { label:
|
|
2010
|
+
href: a?.("collectives")
|
|
2011
|
+
}, { label: o.name }] })
|
|
2012
2012
|
}),
|
|
2013
2013
|
/* @__PURE__ */ N("header", {
|
|
2014
2014
|
className: "iu-page-head",
|
|
@@ -2016,19 +2016,19 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
|
|
|
2016
2016
|
className: "iu-page-titlerow",
|
|
2017
2017
|
children: [/* @__PURE__ */ M("h2", {
|
|
2018
2018
|
className: "iu-page-title iu-page-title-content",
|
|
2019
|
-
id:
|
|
2020
|
-
children:
|
|
2019
|
+
id: y,
|
|
2020
|
+
children: o.name
|
|
2021
2021
|
}), /* @__PURE__ */ N("span", {
|
|
2022
2022
|
className: "cmg-actions",
|
|
2023
|
-
children: [
|
|
2023
|
+
children: [o.role === "owner" && c && /* @__PURE__ */ N("button", {
|
|
2024
2024
|
type: "button",
|
|
2025
2025
|
className: "btn btn-secondary btn-sm",
|
|
2026
|
-
onClick: () =>
|
|
2026
|
+
onClick: () => c(),
|
|
2027
2027
|
children: [/* @__PURE__ */ M(Y, {
|
|
2028
2028
|
size: 14,
|
|
2029
2029
|
"aria-hidden": "true"
|
|
2030
2030
|
}), " settings"]
|
|
2031
|
-
}), (u ||
|
|
2031
|
+
}), (u || d) && /* @__PURE__ */ M(S, {
|
|
2032
2032
|
icon: re,
|
|
2033
2033
|
ariaLabel: "more",
|
|
2034
2034
|
size: "sm",
|
|
@@ -2037,22 +2037,22 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
|
|
|
2037
2037
|
label: "publish several transcripts",
|
|
2038
2038
|
icon: Z,
|
|
2039
2039
|
onSelect: () => u()
|
|
2040
|
-
}] : [], ...
|
|
2040
|
+
}] : [], ...d ? [{
|
|
2041
2041
|
label: "review transcripts",
|
|
2042
2042
|
icon: R,
|
|
2043
|
-
onSelect: () =>
|
|
2043
|
+
onSelect: () => d()
|
|
2044
2044
|
}] : []]
|
|
2045
2045
|
})]
|
|
2046
2046
|
})]
|
|
2047
|
-
}),
|
|
2047
|
+
}), o.purpose ? /* @__PURE__ */ M("p", {
|
|
2048
2048
|
className: "iu-page-sub",
|
|
2049
|
-
children:
|
|
2049
|
+
children: o.purpose
|
|
2050
2050
|
}) : null]
|
|
2051
2051
|
}),
|
|
2052
|
-
|
|
2052
|
+
w.length > 0 && /* @__PURE__ */ M("ul", {
|
|
2053
2053
|
className: "cmg-policies",
|
|
2054
2054
|
"aria-label": "how this collective works",
|
|
2055
|
-
children:
|
|
2055
|
+
children: w.map((e) => /* @__PURE__ */ N("li", {
|
|
2056
2056
|
className: "cmg-policy",
|
|
2057
2057
|
children: [/* @__PURE__ */ M("h3", {
|
|
2058
2058
|
className: "cmg-policy-title",
|
|
@@ -2063,18 +2063,18 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
|
|
|
2063
2063
|
})]
|
|
2064
2064
|
}, e.key))
|
|
2065
2065
|
}),
|
|
2066
|
-
/* @__PURE__ */ M(
|
|
2067
|
-
items:
|
|
2068
|
-
label: `${
|
|
2066
|
+
/* @__PURE__ */ M(s, {
|
|
2067
|
+
items: o.stats,
|
|
2068
|
+
label: `${o.name} in numbers`
|
|
2069
2069
|
}),
|
|
2070
2070
|
/* @__PURE__ */ N("div", {
|
|
2071
2071
|
className: "cmg-home",
|
|
2072
2072
|
children: [/* @__PURE__ */ N("div", {
|
|
2073
2073
|
className: "cmg-home-main",
|
|
2074
|
-
children: [/* @__PURE__ */ M(
|
|
2075
|
-
caption: `transcripts ${
|
|
2076
|
-
columns:
|
|
2077
|
-
rows:
|
|
2074
|
+
children: [/* @__PURE__ */ M(l, {
|
|
2075
|
+
caption: `transcripts ${b}`,
|
|
2076
|
+
columns: C,
|
|
2077
|
+
rows: o.transcripts,
|
|
2078
2078
|
rowKey: (e) => e.id
|
|
2079
2079
|
}), /* @__PURE__ */ N("div", {
|
|
2080
2080
|
className: "iu-page-foot",
|
|
@@ -2084,15 +2084,15 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
|
|
|
2084
2084
|
"showing ",
|
|
2085
2085
|
/* @__PURE__ */ M("span", {
|
|
2086
2086
|
className: "tnum",
|
|
2087
|
-
children:
|
|
2087
|
+
children: o.transcripts.length
|
|
2088
2088
|
}),
|
|
2089
2089
|
" of ",
|
|
2090
2090
|
/* @__PURE__ */ M("span", {
|
|
2091
2091
|
className: "tnum",
|
|
2092
|
-
children:
|
|
2092
|
+
children: b
|
|
2093
2093
|
})
|
|
2094
2094
|
]
|
|
2095
|
-
}),
|
|
2095
|
+
}), b > o.transcripts.length && g && /* @__PURE__ */ M("button", {
|
|
2096
2096
|
type: "button",
|
|
2097
2097
|
className: "btn btn-secondary btn-sm",
|
|
2098
2098
|
onClick: () => g(),
|
|
@@ -2109,36 +2109,36 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
|
|
|
2109
2109
|
className: "cmg-rail-title",
|
|
2110
2110
|
children: "github orgs"
|
|
2111
2111
|
}),
|
|
2112
|
-
|
|
2112
|
+
o.org ? /* @__PURE__ */ N("p", {
|
|
2113
2113
|
className: "cmg-rail-line",
|
|
2114
2114
|
children: [
|
|
2115
2115
|
/* @__PURE__ */ M(G, { "aria-hidden": "true" }),
|
|
2116
2116
|
" ",
|
|
2117
2117
|
/* @__PURE__ */ M("span", {
|
|
2118
2118
|
className: "mono",
|
|
2119
|
-
children:
|
|
2119
|
+
children: o.org.login
|
|
2120
2120
|
}),
|
|
2121
|
-
typeof
|
|
2121
|
+
typeof o.org.total == "number" ? /* @__PURE__ */ N(j, { children: [
|
|
2122
2122
|
", ",
|
|
2123
2123
|
/* @__PURE__ */ M("span", {
|
|
2124
2124
|
className: "tnum",
|
|
2125
|
-
children:
|
|
2125
|
+
children: o.org.linked ?? 0
|
|
2126
2126
|
}),
|
|
2127
2127
|
" of ",
|
|
2128
2128
|
/* @__PURE__ */ M("span", {
|
|
2129
2129
|
className: "tnum",
|
|
2130
|
-
children:
|
|
2130
|
+
children: o.org.total
|
|
2131
2131
|
}),
|
|
2132
2132
|
" repos linked"
|
|
2133
2133
|
] }) : null,
|
|
2134
|
-
|
|
2134
|
+
o.role === "owner" && h && /* @__PURE__ */ M("button", {
|
|
2135
2135
|
type: "button",
|
|
2136
2136
|
className: "btn btn-ghost btn-sm",
|
|
2137
|
-
onClick: () =>
|
|
2137
|
+
onClick: () => v(!0),
|
|
2138
2138
|
children: "manage"
|
|
2139
2139
|
})
|
|
2140
2140
|
]
|
|
2141
|
-
}) :
|
|
2141
|
+
}) : o.org === null ? /* @__PURE__ */ M("p", {
|
|
2142
2142
|
className: "cmg-rail-line cmg-none",
|
|
2143
2143
|
children: "nothing linked"
|
|
2144
2144
|
}) : null,
|
|
@@ -2152,33 +2152,33 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
|
|
|
2152
2152
|
children: [
|
|
2153
2153
|
/* @__PURE__ */ N("h3", {
|
|
2154
2154
|
className: "cmg-rail-title",
|
|
2155
|
-
children: ["members", typeof
|
|
2155
|
+
children: ["members", typeof o.memberCount == "number" ? /* @__PURE__ */ N(j, { children: [" ", /* @__PURE__ */ M("span", {
|
|
2156
2156
|
className: "tnum cmg-count",
|
|
2157
|
-
children:
|
|
2157
|
+
children: o.memberCount
|
|
2158
2158
|
})] }) : null]
|
|
2159
2159
|
}),
|
|
2160
|
-
|
|
2160
|
+
o.memberBreakdown ? /* @__PURE__ */ M("p", {
|
|
2161
2161
|
className: "cmg-note",
|
|
2162
|
-
children:
|
|
2162
|
+
children: o.memberBreakdown
|
|
2163
2163
|
}) : null,
|
|
2164
2164
|
/* @__PURE__ */ M(Ke, {
|
|
2165
|
-
members:
|
|
2166
|
-
count:
|
|
2165
|
+
members: o.members,
|
|
2166
|
+
count: o.memberCount ?? o.members.length
|
|
2167
2167
|
})
|
|
2168
2168
|
]
|
|
2169
2169
|
})]
|
|
2170
2170
|
})]
|
|
2171
2171
|
})
|
|
2172
2172
|
]
|
|
2173
|
-
}), h && /* @__PURE__ */ M(
|
|
2173
|
+
}), h && /* @__PURE__ */ M(p, {
|
|
2174
2174
|
open: _,
|
|
2175
|
-
onClose: () =>
|
|
2176
|
-
owners:
|
|
2177
|
-
initialSelected:
|
|
2178
|
-
title: `link repositories from ${
|
|
2179
|
-
description: `pull requests in linked repos show the transcripts published to ${
|
|
2175
|
+
onClose: () => v(!1),
|
|
2176
|
+
owners: n,
|
|
2177
|
+
initialSelected: r,
|
|
2178
|
+
title: `link repositories from ${o.org?.login ?? "github"}`,
|
|
2179
|
+
description: `pull requests in linked repos show the transcripts published to ${o.name}.`,
|
|
2180
2180
|
onSave: (e) => {
|
|
2181
|
-
h(e),
|
|
2181
|
+
h(e), v(!1);
|
|
2182
2182
|
}
|
|
2183
2183
|
})] });
|
|
2184
2184
|
}
|
|
@@ -2198,27 +2198,27 @@ function Xe(e, t) {
|
|
|
2198
2198
|
}
|
|
2199
2199
|
var Ze = (e, t) => t.some((t) => t.value === e) ? e : "";
|
|
2200
2200
|
function Qe({ data: e = {}, actions: t = {} } = {}) {
|
|
2201
|
-
let { owners: n = [], linkedRepos: r = [], showOnPullRequests:
|
|
2201
|
+
let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: a = ze, whoCanRead: o = Be, memberLeavesChoices: s = Ye, hrefFor: c } = e, l = qe(e.collective), d = (e) => (n) => t.onCommit ? t.onCommit(e, n) : Promise.resolve(), [f, h] = A(!1), [g, _] = A(""), y = !!(t.onTransferOwnership || t.onDelete), b = [
|
|
2202
2202
|
"general",
|
|
2203
2203
|
"access",
|
|
2204
2204
|
"members",
|
|
2205
2205
|
"github orgs",
|
|
2206
2206
|
"pull requests",
|
|
2207
|
-
...
|
|
2208
|
-
],
|
|
2207
|
+
...y ? ["danger zone"] : []
|
|
2208
|
+
], S = (e) => `cmg-settings-${e.replace(/ /g, "-")}`, C = (e) => e.filter((e) => e.help).map((e) => `${e.label}: ${e.help}`).join(" "), T = c?.("account");
|
|
2209
2209
|
return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ N("div", {
|
|
2210
2210
|
className: "iu-page cmg-settings",
|
|
2211
2211
|
children: [
|
|
2212
2212
|
/* @__PURE__ */ M("div", {
|
|
2213
2213
|
className: "cmg-crumb-content",
|
|
2214
|
-
children: /* @__PURE__ */ M(
|
|
2214
|
+
children: /* @__PURE__ */ M(x, { items: [
|
|
2215
2215
|
{
|
|
2216
2216
|
label: "collectives",
|
|
2217
|
-
href:
|
|
2217
|
+
href: c?.("collectives")
|
|
2218
2218
|
},
|
|
2219
2219
|
{
|
|
2220
|
-
label:
|
|
2221
|
-
href:
|
|
2220
|
+
label: l.name,
|
|
2221
|
+
href: c?.("collective", l.id)
|
|
2222
2222
|
},
|
|
2223
2223
|
{ label: "settings" }
|
|
2224
2224
|
] })
|
|
@@ -2229,7 +2229,7 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2229
2229
|
className: "iu-page-title",
|
|
2230
2230
|
children: [/* @__PURE__ */ M("span", {
|
|
2231
2231
|
className: "iu-page-title-content",
|
|
2232
|
-
children:
|
|
2232
|
+
children: l.name
|
|
2233
2233
|
}), ", settings"]
|
|
2234
2234
|
}), /* @__PURE__ */ M("p", {
|
|
2235
2235
|
className: "iu-page-sub",
|
|
@@ -2239,78 +2239,78 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2239
2239
|
/* @__PURE__ */ M("nav", {
|
|
2240
2240
|
className: "cmg-settings-nav",
|
|
2241
2241
|
"aria-label": "settings sections",
|
|
2242
|
-
children:
|
|
2243
|
-
href: `#${
|
|
2242
|
+
children: b.map((e) => /* @__PURE__ */ M("a", {
|
|
2243
|
+
href: `#${S(e)}`,
|
|
2244
2244
|
children: e
|
|
2245
2245
|
}, e))
|
|
2246
2246
|
}),
|
|
2247
|
-
/* @__PURE__ */ N(
|
|
2247
|
+
/* @__PURE__ */ N(v, {
|
|
2248
2248
|
label: "general",
|
|
2249
2249
|
defaultOpen: !0,
|
|
2250
|
-
id:
|
|
2251
|
-
children: [/* @__PURE__ */ M(
|
|
2250
|
+
id: S("general"),
|
|
2251
|
+
children: [/* @__PURE__ */ M(m, {
|
|
2252
2252
|
label: "name",
|
|
2253
2253
|
control: "text",
|
|
2254
|
-
value:
|
|
2255
|
-
onCommit:
|
|
2256
|
-
}), /* @__PURE__ */ M(
|
|
2254
|
+
value: l.name,
|
|
2255
|
+
onCommit: d("name")
|
|
2256
|
+
}), /* @__PURE__ */ M(m, {
|
|
2257
2257
|
label: "purpose",
|
|
2258
2258
|
control: "text",
|
|
2259
|
-
value:
|
|
2260
|
-
onCommit:
|
|
2259
|
+
value: l.purpose ?? "",
|
|
2260
|
+
onCommit: d("purpose")
|
|
2261
2261
|
})]
|
|
2262
2262
|
}),
|
|
2263
|
-
/* @__PURE__ */ N(
|
|
2263
|
+
/* @__PURE__ */ N(v, {
|
|
2264
2264
|
label: "access",
|
|
2265
2265
|
defaultOpen: !0,
|
|
2266
|
-
id:
|
|
2267
|
-
children: [/* @__PURE__ */ M(
|
|
2266
|
+
id: S("access"),
|
|
2267
|
+
children: [/* @__PURE__ */ M(m, {
|
|
2268
2268
|
label: "who can publish",
|
|
2269
|
-
help:
|
|
2269
|
+
help: C(a),
|
|
2270
2270
|
control: "select",
|
|
2271
|
-
value: Ze(
|
|
2272
|
-
options: Xe(
|
|
2273
|
-
onCommit:
|
|
2274
|
-
}), /* @__PURE__ */ M(
|
|
2271
|
+
value: Ze(l.mode, a),
|
|
2272
|
+
options: Xe(l.mode, a),
|
|
2273
|
+
onCommit: d("mode")
|
|
2274
|
+
}), /* @__PURE__ */ M(m, {
|
|
2275
2275
|
label: "who can read",
|
|
2276
2276
|
help: "members read and publish. contributors publish, and read only if who can read allows it.",
|
|
2277
2277
|
control: "select",
|
|
2278
|
-
value: Ze(
|
|
2279
|
-
options: Xe(
|
|
2280
|
-
onCommit:
|
|
2278
|
+
value: Ze(l.access, o),
|
|
2279
|
+
options: Xe(l.access, o),
|
|
2280
|
+
onCommit: d("access")
|
|
2281
2281
|
})]
|
|
2282
2282
|
}),
|
|
2283
|
-
/* @__PURE__ */ N(
|
|
2283
|
+
/* @__PURE__ */ N(v, {
|
|
2284
2284
|
label: "members",
|
|
2285
2285
|
defaultOpen: !0,
|
|
2286
|
-
count:
|
|
2286
|
+
count: l.memberCount ?? null,
|
|
2287
2287
|
noun: ["member", "members"],
|
|
2288
|
-
id:
|
|
2288
|
+
id: S("members"),
|
|
2289
2289
|
children: [
|
|
2290
2290
|
t.onInvite && /* @__PURE__ */ N("form", {
|
|
2291
2291
|
className: "srow cmg-invite",
|
|
2292
2292
|
onSubmit: (e) => {
|
|
2293
|
-
e.preventDefault(), t.onInvite(
|
|
2293
|
+
e.preventDefault(), t.onInvite(g), _("");
|
|
2294
2294
|
},
|
|
2295
|
-
children: [/* @__PURE__ */ M(
|
|
2295
|
+
children: [/* @__PURE__ */ M(w, {
|
|
2296
2296
|
label: "invite by github username",
|
|
2297
|
-
value:
|
|
2298
|
-
onChange: (e) =>
|
|
2297
|
+
value: g,
|
|
2298
|
+
onChange: (e) => _(e.target.value),
|
|
2299
2299
|
placeholder: "github username"
|
|
2300
2300
|
}), /* @__PURE__ */ M("button", {
|
|
2301
2301
|
type: "submit",
|
|
2302
2302
|
className: "btn btn-secondary btn-sm",
|
|
2303
|
-
disabled: !
|
|
2303
|
+
disabled: !g.trim(),
|
|
2304
2304
|
children: "invite"
|
|
2305
2305
|
})]
|
|
2306
2306
|
}),
|
|
2307
2307
|
/* @__PURE__ */ M("ul", {
|
|
2308
2308
|
className: "cmg-member-list",
|
|
2309
2309
|
"aria-label": "members",
|
|
2310
|
-
children:
|
|
2310
|
+
children: l.members.map((e) => /* @__PURE__ */ N("li", {
|
|
2311
2311
|
className: "cmg-member",
|
|
2312
2312
|
children: [
|
|
2313
|
-
/* @__PURE__ */ M(
|
|
2313
|
+
/* @__PURE__ */ M(u, {
|
|
2314
2314
|
name: e.name ?? e.handle,
|
|
2315
2315
|
size: "sm"
|
|
2316
2316
|
}),
|
|
@@ -2356,40 +2356,40 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2356
2356
|
]
|
|
2357
2357
|
}, e.handle))
|
|
2358
2358
|
}),
|
|
2359
|
-
/* @__PURE__ */ M(
|
|
2359
|
+
/* @__PURE__ */ M(m, {
|
|
2360
2360
|
label: "when a member leaves",
|
|
2361
2361
|
help: "what happens to the transcripts they published here.",
|
|
2362
2362
|
control: "select",
|
|
2363
|
-
value: Ze(
|
|
2364
|
-
options: Xe(
|
|
2365
|
-
onCommit:
|
|
2363
|
+
value: Ze(l.memberLeaves, s),
|
|
2364
|
+
options: Xe(l.memberLeaves, s),
|
|
2365
|
+
onCommit: d("memberLeaves")
|
|
2366
2366
|
})
|
|
2367
2367
|
]
|
|
2368
2368
|
}),
|
|
2369
|
-
/* @__PURE__ */ M(
|
|
2369
|
+
/* @__PURE__ */ M(v, {
|
|
2370
2370
|
label: "github orgs",
|
|
2371
2371
|
defaultOpen: !0,
|
|
2372
|
-
count:
|
|
2372
|
+
count: l.org === void 0 ? null : +!!l.org,
|
|
2373
2373
|
noun: ["org", "orgs"],
|
|
2374
|
-
id:
|
|
2374
|
+
id: S("github orgs"),
|
|
2375
2375
|
children: /* @__PURE__ */ N("div", {
|
|
2376
2376
|
className: "srow",
|
|
2377
2377
|
children: [/* @__PURE__ */ N("span", {
|
|
2378
2378
|
className: "srow-text-col",
|
|
2379
2379
|
children: [/* @__PURE__ */ M("span", {
|
|
2380
2380
|
className: "srow-label",
|
|
2381
|
-
children:
|
|
2381
|
+
children: l.org ? l.org.login : l.org === null ? "no org linked" : "github org"
|
|
2382
2382
|
}), /* @__PURE__ */ N("span", {
|
|
2383
2383
|
className: "srow-help",
|
|
2384
|
-
children: [typeof
|
|
2384
|
+
children: [typeof l.org?.total == "number" ? /* @__PURE__ */ N(j, { children: [
|
|
2385
2385
|
/* @__PURE__ */ M("span", {
|
|
2386
2386
|
className: "tnum",
|
|
2387
|
-
children:
|
|
2387
|
+
children: l.org.linked ?? 0
|
|
2388
2388
|
}),
|
|
2389
2389
|
" of ",
|
|
2390
2390
|
/* @__PURE__ */ M("span", {
|
|
2391
2391
|
className: "tnum",
|
|
2392
|
-
children:
|
|
2392
|
+
children: l.org.total
|
|
2393
2393
|
}),
|
|
2394
2394
|
" repos linked. "
|
|
2395
2395
|
] }) : null, "a collective links one github org today."]
|
|
@@ -2397,22 +2397,22 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2397
2397
|
}), t.onLinkRepos && /* @__PURE__ */ M("button", {
|
|
2398
2398
|
type: "button",
|
|
2399
2399
|
className: "btn btn-secondary btn-sm",
|
|
2400
|
-
onClick: () =>
|
|
2400
|
+
onClick: () => h(!0),
|
|
2401
2401
|
children: "manage"
|
|
2402
2402
|
})]
|
|
2403
2403
|
})
|
|
2404
2404
|
}),
|
|
2405
|
-
/* @__PURE__ */ N(
|
|
2405
|
+
/* @__PURE__ */ N(v, {
|
|
2406
2406
|
label: "pull requests",
|
|
2407
2407
|
defaultOpen: !0,
|
|
2408
2408
|
count: 1,
|
|
2409
|
-
id:
|
|
2410
|
-
children: [/* @__PURE__ */ M(
|
|
2409
|
+
id: S("pull requests"),
|
|
2410
|
+
children: [/* @__PURE__ */ M(m, {
|
|
2411
2411
|
label: "show transcripts on pull requests",
|
|
2412
2412
|
help: "adds a peasant / prompts comment and check on pull requests in this collective's repos, listing which commits have transcripts. it never blocks merging.",
|
|
2413
2413
|
control: "switch",
|
|
2414
|
-
value:
|
|
2415
|
-
onCommit:
|
|
2414
|
+
value: i,
|
|
2415
|
+
onCommit: d("showOnPullRequests")
|
|
2416
2416
|
}), /* @__PURE__ */ N("p", {
|
|
2417
2417
|
className: "srow-note",
|
|
2418
2418
|
children: [
|
|
@@ -2426,11 +2426,11 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2426
2426
|
]
|
|
2427
2427
|
})]
|
|
2428
2428
|
}),
|
|
2429
|
-
|
|
2429
|
+
y && /* @__PURE__ */ N(v, {
|
|
2430
2430
|
label: "danger zone",
|
|
2431
2431
|
defaultOpen: !0,
|
|
2432
2432
|
count: null,
|
|
2433
|
-
id:
|
|
2433
|
+
id: S("danger zone"),
|
|
2434
2434
|
children: [t.onTransferOwnership && /* @__PURE__ */ N("div", {
|
|
2435
2435
|
className: "srow",
|
|
2436
2436
|
children: [/* @__PURE__ */ M("span", {
|
|
@@ -2448,13 +2448,13 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2448
2448
|
className: "srow-help",
|
|
2449
2449
|
children: [
|
|
2450
2450
|
"delete ",
|
|
2451
|
-
|
|
2451
|
+
l.name,
|
|
2452
2452
|
" for ",
|
|
2453
|
-
typeof
|
|
2453
|
+
typeof l.memberCount == "number" ? /* @__PURE__ */ N(j, { children: [
|
|
2454
2454
|
"all ",
|
|
2455
2455
|
/* @__PURE__ */ M("span", {
|
|
2456
2456
|
className: "tnum",
|
|
2457
|
-
children:
|
|
2457
|
+
children: l.memberCount
|
|
2458
2458
|
}),
|
|
2459
2459
|
" members"
|
|
2460
2460
|
] }) : "all its members",
|
|
@@ -2469,14 +2469,14 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2469
2469
|
})]
|
|
2470
2470
|
})
|
|
2471
2471
|
]
|
|
2472
|
-
}), t.onLinkRepos && /* @__PURE__ */ M(
|
|
2473
|
-
open:
|
|
2474
|
-
onClose: () =>
|
|
2472
|
+
}), t.onLinkRepos && /* @__PURE__ */ M(p, {
|
|
2473
|
+
open: f,
|
|
2474
|
+
onClose: () => h(!1),
|
|
2475
2475
|
owners: n,
|
|
2476
2476
|
initialSelected: r,
|
|
2477
|
-
title: `link repositories from ${
|
|
2477
|
+
title: `link repositories from ${l.org?.login ?? "github"}`,
|
|
2478
2478
|
onSave: (e) => {
|
|
2479
|
-
t.onLinkRepos(e),
|
|
2479
|
+
t.onLinkRepos(e), h(!1);
|
|
2480
2480
|
}
|
|
2481
2481
|
})] });
|
|
2482
2482
|
}
|
|
@@ -2525,8 +2525,8 @@ function rt(e) {
|
|
|
2525
2525
|
timeZone: "UTC"
|
|
2526
2526
|
}).format(t).toLowerCase();
|
|
2527
2527
|
}
|
|
2528
|
-
function it({ data:
|
|
2529
|
-
let { collective:
|
|
2528
|
+
function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
2529
|
+
let { collective: r = $e, providerShare: i = [], pendingReview: a = [], members: s = [], redactions: l = [], browseRows: u = [], roleOptions: d = [], initialRole: p = "", initialShowRedaction: m = !1, initialBrowseGated: g = !1, stats: v = et } = e || tt, { onRoleChange: b, onJoin: x, onLeave: S, onSettings: C, onContribute: w, onToggleBrowse: T } = t || {}, [E, D] = A(p || r.role || ""), [k, j] = A(!!m), [P, F] = A(!!g), I = E || r.role || "guest", R = I === "owner", z = I === "guest", B = n && d.length > 0, V = O(() => B ? d : [], [B, d]), W = (e) => {
|
|
2530
2530
|
D(e), b?.(e);
|
|
2531
2531
|
};
|
|
2532
2532
|
return /* @__PURE__ */ M("div", {
|
|
@@ -2552,7 +2552,7 @@ function it({ data: t = tt, actions: r = {}, demoRoleSwitcher: i = !1 } = {}) {
|
|
|
2552
2552
|
}),
|
|
2553
2553
|
/* @__PURE__ */ M("span", {
|
|
2554
2554
|
className: "cur",
|
|
2555
|
-
children:
|
|
2555
|
+
children: r.name || "collective"
|
|
2556
2556
|
})
|
|
2557
2557
|
]
|
|
2558
2558
|
}), /* @__PURE__ */ N("div", {
|
|
@@ -2560,11 +2560,11 @@ function it({ data: t = tt, actions: r = {}, demoRoleSwitcher: i = !1 } = {}) {
|
|
|
2560
2560
|
children: [/* @__PURE__ */ N("div", { children: [
|
|
2561
2561
|
/* @__PURE__ */ M("h2", {
|
|
2562
2562
|
className: "cmg-title",
|
|
2563
|
-
children:
|
|
2563
|
+
children: r.name || "collective"
|
|
2564
2564
|
}),
|
|
2565
2565
|
/* @__PURE__ */ M("p", {
|
|
2566
2566
|
className: "cmg-deck",
|
|
2567
|
-
children:
|
|
2567
|
+
children: r.description || "shared collective governance"
|
|
2568
2568
|
}),
|
|
2569
2569
|
/* @__PURE__ */ N("span", {
|
|
2570
2570
|
className: "cmg-orgpill mono",
|
|
@@ -2574,7 +2574,7 @@ function it({ data: t = tt, actions: r = {}, demoRoleSwitcher: i = !1 } = {}) {
|
|
|
2574
2574
|
"aria-hidden": "true"
|
|
2575
2575
|
}),
|
|
2576
2576
|
" ",
|
|
2577
|
-
|
|
2577
|
+
r.linkedGithubOrg || "not linked"
|
|
2578
2578
|
]
|
|
2579
2579
|
})
|
|
2580
2580
|
] }), /* @__PURE__ */ N("div", {
|
|
@@ -2646,40 +2646,40 @@ function it({ data: t = tt, actions: r = {}, demoRoleSwitcher: i = !1 } = {}) {
|
|
|
2646
2646
|
/* @__PURE__ */ N("div", {
|
|
2647
2647
|
className: "cmg-tiles",
|
|
2648
2648
|
children: [
|
|
2649
|
-
/* @__PURE__ */ M(
|
|
2649
|
+
/* @__PURE__ */ M(o, {
|
|
2650
2650
|
label: "contributions",
|
|
2651
|
-
value:
|
|
2651
|
+
value: r.acceptanceMode || "open",
|
|
2652
2652
|
tone: "teal"
|
|
2653
2653
|
}),
|
|
2654
|
-
/* @__PURE__ */ M(
|
|
2654
|
+
/* @__PURE__ */ M(o, {
|
|
2655
2655
|
label: "access",
|
|
2656
|
-
value:
|
|
2656
|
+
value: r.dataAccess || "members only",
|
|
2657
2657
|
tone: "amber"
|
|
2658
2658
|
}),
|
|
2659
|
-
/* @__PURE__ */ M(
|
|
2659
|
+
/* @__PURE__ */ M(o, {
|
|
2660
2660
|
label: "your role",
|
|
2661
2661
|
value: I
|
|
2662
2662
|
})
|
|
2663
2663
|
]
|
|
2664
2664
|
}),
|
|
2665
|
-
/* @__PURE__ */ M(
|
|
2665
|
+
/* @__PURE__ */ M(_, { tiles: [
|
|
2666
2666
|
{
|
|
2667
2667
|
key: "transcripts",
|
|
2668
2668
|
label: "transcripts",
|
|
2669
|
-
value:
|
|
2670
|
-
sub: `across ${
|
|
2669
|
+
value: v.transcripts,
|
|
2670
|
+
sub: `across ${v.projects}`
|
|
2671
2671
|
},
|
|
2672
2672
|
{
|
|
2673
2673
|
key: "tokens",
|
|
2674
2674
|
label: "tokens",
|
|
2675
|
-
value:
|
|
2676
|
-
sub:
|
|
2675
|
+
value: v.tokens,
|
|
2676
|
+
sub: v.turns
|
|
2677
2677
|
},
|
|
2678
2678
|
{
|
|
2679
2679
|
key: "contributors",
|
|
2680
2680
|
label: "contributors",
|
|
2681
|
-
value:
|
|
2682
|
-
sub:
|
|
2681
|
+
value: v.contributors,
|
|
2682
|
+
sub: v.hours
|
|
2683
2683
|
}
|
|
2684
2684
|
] }),
|
|
2685
2685
|
/* @__PURE__ */ N("div", {
|
|
@@ -2687,31 +2687,31 @@ function it({ data: t = tt, actions: r = {}, demoRoleSwitcher: i = !1 } = {}) {
|
|
|
2687
2687
|
children: [/* @__PURE__ */ N("main", {
|
|
2688
2688
|
className: "cmg-d-main",
|
|
2689
2689
|
children: [
|
|
2690
|
-
|
|
2690
|
+
i.length > 0 ? /* @__PURE__ */ N("section", {
|
|
2691
2691
|
className: "card cmg-share",
|
|
2692
2692
|
"aria-labelledby": "cmg-share-h",
|
|
2693
2693
|
children: [/* @__PURE__ */ M("h3", {
|
|
2694
2694
|
id: "cmg-share-h",
|
|
2695
2695
|
className: "cmg-sub",
|
|
2696
2696
|
children: "provider share"
|
|
2697
|
-
}), /* @__PURE__ */ M(
|
|
2697
|
+
}), /* @__PURE__ */ M(c, {
|
|
2698
2698
|
label: "provider share",
|
|
2699
2699
|
total: 100,
|
|
2700
|
-
data:
|
|
2700
|
+
data: i.map((e) => ({
|
|
2701
2701
|
label: Ae(e.id),
|
|
2702
2702
|
value: e.pct
|
|
2703
2703
|
}))
|
|
2704
2704
|
})]
|
|
2705
2705
|
}) : null,
|
|
2706
|
-
|
|
2706
|
+
a.length > 0 ? /* @__PURE__ */ M("div", {
|
|
2707
2707
|
style: {
|
|
2708
2708
|
overflow: "auto",
|
|
2709
2709
|
maxWidth: "100%"
|
|
2710
2710
|
},
|
|
2711
|
-
children: /* @__PURE__ */ M(
|
|
2711
|
+
children: /* @__PURE__ */ M(h, {
|
|
2712
2712
|
title: "pending review",
|
|
2713
2713
|
emptyLabel: "no shares awaiting review.",
|
|
2714
|
-
items:
|
|
2714
|
+
items: a.map((e) => ({
|
|
2715
2715
|
id: e.id,
|
|
2716
2716
|
kind: "share",
|
|
2717
2717
|
who: e.title || "untitled transcript",
|
|
@@ -2719,7 +2719,7 @@ function it({ data: t = tt, actions: r = {}, demoRoleSwitcher: i = !1 } = {}) {
|
|
|
2719
2719
|
}))
|
|
2720
2720
|
})
|
|
2721
2721
|
}) : null,
|
|
2722
|
-
|
|
2722
|
+
l.length > 0 ? /* @__PURE__ */ N("section", {
|
|
2723
2723
|
className: "card cmg-redact-sec",
|
|
2724
2724
|
"aria-labelledby": "cmg-redact-h",
|
|
2725
2725
|
children: [/* @__PURE__ */ N("div", {
|
|
@@ -2743,14 +2743,14 @@ function it({ data: t = tt, actions: r = {}, demoRoleSwitcher: i = !1 } = {}) {
|
|
|
2743
2743
|
})]
|
|
2744
2744
|
}), k ? /* @__PURE__ */ M("div", {
|
|
2745
2745
|
className: "cmg-redact-list",
|
|
2746
|
-
children:
|
|
2746
|
+
children: l.map((e) => /* @__PURE__ */ N("article", {
|
|
2747
2747
|
className: "cmg-redact",
|
|
2748
2748
|
children: [
|
|
2749
2749
|
/* @__PURE__ */ N("div", {
|
|
2750
2750
|
className: "cmg-redact-head",
|
|
2751
2751
|
children: [/* @__PURE__ */ M("span", {
|
|
2752
2752
|
className: "cmg-redact-badges",
|
|
2753
|
-
children: /* @__PURE__ */ M(
|
|
2753
|
+
children: /* @__PURE__ */ M(f, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
|
|
2754
2754
|
}), /* @__PURE__ */ M("span", {
|
|
2755
2755
|
className: "cmg-redact-file mono",
|
|
2756
2756
|
children: e.file || "unknown"
|
|
@@ -2817,7 +2817,7 @@ function it({ data: t = tt, actions: r = {}, demoRoleSwitcher: i = !1 } = {}) {
|
|
|
2817
2817
|
}), " join as contributor"]
|
|
2818
2818
|
}) : null
|
|
2819
2819
|
]
|
|
2820
|
-
}) :
|
|
2820
|
+
}) : u.length > 0 ? /* @__PURE__ */ N("table", {
|
|
2821
2821
|
className: "dtable cmg-dtable",
|
|
2822
2822
|
children: [/* @__PURE__ */ M("thead", { children: /* @__PURE__ */ N("tr", { children: [
|
|
2823
2823
|
/* @__PURE__ */ M("th", {
|
|
@@ -2846,7 +2846,7 @@ function it({ data: t = tt, actions: r = {}, demoRoleSwitcher: i = !1 } = {}) {
|
|
|
2846
2846
|
scope: "col",
|
|
2847
2847
|
children: "date"
|
|
2848
2848
|
})
|
|
2849
|
-
] }) }), /* @__PURE__ */ M("tbody", { children:
|
|
2849
|
+
] }) }), /* @__PURE__ */ M("tbody", { children: u.map((e) => /* @__PURE__ */ N("tr", { children: [
|
|
2850
2850
|
/* @__PURE__ */ M("td", { children: e.title || "untitled transcript" }),
|
|
2851
2851
|
/* @__PURE__ */ M("td", {
|
|
2852
2852
|
className: "mono",
|
|
@@ -2889,7 +2889,7 @@ function it({ data: t = tt, actions: r = {}, demoRoleSwitcher: i = !1 } = {}) {
|
|
|
2889
2889
|
})]
|
|
2890
2890
|
})
|
|
2891
2891
|
]
|
|
2892
|
-
}),
|
|
2892
|
+
}), s.length > 0 ? /* @__PURE__ */ M("aside", {
|
|
2893
2893
|
className: "sidebar cmg-d-rail",
|
|
2894
2894
|
"aria-label": "collective sidebar",
|
|
2895
2895
|
children: /* @__PURE__ */ M("div", {
|
|
@@ -2897,10 +2897,10 @@ function it({ data: t = tt, actions: r = {}, demoRoleSwitcher: i = !1 } = {}) {
|
|
|
2897
2897
|
overflow: "auto",
|
|
2898
2898
|
maxWidth: "100%"
|
|
2899
2899
|
},
|
|
2900
|
-
children: /* @__PURE__ */ M(
|
|
2900
|
+
children: /* @__PURE__ */ M(y, {
|
|
2901
2901
|
title: "members",
|
|
2902
2902
|
roles: ["member", "contributor"],
|
|
2903
|
-
members:
|
|
2903
|
+
members: s.map((e) => ({
|
|
2904
2904
|
handle: e.handle || e.githubUsername || "@unknown",
|
|
2905
2905
|
name: e.name || e.displayName || e.githubUsername || "unknown",
|
|
2906
2906
|
role: e.role || "member",
|