@dylanpiercey/work 0.0.180 → 0.0.182
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 +433 -415
- package/dist/public/assets/_BICElacz.js +1 -0
- package/dist/public/assets/_BMOpYmn0.js +1 -0
- package/dist/public/assets/{_CWOQeVjT.js → _Bbb0obIK.js} +1 -1
- package/dist/public/assets/_Bbb0obIK.js.br +0 -0
- package/dist/public/assets/_Bd3gdQ68.js +1 -0
- package/dist/public/assets/_BdW1bKcw.js +1 -0
- package/dist/public/assets/_BdvPU7Di.js +1 -0
- package/dist/public/assets/_BfCJyIIJ.js +1 -0
- package/dist/public/assets/_CDN7b1PS.js +1 -0
- package/dist/public/assets/_CJVT0sGn.js +1 -0
- package/dist/public/assets/_CXvVT7JV.js +1 -0
- package/dist/public/assets/_Ck6Jru3P.js +1 -0
- package/dist/public/assets/_Ckwhifk1.js +1 -0
- package/dist/public/assets/{_B-oTUisw.js → _Copa-S58.js} +5 -5
- package/dist/public/assets/_Copa-S58.js.br +0 -0
- package/dist/public/assets/_Cwl5JOd1.js +1 -0
- package/dist/public/assets/_CxUa_rZi.js +1 -0
- package/dist/public/assets/_D3brsROJ.js +1 -0
- package/dist/public/assets/_DBzOQuSX.js +1 -0
- package/dist/public/assets/{_D1_IgqEt.js → _DsRQHgm-.js} +4 -4
- package/dist/public/assets/_DsRQHgm-.js.br +0 -0
- package/dist/public/assets/_DyL9q7bV.js +1 -0
- package/dist/public/assets/_EKJ-J3wN.js +1 -0
- package/dist/public/assets/_EWxiPCIy.js +1 -0
- package/dist/public/assets/_FHNAON9-.js +1 -0
- package/dist/public/assets/_Idy-aciQ.js +1 -0
- package/dist/public/assets/_WAvT26jc.js +1 -0
- package/dist/public/assets/app-page-BYNyMjnm.css +1 -0
- package/dist/public/assets/app-page-BYNyMjnm.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-CnC9B8zr.css → icon-arrow-down-TOdaaJnn.css} +1 -1
- package/dist/public/assets/icon-arrow-down-TOdaaJnn.css.br +0 -0
- package/dist/public/assets/new-TRRAOL2P.js +1 -0
- package/dist/public/assets/review-view-BseVb3Ec.js +2 -0
- package/dist/public/assets/{review-view-BYC11tmH.css → review-view-SU0xXAXL.css} +1 -1
- package/dist/public/assets/review-view-SU0xXAXL.css.br +0 -0
- package/dist/public/assets/settings-TRRAOL2P.js +1 -0
- package/dist/public/assets/w-TRRAOL2P.js +1 -0
- package/dist/public/assets/w._-TRRAOL2P.js +1 -0
- package/dist/public/assets/w._-V4uDxpzm.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_9Dw0rpRB.js +0 -1
- package/dist/public/assets/_B-oTUisw.js.br +0 -0
- package/dist/public/assets/_BJMBesC8.js +0 -1
- package/dist/public/assets/_BaB2KTgs.js +0 -1
- package/dist/public/assets/_BafWVR1Z.js +0 -1
- package/dist/public/assets/_BdyS62ck.js +0 -1
- package/dist/public/assets/_CAiITnSL.js +0 -1
- package/dist/public/assets/_CWOQeVjT.js.br +0 -0
- package/dist/public/assets/_ChYNFrbw.js +0 -1
- package/dist/public/assets/_CoVBMgR8.js +0 -1
- package/dist/public/assets/_Cwrxarqf.js +0 -1
- package/dist/public/assets/_D1_IgqEt.js.br +0 -0
- package/dist/public/assets/_DLAN1x2w.js +0 -1
- package/dist/public/assets/_DTpscZKE.js +0 -1
- package/dist/public/assets/_Ddm9l-a6.js +0 -1
- package/dist/public/assets/_Dkh2Hw3W.js +0 -1
- package/dist/public/assets/_DnVYWVdu.js +0 -1
- package/dist/public/assets/_DxXAXTdz.js +0 -1
- package/dist/public/assets/_VR1nKvIB.js +0 -1
- package/dist/public/assets/_gKHSDI0E.js +0 -1
- package/dist/public/assets/_qaArnTZN.js +0 -1
- package/dist/public/assets/_sJ4x-tl2.js +0 -1
- package/dist/public/assets/_yTfgsrNO.js +0 -1
- package/dist/public/assets/_zFEdMvq1.js +0 -1
- package/dist/public/assets/app-page-ujOO9O9j.css +0 -1
- package/dist/public/assets/app-page-ujOO9O9j.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-CnC9B8zr.css.br +0 -0
- package/dist/public/assets/new-OkHtBkzU.js +0 -1
- package/dist/public/assets/review-view-BYC11tmH.css.br +0 -0
- package/dist/public/assets/review-view-X_RUf4F7.js +0 -2
- package/dist/public/assets/settings-OkHtBkzU.js +0 -1
- package/dist/public/assets/w-OkHtBkzU.js +0 -1
- package/dist/public/assets/w._-Bl7_ITGh.js +0 -1
- package/dist/public/assets/w._-OkHtBkzU.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -7318,19 +7318,19 @@ function applyInstance(inst) {
|
|
|
7318
7318
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7319
7319
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7320
7320
|
}
|
|
7321
|
-
var agentRow = "
|
|
7322
|
-
var toolGrid = "
|
|
7323
|
-
var toolRow = "
|
|
7324
|
-
var themeSeg = "
|
|
7325
|
-
var checkList = "
|
|
7326
|
-
var list$2 = "
|
|
7327
|
-
var flatCardRow = "
|
|
7328
|
-
var chip$1 = "
|
|
7329
|
-
var pop$1 = "
|
|
7330
|
-
var spinner = "
|
|
7331
|
-
var busy = "
|
|
7332
|
-
var pop = "
|
|
7333
|
-
var sectionCount$1 = "
|
|
7321
|
+
var agentRow = "_c1 _cC";
|
|
7322
|
+
var toolGrid = "_c9 _cM";
|
|
7323
|
+
var toolRow = "_c_ _cN";
|
|
7324
|
+
var themeSeg = "_dw _bd";
|
|
7325
|
+
var checkList = "_d2 _cg";
|
|
7326
|
+
var list$2 = "_cO _ci _cB _cM";
|
|
7327
|
+
var flatCardRow = "_cP _cN";
|
|
7328
|
+
var chip$1 = "_cY _X _W";
|
|
7329
|
+
var pop$1 = "_ec _9";
|
|
7330
|
+
var spinner = "_ef _1 _G";
|
|
7331
|
+
var busy = "_ej _ei";
|
|
7332
|
+
var pop = "_el _9";
|
|
7333
|
+
var sectionCount$1 = "_cf _N _O";
|
|
7334
7334
|
//#endregion
|
|
7335
7335
|
//#region src/tags/icons/icon-refresh.marko
|
|
7336
7336
|
var icon_refresh_default = _template("pb", (input) => {
|
|
@@ -7370,18 +7370,18 @@ var icon_back_default = _template("V", (input) => {
|
|
|
7370
7370
|
var page_head_default = _template("t", (input) => {
|
|
7371
7371
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
|
|
7372
7372
|
const $scope0_id = _scope_id();
|
|
7373
|
-
_html(`<header${_attr_class("
|
|
7373
|
+
_html(`<header${_attr_class("_cw")}>`);
|
|
7374
7374
|
_if(() => {
|
|
7375
7375
|
if (input.backHref) {
|
|
7376
7376
|
const $scope1_id = _scope_id();
|
|
7377
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7377
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_eB"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7378
7378
|
icon_back_default({ size: 14 });
|
|
7379
7379
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7380
7380
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7381
7381
|
return 0;
|
|
7382
7382
|
} else if (input.onBack) {
|
|
7383
7383
|
const $scope2_id = _scope_id();
|
|
7384
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7384
|
+
_html(`<button${_attr_class([iconBtnRow, "_eB"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7385
7385
|
icon_back_default({ size: 14 });
|
|
7386
7386
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7387
7387
|
_script($scope2_id, "t0");
|
|
@@ -7389,11 +7389,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
7389
7389
|
return 1;
|
|
7390
7390
|
}
|
|
7391
7391
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
7392
|
-
_html(`<div${_attr_class("
|
|
7392
|
+
_html(`<div${_attr_class("_cy")}><h1${_attr("id", input.titleId)}${_attr_class("_cx")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7393
7393
|
_if(() => {
|
|
7394
7394
|
if (input.meta) {
|
|
7395
7395
|
const $scope3_id = _scope_id();
|
|
7396
|
-
_html(`<p${_attr_class("
|
|
7396
|
+
_html(`<p${_attr_class("_cz")}>`);
|
|
7397
7397
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7398
7398
|
_html("</p>");
|
|
7399
7399
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7404,7 +7404,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
7404
7404
|
_if(() => {
|
|
7405
7405
|
if (input.actions) {
|
|
7406
7406
|
const $scope4_id = _scope_id();
|
|
7407
|
-
_html(`<div${_attr_class("
|
|
7407
|
+
_html(`<div${_attr_class("_cA")}>`);
|
|
7408
7408
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7409
7409
|
_html("</div>");
|
|
7410
7410
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7472,7 +7472,7 @@ var icon_agent_default = _template("P", (input) => {
|
|
|
7472
7472
|
n: $badge__closures
|
|
7473
7473
|
});
|
|
7474
7474
|
});
|
|
7475
|
-
var usageNote = "
|
|
7475
|
+
var usageNote = "_ho _W";
|
|
7476
7476
|
//#endregion
|
|
7477
7477
|
//#region src/tags/icons/icon-warning.marko
|
|
7478
7478
|
var icon_warning_default = _template("xb", (input) => {
|
|
@@ -7502,11 +7502,11 @@ var usage_meters_default = _template("L", (input) => {
|
|
|
7502
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);
|
|
7503
7503
|
const $scope0_id = _scope_id();
|
|
7504
7504
|
const agent = input.agent;
|
|
7505
|
-
_html(`<div${_attr_class(["
|
|
7505
|
+
_html(`<div${_attr_class(["_hi", { ["_hj"]: input.hideName }])}><div${_attr_class("_hk")}>`);
|
|
7506
7506
|
_if(() => {
|
|
7507
7507
|
if (!input.hideName) {
|
|
7508
7508
|
const $scope1_id = _scope_id();
|
|
7509
|
-
_html(`<strong${_attr_class("
|
|
7509
|
+
_html(`<strong${_attr_class("_hD")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7510
7510
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7511
7511
|
return 0;
|
|
7512
7512
|
}
|
|
@@ -7514,7 +7514,7 @@ var usage_meters_default = _template("L", (input) => {
|
|
|
7514
7514
|
_if(() => {
|
|
7515
7515
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7516
7516
|
const $scope2_id = _scope_id();
|
|
7517
|
-
_html(`<span${_attr_class("
|
|
7517
|
+
_html(`<span${_attr_class("_hl")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7518
7518
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7519
7519
|
return 0;
|
|
7520
7520
|
}
|
|
@@ -7522,21 +7522,21 @@ var usage_meters_default = _template("L", (input) => {
|
|
|
7522
7522
|
_if(() => {
|
|
7523
7523
|
if (agent.stale_seconds != null) {
|
|
7524
7524
|
const $scope3_id = _scope_id();
|
|
7525
|
-
_html(`<span${_attr_class("
|
|
7525
|
+
_html(`<span${_attr_class("_hm")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7526
7526
|
icon_warning_default({ size: 12 });
|
|
7527
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)}`);
|
|
7528
7528
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7529
7529
|
return 0;
|
|
7530
7530
|
}
|
|
7531
7531
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7532
|
-
_html(`</div><div${_attr_class(["
|
|
7532
|
+
_html(`</div><div${_attr_class(["_hn", { ["_hE"]: agent.stale_seconds != null }])}>`);
|
|
7533
7533
|
_for_of(agent.windows || [], (win) => {
|
|
7534
7534
|
const $scope4_id = _scope_id();
|
|
7535
7535
|
const pct = pctText(win.used_percent);
|
|
7536
7536
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7537
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7538
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7539
|
-
_html(`<div${_attr_class("
|
|
7537
|
+
const fillClass = win.used_percent >= 90 ? "_hw" : win.used_percent >= 70 ? "_hv" : win.used_percent >= 40 ? "_hu" : "_ht";
|
|
7538
|
+
const pctClass = win.used_percent >= 90 ? "_hB" : win.used_percent >= 70 ? "_hA" : win.used_percent >= 40 ? "_hz" : "_hy";
|
|
7539
|
+
_html(`<div${_attr_class("_hp")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_hq")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_hr")}><span${_attr_class(["_hs", 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(["_hx", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hC")}>`);
|
|
7540
7540
|
_if(() => {
|
|
7541
7541
|
if (label) {
|
|
7542
7542
|
const $scope6_id = _scope_id();
|
|
@@ -7635,10 +7635,10 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7635
7635
|
}
|
|
7636
7636
|
}, $scope0_id, "a", 1, 1, 1, 0, 1);
|
|
7637
7637
|
_html(`<form${_attr_class([
|
|
7638
|
-
"
|
|
7638
|
+
"_d6",
|
|
7639
7639
|
input$3.class,
|
|
7640
|
-
{ ["
|
|
7641
|
-
])}><label${_attr_class(["_0", "
|
|
7640
|
+
{ ["_d7"]: !open }
|
|
7641
|
+
])}><label${_attr_class(["_0", "_d9"])}>`);
|
|
7642
7642
|
_if(() => {
|
|
7643
7643
|
if (input$3.searching) {
|
|
7644
7644
|
const $scope5_id = _scope_id();
|
|
@@ -7665,7 +7665,7 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7665
7665
|
}, "b0", $scope0_id))}${_attr_class([
|
|
7666
7666
|
"_Y",
|
|
7667
7667
|
"_2",
|
|
7668
|
-
"
|
|
7668
|
+
"_d_"
|
|
7669
7669
|
])} type=text${_attr("placeholder", input$3.placeholder)}${_attr("aria-label", input$3.ariaLabel)} autocomplete=off spellcheck=false>${_el_resume($scope0_id, "e")}</label>`);
|
|
7670
7670
|
_if(() => {
|
|
7671
7671
|
if (input$3.submitLabel) {
|
|
@@ -7673,19 +7673,19 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7673
7673
|
_html(`<button${_attr_class([
|
|
7674
7674
|
btnSm,
|
|
7675
7675
|
"_r",
|
|
7676
|
-
"
|
|
7676
|
+
"_ea"
|
|
7677
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")}`);
|
|
7678
7678
|
writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7679
7679
|
return 0;
|
|
7680
7680
|
}
|
|
7681
7681
|
}, $scope0_id, "f", 1, _serialize_guard($scope0_reason, 7), 1, 0, 1);
|
|
7682
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7682
|
+
_html(`<button${_attr_class([iconBtnRow, "_eb"])} type=button${_attr("hidden", !open)} title=Close aria-label=Close${_attr("disabled", input$3.busy)}>`);
|
|
7683
7683
|
icon_xmark_default({ size: 14 });
|
|
7684
7684
|
_html(`</button>${_el_resume($scope0_id, "g")}`);
|
|
7685
7685
|
_if(() => {
|
|
7686
7686
|
if (input$3.content) {
|
|
7687
7687
|
const $scope4_id = _scope_id();
|
|
7688
|
-
_html(`<ul${_attr_class([pop$1, "
|
|
7688
|
+
_html(`<ul${_attr_class([pop$1, "_ed"])} data-add-pop${_attr("hidden", !open || !value.trim())}>`);
|
|
7689
7689
|
_dynamic_tag($scope4_id, "b", input$3.content, {}, 0, 0, $sg__input_content);
|
|
7690
7690
|
_html(`</ul>${_el_resume($scope4_id, "a")}`);
|
|
7691
7691
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7812,14 +7812,14 @@ var sso_auth_default = _template("G", (input) => {
|
|
|
7812
7812
|
localCode = null;
|
|
7813
7813
|
}
|
|
7814
7814
|
}, "G0", $scope0_id);
|
|
7815
|
-
_html(`<div${_attr_class(["
|
|
7815
|
+
_html(`<div${_attr_class(["_g1", input.class])}>`);
|
|
7816
7816
|
_for_of(input.items, (s) => {
|
|
7817
7817
|
const $scope1_id = _scope_id();
|
|
7818
|
-
_html(`<div${_attr_class("
|
|
7818
|
+
_html(`<div${_attr_class("_g2")}><span${_attr_class("_g4")}><span${_attr_class("_g5")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_g6", "_g7"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7819
7819
|
_if(() => {
|
|
7820
7820
|
if (!busy) {
|
|
7821
7821
|
const $scope2_id = _scope_id();
|
|
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, "
|
|
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, "_g8"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7823
7823
|
_script($scope2_id, "G1");
|
|
7824
7824
|
writeScope($scope2_id, {});
|
|
7825
7825
|
return 0;
|
|
@@ -7834,13 +7834,13 @@ var sso_auth_default = _template("G", (input) => {
|
|
|
7834
7834
|
_if(() => {
|
|
7835
7835
|
if (localBusy && localCode) {
|
|
7836
7836
|
const $scope4_id = _scope_id();
|
|
7837
|
-
_html(`<div${_attr_class(["
|
|
7837
|
+
_html(`<div${_attr_class(["_g2", "_g9"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_g_")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_ha")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7838
7838
|
_script($scope4_id, "G2");
|
|
7839
7839
|
writeScope($scope4_id, {});
|
|
7840
7840
|
return 0;
|
|
7841
7841
|
} else if (localBusy) {
|
|
7842
7842
|
const $scope6_id = _scope_id();
|
|
7843
|
-
_html(`<div${_attr_class(["
|
|
7843
|
+
_html(`<div${_attr_class(["_g2", "_g9"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7844
7844
|
writeScope($scope6_id, {});
|
|
7845
7845
|
return 1;
|
|
7846
7846
|
}
|
|
@@ -7848,14 +7848,14 @@ var sso_auth_default = _template("G", (input) => {
|
|
|
7848
7848
|
_if(() => {
|
|
7849
7849
|
if (localError) {
|
|
7850
7850
|
const $scope5_id = _scope_id();
|
|
7851
|
-
_html(`<p${_attr_class(["
|
|
7851
|
+
_html(`<p${_attr_class(["_g2", "_hb"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7852
7852
|
writeScope($scope5_id, {});
|
|
7853
7853
|
return 0;
|
|
7854
7854
|
}
|
|
7855
7855
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7856
7856
|
_for_of(skipped, (s) => {
|
|
7857
7857
|
const $scope3_id = _scope_id();
|
|
7858
|
-
_html(`<div${_attr_class(["
|
|
7858
|
+
_html(`<div${_attr_class(["_g2", "_g3"])}><span${_attr_class("_g4")}><span${_attr_class("_g5")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_g6")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_g8"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7859
7859
|
_script($scope3_id, "G3");
|
|
7860
7860
|
writeScope($scope3_id, {
|
|
7861
7861
|
i: s?.org,
|
|
@@ -7906,7 +7906,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7906
7906
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7907
7907
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7908
7908
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7909
|
-
_html(`<li${_attr_class("
|
|
7909
|
+
_html(`<li${_attr_class("_eh")}>`);
|
|
7910
7910
|
_if(() => {
|
|
7911
7911
|
if (input.busy != null) {
|
|
7912
7912
|
const $scope1_id = _scope_id();
|
|
@@ -7916,20 +7916,20 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7916
7916
|
} else {
|
|
7917
7917
|
const $scope2_id = _scope_id();
|
|
7918
7918
|
const popId = _id();
|
|
7919
|
-
_html(`<button${_attr_class("
|
|
7919
|
+
_html(`<button${_attr_class("_ei")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7920
7920
|
_if(() => {
|
|
7921
7921
|
if (input.hint) {
|
|
7922
7922
|
const $scope3_id = _scope_id();
|
|
7923
|
-
_html(`<span${_attr_class("
|
|
7923
|
+
_html(`<span${_attr_class("_ek")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7924
7924
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7925
7925
|
return 0;
|
|
7926
7926
|
}
|
|
7927
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);
|
|
7928
|
-
_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(["_ck", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7929
7929
|
_if(() => {
|
|
7930
7930
|
if (input.description) {
|
|
7931
7931
|
const $scope4_id = _scope_id();
|
|
7932
|
-
_html(`<span${_attr_class("
|
|
7932
|
+
_html(`<span${_attr_class("_cm")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7933
7933
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7934
7934
|
return 0;
|
|
7935
7935
|
}
|
|
@@ -7937,12 +7937,12 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7937
7937
|
_if(() => {
|
|
7938
7938
|
if (input.sourceUrl) {
|
|
7939
7939
|
const $scope5_id = _scope_id();
|
|
7940
|
-
_html(`<a${_attr_class(["
|
|
7940
|
+
_html(`<a${_attr_class(["_cm", "_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))}`);
|
|
7941
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) })));
|
|
7942
7942
|
return 0;
|
|
7943
7943
|
} else if (input.source) {
|
|
7944
7944
|
const $scope6_id = _scope_id();
|
|
7945
|
-
_html(`<span${_attr_class("
|
|
7945
|
+
_html(`<span${_attr_class("_cm")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7946
7946
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7947
7947
|
_: _scope_with_id($scope2_id),
|
|
7948
7948
|
Cs: $si__input_source && 1
|
|
@@ -7950,7 +7950,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7950
7950
|
return 1;
|
|
7951
7951
|
} else if (input.noteLocal) {
|
|
7952
7952
|
const $scope10_id = _scope_id();
|
|
7953
|
-
_html(`<span${_attr_class(["
|
|
7953
|
+
_html(`<span${_attr_class(["_cm", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7954
7954
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7955
7955
|
return 2;
|
|
7956
7956
|
}
|
|
@@ -7958,7 +7958,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7958
7958
|
_if(() => {
|
|
7959
7959
|
if (input.tags) {
|
|
7960
7960
|
const $scope7_id = _scope_id();
|
|
7961
|
-
_html(`<span${_attr_class("
|
|
7961
|
+
_html(`<span${_attr_class("_cl")}>`);
|
|
7962
7962
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7963
7963
|
_html("</span>");
|
|
7964
7964
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7968,7 +7968,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7968
7968
|
_if(() => {
|
|
7969
7969
|
if (input.actions) {
|
|
7970
7970
|
const $scope8_id = _scope_id();
|
|
7971
|
-
_html(`<div${_attr_class("
|
|
7971
|
+
_html(`<div${_attr_class("_em")}>`);
|
|
7972
7972
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7973
7973
|
_html("</div>");
|
|
7974
7974
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -8079,7 +8079,7 @@ var icon_moon_default = _template("nb", (input) => {
|
|
|
8079
8079
|
});
|
|
8080
8080
|
//#endregion
|
|
8081
8081
|
//#region src/tags/prompt-dialog.css.ts
|
|
8082
|
-
var promptDlg = "
|
|
8082
|
+
var promptDlg = "_hh _hd";
|
|
8083
8083
|
//#endregion
|
|
8084
8084
|
//#region src/tags/dialog-close.marko
|
|
8085
8085
|
var dialog_close_default = _template("h", (input) => {
|
|
@@ -8103,7 +8103,7 @@ var modal_view_default = _template("q", (input) => {
|
|
|
8103
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;
|
|
8104
8104
|
const dismissable = input.dismissable !== false;
|
|
8105
8105
|
let open = input.open;
|
|
8106
|
-
_html(`<dialog${_attr_class(["
|
|
8106
|
+
_html(`<dialog${_attr_class(["_hc", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
8107
8107
|
...htmlInput,
|
|
8108
8108
|
open: null
|
|
8109
8109
|
}, {
|
|
@@ -8113,20 +8113,20 @@ var modal_view_default = _template("q", (input) => {
|
|
|
8113
8113
|
closedby: 1,
|
|
8114
8114
|
"on-cancel": 1,
|
|
8115
8115
|
"on-close": 1
|
|
8116
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
8116
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_hf")}>`);
|
|
8117
8117
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
8118
8118
|
_html("</div>");
|
|
8119
8119
|
_if(() => {
|
|
8120
8120
|
if (footer) {
|
|
8121
8121
|
const $scope1_id = _scope_id();
|
|
8122
|
-
_html(`<form method=dialog${_attr_class("
|
|
8122
|
+
_html(`<form method=dialog${_attr_class("_hg")}>`);
|
|
8123
8123
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
8124
8124
|
_html("</form>");
|
|
8125
8125
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
8126
8126
|
return 0;
|
|
8127
8127
|
} else if (input.openChange) {
|
|
8128
8128
|
const $scope2_id = _scope_id();
|
|
8129
|
-
_html(`<form method=dialog${_attr_class("
|
|
8129
|
+
_html(`<form method=dialog${_attr_class("_hg")}>`);
|
|
8130
8130
|
dialog_close_default({
|
|
8131
8131
|
class: ["_q", "_r"],
|
|
8132
8132
|
content: _content("q0", () => {
|
|
@@ -8210,7 +8210,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
8210
8210
|
content: _content("u7", () => {
|
|
8211
8211
|
_scope_reason();
|
|
8212
8212
|
const $scope2_id = _scope_id();
|
|
8213
|
-
_html(`<h2${_attr_class("
|
|
8213
|
+
_html(`<h2${_attr_class("_he")}${_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) => {
|
|
8214
8214
|
value = _new_value;
|
|
8215
8215
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8216
8216
|
_script($scope2_id, "u5");
|
|
@@ -8754,7 +8754,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8754
8754
|
const githubId = _id();
|
|
8755
8755
|
const backupId = _id();
|
|
8756
8756
|
const machineId = _id();
|
|
8757
|
-
_html(`<div${_attr_class("
|
|
8757
|
+
_html(`<div${_attr_class("_cs")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ct")}><div${_attr_class("_cu")}>`);
|
|
8758
8758
|
_set_serialize_reason({
|
|
8759
8759
|
0: _serialize_guard($scope0_reason, 4),
|
|
8760
8760
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8786,7 +8786,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8786
8786
|
_resume_branch($scope12_id);
|
|
8787
8787
|
}, $scope0_id) })
|
|
8788
8788
|
});
|
|
8789
|
-
_html(`<div${_attr_class("
|
|
8789
|
+
_html(`<div${_attr_class("_cv")}>`);
|
|
8790
8790
|
_if(() => {
|
|
8791
8791
|
if (setup && !setup.ready) {
|
|
8792
8792
|
const $scope4_id = _scope_id();
|
|
@@ -8829,16 +8829,16 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8829
8829
|
_if(() => {
|
|
8830
8830
|
if (selfUpdatePending || selfUpdating) {
|
|
8831
8831
|
const $scope43_id = _scope_id();
|
|
8832
|
-
_html(`<div${_attr_class("
|
|
8832
|
+
_html(`<div${_attr_class("_dA")} role=status><div${_attr_class("_dB")}>`);
|
|
8833
8833
|
_if(() => {
|
|
8834
8834
|
if (selfUpdating) {
|
|
8835
8835
|
const $scope81_id = _scope_id();
|
|
8836
|
-
_html(`<span${_attr_class("
|
|
8836
|
+
_html(`<span${_attr_class("_dC")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dD")}>The app restarts and reloads when it is done.</span>`);
|
|
8837
8837
|
writeScope($scope81_id, {});
|
|
8838
8838
|
return 0;
|
|
8839
8839
|
} else {
|
|
8840
8840
|
const $scope44_id = _scope_id();
|
|
8841
|
-
_html(`<span${_attr_class("
|
|
8841
|
+
_html(`<span${_attr_class("_dC")}>Update available</span><span${_attr_class("_dD")}>v${_text_resume($scope44_id, "c", self.version, 2)} → v${_text_resume($scope44_id, "d", self.latest, 2)}</span>`);
|
|
8842
8842
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope44_id, {})));
|
|
8843
8843
|
return 1;
|
|
8844
8844
|
}
|
|
@@ -8868,11 +8868,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8868
8868
|
_: _scope_with_id($scope0_id)
|
|
8869
8869
|
});
|
|
8870
8870
|
}, $scope0_id) };
|
|
8871
|
-
_html(`<section${_attr_class("
|
|
8871
|
+
_html(`<section${_attr_class("_cd")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_ce")}><h2${_attr("id", agentsId)}${_attr_class("_cr")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_c2")}><span${_attr_class("_W")}>Default</span><span${_attr_class("_o")}>`);
|
|
8872
8872
|
_attr_select_value($scope0_id, "p", input.preferred, _resume(function(v) {
|
|
8873
8873
|
setPreferred(v);
|
|
8874
8874
|
}, "B0", $scope0_id), () => {
|
|
8875
|
-
_html(`<select${_attr_class(["_p", "
|
|
8875
|
+
_html(`<select${_attr_class(["_p", "_c3"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8876
8876
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
8877
8877
|
const $scope83_id = _scope_id();
|
|
8878
8878
|
_html(`<option${_attr_option_value(id)}>${_text_resume($scope83_id, "b", agentLabel(id), $sg__input_agents)}</option>${_el_resume($scope83_id, "a", $sg__input_agents)}`);
|
|
@@ -8887,14 +8887,14 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8887
8887
|
const rows = lone ? [] : a.instances;
|
|
8888
8888
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8889
8889
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8890
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8890
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_c4", { ["_c6"]: lone && !lone.enabled }])}>`);
|
|
8891
8891
|
_set_serialize_reason(12);
|
|
8892
8892
|
const $childScope3 = _peek_scope_id();
|
|
8893
8893
|
icon_agent_default({
|
|
8894
8894
|
agent: a.id,
|
|
8895
8895
|
size: 18
|
|
8896
8896
|
});
|
|
8897
|
-
_html(`<div${_attr_class("
|
|
8897
|
+
_html(`<div${_attr_class("_cj")}><span${_attr_class("_cl")}><span${_attr_class("_ck")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8898
8898
|
_if(() => {
|
|
8899
8899
|
if (lone && input.preferred === lone.id) {
|
|
8900
8900
|
const $scope85_id = _scope_id();
|
|
@@ -8907,12 +8907,12 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8907
8907
|
_if(() => {
|
|
8908
8908
|
if (active.has(a.id)) {
|
|
8909
8909
|
const $scope13_id = _scope_id();
|
|
8910
|
-
_html(`<span${_attr_class("
|
|
8910
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8911
8911
|
_subscribe($active__closures, writeScope($scope13_id, {}));
|
|
8912
8912
|
return 0;
|
|
8913
8913
|
} else if (!a.installed) {
|
|
8914
8914
|
const $scope86_id = _scope_id();
|
|
8915
|
-
_html(`<span${_attr_class("
|
|
8915
|
+
_html(`<span${_attr_class("_cm")}>Not installed</span>`);
|
|
8916
8916
|
writeScope($scope86_id, {});
|
|
8917
8917
|
return 1;
|
|
8918
8918
|
}
|
|
@@ -8943,15 +8943,15 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8943
8943
|
_if(() => {
|
|
8944
8944
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8945
8945
|
const $scope2_id = _scope_id();
|
|
8946
|
-
_html(`<ul${_attr_class(["
|
|
8946
|
+
_html(`<ul${_attr_class(["_c8", { ["_c6"]: lone && !lone.enabled }])}>`);
|
|
8947
8947
|
_for_of(rows, (inst) => {
|
|
8948
8948
|
const $scope3_id = _scope_id();
|
|
8949
8949
|
const accounts = accountsFor(inst.id);
|
|
8950
|
-
_html(`<li${_attr_class(["
|
|
8950
|
+
_html(`<li${_attr_class(["_c5", { ["_c6"]: !inst.enabled }])}><div${_attr_class("_c4")}>`);
|
|
8951
8951
|
_set_serialize_reason(12);
|
|
8952
8952
|
const $childScope5 = _peek_scope_id();
|
|
8953
8953
|
icon_agent_default({ agent: inst.id });
|
|
8954
|
-
_html(`<span${_attr_class(["
|
|
8954
|
+
_html(`<span${_attr_class(["_c7", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8955
8955
|
_if(() => {
|
|
8956
8956
|
if (input.preferred === inst.id) {
|
|
8957
8957
|
const $scope87_id = _scope_id();
|
|
@@ -9030,24 +9030,24 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9030
9030
|
_if(() => {
|
|
9031
9031
|
if (!usage && families.length) {
|
|
9032
9032
|
const $scope90_id = _scope_id();
|
|
9033
|
-
_html(`<p${_attr_class("
|
|
9033
|
+
_html(`<p${_attr_class("_co")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
9034
9034
|
writeScope($scope90_id, {});
|
|
9035
9035
|
return 0;
|
|
9036
9036
|
} else if (usage?.error) {
|
|
9037
9037
|
const $scope9_id = _scope_id();
|
|
9038
|
-
_html(`<p${_attr_class("
|
|
9038
|
+
_html(`<p${_attr_class("_co")}>${_text_resume($scope9_id, "b", usage.error)}</p>`);
|
|
9039
9039
|
writeScope($scope9_id, {});
|
|
9040
9040
|
return 1;
|
|
9041
9041
|
}
|
|
9042
9042
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
9043
|
-
_html(`</section></div><div${_attr_class("
|
|
9043
|
+
_html(`</section></div><div${_attr_class("_cv")}><section${_attr_class("_cd")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_ce")}><h2${_attr("id", githubId)}${_attr_class("_cr")}>GitHub</h2>`);
|
|
9044
9044
|
_if(() => {
|
|
9045
9045
|
if (setup) {
|
|
9046
9046
|
const $scope41_id = _scope_id();
|
|
9047
9047
|
_set_serialize_reason(44);
|
|
9048
9048
|
const $childScope10 = _peek_scope_id();
|
|
9049
9049
|
add_field_default({
|
|
9050
|
-
class: "
|
|
9050
|
+
class: "_df",
|
|
9051
9051
|
open: addingHost,
|
|
9052
9052
|
openChange: _resume((_new_addingHost) => {
|
|
9053
9053
|
addingHost = _new_addingHost;
|
|
@@ -9077,19 +9077,19 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9077
9077
|
return 0;
|
|
9078
9078
|
}
|
|
9079
9079
|
}, $scope0_id, "y");
|
|
9080
|
-
_html(`</div><div${_attr_class(["
|
|
9080
|
+
_html(`</div><div${_attr_class(["_ci", "_cB"])}>`);
|
|
9081
9081
|
_for_of(setup?.github || [], (h) => {
|
|
9082
9082
|
const $scope7_id = _scope_id();
|
|
9083
9083
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
9084
9084
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
9085
9085
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
9086
9086
|
const busy = active.has(h.host);
|
|
9087
|
-
_html(`<div${_attr_class(["
|
|
9087
|
+
_html(`<div${_attr_class(["_cC", "_dg"])}><div${_attr_class("_dh")}>`);
|
|
9088
9088
|
icon_github_default({
|
|
9089
9089
|
size: 18,
|
|
9090
|
-
class: "
|
|
9090
|
+
class: "_di"
|
|
9091
9091
|
});
|
|
9092
|
-
_html(`<div${_attr_class("
|
|
9092
|
+
_html(`<div${_attr_class("_cj")}><span${_attr_class("_cl")}><span${_attr_class("_ck")}>${_text_resume($scope7_id, "g", h.host)}</span>`);
|
|
9093
9093
|
_if(() => {
|
|
9094
9094
|
if (h.isEnterprise) {
|
|
9095
9095
|
const $scope94_id = _scope_id();
|
|
@@ -9102,25 +9102,25 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9102
9102
|
_if(() => {
|
|
9103
9103
|
if (busy) {
|
|
9104
9104
|
const $scope14_id = _scope_id();
|
|
9105
|
-
_html(`<span${_attr_class(["
|
|
9105
|
+
_html(`<span${_attr_class(["_cm", "_dj"])}><span${_attr_class("_G")}></span>${_text_resume($scope14_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
9106
9106
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Ch1: 1 })));
|
|
9107
9107
|
return 0;
|
|
9108
9108
|
} else if (h.authed) {
|
|
9109
9109
|
const $scope92_id = _scope_id();
|
|
9110
|
-
_html(`<span${_attr_class(["
|
|
9110
|
+
_html(`<span${_attr_class(["_cm", "_dj"])}>`);
|
|
9111
9111
|
icon_check_default({
|
|
9112
9112
|
size: 12,
|
|
9113
|
-
class: "
|
|
9113
|
+
class: "_dk"
|
|
9114
9114
|
});
|
|
9115
|
-
_html(` Signed in as <strong${_attr_class("
|
|
9115
|
+
_html(` Signed in as <strong${_attr_class("_dm")}>${_text_resume($scope92_id, "d", h.user || "?")}</strong></span>`);
|
|
9116
9116
|
writeScope($scope92_id, {});
|
|
9117
9117
|
return 1;
|
|
9118
9118
|
} else if (h.error) {
|
|
9119
9119
|
const $scope93_id = _scope_id();
|
|
9120
9120
|
_html(`<span${_attr_class([
|
|
9121
|
-
"
|
|
9122
|
-
"
|
|
9123
|
-
"
|
|
9121
|
+
"_cm",
|
|
9122
|
+
"_dj",
|
|
9123
|
+
"_dl"
|
|
9124
9124
|
])}>`);
|
|
9125
9125
|
icon_warning_default({ size: 12 });
|
|
9126
9126
|
_html(`${_text_resume($scope93_id, "c", h.error)}</span>`);
|
|
@@ -9128,7 +9128,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9128
9128
|
return 2;
|
|
9129
9129
|
} else {
|
|
9130
9130
|
const $scope95_id = _scope_id();
|
|
9131
|
-
_html(`<span${_attr_class(["
|
|
9131
|
+
_html(`<span${_attr_class(["_cm", "_dj"])}>Not signed in</span>`);
|
|
9132
9132
|
writeScope($scope95_id, {});
|
|
9133
9133
|
return 3;
|
|
9134
9134
|
}
|
|
@@ -9171,7 +9171,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9171
9171
|
const $childScope12 = _peek_scope_id();
|
|
9172
9172
|
arm_button_default({
|
|
9173
9173
|
class: [
|
|
9174
|
-
"
|
|
9174
|
+
"_cn",
|
|
9175
9175
|
"_7",
|
|
9176
9176
|
"_8"
|
|
9177
9177
|
],
|
|
@@ -9202,7 +9202,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9202
9202
|
_if(() => {
|
|
9203
9203
|
if (busy && authCodes.has(h.host)) {
|
|
9204
9204
|
const $scope35_id = _scope_id();
|
|
9205
|
-
_html(`<div${_attr_class("
|
|
9205
|
+
_html(`<div${_attr_class("_dn")}><span${_attr_class("_do")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_dq")}>${_text_resume($scope35_id, "d", h.host)}/login/device</a>${_el_resume($scope35_id, "c")}</span><code${_attr_class("_dp")}>${_text_resume($scope35_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
9206
9206
|
_subscribe($authCodes__closures, writeScope($scope35_id, { Ch6: 1 }));
|
|
9207
9207
|
return 0;
|
|
9208
9208
|
}
|
|
@@ -9214,7 +9214,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9214
9214
|
_set_serialize_reason(30);
|
|
9215
9215
|
const $childScope13 = _peek_scope_id();
|
|
9216
9216
|
sso_auth_default({
|
|
9217
|
-
class: ["
|
|
9217
|
+
class: ["_cC", "_dr"],
|
|
9218
9218
|
items: hostSso$1,
|
|
9219
9219
|
skipped: skippedSso,
|
|
9220
9220
|
busy,
|
|
@@ -9248,23 +9248,23 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9248
9248
|
_if(() => {
|
|
9249
9249
|
if (setup && !setup.github.length) {
|
|
9250
9250
|
const $scope98_id = _scope_id();
|
|
9251
|
-
_html(`<p${_attr_class("
|
|
9251
|
+
_html(`<p${_attr_class("_co")}>Install the GitHub CLI below to sign in.</p>`);
|
|
9252
9252
|
writeScope($scope98_id, {});
|
|
9253
9253
|
return 0;
|
|
9254
9254
|
}
|
|
9255
9255
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
9256
|
-
_html(`</section><section${_attr_class("
|
|
9256
|
+
_html(`</section><section${_attr_class("_cd")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_ce")}><h2${_attr("id", machineId)}${_attr_class("_cr")}>Machine</h2></div><div${_attr_class(["_ci", "_cB"])}><div${_attr_class(["_cC", "_cD"])}><div${_attr_class(["_cE", { ["_cF"]: skillsOpen }])}><button${_attr_class("_cG")} aria-expanded=true>`);
|
|
9257
9257
|
_set_serialize_reason(1);
|
|
9258
9258
|
const $childScope14 = _peek_scope_id();
|
|
9259
9259
|
icon_chevron_right_default({
|
|
9260
9260
|
size: 12,
|
|
9261
|
-
class: ["
|
|
9261
|
+
class: ["_cK", { ["_cL"]: skillsOpen }]
|
|
9262
9262
|
});
|
|
9263
|
-
_html(`<span${_attr_class("
|
|
9263
|
+
_html(`<span${_attr_class("_cH")}>Skills</span>`);
|
|
9264
9264
|
_if(() => {
|
|
9265
9265
|
if (skills?.global.length) {
|
|
9266
9266
|
const $scope50_id = _scope_id();
|
|
9267
|
-
_html(`<span${_attr_class("
|
|
9267
|
+
_html(`<span${_attr_class("_cI")}>${_text_resume($scope50_id, "b", skills.global.length)} installed</span>`);
|
|
9268
9268
|
writeScope($scope50_id, {});
|
|
9269
9269
|
return 0;
|
|
9270
9270
|
}
|
|
@@ -9292,7 +9292,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9292
9292
|
_if(() => {
|
|
9293
9293
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9294
9294
|
const $scope99_id = _scope_id();
|
|
9295
|
-
_html(`<li${_attr_class("
|
|
9295
|
+
_html(`<li${_attr_class("_ee")}>Searching skills.sh…</li>`);
|
|
9296
9296
|
writeScope($scope99_id, {});
|
|
9297
9297
|
return 0;
|
|
9298
9298
|
}
|
|
@@ -9300,11 +9300,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9300
9300
|
_if(() => {
|
|
9301
9301
|
if (looksLikeSource(skillQuery)) {
|
|
9302
9302
|
const $scope17_id = _scope_id();
|
|
9303
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9303
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_db", "_y"])}>${_text_resume($scope17_id, "d", skillQuery.trim())}</span>`);
|
|
9304
9304
|
_if(() => {
|
|
9305
9305
|
if (active.has(skillQuery.trim())) {
|
|
9306
9306
|
const $scope18_id = _scope_id();
|
|
9307
|
-
_html(`<span${_attr_class("
|
|
9307
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9308
9308
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope18_id, {
|
|
9309
9309
|
Ch1: 3,
|
|
9310
9310
|
Chs: 2
|
|
@@ -9312,7 +9312,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9312
9312
|
return 0;
|
|
9313
9313
|
} else {
|
|
9314
9314
|
const $scope100_id = _scope_id();
|
|
9315
|
-
_html(`<span${_attr_class("
|
|
9315
|
+
_html(`<span${_attr_class("_cm")}>Add straight from this source</span>`);
|
|
9316
9316
|
writeScope($scope100_id, {});
|
|
9317
9317
|
return 1;
|
|
9318
9318
|
}
|
|
@@ -9338,16 +9338,16 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9338
9338
|
_for_of(skillHits || [], (h) => {
|
|
9339
9339
|
const $scope19_id = _scope_id();
|
|
9340
9340
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9341
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9341
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_db", "_y"])}>${_text_resume($scope19_id, "d", h.name)}</span>`);
|
|
9342
9342
|
_if(() => {
|
|
9343
9343
|
if (active.has(h.skillId)) {
|
|
9344
9344
|
const $scope20_id = _scope_id();
|
|
9345
|
-
_html(`<span${_attr_class("
|
|
9345
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope20_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9346
9346
|
_subscribe($active__closures, writeScope($scope20_id, { Ch1: 5 }));
|
|
9347
9347
|
return 0;
|
|
9348
9348
|
} else {
|
|
9349
9349
|
const $scope101_id = _scope_id();
|
|
9350
|
-
_html(`<span${_attr_class("
|
|
9350
|
+
_html(`<span${_attr_class("_cm")}${_attr("title", h.source)}>${_text_resume($scope101_id, "b", h.source)}</span>${_el_resume($scope101_id, "a")}`);
|
|
9351
9351
|
writeScope($scope101_id, {});
|
|
9352
9352
|
return 1;
|
|
9353
9353
|
}
|
|
@@ -9395,7 +9395,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9395
9395
|
_if(() => {
|
|
9396
9396
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9397
9397
|
const $scope52_id = _scope_id();
|
|
9398
|
-
_html(`<li${_attr_class("
|
|
9398
|
+
_html(`<li${_attr_class("_ee")}>No skills match "${_text_resume($scope52_id, "b", skillQuery, 2)}".</li>`);
|
|
9399
9399
|
_subscribe($skillQuery__closures, writeScope($scope52_id, { Chs: 3 }));
|
|
9400
9400
|
return 0;
|
|
9401
9401
|
}
|
|
@@ -9412,22 +9412,22 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9412
9412
|
_if(() => {
|
|
9413
9413
|
{
|
|
9414
9414
|
const $scope21_id = _scope_id();
|
|
9415
|
-
_html(`<div${_attr_class("
|
|
9415
|
+
_html(`<div${_attr_class("_cJ")}>`);
|
|
9416
9416
|
_if(() => {
|
|
9417
9417
|
if (skills && !skills.agents.length) {
|
|
9418
9418
|
const $scope104_id = _scope_id();
|
|
9419
|
-
_html(`<p${_attr_class("
|
|
9419
|
+
_html(`<p${_attr_class("_co")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9420
9420
|
writeScope($scope104_id, {});
|
|
9421
9421
|
return 0;
|
|
9422
9422
|
} else if (skills && !skills.available) {
|
|
9423
9423
|
const $scope22_id = _scope_id();
|
|
9424
|
-
_html(`<p${_attr_class("
|
|
9424
|
+
_html(`<p${_attr_class("_co")}>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>`);
|
|
9425
9425
|
_script($scope22_id, "B66");
|
|
9426
9426
|
_subscribe($active__closures, writeScope($scope22_id, { Ch1: 6 }));
|
|
9427
9427
|
return 1;
|
|
9428
9428
|
}
|
|
9429
9429
|
}, $scope21_id, "b", 1, 1, 1, 0, 1);
|
|
9430
|
-
_html(`<ul${_attr_class("
|
|
9430
|
+
_html(`<ul${_attr_class("_eg")}>`);
|
|
9431
9431
|
_for_of(skills?.global || [], (s) => {
|
|
9432
9432
|
const $scope23_id = _scope_id();
|
|
9433
9433
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9505,7 +9505,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9505
9505
|
_if(() => {
|
|
9506
9506
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9507
9507
|
const $scope108_id = _scope_id();
|
|
9508
|
-
_html(`<p${_attr_class("
|
|
9508
|
+
_html(`<p${_attr_class("_co")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9509
9509
|
writeScope($scope108_id, {});
|
|
9510
9510
|
return 0;
|
|
9511
9511
|
}
|
|
@@ -9515,18 +9515,18 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9515
9515
|
return 0;
|
|
9516
9516
|
}
|
|
9517
9517
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
9518
|
-
_html(`</div><div${_attr_class(["
|
|
9518
|
+
_html(`</div><div${_attr_class(["_cC", "_cD"])}><div${_attr_class(["_cE", { ["_cF"]: machineOpen }])}><button${_attr_class("_cG")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9519
9519
|
_set_serialize_reason(1);
|
|
9520
9520
|
const $childScope18 = _peek_scope_id();
|
|
9521
9521
|
icon_chevron_right_default({
|
|
9522
9522
|
size: 12,
|
|
9523
|
-
class: ["
|
|
9523
|
+
class: ["_cK", { ["_cL"]: machineOpen }]
|
|
9524
9524
|
});
|
|
9525
|
-
_html(`<span${_attr_class("
|
|
9525
|
+
_html(`<span${_attr_class("_cH")}>Tools</span><span${_attr_class("_cI")}>${_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")}`);
|
|
9526
9526
|
_if(() => {
|
|
9527
9527
|
if (bulk) {
|
|
9528
9528
|
const $scope34_id = _scope_id();
|
|
9529
|
-
_html(`<span${_attr_class("
|
|
9529
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope34_id, "c", bulk.action === "update" ? "Updating" : "Installing")} ${_text_resume($scope34_id, "d", Math.min(bulk.done + 1, bulk.total), 2)}/${_text_resume($scope34_id, "e", bulk.total, 2)}${_text_resume($scope34_id, "f", activeLine && ` — ${activeLine}`, 2)}</span>`);
|
|
9530
9530
|
writeScope($scope34_id, {});
|
|
9531
9531
|
return 0;
|
|
9532
9532
|
} else {
|
|
@@ -9575,7 +9575,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9575
9575
|
_if(() => {
|
|
9576
9576
|
if (searching && !hits?.length) {
|
|
9577
9577
|
const $scope109_id = _scope_id();
|
|
9578
|
-
_html(`<li${_attr_class("
|
|
9578
|
+
_html(`<li${_attr_class("_ee")}>Searching the mise registry…</li>`);
|
|
9579
9579
|
writeScope($scope109_id, {});
|
|
9580
9580
|
return 0;
|
|
9581
9581
|
}
|
|
@@ -9583,23 +9583,23 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9583
9583
|
_if(() => {
|
|
9584
9584
|
if (hits && !hits.length && !searching) {
|
|
9585
9585
|
const $scope42_id = _scope_id();
|
|
9586
|
-
_html(`<li${_attr_class("
|
|
9586
|
+
_html(`<li${_attr_class("_ee")}>No tools match "${_text_resume($scope42_id, "b", query, 2)}".</li>`);
|
|
9587
9587
|
_subscribe($query__closures, writeScope($scope42_id, {}));
|
|
9588
9588
|
return 0;
|
|
9589
9589
|
}
|
|
9590
9590
|
}, $scope28_id, "b", 1, 1, 1, 0, 1);
|
|
9591
9591
|
_for_of(hits || [], (h) => {
|
|
9592
9592
|
const $scope29_id = _scope_id();
|
|
9593
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9593
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_db", "_y"])}>${_text_resume($scope29_id, "d", h.name)}</span>`);
|
|
9594
9594
|
_if(() => {
|
|
9595
9595
|
if (active.has(h.name)) {
|
|
9596
9596
|
const $scope30_id = _scope_id();
|
|
9597
|
-
_html(`<span${_attr_class("
|
|
9597
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope30_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9598
9598
|
_subscribe($active__closures, writeScope($scope30_id, { Ch1: 9 }));
|
|
9599
9599
|
return 0;
|
|
9600
9600
|
} else if (h.description) {
|
|
9601
9601
|
const $scope110_id = _scope_id();
|
|
9602
|
-
_html(`<span${_attr_class("
|
|
9602
|
+
_html(`<span${_attr_class("_cm")}${_attr("title", h.description)}>${_text_resume($scope110_id, "b", h.description)}</span>${_el_resume($scope110_id, "a")}`);
|
|
9603
9603
|
writeScope($scope110_id, {});
|
|
9604
9604
|
return 1;
|
|
9605
9605
|
}
|
|
@@ -9646,11 +9646,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9646
9646
|
_if(() => {
|
|
9647
9647
|
if (machineOpen) {
|
|
9648
9648
|
const $scope6_id = _scope_id();
|
|
9649
|
-
_html(`<div${_attr_class("
|
|
9649
|
+
_html(`<div${_attr_class("_cJ")}>`);
|
|
9650
9650
|
_if(() => {
|
|
9651
9651
|
if (setup && !setup.mise.installed) {
|
|
9652
9652
|
const $scope31_id = _scope_id();
|
|
9653
|
-
_html(`<p${_attr_class("
|
|
9653
|
+
_html(`<p${_attr_class("_co")}>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>`);
|
|
9654
9654
|
_script($scope31_id, "B76");
|
|
9655
9655
|
_subscribe($active__closures, writeScope($scope31_id, { Ch1: 10 }));
|
|
9656
9656
|
return 0;
|
|
@@ -9660,11 +9660,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9660
9660
|
_if(() => {
|
|
9661
9661
|
if (self) {
|
|
9662
9662
|
const $scope46_id = _scope_id();
|
|
9663
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9663
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_db", "_y"])}>work</span>`);
|
|
9664
9664
|
_if(() => {
|
|
9665
9665
|
if (selfUpdating) {
|
|
9666
9666
|
const $scope112_id = _scope_id();
|
|
9667
|
-
_html(`<span${_attr_class("
|
|
9667
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9668
9668
|
writeScope($scope112_id, {});
|
|
9669
9669
|
return 0;
|
|
9670
9670
|
} else {
|
|
@@ -9678,7 +9678,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9678
9678
|
return 0;
|
|
9679
9679
|
} else if (self.latest && self.latest !== self.version) {
|
|
9680
9680
|
const $scope48_id = _scope_id();
|
|
9681
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9681
|
+
_html(`<button${_attr_class([btnSm, "_de"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9682
9682
|
icon_arrow_up_default({ size: 12 });
|
|
9683
9683
|
_html(` ${_text_resume($scope48_id, "c", self.latest, 2)}</button>${_el_resume($scope48_id, "a")}`);
|
|
9684
9684
|
_script($scope48_id, "B77");
|
|
@@ -9721,11 +9721,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9721
9721
|
const $for_content7__t_latest__closures = /* @__PURE__ */ new Set();
|
|
9722
9722
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9723
9723
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9724
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9724
|
+
_html(`<li${_attr_class([toolRow, { ["_da"]: !t.installed }])}><span${_attr_class(["_db", "_y"])}>${_text_resume($scope32_id, "c", t.label)}</span>`);
|
|
9725
9725
|
_if(() => {
|
|
9726
9726
|
if (active.has(t.id)) {
|
|
9727
9727
|
const $scope33_id = _scope_id();
|
|
9728
|
-
_html(`<span${_attr_class("
|
|
9728
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope33_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9729
9729
|
_subscribe($active__closures, writeScope($scope33_id, { Ch1: 12 }));
|
|
9730
9730
|
return 0;
|
|
9731
9731
|
} else if (t.installed) {
|
|
@@ -9733,11 +9733,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9733
9733
|
_if(() => {
|
|
9734
9734
|
if (t.version) {
|
|
9735
9735
|
const $scope40_id = _scope_id();
|
|
9736
|
-
_html(`<button${_attr_class(["
|
|
9736
|
+
_html(`<button${_attr_class(["_dd", "_y"])}${_attr("title", `${t.path || t.label}${aliasPin(t) ? `, pinned to ${t.pin}` : ""}. Pin a version`)}>v${_text_resume($scope40_id, "b", t.version, 2)}`);
|
|
9737
9737
|
_if(() => {
|
|
9738
9738
|
if (aliasPin(t)) {
|
|
9739
9739
|
const $scope116_id = _scope_id();
|
|
9740
|
-
_html(`<span${_attr_class("
|
|
9740
|
+
_html(`<span${_attr_class("_dc")}>${_text_resume($scope116_id, "b", t.pin)}</span>`);
|
|
9741
9741
|
_subscribe($for_content7__t_pin__closures, writeScope($scope116_id, { Ca0: 1 }));
|
|
9742
9742
|
return 0;
|
|
9743
9743
|
}
|
|
@@ -9756,7 +9756,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9756
9756
|
_if(() => {
|
|
9757
9757
|
if (outdated(t)) {
|
|
9758
9758
|
const $scope57_id = _scope_id();
|
|
9759
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9759
|
+
_html(`<button${_attr_class([btnSm, "_de"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9760
9760
|
icon_arrow_up_default({ size: 12 });
|
|
9761
9761
|
_html(` ${_text_resume($scope57_id, "c", t.latest, 2)}</button>${_el_resume($scope57_id, "a")}`);
|
|
9762
9762
|
_script($scope57_id, "B79");
|
|
@@ -9764,7 +9764,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9764
9764
|
return 0;
|
|
9765
9765
|
} else if (t.newest) {
|
|
9766
9766
|
const $scope58_id = _scope_id();
|
|
9767
|
-
_html(`<button${_attr_class(["
|
|
9767
|
+
_html(`<button${_attr_class(["_dd", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope58_id, "b", t.newest)} available</button>${_el_resume($scope58_id, "a")}`);
|
|
9768
9768
|
_script($scope58_id, "B80");
|
|
9769
9769
|
_subscribe($for_content7__t_newest__closures, _subscribe($for_content7__t_pin__closures, _subscribe($for_content7__t_version__closures, _subscribe($for_content7__t_label__closures, writeScope($scope58_id, { Cy: 1 })))));
|
|
9770
9770
|
return 1;
|
|
@@ -9877,14 +9877,14 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9877
9877
|
label: "Dark"
|
|
9878
9878
|
}
|
|
9879
9879
|
];
|
|
9880
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9880
|
+
_html(`</div></div></section><section${_attr_class("_cd")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_ce")}><h2${_attr("id", appearanceId)}${_attr_class("_cr")}>Appearance</h2></div><div${_attr_class(["_ci", "_ds"])}><div${_attr_class("_dE")}><img${_attr_class("_dF")}${_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("_dG")}><span${_attr_class("_dH")}>${_text_resume($scope0_id, "ax", input.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dI")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dt")}><span${_attr_class("_du")}>Name</span><input${_attr_input_value($scope0_id, "b1", input.instance.name, _resume(function(v) {
|
|
9881
9881
|
setInstance({ name: v });
|
|
9882
|
-
}, "B1", $scope0_id))}${_attr_class(["_Y", "
|
|
9882
|
+
}, "B1", $scope0_id))}${_attr_class(["_Y", "_dv"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b1")}</label><div${_attr_class("_dt")}><span${_attr_class("_du")}>Theme</span><span${_attr_class("_dx")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9883
9883
|
_for_of(themeOpts, (opt) => {
|
|
9884
9884
|
const $scope49_id = _scope_id();
|
|
9885
9885
|
_html(`<button type=button${_attr_class([
|
|
9886
9886
|
"_bf",
|
|
9887
|
-
"
|
|
9887
|
+
"_dJ",
|
|
9888
9888
|
{ ["_be"]: themeMode === opt.id }
|
|
9889
9889
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9890
9890
|
if (opt.id === "system") {
|
|
@@ -9904,28 +9904,28 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9904
9904
|
_: _scope_with_id($scope0_id)
|
|
9905
9905
|
});
|
|
9906
9906
|
}, "id", $scope0_id, "b5", 1, 0, 1, 0, 1);
|
|
9907
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9907
|
+
_html(`</span><span${_attr_class(["_o", "_dy"])}>`);
|
|
9908
9908
|
_attr_select_value($scope0_id, "b7", themeMode, _resume(function(v) {
|
|
9909
9909
|
setThemeMode(v);
|
|
9910
9910
|
}, "B2", $scope0_id), () => {
|
|
9911
|
-
_html(`<select${_attr_class(["_p", "
|
|
9911
|
+
_html(`<select${_attr_class(["_p", "_dz"])} aria-label="Color theme">`);
|
|
9912
9912
|
forOf(themeOpts, (opt) => {
|
|
9913
9913
|
_scope_id();
|
|
9914
9914
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9915
9915
|
});
|
|
9916
9916
|
_html("</select>");
|
|
9917
9917
|
});
|
|
9918
|
-
_html(`${_el_resume($scope0_id, "b7")}</span></span></div><div${_attr_class("
|
|
9919
|
-
"
|
|
9920
|
-
"
|
|
9921
|
-
{ ["
|
|
9918
|
+
_html(`${_el_resume($scope0_id, "b7")}</span></span></div><div${_attr_class("_dt")}><span${_attr_class("_du")}>Accent</span><span${_attr_class("_dK")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9919
|
+
"_dL",
|
|
9920
|
+
"_dO",
|
|
9921
|
+
{ ["_dM"]: !accent }
|
|
9922
9922
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9923
9923
|
_if(() => {
|
|
9924
9924
|
if (!accent) {
|
|
9925
9925
|
const $scope126_id = _scope_id();
|
|
9926
9926
|
icon_check_default({
|
|
9927
9927
|
size: 12,
|
|
9928
|
-
class: "
|
|
9928
|
+
class: "_dN"
|
|
9929
9929
|
});
|
|
9930
9930
|
$si__input_instance_accent && writeScope($scope126_id, {});
|
|
9931
9931
|
return 0;
|
|
@@ -9933,13 +9933,13 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9933
9933
|
}, $scope0_id, "bb", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9934
9934
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9935
9935
|
const $scope79_id = _scope_id();
|
|
9936
|
-
_html(`<button type=button${_attr_class(["
|
|
9936
|
+
_html(`<button type=button${_attr_class(["_dL", { ["_dM"]: accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}>`);
|
|
9937
9937
|
_if(() => {
|
|
9938
9938
|
if (accent === p.value) {
|
|
9939
9939
|
const $scope127_id = _scope_id();
|
|
9940
9940
|
icon_check_default({
|
|
9941
9941
|
size: 12,
|
|
9942
|
-
class: "
|
|
9942
|
+
class: "_dN"
|
|
9943
9943
|
});
|
|
9944
9944
|
$si__input_instance_accent && writeScope($scope127_id, {});
|
|
9945
9945
|
return 0;
|
|
@@ -9953,18 +9953,18 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9953
9953
|
}, "value", $scope0_id, "bc", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9954
9954
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9955
9955
|
_html(`<label${_attr_class([
|
|
9956
|
-
"
|
|
9957
|
-
"
|
|
9958
|
-
{ ["
|
|
9956
|
+
"_dL",
|
|
9957
|
+
"_dP",
|
|
9958
|
+
{ ["_dM"]: customOn }
|
|
9959
9959
|
])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "be", accent || "#3556d8", _resume(function(v) {
|
|
9960
9960
|
setInstance({ accent: v });
|
|
9961
|
-
}, "B3", $scope0_id))}${_attr_class("
|
|
9961
|
+
}, "B3", $scope0_id))}${_attr_class("_dQ")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "be")}`);
|
|
9962
9962
|
_if(() => {
|
|
9963
9963
|
if (customOn) {
|
|
9964
9964
|
const $scope128_id = _scope_id();
|
|
9965
9965
|
icon_check_default({
|
|
9966
9966
|
size: 12,
|
|
9967
|
-
class: "
|
|
9967
|
+
class: "_dN"
|
|
9968
9968
|
});
|
|
9969
9969
|
$si__input_instance_accent && writeScope($scope128_id, {});
|
|
9970
9970
|
return 0;
|
|
@@ -9975,16 +9975,16 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9975
9975
|
return 1;
|
|
9976
9976
|
}
|
|
9977
9977
|
}, $scope0_id, "bf", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9978
|
-
_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("_cd")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_ce")}><h2${_attr("id", backupId)}${_attr_class("_cr")}>Backup</h2></div><div${_attr_class(["_ci", "_cB"])}><div${_attr_class("_cC")}><div${_attr_class("_dR")}><div${_attr_class("_cj")}>`);
|
|
9979
9979
|
_if(() => {
|
|
9980
9980
|
if (backupBusy === "preflight") {
|
|
9981
9981
|
const $scope66_id = _scope_id();
|
|
9982
|
-
_html(`<span${_attr_class("
|
|
9982
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9983
9983
|
writeScope($scope66_id, {});
|
|
9984
9984
|
return 0;
|
|
9985
9985
|
} else {
|
|
9986
9986
|
const $scope130_id = _scope_id();
|
|
9987
|
-
_html(`<span${_attr_class("
|
|
9987
|
+
_html(`<span${_attr_class("_cm")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9988
9988
|
writeScope($scope130_id, {});
|
|
9989
9989
|
return 1;
|
|
9990
9990
|
}
|
|
@@ -10002,7 +10002,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10002
10002
|
_if(() => {
|
|
10003
10003
|
if (preflight && !backupBusy) {
|
|
10004
10004
|
const $scope68_id = _scope_id();
|
|
10005
|
-
_html(`<div${_attr_class("
|
|
10005
|
+
_html(`<div${_attr_class("_dT")}><p${_attr_class("_dU")}>In the file: ${_text_resume($scope68_id, "c", preflight.contents.workspaces, 2)} workspace${_text_resume($scope68_id, "d", preflight.contents.workspaces === 1 ? "" : "s", 2)}${_text_resume($scope68_id, "e", preflight.contents.archived ? `${_to_text(" ")}(${_to_text(preflight.contents.archived)} archived)` : "", 2)} , ${_text_resume($scope68_id, "f", preflight.contents.tools, 2)} tool pin${_text_resume($scope68_id, "g", preflight.contents.tools === 1 ? "" : "s", 2)}, ${_text_resume($scope68_id, "h", preflight.contents.skills, 2)} skill${_text_resume($scope68_id, "i", preflight.contents.skills === 1 ? "" : "s", 2)}, ${_text_resume($scope68_id, "j", preflight.contents.agents, 2)} agent${_text_resume($scope68_id, "k", preflight.contents.agents === 1 ? "" : "s", 2)}.</p><p${_attr_class("_dU")}>Not in the file: `);
|
|
10006
10006
|
_if(() => {
|
|
10007
10007
|
if (preflight.unpushed) {
|
|
10008
10008
|
const $scope69_id = _scope_id();
|
|
@@ -10019,15 +10019,15 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10019
10019
|
return 0;
|
|
10020
10020
|
}
|
|
10021
10021
|
}, $scope68_id, "m");
|
|
10022
|
-
_html(`${_text_resume($scope68_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("
|
|
10022
|
+
_html(`${_text_resume($scope68_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_dV")}>`);
|
|
10023
10023
|
_for_of(preflight.workspaces, (w) => {
|
|
10024
10024
|
const $scope132_id = _scope_id();
|
|
10025
10025
|
const $for_content17__w_name__closures = /* @__PURE__ */ new Set();
|
|
10026
|
-
_html(`<li${_attr_class("
|
|
10026
|
+
_html(`<li${_attr_class("_dW")}><span${_attr_class("_ck")}>${_text_resume($scope132_id, "c", w.name)}</span><ul${_attr_class("_dV")}>`);
|
|
10027
10027
|
_for_of(w.repos, (r) => {
|
|
10028
10028
|
const $scope133_id = _scope_id();
|
|
10029
10029
|
const $for_content18__r_more__closures = /* @__PURE__ */ new Set();
|
|
10030
|
-
_html(`<li${_attr_class("
|
|
10030
|
+
_html(`<li${_attr_class("_dX")}><span${_attr_class("_dY")}><span${_attr_class("_y")}>${_text_resume($scope133_id, "d", r.worktree)}/</span>`);
|
|
10031
10031
|
_for_of(r.unpushed, (b) => {
|
|
10032
10032
|
const $scope134_id = _scope_id();
|
|
10033
10033
|
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($scope134_id, "b", b.count)} unpushed `);
|
|
@@ -10046,10 +10046,10 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10046
10046
|
_if(() => {
|
|
10047
10047
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
10048
10048
|
const $scope135_id = _scope_id();
|
|
10049
|
-
_html(`<ul${_attr_class("
|
|
10049
|
+
_html(`<ul${_attr_class("_dZ")}>`);
|
|
10050
10050
|
_for_of(r.modified, (f) => {
|
|
10051
10051
|
const $scope138_id = _scope_id();
|
|
10052
|
-
_html(`<li${_attr_class("
|
|
10052
|
+
_html(`<li${_attr_class("_d0")}><span${_attr_class([
|
|
10053
10053
|
"_N",
|
|
10054
10054
|
"_P",
|
|
10055
10055
|
tone.warn
|
|
@@ -10058,18 +10058,18 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10058
10058
|
}, (f) => f, $scope135_id, "b", 1, 1, 1, 0, 1);
|
|
10059
10059
|
_for_of(r.untracked, (f) => {
|
|
10060
10060
|
const $scope139_id = _scope_id();
|
|
10061
|
-
_html(`<li${_attr_class("
|
|
10061
|
+
_html(`<li${_attr_class("_d0")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($scope139_id, "d", f)}</span></li>`);
|
|
10062
10062
|
writeScope($scope139_id, {});
|
|
10063
10063
|
}, (f) => f, $scope135_id, "c", 1, 1, 1, 0, 1);
|
|
10064
10064
|
_for_of(r.ignored, (f) => {
|
|
10065
10065
|
const $scope140_id = _scope_id();
|
|
10066
|
-
_html(`<li${_attr_class("
|
|
10066
|
+
_html(`<li${_attr_class("_d0")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($scope140_id, "d", f)}</span></li>`);
|
|
10067
10067
|
writeScope($scope140_id, {});
|
|
10068
10068
|
}, (f) => f, $scope135_id, "d", 1, 1, 1, 0, 1);
|
|
10069
10069
|
_if(() => {
|
|
10070
10070
|
if (r.more) {
|
|
10071
10071
|
const $scope136_id = _scope_id();
|
|
10072
|
-
_html(`<li${_attr_class(["
|
|
10072
|
+
_html(`<li${_attr_class(["_d0", "_x"])}>+${_text_resume($scope136_id, "b", r.more, 2)} more</li>`);
|
|
10073
10073
|
_subscribe($for_content18__r_more__closures, writeScope($scope136_id, {}));
|
|
10074
10074
|
return 0;
|
|
10075
10075
|
}
|
|
@@ -10094,27 +10094,27 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10094
10094
|
i: $for_content17__w_name__closures
|
|
10095
10095
|
});
|
|
10096
10096
|
}, "id", $scope68_id, "o", 1, 1, 1, "</ul>", 1);
|
|
10097
|
-
_html(`<div${_attr_class("
|
|
10097
|
+
_html(`<div${_attr_class("_d1")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope68_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope68_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope68_id, "s")}</div></div>`);
|
|
10098
10098
|
_script($scope68_id, "B86");
|
|
10099
10099
|
writeScope($scope68_id, {});
|
|
10100
10100
|
return 0;
|
|
10101
10101
|
}
|
|
10102
10102
|
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
10103
|
-
_html(`</div><div${_attr_class("
|
|
10103
|
+
_html(`</div><div${_attr_class("_cC")}><div${_attr_class("_dR")}><div${_attr_class("_cj")}>`);
|
|
10104
10104
|
_if(() => {
|
|
10105
10105
|
if (backupBusy === "restore") {
|
|
10106
10106
|
const $scope67_id = _scope_id();
|
|
10107
|
-
_html(`<span${_attr_class("
|
|
10107
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope67_id, "c", backupLine || "Restoring…")}</span>`);
|
|
10108
10108
|
writeScope($scope67_id, {});
|
|
10109
10109
|
return 0;
|
|
10110
10110
|
} else if (restoreDone) {
|
|
10111
10111
|
const $scope75_id = _scope_id();
|
|
10112
|
-
_html(`<span${_attr_class("
|
|
10112
|
+
_html(`<span${_attr_class("_cm")}>${_text_resume($scope75_id, "b", restoreDone)}</span>`);
|
|
10113
10113
|
writeScope($scope75_id, {});
|
|
10114
10114
|
return 1;
|
|
10115
10115
|
} else {
|
|
10116
10116
|
const $scope141_id = _scope_id();
|
|
10117
|
-
_html(`<span${_attr_class("
|
|
10117
|
+
_html(`<span${_attr_class("_cm")}>Load a backup file. Repos clone in the background.</span>`);
|
|
10118
10118
|
writeScope($scope141_id, {});
|
|
10119
10119
|
return 2;
|
|
10120
10120
|
}
|
|
@@ -10122,7 +10122,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10122
10122
|
_if(() => {
|
|
10123
10123
|
if (!restorePreview && backupBusy !== "restore") {
|
|
10124
10124
|
const $scope77_id = _scope_id();
|
|
10125
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
10125
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dS")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope77_id, "b")}</label>`);
|
|
10126
10126
|
_script($scope77_id, "B87");
|
|
10127
10127
|
writeScope($scope77_id, {});
|
|
10128
10128
|
return 0;
|
|
@@ -10133,14 +10133,14 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10133
10133
|
if (restorePreview && backupBusy !== "restore") {
|
|
10134
10134
|
const $scope70_id = _scope_id();
|
|
10135
10135
|
const { preview } = restorePreview;
|
|
10136
|
-
_html(`<div${_attr_class("
|
|
10136
|
+
_html(`<div${_attr_class("_dT")}><p${_attr_class("_dU")}>From ${_text_resume($scope70_id, "c", preview.from.host, 2)} on ${_text_resume($scope70_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope70_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
|
|
10137
10137
|
_if(() => {
|
|
10138
10138
|
if (preview.workspaces.length) {
|
|
10139
10139
|
const $scope71_id = _scope_id();
|
|
10140
10140
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
10141
10141
|
_for_of(preview.workspaces, (w) => {
|
|
10142
10142
|
const $scope72_id = _scope_id();
|
|
10143
|
-
_html(`<li><label${_attr_class(["
|
|
10143
|
+
_html(`<li><label${_attr_class(["_d3", { ["_d5"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_d4")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("_cj")}><span${_attr_class("_cl")}><span${_attr_class("_ck")}>${_text_resume($scope72_id, "f", w.name)}</span>`);
|
|
10144
10144
|
_if(() => {
|
|
10145
10145
|
if (w.status === "archived") {
|
|
10146
10146
|
const $scope145_id = _scope_id();
|
|
@@ -10162,7 +10162,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10162
10162
|
return 1;
|
|
10163
10163
|
}
|
|
10164
10164
|
}, $scope72_id, "h", 1, 1, 1, 0, 1);
|
|
10165
|
-
_html(`</span><span${_attr_class("
|
|
10165
|
+
_html(`</span><span${_attr_class("_cm")}>${_text_resume($scope72_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope72_id, "a")}</li>`);
|
|
10166
10166
|
_script($scope72_id, "B88");
|
|
10167
10167
|
_subscribe($restoreWs__closures, writeScope($scope72_id, {
|
|
10168
10168
|
n: w?.unknownHost,
|
|
@@ -10173,7 +10173,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10173
10173
|
return 0;
|
|
10174
10174
|
} else {
|
|
10175
10175
|
const $scope143_id = _scope_id();
|
|
10176
|
-
_html(`<p${_attr_class("
|
|
10176
|
+
_html(`<p${_attr_class("_co")}>No workspaces in this file.</p>`);
|
|
10177
10177
|
writeScope($scope143_id, {});
|
|
10178
10178
|
return 1;
|
|
10179
10179
|
}
|
|
@@ -10213,7 +10213,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10213
10213
|
_if(() => {
|
|
10214
10214
|
if (p.total) {
|
|
10215
10215
|
const $scope74_id = _scope_id();
|
|
10216
|
-
_html(`<li><label${_attr_class(["
|
|
10216
|
+
_html(`<li><label${_attr_class(["_d3", { ["_d5"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_d4")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("_cj")}><span${_attr_class("_ck")}>${_text_resume($scope74_id, "e", p.label)}</span><span${_attr_class("_cm")}>`);
|
|
10217
10217
|
_if(() => {
|
|
10218
10218
|
if (p.key === "settings") {
|
|
10219
10219
|
const $scope142_id = _scope_id();
|
|
@@ -10260,7 +10260,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10260
10260
|
i: $for_content10__p_total__closures
|
|
10261
10261
|
});
|
|
10262
10262
|
}, "key", $scope70_id, "h");
|
|
10263
|
-
_html(`</ul><div${_attr_class("
|
|
10263
|
+
_html(`</ul><div${_attr_class("_d1")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope70_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope70_id, "k")}</div></div>`);
|
|
10264
10264
|
_script($scope70_id, "B90");
|
|
10265
10265
|
writeScope($scope70_id, {});
|
|
10266
10266
|
return 0;
|
|
@@ -10557,14 +10557,14 @@ function activeAgent(session) {
|
|
|
10557
10557
|
const command = session.state?.command?.trim();
|
|
10558
10558
|
return command && agentFromCommand(command) || session.agent;
|
|
10559
10559
|
}
|
|
10560
|
-
var heroTag = "
|
|
10561
|
-
var rowState = "
|
|
10562
|
-
var prChip$1 = "
|
|
10563
|
-
var portChip = "
|
|
10560
|
+
var heroTag = "_eQ _N _Q";
|
|
10561
|
+
var rowState = "_e2 _N";
|
|
10562
|
+
var prChip$1 = "_it _u _is";
|
|
10563
|
+
var portChip = "_iu _u _is";
|
|
10564
10564
|
var prState = {
|
|
10565
|
-
open: "
|
|
10566
|
-
merged: "
|
|
10567
|
-
closed: "
|
|
10565
|
+
open: "_iy",
|
|
10566
|
+
merged: "_iz",
|
|
10567
|
+
closed: "_iA"
|
|
10568
10568
|
};
|
|
10569
10569
|
//#endregion
|
|
10570
10570
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10645,7 +10645,7 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10645
10645
|
const name = repo.full_name.split("/").at(-1);
|
|
10646
10646
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel$1(repo.full_name) : name;
|
|
10647
10647
|
}, "C3", $scope1_id);
|
|
10648
|
-
_html(`<div${_attr_class("
|
|
10648
|
+
_html(`<div${_attr_class("_ir")}>`);
|
|
10649
10649
|
_for_of(repos, (repo) => {
|
|
10650
10650
|
const $scope2_id = _scope_id();
|
|
10651
10651
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10661,11 +10661,11 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10661
10661
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10662
10662
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10663
10663
|
}
|
|
10664
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10664
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_iv", { ["_iD"]: !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")}`);
|
|
10665
10665
|
_if(() => {
|
|
10666
10666
|
if (open) {
|
|
10667
10667
|
const $scope4_id = _scope_id();
|
|
10668
|
-
_html(`<a${_attr_class(["
|
|
10668
|
+
_html(`<a${_attr_class(["_iv", "_iw"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10669
10669
|
icon_diff_default({ size: 12 });
|
|
10670
10670
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10671
10671
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10673,9 +10673,9 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10673
10673
|
} else {
|
|
10674
10674
|
const $scope5_id = _scope_id();
|
|
10675
10675
|
_html(`<button type=button${_attr_class([
|
|
10676
|
-
"
|
|
10677
|
-
"
|
|
10678
|
-
"
|
|
10676
|
+
"_iv",
|
|
10677
|
+
"_iw",
|
|
10678
|
+
"_ix"
|
|
10679
10679
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10680
10680
|
icon_xmark_default({ size: 12 });
|
|
10681
10681
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
@@ -10703,12 +10703,12 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10703
10703
|
_if(() => {
|
|
10704
10704
|
if (dead.has(p.port)) {
|
|
10705
10705
|
const $scope7_id = _scope_id();
|
|
10706
|
-
_html(`<span${_attr_class(["
|
|
10706
|
+
_html(`<span${_attr_class(["_iv", "_iB"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10707
10707
|
_subscribe($dead__closures, writeScope($scope7_id, { Cy: 1 }));
|
|
10708
10708
|
return 0;
|
|
10709
10709
|
} else {
|
|
10710
10710
|
const $scope8_id = _scope_id();
|
|
10711
|
-
_html(`<button type=button${_attr_class(["
|
|
10711
|
+
_html(`<button type=button${_attr_class(["_iv", "_iC"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10712
10712
|
_script($scope8_id, "C6");
|
|
10713
10713
|
writeScope($scope8_id, {});
|
|
10714
10714
|
return 1;
|
|
@@ -10717,9 +10717,9 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10717
10717
|
const $childScope = _peek_scope_id();
|
|
10718
10718
|
arm_button_default({
|
|
10719
10719
|
class: [
|
|
10720
|
-
"
|
|
10721
|
-
"
|
|
10722
|
-
"
|
|
10720
|
+
"_iv",
|
|
10721
|
+
"_iw",
|
|
10722
|
+
"_ix"
|
|
10723
10723
|
],
|
|
10724
10724
|
title: `Kill ${p.cmd} (pid ${p.pid})`,
|
|
10725
10725
|
armedTitle: "Kill?",
|
|
@@ -10766,12 +10766,12 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10766
10766
|
});
|
|
10767
10767
|
_resume_branch($scope0_id);
|
|
10768
10768
|
});
|
|
10769
|
-
var railBtn = "
|
|
10770
|
-
var wsBtn = "
|
|
10771
|
-
var rowIcon = "
|
|
10772
|
-
var close = "
|
|
10773
|
-
var sessRename$1 = "
|
|
10774
|
-
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";
|
|
10775
10775
|
//#endregion
|
|
10776
10776
|
//#region src/tags/icons/icon-manage.marko
|
|
10777
10777
|
var icon_manage_default = _template("lb", (input) => {
|
|
@@ -10886,7 +10886,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10886
10886
|
_if(() => {
|
|
10887
10887
|
if (input.rail) {
|
|
10888
10888
|
const $scope2_id = _scope_id();
|
|
10889
|
-
_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([
|
|
10890
10890
|
"_A",
|
|
10891
10891
|
phase[dot$1],
|
|
10892
10892
|
"_bb"
|
|
@@ -10896,31 +10896,31 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10896
10896
|
} else if (ws$1.pending) {
|
|
10897
10897
|
const $scope3_id = _scope_id();
|
|
10898
10898
|
_html(`<section${_attr_class([
|
|
10899
|
-
"
|
|
10900
|
-
"
|
|
10901
|
-
{ ["
|
|
10902
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10899
|
+
"_fx",
|
|
10900
|
+
"_fN",
|
|
10901
|
+
{ ["_fw"]: input.page }
|
|
10902
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fy")}><div${_attr_class(wsBtn)}>`);
|
|
10903
10903
|
_if(() => {
|
|
10904
10904
|
if (ws$1.pending_error) {
|
|
10905
10905
|
const $scope11_id = _scope_id();
|
|
10906
10906
|
icon_warning_default({
|
|
10907
10907
|
size: 12,
|
|
10908
|
-
class: "
|
|
10908
|
+
class: "_fP"
|
|
10909
10909
|
});
|
|
10910
10910
|
$si__input_workspace && writeScope($scope11_id, {});
|
|
10911
10911
|
return 0;
|
|
10912
10912
|
} else {
|
|
10913
10913
|
const $scope12_id = _scope_id();
|
|
10914
|
-
_html(`<span${_attr_class(["_G", "
|
|
10914
|
+
_html(`<span${_attr_class(["_G", "_fO"])}></span>`);
|
|
10915
10915
|
$si__input_workspace && writeScope($scope12_id, {});
|
|
10916
10916
|
return 1;
|
|
10917
10917
|
}
|
|
10918
10918
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10919
|
-
_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>`);
|
|
10920
10920
|
_if(() => {
|
|
10921
10921
|
if (ws$1.pending_error && !retrying) {
|
|
10922
10922
|
const $scope10_id = _scope_id();
|
|
10923
|
-
_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")}`);
|
|
10924
10924
|
arm_button_default({
|
|
10925
10925
|
class: ["_q", btnSm],
|
|
10926
10926
|
title: "Delete workspace",
|
|
@@ -10951,11 +10951,11 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10951
10951
|
const $scope4_id = _scope_id();
|
|
10952
10952
|
const sessions$1 = input.sessions || [];
|
|
10953
10953
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10954
|
-
_html(`<section${_attr_class(["
|
|
10955
|
-
["
|
|
10954
|
+
_html(`<section${_attr_class(["_fx", {
|
|
10955
|
+
["_fs"]: input.current,
|
|
10956
10956
|
["_bc"]: input.current,
|
|
10957
|
-
["
|
|
10958
|
-
}])}><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)}`);
|
|
10959
10959
|
_if(() => {
|
|
10960
10960
|
if (sessions$1.length === 1) {
|
|
10961
10961
|
const $scope14_id = _scope_id();
|
|
@@ -10967,7 +10967,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10967
10967
|
icon_agent_default({
|
|
10968
10968
|
agent: activeAgent(sessions$1[0]),
|
|
10969
10969
|
size: 12,
|
|
10970
|
-
class: "
|
|
10970
|
+
class: "_fE"
|
|
10971
10971
|
});
|
|
10972
10972
|
$si__input_sessions && writeScope($scope14_id, {
|
|
10973
10973
|
_: _scope_with_id($scope4_id),
|
|
@@ -10976,7 +10976,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10976
10976
|
return 0;
|
|
10977
10977
|
}
|
|
10978
10978
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview);
|
|
10979
|
-
_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")}>`);
|
|
10980
10980
|
_if(() => {
|
|
10981
10981
|
if (input.onNewSession) {
|
|
10982
10982
|
const $scope5_id = _scope_id();
|
|
@@ -11004,19 +11004,19 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
11004
11004
|
return 0;
|
|
11005
11005
|
}
|
|
11006
11006
|
}, $scope4_id, "k", $sg__input_onReview, $sg__input_onReview, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview, 0, 1);
|
|
11007
|
-
_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" : ""}>`);
|
|
11008
11008
|
icon_manage_default({ size: 12 });
|
|
11009
|
-
_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")}>`);
|
|
11010
11010
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
11011
11011
|
const $scope6_id = _scope_id();
|
|
11012
|
-
_html(`<div${_attr_class(["
|
|
11012
|
+
_html(`<div${_attr_class(["_fB", { ["_fs"]: s.id === input.currentTab }])}>`);
|
|
11013
11013
|
_if(() => {
|
|
11014
11014
|
if (renamingId === s.id) {
|
|
11015
11015
|
const $scope7_id = _scope_id();
|
|
11016
11016
|
_html(`<span${_attr_class([
|
|
11017
11017
|
"_A",
|
|
11018
11018
|
phase[sessionPhase(s.state)],
|
|
11019
|
-
"
|
|
11019
|
+
"_fI"
|
|
11020
11020
|
])}></span>${_el_resume($scope7_id, "a", $sg__input_sessions)}`);
|
|
11021
11021
|
_set_serialize_reason({
|
|
11022
11022
|
1: $sg__input_sessions,
|
|
@@ -11026,7 +11026,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
11026
11026
|
icon_agent_default({
|
|
11027
11027
|
agent: activeAgent(s),
|
|
11028
11028
|
size: 12,
|
|
11029
|
-
class: "
|
|
11029
|
+
class: "_fM"
|
|
11030
11030
|
});
|
|
11031
11031
|
const $childScope3 = _peek_scope_id();
|
|
11032
11032
|
rename_input_default({
|
|
@@ -11057,9 +11057,9 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
11057
11057
|
icon_agent_default({
|
|
11058
11058
|
agent: activeAgent(s),
|
|
11059
11059
|
size: 12,
|
|
11060
|
-
class: "
|
|
11060
|
+
class: "_fM"
|
|
11061
11061
|
});
|
|
11062
|
-
_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">`);
|
|
11063
11063
|
icon_edit_default({ size: 12 });
|
|
11064
11064
|
_html(`</button>${_el_resume($scope8_id, "f")}`);
|
|
11065
11065
|
arm_button_default({
|
|
@@ -11182,11 +11182,11 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11182
11182
|
const sessions = input.sessions || st?.sessions || [];
|
|
11183
11183
|
const manySessions = sessions.length > 1;
|
|
11184
11184
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11185
|
-
_html(`<div${_attr_class("
|
|
11185
|
+
_html(`<div${_attr_class("_eM")}>`);
|
|
11186
11186
|
_if(() => {
|
|
11187
11187
|
if (ws) {
|
|
11188
11188
|
const $scope1_id = _scope_id();
|
|
11189
|
-
_html(`<section${_attr_class("
|
|
11189
|
+
_html(`<section${_attr_class("_eN")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_eO")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11190
11190
|
_if(() => {
|
|
11191
11191
|
if (sessions.length === 1) {
|
|
11192
11192
|
const $scope8_id = _scope_id();
|
|
@@ -11198,7 +11198,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11198
11198
|
icon_agent_default({
|
|
11199
11199
|
agent: activeAgent(sessions[0]),
|
|
11200
11200
|
size: 16,
|
|
11201
|
-
class: "
|
|
11201
|
+
class: "_eS"
|
|
11202
11202
|
});
|
|
11203
11203
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
|
|
11204
11204
|
_: _scope_with_id($scope1_id),
|
|
@@ -11207,14 +11207,14 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11207
11207
|
return 0;
|
|
11208
11208
|
}
|
|
11209
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);
|
|
11210
|
-
_html(`<span${_attr_class("
|
|
11210
|
+
_html(`<span${_attr_class("_eP")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class(heroTag)}>open</span><span${_attr_class("_eR")}>${_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)}`);
|
|
11211
11211
|
_if(() => {
|
|
11212
11212
|
if (manySessions) {
|
|
11213
11213
|
const $scope2_id = _scope_id();
|
|
11214
|
-
_html(`<div${_attr_class("
|
|
11214
|
+
_html(`<div${_attr_class("_eT")}>`);
|
|
11215
11215
|
_for_of(sessions, (s) => {
|
|
11216
11216
|
const $scope3_id = _scope_id();
|
|
11217
|
-
_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(["_eV", { ["_eU"]: 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)}`);
|
|
11218
11218
|
_set_serialize_reason({
|
|
11219
11219
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11220
11220
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11224,7 +11224,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11224
11224
|
agent: activeAgent(s),
|
|
11225
11225
|
size: 14
|
|
11226
11226
|
});
|
|
11227
|
-
_html(`<span${_attr_class("
|
|
11227
|
+
_html(`<span${_attr_class("_eW")}>${_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))}`);
|
|
11228
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, {
|
|
11229
11229
|
h: $si__input_tab && s?.id,
|
|
11230
11230
|
_: _scope_with_id($scope2_id),
|
|
@@ -11253,7 +11253,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11253
11253
|
_if(() => {
|
|
11254
11254
|
if (input.ids.length) {
|
|
11255
11255
|
const $scope4_id = _scope_id();
|
|
11256
|
-
_html(`<div${_attr_class("
|
|
11256
|
+
_html(`<div${_attr_class("_eX")}>`);
|
|
11257
11257
|
_for_of(input.ids, (id) => {
|
|
11258
11258
|
const $scope5_id = _scope_id();
|
|
11259
11259
|
const w = input.byId.get(id);
|
|
@@ -11297,7 +11297,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11297
11297
|
const rp = phaseOf(rs);
|
|
11298
11298
|
const rowSessions = rs?.sessions || [];
|
|
11299
11299
|
const many = rowSessions.length > 1;
|
|
11300
|
-
_html(`<div${_attr_class("
|
|
11300
|
+
_html(`<div${_attr_class("_eY")}><a${_attr("href", `/w/${id}`)}${_attr_class("_eZ")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope7_id, "c", $sg__input_allStatus__OR__input_ids)}`);
|
|
11301
11301
|
_if(() => {
|
|
11302
11302
|
if (rowSessions.length === 1) {
|
|
11303
11303
|
const $scope9_id = _scope_id();
|
|
@@ -11309,7 +11309,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11309
11309
|
icon_agent_default({
|
|
11310
11310
|
agent: activeAgent(rowSessions[0]),
|
|
11311
11311
|
size: 16,
|
|
11312
|
-
class: "
|
|
11312
|
+
class: "_e1"
|
|
11313
11313
|
});
|
|
11314
11314
|
$si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
|
|
11315
11315
|
_: _scope_with_id($scope7_id),
|
|
@@ -11318,7 +11318,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11318
11318
|
return 0;
|
|
11319
11319
|
}
|
|
11320
11320
|
}, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
|
|
11321
|
-
_html(`<span${_attr_class("
|
|
11321
|
+
_html(`<span${_attr_class("_e0")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
|
|
11322
11322
|
_if(() => {
|
|
11323
11323
|
if (many) {
|
|
11324
11324
|
const $scope10_id = _scope_id();
|
|
@@ -11329,7 +11329,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11329
11329
|
}, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
|
|
11330
11330
|
icon_chevron_right_default({
|
|
11331
11331
|
size: 14,
|
|
11332
|
-
class: "
|
|
11332
|
+
class: "_e3"
|
|
11333
11333
|
});
|
|
11334
11334
|
_html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
|
|
11335
11335
|
_set_serialize_reason($sg__input_ids);
|
|
@@ -11449,13 +11449,13 @@ var usage_bars_default = _template("K", (input) => {
|
|
|
11449
11449
|
if (windows.length) {
|
|
11450
11450
|
const $scope1_id = _scope_id();
|
|
11451
11451
|
_html(`<span${_attr_class([
|
|
11452
|
-
"
|
|
11452
|
+
"_hF",
|
|
11453
11453
|
input.class,
|
|
11454
|
-
{ ["
|
|
11454
|
+
{ ["_hG"]: agent.stale_seconds != null }
|
|
11455
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)}>`);
|
|
11456
11456
|
_for_of(windows, (win) => {
|
|
11457
11457
|
const $scope2_id = _scope_id();
|
|
11458
|
-
_html(`<span${_attr_class(["
|
|
11458
|
+
_html(`<span${_attr_class(["_hH", win.used_percent >= 90 ? "_hL" : win.used_percent >= 70 ? "_hK" : win.used_percent >= 40 ? "_hJ" : "_hI"])}${_attr_style(`--pct:${Math.max(2, Math.min(100, win.used_percent))}%`)}></span>${_el_resume($scope2_id, "a", $sg__input_agent)}`);
|
|
11459
11459
|
$si__input_agent && writeScope($scope2_id, {});
|
|
11460
11460
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
11461
11461
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -11487,7 +11487,7 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11487
11487
|
const plan = openSess ? usageFor$1(openSess.agent, usage) : null;
|
|
11488
11488
|
const all = usage?.agents || [];
|
|
11489
11489
|
const peak = Math.max(0, ...(plan?.windows || []).map((w) => w.used_percent));
|
|
11490
|
-
const ringTone = _resume((pct) => pct >= 90 ? "
|
|
11490
|
+
const ringTone = _resume((pct) => pct >= 90 ? "_eL" : pct >= 70 ? "_eK" : pct >= 40 ? "_eJ" : "_eI", "r0");
|
|
11491
11491
|
let card$2 = null;
|
|
11492
11492
|
const showCard = _resume((el) => {
|
|
11493
11493
|
const r = el.getBoundingClientRect();
|
|
@@ -11499,18 +11499,18 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11499
11499
|
_if(() => {
|
|
11500
11500
|
if (plan) {
|
|
11501
11501
|
const $scope1_id = _scope_id();
|
|
11502
|
-
_html(`<span${_attr_class("
|
|
11502
|
+
_html(`<span${_attr_class("_eC")} tabindex=0>`);
|
|
11503
11503
|
_set_serialize_reason(1);
|
|
11504
11504
|
const $childScope = _peek_scope_id();
|
|
11505
11505
|
usage_bars_default({
|
|
11506
|
-
class: "
|
|
11506
|
+
class: "_eE",
|
|
11507
11507
|
agent: plan
|
|
11508
11508
|
});
|
|
11509
|
-
_html(`<svg${_attr_class(["
|
|
11509
|
+
_html(`<svg${_attr_class(["_eF", ringTone(peak)])} viewBox="0 0 16 16" width=16 height=16 aria-hidden=true><circle${_attr_class("_eG")} cx=8 cy=8 r=6.5></circle><circle${_attr_class("_eH")} 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")}`);
|
|
11510
11510
|
_if(() => {
|
|
11511
11511
|
if (card$2) {
|
|
11512
11512
|
const $scope2_id = _scope_id();
|
|
11513
|
-
_html(`<div${_attr_class(["_9", "
|
|
11513
|
+
_html(`<div${_attr_class(["_9", "_eD"])}${_attr_style(`left:${card$2.left}px;bottom:${card$2.bottom}px`)} role=tooltip>`);
|
|
11514
11514
|
_for_of(all, (a) => {
|
|
11515
11515
|
const $scope3_id = _scope_id();
|
|
11516
11516
|
_set_serialize_reason(6);
|
|
@@ -13036,8 +13036,8 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13036
13036
|
}
|
|
13037
13037
|
return shortHeadFallback(head);
|
|
13038
13038
|
}
|
|
13039
|
-
var treeToggle = "
|
|
13040
|
-
var pageTitle = "
|
|
13039
|
+
var treeToggle = "_go _4 _l";
|
|
13040
|
+
var pageTitle = "_gu _cx";
|
|
13041
13041
|
//#endregion
|
|
13042
13042
|
//#region src/tags/icons/icon-comment.marko
|
|
13043
13043
|
var icon_comment_default = _template("bb", (input) => {
|
|
@@ -13098,12 +13098,12 @@ var diff_send_default = _template("k", (input) => {
|
|
|
13098
13098
|
}
|
|
13099
13099
|
})();
|
|
13100
13100
|
}, "k1", $scope0_id);
|
|
13101
|
-
_html(`<div${_attr_class("
|
|
13101
|
+
_html(`<div${_attr_class("_iE")} role=group${_attr("aria-label", label)}><span${_attr_class("_iF")}${_attr("title", label)}>`);
|
|
13102
13102
|
icon_comment_default({
|
|
13103
13103
|
size: 18,
|
|
13104
|
-
class: "
|
|
13104
|
+
class: "_iG"
|
|
13105
13105
|
});
|
|
13106
|
-
_html(`<span${_attr_class("
|
|
13106
|
+
_html(`<span${_attr_class("_iH")} aria-hidden=true>${_text_resume($scope0_id, "e", input.count > 99 ? "99+" : input.count, $sg__input_count)}</span></span>${_el_resume($scope0_id, "b", $sg__input_count)}<button type=button${_attr_class("_iI")} title="Copy comments as markdown" aria-label="Copy comments as markdown">`);
|
|
13107
13107
|
_if(() => {
|
|
13108
13108
|
{
|
|
13109
13109
|
const $scope6_id = _scope_id();
|
|
@@ -13115,11 +13115,11 @@ var diff_send_default = _template("k", (input) => {
|
|
|
13115
13115
|
_if(() => {
|
|
13116
13116
|
if (target) {
|
|
13117
13117
|
const $scope1_id = _scope_id();
|
|
13118
|
-
_html(`<button type=button${_attr_class(["
|
|
13118
|
+
_html(`<button type=button${_attr_class(["_iI", "_iJ"])}${_attr("disabled", sending)}${_attr("title", `Send comments to ${target.title || target.agent}`)}>`);
|
|
13119
13119
|
_if(() => {
|
|
13120
13120
|
if (sessions.length > 1) {
|
|
13121
13121
|
const $scope2_id = _scope_id();
|
|
13122
|
-
_html(`<span${_attr_class(["
|
|
13122
|
+
_html(`<span${_attr_class(["_iM", "_iL"])}>${_text_resume($scope2_id, "b", sending ? "Sending…" : `Send to ${target.title || target.agent}`)}</span><span${_attr_class("_iK")}>${_text_resume($scope2_id, "d", sending ? "Sending…" : "Send")}</span>`);
|
|
13123
13123
|
_subscribe($target_agent__closures, _subscribe($target_title__closures, _subscribe($sending__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))));
|
|
13124
13124
|
return 0;
|
|
13125
13125
|
} else {
|
|
@@ -13135,15 +13135,15 @@ var diff_send_default = _template("k", (input) => {
|
|
|
13135
13135
|
_if(() => {
|
|
13136
13136
|
if (sessions.length > 1) {
|
|
13137
13137
|
const $scope4_id = _scope_id();
|
|
13138
|
-
_html(`<span${_attr_class("
|
|
13139
|
-
"
|
|
13140
|
-
"
|
|
13141
|
-
"
|
|
13138
|
+
_html(`<span${_attr_class("_iN")}><button type=button${_attr_class([
|
|
13139
|
+
"_iI",
|
|
13140
|
+
"_iJ",
|
|
13141
|
+
"_iO"
|
|
13142
13142
|
])} aria-label="Choose session to send to"${_attr("disabled", sending)}></button>${_el_resume($scope4_id, "b")}`);
|
|
13143
13143
|
_attr_select_value($scope4_id, "c", target.id, _resume(function(v) {
|
|
13144
13144
|
sendTarget = v;
|
|
13145
13145
|
}, "k0", $scope4_id), () => {
|
|
13146
|
-
_html(`<select${_attr_class("
|
|
13146
|
+
_html(`<select${_attr_class("_iP")} aria-label="Send comments to session" tabindex=-1${_attr("disabled", sending)}>`);
|
|
13147
13147
|
_for_of(sessions, (s) => {
|
|
13148
13148
|
const $scope7_id = _scope_id();
|
|
13149
13149
|
_html(`<option${_attr_option_value(s.id)}>${_text_resume($scope7_id, "b", s.title || s.agent, $sg__input_sessions)}</option>${_el_resume($scope7_id, "a", $sg__input_sessions)}`);
|
|
@@ -13220,8 +13220,8 @@ var icon_branch_default = _template("Y", (input) => {
|
|
|
13220
13220
|
});
|
|
13221
13221
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
13222
13222
|
});
|
|
13223
|
-
var findInput = "
|
|
13224
|
-
var findIconBtn = "
|
|
13223
|
+
var findInput = "_eq _n";
|
|
13224
|
+
var findIconBtn = "_et _l";
|
|
13225
13225
|
//#endregion
|
|
13226
13226
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
13227
13227
|
var icon_arrow_down_default = _template("R", (input) => {
|
|
@@ -13313,18 +13313,18 @@ var diff_find_default = _template("j", (input) => {
|
|
|
13313
13313
|
}, 0);
|
|
13314
13314
|
}, "j0", $scope0_id);
|
|
13315
13315
|
_html(`<div${_attr_class([
|
|
13316
|
-
"
|
|
13317
|
-
input.keybar && "
|
|
13318
|
-
!open && "
|
|
13319
|
-
])} aria-hidden=${open ? "false" : "true"}><span${_attr_class("
|
|
13316
|
+
"_eo",
|
|
13317
|
+
input.keybar && "_ex",
|
|
13318
|
+
!open && "_en"
|
|
13319
|
+
])} aria-hidden=${open ? "false" : "true"}><span${_attr_class("_ep")} aria-hidden=true>`);
|
|
13320
13320
|
icon_search_default({ size: 13 });
|
|
13321
13321
|
_html(`</span><input${_attr_input_value($scope0_id, "d", query || "", _resume(function(v) {
|
|
13322
13322
|
type(v);
|
|
13323
|
-
}, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "
|
|
13323
|
+
}, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "_ez"])} 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("_es")}>${_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 && "_eA"])} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13324
13324
|
icon_arrow_up_default({ size: 14 });
|
|
13325
|
-
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "
|
|
13325
|
+
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "_eA"])} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13326
13326
|
icon_arrow_down_default({ size: 14 });
|
|
13327
|
-
_html(`</button>${_el_resume($scope0_id, "i")}<button type=button${_attr_class([findIconBtn, input.keybar && "
|
|
13327
|
+
_html(`</button>${_el_resume($scope0_id, "i")}<button type=button${_attr_class([findIconBtn, input.keybar && "_eA"])} title="Close find"${_attr("hidden", input.pinned)} tabindex=${open ? "0" : "-1"}>`);
|
|
13328
13328
|
icon_xmark_default({ size: 14 });
|
|
13329
13329
|
_html(`</button>${_el_resume($scope0_id, "k")}</div>${_el_resume($scope0_id, "a")}`);
|
|
13330
13330
|
const $return = focusInput;
|
|
@@ -14420,11 +14420,11 @@ var review_view_default = _template("A", (input) => {
|
|
|
14420
14420
|
else viewBox.scrollToLine(hit.key, hit.line, hit.side);
|
|
14421
14421
|
}, 0);
|
|
14422
14422
|
};
|
|
14423
|
-
_html(`<div${_attr_class("
|
|
14423
|
+
_html(`<div${_attr_class("_gl")}><div${_attr_class("_gq")}><div${_attr_class("_g0")}><div${_attr_class("_gr")}><div${_attr_class("_gy")}>`);
|
|
14424
14424
|
_if(() => {
|
|
14425
14425
|
if (input.onExit) {
|
|
14426
14426
|
const $scope1_id = _scope_id();
|
|
14427
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
14427
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_gs"])} title="Back to terminal (⌘/Ctrl+Shift+D)">`);
|
|
14428
14428
|
icon_back_default({ size: 14 });
|
|
14429
14429
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 2))}`);
|
|
14430
14430
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 2) && _scope_with_id($scope0_id) });
|
|
@@ -14435,7 +14435,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14435
14435
|
_if(() => {
|
|
14436
14436
|
if (comments.length) {
|
|
14437
14437
|
const $scope2_id = _scope_id();
|
|
14438
|
-
_html(`<span${_attr_class("
|
|
14438
|
+
_html(`<span${_attr_class("_gt")}>`);
|
|
14439
14439
|
_set_serialize_reason({
|
|
14440
14440
|
0: _serialize_guard($scope0_reason, 10),
|
|
14441
14441
|
1: 1
|
|
@@ -14452,14 +14452,14 @@ var review_view_default = _template("A", (input) => {
|
|
|
14452
14452
|
return 0;
|
|
14453
14453
|
}
|
|
14454
14454
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
14455
|
-
_html(`</div><div${_attr_class(["
|
|
14455
|
+
_html(`</div><div${_attr_class(["_gp", "_gZ"])}>`);
|
|
14456
14456
|
_if(() => {
|
|
14457
14457
|
if (hasFiles) {
|
|
14458
14458
|
const $scope9_id = _scope_id();
|
|
14459
14459
|
_html(`<button${_attr_class([
|
|
14460
14460
|
treeToggle,
|
|
14461
|
-
"
|
|
14462
|
-
{ ["
|
|
14461
|
+
"_gn",
|
|
14462
|
+
{ ["_gm"]: treeOpen }
|
|
14463
14463
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
14464
14464
|
icon_sidebar_default({ size: 14 });
|
|
14465
14465
|
_html(`</button>${_el_resume($scope9_id, "a")}`);
|
|
@@ -14468,7 +14468,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14468
14468
|
return 0;
|
|
14469
14469
|
}
|
|
14470
14470
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
14471
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
14471
|
+
_html(`<button${_attr_class([iconBtnRow, "_gn"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
14472
14472
|
_set_serialize_reason(1);
|
|
14473
14473
|
const $childScope2 = _peek_scope_id();
|
|
14474
14474
|
icon_refresh_default({
|
|
@@ -14481,30 +14481,30 @@ var review_view_default = _template("A", (input) => {
|
|
|
14481
14481
|
const $scope10_id = _scope_id();
|
|
14482
14482
|
_html(`<button${_attr_class([
|
|
14483
14483
|
iconBtnRow,
|
|
14484
|
-
"
|
|
14485
|
-
"
|
|
14486
|
-
])}${_attr("title", `Jump to file (${shownFiles.length})`)}${_attr("aria-label", `Jump to file (${shownFiles.length} files)`)}><span${_attr_class("
|
|
14484
|
+
"_gn",
|
|
14485
|
+
"_gK"
|
|
14486
|
+
])}${_attr("title", `Jump to file (${shownFiles.length})`)}${_attr("aria-label", `Jump to file (${shownFiles.length} files)`)}><span${_attr_class("_gL")} aria-hidden=true>`);
|
|
14487
14487
|
icon_folder_default({
|
|
14488
14488
|
size: 20,
|
|
14489
|
-
class: "
|
|
14489
|
+
class: "_gM"
|
|
14490
14490
|
});
|
|
14491
|
-
_html(`<span${_attr_class("
|
|
14491
|
+
_html(`<span${_attr_class("_gN")}>${_text_resume($scope10_id, "e", shownFiles.length > 99 ? "99+" : shownFiles.length)}</span></span></button>${_el_resume($scope10_id, "a")}`);
|
|
14492
14492
|
_script($scope10_id, "A41");
|
|
14493
14493
|
writeScope($scope10_id, {});
|
|
14494
14494
|
return 0;
|
|
14495
14495
|
}
|
|
14496
14496
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
14497
|
-
_html(`<span${_attr_class("
|
|
14497
|
+
_html(`<span${_attr_class("_gz")}><button${_attr_class([
|
|
14498
14498
|
iconBtnRow,
|
|
14499
|
-
"
|
|
14500
|
-
{ ["
|
|
14499
|
+
"_gn",
|
|
14500
|
+
{ ["_gm"]: !!rev }
|
|
14501
14501
|
])}${_attr("title", `${compareLabel}\n${compareTitle}`)} aria-label=Compare${_attr("disabled", loading)}>`);
|
|
14502
14502
|
icon_branch_default({ size: 14 });
|
|
14503
14503
|
_html(`</button>${_el_resume($scope0_id, "o")}`);
|
|
14504
14504
|
_attr_select_value($scope0_id, "q", rev ? `rev:${rev}` : scope, _resume(function(v) {
|
|
14505
14505
|
pickCompare(v);
|
|
14506
14506
|
}, "A0", $scope0_id), () => {
|
|
14507
|
-
_html(`<select${_attr_class("
|
|
14507
|
+
_html(`<select${_attr_class("_gA")} aria-label=Compare tabindex=-1${_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>`);
|
|
14508
14508
|
_if(() => {
|
|
14509
14509
|
if (commitOptions.length) {
|
|
14510
14510
|
const $scope12_id = _scope_id();
|
|
@@ -14520,7 +14520,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14520
14520
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
14521
14521
|
_html("</select>");
|
|
14522
14522
|
});
|
|
14523
|
-
_html(`${_el_resume($scope0_id, "q")}</span> <div${_attr_class(["
|
|
14523
|
+
_html(`${_el_resume($scope0_id, "q")}</span> <div${_attr_class(["_gx", { ["_gw"]: !findOpen }])}>`);
|
|
14524
14524
|
_set_serialize_reason(2);
|
|
14525
14525
|
const $childScope3 = _peek_scope_id();
|
|
14526
14526
|
let findFocus = diff_find_default({
|
|
@@ -14543,8 +14543,8 @@ var review_view_default = _template("A", (input) => {
|
|
|
14543
14543
|
const $scope11_id = _scope_id();
|
|
14544
14544
|
_html(`<button${_attr_class([
|
|
14545
14545
|
iconBtnRow,
|
|
14546
|
-
"
|
|
14547
|
-
"
|
|
14546
|
+
"_gv",
|
|
14547
|
+
"_gn"
|
|
14548
14548
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
14549
14549
|
icon_search_default({ size: 14 });
|
|
14550
14550
|
_html(`</button>${_el_resume($scope11_id, "a")}`);
|
|
@@ -14557,7 +14557,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14557
14557
|
_if(() => {
|
|
14558
14558
|
if (!repos && loading) {
|
|
14559
14559
|
const $scope14_id = _scope_id();
|
|
14560
|
-
_html(`<div${_attr_class("
|
|
14560
|
+
_html(`<div${_attr_class("_gH")} aria-hidden=true><div${_attr_class(["_gD", "_gI"])}></div><div${_attr_class(["_gD", "_gJ"])}></div></div>`);
|
|
14561
14561
|
writeScope($scope14_id, {});
|
|
14562
14562
|
return 0;
|
|
14563
14563
|
}
|
|
@@ -14630,7 +14630,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14630
14630
|
onReload: reload,
|
|
14631
14631
|
loading
|
|
14632
14632
|
});
|
|
14633
|
-
_html(`</div><div${_attr_class("
|
|
14633
|
+
_html(`</div><div${_attr_class("_gO")}>`);
|
|
14634
14634
|
_if(() => {
|
|
14635
14635
|
if (error) {
|
|
14636
14636
|
const $scope3_id = _scope_id();
|
|
@@ -14675,10 +14675,10 @@ var review_view_default = _template("A", (input) => {
|
|
|
14675
14675
|
_if(() => {
|
|
14676
14676
|
if (!repos && loading) {
|
|
14677
14677
|
const $scope15_id = _scope_id();
|
|
14678
|
-
_html(`<div${_attr_class("
|
|
14678
|
+
_html(`<div${_attr_class("_gC")} aria-hidden=true>`);
|
|
14679
14679
|
forTo(2, 0, 1, () => {
|
|
14680
14680
|
_scope_id();
|
|
14681
|
-
_html(`<div${_attr_class("
|
|
14681
|
+
_html(`<div${_attr_class("_gE")}><div${_attr_class(["_gD", "_gF"])}></div><div${_attr_class(["_gD", "_gG"])}></div></div>`);
|
|
14682
14682
|
});
|
|
14683
14683
|
_html("</div>");
|
|
14684
14684
|
writeScope($scope15_id, {});
|
|
@@ -14688,17 +14688,17 @@ var review_view_default = _template("A", (input) => {
|
|
|
14688
14688
|
_if(() => {
|
|
14689
14689
|
if (repos && !allFiles.length) {
|
|
14690
14690
|
const $scope8_id = _scope_id();
|
|
14691
|
-
_html(`<p${_attr_class("
|
|
14691
|
+
_html(`<p${_attr_class("_cp")}>${_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>`);
|
|
14692
14692
|
writeScope($scope8_id, {});
|
|
14693
14693
|
return 0;
|
|
14694
14694
|
} else if (repos && !listFiles.length && !findState.hit) {
|
|
14695
14695
|
const $scope5_id = _scope_id();
|
|
14696
|
-
_html(`<p${_attr_class("
|
|
14696
|
+
_html(`<p${_attr_class("_cp")}>${_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>`);
|
|
14697
14697
|
writeScope($scope5_id, {});
|
|
14698
14698
|
return 1;
|
|
14699
14699
|
}
|
|
14700
14700
|
}, $scope0_id, "a2", 1, 1, 1, 0, 1);
|
|
14701
|
-
_html(`</div></div><div${_attr_class("
|
|
14701
|
+
_html(`</div></div><div${_attr_class("_gP")} data-diff-main></div>${_el_resume($scope0_id, "a3")}</div>`);
|
|
14702
14702
|
_set_serialize_reason(26);
|
|
14703
14703
|
const $childScope6 = _peek_scope_id();
|
|
14704
14704
|
review_tree_default({
|
|
@@ -14978,10 +14978,10 @@ function parseInvite(text) {
|
|
|
14978
14978
|
}
|
|
14979
14979
|
//#endregion
|
|
14980
14980
|
//#region src/tags/manage-workspace.css.ts
|
|
14981
|
-
var procCmd = "
|
|
14982
|
-
var skillRow = "
|
|
14983
|
-
var skillName = "
|
|
14984
|
-
var skillDesc = "
|
|
14981
|
+
var procCmd = "_f8 _cT";
|
|
14982
|
+
var skillRow = "_f_ _cR";
|
|
14983
|
+
var skillName = "_gb _f8 _cT";
|
|
14984
|
+
var skillDesc = "_ge _cU";
|
|
14985
14985
|
//#endregion
|
|
14986
14986
|
//#region src/tags/icons/icon-archive.marko
|
|
14987
14987
|
var icon_archive_default = _template("Q", (input) => {
|
|
@@ -15016,10 +15016,10 @@ var icon_trash_default = _template("wb", (input) => {
|
|
|
15016
15016
|
});
|
|
15017
15017
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
15018
15018
|
});
|
|
15019
|
-
var resultRow = "
|
|
15020
|
-
var resultBranch = "
|
|
15021
|
-
var urlAction = "
|
|
15022
|
-
var addedRow = "
|
|
15019
|
+
var resultRow = "_h2 _I";
|
|
15020
|
+
var resultBranch = "_h3 _cY _X _W _3 _l";
|
|
15021
|
+
var urlAction = "_h4 _cY _X _W _cZ";
|
|
15022
|
+
var addedRow = "_ie _cR";
|
|
15023
15023
|
//#endregion
|
|
15024
15024
|
//#region src/tags/branch-pick.marko
|
|
15025
15025
|
var branch_pick_default = _template("f", (input) => {
|
|
@@ -15032,11 +15032,11 @@ var branch_pick_default = _template("f", (input) => {
|
|
|
15032
15032
|
let branchFilter = "";
|
|
15033
15033
|
let reloadTick = 0;
|
|
15034
15034
|
let refreshing = false;
|
|
15035
|
-
_html(`<div${_attr_class("
|
|
15035
|
+
_html(`<div${_attr_class("_h5")}>`);
|
|
15036
15036
|
_if(() => {
|
|
15037
15037
|
{
|
|
15038
15038
|
const $scope4_id = _scope_id();
|
|
15039
|
-
_html(`<p${_attr_class("
|
|
15039
|
+
_html(`<p${_attr_class("_co")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
15040
15040
|
writeScope($scope4_id, {});
|
|
15041
15041
|
return 0;
|
|
15042
15042
|
}
|
|
@@ -15139,10 +15139,10 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15139
15139
|
}, $scope0_id) };
|
|
15140
15140
|
const addedList = sheet ? input$2.added || [] : [];
|
|
15141
15141
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || ssoPending.length || sheet && !!input$2.added);
|
|
15142
|
-
_html(`<div${_attr_class(["
|
|
15143
|
-
["
|
|
15144
|
-
["
|
|
15145
|
-
}])}><label${_attr_class(["_0", "
|
|
15142
|
+
_html(`<div${_attr_class(["_d6", {
|
|
15143
|
+
["_d7"]: !input$2.open,
|
|
15144
|
+
["_d8"]: input$2.pinned
|
|
15145
|
+
}])}><label${_attr_class(["_0", "_d9"])}>`);
|
|
15146
15146
|
icon_search_default({
|
|
15147
15147
|
size: 14,
|
|
15148
15148
|
class: "_1"
|
|
@@ -15154,14 +15154,14 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15154
15154
|
}, "w0", $scope0_id))}${_attr_class([
|
|
15155
15155
|
"_Y",
|
|
15156
15156
|
"_2",
|
|
15157
|
-
"
|
|
15158
|
-
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
15157
|
+
"_d_"
|
|
15158
|
+
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "d")}</label><button${_attr_class([iconBtnRow, "_eb"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
15159
15159
|
icon_xmark_default({ size: 14 });
|
|
15160
|
-
_html(`</button>${_el_resume($scope0_id, "e")}<div${_attr_class(pop$1)}${_attr("hidden", !hasBody || !input$2.open && !input$2.pinned)}>`);
|
|
15160
|
+
_html(`</button>${_el_resume($scope0_id, "e")}<div${_attr_class(pop$1)} data-add-pop${_attr("hidden", !hasBody || !input$2.open && !input$2.pinned)}>`);
|
|
15161
15161
|
_if(() => {
|
|
15162
15162
|
if (ssoPending.length) {
|
|
15163
15163
|
const $scope11_id = _scope_id();
|
|
15164
|
-
_html(`<div${_attr_class("
|
|
15164
|
+
_html(`<div${_attr_class("_hY")}>`);
|
|
15165
15165
|
ssoBlock.content({});
|
|
15166
15166
|
_html("</div>");
|
|
15167
15167
|
writeScope($scope11_id, {});
|
|
@@ -15171,16 +15171,16 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15171
15171
|
_if(() => {
|
|
15172
15172
|
if (pasted) {
|
|
15173
15173
|
const $scope1_id = _scope_id();
|
|
15174
|
-
_html(`<ul${_attr_class("
|
|
15174
|
+
_html(`<ul${_attr_class("_hZ")}><li><div${_attr_class(["_h1", "_h0"])}><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)`)}>`);
|
|
15175
15175
|
icon_plus_default({
|
|
15176
15176
|
size: 12,
|
|
15177
|
-
class: "
|
|
15177
|
+
class: "_h7"
|
|
15178
15178
|
});
|
|
15179
|
-
_html(`<span${_attr_class("
|
|
15179
|
+
_html(`<span${_attr_class("_h8")}>${_text_resume($scope1_id, "f", repoLabel$1(pasted))}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
15180
15180
|
_if(() => {
|
|
15181
15181
|
if (pastedForkable) {
|
|
15182
15182
|
const $scope10_id = _scope_id();
|
|
15183
|
-
_html(`<button${_attr_class([urlAction, { ["
|
|
15183
|
+
_html(`<button${_attr_class([urlAction, { ["_cX"]: 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"}>`);
|
|
15184
15184
|
_if(() => {
|
|
15185
15185
|
if (pasteWillFork) {
|
|
15186
15186
|
const $scope13_id = _scope_id();
|
|
@@ -15200,7 +15200,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15200
15200
|
return 0;
|
|
15201
15201
|
}
|
|
15202
15202
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
15203
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
15203
|
+
_html(`<button${_attr_class([resultBranch, { ["_cX"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
15204
15204
|
icon_branch_default({ size: 12 });
|
|
15205
15205
|
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
15206
15206
|
_if(() => {
|
|
@@ -15227,7 +15227,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15227
15227
|
return 0;
|
|
15228
15228
|
} else if (filter && !catalog) {
|
|
15229
15229
|
const $scope12_id = _scope_id();
|
|
15230
|
-
_html(`<p${_attr_class("
|
|
15230
|
+
_html(`<p${_attr_class("_co")}>Loading repos…</p>`);
|
|
15231
15231
|
writeScope($scope12_id, {});
|
|
15232
15232
|
return 1;
|
|
15233
15233
|
}
|
|
@@ -15235,15 +15235,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15235
15235
|
_if(() => {
|
|
15236
15236
|
if (results.length) {
|
|
15237
15237
|
const $scope3_id = _scope_id();
|
|
15238
|
-
_html(`<ul${_attr_class("
|
|
15238
|
+
_html(`<ul${_attr_class("_hZ")}>`);
|
|
15239
15239
|
_for_of(results, (repo, i) => {
|
|
15240
15240
|
const $scope4_id = _scope_id();
|
|
15241
|
-
_html(`<li><div${_attr_class(["
|
|
15241
|
+
_html(`<li><div${_attr_class(["_h1", { ["_h0"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15242
15242
|
icon_plus_default({
|
|
15243
15243
|
size: 12,
|
|
15244
|
-
class: "
|
|
15244
|
+
class: "_h7"
|
|
15245
15245
|
});
|
|
15246
|
-
_html(`<span${_attr_class("
|
|
15246
|
+
_html(`<span${_attr_class("_h8")}>${_text_resume($scope4_id, "e", repoLabel$1(repo.nameWithOwner))}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_cX"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
15247
15247
|
icon_branch_default({ size: 12 });
|
|
15248
15248
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
15249
15249
|
_if(() => {
|
|
@@ -15278,7 +15278,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15278
15278
|
return 0;
|
|
15279
15279
|
} else if (filter && catalog && !pasted) {
|
|
15280
15280
|
const $scope8_id = _scope_id();
|
|
15281
|
-
_html(`<p${_attr_class("
|
|
15281
|
+
_html(`<p${_attr_class("_co")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
15282
15282
|
writeScope($scope8_id, {});
|
|
15283
15283
|
return 1;
|
|
15284
15284
|
}
|
|
@@ -15286,10 +15286,10 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15286
15286
|
_if(() => {
|
|
15287
15287
|
if (sheet && input$2.added) {
|
|
15288
15288
|
const $scope6_id = _scope_id();
|
|
15289
|
-
_html(`<div${_attr_class("
|
|
15289
|
+
_html(`<div${_attr_class("_ic")}><p${_attr_class("_id")}>Repos <span${_attr_class(sectionCount$1)}>${_text_resume($scope6_id, "d", addedList.length, $sg__input_added)}</span></p><ul${_attr_class(list$2)}>`);
|
|
15290
15290
|
_for_of(addedList, (repo) => {
|
|
15291
15291
|
const $scope15_id = _scope_id();
|
|
15292
|
-
_html(`<li${_attr_class([addedRow, { ["
|
|
15292
|
+
_html(`<li${_attr_class([addedRow, { ["_cW"]: repo.pending }])}>`);
|
|
15293
15293
|
_if(() => {
|
|
15294
15294
|
if (repo.pending) {
|
|
15295
15295
|
const $scope17_id = _scope_id();
|
|
@@ -15300,13 +15300,13 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15300
15300
|
const $scope18_id = _scope_id();
|
|
15301
15301
|
icon_check_default({
|
|
15302
15302
|
size: 12,
|
|
15303
|
-
class: "
|
|
15303
|
+
class: "_h7"
|
|
15304
15304
|
});
|
|
15305
15305
|
$si__input_added && writeScope($scope18_id, {});
|
|
15306
15306
|
return 1;
|
|
15307
15307
|
}
|
|
15308
15308
|
}, $scope15_id, "b", $sg__input_added, $sg__input_added, $sg__input_added, 0, 1);
|
|
15309
|
-
_html(`<span${_attr_class("
|
|
15309
|
+
_html(`<span${_attr_class("_h8")}>${_text_resume($scope15_id, "d", repoLabel$1(repo.name), $sg__input_added)}</span>`);
|
|
15310
15310
|
_if(() => {
|
|
15311
15311
|
if (repo.baseBranch) {
|
|
15312
15312
|
const $scope16_id = _scope_id();
|
|
@@ -15323,7 +15323,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15323
15323
|
_if(() => {
|
|
15324
15324
|
if (!addedList.length) {
|
|
15325
15325
|
const $scope7_id = _scope_id();
|
|
15326
|
-
_html(`<li${_attr_class([addedRow, "
|
|
15326
|
+
_html(`<li${_attr_class([addedRow, "_cW"])}>`);
|
|
15327
15327
|
_if(() => {
|
|
15328
15328
|
if (catalog) {
|
|
15329
15329
|
const $scope19_id = _scope_id();
|
|
@@ -15561,7 +15561,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15561
15561
|
setTimeout(() => loadProcs(void 0), 500);
|
|
15562
15562
|
}, "p11", $scope0_id);
|
|
15563
15563
|
const titleId = _id();
|
|
15564
|
-
_html(`<div${_attr_class("
|
|
15564
|
+
_html(`<div${_attr_class("_cs")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ct")}><div${_attr_class("_cu")}>`);
|
|
15565
15565
|
_set_serialize_reason(30);
|
|
15566
15566
|
const $childScope2 = _peek_scope_id();
|
|
15567
15567
|
page_head_default({
|
|
@@ -15669,7 +15669,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15669
15669
|
_resume_branch($scope6_id);
|
|
15670
15670
|
}, $scope0_id) })
|
|
15671
15671
|
});
|
|
15672
|
-
_html(`<div${_attr_class("
|
|
15672
|
+
_html(`<div${_attr_class("_cv")}><section${_attr_class("_cd")}><div${_attr_class("_ce")}><h2${_attr_class("_cr")}>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>`);
|
|
15673
15673
|
_if(() => {
|
|
15674
15674
|
if (ws.status !== "active") {
|
|
15675
15675
|
const $scope23_id = _scope_id();
|
|
@@ -15678,8 +15678,8 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15678
15678
|
return 0;
|
|
15679
15679
|
}
|
|
15680
15680
|
}, $scope0_id, "n", 1, 1, 1, 0, 1);
|
|
15681
|
-
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("
|
|
15682
|
-
"
|
|
15681
|
+
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("_gi")}>Path</span><span${_attr_class([
|
|
15682
|
+
"_gj",
|
|
15683
15683
|
"_y",
|
|
15684
15684
|
"_ba"
|
|
15685
15685
|
])}${_attr("title", ws.display_path || ws.path)}><bdi>${_text_resume($scope0_id, "r", ws.display_path || ws.path)}</bdi></span>${_el_resume($scope0_id, "q")}<button type=button${_attr_class(iconBtnXs)} title=${copiedFact === "path" ? "Copied" : "\"Copy path\""} aria-label="Copy path">`);
|
|
@@ -15696,7 +15696,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15696
15696
|
return 1;
|
|
15697
15697
|
}
|
|
15698
15698
|
}, $scope0_id, "s", 1, 1, 1, "</button>", 1);
|
|
15699
|
-
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("
|
|
15699
|
+
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("_gi")}>Branch</span><span${_attr_class(["_gj", "_y"])}${_attr("title", ws.branch)}>${_text_resume($scope0_id, "w", ws.branch)}</span>${_el_resume($scope0_id, "v")}<button type=button${_attr_class(iconBtnXs)} title=${copiedFact === "branch" ? "Copied" : "\"Copy branch\""} aria-label="Copy branch">`);
|
|
15700
15700
|
_if(() => {
|
|
15701
15701
|
if (copiedFact === "branch") {
|
|
15702
15702
|
const $scope26_id = _scope_id();
|
|
@@ -15734,12 +15734,12 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15734
15734
|
_if(() => {
|
|
15735
15735
|
if (pendingAction && actionStep) {
|
|
15736
15736
|
const $scope10_id = _scope_id();
|
|
15737
|
-
_html(`<p${_attr_class("
|
|
15737
|
+
_html(`<p${_attr_class("_cc")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
15738
15738
|
writeScope($scope10_id, {});
|
|
15739
15739
|
return 0;
|
|
15740
15740
|
}
|
|
15741
15741
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
15742
|
-
_html(`<section${_attr_class("
|
|
15742
|
+
_html(`<section${_attr_class("_cd")}><div${_attr_class("_ce")}><h2${_attr_class("_cr")}>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)}>`);
|
|
15743
15743
|
icon_plus_default({ size: 16 });
|
|
15744
15744
|
_html(`</button>${_el_resume($scope0_id, "a6")}`);
|
|
15745
15745
|
_set_serialize_reason(34);
|
|
@@ -15776,10 +15776,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15776
15776
|
size: 14,
|
|
15777
15777
|
class: catalogRefreshing && "_F"
|
|
15778
15778
|
});
|
|
15779
|
-
_html(`</button>${_el_resume($scope0_id, "aa")}</div><ul${_attr_class([list$2, "
|
|
15779
|
+
_html(`</button>${_el_resume($scope0_id, "aa")}</div><ul${_attr_class([list$2, "_cQ"])}>`);
|
|
15780
15780
|
_for_of(ws.repos, (row) => {
|
|
15781
15781
|
const $scope1_id = _scope_id();
|
|
15782
|
-
_html(`<li${_attr_class("
|
|
15782
|
+
_html(`<li${_attr_class("_cR")}><span${_attr_class(["_y", procCmd])}>${_text_resume($scope1_id, "c", row.worktree)}/</span><span${_attr_class("_cU")}><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")}`);
|
|
15783
15783
|
_if(() => {
|
|
15784
15784
|
if (row.base_branch !== row.default_branch) {
|
|
15785
15785
|
const $scope28_id = _scope_id();
|
|
@@ -15790,7 +15790,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15790
15790
|
return 0;
|
|
15791
15791
|
}
|
|
15792
15792
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
15793
|
-
_html(`</span><span${_attr_class("
|
|
15793
|
+
_html(`</span><span${_attr_class("_cV")}>`);
|
|
15794
15794
|
_if(() => {
|
|
15795
15795
|
if (busy.has(row.full_name)) {
|
|
15796
15796
|
const $scope29_id = _scope_id();
|
|
@@ -15802,7 +15802,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15802
15802
|
const $childScope5 = _peek_scope_id();
|
|
15803
15803
|
arm_button_default({
|
|
15804
15804
|
class: [
|
|
15805
|
-
"
|
|
15805
|
+
"_cn",
|
|
15806
15806
|
"_7",
|
|
15807
15807
|
"_8"
|
|
15808
15808
|
],
|
|
@@ -15833,16 +15833,16 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15833
15833
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
15834
15834
|
const $scope31_id = _scope_id();
|
|
15835
15835
|
_html(`<li${_attr_class([
|
|
15836
|
-
"
|
|
15837
|
-
"
|
|
15838
|
-
"
|
|
15839
|
-
])}><span${_attr_class("_G")}></span><span${_attr_class("
|
|
15836
|
+
"_cR",
|
|
15837
|
+
"_cS",
|
|
15838
|
+
"_ch"
|
|
15839
|
+
])}><span${_attr_class("_G")}></span><span${_attr_class("_cm")}>Adding ${_text_resume($scope31_id, "d", name, 2)}…</span></li>`);
|
|
15840
15840
|
writeScope($scope31_id, {});
|
|
15841
15841
|
}, (n) => n, $scope0_id, "ae", 1, 1, 1, 0, 1);
|
|
15842
15842
|
_if(() => {
|
|
15843
15843
|
if (!ws.repos.length && !busy.size) {
|
|
15844
15844
|
const $scope32_id = _scope_id();
|
|
15845
|
-
_html(`<li${_attr_class(["
|
|
15845
|
+
_html(`<li${_attr_class(["_cR", "_cS"])}><span${_attr_class("_cm")}>No repos yet. Add one to start.</span></li>`);
|
|
15846
15846
|
writeScope($scope32_id, {});
|
|
15847
15847
|
return 0;
|
|
15848
15848
|
}
|
|
@@ -15852,20 +15852,20 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15852
15852
|
_if(() => {
|
|
15853
15853
|
if (running.length) {
|
|
15854
15854
|
const $scope15_id = _scope_id();
|
|
15855
|
-
_html(`<section${_attr_class("
|
|
15855
|
+
_html(`<section${_attr_class("_cd")}><div${_attr_class("_ce")}><h2${_attr_class("_cr")}>Running</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
15856
15856
|
_for_of(running, (p) => {
|
|
15857
15857
|
const $scope16_id = _scope_id();
|
|
15858
|
-
_html(`<li${_attr_class("
|
|
15858
|
+
_html(`<li${_attr_class("_cR")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", procCmd])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_cU"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_cV")}>`);
|
|
15859
15859
|
_for_of(p.ports, (port) => {
|
|
15860
15860
|
const $scope33_id = _scope_id();
|
|
15861
15861
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope33_id, "b", port, 2)}</button>${_el_resume($scope33_id, "a")}`);
|
|
15862
15862
|
_script($scope33_id, "p28");
|
|
15863
15863
|
writeScope($scope33_id, { d: port });
|
|
15864
15864
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
15865
|
-
_html(`<span${_attr_class(["_y", "
|
|
15866
|
-
"
|
|
15865
|
+
_html(`<span${_attr_class(["_y", "_f9"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
15866
|
+
"_cn",
|
|
15867
15867
|
"_7",
|
|
15868
|
-
"
|
|
15868
|
+
"_gg"
|
|
15869
15869
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
15870
15870
|
icon_xmark_default({ size: 14 });
|
|
15871
15871
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -15886,28 +15886,28 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15886
15886
|
s,
|
|
15887
15887
|
linked: false
|
|
15888
15888
|
}))].sort((a, b) => a.s.name.localeCompare(b.s.name));
|
|
15889
|
-
_html(`</div><div${_attr_class("
|
|
15889
|
+
_html(`</div><div${_attr_class("_cv")}>`);
|
|
15890
15890
|
_if(() => {
|
|
15891
15891
|
if (allSkills.length) {
|
|
15892
15892
|
const $scope2_id = _scope_id();
|
|
15893
|
-
_html(`<section${_attr_class("
|
|
15893
|
+
_html(`<section${_attr_class("_cd")}><div${_attr_class("_ce")}><h2${_attr_class("_cr")}>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, "_cQ"])}>`);
|
|
15894
15894
|
_for_of(allSkills, ({ s, linked }) => {
|
|
15895
15895
|
const $scope3_id = _scope_id();
|
|
15896
15896
|
const isBusy = skillBusy.has(s.id);
|
|
15897
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
15897
|
+
_html(`<li${_attr_class([skillRow, { ["_ga"]: !linked }])}><span${_attr_class("_gc")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
15898
15898
|
_if(() => {
|
|
15899
15899
|
if (s.worktree && !s.broken) {
|
|
15900
15900
|
const $scope34_id = _scope_id();
|
|
15901
15901
|
_html(`<span${_attr_class([
|
|
15902
15902
|
"_N",
|
|
15903
15903
|
"_y",
|
|
15904
|
-
"
|
|
15904
|
+
"_gd"
|
|
15905
15905
|
])}${linked ? _attr("title", `Linked from ${s.worktree}/ in this workspace`) : _attr("title", `Ships in ${s.worktree}/ — not linked into this workspace yet`)}>${_text_resume($scope34_id, "b", s.worktree)}/</span>${_el_resume($scope34_id, "a")}`);
|
|
15906
15906
|
writeScope($scope34_id, {});
|
|
15907
15907
|
return 0;
|
|
15908
15908
|
}
|
|
15909
15909
|
}, $scope3_id, "e", 1, 1, 1, 0, 1);
|
|
15910
|
-
_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("
|
|
15910
|
+
_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("_cV")}>`);
|
|
15911
15911
|
_if(() => {
|
|
15912
15912
|
if (s.broken) {
|
|
15913
15913
|
const $scope35_id = _scope_id();
|
|
@@ -15955,10 +15955,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15955
15955
|
const $childScope6 = _peek_scope_id();
|
|
15956
15956
|
arm_button_default({
|
|
15957
15957
|
class: [
|
|
15958
|
-
"
|
|
15958
|
+
"_cn",
|
|
15959
15959
|
"_7",
|
|
15960
15960
|
"_8",
|
|
15961
|
-
"
|
|
15961
|
+
"_gf"
|
|
15962
15962
|
],
|
|
15963
15963
|
disabled: isBusy,
|
|
15964
15964
|
busy: isBusy,
|
|
@@ -16068,10 +16068,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
16068
16068
|
});
|
|
16069
16069
|
_resume_branch($scope0_id);
|
|
16070
16070
|
});
|
|
16071
|
-
var curRow = "
|
|
16072
|
-
var archived = "
|
|
16073
|
-
var archivedHint = "
|
|
16074
|
-
var archivedRow = "
|
|
16071
|
+
var curRow = "_fZ _cR";
|
|
16072
|
+
var archived = "_f4 _cd";
|
|
16073
|
+
var archivedHint = "_f5 _W";
|
|
16074
|
+
var archivedRow = "_f6 _cP _cN";
|
|
16075
16075
|
//#endregion
|
|
16076
16076
|
//#region src/tags/icons/icon-group.marko
|
|
16077
16077
|
var icon_group_default = _template("jb", (input) => {
|
|
@@ -16091,8 +16091,8 @@ var icon_group_default = _template("jb", (input) => {
|
|
|
16091
16091
|
});
|
|
16092
16092
|
//#endregion
|
|
16093
16093
|
//#region src/tags/join-dialog.css.ts
|
|
16094
|
-
var dlg = "
|
|
16095
|
-
var hint = "
|
|
16094
|
+
var dlg = "_if _hd";
|
|
16095
|
+
var hint = "_ig _W";
|
|
16096
16096
|
//#endregion
|
|
16097
16097
|
//#region src/tags/join-dialog.marko
|
|
16098
16098
|
var api$3;
|
|
@@ -16221,26 +16221,26 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16221
16221
|
content: _content("m12", () => {
|
|
16222
16222
|
_scope_reason();
|
|
16223
16223
|
const $scope1_id = _scope_id();
|
|
16224
|
-
_html(`<h2${_attr_class("
|
|
16224
|
+
_html(`<h2${_attr_class("_he")}${_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([
|
|
16225
16225
|
"_Y",
|
|
16226
16226
|
"_y",
|
|
16227
|
-
"
|
|
16227
|
+
"_ii"
|
|
16228
16228
|
])} 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")}`);
|
|
16229
16229
|
_if(() => {
|
|
16230
16230
|
if (parsed.error) {
|
|
16231
16231
|
const $scope8_id = _scope_id();
|
|
16232
|
-
_html(`<p${_attr_class([hint, "
|
|
16232
|
+
_html(`<p${_attr_class([hint, "_ih"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16233
16233
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16234
16234
|
return 0;
|
|
16235
16235
|
} else if (parsed.ok) {
|
|
16236
16236
|
const $scope3_id = _scope_id();
|
|
16237
|
-
_html(`<ul${_attr_class("
|
|
16237
|
+
_html(`<ul${_attr_class("_ij")}>`);
|
|
16238
16238
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16239
16239
|
const $scope9_id = _scope_id();
|
|
16240
|
-
_html(`<li${_attr_class("
|
|
16240
|
+
_html(`<li${_attr_class("_ik")}><span${_attr_class("_il")}>${_text_resume($scope9_id, "c", repoLabel$1(fullName))}</span></li>`);
|
|
16241
16241
|
writeScope($scope9_id, {});
|
|
16242
16242
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16243
|
-
_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("
|
|
16243
|
+
_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("_im")}><span${_attr_class("_cr")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
16244
16244
|
name = _new_name;
|
|
16245
16245
|
}, "m1", $scope3_id))}${_attr_class("_Y")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16246
16246
|
_script($scope3_id, "m8");
|
|
@@ -16277,10 +16277,10 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16277
16277
|
_if(() => {
|
|
16278
16278
|
if (busy && steps$2.length) {
|
|
16279
16279
|
const $scope6_id = _scope_id();
|
|
16280
|
-
_html(`<ul${_attr_class("
|
|
16280
|
+
_html(`<ul${_attr_class("_in")}>`);
|
|
16281
16281
|
_for_of(steps$2, (step$2, i) => {
|
|
16282
16282
|
const $scope7_id = _scope_id();
|
|
16283
|
-
_html(`<li${_attr_class(["
|
|
16283
|
+
_html(`<li${_attr_class(["_ip", { ["_io"]: i === steps$2.length - 1 }])}>`);
|
|
16284
16284
|
_if(() => {
|
|
16285
16285
|
if (i === steps$2.length - 1) {
|
|
16286
16286
|
const $scope10_id = _scope_id();
|
|
@@ -16289,7 +16289,7 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16289
16289
|
return 0;
|
|
16290
16290
|
} else {
|
|
16291
16291
|
const $scope11_id = _scope_id();
|
|
16292
|
-
_html(`<span${_attr_class("
|
|
16292
|
+
_html(`<span${_attr_class("_iq")}>`);
|
|
16293
16293
|
icon_check_default({ size: 14 });
|
|
16294
16294
|
_html("</span>");
|
|
16295
16295
|
writeScope($scope11_id, {});
|
|
@@ -16447,7 +16447,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16447
16447
|
}
|
|
16448
16448
|
}, "s6", $scope0_id);
|
|
16449
16449
|
const titleId = _id();
|
|
16450
|
-
_html(`<div${_attr_class("
|
|
16450
|
+
_html(`<div${_attr_class("_cs")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ct")}><div${_attr_class("_cu")}>`);
|
|
16451
16451
|
_set_serialize_reason({
|
|
16452
16452
|
0: _serialize_guard($scope0_reason, 2),
|
|
16453
16453
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -16471,7 +16471,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16471
16471
|
_resume_branch($scope2_id);
|
|
16472
16472
|
}, $scope0_id) })
|
|
16473
16473
|
});
|
|
16474
|
-
_html(`<div${_attr_class("
|
|
16474
|
+
_html(`<div${_attr_class("_cv")}>`);
|
|
16475
16475
|
_if(() => {
|
|
16476
16476
|
if (error) {
|
|
16477
16477
|
const $scope7_id = _scope_id();
|
|
@@ -16492,9 +16492,9 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16492
16492
|
return 0;
|
|
16493
16493
|
}
|
|
16494
16494
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16495
|
-
_html(`<label${_attr_class("
|
|
16495
|
+
_html(`<label${_attr_class("_fU")}><span${_attr_class("_cr")}>Name</span><input${_attr_input_value($scope0_id, "i", name, _resume((_new_name) => {
|
|
16496
16496
|
name = _new_name;
|
|
16497
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("
|
|
16497
|
+
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("_cd")}><div${_attr_class("_fX")}><h2${_attr_class("_cr")}>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)}>`);
|
|
16498
16498
|
icon_plus_default({ size: 16 });
|
|
16499
16499
|
_html(`</button>${_el_resume($scope0_id, "p")}`);
|
|
16500
16500
|
_set_serialize_reason(34);
|
|
@@ -16532,14 +16532,14 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16532
16532
|
_html(`</button>${_el_resume($scope0_id, "t")}</div><ul${_attr_class(list$2)}>`);
|
|
16533
16533
|
_for_of(selected, (repo) => {
|
|
16534
16534
|
const $scope3_id = _scope_id();
|
|
16535
|
-
_html(`<li${_attr_class("
|
|
16535
|
+
_html(`<li${_attr_class("_fY")}><div${_attr_class(curRow)}><span${_attr_class("_cT")}>${_text_resume($scope3_id, "d", repoLabel$1(repo.fullName))}</span><span${_attr_class("_cV")}>`);
|
|
16536
16536
|
_if(() => {
|
|
16537
16537
|
if (repo.fork !== void 0) {
|
|
16538
16538
|
const $scope4_id = _scope_id();
|
|
16539
16539
|
_html(`<button${_attr_class([
|
|
16540
16540
|
chip$1,
|
|
16541
|
-
"
|
|
16542
|
-
{ ["
|
|
16541
|
+
"_cZ",
|
|
16542
|
+
{ ["_cX"]: repo.fork }
|
|
16543
16543
|
])}${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)}>`);
|
|
16544
16544
|
_if(() => {
|
|
16545
16545
|
if (repo.fork) {
|
|
@@ -16563,7 +16563,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16563
16563
|
_html(`<button${_attr_class([
|
|
16564
16564
|
chip$1,
|
|
16565
16565
|
"_y",
|
|
16566
|
-
{ ["
|
|
16566
|
+
{ ["_cX"]: branchesFor === repo.fullName }
|
|
16567
16567
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
16568
16568
|
icon_branch_default({ size: 12 });
|
|
16569
16569
|
_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)}>`);
|
|
@@ -16572,7 +16572,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16572
16572
|
_if(() => {
|
|
16573
16573
|
if (branchesFor === repo.fullName) {
|
|
16574
16574
|
const $scope9_id = _scope_id();
|
|
16575
|
-
_html(`<div${_attr_class("
|
|
16575
|
+
_html(`<div${_attr_class("_f0")}>`);
|
|
16576
16576
|
const $childScope4 = _peek_scope_id();
|
|
16577
16577
|
branch_pick_default({
|
|
16578
16578
|
repo: repo.fullName,
|
|
@@ -16601,7 +16601,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16601
16601
|
_if(() => {
|
|
16602
16602
|
if (!selected.length) {
|
|
16603
16603
|
const $scope14_id = _scope_id();
|
|
16604
|
-
_html(`<li${_attr_class(["
|
|
16604
|
+
_html(`<li${_attr_class(["_cR", "_cW"])}>No repos yet. Add one above, or create it empty.</li>`);
|
|
16605
16605
|
writeScope($scope14_id, {});
|
|
16606
16606
|
return 0;
|
|
16607
16607
|
}
|
|
@@ -16610,10 +16610,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16610
16610
|
_if(() => {
|
|
16611
16611
|
if (busy && steps.length) {
|
|
16612
16612
|
const $scope10_id = _scope_id();
|
|
16613
|
-
_html(`<ul${_attr_class("
|
|
16613
|
+
_html(`<ul${_attr_class("_f1")}>`);
|
|
16614
16614
|
_for_of(steps, (step, i) => {
|
|
16615
16615
|
const $scope11_id = _scope_id();
|
|
16616
|
-
_html(`<li${_attr_class(["
|
|
16616
|
+
_html(`<li${_attr_class(["_f7", { ["_f2"]: i === steps.length - 1 }])}>`);
|
|
16617
16617
|
_if(() => {
|
|
16618
16618
|
if (i === steps.length - 1) {
|
|
16619
16619
|
const $scope15_id = _scope_id();
|
|
@@ -16622,7 +16622,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16622
16622
|
return 0;
|
|
16623
16623
|
} else {
|
|
16624
16624
|
const $scope16_id = _scope_id();
|
|
16625
|
-
_html(`<span${_attr_class("
|
|
16625
|
+
_html(`<span${_attr_class("_f3")}>`);
|
|
16626
16626
|
icon_check_default({ size: 14 });
|
|
16627
16627
|
_html("</span>");
|
|
16628
16628
|
writeScope($scope16_id, {});
|
|
@@ -16636,18 +16636,18 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16636
16636
|
return 0;
|
|
16637
16637
|
}
|
|
16638
16638
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
16639
|
-
_html(`<div${_attr_class("
|
|
16639
|
+
_html(`<div${_attr_class("_fS")}><button type=button${_attr_class([
|
|
16640
16640
|
btnLg,
|
|
16641
16641
|
"_r",
|
|
16642
|
-
"
|
|
16643
|
-
])}${_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("
|
|
16642
|
+
"_fT"
|
|
16643
|
+
])}${_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("_cv")}>`);
|
|
16644
16644
|
_if(() => {
|
|
16645
16645
|
if (archived$1.length) {
|
|
16646
16646
|
const $scope5_id = _scope_id();
|
|
16647
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
16647
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fX")}><h2${_attr_class("_cr")}>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)}>`);
|
|
16648
16648
|
_for_of(archived$1, (ws) => {
|
|
16649
16649
|
const $scope6_id = _scope_id();
|
|
16650
|
-
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("
|
|
16650
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_cj")}><span${_attr_class("_ck")}>${_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)}>`);
|
|
16651
16651
|
_if(() => {
|
|
16652
16652
|
if (restoring === ws.id) {
|
|
16653
16653
|
const $scope17_id = _scope_id();
|
|
@@ -16764,19 +16764,19 @@ var term_find_default = _template("H", (input) => {
|
|
|
16764
16764
|
const canStep = hasQuery && open;
|
|
16765
16765
|
const keybar = input.placement === "keybar";
|
|
16766
16766
|
_html(`<div${_attr_class([
|
|
16767
|
-
"
|
|
16768
|
-
keybar ? "
|
|
16769
|
-
!open && "
|
|
16770
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
16767
|
+
"_eu",
|
|
16768
|
+
keybar ? "_ew" : "_ev",
|
|
16769
|
+
!open && "_ey"
|
|
16770
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eo", keybar ? "_ex" : "_er"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
16771
16771
|
if (!open) return;
|
|
16772
16772
|
query = v;
|
|
16773
16773
|
live.query = v;
|
|
16774
16774
|
run(0);
|
|
16775
|
-
}, "H1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
16775
|
+
}, "H1", $scope0_id))}${_attr_class([findInput, keybar && "_ez"])} 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 && "_eA"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
16776
16776
|
icon_arrow_up_default({ size: 14 });
|
|
16777
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
16777
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_eA"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
16778
16778
|
icon_arrow_down_default({ size: 14 });
|
|
16779
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
16779
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_eA"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
16780
16780
|
icon_xmark_default({ size: 14 });
|
|
16781
16781
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
16782
16782
|
const $return = focusInput;
|
|
@@ -16927,7 +16927,7 @@ var term_default = _template("I", (input) => {
|
|
|
16927
16927
|
}
|
|
16928
16928
|
}, "I9", $scope0_id);
|
|
16929
16929
|
input.keys;
|
|
16930
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
16930
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_e4")}><div${_attr_class("_e5")}></div>${_el_resume($scope0_id, "b")}`);
|
|
16931
16931
|
_if(() => {
|
|
16932
16932
|
if (findOpen) {
|
|
16933
16933
|
const $scope4_id = _scope_id();
|
|
@@ -16954,7 +16954,7 @@ var term_default = _template("I", (input) => {
|
|
|
16954
16954
|
_if(() => {
|
|
16955
16955
|
if (uploading) {
|
|
16956
16956
|
const $scope5_id = _scope_id();
|
|
16957
|
-
_html(`<div${_attr_class("
|
|
16957
|
+
_html(`<div${_attr_class("_fa")}>uploading…</div>`);
|
|
16958
16958
|
writeScope($scope5_id, {});
|
|
16959
16959
|
return 0;
|
|
16960
16960
|
}
|
|
@@ -16962,7 +16962,7 @@ var term_default = _template("I", (input) => {
|
|
|
16962
16962
|
_if(() => {
|
|
16963
16963
|
if (copiedFlash) {
|
|
16964
16964
|
const $scope6_id = _scope_id();
|
|
16965
|
-
_html(`<div${_attr_class("
|
|
16965
|
+
_html(`<div${_attr_class("_e_")}>Copied</div>`);
|
|
16966
16966
|
writeScope($scope6_id, {});
|
|
16967
16967
|
return 0;
|
|
16968
16968
|
}
|
|
@@ -16971,7 +16971,7 @@ var term_default = _template("I", (input) => {
|
|
|
16971
16971
|
_if(() => {
|
|
16972
16972
|
if (trapOpen) {
|
|
16973
16973
|
const $scope3_id = _scope_id();
|
|
16974
|
-
_html(`<div${_attr_class("
|
|
16974
|
+
_html(`<div${_attr_class("_fb")}><div${_attr_class("_fc")}><p${_attr_class("_fd")}>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")}`);
|
|
16975
16975
|
_script($scope3_id, "I16");
|
|
16976
16976
|
_script($scope3_id, "I17");
|
|
16977
16977
|
writeScope($scope3_id, {});
|
|
@@ -17233,7 +17233,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17233
17233
|
toggleDiff();
|
|
17234
17234
|
}
|
|
17235
17235
|
}, "N14", $scope0_id);
|
|
17236
|
-
_html(`<div${_attr_class(["
|
|
17236
|
+
_html(`<div${_attr_class(["_b8", { ["_b7"]: !input.active }])}><div${_attr_class("_b9")}>`);
|
|
17237
17237
|
_if(() => {
|
|
17238
17238
|
if (error) {
|
|
17239
17239
|
const $scope8_id = _scope_id();
|
|
@@ -17256,7 +17256,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17256
17256
|
_if(() => {
|
|
17257
17257
|
if (diffMounted && ws) {
|
|
17258
17258
|
const $scope1_id = _scope_id();
|
|
17259
|
-
_html(`<div${_attr_class("
|
|
17259
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
17260
17260
|
_set_serialize_reason({
|
|
17261
17261
|
0: $sg__input_workspace,
|
|
17262
17262
|
1: $sg__input_workspace,
|
|
@@ -17318,7 +17318,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17318
17318
|
_if(() => {
|
|
17319
17319
|
if (manageMounted && ws) {
|
|
17320
17320
|
const $scope2_id = _scope_id();
|
|
17321
|
-
_html(`<div${_attr_class("
|
|
17321
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
17322
17322
|
_set_serialize_reason({
|
|
17323
17323
|
0: $sg__input_workspace,
|
|
17324
17324
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -17344,7 +17344,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17344
17344
|
_if(() => {
|
|
17345
17345
|
if (settingsMounted) {
|
|
17346
17346
|
const $scope3_id = _scope_id();
|
|
17347
|
-
_html(`<div${_attr_class("
|
|
17347
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
17348
17348
|
_set_serialize_reason({
|
|
17349
17349
|
0: _serialize_guard($scope0_reason, 0),
|
|
17350
17350
|
1: $sg__input_workspace,
|
|
@@ -17386,7 +17386,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17386
17386
|
_if(() => {
|
|
17387
17387
|
if (newMounted) {
|
|
17388
17388
|
const $scope4_id = _scope_id();
|
|
17389
|
-
_html(`<div${_attr_class("
|
|
17389
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
17390
17390
|
_set_serialize_reason({
|
|
17391
17391
|
0: 1,
|
|
17392
17392
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -17411,13 +17411,13 @@ var work_view_default = _template("N", (input) => {
|
|
|
17411
17411
|
return 0;
|
|
17412
17412
|
}
|
|
17413
17413
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
17414
|
-
_html(`<div${_attr_class("
|
|
17414
|
+
_html(`<div${_attr_class("_ca")}${_attr("inert", view !== "term")}>`);
|
|
17415
17415
|
_if(() => {
|
|
17416
17416
|
if (ws && shownSessions) {
|
|
17417
17417
|
const $scope5_id = _scope_id();
|
|
17418
17418
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
17419
17419
|
const $scope6_id = _scope_id();
|
|
17420
|
-
_html(`<div${_attr_class("
|
|
17420
|
+
_html(`<div${_attr_class("_cb")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
17421
17421
|
_set_serialize_reason(2);
|
|
17422
17422
|
const $childScope5 = _peek_scope_id();
|
|
17423
17423
|
term_default({
|
|
@@ -17443,7 +17443,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17443
17443
|
_if(() => {
|
|
17444
17444
|
if (!shownSessions.length && view === "term") {
|
|
17445
17445
|
const $scope7_id = _scope_id();
|
|
17446
|
-
_html(`<div${_attr_class("
|
|
17446
|
+
_html(`<div${_attr_class("_cp")}><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>`);
|
|
17447
17447
|
_script($scope7_id, "N39");
|
|
17448
17448
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
17449
17449
|
return 0;
|
|
@@ -17453,7 +17453,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17453
17453
|
return 0;
|
|
17454
17454
|
} else if (ws) {
|
|
17455
17455
|
const $scope10_id = _scope_id();
|
|
17456
|
-
_html(`<p${_attr_class("
|
|
17456
|
+
_html(`<p${_attr_class("_cp")}>Loading sessions…</p>`);
|
|
17457
17457
|
writeScope($scope10_id, {});
|
|
17458
17458
|
return 1;
|
|
17459
17459
|
}
|
|
@@ -17572,8 +17572,8 @@ _template("yb", (input) => {
|
|
|
17572
17572
|
});
|
|
17573
17573
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
17574
17574
|
});
|
|
17575
|
-
var sessOpen = "
|
|
17576
|
-
var sessRename = "
|
|
17575
|
+
var sessOpen = "_fi _I";
|
|
17576
|
+
var sessRename = "_fm _J";
|
|
17577
17577
|
//#endregion
|
|
17578
17578
|
//#region src/tags/usage-pcts.marko
|
|
17579
17579
|
var usage_pcts_default = _template("M", (input) => {
|
|
@@ -17585,22 +17585,22 @@ var usage_pcts_default = _template("M", (input) => {
|
|
|
17585
17585
|
if (windows.length) {
|
|
17586
17586
|
const $scope1_id = _scope_id();
|
|
17587
17587
|
_html(`<span${_attr_class([
|
|
17588
|
-
"
|
|
17588
|
+
"_hM",
|
|
17589
17589
|
input.class,
|
|
17590
|
-
{ ["
|
|
17590
|
+
{ ["_hN"]: agent.stale_seconds != null }
|
|
17591
17591
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
17592
17592
|
_for_of(windows, (win$1, i) => {
|
|
17593
17593
|
const $scope2_id = _scope_id();
|
|
17594
|
-
_html(`<span${_attr_class("
|
|
17594
|
+
_html(`<span${_attr_class("_hO")}>`);
|
|
17595
17595
|
_if(() => {
|
|
17596
17596
|
if (i) {
|
|
17597
17597
|
const $scope3_id = _scope_id();
|
|
17598
|
-
_html(`<span${_attr_class("
|
|
17598
|
+
_html(`<span${_attr_class("_hR")} aria-hidden=true>·</span>`);
|
|
17599
17599
|
$si__input_agent && writeScope($scope3_id, {});
|
|
17600
17600
|
return 0;
|
|
17601
17601
|
}
|
|
17602
17602
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
17603
|
-
_html(`<span${_attr_class("
|
|
17603
|
+
_html(`<span${_attr_class("_hP")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hQ", win$1.used_percent >= 90 ? "_hB" : win$1.used_percent >= 70 ? "_hA" : win$1.used_percent >= 40 ? "_hz" : "_hy"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
17604
17604
|
$si__input_agent && writeScope($scope2_id, {});
|
|
17605
17605
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
17606
17606
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -17642,7 +17642,7 @@ _template("n", (input) => {
|
|
|
17642
17642
|
align: "center",
|
|
17643
17643
|
gap: 8
|
|
17644
17644
|
}), "n2", $scope0_id);
|
|
17645
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17645
|
+
_html(`<button${_attr_class([kbtn, "_fe"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
17646
17646
|
_set_serialize_reason({
|
|
17647
17647
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
17648
17648
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -17656,11 +17656,11 @@ _template("n", (input) => {
|
|
|
17656
17656
|
"_A",
|
|
17657
17657
|
"_bb",
|
|
17658
17658
|
phase[sessionPhase(current$2?.state)]
|
|
17659
|
-
])}></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", "
|
|
17659
|
+
])}></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", "_ff"])}>`);
|
|
17660
17660
|
_for_of(input.sessions, (s) => {
|
|
17661
17661
|
const $scope1_id = _scope_id();
|
|
17662
17662
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17663
|
-
_html(`<div${_attr_class(["
|
|
17663
|
+
_html(`<div${_attr_class(["_fh", { ["_fg"]: s.id === input.sessionId }])}>`);
|
|
17664
17664
|
_if(() => {
|
|
17665
17665
|
if (renamingId === s.id) {
|
|
17666
17666
|
const $scope5_id = _scope_id();
|
|
@@ -17692,7 +17692,7 @@ _template("n", (input) => {
|
|
|
17692
17692
|
agent: activeAgent(s),
|
|
17693
17693
|
size: 14
|
|
17694
17694
|
});
|
|
17695
|
-
_html(`<span${_attr_class("
|
|
17695
|
+
_html(`<span${_attr_class("_fj")}><span${_attr_class("_fl")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17696
17696
|
_if(() => {
|
|
17697
17697
|
if (s.id === input.sessionId) {
|
|
17698
17698
|
const $scope7_id = _scope_id();
|
|
@@ -17704,7 +17704,7 @@ _template("n", (input) => {
|
|
|
17704
17704
|
const $childScope4 = _peek_scope_id();
|
|
17705
17705
|
usage_pcts_default({
|
|
17706
17706
|
agent: plan,
|
|
17707
|
-
class: "
|
|
17707
|
+
class: "_fk"
|
|
17708
17708
|
});
|
|
17709
17709
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
17710
17710
|
return 0;
|
|
@@ -17721,7 +17721,7 @@ _template("n", (input) => {
|
|
|
17721
17721
|
_if(() => {
|
|
17722
17722
|
if (input.onRenameSession) {
|
|
17723
17723
|
const $scope6_id = _scope_id();
|
|
17724
|
-
_html(`<button${_attr_class(["
|
|
17724
|
+
_html(`<button${_attr_class(["_fn", "_fo"])} title="Rename session">`);
|
|
17725
17725
|
icon_edit_default({ size: 12 });
|
|
17726
17726
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
17727
17727
|
_script($scope6_id, "n5");
|
|
@@ -17733,7 +17733,7 @@ _template("n", (input) => {
|
|
|
17733
17733
|
if (input.onCloseSession) {
|
|
17734
17734
|
const $scope3_id = _scope_id();
|
|
17735
17735
|
arm_button_default({
|
|
17736
|
-
class: ["
|
|
17736
|
+
class: ["_fn", "_7"],
|
|
17737
17737
|
title: "Close session",
|
|
17738
17738
|
armedTitle: "Close?",
|
|
17739
17739
|
onFire: _resume(function() {
|
|
@@ -17765,7 +17765,7 @@ _template("n", (input) => {
|
|
|
17765
17765
|
m: $si__input_sessions && $for_content__s_agent__closures
|
|
17766
17766
|
});
|
|
17767
17767
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
17768
|
-
_html(`<div${_attr_class("
|
|
17768
|
+
_html(`<div${_attr_class("_fp")}><span${_attr_class("_fq")}>New session</span><div${_attr_class("_fr")}>`);
|
|
17769
17769
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
17770
17770
|
const $scope4_id = _scope_id();
|
|
17771
17771
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -22873,6 +22873,24 @@ function upstreamHeaders(req, port) {
|
|
|
22873
22873
|
headers["x-forwarded-proto"] = String(req.headers["x-forwarded-proto"] || "") || "http";
|
|
22874
22874
|
return headers;
|
|
22875
22875
|
}
|
|
22876
|
+
/** An app that redirects by its own origin names the rewritten Host
|
|
22877
|
+
* (`http://localhost:3000/search`), which the browser cannot follow from
|
|
22878
|
+
* another device; the public origin the request came in on takes its
|
|
22879
|
+
* place, as the proxy in front of work does for work itself. */
|
|
22880
|
+
function publicHeaders(req, headers, port) {
|
|
22881
|
+
const { location } = headers;
|
|
22882
|
+
if (typeof location === "string") {
|
|
22883
|
+
const upstream = new RegExp(`^https?://(localhost|127\\.0\\.0\\.1|\\[::1\\]):${port}(?=/|$)`);
|
|
22884
|
+
if (upstream.test(location)) {
|
|
22885
|
+
const proto = String(req.headers["x-forwarded-proto"] || "") || "http";
|
|
22886
|
+
return {
|
|
22887
|
+
...headers,
|
|
22888
|
+
location: location.replace(upstream, `${proto}://${req.headers.host}`)
|
|
22889
|
+
};
|
|
22890
|
+
}
|
|
22891
|
+
}
|
|
22892
|
+
return headers;
|
|
22893
|
+
}
|
|
22876
22894
|
/** True when the request was taken; false leaves it to the app. */
|
|
22877
22895
|
function proxyRequest(req, res) {
|
|
22878
22896
|
const port = proxyPort(req);
|
|
@@ -22884,7 +22902,7 @@ function proxyRequest(req, res) {
|
|
|
22884
22902
|
path: req.url,
|
|
22885
22903
|
headers: upstreamHeaders(req, port)
|
|
22886
22904
|
}, (r) => {
|
|
22887
|
-
res.writeHead(r.statusCode || 502, r.headers);
|
|
22905
|
+
res.writeHead(r.statusCode || 502, publicHeaders(req, r.headers, port));
|
|
22888
22906
|
r.pipe(res);
|
|
22889
22907
|
});
|
|
22890
22908
|
up.on("error", () => {
|
|
@@ -27135,4 +27153,4 @@ server.listen(port, () => {
|
|
|
27135
27153
|
//#endregion
|
|
27136
27154
|
export {};
|
|
27137
27155
|
|
|
27138
|
-
;var __MARKO_MANIFEST__={"
|
|
27156
|
+
;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-TOdaaJnn.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-TOdaaJnn.css\"",">",2,"stylesheet#/assets/app-page-BYNyMjnm.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BYNyMjnm.css\"",">"],"defer":[2,"/assets/settings-TRRAOL2P.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-TRRAOL2P.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/_Bbb0obIK.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Bbb0obIK.js\"",">",2,"modulepreload#/assets/_DsRQHgm-.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DsRQHgm-.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-TOdaaJnn.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-TOdaaJnn.css\"",">",2,"stylesheet#/assets/app-page-BYNyMjnm.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BYNyMjnm.css\"",">"],"defer":[2,"/assets/w._-TRRAOL2P.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-TRRAOL2P.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/_Bbb0obIK.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Bbb0obIK.js\"",">",2,"modulepreload#/assets/_DsRQHgm-.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DsRQHgm-.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-TOdaaJnn.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-TOdaaJnn.css\"",">",2,"stylesheet#/assets/app-page-BYNyMjnm.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BYNyMjnm.css\"",">"],"defer":[2,"/assets/new-TRRAOL2P.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-TRRAOL2P.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/_Bbb0obIK.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Bbb0obIK.js\"",">",2,"modulepreload#/assets/_DsRQHgm-.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DsRQHgm-.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-TOdaaJnn.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-TOdaaJnn.css\"",">",2,"stylesheet#/assets/app-page-BYNyMjnm.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BYNyMjnm.css\"",">"],"defer":[2,"/assets/w-TRRAOL2P.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-TRRAOL2P.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/_Bbb0obIK.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Bbb0obIK.js\"",">",2,"modulepreload#/assets/_DsRQHgm-.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DsRQHgm-.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-TOdaaJnn.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-TOdaaJnn.css\"",">",2,"stylesheet#/assets/app-page-BYNyMjnm.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BYNyMjnm.css\"",">"],"defer":[2,"/assets/w._-V4uDxpzm.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-V4uDxpzm.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/_Bbb0obIK.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Bbb0obIK.js\"",">",2,"modulepreload#/assets/_DsRQHgm-.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DsRQHgm-.js\"",">"]},"_A":{"block":[2,"stylesheet#/assets/review-view-SU0xXAXL.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/review-view-SU0xXAXL.css\"",">",2,"stylesheet#/assets/icon-arrow-down-TOdaaJnn.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-TOdaaJnn.css\"",">"],"defer":[2,"/assets/review-view-BseVb3Ec.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/review-view-BseVb3Ec.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">"]}};
|