@dylanpiercey/work 0.0.172 → 0.0.173
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.mjs +640 -600
- package/dist/public/assets/_3n2ogBAR.js +1 -0
- package/dist/public/assets/_4WrdbxBF.js +1 -0
- package/dist/public/assets/_4WrdbxBF.js.br +0 -0
- package/dist/public/assets/_B36oIMyL.js +1 -0
- package/dist/public/assets/_BTdS3t6B.js +1 -0
- package/dist/public/assets/_BrxaBi5v.js +1 -0
- package/dist/public/assets/_BvzfcvHb.js +1 -0
- package/dist/public/assets/{_DBbja6xF.js → _C6212Nw9.js} +1 -1
- package/dist/public/assets/_C6212Nw9.js.br +0 -0
- package/dist/public/assets/_CEfQjKCU.js +1 -0
- package/dist/public/assets/_CKaS6zgB.js +1 -0
- package/dist/public/assets/_COfqxkMQ.js +1 -0
- package/dist/public/assets/_CR3RfXGW.js +1 -0
- package/dist/public/assets/_CTKS1qLd.js +1 -0
- package/dist/public/assets/_CV4Qtrv6.js +1 -0
- package/dist/public/assets/_Cgl4MwL0.js +1 -0
- package/dist/public/assets/_Cq0DZQYq.js +1 -0
- package/dist/public/assets/_Cr6ffFXP.js +1 -0
- package/dist/public/assets/_CsvO8z9Q.js +1 -0
- package/dist/public/assets/_D0nvIP8_.js +1 -0
- package/dist/public/assets/_DE2tMcj8.js +83 -0
- package/dist/public/assets/_DE2tMcj8.js.br +0 -0
- package/dist/public/assets/_DZDLZLWx.js +1 -0
- package/dist/public/assets/_DplOnpvs.js +1 -0
- package/dist/public/assets/_RLsRJrdF.js +1 -0
- package/dist/public/assets/{_DrPh1YYO.js → _a5YxxndF.js} +93 -92
- package/dist/public/assets/_a5YxxndF.js.br +0 -0
- package/dist/public/assets/_aSEYsOdu.js +1 -0
- package/dist/public/assets/_hHpOsbBR.js +1 -0
- package/dist/public/assets/{app-page-CkAL3lQR.css → app-page-DvUDS-Nm.css} +1 -1
- package/dist/public/assets/app-page-DvUDS-Nm.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-D2thnWCA.css → icon-arrow-down-BMHAhFnh.css} +1 -1
- package/dist/public/assets/icon-arrow-down-BMHAhFnh.css.br +0 -0
- package/dist/public/assets/new-Bkg60hwf.js +1 -0
- package/dist/public/assets/review-view-BY1aZ_F6.css +1 -0
- package/dist/public/assets/review-view-BY1aZ_F6.css.br +0 -0
- package/dist/public/assets/review-view-By-sVWe_.js +2 -0
- package/dist/public/assets/settings-Bkg60hwf.js +1 -0
- package/dist/public/assets/w-Bkg60hwf.js +1 -0
- package/dist/public/assets/w._-Bkg60hwf.js +1 -0
- package/dist/public/assets/w._-CFyjiteu.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_0b9AaNN-.js +0 -1
- package/dist/public/assets/_2EzGNO5F.js +0 -1
- package/dist/public/assets/_BVHAcToH.js +0 -1
- package/dist/public/assets/_BZc_ui7n.js +0 -1
- package/dist/public/assets/_Bwjv-2iV.js +0 -1
- package/dist/public/assets/_C3-re_UC.js +0 -1
- package/dist/public/assets/_C7R1lv1V.js +0 -1
- package/dist/public/assets/_CLzwhfzy.js +0 -1
- package/dist/public/assets/_Ci28NbFq.js +0 -1
- package/dist/public/assets/_Copf6Tzh.js +0 -1
- package/dist/public/assets/_CouHh4Pw.js +0 -1
- package/dist/public/assets/_DAFAqGpW.js +0 -1
- package/dist/public/assets/_DBbja6xF.js.br +0 -0
- package/dist/public/assets/_DDjvr374.js +0 -1
- package/dist/public/assets/_DSe9HAN-.js +0 -1
- package/dist/public/assets/_D_-Exjqh.js +0 -1
- package/dist/public/assets/_DaE9nHz4.js +0 -1
- package/dist/public/assets/_DaM16tbY.js +0 -83
- package/dist/public/assets/_DaM16tbY.js.br +0 -0
- package/dist/public/assets/_DeH0loZu.js +0 -1
- package/dist/public/assets/_DrPh1YYO.js.br +0 -0
- package/dist/public/assets/_Hxo4L0bN.js +0 -1
- package/dist/public/assets/_K1xBXqer.js +0 -1
- package/dist/public/assets/_T1l7t4TQ.js +0 -1
- package/dist/public/assets/_jwZUUFkV.js +0 -1
- package/dist/public/assets/_tmN7XIcz.js +0 -1
- package/dist/public/assets/_tmN7XIcz.js.br +0 -0
- package/dist/public/assets/app-page-CkAL3lQR.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-D2thnWCA.css.br +0 -0
- package/dist/public/assets/new-J2Xsk9fP.js +0 -1
- package/dist/public/assets/review-view-BVFq2WLB.css +0 -1
- package/dist/public/assets/review-view-BVFq2WLB.css.br +0 -0
- package/dist/public/assets/review-view-D-42NSpI.js +0 -2
- package/dist/public/assets/settings-J2Xsk9fP.js +0 -1
- package/dist/public/assets/w-J2Xsk9fP.js +0 -1
- package/dist/public/assets/w._-J2Xsk9fP.js +0 -1
- package/dist/public/assets/w._-RF3fHU9s.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -5836,6 +5836,10 @@ function forOf(list, cb) {
|
|
|
5836
5836
|
for (let item of list) cb(item, i++);
|
|
5837
5837
|
}
|
|
5838
5838
|
}
|
|
5839
|
+
function forTo(to, from, step, cb) {
|
|
5840
|
+
let start = from || 0, delta = step || 1;
|
|
5841
|
+
for (let steps = (to - start) / delta, i = 0; i <= steps; i++) cb(start + i * delta);
|
|
5842
|
+
}
|
|
5839
5843
|
function forEach(opt, cb) {
|
|
5840
5844
|
if (opt) if (Array.isArray(opt)) for (let item of opt) cb(item);
|
|
5841
5845
|
else cb(opt);
|
|
@@ -7314,19 +7318,19 @@ function applyInstance(inst) {
|
|
|
7314
7318
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7315
7319
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7316
7320
|
}
|
|
7317
|
-
var agentRow = "_c_
|
|
7318
|
-
var toolGrid = "_dh
|
|
7319
|
-
var toolRow = "_di
|
|
7321
|
+
var agentRow = "_c_ _cL";
|
|
7322
|
+
var toolGrid = "_dh _cV";
|
|
7323
|
+
var toolRow = "_di _cW";
|
|
7320
7324
|
var themeSeg = "_dF _bd";
|
|
7321
|
-
var checkList = "_ea
|
|
7322
|
-
var list$2 = "
|
|
7323
|
-
var flatCardRow = "
|
|
7324
|
-
var chip$1 = "
|
|
7325
|
-
var pop$1 = "
|
|
7326
|
-
var spinner = "
|
|
7327
|
-
var busy = "
|
|
7328
|
-
var pop = "
|
|
7329
|
-
var sectionCount$1 = "
|
|
7325
|
+
var checkList = "_ea _bX";
|
|
7326
|
+
var list$2 = "_cX _bZ _cK _cV";
|
|
7327
|
+
var flatCardRow = "_cY _cW";
|
|
7328
|
+
var chip$1 = "_c7 _X _W";
|
|
7329
|
+
var pop$1 = "_cG _9";
|
|
7330
|
+
var spinner = "_cJ _1 _G";
|
|
7331
|
+
var busy = "_cv _cu";
|
|
7332
|
+
var pop = "_cx _9";
|
|
7333
|
+
var sectionCount$1 = "_bW _N _O";
|
|
7330
7334
|
//#endregion
|
|
7331
7335
|
//#region src/tags/icons/icon-refresh.marko
|
|
7332
7336
|
var icon_refresh_default = _template("ob", (input) => {
|
|
@@ -7370,14 +7374,14 @@ var page_head_default = _template("t", (input) => {
|
|
|
7370
7374
|
_if(() => {
|
|
7371
7375
|
if (input.backHref) {
|
|
7372
7376
|
const $scope1_id = _scope_id();
|
|
7373
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7377
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_eP"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7374
7378
|
icon_back_default({ size: 14 });
|
|
7375
7379
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7376
7380
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7377
7381
|
return 0;
|
|
7378
7382
|
} else if (input.onBack) {
|
|
7379
7383
|
const $scope2_id = _scope_id();
|
|
7380
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7384
|
+
_html(`<button${_attr_class([iconBtnRow, "_eP"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7381
7385
|
icon_back_default({ size: 14 });
|
|
7382
7386
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7383
7387
|
_script($scope2_id, "t0");
|
|
@@ -7468,7 +7472,7 @@ var icon_agent_default = _template("P", (input) => {
|
|
|
7468
7472
|
n: $badge__closures
|
|
7469
7473
|
});
|
|
7470
7474
|
});
|
|
7471
|
-
var usageNote = "
|
|
7475
|
+
var usageNote = "_hc _W";
|
|
7472
7476
|
//#endregion
|
|
7473
7477
|
//#region src/tags/icons/icon-warning.marko
|
|
7474
7478
|
var icon_warning_default = _template("wb", (input) => {
|
|
@@ -7498,11 +7502,11 @@ var usage_meters_default = _template("L", (input) => {
|
|
|
7498
7502
|
const $scope0_reason = _scope_reason(), $sg__input_agent__OR__input_hideName = _serialize_guard($scope0_reason, 0), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_hideName = _serialize_guard($scope0_reason, 2), $si__input_agent__OR__input_hideName = _serialize_if($scope0_reason, 0);
|
|
7499
7503
|
const $scope0_id = _scope_id();
|
|
7500
7504
|
const agent = input.agent;
|
|
7501
|
-
_html(`<div${_attr_class(["
|
|
7505
|
+
_html(`<div${_attr_class(["_g7", { ["_g8"]: input.hideName }])}><div${_attr_class("_g9")}>`);
|
|
7502
7506
|
_if(() => {
|
|
7503
7507
|
if (!input.hideName) {
|
|
7504
7508
|
const $scope1_id = _scope_id();
|
|
7505
|
-
_html(`<strong${_attr_class("
|
|
7509
|
+
_html(`<strong${_attr_class("_hr")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7506
7510
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7507
7511
|
return 0;
|
|
7508
7512
|
}
|
|
@@ -7510,7 +7514,7 @@ var usage_meters_default = _template("L", (input) => {
|
|
|
7510
7514
|
_if(() => {
|
|
7511
7515
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7512
7516
|
const $scope2_id = _scope_id();
|
|
7513
|
-
_html(`<span${_attr_class("
|
|
7517
|
+
_html(`<span${_attr_class("_g_")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7514
7518
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7515
7519
|
return 0;
|
|
7516
7520
|
}
|
|
@@ -7518,21 +7522,21 @@ var usage_meters_default = _template("L", (input) => {
|
|
|
7518
7522
|
_if(() => {
|
|
7519
7523
|
if (agent.stale_seconds != null) {
|
|
7520
7524
|
const $scope3_id = _scope_id();
|
|
7521
|
-
_html(`<span${_attr_class("
|
|
7525
|
+
_html(`<span${_attr_class("_ha")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7522
7526
|
icon_warning_default({ size: 12 });
|
|
7523
7527
|
_html(` ${_text_resume($scope3_id, "c", duration(agent.stale_seconds * 1e3), $sg__input_agent * 2)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
7524
7528
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7525
7529
|
return 0;
|
|
7526
7530
|
}
|
|
7527
7531
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7528
|
-
_html(`</div><div${_attr_class(["
|
|
7532
|
+
_html(`</div><div${_attr_class(["_hb", { ["_hs"]: agent.stale_seconds != null }])}>`);
|
|
7529
7533
|
_for_of(agent.windows || [], (win) => {
|
|
7530
7534
|
const $scope4_id = _scope_id();
|
|
7531
7535
|
const pct = pctText(win.used_percent);
|
|
7532
7536
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7533
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7534
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7535
|
-
_html(`<div${_attr_class("
|
|
7537
|
+
const fillClass = win.used_percent >= 90 ? "_hk" : win.used_percent >= 70 ? "_hj" : win.used_percent >= 40 ? "_hi" : "_hh";
|
|
7538
|
+
const pctClass = win.used_percent >= 90 ? "_hp" : win.used_percent >= 70 ? "_ho" : win.used_percent >= 40 ? "_hn" : "_hm";
|
|
7539
|
+
_html(`<div${_attr_class("_hd")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_he")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_hf")}><span${_attr_class(["_hg", fillClass])}${_attr_style(`width:${Math.min(100, Math.max(2, win.used_percent))}%`)}></span>${_el_resume($scope4_id, "e", $sg__input_agent)}</span><span${_attr_class(["_hl", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hq")}>`);
|
|
7536
7540
|
_if(() => {
|
|
7537
7541
|
if (label) {
|
|
7538
7542
|
const $scope6_id = _scope_id();
|
|
@@ -7631,10 +7635,10 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7631
7635
|
}
|
|
7632
7636
|
}, $scope0_id, "a", 1, 1, 1, 0, 1);
|
|
7633
7637
|
_html(`<form${_attr_class([
|
|
7634
|
-
"
|
|
7638
|
+
"_cz",
|
|
7635
7639
|
input$3.class,
|
|
7636
|
-
{ ["
|
|
7637
|
-
])}><label${_attr_class(["_0", "
|
|
7640
|
+
{ ["_cA"]: !open }
|
|
7641
|
+
])}><label${_attr_class(["_0", "_cC"])}>`);
|
|
7638
7642
|
_if(() => {
|
|
7639
7643
|
if (input$3.searching) {
|
|
7640
7644
|
const $scope5_id = _scope_id();
|
|
@@ -7661,7 +7665,7 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7661
7665
|
}, "b0", $scope0_id))}${_attr_class([
|
|
7662
7666
|
"_Y",
|
|
7663
7667
|
"_2",
|
|
7664
|
-
"
|
|
7668
|
+
"_cD"
|
|
7665
7669
|
])} type=text${_attr("placeholder", input$3.placeholder)}${_attr("aria-label", input$3.ariaLabel)} autocomplete=off spellcheck=false>${_el_resume($scope0_id, "e")}</label>`);
|
|
7666
7670
|
_if(() => {
|
|
7667
7671
|
if (input$3.submitLabel) {
|
|
@@ -7669,19 +7673,19 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7669
7673
|
_html(`<button${_attr_class([
|
|
7670
7674
|
btnSm,
|
|
7671
7675
|
"_r",
|
|
7672
|
-
"
|
|
7676
|
+
"_cE"
|
|
7673
7677
|
])} type=submit${_attr("hidden", !open)}${_attr("disabled", !value.trim() || input$3.busy)}>${_text_resume($scope3_id, "b", input$3.busy ? "Adding…" : input$3.submitLabel, _serialize_guard($scope0_reason, 1))}</button>${_el_resume($scope3_id, "a")}`);
|
|
7674
7678
|
writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7675
7679
|
return 0;
|
|
7676
7680
|
}
|
|
7677
7681
|
}, $scope0_id, "f", 1, _serialize_guard($scope0_reason, 7), 1, 0, 1);
|
|
7678
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7682
|
+
_html(`<button${_attr_class([iconBtnRow, "_cF"])} type=button${_attr("hidden", !open)} title=Close aria-label=Close${_attr("disabled", input$3.busy)}>`);
|
|
7679
7683
|
icon_xmark_default({ size: 14 });
|
|
7680
7684
|
_html(`</button>${_el_resume($scope0_id, "g")}`);
|
|
7681
7685
|
_if(() => {
|
|
7682
7686
|
if (input$3.content) {
|
|
7683
7687
|
const $scope4_id = _scope_id();
|
|
7684
|
-
_html(`<ul${_attr_class([pop$1, "
|
|
7688
|
+
_html(`<ul${_attr_class([pop$1, "_cH"])}${_attr("hidden", !open || !value.trim())}>`);
|
|
7685
7689
|
_dynamic_tag($scope4_id, "b", input$3.content, {}, 0, 0, $sg__input_content);
|
|
7686
7690
|
_html(`</ul>${_el_resume($scope4_id, "a")}`);
|
|
7687
7691
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7808,14 +7812,14 @@ var sso_auth_default = _template("G", (input) => {
|
|
|
7808
7812
|
localCode = null;
|
|
7809
7813
|
}
|
|
7810
7814
|
}, "G0", $scope0_id);
|
|
7811
|
-
_html(`<div${_attr_class(["
|
|
7815
|
+
_html(`<div${_attr_class(["_ht", input.class])}>`);
|
|
7812
7816
|
_for_of(input.items, (s) => {
|
|
7813
7817
|
const $scope1_id = _scope_id();
|
|
7814
|
-
_html(`<div${_attr_class("
|
|
7818
|
+
_html(`<div${_attr_class("_hu")}><span${_attr_class("_hw")}><span${_attr_class("_hx")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_hy", "_hz"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7815
7819
|
_if(() => {
|
|
7816
7820
|
if (!busy) {
|
|
7817
7821
|
const $scope2_id = _scope_id();
|
|
7818
|
-
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "
|
|
7822
|
+
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "_hA"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7819
7823
|
_script($scope2_id, "G1");
|
|
7820
7824
|
writeScope($scope2_id, {});
|
|
7821
7825
|
return 0;
|
|
@@ -7830,13 +7834,13 @@ var sso_auth_default = _template("G", (input) => {
|
|
|
7830
7834
|
_if(() => {
|
|
7831
7835
|
if (localBusy && localCode) {
|
|
7832
7836
|
const $scope4_id = _scope_id();
|
|
7833
|
-
_html(`<div${_attr_class(["
|
|
7837
|
+
_html(`<div${_attr_class(["_hu", "_hB"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_hC")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_hD")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7834
7838
|
_script($scope4_id, "G2");
|
|
7835
7839
|
writeScope($scope4_id, {});
|
|
7836
7840
|
return 0;
|
|
7837
7841
|
} else if (localBusy) {
|
|
7838
7842
|
const $scope6_id = _scope_id();
|
|
7839
|
-
_html(`<div${_attr_class(["
|
|
7843
|
+
_html(`<div${_attr_class(["_hu", "_hB"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7840
7844
|
writeScope($scope6_id, {});
|
|
7841
7845
|
return 1;
|
|
7842
7846
|
}
|
|
@@ -7844,14 +7848,14 @@ var sso_auth_default = _template("G", (input) => {
|
|
|
7844
7848
|
_if(() => {
|
|
7845
7849
|
if (localError) {
|
|
7846
7850
|
const $scope5_id = _scope_id();
|
|
7847
|
-
_html(`<p${_attr_class(["
|
|
7851
|
+
_html(`<p${_attr_class(["_hu", "_hE"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7848
7852
|
writeScope($scope5_id, {});
|
|
7849
7853
|
return 0;
|
|
7850
7854
|
}
|
|
7851
7855
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7852
7856
|
_for_of(skipped, (s) => {
|
|
7853
7857
|
const $scope3_id = _scope_id();
|
|
7854
|
-
_html(`<div${_attr_class(["
|
|
7858
|
+
_html(`<div${_attr_class(["_hu", "_hv"])}><span${_attr_class("_hw")}><span${_attr_class("_hx")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_hy")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_hA"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7855
7859
|
_script($scope3_id, "G3");
|
|
7856
7860
|
writeScope($scope3_id, {
|
|
7857
7861
|
i: s?.org,
|
|
@@ -7902,7 +7906,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7902
7906
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7903
7907
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7904
7908
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7905
|
-
_html(`<li${_attr_class("
|
|
7909
|
+
_html(`<li${_attr_class("_ct")}>`);
|
|
7906
7910
|
_if(() => {
|
|
7907
7911
|
if (input.busy != null) {
|
|
7908
7912
|
const $scope1_id = _scope_id();
|
|
@@ -7912,20 +7916,20 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7912
7916
|
} else {
|
|
7913
7917
|
const $scope2_id = _scope_id();
|
|
7914
7918
|
const popId = _id();
|
|
7915
|
-
_html(`<button${_attr_class("
|
|
7919
|
+
_html(`<button${_attr_class("_cu")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7916
7920
|
_if(() => {
|
|
7917
7921
|
if (input.hint) {
|
|
7918
7922
|
const $scope3_id = _scope_id();
|
|
7919
|
-
_html(`<span${_attr_class("
|
|
7923
|
+
_html(`<span${_attr_class("_cw")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7920
7924
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7921
7925
|
return 0;
|
|
7922
7926
|
}
|
|
7923
7927
|
}, $scope2_id, "c", $sg__input_hint, $sg__input_hint, $sg__input_hint__OR__input_description__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal__OR__input_tags__OR__input_actions__OR__input_trailing, 0, 1);
|
|
7924
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7928
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_b1", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7925
7929
|
_if(() => {
|
|
7926
7930
|
if (input.description) {
|
|
7927
7931
|
const $scope4_id = _scope_id();
|
|
7928
|
-
_html(`<span${_attr_class("
|
|
7932
|
+
_html(`<span${_attr_class("_b3")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7929
7933
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7930
7934
|
return 0;
|
|
7931
7935
|
}
|
|
@@ -7933,12 +7937,12 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7933
7937
|
_if(() => {
|
|
7934
7938
|
if (input.sourceUrl) {
|
|
7935
7939
|
const $scope5_id = _scope_id();
|
|
7936
|
-
_html(`<a${_attr_class(["
|
|
7940
|
+
_html(`<a${_attr_class(["_b3", "_K"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_text_resume($scope5_id, "b", input.source, $sg__input_source)}</a>${_el_resume($scope5_id, "a", _serialize_guard($scope0_reason, 6))}`);
|
|
7937
7941
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, _subscribe($si__input_sourceUrl && $input_sourceUrl__closures, writeScope($scope5_id, { _: _scope_with_id($scope2_id) })));
|
|
7938
7942
|
return 0;
|
|
7939
7943
|
} else if (input.source) {
|
|
7940
7944
|
const $scope6_id = _scope_id();
|
|
7941
|
-
_html(`<span${_attr_class("
|
|
7945
|
+
_html(`<span${_attr_class("_b3")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7942
7946
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7943
7947
|
_: _scope_with_id($scope2_id),
|
|
7944
7948
|
Cs: $si__input_source && 1
|
|
@@ -7946,7 +7950,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7946
7950
|
return 1;
|
|
7947
7951
|
} else if (input.noteLocal) {
|
|
7948
7952
|
const $scope10_id = _scope_id();
|
|
7949
|
-
_html(`<span${_attr_class(["
|
|
7953
|
+
_html(`<span${_attr_class(["_b3", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7950
7954
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7951
7955
|
return 2;
|
|
7952
7956
|
}
|
|
@@ -7954,7 +7958,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7954
7958
|
_if(() => {
|
|
7955
7959
|
if (input.tags) {
|
|
7956
7960
|
const $scope7_id = _scope_id();
|
|
7957
|
-
_html(`<span${_attr_class("
|
|
7961
|
+
_html(`<span${_attr_class("_b2")}>`);
|
|
7958
7962
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7959
7963
|
_html("</span>");
|
|
7960
7964
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7964,7 +7968,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7964
7968
|
_if(() => {
|
|
7965
7969
|
if (input.actions) {
|
|
7966
7970
|
const $scope8_id = _scope_id();
|
|
7967
|
-
_html(`<div${_attr_class("
|
|
7971
|
+
_html(`<div${_attr_class("_cy")}>`);
|
|
7968
7972
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7969
7973
|
_html("</div>");
|
|
7970
7974
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -8075,7 +8079,7 @@ var icon_moon_default = _template("mb", (input) => {
|
|
|
8075
8079
|
});
|
|
8076
8080
|
//#endregion
|
|
8077
8081
|
//#region src/tags/prompt-dialog.css.ts
|
|
8078
|
-
var promptDlg = "
|
|
8082
|
+
var promptDlg = "_g6 _g2";
|
|
8079
8083
|
//#endregion
|
|
8080
8084
|
//#region src/tags/dialog-close.marko
|
|
8081
8085
|
var dialog_close_default = _template("h", (input) => {
|
|
@@ -8099,7 +8103,7 @@ var modal_view_default = _template("q", (input) => {
|
|
|
8099
8103
|
const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
|
|
8100
8104
|
const dismissable = input.dismissable !== false;
|
|
8101
8105
|
let open = input.open;
|
|
8102
|
-
_html(`<dialog${_attr_class(["
|
|
8106
|
+
_html(`<dialog${_attr_class(["_g1", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
8103
8107
|
...htmlInput,
|
|
8104
8108
|
open: null
|
|
8105
8109
|
}, {
|
|
@@ -8109,20 +8113,20 @@ var modal_view_default = _template("q", (input) => {
|
|
|
8109
8113
|
closedby: 1,
|
|
8110
8114
|
"on-cancel": 1,
|
|
8111
8115
|
"on-close": 1
|
|
8112
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
8116
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_g4")}>`);
|
|
8113
8117
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
8114
8118
|
_html("</div>");
|
|
8115
8119
|
_if(() => {
|
|
8116
8120
|
if (footer) {
|
|
8117
8121
|
const $scope1_id = _scope_id();
|
|
8118
|
-
_html(`<form method=dialog${_attr_class("
|
|
8122
|
+
_html(`<form method=dialog${_attr_class("_g5")}>`);
|
|
8119
8123
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
8120
8124
|
_html("</form>");
|
|
8121
8125
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
8122
8126
|
return 0;
|
|
8123
8127
|
} else if (input.openChange) {
|
|
8124
8128
|
const $scope2_id = _scope_id();
|
|
8125
|
-
_html(`<form method=dialog${_attr_class("
|
|
8129
|
+
_html(`<form method=dialog${_attr_class("_g5")}>`);
|
|
8126
8130
|
dialog_close_default({
|
|
8127
8131
|
class: ["_q", "_r"],
|
|
8128
8132
|
content: _content("q0", () => {
|
|
@@ -8206,7 +8210,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
8206
8210
|
content: _content("u7", () => {
|
|
8207
8211
|
_scope_reason();
|
|
8208
8212
|
const $scope2_id = _scope_id();
|
|
8209
|
-
_html(`<h2${_attr_class("
|
|
8213
|
+
_html(`<h2${_attr_class("_g3")}${_attr("id", titleId)}>${_text_resume($scope2_id, "b", input.label, $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
8210
8214
|
value = _new_value;
|
|
8211
8215
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8212
8216
|
_script($scope2_id, "u5");
|
|
@@ -8864,7 +8868,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8864
8868
|
_: _scope_with_id($scope0_id)
|
|
8865
8869
|
});
|
|
8866
8870
|
}, $scope0_id) };
|
|
8867
|
-
_html(`<section${_attr_class("
|
|
8871
|
+
_html(`<section${_attr_class("_bU")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bV")}><h2${_attr("id", agentsId)}${_attr_class("_b8")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_da")}><span${_attr_class("_W")}>Default</span><span${_attr_class("_o")}>`);
|
|
8868
8872
|
_attr_select_value($scope0_id, "p", input.preferred, _resume(function(v) {
|
|
8869
8873
|
setPreferred(v);
|
|
8870
8874
|
}, "B0", $scope0_id), () => {
|
|
@@ -8890,7 +8894,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8890
8894
|
agent: a.id,
|
|
8891
8895
|
size: 18
|
|
8892
8896
|
});
|
|
8893
|
-
_html(`<div${_attr_class("
|
|
8897
|
+
_html(`<div${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8894
8898
|
_if(() => {
|
|
8895
8899
|
if (lone && input.preferred === lone.id) {
|
|
8896
8900
|
const $scope85_id = _scope_id();
|
|
@@ -8908,7 +8912,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8908
8912
|
return 0;
|
|
8909
8913
|
} else if (!a.installed) {
|
|
8910
8914
|
const $scope86_id = _scope_id();
|
|
8911
|
-
_html(`<span${_attr_class("
|
|
8915
|
+
_html(`<span${_attr_class("_b3")}>Not installed</span>`);
|
|
8912
8916
|
writeScope($scope86_id, {});
|
|
8913
8917
|
return 1;
|
|
8914
8918
|
}
|
|
@@ -9026,17 +9030,17 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9026
9030
|
_if(() => {
|
|
9027
9031
|
if (!usage && families.length) {
|
|
9028
9032
|
const $scope90_id = _scope_id();
|
|
9029
|
-
_html(`<p${_attr_class("
|
|
9033
|
+
_html(`<p${_attr_class("_b5")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
9030
9034
|
writeScope($scope90_id, {});
|
|
9031
9035
|
return 0;
|
|
9032
9036
|
} else if (usage?.error) {
|
|
9033
9037
|
const $scope9_id = _scope_id();
|
|
9034
|
-
_html(`<p${_attr_class("
|
|
9038
|
+
_html(`<p${_attr_class("_b5")}>${_text_resume($scope9_id, "b", usage.error)}</p>`);
|
|
9035
9039
|
writeScope($scope9_id, {});
|
|
9036
9040
|
return 1;
|
|
9037
9041
|
}
|
|
9038
9042
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
9039
|
-
_html(`</section></div><div${_attr_class("_eh")}><section${_attr_class("
|
|
9043
|
+
_html(`</section></div><div${_attr_class("_eh")}><section${_attr_class("_bU")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bV")}><h2${_attr("id", githubId)}${_attr_class("_b8")}>GitHub</h2>`);
|
|
9040
9044
|
_if(() => {
|
|
9041
9045
|
if (setup) {
|
|
9042
9046
|
const $scope41_id = _scope_id();
|
|
@@ -9073,19 +9077,19 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9073
9077
|
return 0;
|
|
9074
9078
|
}
|
|
9075
9079
|
}, $scope0_id, "y");
|
|
9076
|
-
_html(`</div><div${_attr_class(["
|
|
9080
|
+
_html(`</div><div${_attr_class(["_bZ", "_cK"])}>`);
|
|
9077
9081
|
_for_of(setup?.github || [], (h) => {
|
|
9078
9082
|
const $scope7_id = _scope_id();
|
|
9079
9083
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
9080
9084
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
9081
9085
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
9082
9086
|
const busy = active.has(h.host);
|
|
9083
|
-
_html(`<div${_attr_class(["
|
|
9087
|
+
_html(`<div${_attr_class(["_cL", "_dp"])}><div${_attr_class("_dq")}>`);
|
|
9084
9088
|
icon_github_default({
|
|
9085
9089
|
size: 18,
|
|
9086
9090
|
class: "_dr"
|
|
9087
9091
|
});
|
|
9088
|
-
_html(`<div${_attr_class("
|
|
9092
|
+
_html(`<div${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope7_id, "g", h.host)}</span>`);
|
|
9089
9093
|
_if(() => {
|
|
9090
9094
|
if (h.isEnterprise) {
|
|
9091
9095
|
const $scope94_id = _scope_id();
|
|
@@ -9098,12 +9102,12 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9098
9102
|
_if(() => {
|
|
9099
9103
|
if (busy) {
|
|
9100
9104
|
const $scope14_id = _scope_id();
|
|
9101
|
-
_html(`<span${_attr_class(["
|
|
9105
|
+
_html(`<span${_attr_class(["_b3", "_ds"])}><span${_attr_class("_G")}></span>${_text_resume($scope14_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
9102
9106
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Ch1: 1 })));
|
|
9103
9107
|
return 0;
|
|
9104
9108
|
} else if (h.authed) {
|
|
9105
9109
|
const $scope92_id = _scope_id();
|
|
9106
|
-
_html(`<span${_attr_class(["
|
|
9110
|
+
_html(`<span${_attr_class(["_b3", "_ds"])}>`);
|
|
9107
9111
|
icon_check_default({
|
|
9108
9112
|
size: 12,
|
|
9109
9113
|
class: "_dt"
|
|
@@ -9114,7 +9118,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9114
9118
|
} else if (h.error) {
|
|
9115
9119
|
const $scope93_id = _scope_id();
|
|
9116
9120
|
_html(`<span${_attr_class([
|
|
9117
|
-
"
|
|
9121
|
+
"_b3",
|
|
9118
9122
|
"_ds",
|
|
9119
9123
|
"_du"
|
|
9120
9124
|
])}>`);
|
|
@@ -9124,7 +9128,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9124
9128
|
return 2;
|
|
9125
9129
|
} else {
|
|
9126
9130
|
const $scope95_id = _scope_id();
|
|
9127
|
-
_html(`<span${_attr_class(["
|
|
9131
|
+
_html(`<span${_attr_class(["_b3", "_ds"])}>Not signed in</span>`);
|
|
9128
9132
|
writeScope($scope95_id, {});
|
|
9129
9133
|
return 3;
|
|
9130
9134
|
}
|
|
@@ -9167,7 +9171,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9167
9171
|
const $childScope12 = _peek_scope_id();
|
|
9168
9172
|
arm_button_default({
|
|
9169
9173
|
class: [
|
|
9170
|
-
"
|
|
9174
|
+
"_b4",
|
|
9171
9175
|
"_7",
|
|
9172
9176
|
"_8"
|
|
9173
9177
|
],
|
|
@@ -9210,7 +9214,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9210
9214
|
_set_serialize_reason(30);
|
|
9211
9215
|
const $childScope13 = _peek_scope_id();
|
|
9212
9216
|
sso_auth_default({
|
|
9213
|
-
class: ["
|
|
9217
|
+
class: ["_cL", "_dA"],
|
|
9214
9218
|
items: hostSso$1,
|
|
9215
9219
|
skipped: skippedSso,
|
|
9216
9220
|
busy,
|
|
@@ -9244,23 +9248,23 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9244
9248
|
_if(() => {
|
|
9245
9249
|
if (setup && !setup.github.length) {
|
|
9246
9250
|
const $scope98_id = _scope_id();
|
|
9247
|
-
_html(`<p${_attr_class("
|
|
9251
|
+
_html(`<p${_attr_class("_b5")}>Install the GitHub CLI below to sign in.</p>`);
|
|
9248
9252
|
writeScope($scope98_id, {});
|
|
9249
9253
|
return 0;
|
|
9250
9254
|
}
|
|
9251
9255
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
9252
|
-
_html(`</section><section${_attr_class("
|
|
9256
|
+
_html(`</section><section${_attr_class("_bU")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bV")}><h2${_attr("id", machineId)}${_attr_class("_b8")}>Machine</h2></div><div${_attr_class(["_bZ", "_cK"])}><div${_attr_class(["_cL", "_cM"])}><div${_attr_class(["_cN", { ["_cO"]: skillsOpen }])}><button${_attr_class("_cP")} aria-expanded=true>`);
|
|
9253
9257
|
_set_serialize_reason(1);
|
|
9254
9258
|
const $childScope14 = _peek_scope_id();
|
|
9255
9259
|
icon_chevron_right_default({
|
|
9256
9260
|
size: 12,
|
|
9257
|
-
class: ["
|
|
9261
|
+
class: ["_cT", { ["_cU"]: skillsOpen }]
|
|
9258
9262
|
});
|
|
9259
|
-
_html(`<span${_attr_class("
|
|
9263
|
+
_html(`<span${_attr_class("_cQ")}>Skills</span>`);
|
|
9260
9264
|
_if(() => {
|
|
9261
9265
|
if (skills?.global.length) {
|
|
9262
9266
|
const $scope50_id = _scope_id();
|
|
9263
|
-
_html(`<span${_attr_class("
|
|
9267
|
+
_html(`<span${_attr_class("_cR")}>${_text_resume($scope50_id, "b", skills.global.length)} installed</span>`);
|
|
9264
9268
|
writeScope($scope50_id, {});
|
|
9265
9269
|
return 0;
|
|
9266
9270
|
}
|
|
@@ -9288,7 +9292,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9288
9292
|
_if(() => {
|
|
9289
9293
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9290
9294
|
const $scope99_id = _scope_id();
|
|
9291
|
-
_html(`<li${_attr_class("
|
|
9295
|
+
_html(`<li${_attr_class("_cI")}>Searching skills.sh…</li>`);
|
|
9292
9296
|
writeScope($scope99_id, {});
|
|
9293
9297
|
return 0;
|
|
9294
9298
|
}
|
|
@@ -9296,7 +9300,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9296
9300
|
_if(() => {
|
|
9297
9301
|
if (looksLikeSource(skillQuery)) {
|
|
9298
9302
|
const $scope17_id = _scope_id();
|
|
9299
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9303
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_dk", "_y"])}>${_text_resume($scope17_id, "d", skillQuery.trim())}</span>`);
|
|
9300
9304
|
_if(() => {
|
|
9301
9305
|
if (active.has(skillQuery.trim())) {
|
|
9302
9306
|
const $scope18_id = _scope_id();
|
|
@@ -9308,7 +9312,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9308
9312
|
return 0;
|
|
9309
9313
|
} else {
|
|
9310
9314
|
const $scope100_id = _scope_id();
|
|
9311
|
-
_html(`<span${_attr_class("
|
|
9315
|
+
_html(`<span${_attr_class("_b3")}>Add straight from this source</span>`);
|
|
9312
9316
|
writeScope($scope100_id, {});
|
|
9313
9317
|
return 1;
|
|
9314
9318
|
}
|
|
@@ -9334,7 +9338,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9334
9338
|
_for_of(skillHits || [], (h) => {
|
|
9335
9339
|
const $scope19_id = _scope_id();
|
|
9336
9340
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9337
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9341
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_dk", "_y"])}>${_text_resume($scope19_id, "d", h.name)}</span>`);
|
|
9338
9342
|
_if(() => {
|
|
9339
9343
|
if (active.has(h.skillId)) {
|
|
9340
9344
|
const $scope20_id = _scope_id();
|
|
@@ -9343,7 +9347,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9343
9347
|
return 0;
|
|
9344
9348
|
} else {
|
|
9345
9349
|
const $scope101_id = _scope_id();
|
|
9346
|
-
_html(`<span${_attr_class("
|
|
9350
|
+
_html(`<span${_attr_class("_b3")}${_attr("title", h.source)}>${_text_resume($scope101_id, "b", h.source)}</span>${_el_resume($scope101_id, "a")}`);
|
|
9347
9351
|
writeScope($scope101_id, {});
|
|
9348
9352
|
return 1;
|
|
9349
9353
|
}
|
|
@@ -9391,7 +9395,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9391
9395
|
_if(() => {
|
|
9392
9396
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9393
9397
|
const $scope52_id = _scope_id();
|
|
9394
|
-
_html(`<li${_attr_class("
|
|
9398
|
+
_html(`<li${_attr_class("_cI")}>No skills match "${_text_resume($scope52_id, "b", skillQuery, 2)}".</li>`);
|
|
9395
9399
|
_subscribe($skillQuery__closures, writeScope($scope52_id, { Chs: 3 }));
|
|
9396
9400
|
return 0;
|
|
9397
9401
|
}
|
|
@@ -9408,22 +9412,22 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9408
9412
|
_if(() => {
|
|
9409
9413
|
{
|
|
9410
9414
|
const $scope21_id = _scope_id();
|
|
9411
|
-
_html(`<div${_attr_class("
|
|
9415
|
+
_html(`<div${_attr_class("_cS")}>`);
|
|
9412
9416
|
_if(() => {
|
|
9413
9417
|
if (skills && !skills.agents.length) {
|
|
9414
9418
|
const $scope104_id = _scope_id();
|
|
9415
|
-
_html(`<p${_attr_class("
|
|
9419
|
+
_html(`<p${_attr_class("_b5")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9416
9420
|
writeScope($scope104_id, {});
|
|
9417
9421
|
return 0;
|
|
9418
9422
|
} else if (skills && !skills.available) {
|
|
9419
9423
|
const $scope22_id = _scope_id();
|
|
9420
|
-
_html(`<p${_attr_class("
|
|
9424
|
+
_html(`<p${_attr_class("_b5")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${_text_resume($scope22_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope22_id, "b")}</p>`);
|
|
9421
9425
|
_script($scope22_id, "B66");
|
|
9422
9426
|
_subscribe($active__closures, writeScope($scope22_id, { Ch1: 6 }));
|
|
9423
9427
|
return 1;
|
|
9424
9428
|
}
|
|
9425
9429
|
}, $scope21_id, "b", 1, 1, 1, 0, 1);
|
|
9426
|
-
_html(`<ul${_attr_class("
|
|
9430
|
+
_html(`<ul${_attr_class("_cs")}>`);
|
|
9427
9431
|
_for_of(skills?.global || [], (s) => {
|
|
9428
9432
|
const $scope23_id = _scope_id();
|
|
9429
9433
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9501,7 +9505,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9501
9505
|
_if(() => {
|
|
9502
9506
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9503
9507
|
const $scope108_id = _scope_id();
|
|
9504
|
-
_html(`<p${_attr_class("
|
|
9508
|
+
_html(`<p${_attr_class("_b5")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9505
9509
|
writeScope($scope108_id, {});
|
|
9506
9510
|
return 0;
|
|
9507
9511
|
}
|
|
@@ -9511,14 +9515,14 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9511
9515
|
return 0;
|
|
9512
9516
|
}
|
|
9513
9517
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
9514
|
-
_html(`</div><div${_attr_class(["
|
|
9518
|
+
_html(`</div><div${_attr_class(["_cL", "_cM"])}><div${_attr_class(["_cN", { ["_cO"]: machineOpen }])}><button${_attr_class("_cP")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9515
9519
|
_set_serialize_reason(1);
|
|
9516
9520
|
const $childScope18 = _peek_scope_id();
|
|
9517
9521
|
icon_chevron_right_default({
|
|
9518
9522
|
size: 12,
|
|
9519
|
-
class: ["
|
|
9523
|
+
class: ["_cT", { ["_cU"]: machineOpen }]
|
|
9520
9524
|
});
|
|
9521
|
-
_html(`<span${_attr_class("
|
|
9525
|
+
_html(`<span${_attr_class("_cQ")}>Tools</span><span${_attr_class("_cR")}>${_text_resume($scope0_id, "aj", tools.filter((t) => t.installed).length)} installed ${_text_resume($scope0_id, "ak", missingCount ? `${_to_text(" · ")}${_to_text(missingCount)} missing` : "", 2)}${_text_resume($scope0_id, "al", outdatedIds.length ? `${_to_text(" · ")}${_to_text(outdatedIds.length)} outdated` : "", 2)}</span></button>${_el_resume($scope0_id, "af")}`);
|
|
9522
9526
|
_if(() => {
|
|
9523
9527
|
if (bulk) {
|
|
9524
9528
|
const $scope34_id = _scope_id();
|
|
@@ -9571,7 +9575,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9571
9575
|
_if(() => {
|
|
9572
9576
|
if (searching && !hits?.length) {
|
|
9573
9577
|
const $scope109_id = _scope_id();
|
|
9574
|
-
_html(`<li${_attr_class("
|
|
9578
|
+
_html(`<li${_attr_class("_cI")}>Searching the mise registry…</li>`);
|
|
9575
9579
|
writeScope($scope109_id, {});
|
|
9576
9580
|
return 0;
|
|
9577
9581
|
}
|
|
@@ -9579,14 +9583,14 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9579
9583
|
_if(() => {
|
|
9580
9584
|
if (hits && !hits.length && !searching) {
|
|
9581
9585
|
const $scope42_id = _scope_id();
|
|
9582
|
-
_html(`<li${_attr_class("
|
|
9586
|
+
_html(`<li${_attr_class("_cI")}>No tools match "${_text_resume($scope42_id, "b", query, 2)}".</li>`);
|
|
9583
9587
|
_subscribe($query__closures, writeScope($scope42_id, {}));
|
|
9584
9588
|
return 0;
|
|
9585
9589
|
}
|
|
9586
9590
|
}, $scope28_id, "b", 1, 1, 1, 0, 1);
|
|
9587
9591
|
_for_of(hits || [], (h) => {
|
|
9588
9592
|
const $scope29_id = _scope_id();
|
|
9589
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9593
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_dk", "_y"])}>${_text_resume($scope29_id, "d", h.name)}</span>`);
|
|
9590
9594
|
_if(() => {
|
|
9591
9595
|
if (active.has(h.name)) {
|
|
9592
9596
|
const $scope30_id = _scope_id();
|
|
@@ -9595,7 +9599,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9595
9599
|
return 0;
|
|
9596
9600
|
} else if (h.description) {
|
|
9597
9601
|
const $scope110_id = _scope_id();
|
|
9598
|
-
_html(`<span${_attr_class("
|
|
9602
|
+
_html(`<span${_attr_class("_b3")}${_attr("title", h.description)}>${_text_resume($scope110_id, "b", h.description)}</span>${_el_resume($scope110_id, "a")}`);
|
|
9599
9603
|
writeScope($scope110_id, {});
|
|
9600
9604
|
return 1;
|
|
9601
9605
|
}
|
|
@@ -9642,11 +9646,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9642
9646
|
_if(() => {
|
|
9643
9647
|
if (machineOpen) {
|
|
9644
9648
|
const $scope6_id = _scope_id();
|
|
9645
|
-
_html(`<div${_attr_class("
|
|
9649
|
+
_html(`<div${_attr_class("_cS")}>`);
|
|
9646
9650
|
_if(() => {
|
|
9647
9651
|
if (setup && !setup.mise.installed) {
|
|
9648
9652
|
const $scope31_id = _scope_id();
|
|
9649
|
-
_html(`<p${_attr_class("
|
|
9653
|
+
_html(`<p${_attr_class("_b5")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope31_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope31_id, "b")}</p>`);
|
|
9650
9654
|
_script($scope31_id, "B76");
|
|
9651
9655
|
_subscribe($active__closures, writeScope($scope31_id, { Ch1: 10 }));
|
|
9652
9656
|
return 0;
|
|
@@ -9873,7 +9877,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9873
9877
|
label: "Dark"
|
|
9874
9878
|
}
|
|
9875
9879
|
];
|
|
9876
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9880
|
+
_html(`</div></div></section><section${_attr_class("_bU")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bV")}><h2${_attr("id", appearanceId)}${_attr_class("_b8")}>Appearance</h2></div><div${_attr_class(["_bZ", "_dB"])}><div${_attr_class("_dN")}><img${_attr_class("_dO")}${_attr("src", `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`)} alt aria-hidden=true>${_el_resume($scope0_id, "au", $sg__input_instance_accent)}<span${_attr_class("_dP")}><span${_attr_class("_dQ")}>${_text_resume($scope0_id, "ax", input.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dR")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dC")}><span${_attr_class("_dD")}>Name</span><input${_attr_input_value($scope0_id, "b1", input.instance.name, _resume(function(v) {
|
|
9877
9881
|
setInstance({ name: v });
|
|
9878
9882
|
}, "B1", $scope0_id))}${_attr_class(["_Y", "_dE"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b1")}</label><div${_attr_class("_dC")}><span${_attr_class("_dD")}>Theme</span><span${_attr_class("_dG")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9879
9883
|
_for_of(themeOpts, (opt) => {
|
|
@@ -9971,7 +9975,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9971
9975
|
return 1;
|
|
9972
9976
|
}
|
|
9973
9977
|
}, $scope0_id, "bf", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9974
|
-
_html(`</label>${_el_resume($scope0_id, "bd", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
9978
|
+
_html(`</label>${_el_resume($scope0_id, "bd", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bU")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bV")}><h2${_attr("id", backupId)}${_attr_class("_b8")}>Backup</h2></div><div${_attr_class(["_bZ", "_cK"])}><div${_attr_class("_cL")}><div${_attr_class("_d0")}><div${_attr_class("_b0")}>`);
|
|
9975
9979
|
_if(() => {
|
|
9976
9980
|
if (backupBusy === "preflight") {
|
|
9977
9981
|
const $scope66_id = _scope_id();
|
|
@@ -9980,7 +9984,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9980
9984
|
return 0;
|
|
9981
9985
|
} else {
|
|
9982
9986
|
const $scope130_id = _scope_id();
|
|
9983
|
-
_html(`<span${_attr_class("
|
|
9987
|
+
_html(`<span${_attr_class("_b3")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9984
9988
|
writeScope($scope130_id, {});
|
|
9985
9989
|
return 1;
|
|
9986
9990
|
}
|
|
@@ -10019,7 +10023,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10019
10023
|
_for_of(preflight.workspaces, (w) => {
|
|
10020
10024
|
const $scope132_id = _scope_id();
|
|
10021
10025
|
const $for_content17__w_name__closures = /* @__PURE__ */ new Set();
|
|
10022
|
-
_html(`<li${_attr_class("_d5")}><span${_attr_class("
|
|
10026
|
+
_html(`<li${_attr_class("_d5")}><span${_attr_class("_b1")}>${_text_resume($scope132_id, "c", w.name)}</span><ul${_attr_class("_d4")}>`);
|
|
10023
10027
|
_for_of(w.repos, (r) => {
|
|
10024
10028
|
const $scope133_id = _scope_id();
|
|
10025
10029
|
const $for_content18__r_more__closures = /* @__PURE__ */ new Set();
|
|
@@ -10096,7 +10100,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10096
10100
|
return 0;
|
|
10097
10101
|
}
|
|
10098
10102
|
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
10099
|
-
_html(`</div><div${_attr_class("
|
|
10103
|
+
_html(`</div><div${_attr_class("_cL")}><div${_attr_class("_d0")}><div${_attr_class("_b0")}>`);
|
|
10100
10104
|
_if(() => {
|
|
10101
10105
|
if (backupBusy === "restore") {
|
|
10102
10106
|
const $scope67_id = _scope_id();
|
|
@@ -10105,12 +10109,12 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10105
10109
|
return 0;
|
|
10106
10110
|
} else if (restoreDone) {
|
|
10107
10111
|
const $scope75_id = _scope_id();
|
|
10108
|
-
_html(`<span${_attr_class("
|
|
10112
|
+
_html(`<span${_attr_class("_b3")}>${_text_resume($scope75_id, "b", restoreDone)}</span>`);
|
|
10109
10113
|
writeScope($scope75_id, {});
|
|
10110
10114
|
return 1;
|
|
10111
10115
|
} else {
|
|
10112
10116
|
const $scope141_id = _scope_id();
|
|
10113
|
-
_html(`<span${_attr_class("
|
|
10117
|
+
_html(`<span${_attr_class("_b3")}>Load a backup file. Repos clone in the background.</span>`);
|
|
10114
10118
|
writeScope($scope141_id, {});
|
|
10115
10119
|
return 2;
|
|
10116
10120
|
}
|
|
@@ -10136,7 +10140,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10136
10140
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
10137
10141
|
_for_of(preview.workspaces, (w) => {
|
|
10138
10142
|
const $scope72_id = _scope_id();
|
|
10139
|
-
_html(`<li><label${_attr_class(["_eb", { ["_ed"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_ec")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("
|
|
10143
|
+
_html(`<li><label${_attr_class(["_eb", { ["_ed"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_ec")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope72_id, "f", w.name)}</span>`);
|
|
10140
10144
|
_if(() => {
|
|
10141
10145
|
if (w.status === "archived") {
|
|
10142
10146
|
const $scope145_id = _scope_id();
|
|
@@ -10158,7 +10162,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10158
10162
|
return 1;
|
|
10159
10163
|
}
|
|
10160
10164
|
}, $scope72_id, "h", 1, 1, 1, 0, 1);
|
|
10161
|
-
_html(`</span><span${_attr_class("
|
|
10165
|
+
_html(`</span><span${_attr_class("_b3")}>${_text_resume($scope72_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope72_id, "a")}</li>`);
|
|
10162
10166
|
_script($scope72_id, "B88");
|
|
10163
10167
|
_subscribe($restoreWs__closures, writeScope($scope72_id, {
|
|
10164
10168
|
n: w?.unknownHost,
|
|
@@ -10169,7 +10173,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10169
10173
|
return 0;
|
|
10170
10174
|
} else {
|
|
10171
10175
|
const $scope143_id = _scope_id();
|
|
10172
|
-
_html(`<p${_attr_class("
|
|
10176
|
+
_html(`<p${_attr_class("_b5")}>No workspaces in this file.</p>`);
|
|
10173
10177
|
writeScope($scope143_id, {});
|
|
10174
10178
|
return 1;
|
|
10175
10179
|
}
|
|
@@ -10209,7 +10213,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10209
10213
|
_if(() => {
|
|
10210
10214
|
if (p.total) {
|
|
10211
10215
|
const $scope74_id = _scope_id();
|
|
10212
|
-
_html(`<li><label${_attr_class(["_eb", { ["_ed"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_ec")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("
|
|
10216
|
+
_html(`<li><label${_attr_class(["_eb", { ["_ed"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_ec")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("_b0")}><span${_attr_class("_b1")}>${_text_resume($scope74_id, "e", p.label)}</span><span${_attr_class("_b3")}>`);
|
|
10213
10217
|
_if(() => {
|
|
10214
10218
|
if (p.key === "settings") {
|
|
10215
10219
|
const $scope142_id = _scope_id();
|
|
@@ -10493,13 +10497,13 @@ function vapidKey(base64) {
|
|
|
10493
10497
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10494
10498
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10495
10499
|
}
|
|
10496
|
-
var iconBtn = "
|
|
10497
|
-
var settingsDot = "
|
|
10498
|
-
var navToggle = "
|
|
10500
|
+
var iconBtn = "_b_ _l";
|
|
10501
|
+
var settingsDot = "_ca _bb";
|
|
10502
|
+
var navToggle = "_ce _l";
|
|
10499
10503
|
//#endregion
|
|
10500
10504
|
//#region src/styles/session-pop.css.ts
|
|
10501
|
-
var sessionPop = "
|
|
10502
|
-
var sessionPopBtn = "
|
|
10505
|
+
var sessionPop = "_cq _9";
|
|
10506
|
+
var sessionPopBtn = "_cr _I";
|
|
10503
10507
|
_template("X", (input) => {
|
|
10504
10508
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10505
10509
|
const $scope0_id = _scope_id();
|
|
@@ -10553,14 +10557,14 @@ function activeAgent(session) {
|
|
|
10553
10557
|
const command = session.state?.command?.trim();
|
|
10554
10558
|
return command && agentFromCommand(command) || session.agent;
|
|
10555
10559
|
}
|
|
10556
|
-
var heroTag = "
|
|
10557
|
-
var rowState = "
|
|
10558
|
-
var prChip$1 = "
|
|
10559
|
-
var portChip = "
|
|
10560
|
+
var heroTag = "_fe _N _Q";
|
|
10561
|
+
var rowState = "_fq _N";
|
|
10562
|
+
var prChip$1 = "_in _u _im";
|
|
10563
|
+
var portChip = "_io _u _im";
|
|
10560
10564
|
var prState = {
|
|
10561
|
-
open: "
|
|
10562
|
-
merged: "
|
|
10563
|
-
closed: "
|
|
10565
|
+
open: "_is",
|
|
10566
|
+
merged: "_it",
|
|
10567
|
+
closed: "_iu"
|
|
10564
10568
|
};
|
|
10565
10569
|
//#endregion
|
|
10566
10570
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10641,7 +10645,7 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10641
10645
|
const name = repo.full_name.split("/").at(-1);
|
|
10642
10646
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel$1(repo.full_name) : name;
|
|
10643
10647
|
}, "C3", $scope1_id);
|
|
10644
|
-
_html(`<div${_attr_class("
|
|
10648
|
+
_html(`<div${_attr_class("_il")}>`);
|
|
10645
10649
|
_for_of(repos, (repo) => {
|
|
10646
10650
|
const $scope2_id = _scope_id();
|
|
10647
10651
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10657,11 +10661,11 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10657
10661
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10658
10662
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10659
10663
|
}
|
|
10660
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10664
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_ip", { ["_ix"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
|
|
10661
10665
|
_if(() => {
|
|
10662
10666
|
if (open) {
|
|
10663
10667
|
const $scope4_id = _scope_id();
|
|
10664
|
-
_html(`<a${_attr_class(["
|
|
10668
|
+
_html(`<a${_attr_class(["_ip", "_iq"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10665
10669
|
icon_diff_default({ size: 12 });
|
|
10666
10670
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10667
10671
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10669,9 +10673,9 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10669
10673
|
} else {
|
|
10670
10674
|
const $scope5_id = _scope_id();
|
|
10671
10675
|
_html(`<button type=button${_attr_class([
|
|
10672
|
-
"
|
|
10673
|
-
"
|
|
10674
|
-
"
|
|
10676
|
+
"_ip",
|
|
10677
|
+
"_iq",
|
|
10678
|
+
"_ir"
|
|
10675
10679
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10676
10680
|
icon_xmark_default({ size: 12 });
|
|
10677
10681
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
@@ -10699,12 +10703,12 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10699
10703
|
_if(() => {
|
|
10700
10704
|
if (dead.has(p.port)) {
|
|
10701
10705
|
const $scope7_id = _scope_id();
|
|
10702
|
-
_html(`<span${_attr_class(["
|
|
10706
|
+
_html(`<span${_attr_class(["_ip", "_iv"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10703
10707
|
_subscribe($dead__closures, writeScope($scope7_id, { Cy: 1 }));
|
|
10704
10708
|
return 0;
|
|
10705
10709
|
} else {
|
|
10706
10710
|
const $scope8_id = _scope_id();
|
|
10707
|
-
_html(`<button type=button${_attr_class(["
|
|
10711
|
+
_html(`<button type=button${_attr_class(["_ip", "_iw"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10708
10712
|
_script($scope8_id, "C6");
|
|
10709
10713
|
writeScope($scope8_id, {});
|
|
10710
10714
|
return 1;
|
|
@@ -10713,9 +10717,9 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10713
10717
|
const $childScope = _peek_scope_id();
|
|
10714
10718
|
arm_button_default({
|
|
10715
10719
|
class: [
|
|
10716
|
-
"
|
|
10717
|
-
"
|
|
10718
|
-
"
|
|
10720
|
+
"_ip",
|
|
10721
|
+
"_iq",
|
|
10722
|
+
"_ir"
|
|
10719
10723
|
],
|
|
10720
10724
|
title: `Kill ${p.cmd} (pid ${p.pid})`,
|
|
10721
10725
|
armedTitle: "Kill?",
|
|
@@ -10762,12 +10766,12 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10762
10766
|
});
|
|
10763
10767
|
_resume_branch($scope0_id);
|
|
10764
10768
|
});
|
|
10765
|
-
var railBtn = "
|
|
10766
|
-
var wsBtn = "
|
|
10767
|
-
var rowIcon = "
|
|
10768
|
-
var close = "
|
|
10769
|
-
var sessRename$1 = "
|
|
10770
|
-
var sessBtn$1 = "
|
|
10769
|
+
var railBtn = "_fv _l";
|
|
10770
|
+
var wsBtn = "_fz _I";
|
|
10771
|
+
var rowIcon = "_fC _3 _l";
|
|
10772
|
+
var close = "_fD _6 _l _7";
|
|
10773
|
+
var sessRename$1 = "_fJ _J";
|
|
10774
|
+
var sessBtn$1 = "_fL _I";
|
|
10771
10775
|
//#endregion
|
|
10772
10776
|
//#region src/tags/icons/icon-manage.marko
|
|
10773
10777
|
var icon_manage_default = _template("kb", (input) => {
|
|
@@ -10882,7 +10886,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10882
10886
|
_if(() => {
|
|
10883
10887
|
if (input.rail) {
|
|
10884
10888
|
const $scope2_id = _scope_id();
|
|
10885
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10889
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_fs"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${_text_resume($scope2_id, "b", input.index === void 0 ? "·" : input.index + 1, _serialize_guard($scope0_reason, 18))}<span${_attr_class([
|
|
10886
10890
|
"_A",
|
|
10887
10891
|
phase[dot$1],
|
|
10888
10892
|
"_bb"
|
|
@@ -10892,31 +10896,31 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10892
10896
|
} else if (ws$1.pending) {
|
|
10893
10897
|
const $scope3_id = _scope_id();
|
|
10894
10898
|
_html(`<section${_attr_class([
|
|
10899
|
+
"_fx",
|
|
10895
10900
|
"_fN",
|
|
10896
|
-
"
|
|
10897
|
-
|
|
10898
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fO")}><div${_attr_class(wsBtn)}>`);
|
|
10901
|
+
{ ["_fw"]: input.page }
|
|
10902
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fy")}><div${_attr_class(wsBtn)}>`);
|
|
10899
10903
|
_if(() => {
|
|
10900
10904
|
if (ws$1.pending_error) {
|
|
10901
10905
|
const $scope11_id = _scope_id();
|
|
10902
10906
|
icon_warning_default({
|
|
10903
10907
|
size: 12,
|
|
10904
|
-
class: "
|
|
10908
|
+
class: "_fP"
|
|
10905
10909
|
});
|
|
10906
10910
|
$si__input_workspace && writeScope($scope11_id, {});
|
|
10907
10911
|
return 0;
|
|
10908
10912
|
} else {
|
|
10909
10913
|
const $scope12_id = _scope_id();
|
|
10910
|
-
_html(`<span${_attr_class(["_G", "
|
|
10914
|
+
_html(`<span${_attr_class(["_G", "_fO"])}></span>`);
|
|
10911
10915
|
$si__input_workspace && writeScope($scope12_id, {});
|
|
10912
10916
|
return 1;
|
|
10913
10917
|
}
|
|
10914
10918
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10915
|
-
_html(`<span${_attr_class("
|
|
10919
|
+
_html(`<span${_attr_class("_fF")}><span${_attr_class("_fG")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_fR")}${_attr("title", ws$1.pending_error || restoreLine)}>${_text_resume($scope3_id, "i", ws$1.pending_error ? `Restore failed: ${ws$1.pending_error}` : restoreLine || "Restoring…")}</span>${_el_resume($scope3_id, "h")}</span></div></div>`);
|
|
10916
10920
|
_if(() => {
|
|
10917
10921
|
if (ws$1.pending_error && !retrying) {
|
|
10918
10922
|
const $scope10_id = _scope_id();
|
|
10919
|
-
_html(`<div${_attr_class("
|
|
10923
|
+
_html(`<div${_attr_class("_fQ")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope10_id, "b")}`);
|
|
10920
10924
|
arm_button_default({
|
|
10921
10925
|
class: ["_q", btnSm],
|
|
10922
10926
|
title: "Delete workspace",
|
|
@@ -10947,11 +10951,11 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10947
10951
|
const $scope4_id = _scope_id();
|
|
10948
10952
|
const sessions$1 = input.sessions || [];
|
|
10949
10953
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10950
|
-
_html(`<section${_attr_class(["
|
|
10951
|
-
["
|
|
10954
|
+
_html(`<section${_attr_class(["_fx", {
|
|
10955
|
+
["_fs"]: input.current,
|
|
10952
10956
|
["_bc"]: input.current,
|
|
10953
|
-
["
|
|
10954
|
-
}])}><div${_attr_class("
|
|
10957
|
+
["_fu"]: input.menuOpen
|
|
10958
|
+
}])}><div${_attr_class("_fy")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class(["_A", phase[dot$1]])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10955
10959
|
_if(() => {
|
|
10956
10960
|
if (sessions$1.length === 1) {
|
|
10957
10961
|
const $scope14_id = _scope_id();
|
|
@@ -10963,7 +10967,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10963
10967
|
icon_agent_default({
|
|
10964
10968
|
agent: activeAgent(sessions$1[0]),
|
|
10965
10969
|
size: 12,
|
|
10966
|
-
class: "
|
|
10970
|
+
class: "_fE"
|
|
10967
10971
|
});
|
|
10968
10972
|
$si__input_sessions && writeScope($scope14_id, {
|
|
10969
10973
|
_: _scope_with_id($scope4_id),
|
|
@@ -10972,7 +10976,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10972
10976
|
return 0;
|
|
10973
10977
|
}
|
|
10974
10978
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview);
|
|
10975
|
-
_html(`<span${_attr_class("
|
|
10979
|
+
_html(`<span${_attr_class("_fF")}><span${_attr_class("_fG")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span></span> </a>${_el_resume($scope4_id, "c", $sg__input_workspace)}<div${_attr_class("_fA")}>`);
|
|
10976
10980
|
_if(() => {
|
|
10977
10981
|
if (input.onNewSession) {
|
|
10978
10982
|
const $scope5_id = _scope_id();
|
|
@@ -11000,19 +11004,19 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
11000
11004
|
return 0;
|
|
11001
11005
|
}
|
|
11002
11006
|
}, $scope4_id, "k", $sg__input_onReview, $sg__input_onReview, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview, 0, 1);
|
|
11003
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
11007
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_ft"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
11004
11008
|
icon_manage_default({ size: 12 });
|
|
11005
|
-
_html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("
|
|
11009
|
+
_html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("_fK")}>`);
|
|
11006
11010
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
11007
11011
|
const $scope6_id = _scope_id();
|
|
11008
|
-
_html(`<div${_attr_class(["
|
|
11012
|
+
_html(`<div${_attr_class(["_fB", { ["_fs"]: s.id === input.currentTab }])}>`);
|
|
11009
11013
|
_if(() => {
|
|
11010
11014
|
if (renamingId === s.id) {
|
|
11011
11015
|
const $scope7_id = _scope_id();
|
|
11012
11016
|
_html(`<span${_attr_class([
|
|
11013
11017
|
"_A",
|
|
11014
11018
|
phase[sessionPhase(s.state)],
|
|
11015
|
-
"
|
|
11019
|
+
"_fI"
|
|
11016
11020
|
])}></span>${_el_resume($scope7_id, "a", $sg__input_sessions)}`);
|
|
11017
11021
|
_set_serialize_reason({
|
|
11018
11022
|
1: $sg__input_sessions,
|
|
@@ -11022,7 +11026,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
11022
11026
|
icon_agent_default({
|
|
11023
11027
|
agent: activeAgent(s),
|
|
11024
11028
|
size: 12,
|
|
11025
|
-
class: "
|
|
11029
|
+
class: "_fM"
|
|
11026
11030
|
});
|
|
11027
11031
|
const $childScope3 = _peek_scope_id();
|
|
11028
11032
|
rename_input_default({
|
|
@@ -11053,9 +11057,9 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
11053
11057
|
icon_agent_default({
|
|
11054
11058
|
agent: activeAgent(s),
|
|
11055
11059
|
size: 12,
|
|
11056
|
-
class: "
|
|
11060
|
+
class: "_fM"
|
|
11057
11061
|
});
|
|
11058
|
-
_html(`<span${_attr_class("
|
|
11062
|
+
_html(`<span${_attr_class("_fH")}>${_text_resume($scope8_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope8_id, "a", _serialize_guard($scope0_reason, 3))}<button${_attr_class(rowIcon)} title="Rename session">`);
|
|
11059
11063
|
icon_edit_default({ size: 12 });
|
|
11060
11064
|
_html(`</button>${_el_resume($scope8_id, "f")}`);
|
|
11061
11065
|
arm_button_default({
|
|
@@ -11178,11 +11182,11 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11178
11182
|
const sessions = input.sessions || st?.sessions || [];
|
|
11179
11183
|
const manySessions = sessions.length > 1;
|
|
11180
11184
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11181
|
-
_html(`<div${_attr_class("
|
|
11185
|
+
_html(`<div${_attr_class("_fa")}>`);
|
|
11182
11186
|
_if(() => {
|
|
11183
11187
|
if (ws) {
|
|
11184
11188
|
const $scope1_id = _scope_id();
|
|
11185
|
-
_html(`<section${_attr_class("
|
|
11189
|
+
_html(`<section${_attr_class("_fb")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_fc")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11186
11190
|
_if(() => {
|
|
11187
11191
|
if (sessions.length === 1) {
|
|
11188
11192
|
const $scope8_id = _scope_id();
|
|
@@ -11194,7 +11198,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11194
11198
|
icon_agent_default({
|
|
11195
11199
|
agent: activeAgent(sessions[0]),
|
|
11196
11200
|
size: 16,
|
|
11197
|
-
class: "
|
|
11201
|
+
class: "_fg"
|
|
11198
11202
|
});
|
|
11199
11203
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
|
|
11200
11204
|
_: _scope_with_id($scope1_id),
|
|
@@ -11203,14 +11207,14 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11203
11207
|
return 0;
|
|
11204
11208
|
}
|
|
11205
11209
|
}, $scope1_id, "d", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions);
|
|
11206
|
-
_html(`<span${_attr_class("
|
|
11210
|
+
_html(`<span${_attr_class("_fd")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class(heroTag)}>open</span><span${_attr_class("_ff")}>${_text_resume($scope1_id, "i", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
|
|
11207
11211
|
_if(() => {
|
|
11208
11212
|
if (manySessions) {
|
|
11209
11213
|
const $scope2_id = _scope_id();
|
|
11210
|
-
_html(`<div${_attr_class("
|
|
11214
|
+
_html(`<div${_attr_class("_fh")}>`);
|
|
11211
11215
|
_for_of(sessions, (s) => {
|
|
11212
11216
|
const $scope3_id = _scope_id();
|
|
11213
|
-
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["
|
|
11217
|
+
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_fj", { ["_fi"]: s.id === input.tab }])}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope3_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}`);
|
|
11214
11218
|
_set_serialize_reason({
|
|
11215
11219
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11216
11220
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11220,7 +11224,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11220
11224
|
agent: activeAgent(s),
|
|
11221
11225
|
size: 14
|
|
11222
11226
|
});
|
|
11223
|
-
_html(`<span${_attr_class("
|
|
11227
|
+
_html(`<span${_attr_class("_fk")}>${_text_resume($scope3_id, "e", s.title || activeAgent(s), $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 7))}`);
|
|
11224
11228
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab && _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_tab && $input_tab__closures, writeScope($scope3_id, {
|
|
11225
11229
|
h: $si__input_tab && s?.id,
|
|
11226
11230
|
_: _scope_with_id($scope2_id),
|
|
@@ -11249,7 +11253,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11249
11253
|
_if(() => {
|
|
11250
11254
|
if (input.ids.length) {
|
|
11251
11255
|
const $scope4_id = _scope_id();
|
|
11252
|
-
_html(`<div${_attr_class("
|
|
11256
|
+
_html(`<div${_attr_class("_fl")}>`);
|
|
11253
11257
|
_for_of(input.ids, (id) => {
|
|
11254
11258
|
const $scope5_id = _scope_id();
|
|
11255
11259
|
const w = input.byId.get(id);
|
|
@@ -11293,7 +11297,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11293
11297
|
const rp = phaseOf(rs);
|
|
11294
11298
|
const rowSessions = rs?.sessions || [];
|
|
11295
11299
|
const many = rowSessions.length > 1;
|
|
11296
|
-
_html(`<div${_attr_class("
|
|
11300
|
+
_html(`<div${_attr_class("_fm")}><a${_attr("href", `/w/${id}`)}${_attr_class("_fn")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope7_id, "c", $sg__input_allStatus__OR__input_ids)}`);
|
|
11297
11301
|
_if(() => {
|
|
11298
11302
|
if (rowSessions.length === 1) {
|
|
11299
11303
|
const $scope9_id = _scope_id();
|
|
@@ -11305,7 +11309,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11305
11309
|
icon_agent_default({
|
|
11306
11310
|
agent: activeAgent(rowSessions[0]),
|
|
11307
11311
|
size: 16,
|
|
11308
|
-
class: "
|
|
11312
|
+
class: "_fp"
|
|
11309
11313
|
});
|
|
11310
11314
|
$si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
|
|
11311
11315
|
_: _scope_with_id($scope7_id),
|
|
@@ -11314,7 +11318,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11314
11318
|
return 0;
|
|
11315
11319
|
}
|
|
11316
11320
|
}, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
|
|
11317
|
-
_html(`<span${_attr_class("
|
|
11321
|
+
_html(`<span${_attr_class("_fo")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
|
|
11318
11322
|
_if(() => {
|
|
11319
11323
|
if (many) {
|
|
11320
11324
|
const $scope10_id = _scope_id();
|
|
@@ -11325,7 +11329,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11325
11329
|
}, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
|
|
11326
11330
|
icon_chevron_right_default({
|
|
11327
11331
|
size: 14,
|
|
11328
|
-
class: "
|
|
11332
|
+
class: "_fr"
|
|
11329
11333
|
});
|
|
11330
11334
|
_html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
|
|
11331
11335
|
_set_serialize_reason($sg__input_ids);
|
|
@@ -11445,13 +11449,13 @@ var usage_bars_default = _template("K", (input) => {
|
|
|
11445
11449
|
if (windows.length) {
|
|
11446
11450
|
const $scope1_id = _scope_id();
|
|
11447
11451
|
_html(`<span${_attr_class([
|
|
11448
|
-
"
|
|
11452
|
+
"_hL",
|
|
11449
11453
|
input.class,
|
|
11450
|
-
{ ["
|
|
11454
|
+
{ ["_hM"]: agent.stale_seconds != null }
|
|
11451
11455
|
])} role=img${_attr("aria-label", `Plan usage: ${summary}`)}${agent.stale_seconds != null ? _attr("title", `${summary} — ${agent.note || "provider unreachable"}; last cached numbers`) : _attr("title", summary)}>`);
|
|
11452
11456
|
_for_of(windows, (win) => {
|
|
11453
11457
|
const $scope2_id = _scope_id();
|
|
11454
|
-
_html(`<span${_attr_class(["
|
|
11458
|
+
_html(`<span${_attr_class(["_hN", win.used_percent >= 90 ? "_hR" : win.used_percent >= 70 ? "_hQ" : win.used_percent >= 40 ? "_hP" : "_hO"])}${_attr_style(`--pct:${Math.max(2, Math.min(100, win.used_percent))}%`)}></span>${_el_resume($scope2_id, "a", $sg__input_agent)}`);
|
|
11455
11459
|
$si__input_agent && writeScope($scope2_id, {});
|
|
11456
11460
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
11457
11461
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -11483,7 +11487,7 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11483
11487
|
const plan = openSess ? usageFor$1(openSess.agent, usage) : null;
|
|
11484
11488
|
const all = usage?.agents || [];
|
|
11485
11489
|
const peak = Math.max(0, ...(plan?.windows || []).map((w) => w.used_percent));
|
|
11486
|
-
const ringTone = _resume((pct) => pct >= 90 ? "
|
|
11490
|
+
const ringTone = _resume((pct) => pct >= 90 ? "_eZ" : pct >= 70 ? "_eY" : pct >= 40 ? "_eX" : "_eW", "r0");
|
|
11487
11491
|
let card$2 = null;
|
|
11488
11492
|
const showCard = _resume((el) => {
|
|
11489
11493
|
const r = el.getBoundingClientRect();
|
|
@@ -11495,18 +11499,18 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11495
11499
|
_if(() => {
|
|
11496
11500
|
if (plan) {
|
|
11497
11501
|
const $scope1_id = _scope_id();
|
|
11498
|
-
_html(`<span${_attr_class("
|
|
11502
|
+
_html(`<span${_attr_class("_eQ")} tabindex=0>`);
|
|
11499
11503
|
_set_serialize_reason(1);
|
|
11500
11504
|
const $childScope = _peek_scope_id();
|
|
11501
11505
|
usage_bars_default({
|
|
11502
|
-
class: "
|
|
11506
|
+
class: "_eS",
|
|
11503
11507
|
agent: plan
|
|
11504
11508
|
});
|
|
11505
|
-
_html(`<svg${_attr_class(["
|
|
11509
|
+
_html(`<svg${_attr_class(["_eT", ringTone(peak)])} viewBox="0 0 16 16" width=16 height=16 aria-hidden=true><circle${_attr_class("_eU")} cx=8 cy=8 r=6.5></circle><circle${_attr_class("_eV")} cx=8 cy=8 r=6.5${_attr_style(`stroke-dasharray:${Math.max(2, Math.min(100, peak)) / 100 * 40.84} 40.84`)}></circle>${_el_resume($scope1_id, "e")}</svg>${_el_resume($scope1_id, "c")}</span>${_el_resume($scope1_id, "a")}`);
|
|
11506
11510
|
_if(() => {
|
|
11507
11511
|
if (card$2) {
|
|
11508
11512
|
const $scope2_id = _scope_id();
|
|
11509
|
-
_html(`<div${_attr_class(["_9", "
|
|
11513
|
+
_html(`<div${_attr_class(["_9", "_eR"])}${_attr_style(`left:${card$2.left}px;bottom:${card$2.bottom}px`)} role=tooltip>`);
|
|
11510
11514
|
_for_of(all, (a) => {
|
|
11511
11515
|
const $scope3_id = _scope_id();
|
|
11512
11516
|
_set_serialize_reason(6);
|
|
@@ -11603,14 +11607,14 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11603
11607
|
const backHref = ws ? `/w/${ws.id}` : "/new";
|
|
11604
11608
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11605
11609
|
const pageIds = orderedIds.filter((id) => id !== ws?.id);
|
|
11606
|
-
_html(`<aside${_attr_class(["
|
|
11607
|
-
["
|
|
11608
|
-
["
|
|
11610
|
+
_html(`<aside${_attr_class(["_cd", {
|
|
11611
|
+
["_cb"]: !navOpen,
|
|
11612
|
+
["_cc"]: isPage
|
|
11609
11613
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11610
11614
|
_if(() => {
|
|
11611
11615
|
if (isPage) {
|
|
11612
11616
|
const $scope1_id = _scope_id();
|
|
11613
|
-
_html(`<div${_attr_class("
|
|
11617
|
+
_html(`<div${_attr_class("_cg")}>`);
|
|
11614
11618
|
_set_serialize_reason({
|
|
11615
11619
|
3: $sg__input_instanceName,
|
|
11616
11620
|
6: $sg__input_instanceName
|
|
@@ -11619,7 +11623,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11619
11623
|
if (input.instanceName) $meta = attrTag({ content: _content_resume("E8", () => {
|
|
11620
11624
|
_scope_reason();
|
|
11621
11625
|
const $scope2_id = _scope_id();
|
|
11622
|
-
_html(`<span${_attr_class("
|
|
11626
|
+
_html(`<span${_attr_class("_ch")} title="This work server (Settings → Appearance)"><img${_attr_class("_ck")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}${_text_resume($scope2_id, "c", input.instanceName, $sg__input_instanceName)}</span>`);
|
|
11623
11627
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11624
11628
|
_resume_branch($scope2_id);
|
|
11625
11629
|
}, $scope1_id) });
|
|
@@ -11634,7 +11638,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11634
11638
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11635
11639
|
iconBtnRow,
|
|
11636
11640
|
iconBtn,
|
|
11637
|
-
{ ["
|
|
11641
|
+
{ ["_b9"]: view === "settings" }
|
|
11638
11642
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11639
11643
|
icon_settings_default({ size: 16 });
|
|
11640
11644
|
_if(() => {
|
|
@@ -11658,7 +11662,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11658
11662
|
_if(() => {
|
|
11659
11663
|
if (!isPage && input.instanceName) {
|
|
11660
11664
|
const $scope4_id = _scope_id();
|
|
11661
|
-
_html(`<div${_attr_class("
|
|
11665
|
+
_html(`<div${_attr_class("_cj")} title="This work server (Settings → Appearance)"><img${_attr_class("_ck")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope4_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_cl")}>${_text_resume($scope4_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11662
11666
|
writeScope($scope4_id, {});
|
|
11663
11667
|
return 0;
|
|
11664
11668
|
}
|
|
@@ -11726,7 +11730,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11726
11730
|
b: _serialize_if($scope0_reason, 21) && _existing_scope($childScope3)
|
|
11727
11731
|
});
|
|
11728
11732
|
}, (a) => a, $scope6_id, "a", $sg__input_agents, 1, $sg__input_workspace__OR__input_allWorkspaces__OR__input_agents, "</div>", 1);
|
|
11729
|
-
_html(`<div${_attr_class("
|
|
11733
|
+
_html(`<div${_attr_class("_cm")}>`);
|
|
11730
11734
|
_for_of(orderedIds, (wsId) => {
|
|
11731
11735
|
const $scope8_id = _scope_id();
|
|
11732
11736
|
_set_serialize_reason({
|
|
@@ -11803,7 +11807,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11803
11807
|
_if(() => {
|
|
11804
11808
|
if (!navOpen) {
|
|
11805
11809
|
const $scope9_id = _scope_id();
|
|
11806
|
-
_html(`<div${_attr_class("
|
|
11810
|
+
_html(`<div${_attr_class("_cn")}>`);
|
|
11807
11811
|
_for_of(orderedIds, (wsId, i) => {
|
|
11808
11812
|
const $scope10_id = _scope_id();
|
|
11809
11813
|
_set_serialize_reason({
|
|
@@ -11851,14 +11855,14 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11851
11855
|
return 0;
|
|
11852
11856
|
}
|
|
11853
11857
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
11854
|
-
_html(`<div${_attr_class("
|
|
11858
|
+
_html(`<div${_attr_class("_co")}>`);
|
|
11855
11859
|
_if(() => {
|
|
11856
11860
|
if (isPage) {
|
|
11857
11861
|
const $scope12_id = _scope_id();
|
|
11858
11862
|
_html(`<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([
|
|
11859
11863
|
"_q",
|
|
11860
11864
|
btnLg,
|
|
11861
|
-
"
|
|
11865
|
+
"_ci"
|
|
11862
11866
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11863
11867
|
icon_folder_plus_default({ size: 16 });
|
|
11864
11868
|
_html(` New workspace</a>${_el_resume($scope12_id, "a")}`);
|
|
@@ -11890,9 +11894,9 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11890
11894
|
sessions: input.sessions,
|
|
11891
11895
|
tab: view === "term" ? tab : null
|
|
11892
11896
|
});
|
|
11893
|
-
_html(`<div${_attr_class(["_z", "
|
|
11897
|
+
_html(`<div${_attr_class(["_z", "_cp"])}></div>`);
|
|
11894
11898
|
_if(() => {}, $scope11_id, "d", 1, 1, 1, 0, 1);
|
|
11895
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
11899
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_b9"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11896
11900
|
icon_settings_default({});
|
|
11897
11901
|
_if(() => {
|
|
11898
11902
|
if (input.setupReady === false) {
|
|
@@ -11902,7 +11906,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11902
11906
|
return 0;
|
|
11903
11907
|
}
|
|
11904
11908
|
}, $scope11_id, "g", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11905
|
-
_html(`</a>${_el_resume($scope11_id, "e")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
11909
|
+
_html(`</a>${_el_resume($scope11_id, "e")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_b9"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11906
11910
|
icon_folder_plus_default({ size: 16 });
|
|
11907
11911
|
_html(`</a>${_el_resume($scope11_id, "h")}`);
|
|
11908
11912
|
_script($scope11_id, "E13");
|
|
@@ -12923,6 +12927,67 @@ function markdownFence(body) {
|
|
|
12923
12927
|
function indent(text) {
|
|
12924
12928
|
return text.split("\n").map((line) => line ? ` ${line}` : line).join("\n");
|
|
12925
12929
|
}
|
|
12930
|
+
//#endregion
|
|
12931
|
+
//#region src/client/branch-label.ts
|
|
12932
|
+
/** Fallback label for a workspace branch when the workspace name is not to
|
|
12933
|
+
* hand: `alice-laptop-checkout-4f1hei` → `alice-laptop-checkout`.
|
|
12934
|
+
*
|
|
12935
|
+
* Deliberately only drops the trailing id. The branch is
|
|
12936
|
+
* `{user}-{host}-{slug}-{id}` (server/config.ts `branchPrefix`), and both
|
|
12937
|
+
* user and host are arbitrary — the host is this machine's hostname, so the
|
|
12938
|
+
* `ws-` that used to be matched here was one developer's laptop leaking into
|
|
12939
|
+
* a parser. Callers that know the workspace name should pass it instead. */
|
|
12940
|
+
function shortWorkspaceName(wsBranch) {
|
|
12941
|
+
const name = wsBranch.replace(/^origin\//, "");
|
|
12942
|
+
return dropRandomId(name.includes("/") ? name.slice(name.lastIndexOf("/") + 1) : name);
|
|
12943
|
+
}
|
|
12944
|
+
/** Strip a trailing `-<id>` segment (workspaces.ts:
|
|
12945
|
+
* `Math.random().toString(36).slice(2, 8)`), keeping the input when that
|
|
12946
|
+
* would leave nothing. */
|
|
12947
|
+
function dropRandomId(slug) {
|
|
12948
|
+
return slug.replace(/-[a-z0-9]{1,6}$/i, "") || slug;
|
|
12949
|
+
}
|
|
12950
|
+
/** Topic suffix when `head` is a `-topic` lane under the workspace branch. */
|
|
12951
|
+
function topicLane(head, wsBranch) {
|
|
12952
|
+
if (!wsBranch) return "";
|
|
12953
|
+
const h = head.replace(/^origin\//, "");
|
|
12954
|
+
const ws = wsBranch.replace(/^origin\//, "");
|
|
12955
|
+
if (h.startsWith(`${ws}-`)) return h.slice(ws.length + 1);
|
|
12956
|
+
return "";
|
|
12957
|
+
}
|
|
12958
|
+
function shortHeadFallback(head) {
|
|
12959
|
+
const short = dropRandomId(head);
|
|
12960
|
+
if (short.length <= 20) return short;
|
|
12961
|
+
const parts = short.split("-");
|
|
12962
|
+
return parts.length > 1 ? parts[parts.length - 1] : short;
|
|
12963
|
+
}
|
|
12964
|
+
/**
|
|
12965
|
+
* Review compare parts: render as `main` → `work` `[topic]`, not one chip.
|
|
12966
|
+
*/
|
|
12967
|
+
function reviewCompareLabel(base, head, wsBranch = "", wsName = "") {
|
|
12968
|
+
const baseName = (base || "base").replace(/^origin\//, "");
|
|
12969
|
+
const headName = (head || "HEAD").replace(/^origin\//, "");
|
|
12970
|
+
const ws = (wsBranch || "").replace(/^origin\//, "");
|
|
12971
|
+
const onWs = !!ws && (headName === ws || headName.startsWith(`${ws}-`));
|
|
12972
|
+
return {
|
|
12973
|
+
base: baseName,
|
|
12974
|
+
head: onWs ? wsName || shortWorkspaceName(ws) : shortHeadFallback(headName),
|
|
12975
|
+
topic: onWs ? topicLane(headName, ws) : "",
|
|
12976
|
+
title: headName === baseName ? baseName : `${headName} vs ${baseName}`
|
|
12977
|
+
};
|
|
12978
|
+
}
|
|
12979
|
+
/** Short label for "local …" chips (workspace name, plus [topic] if any). */
|
|
12980
|
+
function shortBranch(name, wsBranch = "", wsName = "") {
|
|
12981
|
+
const head = name.replace(/^origin\//, "");
|
|
12982
|
+
if (!head || head === "HEAD") return head || "HEAD";
|
|
12983
|
+
const ws = wsBranch.replace(/^origin\//, "");
|
|
12984
|
+
if (ws && (head === ws || head.startsWith(`${ws}-`))) {
|
|
12985
|
+
const work = wsName || shortWorkspaceName(ws);
|
|
12986
|
+
const topic = topicLane(head, ws);
|
|
12987
|
+
return topic ? `${work} [${topic}]` : work;
|
|
12988
|
+
}
|
|
12989
|
+
return shortHeadFallback(head);
|
|
12990
|
+
}
|
|
12926
12991
|
var treeToggle = "_go _4 _l";
|
|
12927
12992
|
var pageTitle = "_gv _ej";
|
|
12928
12993
|
//#endregion
|
|
@@ -12934,7 +12999,7 @@ var diff_send_default = _template("k", (input) => {
|
|
|
12934
12999
|
let sendTarget = null;
|
|
12935
13000
|
const sessions = input.sessions || [];
|
|
12936
13001
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
12937
|
-
_html(`<span${_attr_class("
|
|
13002
|
+
_html(`<span${_attr_class("_iy")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
12938
13003
|
_if(() => {
|
|
12939
13004
|
if (sessions.length === 1) {
|
|
12940
13005
|
const $scope1_id = _scope_id();
|
|
@@ -12944,11 +13009,11 @@ var diff_send_default = _template("k", (input) => {
|
|
|
12944
13009
|
return 0;
|
|
12945
13010
|
} else if (sessions.length) {
|
|
12946
13011
|
const $scope2_id = _scope_id();
|
|
12947
|
-
_html(`<span${_attr_class("
|
|
13012
|
+
_html(`<span${_attr_class("_iz")}><button type=button${_attr_class(["_r", "_iA"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
12948
13013
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
12949
13014
|
sendTarget = _new_sendTarget;
|
|
12950
13015
|
}, "k0", $scope2_id), () => {
|
|
12951
|
-
_html(`<select${_attr_class("
|
|
13016
|
+
_html(`<select${_attr_class("_iB")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
12952
13017
|
_for_of(sessions, (s) => {
|
|
12953
13018
|
const $scope3_id = _scope_id();
|
|
12954
13019
|
_html(`<option${_attr_option_value(s.id)}>${_text_resume($scope3_id, "b", s.title || s.agent, $sg__input_sessions)}</option>${_el_resume($scope3_id, "a", $sg__input_sessions)}`);
|
|
@@ -12975,8 +13040,8 @@ var diff_send_default = _template("k", (input) => {
|
|
|
12975
13040
|
});
|
|
12976
13041
|
_resume_branch($scope0_id);
|
|
12977
13042
|
});
|
|
12978
|
-
var findInput = "
|
|
12979
|
-
var findIconBtn = "
|
|
13043
|
+
var findInput = "_eE _n";
|
|
13044
|
+
var findIconBtn = "_eH _l";
|
|
12980
13045
|
//#endregion
|
|
12981
13046
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
12982
13047
|
var icon_arrow_down_default = _template("R", (input) => {
|
|
@@ -13068,18 +13133,18 @@ var diff_find_default = _template("j", (input) => {
|
|
|
13068
13133
|
}, 0);
|
|
13069
13134
|
}, "j0", $scope0_id);
|
|
13070
13135
|
_html(`<div${_attr_class([
|
|
13071
|
-
"
|
|
13072
|
-
input.keybar && "
|
|
13073
|
-
!open && "
|
|
13074
|
-
])} aria-hidden=${open ? "false" : "true"}><span${_attr_class("
|
|
13136
|
+
"_eC",
|
|
13137
|
+
input.keybar && "_eL",
|
|
13138
|
+
!open && "_eB"
|
|
13139
|
+
])} aria-hidden=${open ? "false" : "true"}><span${_attr_class("_eD")} aria-hidden=true>`);
|
|
13075
13140
|
icon_search_default({ size: 13 });
|
|
13076
13141
|
_html(`</span><input${_attr_input_value($scope0_id, "d", query || "", _resume(function(v) {
|
|
13077
13142
|
type(v);
|
|
13078
|
-
}, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "
|
|
13143
|
+
}, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "_eN"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "d")}<span${_attr_class("_eG")}>${_text_resume($scope0_id, "f", open && (query || "").trim() ? hits.length ? `${at + 1}/${hits.length}` : "0/0" : "")}</span><button type=button${_attr_class([findIconBtn, input.keybar && "_eO"])} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13079
13144
|
icon_arrow_up_default({ size: 14 });
|
|
13080
|
-
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "
|
|
13145
|
+
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "_eO"])} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13081
13146
|
icon_arrow_down_default({ size: 14 });
|
|
13082
|
-
_html(`</button>${_el_resume($scope0_id, "i")}<button type=button${_attr_class([findIconBtn, input.keybar && "
|
|
13147
|
+
_html(`</button>${_el_resume($scope0_id, "i")}<button type=button${_attr_class([findIconBtn, input.keybar && "_eO"])} title="Close find"${_attr("hidden", input.pinned)} tabindex=${open ? "0" : "-1"}>`);
|
|
13083
13148
|
icon_xmark_default({ size: 14 });
|
|
13084
13149
|
_html(`</button>${_el_resume($scope0_id, "k")}</div>${_el_resume($scope0_id, "a")}`);
|
|
13085
13150
|
const $return = focusInput;
|
|
@@ -13118,77 +13183,20 @@ var diff_find_default = _template("j", (input) => {
|
|
|
13118
13183
|
_resume_branch($scope0_id);
|
|
13119
13184
|
return $return;
|
|
13120
13185
|
});
|
|
13121
|
-
var worktree = "
|
|
13122
|
-
|
|
13123
|
-
//#region src/client/branch-label.ts
|
|
13124
|
-
/** Fallback label for a workspace branch when the workspace name is not to
|
|
13125
|
-
* hand: `alice-laptop-checkout-4f1hei` → `alice-laptop-checkout`.
|
|
13126
|
-
*
|
|
13127
|
-
* Deliberately only drops the trailing id. The branch is
|
|
13128
|
-
* `{user}-{host}-{slug}-{id}` (server/config.ts `branchPrefix`), and both
|
|
13129
|
-
* user and host are arbitrary — the host is this machine's hostname, so the
|
|
13130
|
-
* `ws-` that used to be matched here was one developer's laptop leaking into
|
|
13131
|
-
* a parser. Callers that know the workspace name should pass it instead. */
|
|
13132
|
-
function shortWorkspaceName(wsBranch) {
|
|
13133
|
-
const name = wsBranch.replace(/^origin\//, "");
|
|
13134
|
-
return dropRandomId(name.includes("/") ? name.slice(name.lastIndexOf("/") + 1) : name);
|
|
13135
|
-
}
|
|
13136
|
-
/** Strip a trailing `-<id>` segment (workspaces.ts:
|
|
13137
|
-
* `Math.random().toString(36).slice(2, 8)`), keeping the input when that
|
|
13138
|
-
* would leave nothing. */
|
|
13139
|
-
function dropRandomId(slug) {
|
|
13140
|
-
return slug.replace(/-[a-z0-9]{1,6}$/i, "") || slug;
|
|
13141
|
-
}
|
|
13142
|
-
/** Topic suffix when `head` is a `-topic` lane under the workspace branch. */
|
|
13143
|
-
function topicLane(head, wsBranch) {
|
|
13144
|
-
if (!wsBranch) return "";
|
|
13145
|
-
const h = head.replace(/^origin\//, "");
|
|
13146
|
-
const ws = wsBranch.replace(/^origin\//, "");
|
|
13147
|
-
if (h.startsWith(`${ws}-`)) return h.slice(ws.length + 1);
|
|
13148
|
-
return "";
|
|
13149
|
-
}
|
|
13150
|
-
function shortHeadFallback(head) {
|
|
13151
|
-
const short = dropRandomId(head);
|
|
13152
|
-
if (short.length <= 20) return short;
|
|
13153
|
-
const parts = short.split("-");
|
|
13154
|
-
return parts.length > 1 ? parts[parts.length - 1] : short;
|
|
13155
|
-
}
|
|
13156
|
-
/**
|
|
13157
|
-
* Review compare parts: render as `main` → `work` `[topic]`, not one chip.
|
|
13158
|
-
*/
|
|
13159
|
-
function reviewCompareLabel(base, head, wsBranch = "", wsName = "") {
|
|
13160
|
-
const baseName = (base || "base").replace(/^origin\//, "");
|
|
13161
|
-
const headName = (head || "HEAD").replace(/^origin\//, "");
|
|
13162
|
-
const ws = (wsBranch || "").replace(/^origin\//, "");
|
|
13163
|
-
const onWs = !!ws && (headName === ws || headName.startsWith(`${ws}-`));
|
|
13164
|
-
return {
|
|
13165
|
-
base: baseName,
|
|
13166
|
-
head: onWs ? wsName || shortWorkspaceName(ws) : shortHeadFallback(headName),
|
|
13167
|
-
topic: onWs ? topicLane(headName, ws) : "",
|
|
13168
|
-
title: headName === baseName ? baseName : `${headName} vs ${baseName}`
|
|
13169
|
-
};
|
|
13170
|
-
}
|
|
13171
|
-
/** Short label for "local …" chips (workspace name, plus [topic] if any). */
|
|
13172
|
-
function shortBranch(name, wsBranch = "", wsName = "") {
|
|
13173
|
-
const head = name.replace(/^origin\//, "");
|
|
13174
|
-
if (!head || head === "HEAD") return head || "HEAD";
|
|
13175
|
-
const ws = wsBranch.replace(/^origin\//, "");
|
|
13176
|
-
if (ws && (head === ws || head.startsWith(`${ws}-`))) {
|
|
13177
|
-
const work = wsName || shortWorkspaceName(ws);
|
|
13178
|
-
const topic = topicLane(head, ws);
|
|
13179
|
-
return topic ? `${work} [${topic}]` : work;
|
|
13180
|
-
}
|
|
13181
|
-
return shortHeadFallback(head);
|
|
13182
|
-
}
|
|
13183
|
-
var repoTitle = "_jx _x";
|
|
13186
|
+
var worktree = "_i9 _y";
|
|
13187
|
+
var repoTitle = "_jA _x";
|
|
13184
13188
|
//#endregion
|
|
13185
13189
|
//#region src/tags/review-head.marko
|
|
13186
13190
|
var review_head_default = _template("x", (input) => {
|
|
13187
|
-
const $scope0_reason = _scope_reason(), $sg__input_repo = _serialize_guard($scope0_reason,
|
|
13191
|
+
const $scope0_reason = _scope_reason(), $sg__input_repo = _serialize_guard($scope0_reason, 11), $si__input_repo = _serialize_if($scope0_reason, 11), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName = _serialize_guard($scope0_reason, 5), $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName = _serialize_if($scope0_reason, 5), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew = _serialize_guard($scope0_reason, 10), $sg__input_repo__OR__input_fileCount = _serialize_guard($scope0_reason, 1), $sg__input_fileCount = _serialize_guard($scope0_reason, 12), $sg__input_additions__OR__input_deletions = _serialize_guard($scope0_reason, 3), $sg__input_hiddenCount = _serialize_guard($scope0_reason, 16), $sg__input_newCount__OR__input_onlyNew = _serialize_guard($scope0_reason, 4), $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers = _serialize_if($scope0_reason, 8), $si__input_additions__OR__input_deletions = _serialize_if($scope0_reason, 3), $si__input_newCount__OR__input_onlyNew = _serialize_if($scope0_reason, 4), $si__input_repo__OR__input_fileCount = _serialize_if($scope0_reason, 1);
|
|
13188
13192
|
const $scope0_id = _scope_id();
|
|
13193
|
+
const $compare_topic__closures = /* @__PURE__ */ new Set();
|
|
13189
13194
|
const repo = input.repo;
|
|
13190
13195
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
13191
|
-
|
|
13196
|
+
const baseRef = (repo.pr?.baseRefName || repo.base).replace(/^origin\//, "");
|
|
13197
|
+
const headRef = (repo.pr?.headRefName || repo.branch).replace(/^origin\//, "");
|
|
13198
|
+
const unusual = !!compare$1.topic || !!input.workspaceBranch && headRef !== input.workspaceBranch || !!repo.default_branch && baseRef !== repo.default_branch;
|
|
13199
|
+
_html(`<div${_attr_class("_ju")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}>`);
|
|
13192
13200
|
_if(() => {
|
|
13193
13201
|
if (repo.pr) {
|
|
13194
13202
|
const $scope6_id = _scope_id();
|
|
@@ -13197,125 +13205,139 @@ var review_head_default = _template("x", (input) => {
|
|
|
13197
13205
|
return 0;
|
|
13198
13206
|
} else {
|
|
13199
13207
|
const $scope7_id = _scope_id();
|
|
13200
|
-
_html(`<span${_attr_class([repoTitle, "
|
|
13208
|
+
_html(`<span${_attr_class([repoTitle, "_jB"])}>${_text_resume($scope7_id, "b", repoLabel$1(repo.full_name), $sg__input_repo)}</span>`);
|
|
13201
13209
|
$si__input_repo && writeScope($scope7_id, { _: _scope_with_id($scope0_id) });
|
|
13202
13210
|
return 1;
|
|
13203
13211
|
}
|
|
13204
13212
|
}, $scope0_id, "b", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew);
|
|
13205
|
-
_html(`<span${_attr_class("_jz")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_jA"])}>${_text_resume($scope0_id, "e", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_jC"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_jB"])}>${_text_resume($scope0_id, "h", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13206
13213
|
_if(() => {
|
|
13207
|
-
if (
|
|
13208
|
-
const $
|
|
13209
|
-
_html(`<span${_attr_class([
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
|
|
13214
|
+
if (unusual) {
|
|
13215
|
+
const $scope8_id = _scope_id();
|
|
13216
|
+
_html(`<span${_attr_class("_jC")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_jD"])}>${_text_resume($scope8_id, "c", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_jF"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_jE"])}>${_text_resume($scope8_id, "f", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13217
|
+
_if(() => {
|
|
13218
|
+
if (compare$1.topic) {
|
|
13219
|
+
const $scope11_id = _scope_id();
|
|
13220
|
+
_html(`<span${_attr_class([
|
|
13221
|
+
"_N",
|
|
13222
|
+
tone.accent,
|
|
13223
|
+
"_jG"
|
|
13224
|
+
])}>${_text_resume($scope11_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13225
|
+
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _subscribe($compare_topic__closures, writeScope($scope11_id, { _: _scope_with_id($scope8_id) }));
|
|
13226
|
+
return 0;
|
|
13227
|
+
}
|
|
13228
|
+
}, $scope8_id, "g", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName, 0, 1);
|
|
13229
|
+
_html(`</span>${_el_resume($scope8_id, "a", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}`);
|
|
13230
|
+
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope8_id, { _: _scope_with_id($scope0_id) });
|
|
13215
13231
|
return 0;
|
|
13216
13232
|
}
|
|
13217
|
-
}, $scope0_id, "
|
|
13218
|
-
_html(`</span>${_el_resume($scope0_id, "c", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}`);
|
|
13233
|
+
}, $scope0_id, "c", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew, 0, 1);
|
|
13219
13234
|
_if(() => {
|
|
13220
13235
|
if (repo.rev) {
|
|
13221
|
-
const $
|
|
13222
|
-
_html(`<span${_attr_class(["_N", "
|
|
13223
|
-
$si__input_repo && writeScope($
|
|
13236
|
+
const $scope9_id = _scope_id();
|
|
13237
|
+
_html(`<span${_attr_class(["_N", "_jH"])} title="One commit against its parent">commit ${_text_resume($scope9_id, "b", shortSha(repo.rev, 7), $sg__input_repo * 2)}</span>`);
|
|
13238
|
+
$si__input_repo && writeScope($scope9_id, { _: _scope_with_id($scope0_id) });
|
|
13224
13239
|
return 0;
|
|
13225
13240
|
}
|
|
13226
|
-
}, $scope0_id, "
|
|
13241
|
+
}, $scope0_id, "d", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew, 0, 1);
|
|
13227
13242
|
_if(() => {
|
|
13228
13243
|
if (repo.githubDrift) {
|
|
13229
13244
|
const $scope1_id = _scope_id();
|
|
13230
13245
|
_html(`<button type=button${_attr_class([
|
|
13231
13246
|
"_N",
|
|
13232
13247
|
tone.warn,
|
|
13233
|
-
"
|
|
13248
|
+
"_jH"
|
|
13234
13249
|
])}${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}. Reload to re-ask GitHub`)}${_attr("disabled", input.loading)}>behind GitHub ${_text_resume($scope1_id, "b", shortSha(repo.head, 7), $sg__input_repo * 2)} → ${_text_resume($scope1_id, "c", shortSha(repo.pr.headRefOid, 7), $sg__input_repo * 2)}</button>${_el_resume($scope1_id, "a")}`);
|
|
13235
13250
|
_script($scope1_id, "x0");
|
|
13236
13251
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
13237
13252
|
return 0;
|
|
13238
13253
|
}
|
|
13239
|
-
}, $scope0_id, "
|
|
13254
|
+
}, $scope0_id, "e", _serialize_guard($scope0_reason, 0), $sg__input_repo, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew, 0, 1);
|
|
13240
13255
|
_if(() => {
|
|
13241
13256
|
if (repo.contained && input.fileCount) {
|
|
13242
|
-
const $
|
|
13243
|
-
_html(`<span${_attr_class(["_N", "
|
|
13244
|
-
$si__input_repo__OR__input_fileCount && writeScope($
|
|
13257
|
+
const $scope10_id = _scope_id();
|
|
13258
|
+
_html(`<span${_attr_class(["_N", "_jH"])}${_attr("title", `${repo.pr ? `#${repo.pr.number}` : repo.branch} is already in ${repo.base}; showing the working tree only`)}>already in ${_text_resume($scope10_id, "b", repo.base, $sg__input_repo * 2)}</span>${_el_resume($scope10_id, "a", $sg__input_repo)}`);
|
|
13259
|
+
$si__input_repo__OR__input_fileCount && writeScope($scope10_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
13245
13260
|
return 0;
|
|
13246
13261
|
}
|
|
13247
|
-
}, $scope0_id, "
|
|
13262
|
+
}, $scope0_id, "f", $sg__input_repo__OR__input_fileCount, $sg__input_repo__OR__input_fileCount, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew, 0, 1);
|
|
13248
13263
|
_if(() => {
|
|
13249
13264
|
if (input.localDiffers) {
|
|
13250
13265
|
const $scope2_id = _scope_id();
|
|
13251
|
-
_html(`<span${_attr_class(["_N", "
|
|
13266
|
+
_html(`<span${_attr_class(["_N", "_jH"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope2_id, "b", shortBranch(repo.branch, input.workspaceBranch, input.workspaceName), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}${_text_resume($scope2_id, "c", shortSha(repo.localHead, 7), $sg__input_repo * 2)}</span>${_el_resume($scope2_id, "a", $sg__input_repo)}`);
|
|
13252
13267
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && writeScope($scope2_id, { _: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _scope_with_id($scope0_id) });
|
|
13253
13268
|
return 0;
|
|
13254
13269
|
}
|
|
13255
|
-
}, $scope0_id, "
|
|
13256
|
-
_html(`<span${_attr_class("
|
|
13270
|
+
}, $scope0_id, "g", _serialize_guard($scope0_reason, 8), _serialize_guard($scope0_reason, 13), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew, 0, 1);
|
|
13271
|
+
_html(`<span${_attr_class("_jv")}><span>${_text_resume($scope0_id, "i", input.fileCount, $sg__input_fileCount)} file${_text_resume($scope0_id, "j", input.fileCount === 1 ? "" : "s", $sg__input_fileCount * 2)}</span>`);
|
|
13257
13272
|
_if(() => {
|
|
13258
13273
|
if (input.additions || input.deletions) {
|
|
13259
13274
|
const $scope3_id = _scope_id();
|
|
13260
|
-
_html(`<span${_attr_class("
|
|
13275
|
+
_html(`<span${_attr_class("_jw")}>+${_text_resume($scope3_id, "b", input.additions, _serialize_guard($scope0_reason, 14) * 2)}</span><span${_attr_class("_jx")}>−${_text_resume($scope3_id, "d", input.deletions, _serialize_guard($scope0_reason, 15) * 2)}</span>`);
|
|
13261
13276
|
$si__input_additions__OR__input_deletions && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
13262
13277
|
return 0;
|
|
13263
13278
|
}
|
|
13264
|
-
}, $scope0_id, "
|
|
13279
|
+
}, $scope0_id, "k", $sg__input_additions__OR__input_deletions, $sg__input_additions__OR__input_deletions, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew);
|
|
13265
13280
|
_if(() => {
|
|
13266
13281
|
if (input.hiddenCount) {
|
|
13267
13282
|
const $scope4_id = _scope_id();
|
|
13268
|
-
_html(`<button type=button${_attr_class("
|
|
13283
|
+
_html(`<button type=button${_attr_class("_jz")} title="Filtered out of the list — show every file">${_text_resume($scope4_id, "b", input.hiddenCount, $sg__input_hiddenCount)} hidden</button>${_el_resume($scope4_id, "a")}`);
|
|
13269
13284
|
_script($scope4_id, "x1");
|
|
13270
13285
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
13271
13286
|
return 0;
|
|
13272
13287
|
}
|
|
13273
|
-
}, $scope0_id, "
|
|
13288
|
+
}, $scope0_id, "l", $sg__input_hiddenCount, $sg__input_hiddenCount, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew, 0, 1);
|
|
13274
13289
|
_if(() => {
|
|
13275
13290
|
if (input.newCount || input.onlyNew) {
|
|
13276
13291
|
const $scope5_id = _scope_id();
|
|
13277
|
-
_html(`<button type=button${_attr_class(["
|
|
13292
|
+
_html(`<button type=button${_attr_class(["_jz", { ["_jy"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope5_id, "b", input.newCount, _serialize_guard($scope0_reason, 17))} new</button>${_el_resume($scope5_id, "a")}`);
|
|
13278
13293
|
_script($scope5_id, "x2");
|
|
13279
13294
|
writeScope($scope5_id, { _: _scope_with_id($scope0_id) });
|
|
13280
13295
|
return 0;
|
|
13281
13296
|
}
|
|
13282
|
-
}, $scope0_id, "
|
|
13297
|
+
}, $scope0_id, "m", $sg__input_newCount__OR__input_onlyNew, $sg__input_newCount__OR__input_onlyNew, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew, 0, 1);
|
|
13283
13298
|
_html(`</span></div>${_el_resume($scope0_id, "a", $sg__input_repo)}`);
|
|
13284
13299
|
writeScope($scope0_id, {
|
|
13285
|
-
|
|
13286
|
-
|
|
13287
|
-
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
|
|
13292
|
-
|
|
13293
|
-
|
|
13294
|
-
|
|
13295
|
-
|
|
13296
|
-
|
|
13297
|
-
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
|
|
13301
|
-
|
|
13302
|
-
|
|
13303
|
-
|
|
13304
|
-
|
|
13305
|
-
|
|
13306
|
-
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13311
|
-
|
|
13312
|
-
|
|
13300
|
+
q: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && input.workspaceBranch,
|
|
13301
|
+
r: _serialize_if($scope0_reason, 6) && input.workspaceName,
|
|
13302
|
+
s: $si__input_repo && input.loading,
|
|
13303
|
+
t: input.onReload,
|
|
13304
|
+
u: $si__input_repo && input.fileCount,
|
|
13305
|
+
w: $si__input_additions__OR__input_deletions && input.additions,
|
|
13306
|
+
x: $si__input_additions__OR__input_deletions && input.deletions,
|
|
13307
|
+
z: _serialize_if($scope0_reason, 16) && input.hiddenCount,
|
|
13308
|
+
a0: input.onShowHidden,
|
|
13309
|
+
a1: $si__input_newCount__OR__input_onlyNew && input.newCount,
|
|
13310
|
+
a2: $si__input_newCount__OR__input_onlyNew && input.onlyNew,
|
|
13311
|
+
a4: input.onToggleNew,
|
|
13312
|
+
a6: $si__input_repo__OR__input_fileCount && repo?.pr,
|
|
13313
|
+
a7: _serialize_if($scope0_reason, 2) && repo?.pr?.baseRefName,
|
|
13314
|
+
a8: _serialize_if($scope0_reason, 7) && repo?.base,
|
|
13315
|
+
a9: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && repo?.pr?.headRefName,
|
|
13316
|
+
aa: _serialize_if($scope0_reason, 9) && repo?.branch,
|
|
13317
|
+
ac: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && repo?.default_branch,
|
|
13318
|
+
ae: $si__input_repo && repo?.pr?.number,
|
|
13319
|
+
af: $si__input_repo && repo?.pr?.url,
|
|
13320
|
+
ag: $si__input_repo && repo?.pr?.title,
|
|
13321
|
+
ah: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && repo?.head,
|
|
13322
|
+
ai: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && repo?.baseSha,
|
|
13323
|
+
aj: $si__input_repo && repo?.full_name,
|
|
13324
|
+
ak: $si__input_repo && repo?.rev,
|
|
13325
|
+
am: $si__input_repo && repo?.pr?.headRefOid,
|
|
13326
|
+
an: _serialize_if($scope0_reason, 12) && repo?.contained,
|
|
13327
|
+
ap: _serialize_if($scope0_reason, 13) && repo?.localHead,
|
|
13328
|
+
ar: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && compare$1?.topic,
|
|
13329
|
+
as: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && compare$1?.title,
|
|
13330
|
+
at: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && compare$1?.base,
|
|
13331
|
+
au: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && compare$1?.head,
|
|
13332
|
+
av: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && baseRef,
|
|
13333
|
+
aw: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && headRef,
|
|
13334
|
+
bk: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && $compare_topic__closures
|
|
13313
13335
|
});
|
|
13314
13336
|
});
|
|
13315
13337
|
//#endregion
|
|
13316
13338
|
//#region src/tags/review-repos.marko
|
|
13317
13339
|
var review_repos_default = _template("y", (input) => {
|
|
13318
|
-
const $scope0_reason = _scope_reason(), $sg__input_tabs = _serialize_guard($scope0_reason,
|
|
13340
|
+
const $scope0_reason = _scope_reason(), $sg__input_tabs = _serialize_guard($scope0_reason, 13), $si__input_tabs = _serialize_if($scope0_reason, 13), $si__input_tabs__OR__input_active = _serialize_if($scope0_reason, 0), $sg__input_tabs_length = _serialize_guard($scope0_reason, 14), $sg__input_tabs__OR__input_active = _serialize_guard($scope0_reason, 0), $sg__input_tabs__OR__input_active__OR__input_workspaceBranch__OR__input_workspaceName = _serialize_guard($scope0_reason, 8), $sg__input_tabs__OR__input_active__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDifferIds = _serialize_guard($scope0_reason, 10), $si__input_tabs_length = _serialize_if($scope0_reason, 14), $si__input_localDifferIds = _serialize_if($scope0_reason, 21), $si__input_folded = _serialize_if($scope0_reason, 15), $si__input_onlyNew = _serialize_if($scope0_reason, 16), $si__input_onToggleNew = _serialize_if($scope0_reason, 17), $si__input_onShowHidden = _serialize_if($scope0_reason, 18), $si__input_workspaceBranch = _serialize_if($scope0_reason, 19), $si__input_workspaceName = _serialize_if($scope0_reason, 20), $si__input_onReload = _serialize_if($scope0_reason, 22), $si__input_loading = _serialize_if($scope0_reason, 23);
|
|
13319
13341
|
const $scope0_id = _scope_id();
|
|
13320
13342
|
const $input_folded__closures = /* @__PURE__ */ new Set();
|
|
13321
13343
|
const $current_repo_id__closures = /* @__PURE__ */ new Set();
|
|
@@ -13356,30 +13378,30 @@ var review_repos_default = _template("y", (input) => {
|
|
|
13356
13378
|
_if(() => {
|
|
13357
13379
|
if (input.tabs.length) {
|
|
13358
13380
|
const $scope1_id = _scope_id();
|
|
13359
|
-
_html(`<div${_attr_class(["
|
|
13381
|
+
_html(`<div${_attr_class(["_iY", { ["_iX"]: many }])}>`);
|
|
13360
13382
|
_if(() => {
|
|
13361
13383
|
if (many) {
|
|
13362
13384
|
const $scope2_id = _scope_id();
|
|
13363
|
-
_html(`<div${_attr_class(["
|
|
13364
|
-
["
|
|
13365
|
-
["
|
|
13385
|
+
_html(`<div${_attr_class(["_i1", {
|
|
13386
|
+
["_i0"]: edges.end,
|
|
13387
|
+
["_iZ"]: edges.start
|
|
13366
13388
|
}])} role=tablist>`);
|
|
13367
13389
|
_for_of(input.tabs, (tab$1) => {
|
|
13368
13390
|
const $scope3_id = _scope_id();
|
|
13369
13391
|
const repo = tab$1.repo;
|
|
13370
13392
|
const isOn = current?.repo.id === repo.id;
|
|
13371
13393
|
const isFolded = input.folded.has(repo.id);
|
|
13372
|
-
_html(`<div${_attr_class(["
|
|
13373
|
-
["
|
|
13374
|
-
["
|
|
13375
|
-
}])} role=tab aria-selected=${isOn ? "true" : "false"}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}><button type=button${_attr_class("
|
|
13394
|
+
_html(`<div${_attr_class(["_i4", {
|
|
13395
|
+
["_i2"]: isOn,
|
|
13396
|
+
["_i3"]: isFolded
|
|
13397
|
+
}])} role=tab aria-selected=${isOn ? "true" : "false"}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}><button type=button${_attr_class("_i7")} title=${isFolded ? "\"Show this section's files\"" : "\"Hide this section's files\""} aria-expanded=${isFolded ? "false" : "true"}><span${_attr_class("_i8")}>▾</span></button>${_el_resume($scope3_id, "b")}<button type=button${_attr_class("_i6")} title="Scroll to this section"><span${_attr_class(worktree)}>${_text_resume($scope3_id, "f", repo.worktree, $sg__input_tabs)}</span>`);
|
|
13376
13398
|
_if(() => {
|
|
13377
13399
|
if (repo.pr) {
|
|
13378
13400
|
const $scope5_id = _scope_id();
|
|
13379
13401
|
_html(`<span${_attr_class([
|
|
13380
13402
|
"_u",
|
|
13381
13403
|
"_v",
|
|
13382
|
-
"
|
|
13404
|
+
"_i_"
|
|
13383
13405
|
])}>#${_text_resume($scope5_id, "b", repo.pr.number, $sg__input_tabs * 2)}</span>`);
|
|
13384
13406
|
$si__input_tabs && writeScope($scope5_id, { _: _scope_with_id($scope3_id) });
|
|
13385
13407
|
return 0;
|
|
@@ -13405,11 +13427,11 @@ var review_repos_default = _template("y", (input) => {
|
|
|
13405
13427
|
if (current) {
|
|
13406
13428
|
const $scope4_id = _scope_id();
|
|
13407
13429
|
const one = current.repo;
|
|
13408
|
-
_html(`<div${_attr_class("
|
|
13430
|
+
_html(`<div${_attr_class("_ja")}>`);
|
|
13409
13431
|
_if(() => {
|
|
13410
13432
|
if (!many) {
|
|
13411
13433
|
const $scope6_id = _scope_id();
|
|
13412
|
-
_html(`<span${_attr_class([worktree, "
|
|
13434
|
+
_html(`<span${_attr_class([worktree, "_i5"])}>${_text_resume($scope6_id, "b", one.worktree, $sg__input_tabs__OR__input_active)}</span>`);
|
|
13413
13435
|
$si__input_tabs__OR__input_active && writeScope($scope6_id, { _: _scope_with_id($scope4_id) });
|
|
13414
13436
|
return 0;
|
|
13415
13437
|
}
|
|
@@ -13422,18 +13444,17 @@ var review_repos_default = _template("y", (input) => {
|
|
|
13422
13444
|
4: _serialize_guard($scope0_reason, 5),
|
|
13423
13445
|
5: $sg__input_tabs__OR__input_active__OR__input_workspaceBranch__OR__input_workspaceName,
|
|
13424
13446
|
6: _serialize_guard($scope0_reason, 9),
|
|
13425
|
-
7:
|
|
13426
|
-
8: $
|
|
13447
|
+
7: $sg__input_tabs__OR__input_active__OR__input_workspaceBranch__OR__input_workspaceName,
|
|
13448
|
+
8: $sg__input_tabs__OR__input_active__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDifferIds,
|
|
13427
13449
|
9: $sg__input_tabs__OR__input_active__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDifferIds,
|
|
13428
|
-
10: $
|
|
13429
|
-
11:
|
|
13450
|
+
10: _serialize_guard($scope0_reason, 11),
|
|
13451
|
+
11: $sg__input_tabs__OR__input_active,
|
|
13430
13452
|
12: $sg__input_tabs__OR__input_active,
|
|
13431
|
-
13: $
|
|
13432
|
-
14:
|
|
13453
|
+
13: _serialize_guard($scope0_reason, 6),
|
|
13454
|
+
14: $sg__input_tabs__OR__input_active,
|
|
13433
13455
|
15: $sg__input_tabs__OR__input_active,
|
|
13434
13456
|
16: $sg__input_tabs__OR__input_active,
|
|
13435
|
-
17: $sg__input_tabs__OR__input_active
|
|
13436
|
-
18: $sg__input_tabs__OR__input_active
|
|
13457
|
+
17: $sg__input_tabs__OR__input_active
|
|
13437
13458
|
});
|
|
13438
13459
|
const $childScope = _peek_scope_id();
|
|
13439
13460
|
review_head_default({
|
|
@@ -13453,7 +13474,7 @@ var review_repos_default = _template("y", (input) => {
|
|
|
13453
13474
|
loading: input.loading
|
|
13454
13475
|
});
|
|
13455
13476
|
_html("</div>");
|
|
13456
|
-
_serialize_if($scope0_reason,
|
|
13477
|
+
_serialize_if($scope0_reason, 12) && _subscribe($si__input_tabs_length && $many__closures, _subscribe($si__input_tabs__OR__input_active && $current_hidden__closures, _subscribe($si__input_tabs__OR__input_active && $current_fresh__closures, _subscribe($si__input_tabs__OR__input_active && $current_deletions__closures, _subscribe($si__input_tabs__OR__input_active && $current_additions__closures, _subscribe($si__input_tabs__OR__input_active && $current_files__closures, _subscribe($si__input_tabs__OR__input_active && $current_repo__closures, _subscribe($si__input_loading && $input_loading__closures, _subscribe($si__input_onReload && $input_onReload__closures, _subscribe($si__input_localDifferIds && $input_localDifferIds__closures, _subscribe($si__input_workspaceName && $input_workspaceName__closures, _subscribe($si__input_workspaceBranch && $input_workspaceBranch__closures, _subscribe($si__input_onShowHidden && $input_onShowHidden__closures, _subscribe($si__input_onToggleNew && $input_onToggleNew__closures, _subscribe($si__input_onlyNew && $input_onlyNew__closures, writeScope($scope4_id, {
|
|
13457
13478
|
e: $si__input_tabs_length && one?.worktree,
|
|
13458
13479
|
i: $si__input_localDifferIds && one?.id,
|
|
13459
13480
|
_: _scope_with_id($scope1_id),
|
|
@@ -13519,7 +13540,7 @@ var review_repos_default = _template("y", (input) => {
|
|
|
13519
13540
|
});
|
|
13520
13541
|
_resume_branch($scope0_id);
|
|
13521
13542
|
});
|
|
13522
|
-
var fileFilter = "
|
|
13543
|
+
var fileFilter = "_jt _n";
|
|
13523
13544
|
//#endregion
|
|
13524
13545
|
//#region src/tags/file-filter.marko
|
|
13525
13546
|
var file_filter_default = _template("l", (input) => {
|
|
@@ -13549,7 +13570,7 @@ var file_filter_default = _template("l", (input) => {
|
|
|
13549
13570
|
pending = v;
|
|
13550
13571
|
box.timer = setTimeout(flush, 150);
|
|
13551
13572
|
}, "l2", $scope0_id);
|
|
13552
|
-
_html(`<div${_attr_class("
|
|
13573
|
+
_html(`<div${_attr_class("_js")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
13553
13574
|
type(v);
|
|
13554
13575
|
}, "l0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
13555
13576
|
_script($scope0_id, "l3");
|
|
@@ -13595,7 +13616,7 @@ var review_tree_default = _template("z", (input) => {
|
|
|
13595
13616
|
dragging$1 = false;
|
|
13596
13617
|
if (width != null) setDiffTreeWidth(width);
|
|
13597
13618
|
}, "z2", $scope0_id);
|
|
13598
|
-
_html(`<div${_attr_class(["
|
|
13619
|
+
_html(`<div${_attr_class(["_iJ", { ["_iI"]: input.open === false }])}${width != null ? _attr_style(`--tree-w:${width}px`) : ""}><div${_attr_class(["_iW", { ["_iV"]: dragging$1 }])} title="Drag to resize"></div>${_el_resume($scope0_id, "b")}<div${_attr_class("_iK")}>`);
|
|
13599
13620
|
_set_serialize_reason(2);
|
|
13600
13621
|
const $childScope = _peek_scope_id();
|
|
13601
13622
|
file_filter_default({
|
|
@@ -13604,22 +13625,22 @@ var review_tree_default = _template("z", (input) => {
|
|
|
13604
13625
|
filter$1 = _new_filter;
|
|
13605
13626
|
}, "z3", $scope0_id)
|
|
13606
13627
|
});
|
|
13607
|
-
_html(`</div><div${_attr_class("
|
|
13628
|
+
_html(`</div><div${_attr_class("_iL")}>`);
|
|
13608
13629
|
_for_of(input.sections, (section$2) => {
|
|
13609
13630
|
const $scope1_id = _scope_id();
|
|
13610
|
-
_html(`<div${_attr_class(["
|
|
13631
|
+
_html(`<div${_attr_class(["_iN", { ["_iM"]: input.sections.length === 1 }])}${_attr("data-section", section$2.id)}>`);
|
|
13611
13632
|
_if(() => {
|
|
13612
13633
|
if (input.sections.length > 1) {
|
|
13613
13634
|
const $scope2_id = _scope_id();
|
|
13614
|
-
_html(`<button type=button${_attr_class("
|
|
13635
|
+
_html(`<button type=button${_attr_class("_iO")}${_attr("title", section$2.label)} aria-expanded=${closed$4.has(section$2.id) ? "false" : "true"}><span${_attr_class(["_iP", { ["_iQ"]: !closed$4.has(section$2.id) }])} aria-hidden=true>`);
|
|
13615
13636
|
icon_chevron_right_default({ size: 12 });
|
|
13616
|
-
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("
|
|
13637
|
+
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("_iR")}>${_text_resume($scope2_id, "e", section$2.label, $sg__input_sections)}</span><span${_attr_class("_iS")}>${_text_resume($scope2_id, "g", section$2.files.length, $sg__input_sections)}</span></button>${_el_resume($scope2_id, "a")}`);
|
|
13617
13638
|
_script($scope2_id, "z4");
|
|
13618
13639
|
_subscribe($closed__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }));
|
|
13619
13640
|
return 0;
|
|
13620
13641
|
}
|
|
13621
13642
|
}, $scope1_id, "b", $sg__input_sections, $sg__input_sections_length, $sg__input_sections_length, 0, 1);
|
|
13622
|
-
_html(`<div${_attr_class(["
|
|
13643
|
+
_html(`<div${_attr_class(["_iU", { ["_iT"]: input.sections.length === 1 }])}${_attr("data-tree", section$2.id)}${_attr("hidden", closed$4.has(section$2.id))}></div>${_el_resume($scope1_id, "c")}</div>${_el_resume($scope1_id, "a", $sg__input_sections)}`);
|
|
13623
13644
|
writeScope($scope1_id, {
|
|
13624
13645
|
f: section$2?.id,
|
|
13625
13646
|
h: $si__input_sections_length && section$2?.label,
|
|
@@ -13651,7 +13672,7 @@ var review_tree_default = _template("z", (input) => {
|
|
|
13651
13672
|
});
|
|
13652
13673
|
_resume_branch($scope0_id);
|
|
13653
13674
|
});
|
|
13654
|
-
var sheetDir = "
|
|
13675
|
+
var sheetDir = "_jm _ba";
|
|
13655
13676
|
//#endregion
|
|
13656
13677
|
//#region src/tags/icons/icon-comment.marko
|
|
13657
13678
|
var icon_comment_default = _template("bb", (input) => {
|
|
@@ -13724,9 +13745,9 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13724
13745
|
_if(() => {
|
|
13725
13746
|
if (open) {
|
|
13726
13747
|
const $scope1_id = _scope_id();
|
|
13727
|
-
_html(`<div${_attr_class("
|
|
13748
|
+
_html(`<div${_attr_class("_jd")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_je")} role=dialog aria-label="Jump to file"><div${_attr_class("_jf")}><strong${_attr_class("_jc")}>Files</strong><span${_attr_class("_jg")}>${_text_resume($scope1_id, "f", input.files.length, $sg__input_files_length)}${_text_resume($scope1_id, "g", input.files.length !== total ? ` / ${total}` : "", _serialize_guard($scope0_reason, 2) * 2)}</span><button type=button${_attr_class([iconBtnLg, "_jb"])} title=Close aria-label=Close>`);
|
|
13728
13749
|
icon_xmark_default({ size: 16 });
|
|
13729
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
13750
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_jo")}>`);
|
|
13730
13751
|
_set_serialize_reason(2);
|
|
13731
13752
|
const $childScope = _peek_scope_id();
|
|
13732
13753
|
file_filter_default({
|
|
@@ -13735,13 +13756,13 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13735
13756
|
filter = _new_filter;
|
|
13736
13757
|
}, "i1", $scope1_id)
|
|
13737
13758
|
});
|
|
13738
|
-
_html(`</div><div${_attr_class("
|
|
13759
|
+
_html(`</div><div${_attr_class("_jh")}>`);
|
|
13739
13760
|
_for_of(groups, (group) => {
|
|
13740
13761
|
const $scope2_id = _scope_id();
|
|
13741
|
-
_html(`<div${_attr_class("
|
|
13762
|
+
_html(`<div${_attr_class("_ji")}><div${_attr_class("_jj")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
13742
13763
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
13743
13764
|
const $scope3_id = _scope_id();
|
|
13744
|
-
_html(`<div${_attr_class("
|
|
13765
|
+
_html(`<div${_attr_class("_jk")}>`);
|
|
13745
13766
|
_if(() => {
|
|
13746
13767
|
if (dir) {
|
|
13747
13768
|
const $scope5_id = _scope_id();
|
|
@@ -13752,11 +13773,11 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13752
13773
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
13753
13774
|
_for_of(files, ({ file, name }) => {
|
|
13754
13775
|
const $scope4_id = _scope_id();
|
|
13755
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
13776
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_jl", "_y"])}><span${_attr_class("__")}${_attr("data-status", file.status)}>${_text_resume($scope4_id, "c", file.status, $sg__input_files)}</span>${_el_resume($scope4_id, "b", $sg__input_files)}<span${_attr_class("_jn")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
13756
13777
|
_if(() => {
|
|
13757
13778
|
if (newKeys.has(file.key)) {
|
|
13758
13779
|
const $scope6_id = _scope_id();
|
|
13759
|
-
_html(`<span${_attr_class(["_A", "
|
|
13780
|
+
_html(`<span${_attr_class(["_A", "_jq"])} title="Changed since your last visit"></span>`);
|
|
13760
13781
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
13761
13782
|
return 0;
|
|
13762
13783
|
}
|
|
@@ -13766,7 +13787,7 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13766
13787
|
const $scope7_id = _scope_id();
|
|
13767
13788
|
icon_comment_default({
|
|
13768
13789
|
size: 12,
|
|
13769
|
-
class: "
|
|
13790
|
+
class: "_jr"
|
|
13770
13791
|
});
|
|
13771
13792
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
13772
13793
|
return 0;
|
|
@@ -13791,7 +13812,7 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13791
13812
|
_if(() => {
|
|
13792
13813
|
if (!input.files.length) {
|
|
13793
13814
|
const $scope8_id = _scope_id();
|
|
13794
|
-
_html(`<p${_attr_class("
|
|
13815
|
+
_html(`<p${_attr_class("_jp")}>No files match.</p>`);
|
|
13795
13816
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
13796
13817
|
return 0;
|
|
13797
13818
|
}
|
|
@@ -14080,6 +14101,10 @@ var review_view_default = _template("A", (input) => {
|
|
|
14080
14101
|
hidden: r.files.length - st.files
|
|
14081
14102
|
};
|
|
14082
14103
|
});
|
|
14104
|
+
const compareTitle = repoTabs.map(({ repo: r }) => {
|
|
14105
|
+
const c = reviewCompareLabel(r.pr?.baseRefName || r.base, r.pr?.headRefName || r.branch, input.workspaceBranch || "", input.workspaceName || "");
|
|
14106
|
+
return `${r.worktree}: ${c.title}`;
|
|
14107
|
+
}).join("\n");
|
|
14083
14108
|
const fileWorktree = _resume((repo) => repo.includes("#") ? repo.split("#")[0] : repo, "A17");
|
|
14084
14109
|
const anchorFor = _resume((file, range) => {
|
|
14085
14110
|
const section = repoList.find((r) => r.id === file.repo);
|
|
@@ -14223,7 +14248,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14223
14248
|
else viewBox.scrollToLine(hit.key, hit.line, hit.side);
|
|
14224
14249
|
}, 0);
|
|
14225
14250
|
};
|
|
14226
|
-
_html(`<div${_attr_class("_gl")}><div${_attr_class("_gq")}><div${_attr_class("
|
|
14251
|
+
_html(`<div${_attr_class("_gl")}><div${_attr_class("_gq")}><div${_attr_class("_g0")}><div${_attr_class("_gr")}><div${_attr_class(["_gA", { ["_gz"]: !comments.length }])}>`);
|
|
14227
14252
|
_if(() => {
|
|
14228
14253
|
if (input.onExit) {
|
|
14229
14254
|
const $scope1_id = _scope_id();
|
|
@@ -14233,13 +14258,13 @@ var review_view_default = _template("A", (input) => {
|
|
|
14233
14258
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 2) && _scope_with_id($scope0_id) });
|
|
14234
14259
|
return 0;
|
|
14235
14260
|
}
|
|
14236
|
-
}, $scope0_id, "f", _serialize_guard($scope0_reason, 0), _serialize_guard($scope0_reason,
|
|
14261
|
+
}, $scope0_id, "f", _serialize_guard($scope0_reason, 0), _serialize_guard($scope0_reason, 9), 1, 0, 1);
|
|
14237
14262
|
_html(`<h1${_attr_class(pageTitle)}>Review</h1>`);
|
|
14238
14263
|
_if(() => {
|
|
14239
14264
|
if (comments.length) {
|
|
14240
14265
|
const $scope2_id = _scope_id();
|
|
14241
14266
|
_html(`<span${_attr_class("_gu")}>${_text_resume($scope2_id, "b", comments.length)} comment${_text_resume($scope2_id, "c", comments.length === 1 ? "" : "s", 2)}</span><span${_attr_class("_gt")}>`);
|
|
14242
|
-
_set_serialize_reason(_serialize_guard($scope0_reason,
|
|
14267
|
+
_set_serialize_reason(_serialize_guard($scope0_reason, 10));
|
|
14243
14268
|
const $childScope = _peek_scope_id();
|
|
14244
14269
|
diff_send_default({
|
|
14245
14270
|
sessions: input.sessions,
|
|
@@ -14251,7 +14276,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14251
14276
|
return 0;
|
|
14252
14277
|
}
|
|
14253
14278
|
}, $scope0_id, "h");
|
|
14254
|
-
_html(`</div>${_el_resume($scope0_id, "e")}<div${_attr_class(["_gp", "
|
|
14279
|
+
_html(`</div>${_el_resume($scope0_id, "e")}<div${_attr_class(["_gp", "_gX"])}>`);
|
|
14255
14280
|
_if(() => {
|
|
14256
14281
|
if (hasFiles) {
|
|
14257
14282
|
const $scope9_id = _scope_id();
|
|
@@ -14278,7 +14303,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14278
14303
|
_if(() => {
|
|
14279
14304
|
if (hasFiles) {
|
|
14280
14305
|
const $scope10_id = _scope_id();
|
|
14281
|
-
_html(`<button${_attr_class(["_q", "
|
|
14306
|
+
_html(`<button${_attr_class(["_q", "_gM"])} title="Jump to file">Files (${_text_resume($scope10_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope10_id, "a")}`);
|
|
14282
14307
|
_script($scope10_id, "A41");
|
|
14283
14308
|
writeScope($scope10_id, {});
|
|
14284
14309
|
return 0;
|
|
@@ -14287,7 +14312,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14287
14312
|
_html(`<span${_attr_class([
|
|
14288
14313
|
"_o",
|
|
14289
14314
|
"_gB",
|
|
14290
|
-
"
|
|
14315
|
+
"_gY"
|
|
14291
14316
|
])}>`);
|
|
14292
14317
|
_attr_select_value($scope0_id, "o", rev ? `rev:${rev}` : scope, _resume(function(v) {
|
|
14293
14318
|
pickCompare(v);
|
|
@@ -14295,8 +14320,8 @@ var review_view_default = _template("A", (input) => {
|
|
|
14295
14320
|
_html(`<select${_attr_class([
|
|
14296
14321
|
"_p",
|
|
14297
14322
|
"_gC",
|
|
14298
|
-
"
|
|
14299
|
-
])} aria-label=Compare${_attr("disabled", loading)}><option${_attr_option_value("committed")}>Committed</option><option${_attr_option_value("working")}>Working tree</option><option${_attr_option_value("dirty")}>Uncommitted</option>`);
|
|
14323
|
+
"_gZ"
|
|
14324
|
+
])} aria-label=Compare${_attr("title", compareTitle)}${_attr("disabled", loading)}><option${_attr_option_value("committed")}>Committed</option><option${_attr_option_value("working")}>Working tree</option><option${_attr_option_value("dirty")}>Uncommitted</option>`);
|
|
14300
14325
|
_if(() => {
|
|
14301
14326
|
if (commitOptions.length) {
|
|
14302
14327
|
const $scope12_id = _scope_id();
|
|
@@ -14346,6 +14371,14 @@ var review_view_default = _template("A", (input) => {
|
|
|
14346
14371
|
}
|
|
14347
14372
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
14348
14373
|
_html("</div>");
|
|
14374
|
+
_if(() => {
|
|
14375
|
+
if (!repos && loading) {
|
|
14376
|
+
const $scope14_id = _scope_id();
|
|
14377
|
+
_html(`<div${_attr_class("_gJ")} aria-hidden=true><div${_attr_class(["_gF", "_gK"])}></div><div${_attr_class(["_gF", "_gL"])}></div></div>`);
|
|
14378
|
+
writeScope($scope14_id, {});
|
|
14379
|
+
return 0;
|
|
14380
|
+
}
|
|
14381
|
+
}, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
14349
14382
|
_set_serialize_reason({
|
|
14350
14383
|
0: 1,
|
|
14351
14384
|
1: 1,
|
|
@@ -14364,12 +14397,11 @@ var review_view_default = _template("A", (input) => {
|
|
|
14364
14397
|
14: 1,
|
|
14365
14398
|
15: 1,
|
|
14366
14399
|
16: 1,
|
|
14367
|
-
|
|
14368
|
-
20: _serialize_guard($scope0_reason,
|
|
14369
|
-
21:
|
|
14400
|
+
19: _serialize_guard($scope0_reason, 7),
|
|
14401
|
+
20: _serialize_guard($scope0_reason, 8),
|
|
14402
|
+
21: 1,
|
|
14370
14403
|
22: 1,
|
|
14371
|
-
23: 1
|
|
14372
|
-
24: 1
|
|
14404
|
+
23: 1
|
|
14373
14405
|
});
|
|
14374
14406
|
const $childScope4 = _peek_scope_id();
|
|
14375
14407
|
review_repos_default({
|
|
@@ -14415,7 +14447,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14415
14447
|
onReload: reload,
|
|
14416
14448
|
loading
|
|
14417
14449
|
});
|
|
14418
|
-
_html(`</div><div${_attr_class("
|
|
14450
|
+
_html(`</div><div${_attr_class("_gN")}>`);
|
|
14419
14451
|
_if(() => {
|
|
14420
14452
|
if (error) {
|
|
14421
14453
|
const $scope3_id = _scope_id();
|
|
@@ -14434,7 +14466,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14434
14466
|
writeScope($scope3_id, {});
|
|
14435
14467
|
return 0;
|
|
14436
14468
|
}
|
|
14437
|
-
}, $scope0_id, "
|
|
14469
|
+
}, $scope0_id, "x", 1, 1, 1, 0, 1);
|
|
14438
14470
|
_for_of(repoList.filter((r) => r.baseMissing), (repo) => {
|
|
14439
14471
|
const $scope6_id = _scope_id();
|
|
14440
14472
|
const $for_content__repo_base__closures = /* @__PURE__ */ new Set();
|
|
@@ -14456,29 +14488,34 @@ var review_view_default = _template("A", (input) => {
|
|
|
14456
14488
|
f: $for_content__repo_base__closures,
|
|
14457
14489
|
a: _existing_scope($childScope5)
|
|
14458
14490
|
});
|
|
14459
|
-
}, "id", $scope0_id, "
|
|
14491
|
+
}, "id", $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
14460
14492
|
_if(() => {
|
|
14461
14493
|
if (!repos && loading) {
|
|
14462
|
-
const $
|
|
14463
|
-
_html(`<div${_attr_class("_gE")} aria-hidden=true
|
|
14464
|
-
|
|
14494
|
+
const $scope15_id = _scope_id();
|
|
14495
|
+
_html(`<div${_attr_class("_gE")} aria-hidden=true>`);
|
|
14496
|
+
forTo(2, 0, 1, () => {
|
|
14497
|
+
_scope_id();
|
|
14498
|
+
_html(`<div${_attr_class("_gG")}><div${_attr_class(["_gF", "_gH"])}></div><div${_attr_class(["_gF", "_gI"])}></div></div>`);
|
|
14499
|
+
});
|
|
14500
|
+
_html("</div>");
|
|
14501
|
+
writeScope($scope15_id, {});
|
|
14465
14502
|
return 0;
|
|
14466
14503
|
}
|
|
14467
|
-
}, $scope0_id, "
|
|
14504
|
+
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
14468
14505
|
_if(() => {
|
|
14469
14506
|
if (repos && !allFiles.length) {
|
|
14470
14507
|
const $scope8_id = _scope_id();
|
|
14471
|
-
_html(`<p${_attr_class("
|
|
14508
|
+
_html(`<p${_attr_class("_b6")}>${_text_resume($scope8_id, "b", rev ? "This commit is not in any of these repos." : repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
|
|
14472
14509
|
writeScope($scope8_id, {});
|
|
14473
14510
|
return 0;
|
|
14474
14511
|
} else if (repos && !listFiles.length && !findState.hit) {
|
|
14475
14512
|
const $scope5_id = _scope_id();
|
|
14476
|
-
_html(`<p${_attr_class("
|
|
14513
|
+
_html(`<p${_attr_class("_b6")}>${_text_resume($scope5_id, "b", findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${fileFilter}".`)}</p>`);
|
|
14477
14514
|
writeScope($scope5_id, {});
|
|
14478
14515
|
return 1;
|
|
14479
14516
|
}
|
|
14480
|
-
}, $scope0_id, "
|
|
14481
|
-
_html(`</div></div><div${_attr_class("
|
|
14517
|
+
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
14518
|
+
_html(`</div></div><div${_attr_class("_gO")} data-diff-main></div>${_el_resume($scope0_id, "a1")}</div>`);
|
|
14482
14519
|
_set_serialize_reason(26);
|
|
14483
14520
|
const $childScope6 = _peek_scope_id();
|
|
14484
14521
|
review_tree_default({
|
|
@@ -14541,102 +14578,105 @@ var review_view_default = _template("A", (input) => {
|
|
|
14541
14578
|
_script($scope0_id, "A49");
|
|
14542
14579
|
_script($scope0_id, "A50");
|
|
14543
14580
|
writeScope($scope0_id, {
|
|
14544
|
-
|
|
14545
|
-
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14550
|
-
|
|
14551
|
-
|
|
14552
|
-
|
|
14553
|
-
|
|
14554
|
-
|
|
14555
|
-
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
am: input.
|
|
14559
|
-
|
|
14560
|
-
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
|
|
14567
|
-
|
|
14568
|
-
|
|
14569
|
-
|
|
14570
|
-
|
|
14571
|
-
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
|
|
14585
|
-
|
|
14586
|
-
|
|
14587
|
-
|
|
14588
|
-
|
|
14589
|
-
|
|
14590
|
-
|
|
14591
|
-
|
|
14592
|
-
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
|
|
14599
|
-
|
|
14600
|
-
|
|
14601
|
-
|
|
14602
|
-
|
|
14603
|
-
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
|
|
14607
|
-
|
|
14608
|
-
|
|
14609
|
-
|
|
14610
|
-
|
|
14611
|
-
|
|
14612
|
-
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
dj:
|
|
14616
|
-
|
|
14617
|
-
|
|
14618
|
-
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14622
|
-
|
|
14623
|
-
|
|
14624
|
-
|
|
14625
|
-
dz:
|
|
14626
|
-
e0:
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
|
|
14631
|
-
|
|
14632
|
-
|
|
14581
|
+
a6: input.workspaceId,
|
|
14582
|
+
a7: input.scope,
|
|
14583
|
+
a8: input.rev,
|
|
14584
|
+
a9: _serialize_if($scope0_reason, 4) && input.findOpen,
|
|
14585
|
+
aa: _serialize_if($scope0_reason, 3) && input.findOpenChange,
|
|
14586
|
+
ac: _serialize_if($scope0_reason, 6) && input.findTick,
|
|
14587
|
+
ad: _serialize_if($scope0_reason, 5) && input.findTickChange,
|
|
14588
|
+
af: input.onFileChange,
|
|
14589
|
+
ag: input.focusPr,
|
|
14590
|
+
ah: input.focusFile,
|
|
14591
|
+
ai: input.active,
|
|
14592
|
+
aj: input.onScopeChange,
|
|
14593
|
+
ak: input.onRevChange,
|
|
14594
|
+
al: input.workspaceBranch,
|
|
14595
|
+
am: input.workspaceName,
|
|
14596
|
+
an: input.onSent,
|
|
14597
|
+
ap: input.sessions,
|
|
14598
|
+
aq: input.focusNonce,
|
|
14599
|
+
ar: input.focusFileNonce,
|
|
14600
|
+
as: repos,
|
|
14601
|
+
au: comments,
|
|
14602
|
+
aw: comments?.length,
|
|
14603
|
+
ax: draft,
|
|
14604
|
+
ay: error,
|
|
14605
|
+
az: loading,
|
|
14606
|
+
b1: fileFilter,
|
|
14607
|
+
b4: onlyNew,
|
|
14608
|
+
b5: scope,
|
|
14609
|
+
b6: rev,
|
|
14610
|
+
b7: treeOpen,
|
|
14611
|
+
b9: findOpen,
|
|
14612
|
+
bb: pinnedFind,
|
|
14613
|
+
bd: findTick,
|
|
14614
|
+
bg: findState?.query,
|
|
14615
|
+
bi: findState?.hit,
|
|
14616
|
+
bj: findState?.hit?.key,
|
|
14617
|
+
bk: collapsedFiles,
|
|
14618
|
+
bl: activeRepo,
|
|
14619
|
+
bm: foldedRepos,
|
|
14620
|
+
bo: headBox.sig,
|
|
14621
|
+
bp: headBox.timer,
|
|
14622
|
+
br: loadBox.seq,
|
|
14623
|
+
bs: viewBox,
|
|
14624
|
+
bu: posBox.anchor,
|
|
14625
|
+
bw: posBox.raf,
|
|
14626
|
+
by: restoreBox.pos,
|
|
14627
|
+
c0: restoreBox.jump,
|
|
14628
|
+
c3: restorePos,
|
|
14629
|
+
c4: savePos,
|
|
14630
|
+
c5: jumpTo,
|
|
14631
|
+
c6: focusPrSection,
|
|
14632
|
+
c8: load,
|
|
14633
|
+
cd: reload,
|
|
14634
|
+
ce: reloadSoon,
|
|
14635
|
+
cf: loadReview,
|
|
14636
|
+
cg: setScope,
|
|
14637
|
+
ch: setRev,
|
|
14638
|
+
cj: pickCompare,
|
|
14639
|
+
cl: markSeen,
|
|
14640
|
+
cm: repoList,
|
|
14641
|
+
co: shownRepos,
|
|
14642
|
+
cp: allFiles,
|
|
14643
|
+
cr: allFiles?.length,
|
|
14644
|
+
ct: fileFiltered,
|
|
14645
|
+
cu: findKeys,
|
|
14646
|
+
cw: listFiles,
|
|
14647
|
+
d0: shownFiles,
|
|
14648
|
+
d2: shownFiles?.length,
|
|
14649
|
+
d4: commentsByFile,
|
|
14650
|
+
db: commitOptions,
|
|
14651
|
+
dg: _serialize_if($scope0_reason, 1) && repoTabs,
|
|
14652
|
+
dj: fileWorktree,
|
|
14653
|
+
dk: anchorFor,
|
|
14654
|
+
dl: filesByKey,
|
|
14655
|
+
dm: fileByKey,
|
|
14656
|
+
do: saveComment,
|
|
14657
|
+
dp: deleteRemote,
|
|
14658
|
+
dr: removeComment,
|
|
14659
|
+
ds: editComment,
|
|
14660
|
+
du: sendGate.busy,
|
|
14661
|
+
dw: dispatch,
|
|
14662
|
+
dz: copyMarkdown,
|
|
14663
|
+
e0: sendTo,
|
|
14664
|
+
e1: sendOneComment,
|
|
14665
|
+
e2: sendDraftComment,
|
|
14666
|
+
e3: openFind,
|
|
14667
|
+
e6: findFocus,
|
|
14668
|
+
e8: dockBox.home,
|
|
14669
|
+
e9: dockBox.raf,
|
|
14670
|
+
eb: dockFind,
|
|
14671
|
+
ba: input.findOpenChange || void 0,
|
|
14672
|
+
be: input.findTickChange || void 0,
|
|
14633
14673
|
l: _existing_scope($childScope2),
|
|
14634
14674
|
r: _existing_scope($childScope3),
|
|
14635
|
-
|
|
14636
|
-
|
|
14637
|
-
|
|
14638
|
-
|
|
14639
|
-
|
|
14675
|
+
v: _existing_scope($childScope4),
|
|
14676
|
+
eg: $error__closures,
|
|
14677
|
+
ej: $scope__closures,
|
|
14678
|
+
a2: _existing_scope($childScope6),
|
|
14679
|
+
a3: _existing_scope($childScope7)
|
|
14640
14680
|
});
|
|
14641
14681
|
_resume_branch($scope0_id);
|
|
14642
14682
|
return $return;
|
|
@@ -14753,10 +14793,10 @@ function parseInvite(text) {
|
|
|
14753
14793
|
}
|
|
14754
14794
|
//#endregion
|
|
14755
14795
|
//#region src/tags/manage-workspace.css.ts
|
|
14756
|
-
var procCmd = "_f8
|
|
14757
|
-
var skillRow = "_f_
|
|
14758
|
-
var skillName = "_gb _f8
|
|
14759
|
-
var skillDesc = "_ge
|
|
14796
|
+
var procCmd = "_f8 _c2";
|
|
14797
|
+
var skillRow = "_f_ _c0";
|
|
14798
|
+
var skillName = "_gb _f8 _c2";
|
|
14799
|
+
var skillDesc = "_ge _c3";
|
|
14760
14800
|
//#endregion
|
|
14761
14801
|
//#region src/tags/icons/icon-clipboard.marko
|
|
14762
14802
|
var icon_clipboard_default = _template("ab", (input) => {
|
|
@@ -14808,10 +14848,10 @@ var icon_trash_default = _template("vb", (input) => {
|
|
|
14808
14848
|
});
|
|
14809
14849
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
14810
14850
|
});
|
|
14811
|
-
var resultRow = "
|
|
14812
|
-
var resultBranch = "
|
|
14813
|
-
var urlAction = "
|
|
14814
|
-
var addedRow = "
|
|
14851
|
+
var resultRow = "_h8 _I";
|
|
14852
|
+
var resultBranch = "_h9 _c7 _X _W _3 _l";
|
|
14853
|
+
var urlAction = "_h_ _c7 _X _W _c8";
|
|
14854
|
+
var addedRow = "_ik _c0";
|
|
14815
14855
|
//#endregion
|
|
14816
14856
|
//#region src/tags/icons/icon-branch.marko
|
|
14817
14857
|
var icon_branch_default = _template("Y", (input) => {
|
|
@@ -14841,11 +14881,11 @@ var branch_pick_default = _template("f", (input) => {
|
|
|
14841
14881
|
let branchFilter = "";
|
|
14842
14882
|
let reloadTick = 0;
|
|
14843
14883
|
let refreshing = false;
|
|
14844
|
-
_html(`<div${_attr_class("
|
|
14884
|
+
_html(`<div${_attr_class("_ia")}>`);
|
|
14845
14885
|
_if(() => {
|
|
14846
14886
|
{
|
|
14847
14887
|
const $scope4_id = _scope_id();
|
|
14848
|
-
_html(`<p${_attr_class("
|
|
14888
|
+
_html(`<p${_attr_class("_b5")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
14849
14889
|
writeScope($scope4_id, {});
|
|
14850
14890
|
return 0;
|
|
14851
14891
|
}
|
|
@@ -14948,10 +14988,10 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14948
14988
|
}, $scope0_id) };
|
|
14949
14989
|
const addedList = sheet ? input$2.added || [] : [];
|
|
14950
14990
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || ssoPending.length || sheet && !!input$2.added);
|
|
14951
|
-
_html(`<div${_attr_class(["
|
|
14952
|
-
["
|
|
14953
|
-
["
|
|
14954
|
-
}])}><label${_attr_class(["_0", "
|
|
14991
|
+
_html(`<div${_attr_class(["_cz", {
|
|
14992
|
+
["_cA"]: !input$2.open,
|
|
14993
|
+
["_cB"]: input$2.pinned
|
|
14994
|
+
}])}><label${_attr_class(["_0", "_cC"])}>`);
|
|
14955
14995
|
icon_search_default({
|
|
14956
14996
|
size: 14,
|
|
14957
14997
|
class: "_1"
|
|
@@ -14963,14 +15003,14 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14963
15003
|
}, "w0", $scope0_id))}${_attr_class([
|
|
14964
15004
|
"_Y",
|
|
14965
15005
|
"_2",
|
|
14966
|
-
"
|
|
14967
|
-
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
15006
|
+
"_cD"
|
|
15007
|
+
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "d")}</label><button${_attr_class([iconBtnRow, "_cF"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
14968
15008
|
icon_xmark_default({ size: 14 });
|
|
14969
15009
|
_html(`</button>${_el_resume($scope0_id, "e")}<div${_attr_class(pop$1)}${_attr("hidden", !hasBody || !input$2.open && !input$2.pinned)}>`);
|
|
14970
15010
|
_if(() => {
|
|
14971
15011
|
if (ssoPending.length) {
|
|
14972
15012
|
const $scope11_id = _scope_id();
|
|
14973
|
-
_html(`<div${_attr_class("
|
|
15013
|
+
_html(`<div${_attr_class("_h4")}>`);
|
|
14974
15014
|
ssoBlock.content({});
|
|
14975
15015
|
_html("</div>");
|
|
14976
15016
|
writeScope($scope11_id, {});
|
|
@@ -14980,16 +15020,16 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14980
15020
|
_if(() => {
|
|
14981
15021
|
if (pasted) {
|
|
14982
15022
|
const $scope1_id = _scope_id();
|
|
14983
|
-
_html(`<ul${_attr_class("
|
|
15023
|
+
_html(`<ul${_attr_class("_h5")}><li><div${_attr_class(["_h7", "_h6"])}><button${_attr_class(resultRow)}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
14984
15024
|
icon_plus_default({
|
|
14985
15025
|
size: 12,
|
|
14986
|
-
class: "
|
|
15026
|
+
class: "_ic"
|
|
14987
15027
|
});
|
|
14988
|
-
_html(`<span${_attr_class("
|
|
15028
|
+
_html(`<span${_attr_class("_id")}>${_text_resume($scope1_id, "f", repoLabel$1(pasted))}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
14989
15029
|
_if(() => {
|
|
14990
15030
|
if (pastedForkable) {
|
|
14991
15031
|
const $scope10_id = _scope_id();
|
|
14992
|
-
_html(`<button${_attr_class([urlAction, { ["
|
|
15032
|
+
_html(`<button${_attr_class([urlAction, { ["_c6"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>`);
|
|
14993
15033
|
_if(() => {
|
|
14994
15034
|
if (pasteWillFork) {
|
|
14995
15035
|
const $scope13_id = _scope_id();
|
|
@@ -15009,7 +15049,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15009
15049
|
return 0;
|
|
15010
15050
|
}
|
|
15011
15051
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
15012
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
15052
|
+
_html(`<button${_attr_class([resultBranch, { ["_c6"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
15013
15053
|
icon_branch_default({ size: 12 });
|
|
15014
15054
|
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
15015
15055
|
_if(() => {
|
|
@@ -15036,7 +15076,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15036
15076
|
return 0;
|
|
15037
15077
|
} else if (filter && !catalog) {
|
|
15038
15078
|
const $scope12_id = _scope_id();
|
|
15039
|
-
_html(`<p${_attr_class("
|
|
15079
|
+
_html(`<p${_attr_class("_b5")}>Loading repos…</p>`);
|
|
15040
15080
|
writeScope($scope12_id, {});
|
|
15041
15081
|
return 1;
|
|
15042
15082
|
}
|
|
@@ -15044,15 +15084,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15044
15084
|
_if(() => {
|
|
15045
15085
|
if (results.length) {
|
|
15046
15086
|
const $scope3_id = _scope_id();
|
|
15047
|
-
_html(`<ul${_attr_class("
|
|
15087
|
+
_html(`<ul${_attr_class("_h5")}>`);
|
|
15048
15088
|
_for_of(results, (repo, i) => {
|
|
15049
15089
|
const $scope4_id = _scope_id();
|
|
15050
|
-
_html(`<li><div${_attr_class(["
|
|
15090
|
+
_html(`<li><div${_attr_class(["_h7", { ["_h6"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15051
15091
|
icon_plus_default({
|
|
15052
15092
|
size: 12,
|
|
15053
|
-
class: "
|
|
15093
|
+
class: "_ic"
|
|
15054
15094
|
});
|
|
15055
|
-
_html(`<span${_attr_class("
|
|
15095
|
+
_html(`<span${_attr_class("_id")}>${_text_resume($scope4_id, "e", repoLabel$1(repo.nameWithOwner))}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c6"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
15056
15096
|
icon_branch_default({ size: 12 });
|
|
15057
15097
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
15058
15098
|
_if(() => {
|
|
@@ -15087,7 +15127,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15087
15127
|
return 0;
|
|
15088
15128
|
} else if (filter && catalog && !pasted) {
|
|
15089
15129
|
const $scope8_id = _scope_id();
|
|
15090
|
-
_html(`<p${_attr_class("
|
|
15130
|
+
_html(`<p${_attr_class("_b5")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
15091
15131
|
writeScope($scope8_id, {});
|
|
15092
15132
|
return 1;
|
|
15093
15133
|
}
|
|
@@ -15095,10 +15135,10 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15095
15135
|
_if(() => {
|
|
15096
15136
|
if (sheet && input$2.added) {
|
|
15097
15137
|
const $scope6_id = _scope_id();
|
|
15098
|
-
_html(`<div${_attr_class("
|
|
15138
|
+
_html(`<div${_attr_class("_ii")}><p${_attr_class("_ij")}>Repos <span${_attr_class(sectionCount$1)}>${_text_resume($scope6_id, "d", addedList.length, $sg__input_added)}</span></p><ul${_attr_class(list$2)}>`);
|
|
15099
15139
|
_for_of(addedList, (repo) => {
|
|
15100
15140
|
const $scope15_id = _scope_id();
|
|
15101
|
-
_html(`<li${_attr_class([addedRow, { ["
|
|
15141
|
+
_html(`<li${_attr_class([addedRow, { ["_c5"]: repo.pending }])}>`);
|
|
15102
15142
|
_if(() => {
|
|
15103
15143
|
if (repo.pending) {
|
|
15104
15144
|
const $scope17_id = _scope_id();
|
|
@@ -15109,13 +15149,13 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15109
15149
|
const $scope18_id = _scope_id();
|
|
15110
15150
|
icon_check_default({
|
|
15111
15151
|
size: 12,
|
|
15112
|
-
class: "
|
|
15152
|
+
class: "_ic"
|
|
15113
15153
|
});
|
|
15114
15154
|
$si__input_added && writeScope($scope18_id, {});
|
|
15115
15155
|
return 1;
|
|
15116
15156
|
}
|
|
15117
15157
|
}, $scope15_id, "b", $sg__input_added, $sg__input_added, $sg__input_added, 0, 1);
|
|
15118
|
-
_html(`<span${_attr_class("
|
|
15158
|
+
_html(`<span${_attr_class("_id")}>${_text_resume($scope15_id, "d", repoLabel$1(repo.name), $sg__input_added)}</span>`);
|
|
15119
15159
|
_if(() => {
|
|
15120
15160
|
if (repo.baseBranch) {
|
|
15121
15161
|
const $scope16_id = _scope_id();
|
|
@@ -15132,7 +15172,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15132
15172
|
_if(() => {
|
|
15133
15173
|
if (!addedList.length) {
|
|
15134
15174
|
const $scope7_id = _scope_id();
|
|
15135
|
-
_html(`<li${_attr_class([addedRow, "
|
|
15175
|
+
_html(`<li${_attr_class([addedRow, "_c5"])}>`);
|
|
15136
15176
|
_if(() => {
|
|
15137
15177
|
if (catalog) {
|
|
15138
15178
|
const $scope19_id = _scope_id();
|
|
@@ -15478,7 +15518,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15478
15518
|
_resume_branch($scope6_id);
|
|
15479
15519
|
}, $scope0_id) })
|
|
15480
15520
|
});
|
|
15481
|
-
_html(`<div${_attr_class("_eh")}><section${_attr_class("
|
|
15521
|
+
_html(`<div${_attr_class("_eh")}><section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Details</h2></div><div${_attr_class(list$2)}><div${_attr_class(flatCardRow)}><span${_attr_class("_gi")}>Name</span><span${_attr_class(["_gj", "_gk"])}>${_text_resume($scope0_id, "m", ws.name)}</span>`);
|
|
15482
15522
|
_if(() => {
|
|
15483
15523
|
if (ws.status !== "active") {
|
|
15484
15524
|
const $scope23_id = _scope_id();
|
|
@@ -15543,12 +15583,12 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15543
15583
|
_if(() => {
|
|
15544
15584
|
if (pendingAction && actionStep) {
|
|
15545
15585
|
const $scope10_id = _scope_id();
|
|
15546
|
-
_html(`<p${_attr_class("
|
|
15586
|
+
_html(`<p${_attr_class("_bT")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
15547
15587
|
writeScope($scope10_id, {});
|
|
15548
15588
|
return 0;
|
|
15549
15589
|
}
|
|
15550
15590
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
15551
|
-
_html(`<section${_attr_class("
|
|
15591
|
+
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Repos</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope0_id, "a4", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_gh"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
15552
15592
|
icon_plus_default({ size: 16 });
|
|
15553
15593
|
_html(`</button>${_el_resume($scope0_id, "a6")}`);
|
|
15554
15594
|
_set_serialize_reason(34);
|
|
@@ -15585,10 +15625,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15585
15625
|
size: 14,
|
|
15586
15626
|
class: catalogRefreshing && "_F"
|
|
15587
15627
|
});
|
|
15588
|
-
_html(`</button>${_el_resume($scope0_id, "aa")}</div><ul${_attr_class([list$2, "
|
|
15628
|
+
_html(`</button>${_el_resume($scope0_id, "aa")}</div><ul${_attr_class([list$2, "_cZ"])}>`);
|
|
15589
15629
|
_for_of(ws.repos, (row) => {
|
|
15590
15630
|
const $scope1_id = _scope_id();
|
|
15591
|
-
_html(`<li${_attr_class("
|
|
15631
|
+
_html(`<li${_attr_class("_c0")}><span${_attr_class(["_y", procCmd])}>${_text_resume($scope1_id, "c", row.worktree)}/</span><span${_attr_class("_c3")}><a${_attr_class("_K")}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_text_resume($scope1_id, "f", repoLabel$1(row.full_name))}</a>${_el_resume($scope1_id, "e")}`);
|
|
15592
15632
|
_if(() => {
|
|
15593
15633
|
if (row.base_branch !== row.default_branch) {
|
|
15594
15634
|
const $scope28_id = _scope_id();
|
|
@@ -15599,7 +15639,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15599
15639
|
return 0;
|
|
15600
15640
|
}
|
|
15601
15641
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
15602
|
-
_html(`</span><span${_attr_class("
|
|
15642
|
+
_html(`</span><span${_attr_class("_c4")}>`);
|
|
15603
15643
|
_if(() => {
|
|
15604
15644
|
if (busy.has(row.full_name)) {
|
|
15605
15645
|
const $scope29_id = _scope_id();
|
|
@@ -15611,7 +15651,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15611
15651
|
const $childScope5 = _peek_scope_id();
|
|
15612
15652
|
arm_button_default({
|
|
15613
15653
|
class: [
|
|
15614
|
-
"
|
|
15654
|
+
"_b4",
|
|
15615
15655
|
"_7",
|
|
15616
15656
|
"_8"
|
|
15617
15657
|
],
|
|
@@ -15642,16 +15682,16 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15642
15682
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
15643
15683
|
const $scope31_id = _scope_id();
|
|
15644
15684
|
_html(`<li${_attr_class([
|
|
15645
|
-
"
|
|
15646
|
-
"
|
|
15647
|
-
"
|
|
15648
|
-
])}><span${_attr_class("_G")}></span><span${_attr_class("
|
|
15685
|
+
"_c0",
|
|
15686
|
+
"_c1",
|
|
15687
|
+
"_bY"
|
|
15688
|
+
])}><span${_attr_class("_G")}></span><span${_attr_class("_b3")}>Adding ${_text_resume($scope31_id, "d", name, 2)}…</span></li>`);
|
|
15649
15689
|
writeScope($scope31_id, {});
|
|
15650
15690
|
}, (n) => n, $scope0_id, "ae", 1, 1, 1, 0, 1);
|
|
15651
15691
|
_if(() => {
|
|
15652
15692
|
if (!ws.repos.length && !busy.size) {
|
|
15653
15693
|
const $scope32_id = _scope_id();
|
|
15654
|
-
_html(`<li${_attr_class(["
|
|
15694
|
+
_html(`<li${_attr_class(["_c0", "_c1"])}><span${_attr_class("_b3")}>No repos yet. Add one to start.</span></li>`);
|
|
15655
15695
|
writeScope($scope32_id, {});
|
|
15656
15696
|
return 0;
|
|
15657
15697
|
}
|
|
@@ -15661,10 +15701,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15661
15701
|
_if(() => {
|
|
15662
15702
|
if (running.length) {
|
|
15663
15703
|
const $scope15_id = _scope_id();
|
|
15664
|
-
_html(`<section${_attr_class("
|
|
15704
|
+
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Running</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
15665
15705
|
_for_of(running, (p) => {
|
|
15666
15706
|
const $scope16_id = _scope_id();
|
|
15667
|
-
_html(`<li${_attr_class("
|
|
15707
|
+
_html(`<li${_attr_class("_c0")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", procCmd])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_c3"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_c4")}>`);
|
|
15668
15708
|
_for_of(p.ports, (port) => {
|
|
15669
15709
|
const $scope33_id = _scope_id();
|
|
15670
15710
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope33_id, "b", port, 2)}</button>${_el_resume($scope33_id, "a")}`);
|
|
@@ -15672,7 +15712,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15672
15712
|
writeScope($scope33_id, { d: port });
|
|
15673
15713
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
15674
15714
|
_html(`<span${_attr_class(["_y", "_f9"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
15675
|
-
"
|
|
15715
|
+
"_b4",
|
|
15676
15716
|
"_7",
|
|
15677
15717
|
"_gg"
|
|
15678
15718
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
@@ -15699,7 +15739,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15699
15739
|
_if(() => {
|
|
15700
15740
|
if (allSkills.length) {
|
|
15701
15741
|
const $scope2_id = _scope_id();
|
|
15702
|
-
_html(`<section${_attr_class("
|
|
15742
|
+
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Skills</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope2_id, "e", wsSkills.length)}/${_text_resume($scope2_id, "f", allSkills.length, 2)}</span></div><ul${_attr_class([list$2, "_cZ"])}>`);
|
|
15703
15743
|
_for_of(allSkills, ({ s, linked }) => {
|
|
15704
15744
|
const $scope3_id = _scope_id();
|
|
15705
15745
|
const isBusy = skillBusy.has(s.id);
|
|
@@ -15716,7 +15756,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15716
15756
|
return 0;
|
|
15717
15757
|
}
|
|
15718
15758
|
}, $scope3_id, "e", 1, 1, 1, 0, 1);
|
|
15719
|
-
_html(`</span><span${_attr_class(skillDesc)}${_attr_or("title", s.description, "")}>${_text_resume($scope3_id, "g", s.description || "")}</span>${_el_resume($scope3_id, "f")}<span${_attr_class("
|
|
15759
|
+
_html(`</span><span${_attr_class(skillDesc)}${_attr_or("title", s.description, "")}>${_text_resume($scope3_id, "g", s.description || "")}</span>${_el_resume($scope3_id, "f")}<span${_attr_class("_c4")}>`);
|
|
15720
15760
|
_if(() => {
|
|
15721
15761
|
if (s.broken) {
|
|
15722
15762
|
const $scope35_id = _scope_id();
|
|
@@ -15764,7 +15804,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15764
15804
|
const $childScope6 = _peek_scope_id();
|
|
15765
15805
|
arm_button_default({
|
|
15766
15806
|
class: [
|
|
15767
|
-
"
|
|
15807
|
+
"_b4",
|
|
15768
15808
|
"_7",
|
|
15769
15809
|
"_8",
|
|
15770
15810
|
"_gf"
|
|
@@ -15877,10 +15917,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15877
15917
|
});
|
|
15878
15918
|
_resume_branch($scope0_id);
|
|
15879
15919
|
});
|
|
15880
|
-
var curRow = "
|
|
15881
|
-
var archived = "
|
|
15882
|
-
var archivedHint = "
|
|
15883
|
-
var archivedRow = "
|
|
15920
|
+
var curRow = "_fZ _c0";
|
|
15921
|
+
var archived = "_f4 _bU";
|
|
15922
|
+
var archivedHint = "_f5 _W";
|
|
15923
|
+
var archivedRow = "_f6 _cY _cW";
|
|
15884
15924
|
//#endregion
|
|
15885
15925
|
//#region src/tags/icons/icon-group.marko
|
|
15886
15926
|
var icon_group_default = _template("ib", (input) => {
|
|
@@ -15900,8 +15940,8 @@ var icon_group_default = _template("ib", (input) => {
|
|
|
15900
15940
|
});
|
|
15901
15941
|
//#endregion
|
|
15902
15942
|
//#region src/tags/join-dialog.css.ts
|
|
15903
|
-
var dlg = "
|
|
15904
|
-
var hint = "
|
|
15943
|
+
var dlg = "_hS _g2";
|
|
15944
|
+
var hint = "_hT _W";
|
|
15905
15945
|
//#endregion
|
|
15906
15946
|
//#region src/tags/join-dialog.marko
|
|
15907
15947
|
var api$3;
|
|
@@ -16030,26 +16070,26 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16030
16070
|
content: _content("m12", () => {
|
|
16031
16071
|
_scope_reason();
|
|
16032
16072
|
const $scope1_id = _scope_id();
|
|
16033
|
-
_html(`<h2${_attr_class("
|
|
16073
|
+
_html(`<h2${_attr_class("_g3")}${_attr("id", titleId)}>Join a workspace</h2><p${_attr_class(hint)}>Paste an invite: the same repos, on your own lane of their branch.</p><textarea${_attr_class([
|
|
16034
16074
|
"_Y",
|
|
16035
16075
|
"_y",
|
|
16036
|
-
"
|
|
16076
|
+
"_hV"
|
|
16037
16077
|
])} placeholder="{ "name": …, "branch": …, "repos": ["owner/name", …] }" aria-label="Workspace invite" rows=6 autocomplete=off spellcheck=false${_attr("disabled", busy)} autofocus>${_attr_textarea_value($scope1_id, "c", invite, setInvite)}</textarea>${_el_resume($scope1_id, "c")}`);
|
|
16038
16078
|
_if(() => {
|
|
16039
16079
|
if (parsed.error) {
|
|
16040
16080
|
const $scope8_id = _scope_id();
|
|
16041
|
-
_html(`<p${_attr_class([hint, "
|
|
16081
|
+
_html(`<p${_attr_class([hint, "_hU"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16042
16082
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16043
16083
|
return 0;
|
|
16044
16084
|
} else if (parsed.ok) {
|
|
16045
16085
|
const $scope3_id = _scope_id();
|
|
16046
|
-
_html(`<ul${_attr_class("
|
|
16086
|
+
_html(`<ul${_attr_class("_hW")}>`);
|
|
16047
16087
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16048
16088
|
const $scope9_id = _scope_id();
|
|
16049
|
-
_html(`<li${_attr_class("
|
|
16089
|
+
_html(`<li${_attr_class("_hX")}><span${_attr_class("_hY")}>${_text_resume($scope9_id, "c", repoLabel$1(fullName))}</span></li>`);
|
|
16050
16090
|
writeScope($scope9_id, {});
|
|
16051
16091
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16052
|
-
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("
|
|
16092
|
+
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("_hZ")}><span${_attr_class("_b8")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
16053
16093
|
name = _new_name;
|
|
16054
16094
|
}, "m1", $scope3_id))}${_attr_class("_Y")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16055
16095
|
_script($scope3_id, "m8");
|
|
@@ -16086,10 +16126,10 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16086
16126
|
_if(() => {
|
|
16087
16127
|
if (busy && steps$2.length) {
|
|
16088
16128
|
const $scope6_id = _scope_id();
|
|
16089
|
-
_html(`<ul${_attr_class("
|
|
16129
|
+
_html(`<ul${_attr_class("_h0")}>`);
|
|
16090
16130
|
_for_of(steps$2, (step$2, i) => {
|
|
16091
16131
|
const $scope7_id = _scope_id();
|
|
16092
|
-
_html(`<li${_attr_class(["
|
|
16132
|
+
_html(`<li${_attr_class(["_h2", { ["_h1"]: i === steps$2.length - 1 }])}>`);
|
|
16093
16133
|
_if(() => {
|
|
16094
16134
|
if (i === steps$2.length - 1) {
|
|
16095
16135
|
const $scope10_id = _scope_id();
|
|
@@ -16098,7 +16138,7 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16098
16138
|
return 0;
|
|
16099
16139
|
} else {
|
|
16100
16140
|
const $scope11_id = _scope_id();
|
|
16101
|
-
_html(`<span${_attr_class("
|
|
16141
|
+
_html(`<span${_attr_class("_h3")}>`);
|
|
16102
16142
|
icon_check_default({ size: 14 });
|
|
16103
16143
|
_html("</span>");
|
|
16104
16144
|
writeScope($scope11_id, {});
|
|
@@ -16301,9 +16341,9 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16301
16341
|
return 0;
|
|
16302
16342
|
}
|
|
16303
16343
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16304
|
-
_html(`<label${_attr_class("
|
|
16344
|
+
_html(`<label${_attr_class("_fU")}><span${_attr_class("_b8")}>Name</span><input${_attr_input_value($scope0_id, "i", name, _resume((_new_name) => {
|
|
16305
16345
|
name = _new_name;
|
|
16306
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("
|
|
16346
|
+
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("_bU")}><div${_attr_class("_fX")}><h2${_attr_class("_b8")}>Repos</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope0_id, "n", selected.length)}</span><div${_attr_class("_z")}></div><button type=button${_attr_class([iconBtnRow, "_fW"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}${_attr("disabled", busy)}>`);
|
|
16307
16347
|
icon_plus_default({ size: 16 });
|
|
16308
16348
|
_html(`</button>${_el_resume($scope0_id, "p")}`);
|
|
16309
16349
|
_set_serialize_reason(34);
|
|
@@ -16341,14 +16381,14 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16341
16381
|
_html(`</button>${_el_resume($scope0_id, "t")}</div><ul${_attr_class(list$2)}>`);
|
|
16342
16382
|
_for_of(selected, (repo) => {
|
|
16343
16383
|
const $scope3_id = _scope_id();
|
|
16344
|
-
_html(`<li${_attr_class("
|
|
16384
|
+
_html(`<li${_attr_class("_fY")}><div${_attr_class(curRow)}><span${_attr_class("_c2")}>${_text_resume($scope3_id, "d", repoLabel$1(repo.fullName))}</span><span${_attr_class("_c4")}>`);
|
|
16345
16385
|
_if(() => {
|
|
16346
16386
|
if (repo.fork !== void 0) {
|
|
16347
16387
|
const $scope4_id = _scope_id();
|
|
16348
16388
|
_html(`<button${_attr_class([
|
|
16349
16389
|
chip$1,
|
|
16350
|
-
"
|
|
16351
|
-
{ ["
|
|
16390
|
+
"_c8",
|
|
16391
|
+
{ ["_c6"]: repo.fork }
|
|
16352
16392
|
])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
|
|
16353
16393
|
_if(() => {
|
|
16354
16394
|
if (repo.fork) {
|
|
@@ -16372,7 +16412,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16372
16412
|
_html(`<button${_attr_class([
|
|
16373
16413
|
chip$1,
|
|
16374
16414
|
"_y",
|
|
16375
|
-
{ ["
|
|
16415
|
+
{ ["_c6"]: branchesFor === repo.fullName }
|
|
16376
16416
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
16377
16417
|
icon_branch_default({ size: 12 });
|
|
16378
16418
|
_html(`${_text_resume($scope3_id, "i", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope3_id, "g")}<button${_attr_class([iconBtnXs, "_7"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -16381,7 +16421,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16381
16421
|
_if(() => {
|
|
16382
16422
|
if (branchesFor === repo.fullName) {
|
|
16383
16423
|
const $scope9_id = _scope_id();
|
|
16384
|
-
_html(`<div${_attr_class("
|
|
16424
|
+
_html(`<div${_attr_class("_f0")}>`);
|
|
16385
16425
|
const $childScope4 = _peek_scope_id();
|
|
16386
16426
|
branch_pick_default({
|
|
16387
16427
|
repo: repo.fullName,
|
|
@@ -16410,7 +16450,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16410
16450
|
_if(() => {
|
|
16411
16451
|
if (!selected.length) {
|
|
16412
16452
|
const $scope14_id = _scope_id();
|
|
16413
|
-
_html(`<li${_attr_class(["
|
|
16453
|
+
_html(`<li${_attr_class(["_c0", "_c5"])}>No repos yet. Add one above, or create it empty.</li>`);
|
|
16414
16454
|
writeScope($scope14_id, {});
|
|
16415
16455
|
return 0;
|
|
16416
16456
|
}
|
|
@@ -16419,10 +16459,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16419
16459
|
_if(() => {
|
|
16420
16460
|
if (busy && steps.length) {
|
|
16421
16461
|
const $scope10_id = _scope_id();
|
|
16422
|
-
_html(`<ul${_attr_class("
|
|
16462
|
+
_html(`<ul${_attr_class("_f1")}>`);
|
|
16423
16463
|
_for_of(steps, (step, i) => {
|
|
16424
16464
|
const $scope11_id = _scope_id();
|
|
16425
|
-
_html(`<li${_attr_class(["
|
|
16465
|
+
_html(`<li${_attr_class(["_f7", { ["_f2"]: i === steps.length - 1 }])}>`);
|
|
16426
16466
|
_if(() => {
|
|
16427
16467
|
if (i === steps.length - 1) {
|
|
16428
16468
|
const $scope15_id = _scope_id();
|
|
@@ -16431,7 +16471,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16431
16471
|
return 0;
|
|
16432
16472
|
} else {
|
|
16433
16473
|
const $scope16_id = _scope_id();
|
|
16434
|
-
_html(`<span${_attr_class("
|
|
16474
|
+
_html(`<span${_attr_class("_f3")}>`);
|
|
16435
16475
|
icon_check_default({ size: 14 });
|
|
16436
16476
|
_html("</span>");
|
|
16437
16477
|
writeScope($scope16_id, {});
|
|
@@ -16445,18 +16485,18 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16445
16485
|
return 0;
|
|
16446
16486
|
}
|
|
16447
16487
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
16448
|
-
_html(`<div${_attr_class("
|
|
16488
|
+
_html(`<div${_attr_class("_fS")}><button type=button${_attr_class([
|
|
16449
16489
|
btnLg,
|
|
16450
16490
|
"_r",
|
|
16451
|
-
"
|
|
16491
|
+
"_fT"
|
|
16452
16492
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "a1", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "a0")}</div></div><div${_attr_class("_eh")}>`);
|
|
16453
16493
|
_if(() => {
|
|
16454
16494
|
if (archived$1.length) {
|
|
16455
16495
|
const $scope5_id = _scope_id();
|
|
16456
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
16496
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fX")}><h2${_attr_class("_b8")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope5_id, "e", archived$1.length, $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class(list$2)}>`);
|
|
16457
16497
|
_for_of(archived$1, (ws) => {
|
|
16458
16498
|
const $scope6_id = _scope_id();
|
|
16459
|
-
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("
|
|
16499
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_b0")}><span${_attr_class("_b1")}>${_text_resume($scope6_id, "d", ws.name, $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_y"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope6_id, "f", ws.display_path || ws.path, $sg__input_workspaces)}</span>${_el_resume($scope6_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnSm)}${_attr("disabled", busy || !!restoring)}>`);
|
|
16460
16500
|
_if(() => {
|
|
16461
16501
|
if (restoring === ws.id) {
|
|
16462
16502
|
const $scope17_id = _scope_id();
|
|
@@ -16573,19 +16613,19 @@ var term_find_default = _template("H", (input) => {
|
|
|
16573
16613
|
const canStep = hasQuery && open;
|
|
16574
16614
|
const keybar = input.placement === "keybar";
|
|
16575
16615
|
_html(`<div${_attr_class([
|
|
16576
|
-
"
|
|
16577
|
-
keybar ? "
|
|
16578
|
-
!open && "
|
|
16579
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
16616
|
+
"_eI",
|
|
16617
|
+
keybar ? "_eK" : "_eJ",
|
|
16618
|
+
!open && "_eM"
|
|
16619
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eC", keybar ? "_eL" : "_eF"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
16580
16620
|
if (!open) return;
|
|
16581
16621
|
query = v;
|
|
16582
16622
|
live.query = v;
|
|
16583
16623
|
run(0);
|
|
16584
|
-
}, "H1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
16624
|
+
}, "H1", $scope0_id))}${_attr_class([findInput, keybar && "_eN"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_eO"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
16585
16625
|
icon_arrow_up_default({ size: 14 });
|
|
16586
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
16626
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_eO"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
16587
16627
|
icon_arrow_down_default({ size: 14 });
|
|
16588
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
16628
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_eO"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
16589
16629
|
icon_xmark_default({ size: 14 });
|
|
16590
16630
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
16591
16631
|
const $return = focusInput;
|
|
@@ -16736,7 +16776,7 @@ var term_default = _template("I", (input) => {
|
|
|
16736
16776
|
}
|
|
16737
16777
|
}, "I9", $scope0_id);
|
|
16738
16778
|
input.keys;
|
|
16739
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
16779
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_e0")}><div${_attr_class("_e1")}></div>${_el_resume($scope0_id, "b")}`);
|
|
16740
16780
|
_if(() => {
|
|
16741
16781
|
if (findOpen) {
|
|
16742
16782
|
const $scope4_id = _scope_id();
|
|
@@ -16763,7 +16803,7 @@ var term_default = _template("I", (input) => {
|
|
|
16763
16803
|
_if(() => {
|
|
16764
16804
|
if (uploading) {
|
|
16765
16805
|
const $scope5_id = _scope_id();
|
|
16766
|
-
_html(`<div${_attr_class("
|
|
16806
|
+
_html(`<div${_attr_class("_e7")}>uploading…</div>`);
|
|
16767
16807
|
writeScope($scope5_id, {});
|
|
16768
16808
|
return 0;
|
|
16769
16809
|
}
|
|
@@ -16771,7 +16811,7 @@ var term_default = _template("I", (input) => {
|
|
|
16771
16811
|
_if(() => {
|
|
16772
16812
|
if (copiedFlash) {
|
|
16773
16813
|
const $scope6_id = _scope_id();
|
|
16774
|
-
_html(`<div${_attr_class("
|
|
16814
|
+
_html(`<div${_attr_class("_e6")}>Copied</div>`);
|
|
16775
16815
|
writeScope($scope6_id, {});
|
|
16776
16816
|
return 0;
|
|
16777
16817
|
}
|
|
@@ -16780,7 +16820,7 @@ var term_default = _template("I", (input) => {
|
|
|
16780
16820
|
_if(() => {
|
|
16781
16821
|
if (trapOpen) {
|
|
16782
16822
|
const $scope3_id = _scope_id();
|
|
16783
|
-
_html(`<div${_attr_class("
|
|
16823
|
+
_html(`<div${_attr_class("_e8")}><div${_attr_class("_e9")}><p${_attr_class("_e_")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope3_id, "d")}<button${_attr_class("_q")}>Cancel</button>${_el_resume($scope3_id, "e")}</div>${_el_resume($scope3_id, "b")}</div>${_el_resume($scope3_id, "a")}`);
|
|
16784
16824
|
_script($scope3_id, "I16");
|
|
16785
16825
|
_script($scope3_id, "I17");
|
|
16786
16826
|
writeScope($scope3_id, {});
|
|
@@ -17042,7 +17082,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17042
17082
|
toggleDiff();
|
|
17043
17083
|
}
|
|
17044
17084
|
}, "N14", $scope0_id);
|
|
17045
|
-
_html(`<div${_attr_class(["
|
|
17085
|
+
_html(`<div${_attr_class(["_bO", { ["_bN"]: !input.active }])}><div${_attr_class("_bP")}>`);
|
|
17046
17086
|
_if(() => {
|
|
17047
17087
|
if (error) {
|
|
17048
17088
|
const $scope8_id = _scope_id();
|
|
@@ -17065,7 +17105,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17065
17105
|
_if(() => {
|
|
17066
17106
|
if (diffMounted && ws) {
|
|
17067
17107
|
const $scope1_id = _scope_id();
|
|
17068
|
-
_html(`<div${_attr_class("
|
|
17108
|
+
_html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
17069
17109
|
_set_serialize_reason({
|
|
17070
17110
|
0: $sg__input_workspace,
|
|
17071
17111
|
1: $sg__input_workspace,
|
|
@@ -17073,9 +17113,9 @@ var work_view_default = _template("N", (input) => {
|
|
|
17073
17113
|
3: 1,
|
|
17074
17114
|
5: 1,
|
|
17075
17115
|
7: $sg__input_workspace,
|
|
17076
|
-
8:
|
|
17116
|
+
8: $sg__input_workspace,
|
|
17077
17117
|
9: $sg__input_workspace,
|
|
17078
|
-
10:
|
|
17118
|
+
10: 1
|
|
17079
17119
|
});
|
|
17080
17120
|
const $childScope = _peek_scope_id();
|
|
17081
17121
|
let reviewFindFocus = $ReviewView_withLoadAssets({
|
|
@@ -17127,7 +17167,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17127
17167
|
_if(() => {
|
|
17128
17168
|
if (manageMounted && ws) {
|
|
17129
17169
|
const $scope2_id = _scope_id();
|
|
17130
|
-
_html(`<div${_attr_class("
|
|
17170
|
+
_html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
17131
17171
|
_set_serialize_reason({
|
|
17132
17172
|
0: $sg__input_workspace,
|
|
17133
17173
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -17153,7 +17193,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17153
17193
|
_if(() => {
|
|
17154
17194
|
if (settingsMounted) {
|
|
17155
17195
|
const $scope3_id = _scope_id();
|
|
17156
|
-
_html(`<div${_attr_class("
|
|
17196
|
+
_html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
17157
17197
|
_set_serialize_reason({
|
|
17158
17198
|
0: _serialize_guard($scope0_reason, 0),
|
|
17159
17199
|
1: $sg__input_workspace,
|
|
@@ -17195,7 +17235,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17195
17235
|
_if(() => {
|
|
17196
17236
|
if (newMounted) {
|
|
17197
17237
|
const $scope4_id = _scope_id();
|
|
17198
|
-
_html(`<div${_attr_class("
|
|
17238
|
+
_html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
17199
17239
|
_set_serialize_reason({
|
|
17200
17240
|
0: 1,
|
|
17201
17241
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -17220,13 +17260,13 @@ var work_view_default = _template("N", (input) => {
|
|
|
17220
17260
|
return 0;
|
|
17221
17261
|
}
|
|
17222
17262
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
17223
|
-
_html(`<div${_attr_class("
|
|
17263
|
+
_html(`<div${_attr_class("_bR")}${_attr("inert", view !== "term")}>`);
|
|
17224
17264
|
_if(() => {
|
|
17225
17265
|
if (ws && shownSessions) {
|
|
17226
17266
|
const $scope5_id = _scope_id();
|
|
17227
17267
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
17228
17268
|
const $scope6_id = _scope_id();
|
|
17229
|
-
_html(`<div${_attr_class("
|
|
17269
|
+
_html(`<div${_attr_class("_bS")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
17230
17270
|
_set_serialize_reason(2);
|
|
17231
17271
|
const $childScope5 = _peek_scope_id();
|
|
17232
17272
|
term_default({
|
|
@@ -17252,7 +17292,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17252
17292
|
_if(() => {
|
|
17253
17293
|
if (!shownSessions.length && view === "term") {
|
|
17254
17294
|
const $scope7_id = _scope_id();
|
|
17255
|
-
_html(`<div${_attr_class("
|
|
17295
|
+
_html(`<div${_attr_class("_b6")}><span>No sessions in this workspace.</span><button${_attr_class(["_q", "_r"])}${_attr("disabled", spawning)}>${_text_resume($scope7_id, "c", spawning ? "Starting…" : `Start ${input.preferred || "shell"}`)}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
17256
17296
|
_script($scope7_id, "N39");
|
|
17257
17297
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
17258
17298
|
return 0;
|
|
@@ -17262,7 +17302,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17262
17302
|
return 0;
|
|
17263
17303
|
} else if (ws) {
|
|
17264
17304
|
const $scope10_id = _scope_id();
|
|
17265
|
-
_html(`<p${_attr_class("
|
|
17305
|
+
_html(`<p${_attr_class("_b6")}>Loading sessions…</p>`);
|
|
17266
17306
|
writeScope($scope10_id, {});
|
|
17267
17307
|
return 1;
|
|
17268
17308
|
}
|
|
@@ -17381,8 +17421,8 @@ _template("xb", (input) => {
|
|
|
17381
17421
|
});
|
|
17382
17422
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
17383
17423
|
});
|
|
17384
|
-
var sessOpen = "
|
|
17385
|
-
var sessRename = "
|
|
17424
|
+
var sessOpen = "_er _I";
|
|
17425
|
+
var sessRename = "_ev _J";
|
|
17386
17426
|
//#endregion
|
|
17387
17427
|
//#region src/tags/usage-pcts.marko
|
|
17388
17428
|
var usage_pcts_default = _template("M", (input) => {
|
|
@@ -17394,22 +17434,22 @@ var usage_pcts_default = _template("M", (input) => {
|
|
|
17394
17434
|
if (windows.length) {
|
|
17395
17435
|
const $scope1_id = _scope_id();
|
|
17396
17436
|
_html(`<span${_attr_class([
|
|
17397
|
-
"
|
|
17437
|
+
"_hF",
|
|
17398
17438
|
input.class,
|
|
17399
|
-
{ ["
|
|
17439
|
+
{ ["_hG"]: agent.stale_seconds != null }
|
|
17400
17440
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
17401
17441
|
_for_of(windows, (win$1, i) => {
|
|
17402
17442
|
const $scope2_id = _scope_id();
|
|
17403
|
-
_html(`<span${_attr_class("
|
|
17443
|
+
_html(`<span${_attr_class("_hH")}>`);
|
|
17404
17444
|
_if(() => {
|
|
17405
17445
|
if (i) {
|
|
17406
17446
|
const $scope3_id = _scope_id();
|
|
17407
|
-
_html(`<span${_attr_class("
|
|
17447
|
+
_html(`<span${_attr_class("_hK")} aria-hidden=true>·</span>`);
|
|
17408
17448
|
$si__input_agent && writeScope($scope3_id, {});
|
|
17409
17449
|
return 0;
|
|
17410
17450
|
}
|
|
17411
17451
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
17412
|
-
_html(`<span${_attr_class("
|
|
17452
|
+
_html(`<span${_attr_class("_hI")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hJ", win$1.used_percent >= 90 ? "_hp" : win$1.used_percent >= 70 ? "_ho" : win$1.used_percent >= 40 ? "_hn" : "_hm"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
17413
17453
|
$si__input_agent && writeScope($scope2_id, {});
|
|
17414
17454
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
17415
17455
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -17451,7 +17491,7 @@ _template("n", (input) => {
|
|
|
17451
17491
|
align: "center",
|
|
17452
17492
|
gap: 8
|
|
17453
17493
|
}), "n2", $scope0_id);
|
|
17454
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17494
|
+
_html(`<button${_attr_class([kbtn, "_en"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
17455
17495
|
_set_serialize_reason({
|
|
17456
17496
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
17457
17497
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -17465,11 +17505,11 @@ _template("n", (input) => {
|
|
|
17465
17505
|
"_A",
|
|
17466
17506
|
"_bb",
|
|
17467
17507
|
phase[sessionPhase(current$2?.state)]
|
|
17468
|
-
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["_9", "
|
|
17508
|
+
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["_9", "_eo"])}>`);
|
|
17469
17509
|
_for_of(input.sessions, (s) => {
|
|
17470
17510
|
const $scope1_id = _scope_id();
|
|
17471
17511
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17472
|
-
_html(`<div${_attr_class(["
|
|
17512
|
+
_html(`<div${_attr_class(["_eq", { ["_ep"]: s.id === input.sessionId }])}>`);
|
|
17473
17513
|
_if(() => {
|
|
17474
17514
|
if (renamingId === s.id) {
|
|
17475
17515
|
const $scope5_id = _scope_id();
|
|
@@ -17501,7 +17541,7 @@ _template("n", (input) => {
|
|
|
17501
17541
|
agent: activeAgent(s),
|
|
17502
17542
|
size: 14
|
|
17503
17543
|
});
|
|
17504
|
-
_html(`<span${_attr_class("
|
|
17544
|
+
_html(`<span${_attr_class("_es")}><span${_attr_class("_eu")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17505
17545
|
_if(() => {
|
|
17506
17546
|
if (s.id === input.sessionId) {
|
|
17507
17547
|
const $scope7_id = _scope_id();
|
|
@@ -17513,7 +17553,7 @@ _template("n", (input) => {
|
|
|
17513
17553
|
const $childScope4 = _peek_scope_id();
|
|
17514
17554
|
usage_pcts_default({
|
|
17515
17555
|
agent: plan,
|
|
17516
|
-
class: "
|
|
17556
|
+
class: "_et"
|
|
17517
17557
|
});
|
|
17518
17558
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
17519
17559
|
return 0;
|
|
@@ -17530,7 +17570,7 @@ _template("n", (input) => {
|
|
|
17530
17570
|
_if(() => {
|
|
17531
17571
|
if (input.onRenameSession) {
|
|
17532
17572
|
const $scope6_id = _scope_id();
|
|
17533
|
-
_html(`<button${_attr_class(["
|
|
17573
|
+
_html(`<button${_attr_class(["_ew", "_ex"])} title="Rename session">`);
|
|
17534
17574
|
icon_edit_default({ size: 12 });
|
|
17535
17575
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
17536
17576
|
_script($scope6_id, "n5");
|
|
@@ -17542,7 +17582,7 @@ _template("n", (input) => {
|
|
|
17542
17582
|
if (input.onCloseSession) {
|
|
17543
17583
|
const $scope3_id = _scope_id();
|
|
17544
17584
|
arm_button_default({
|
|
17545
|
-
class: ["
|
|
17585
|
+
class: ["_ew", "_7"],
|
|
17546
17586
|
title: "Close session",
|
|
17547
17587
|
armedTitle: "Close?",
|
|
17548
17588
|
onFire: _resume(function() {
|
|
@@ -17574,7 +17614,7 @@ _template("n", (input) => {
|
|
|
17574
17614
|
m: $si__input_sessions && $for_content__s_agent__closures
|
|
17575
17615
|
});
|
|
17576
17616
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
17577
|
-
_html(`<div${_attr_class("
|
|
17617
|
+
_html(`<div${_attr_class("_ey")}><span${_attr_class("_ez")}>New session</span><div${_attr_class("_eA")}>`);
|
|
17578
17618
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
17579
17619
|
const $scope4_id = _scope_id();
|
|
17580
17620
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -26743,4 +26783,4 @@ server.listen(port, () => {
|
|
|
26743
26783
|
//#endregion
|
|
26744
26784
|
export {};
|
|
26745
26785
|
|
|
26746
|
-
;var __MARKO_MANIFEST__={"
|
|
26786
|
+
;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-BMHAhFnh.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BMHAhFnh.css\"",">",2,"stylesheet#/assets/app-page-DvUDS-Nm.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DvUDS-Nm.css\"",">"],"defer":[2,"/assets/settings-Bkg60hwf.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-Bkg60hwf.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_C6212Nw9.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C6212Nw9.js\"",">",2,"modulepreload#/assets/_DE2tMcj8.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DE2tMcj8.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-BMHAhFnh.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BMHAhFnh.css\"",">",2,"stylesheet#/assets/app-page-DvUDS-Nm.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DvUDS-Nm.css\"",">"],"defer":[2,"/assets/new-Bkg60hwf.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-Bkg60hwf.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_C6212Nw9.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C6212Nw9.js\"",">",2,"modulepreload#/assets/_DE2tMcj8.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DE2tMcj8.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-BMHAhFnh.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BMHAhFnh.css\"",">",2,"stylesheet#/assets/app-page-DvUDS-Nm.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DvUDS-Nm.css\"",">"],"defer":[2,"/assets/w-Bkg60hwf.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-Bkg60hwf.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_C6212Nw9.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C6212Nw9.js\"",">",2,"modulepreload#/assets/_DE2tMcj8.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DE2tMcj8.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-BMHAhFnh.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BMHAhFnh.css\"",">",2,"stylesheet#/assets/app-page-DvUDS-Nm.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DvUDS-Nm.css\"",">"],"defer":[2,"/assets/w._-Bkg60hwf.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-Bkg60hwf.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_C6212Nw9.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C6212Nw9.js\"",">",2,"modulepreload#/assets/_DE2tMcj8.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DE2tMcj8.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-BMHAhFnh.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BMHAhFnh.css\"",">",2,"stylesheet#/assets/app-page-DvUDS-Nm.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DvUDS-Nm.css\"",">"],"defer":[2,"/assets/w._-CFyjiteu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CFyjiteu.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_C6212Nw9.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C6212Nw9.js\"",">",2,"modulepreload#/assets/_DE2tMcj8.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DE2tMcj8.js\"",">"]},"_A":{"block":[2,"stylesheet#/assets/review-view-BY1aZ_F6.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/review-view-BY1aZ_F6.css\"",">",2,"stylesheet#/assets/icon-arrow-down-BMHAhFnh.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-BMHAhFnh.css\"",">"],"defer":[2,"/assets/review-view-By-sVWe_.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/review-view-By-sVWe_.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">"]}};
|