@dylanpiercey/work 0.0.175 → 0.0.177
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 +410 -399
- package/dist/public/assets/{_CMrlloZF.js → _B0OVfJVa.js} +4 -4
- package/dist/public/assets/_B0OVfJVa.js.br +0 -0
- package/dist/public/assets/_B1OIFWW-.js +1 -0
- package/dist/public/assets/_Bfd2dVOp.js +1 -0
- package/dist/public/assets/_BkDIoDws.js +1 -0
- package/dist/public/assets/_CCHp7HT3.js +1 -0
- package/dist/public/assets/_CFA_6zcC.js +1 -0
- package/dist/public/assets/_CGPWu3ME.js +1 -0
- package/dist/public/assets/_C_X4FoTd.js +1 -0
- package/dist/public/assets/{_DQBTa1hC.js → _CiAUVpQt.js} +94 -94
- package/dist/public/assets/_CiAUVpQt.js.br +0 -0
- package/dist/public/assets/_CtGD9jYW.js +1 -0
- package/dist/public/assets/_CtJJRDR2.js +1 -0
- package/dist/public/assets/_D3jkeyvE.js +1 -0
- package/dist/public/assets/_DB_NZjCY.js +1 -0
- package/dist/public/assets/_DJMv-6bg.js +1 -0
- package/dist/public/assets/_DMt4uXYu.js +1 -0
- package/dist/public/assets/_D_N_Xeps.js +1 -0
- package/dist/public/assets/_D_Y3vCMi.js +1 -0
- package/dist/public/assets/_DoS_32IX.js +1 -0
- package/dist/public/assets/_PVFFUgEr.js +1 -0
- package/dist/public/assets/_QM85-dob.js +1 -0
- package/dist/public/assets/{_BgfPWRrb.js → _bLcqPuzt.js} +1 -1
- package/dist/public/assets/{_BgfPWRrb.js.br → _bLcqPuzt.js.br} +0 -0
- package/dist/public/assets/_flJGtG_5.js +1 -0
- package/dist/public/assets/_kARTodxS.js +1 -0
- package/dist/public/assets/_tSMLmX8f.js +1 -0
- package/dist/public/assets/{app-page-DD1o4wiM.css → app-page-DD1F0TTl.css} +1 -1
- package/dist/public/assets/app-page-DD1F0TTl.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-LhbgqR29.css → icon-arrow-down-Djyi23Q9.css} +1 -1
- package/dist/public/assets/icon-arrow-down-Djyi23Q9.css.br +0 -0
- package/dist/public/assets/new-BwcyiB1L.js +1 -0
- package/dist/public/assets/review-view-3q-u988K.css +1 -0
- package/dist/public/assets/review-view-3q-u988K.css.br +0 -0
- package/dist/public/assets/review-view-CiWwWm6V.js +2 -0
- package/dist/public/assets/settings-BwcyiB1L.js +1 -0
- package/dist/public/assets/w-BwcyiB1L.js +1 -0
- package/dist/public/assets/w._-BwcyiB1L.js +1 -0
- package/dist/public/assets/w._-gFT3A4in.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_254DK7qc.js +0 -1
- package/dist/public/assets/_BFwxEy2s.js +0 -1
- package/dist/public/assets/_BNNx6MWi.js +0 -1
- package/dist/public/assets/_BNUdzZGa.js +0 -1
- package/dist/public/assets/_BV5JV5Qu.js +0 -1
- package/dist/public/assets/_Bch84TXV.js +0 -1
- package/dist/public/assets/_BkSFYwZZ.js +0 -1
- package/dist/public/assets/_BmLDA2Qt.js +0 -1
- package/dist/public/assets/_Bpy2jb4Z.js +0 -1
- package/dist/public/assets/_CMrlloZF.js.br +0 -0
- package/dist/public/assets/_CTuLUPyS.js +0 -1
- package/dist/public/assets/_CXIhZSSd.js +0 -1
- package/dist/public/assets/_CeCue_To.js +0 -1
- package/dist/public/assets/_Cv0ZXoZ_.js +0 -1
- package/dist/public/assets/_DGJcq5c3.js +0 -1
- package/dist/public/assets/_DGgQDlSI.js +0 -1
- package/dist/public/assets/_DQBTa1hC.js.br +0 -0
- package/dist/public/assets/_DZ-fp6X3.js +0 -1
- package/dist/public/assets/_Dj1D8B4I.js +0 -1
- package/dist/public/assets/_Dnh_kiiv.js +0 -1
- package/dist/public/assets/_DvuqHQhD.js +0 -1
- package/dist/public/assets/_FZV6MhKj.js +0 -1
- package/dist/public/assets/_Z324W941.js +0 -1
- package/dist/public/assets/app-page-DD1o4wiM.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-LhbgqR29.css.br +0 -0
- package/dist/public/assets/new-CH0Bl-x1.js +0 -1
- package/dist/public/assets/review-view-BdjClIWy.js +0 -2
- package/dist/public/assets/review-view-Bv3xencn.css +0 -1
- package/dist/public/assets/review-view-Bv3xencn.css.br +0 -0
- package/dist/public/assets/settings-CH0Bl-x1.js +0 -1
- package/dist/public/assets/w-CH0Bl-x1.js +0 -1
- package/dist/public/assets/w._-CH0Bl-x1.js +0 -1
- package/dist/public/assets/w._-Xgh-0hWo.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -7318,16 +7318,16 @@ 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 = "
|
|
7321
|
+
var agentRow = "_c3 _cE";
|
|
7322
|
+
var toolGrid = "_da _cO";
|
|
7323
|
+
var toolRow = "_db _cP";
|
|
7324
|
+
var themeSeg = "_dy _bd";
|
|
7325
|
+
var checkList = "_d4 _cg";
|
|
7326
|
+
var list$2 = "_cQ _ci _cD _cO";
|
|
7327
|
+
var flatCardRow = "_cR _cP";
|
|
7328
|
+
var chip$1 = "_c0 _X _W";
|
|
7329
|
+
var pop$1 = "_cz _9";
|
|
7330
|
+
var spinner = "_cC _1 _G";
|
|
7331
7331
|
var busy = "_ej _ei";
|
|
7332
7332
|
var pop = "_el _9";
|
|
7333
7333
|
var sectionCount$1 = "_cf _N _O";
|
|
@@ -7370,7 +7370,7 @@ 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("_eb")}>`);
|
|
7374
7374
|
_if(() => {
|
|
7375
7375
|
if (input.backHref) {
|
|
7376
7376
|
const $scope1_id = _scope_id();
|
|
@@ -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("_ed")}><h1${_attr("id", input.titleId)}${_attr_class("_ec")}>${_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("_ee")}>`);
|
|
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("_ef")}>`);
|
|
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 = "_g6 _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(["_g0", { ["_g1"]: input.hideName }])}><div${_attr_class("_g2")}>`);
|
|
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("_hk")}>${_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("_g3")}>${_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("_g4")}${_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(["_g5", { ["_hl"]: 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 ? "_hd" : win.used_percent >= 70 ? "_hc" : win.used_percent >= 40 ? "_hb" : "_ha";
|
|
7538
|
+
const pctClass = win.used_percent >= 90 ? "_hi" : win.used_percent >= 70 ? "_hh" : win.used_percent >= 40 ? "_hg" : "_hf";
|
|
7539
|
+
_html(`<div${_attr_class("_g7")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_g8")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_g9")}><span${_attr_class(["_g_", 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(["_he", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hj")}>`);
|
|
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
|
+
"_cs",
|
|
7639
7639
|
input$3.class,
|
|
7640
|
-
{ ["
|
|
7641
|
-
])}><label${_attr_class(["_0", "
|
|
7640
|
+
{ ["_ct"]: !open }
|
|
7641
|
+
])}><label${_attr_class(["_0", "_cv"])}>`);
|
|
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
|
+
"_cw"
|
|
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
|
+
"_cx"
|
|
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, "_cy"])} 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, "_cA"])}${_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(["_hm", 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("_hn")}><span${_attr_class("_hp")}><span${_attr_class("_hq")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_hr", "_hs"])} 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, "_ht"])}${_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(["_hn", "_hu"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_hv")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_hw")}>${_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(["_hn", "_hu"])}><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(["_hn", "_hx"])}>${_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(["_hn", "_ho"])}><span${_attr_class("_hp")}><span${_attr_class("_hq")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_hr")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_ht"])}${_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,
|
|
@@ -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 = "_hD _hz";
|
|
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(["_hy", 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("_hB")}>`);
|
|
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("_hC")}>`);
|
|
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("_hC")}>`);
|
|
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("_hA")}${_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("_d8")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d9")}><div${_attr_class("_d_")}>`);
|
|
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("_ea")}>`);
|
|
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("_dC")} role=status><div${_attr_class("_dD")}>`);
|
|
8833
8833
|
_if(() => {
|
|
8834
8834
|
if (selfUpdating) {
|
|
8835
8835
|
const $scope81_id = _scope_id();
|
|
8836
|
-
_html(`<span${_attr_class("
|
|
8836
|
+
_html(`<span${_attr_class("_dE")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dF")}>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("_dE")}>Update available</span><span${_attr_class("_dF")}>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("_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("
|
|
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("_c4")}><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", "_c5"])} 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,7 +8887,7 @@ 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(["_c6", { ["_c8"]: lone && !lone.enabled }])}>`);
|
|
8891
8891
|
_set_serialize_reason(12);
|
|
8892
8892
|
const $childScope3 = _peek_scope_id();
|
|
8893
8893
|
icon_agent_default({
|
|
@@ -8907,7 +8907,7 @@ 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("_c2")}><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) {
|
|
@@ -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(["_c_", { ["_c8"]: 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(["_c7", { ["_c8"]: !inst.enabled }])}><div${_attr_class("_c6")}>`);
|
|
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(["_c9", "_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();
|
|
@@ -9040,14 +9040,14 @@ var settings_page_default = _template("B", (input) => {
|
|
|
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("_ea")}><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: "_dh",
|
|
9051
9051
|
open: addingHost,
|
|
9052
9052
|
openChange: _resume((_new_addingHost) => {
|
|
9053
9053
|
addingHost = _new_addingHost;
|
|
@@ -9077,17 +9077,17 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9077
9077
|
return 0;
|
|
9078
9078
|
}
|
|
9079
9079
|
}, $scope0_id, "y");
|
|
9080
|
-
_html(`</div><div${_attr_class(["_ci", "
|
|
9080
|
+
_html(`</div><div${_attr_class(["_ci", "_cD"])}>`);
|
|
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(["_cE", "_di"])}><div${_attr_class("_dj")}>`);
|
|
9088
9088
|
icon_github_default({
|
|
9089
9089
|
size: 18,
|
|
9090
|
-
class: "
|
|
9090
|
+
class: "_dk"
|
|
9091
9091
|
});
|
|
9092
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(() => {
|
|
@@ -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(["_cm", "
|
|
9105
|
+
_html(`<span${_attr_class(["_cm", "_dl"])}><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(["_cm", "
|
|
9110
|
+
_html(`<span${_attr_class(["_cm", "_dl"])}>`);
|
|
9111
9111
|
icon_check_default({
|
|
9112
9112
|
size: 12,
|
|
9113
|
-
class: "
|
|
9113
|
+
class: "_dm"
|
|
9114
9114
|
});
|
|
9115
|
-
_html(` Signed in as <strong${_attr_class("
|
|
9115
|
+
_html(` Signed in as <strong${_attr_class("_do")}>${_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
9121
|
"_cm",
|
|
9122
|
-
"
|
|
9123
|
-
"
|
|
9122
|
+
"_dl",
|
|
9123
|
+
"_dn"
|
|
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(["_cm", "
|
|
9131
|
+
_html(`<span${_attr_class(["_cm", "_dl"])}>Not signed in</span>`);
|
|
9132
9132
|
writeScope($scope95_id, {});
|
|
9133
9133
|
return 3;
|
|
9134
9134
|
}
|
|
@@ -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("_dp")}><span${_attr_class("_dq")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_ds")}>${_text_resume($scope35_id, "d", h.host)}/login/device</a>${_el_resume($scope35_id, "c")}</span><code${_attr_class("_dr")}>${_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: ["_cE", "_dt"],
|
|
9218
9218
|
items: hostSso$1,
|
|
9219
9219
|
skipped: skippedSso,
|
|
9220
9220
|
busy,
|
|
@@ -9253,18 +9253,18 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9253
9253
|
return 0;
|
|
9254
9254
|
}
|
|
9255
9255
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
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", "
|
|
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", "_cD"])}><div${_attr_class(["_cE", "_cF"])}><div${_attr_class(["_cG", { ["_cH"]: skillsOpen }])}><button${_attr_class("_cI")} 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: ["_cM", { ["_cN"]: skillsOpen }]
|
|
9262
9262
|
});
|
|
9263
|
-
_html(`<span${_attr_class("
|
|
9263
|
+
_html(`<span${_attr_class("_cJ")}>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("_cK")}>${_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("_cB")}>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("_cj")}><span${_attr_class(["
|
|
9303
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_dd", "_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("_c2")}><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
|
|
@@ -9338,11 +9338,11 @@ 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("_cj")}><span${_attr_class(["
|
|
9341
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_dd", "_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("_c2")}><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 {
|
|
@@ -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("_cB")}>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,7 +9412,7 @@ 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("_cL")}>`);
|
|
9416
9416
|
_if(() => {
|
|
9417
9417
|
if (skills && !skills.agents.length) {
|
|
9418
9418
|
const $scope104_id = _scope_id();
|
|
@@ -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(["_cE", "_cF"])}><div${_attr_class(["_cG", { ["_cH"]: machineOpen }])}><button${_attr_class("_cI")} 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: ["_cM", { ["_cN"]: machineOpen }]
|
|
9524
9524
|
});
|
|
9525
|
-
_html(`<span${_attr_class("
|
|
9525
|
+
_html(`<span${_attr_class("_cJ")}>Tools</span><span${_attr_class("_cK")}>${_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("_c2")}><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("_cB")}>Searching the mise registry…</li>`);
|
|
9579
9579
|
writeScope($scope109_id, {});
|
|
9580
9580
|
return 0;
|
|
9581
9581
|
}
|
|
@@ -9583,18 +9583,18 @@ 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("_cB")}>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("_cj")}><span${_attr_class(["
|
|
9593
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_dd", "_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("_c2")}><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) {
|
|
@@ -9646,7 +9646,7 @@ 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("_cL")}>`);
|
|
9650
9650
|
_if(() => {
|
|
9651
9651
|
if (setup && !setup.mise.installed) {
|
|
9652
9652
|
const $scope31_id = _scope_id();
|
|
@@ -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(["_dd", "_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("_c2")}><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, "_dg"])}${_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, { ["_dc"]: !t.installed }])}><span${_attr_class(["_dd", "_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("_c2")}><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(["_df", "_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("_de")}>${_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, "_dg"])}${_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(["_df", "_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("_cd")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_ce")}><h2${_attr("id", appearanceId)}${_attr_class("_cr")}>Appearance</h2></div><div${_attr_class(["_ci", "
|
|
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", "_du"])}><div${_attr_class("_dG")}><img${_attr_class("_dH")}${_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("_dI")}><span${_attr_class("_dJ")}>${_text_resume($scope0_id, "ax", input.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dK")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dv")}><span${_attr_class("_dw")}>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", "_dx"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b1")}</label><div${_attr_class("_dv")}><span${_attr_class("_dw")}>Theme</span><span${_attr_class("_dz")}><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
|
+
"_dL",
|
|
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", "_dA"])}>`);
|
|
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", "_dB"])} 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("_dv")}><span${_attr_class("_dw")}>Accent</span><span${_attr_class("_dM")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9919
|
+
"_dN",
|
|
9920
|
+
"_dQ",
|
|
9921
|
+
{ ["_dO"]: !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: "_dP"
|
|
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(["_dN", { ["_dO"]: 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: "_dP"
|
|
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
|
+
"_dN",
|
|
9957
|
+
"_dR",
|
|
9958
|
+
{ ["_dO"]: 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("_dS")} 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: "_dP"
|
|
9968
9968
|
});
|
|
9969
9969
|
$si__input_instance_accent && writeScope($scope128_id, {});
|
|
9970
9970
|
return 0;
|
|
@@ -9975,11 +9975,11 @@ 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("_cd")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_ce")}><h2${_attr("id", backupId)}${_attr_class("_cr")}>Backup</h2></div><div${_attr_class(["_ci", "
|
|
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", "_cD"])}><div${_attr_class("_cE")}><div${_attr_class("_dT")}><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("_c2")}><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 {
|
|
@@ -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("_dV")}><p${_attr_class("_dW")}>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("_dW")}>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("_dX")}>`);
|
|
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("_dY")}><span${_attr_class("_ck")}>${_text_resume($scope132_id, "c", w.name)}</span><ul${_attr_class("_dX")}>`);
|
|
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("_dZ")}><span${_attr_class("_d0")}><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("_d1")}>`);
|
|
10050
10050
|
_for_of(r.modified, (f) => {
|
|
10051
10051
|
const $scope138_id = _scope_id();
|
|
10052
|
-
_html(`<li${_attr_class("
|
|
10052
|
+
_html(`<li${_attr_class("_d2")}><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("_d2")}><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("_d2")}><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(["_d2", "_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,17 +10094,17 @@ 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("_d3")}><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("_cE")}><div${_attr_class("_dT")}><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("_c2")}><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) {
|
|
@@ -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("_dU")} 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("_dV")}><p${_attr_class("_dW")}>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(["_d5", { ["_d7"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_d6")} 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();
|
|
@@ -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(["_d5", { ["_d7"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_d6")} 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("_d3")}><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;
|
|
@@ -10497,13 +10497,13 @@ function vapidKey(base64) {
|
|
|
10497
10497
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10498
10498
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10499
10499
|
}
|
|
10500
|
-
var iconBtn = "
|
|
10501
|
-
var settingsDot = "
|
|
10502
|
-
var navToggle = "
|
|
10500
|
+
var iconBtn = "_bQ _l";
|
|
10501
|
+
var settingsDot = "_bR _bb";
|
|
10502
|
+
var navToggle = "_bV _l";
|
|
10503
10503
|
//#endregion
|
|
10504
10504
|
//#region src/styles/session-pop.css.ts
|
|
10505
|
-
var sessionPop = "
|
|
10506
|
-
var sessionPopBtn = "
|
|
10505
|
+
var sessionPop = "_bN _9";
|
|
10506
|
+
var sessionPopBtn = "_bO _I";
|
|
10507
10507
|
_template("X", (input) => {
|
|
10508
10508
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10509
10509
|
const $scope0_id = _scope_id();
|
|
@@ -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 = "_ia _u _h_";
|
|
10563
|
+
var portChip = "_ib _u _h_";
|
|
10564
10564
|
var prState = {
|
|
10565
|
-
open: "
|
|
10566
|
-
merged: "
|
|
10567
|
-
closed: "
|
|
10565
|
+
open: "_if",
|
|
10566
|
+
merged: "_ig",
|
|
10567
|
+
closed: "_ih"
|
|
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("_h9")}>`);
|
|
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(["_ic", { ["_ik"]: !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(["_ic", "_id"])}${_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
|
+
"_ic",
|
|
10677
|
+
"_id",
|
|
10678
|
+
"_ie"
|
|
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(["_ic", "_ii"])}${_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(["_ic", "_ij"])}${_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
|
+
"_ic",
|
|
10721
|
+
"_id",
|
|
10722
|
+
"_ie"
|
|
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 = "_fL _l";
|
|
10770
|
+
var wsBtn = "_fP _I";
|
|
10771
|
+
var rowIcon = "_fS _3 _l";
|
|
10772
|
+
var close = "_fT _6 _l _7";
|
|
10773
|
+
var sessRename$1 = "_fZ _J";
|
|
10774
|
+
var sessBtn$1 = "_f1 _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, { ["_fI"]: 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
|
+
"_fN",
|
|
10900
|
+
"_f3",
|
|
10901
|
+
{ ["_fM"]: input.page }
|
|
10902
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fO")}><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: "_f5"
|
|
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", "_f4"])}></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("_fV")}><span${_attr_class("_fW")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_f7")}${_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("_f6")}><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(["_fN", {
|
|
10955
|
+
["_fI"]: input.current,
|
|
10956
10956
|
["_bc"]: input.current,
|
|
10957
|
-
["
|
|
10958
|
-
}])}><div${_attr_class("
|
|
10957
|
+
["_fK"]: input.menuOpen
|
|
10958
|
+
}])}><div${_attr_class("_fO")}><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: "_fU"
|
|
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("_fV")}><span${_attr_class("_fW")}>${_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("_fQ")}>`);
|
|
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, { ["_fJ"]: 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("_f0")}>`);
|
|
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(["_fR", { ["_fI"]: 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
|
+
"_fY"
|
|
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: "_f2"
|
|
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: "_f2"
|
|
11061
11061
|
});
|
|
11062
|
-
_html(`<span${_attr_class("
|
|
11062
|
+
_html(`<span${_attr_class("_fX")}>${_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);
|
|
@@ -11607,14 +11607,14 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11607
11607
|
const backHref = ws ? `/w/${ws.id}` : "/new";
|
|
11608
11608
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11609
11609
|
const pageIds = orderedIds.filter((id) => id !== ws?.id);
|
|
11610
|
-
_html(`<aside${_attr_class(["
|
|
11611
|
-
["
|
|
11612
|
-
["
|
|
11610
|
+
_html(`<aside${_attr_class(["_bU", {
|
|
11611
|
+
["_bS"]: !navOpen,
|
|
11612
|
+
["_bT"]: isPage
|
|
11613
11613
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11614
11614
|
_if(() => {
|
|
11615
11615
|
if (isPage) {
|
|
11616
11616
|
const $scope1_id = _scope_id();
|
|
11617
|
-
_html(`<div${_attr_class("
|
|
11617
|
+
_html(`<div${_attr_class("_bX")}>`);
|
|
11618
11618
|
_set_serialize_reason({
|
|
11619
11619
|
3: $sg__input_instanceName,
|
|
11620
11620
|
6: $sg__input_instanceName
|
|
@@ -11623,7 +11623,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11623
11623
|
if (input.instanceName) $meta = attrTag({ content: _content_resume("E8", () => {
|
|
11624
11624
|
_scope_reason();
|
|
11625
11625
|
const $scope2_id = _scope_id();
|
|
11626
|
-
_html(`<span${_attr_class("
|
|
11626
|
+
_html(`<span${_attr_class("_bY")} title="This work server (Settings → Appearance)"><img${_attr_class("_b1")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}${_text_resume($scope2_id, "c", input.instanceName, $sg__input_instanceName)}</span>`);
|
|
11627
11627
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11628
11628
|
_resume_branch($scope2_id);
|
|
11629
11629
|
}, $scope1_id) });
|
|
@@ -11638,7 +11638,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11638
11638
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11639
11639
|
iconBtnRow,
|
|
11640
11640
|
iconBtn,
|
|
11641
|
-
{ ["
|
|
11641
|
+
{ ["_bP"]: view === "settings" }
|
|
11642
11642
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11643
11643
|
icon_settings_default({ size: 16 });
|
|
11644
11644
|
_if(() => {
|
|
@@ -11662,7 +11662,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11662
11662
|
_if(() => {
|
|
11663
11663
|
if (!isPage && input.instanceName) {
|
|
11664
11664
|
const $scope4_id = _scope_id();
|
|
11665
|
-
_html(`<div${_attr_class("
|
|
11665
|
+
_html(`<div${_attr_class("_b0")} title="This work server (Settings → Appearance)"><img${_attr_class("_b1")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope4_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b2")}>${_text_resume($scope4_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11666
11666
|
writeScope($scope4_id, {});
|
|
11667
11667
|
return 0;
|
|
11668
11668
|
}
|
|
@@ -11730,7 +11730,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11730
11730
|
b: _serialize_if($scope0_reason, 21) && _existing_scope($childScope3)
|
|
11731
11731
|
});
|
|
11732
11732
|
}, (a) => a, $scope6_id, "a", $sg__input_agents, 1, $sg__input_workspace__OR__input_allWorkspaces__OR__input_agents, "</div>", 1);
|
|
11733
|
-
_html(`<div${_attr_class("
|
|
11733
|
+
_html(`<div${_attr_class("_b3")}>`);
|
|
11734
11734
|
_for_of(orderedIds, (wsId) => {
|
|
11735
11735
|
const $scope8_id = _scope_id();
|
|
11736
11736
|
_set_serialize_reason({
|
|
@@ -11807,7 +11807,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11807
11807
|
_if(() => {
|
|
11808
11808
|
if (!navOpen) {
|
|
11809
11809
|
const $scope9_id = _scope_id();
|
|
11810
|
-
_html(`<div${_attr_class("
|
|
11810
|
+
_html(`<div${_attr_class("_b4")}>`);
|
|
11811
11811
|
_for_of(orderedIds, (wsId, i) => {
|
|
11812
11812
|
const $scope10_id = _scope_id();
|
|
11813
11813
|
_set_serialize_reason({
|
|
@@ -11855,14 +11855,14 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11855
11855
|
return 0;
|
|
11856
11856
|
}
|
|
11857
11857
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
11858
|
-
_html(`<div${_attr_class("
|
|
11858
|
+
_html(`<div${_attr_class("_b5")}>`);
|
|
11859
11859
|
_if(() => {
|
|
11860
11860
|
if (isPage) {
|
|
11861
11861
|
const $scope12_id = _scope_id();
|
|
11862
11862
|
_html(`<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([
|
|
11863
11863
|
"_q",
|
|
11864
11864
|
btnLg,
|
|
11865
|
-
"
|
|
11865
|
+
"_bZ"
|
|
11866
11866
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11867
11867
|
icon_folder_plus_default({ size: 16 });
|
|
11868
11868
|
_html(` New workspace</a>${_el_resume($scope12_id, "a")}`);
|
|
@@ -11894,9 +11894,9 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11894
11894
|
sessions: input.sessions,
|
|
11895
11895
|
tab: view === "term" ? tab : null
|
|
11896
11896
|
});
|
|
11897
|
-
_html(`<div${_attr_class(["_z", "
|
|
11897
|
+
_html(`<div${_attr_class(["_z", "_b6"])}></div>`);
|
|
11898
11898
|
_if(() => {}, $scope11_id, "d", 1, 1, 1, 0, 1);
|
|
11899
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
11899
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_bP"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11900
11900
|
icon_settings_default({});
|
|
11901
11901
|
_if(() => {
|
|
11902
11902
|
if (input.setupReady === false) {
|
|
@@ -11906,7 +11906,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11906
11906
|
return 0;
|
|
11907
11907
|
}
|
|
11908
11908
|
}, $scope11_id, "g", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11909
|
-
_html(`</a>${_el_resume($scope11_id, "e")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
11909
|
+
_html(`</a>${_el_resume($scope11_id, "e")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_bP"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11910
11910
|
icon_folder_plus_default({ size: 16 });
|
|
11911
11911
|
_html(`</a>${_el_resume($scope11_id, "h")}`);
|
|
11912
11912
|
_script($scope11_id, "E13");
|
|
@@ -12726,13 +12726,24 @@ function fileDiffFor(file, key) {
|
|
|
12726
12726
|
if (parsed.has(file)) return parsed.get(file);
|
|
12727
12727
|
let meta = null;
|
|
12728
12728
|
if (file.patch) try {
|
|
12729
|
-
meta = parsePatchFiles(file.patch, key)[0]?.files[0] ?? null;
|
|
12729
|
+
meta = parsePatchFiles(file.patch, `${key}#${fingerprint(file.patch)}`)[0]?.files[0] ?? null;
|
|
12730
12730
|
} catch {
|
|
12731
12731
|
meta = null;
|
|
12732
12732
|
}
|
|
12733
12733
|
parsed.set(file, meta);
|
|
12734
12734
|
return meta;
|
|
12735
12735
|
}
|
|
12736
|
+
/** FNV-1a over the patch text, plus its length: cheap enough to run on
|
|
12737
|
+
* every refetch for every file, and distinct enough to tell two versions
|
|
12738
|
+
* of one file apart. */
|
|
12739
|
+
function fingerprint(text) {
|
|
12740
|
+
let h = 2166136261;
|
|
12741
|
+
for (let i = 0; i < text.length; i++) {
|
|
12742
|
+
h ^= text.charCodeAt(i);
|
|
12743
|
+
h = Math.imul(h, 16777619);
|
|
12744
|
+
}
|
|
12745
|
+
return `${(h >>> 0).toString(36)}${text.length.toString(36)}`;
|
|
12746
|
+
}
|
|
12736
12747
|
/** Line number → text for one side, from the hunks alone: what a partial
|
|
12737
12748
|
* diff can say about the file. A full (hydrated) diff has every line. */
|
|
12738
12749
|
var sides = /* @__PURE__ */ new WeakMap();
|
|
@@ -12988,8 +12999,8 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
12988
12999
|
}
|
|
12989
13000
|
return shortHeadFallback(head);
|
|
12990
13001
|
}
|
|
12991
|
-
var treeToggle = "
|
|
12992
|
-
var pageTitle = "
|
|
13002
|
+
var treeToggle = "_ga _4 _l";
|
|
13003
|
+
var pageTitle = "_gg _ec";
|
|
12993
13004
|
//#endregion
|
|
12994
13005
|
//#region src/tags/icons/icon-comment.marko
|
|
12995
13006
|
var icon_comment_default = _template("bb", (input) => {
|
|
@@ -13050,12 +13061,12 @@ var diff_send_default = _template("k", (input) => {
|
|
|
13050
13061
|
}
|
|
13051
13062
|
})();
|
|
13052
13063
|
}, "k1", $scope0_id);
|
|
13053
|
-
_html(`<div${_attr_class("
|
|
13064
|
+
_html(`<div${_attr_class("_ir")} role=group${_attr("aria-label", label)}><span${_attr_class("_is")}${_attr("title", label)}>`);
|
|
13054
13065
|
icon_comment_default({
|
|
13055
13066
|
size: 18,
|
|
13056
|
-
class: "
|
|
13067
|
+
class: "_it"
|
|
13057
13068
|
});
|
|
13058
|
-
_html(`<span${_attr_class("
|
|
13069
|
+
_html(`<span${_attr_class("_iu")} 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("_iv")} title="Copy comments as markdown" aria-label="Copy comments as markdown">`);
|
|
13059
13070
|
_if(() => {
|
|
13060
13071
|
{
|
|
13061
13072
|
const $scope6_id = _scope_id();
|
|
@@ -13067,11 +13078,11 @@ var diff_send_default = _template("k", (input) => {
|
|
|
13067
13078
|
_if(() => {
|
|
13068
13079
|
if (target) {
|
|
13069
13080
|
const $scope1_id = _scope_id();
|
|
13070
|
-
_html(`<button type=button${_attr_class(["
|
|
13081
|
+
_html(`<button type=button${_attr_class(["_iv", "_iw"])}${_attr("disabled", sending)}${_attr("title", `Send comments to ${target.title || target.agent}`)}>`);
|
|
13071
13082
|
_if(() => {
|
|
13072
13083
|
if (sessions.length > 1) {
|
|
13073
13084
|
const $scope2_id = _scope_id();
|
|
13074
|
-
_html(`<span${_attr_class(["
|
|
13085
|
+
_html(`<span${_attr_class(["_iz", "_iy"])}>${_text_resume($scope2_id, "b", sending ? "Sending…" : `Send to ${target.title || target.agent}`)}</span><span${_attr_class("_ix")}>${_text_resume($scope2_id, "d", sending ? "Sending…" : "Send")}</span>`);
|
|
13075
13086
|
_subscribe($target_agent__closures, _subscribe($target_title__closures, _subscribe($sending__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))));
|
|
13076
13087
|
return 0;
|
|
13077
13088
|
} else {
|
|
@@ -13087,15 +13098,15 @@ var diff_send_default = _template("k", (input) => {
|
|
|
13087
13098
|
_if(() => {
|
|
13088
13099
|
if (sessions.length > 1) {
|
|
13089
13100
|
const $scope4_id = _scope_id();
|
|
13090
|
-
_html(`<span${_attr_class("
|
|
13091
|
-
"
|
|
13092
|
-
"
|
|
13093
|
-
"
|
|
13101
|
+
_html(`<span${_attr_class("_iA")}><button type=button${_attr_class([
|
|
13102
|
+
"_iv",
|
|
13103
|
+
"_iw",
|
|
13104
|
+
"_iB"
|
|
13094
13105
|
])} aria-label="Choose session to send to"${_attr("disabled", sending)}></button>${_el_resume($scope4_id, "b")}`);
|
|
13095
13106
|
_attr_select_value($scope4_id, "c", target.id, _resume(function(v) {
|
|
13096
13107
|
sendTarget = v;
|
|
13097
13108
|
}, "k0", $scope4_id), () => {
|
|
13098
|
-
_html(`<select${_attr_class("
|
|
13109
|
+
_html(`<select${_attr_class("_iC")} aria-label="Send comments to session" tabindex=-1${_attr("disabled", sending)}>`);
|
|
13099
13110
|
_for_of(sessions, (s) => {
|
|
13100
13111
|
const $scope7_id = _scope_id();
|
|
13101
13112
|
_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)}`);
|
|
@@ -13172,8 +13183,8 @@ var icon_branch_default = _template("Y", (input) => {
|
|
|
13172
13183
|
});
|
|
13173
13184
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
13174
13185
|
});
|
|
13175
|
-
var findInput = "
|
|
13176
|
-
var findIconBtn = "
|
|
13186
|
+
var findInput = "_eB _n";
|
|
13187
|
+
var findIconBtn = "_eE _l";
|
|
13177
13188
|
//#endregion
|
|
13178
13189
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
13179
13190
|
var icon_arrow_down_default = _template("R", (input) => {
|
|
@@ -13265,18 +13276,18 @@ var diff_find_default = _template("j", (input) => {
|
|
|
13265
13276
|
}, 0);
|
|
13266
13277
|
}, "j0", $scope0_id);
|
|
13267
13278
|
_html(`<div${_attr_class([
|
|
13268
|
-
"
|
|
13269
|
-
input.keybar && "
|
|
13270
|
-
!open && "
|
|
13271
|
-
])} aria-hidden=${open ? "false" : "true"}><span${_attr_class("
|
|
13279
|
+
"_ez",
|
|
13280
|
+
input.keybar && "_eI",
|
|
13281
|
+
!open && "_ey"
|
|
13282
|
+
])} aria-hidden=${open ? "false" : "true"}><span${_attr_class("_eA")} aria-hidden=true>`);
|
|
13272
13283
|
icon_search_default({ size: 13 });
|
|
13273
13284
|
_html(`</span><input${_attr_input_value($scope0_id, "d", query || "", _resume(function(v) {
|
|
13274
13285
|
type(v);
|
|
13275
|
-
}, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "
|
|
13286
|
+
}, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "_eK"])} 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("_eD")}>${_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 && "_eL"])} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13276
13287
|
icon_arrow_up_default({ size: 14 });
|
|
13277
|
-
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "
|
|
13288
|
+
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "_eL"])} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13278
13289
|
icon_arrow_down_default({ size: 14 });
|
|
13279
|
-
_html(`</button>${_el_resume($scope0_id, "i")}<button type=button${_attr_class([findIconBtn, input.keybar && "
|
|
13290
|
+
_html(`</button>${_el_resume($scope0_id, "i")}<button type=button${_attr_class([findIconBtn, input.keybar && "_eL"])} title="Close find"${_attr("hidden", input.pinned)} tabindex=${open ? "0" : "-1"}>`);
|
|
13280
13291
|
icon_xmark_default({ size: 14 });
|
|
13281
13292
|
_html(`</button>${_el_resume($scope0_id, "k")}</div>${_el_resume($scope0_id, "a")}`);
|
|
13282
13293
|
const $return = focusInput;
|
|
@@ -13315,7 +13326,7 @@ var diff_find_default = _template("j", (input) => {
|
|
|
13315
13326
|
_resume_branch($scope0_id);
|
|
13316
13327
|
return $return;
|
|
13317
13328
|
});
|
|
13318
|
-
var worktree = "
|
|
13329
|
+
var worktree = "_jz _y";
|
|
13319
13330
|
var repoTitle = "_jK _x";
|
|
13320
13331
|
//#endregion
|
|
13321
13332
|
//#region src/tags/review-head.marko
|
|
@@ -13510,30 +13521,30 @@ var review_repos_default = _template("y", (input) => {
|
|
|
13510
13521
|
_if(() => {
|
|
13511
13522
|
if (input.tabs.length) {
|
|
13512
13523
|
const $scope1_id = _scope_id();
|
|
13513
|
-
_html(`<div${_attr_class(["
|
|
13524
|
+
_html(`<div${_attr_class(["_jo", { ["_jn"]: many }])}>`);
|
|
13514
13525
|
_if(() => {
|
|
13515
13526
|
if (many) {
|
|
13516
13527
|
const $scope2_id = _scope_id();
|
|
13517
|
-
_html(`<div${_attr_class(["
|
|
13518
|
-
["
|
|
13519
|
-
["
|
|
13528
|
+
_html(`<div${_attr_class(["_jr", {
|
|
13529
|
+
["_jq"]: edges.end,
|
|
13530
|
+
["_jp"]: edges.start
|
|
13520
13531
|
}])} role=tablist>`);
|
|
13521
13532
|
_for_of(input.tabs, (tab$1) => {
|
|
13522
13533
|
const $scope3_id = _scope_id();
|
|
13523
13534
|
const repo = tab$1.repo;
|
|
13524
13535
|
const isOn = current?.repo.id === repo.id;
|
|
13525
13536
|
const isFolded = input.folded.has(repo.id);
|
|
13526
|
-
_html(`<div${_attr_class(["
|
|
13527
|
-
["
|
|
13528
|
-
["
|
|
13529
|
-
}])} role=tab aria-selected=${isOn ? "true" : "false"}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}><button type=button${_attr_class("
|
|
13537
|
+
_html(`<div${_attr_class(["_ju", {
|
|
13538
|
+
["_js"]: isOn,
|
|
13539
|
+
["_jt"]: isFolded
|
|
13540
|
+
}])} role=tab aria-selected=${isOn ? "true" : "false"}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}><button type=button${_attr_class("_jx")} title=${isFolded ? "\"Show this section's files\"" : "\"Hide this section's files\""} aria-expanded=${isFolded ? "false" : "true"}><span${_attr_class("_jy")}>▾</span></button>${_el_resume($scope3_id, "b")}<button type=button${_attr_class("_jw")} title="Scroll to this section"><span${_attr_class(worktree)}>${_text_resume($scope3_id, "f", repo.worktree, $sg__input_tabs)}</span>`);
|
|
13530
13541
|
_if(() => {
|
|
13531
13542
|
if (repo.pr) {
|
|
13532
13543
|
const $scope5_id = _scope_id();
|
|
13533
13544
|
_html(`<span${_attr_class([
|
|
13534
13545
|
"_u",
|
|
13535
13546
|
"_v",
|
|
13536
|
-
"
|
|
13547
|
+
"_jA"
|
|
13537
13548
|
])}>#${_text_resume($scope5_id, "b", repo.pr.number, $sg__input_tabs * 2)}</span>`);
|
|
13538
13549
|
$si__input_tabs && writeScope($scope5_id, { _: _scope_with_id($scope3_id) });
|
|
13539
13550
|
return 0;
|
|
@@ -13559,11 +13570,11 @@ var review_repos_default = _template("y", (input) => {
|
|
|
13559
13570
|
if (current) {
|
|
13560
13571
|
const $scope4_id = _scope_id();
|
|
13561
13572
|
const one = current.repo;
|
|
13562
|
-
_html(`<div${_attr_class("
|
|
13573
|
+
_html(`<div${_attr_class("_jB")}>`);
|
|
13563
13574
|
_if(() => {
|
|
13564
13575
|
if (!many) {
|
|
13565
13576
|
const $scope6_id = _scope_id();
|
|
13566
|
-
_html(`<span${_attr_class([worktree, "
|
|
13577
|
+
_html(`<span${_attr_class([worktree, "_jv"])}>${_text_resume($scope6_id, "b", one.worktree, $sg__input_tabs__OR__input_active)}</span>`);
|
|
13567
13578
|
$si__input_tabs__OR__input_active && writeScope($scope6_id, { _: _scope_with_id($scope4_id) });
|
|
13568
13579
|
return 0;
|
|
13569
13580
|
}
|
|
@@ -13748,7 +13759,7 @@ var review_tree_default = _template("z", (input) => {
|
|
|
13748
13759
|
dragging$1 = false;
|
|
13749
13760
|
if (width != null) setDiffTreeWidth(width);
|
|
13750
13761
|
}, "z2", $scope0_id);
|
|
13751
|
-
_html(`<div${_attr_class(["
|
|
13762
|
+
_html(`<div${_attr_class(["_iT", { ["_iS"]: input.open === false }])}${width != null ? _attr_style(`--tree-w:${width}px`) : ""}><div${_attr_class(["_i6", { ["_i5"]: dragging$1 }])} title="Drag to resize"></div>${_el_resume($scope0_id, "b")}<div${_attr_class("_iU")}>`);
|
|
13752
13763
|
_set_serialize_reason(2);
|
|
13753
13764
|
const $childScope = _peek_scope_id();
|
|
13754
13765
|
file_filter_default({
|
|
@@ -13757,22 +13768,22 @@ var review_tree_default = _template("z", (input) => {
|
|
|
13757
13768
|
filter$1 = _new_filter;
|
|
13758
13769
|
}, "z3", $scope0_id)
|
|
13759
13770
|
});
|
|
13760
|
-
_html(`</div><div${_attr_class("
|
|
13771
|
+
_html(`</div><div${_attr_class("_iV")}>`);
|
|
13761
13772
|
_for_of(input.sections, (section$2) => {
|
|
13762
13773
|
const $scope1_id = _scope_id();
|
|
13763
|
-
_html(`<div${_attr_class(["
|
|
13774
|
+
_html(`<div${_attr_class(["_iX", { ["_iW"]: input.sections.length === 1 }])}${_attr("data-section", section$2.id)}>`);
|
|
13764
13775
|
_if(() => {
|
|
13765
13776
|
if (input.sections.length > 1) {
|
|
13766
13777
|
const $scope2_id = _scope_id();
|
|
13767
|
-
_html(`<button type=button${_attr_class("
|
|
13778
|
+
_html(`<button type=button${_attr_class("_iY")}${_attr("title", section$2.label)} aria-expanded=${closed$4.has(section$2.id) ? "false" : "true"}><span${_attr_class(["_iZ", { ["_i0"]: !closed$4.has(section$2.id) }])} aria-hidden=true>`);
|
|
13768
13779
|
icon_chevron_right_default({ size: 12 });
|
|
13769
|
-
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("
|
|
13780
|
+
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("_i1")}>${_text_resume($scope2_id, "e", section$2.label, $sg__input_sections)}</span><span${_attr_class("_i2")}>${_text_resume($scope2_id, "g", section$2.files.length, $sg__input_sections)}</span></button>${_el_resume($scope2_id, "a")}`);
|
|
13770
13781
|
_script($scope2_id, "z4");
|
|
13771
13782
|
_subscribe($closed__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }));
|
|
13772
13783
|
return 0;
|
|
13773
13784
|
}
|
|
13774
13785
|
}, $scope1_id, "b", $sg__input_sections, $sg__input_sections_length, $sg__input_sections_length, 0, 1);
|
|
13775
|
-
_html(`<div${_attr_class(["
|
|
13786
|
+
_html(`<div${_attr_class(["_i4", { ["_i3"]: input.sections.length === 1 }])}${_attr("data-tree", section$2.id)}${_attr("hidden", closed$4.has(section$2.id))}></div>${_el_resume($scope1_id, "c")}</div>${_el_resume($scope1_id, "a", $sg__input_sections)}`);
|
|
13776
13787
|
writeScope($scope1_id, {
|
|
13777
13788
|
f: section$2?.id,
|
|
13778
13789
|
h: $si__input_sections_length && section$2?.label,
|
|
@@ -13804,7 +13815,7 @@ var review_tree_default = _template("z", (input) => {
|
|
|
13804
13815
|
});
|
|
13805
13816
|
_resume_branch($scope0_id);
|
|
13806
13817
|
});
|
|
13807
|
-
var sheetDir = "
|
|
13818
|
+
var sheetDir = "_jh _ba";
|
|
13808
13819
|
//#endregion
|
|
13809
13820
|
//#region src/tags/diff-file-sheet.marko
|
|
13810
13821
|
var diff_file_sheet_default = _template("i", (input) => {
|
|
@@ -13860,9 +13871,9 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13860
13871
|
_if(() => {
|
|
13861
13872
|
if (open) {
|
|
13862
13873
|
const $scope1_id = _scope_id();
|
|
13863
|
-
_html(`<div${_attr_class("
|
|
13874
|
+
_html(`<div${_attr_class("_i9")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_i_")} role=dialog aria-label="Jump to file"><div${_attr_class("_ja")}><strong${_attr_class("_i8")}>Files</strong><span${_attr_class("_jb")}>${_text_resume($scope1_id, "f", input.files.length, $sg__input_files_length)}${_text_resume($scope1_id, "g", input.files.length !== total ? ` / ${total}` : "", _serialize_guard($scope0_reason, 2) * 2)}</span><button type=button${_attr_class([iconBtnLg, "_i7"])} title=Close aria-label=Close>`);
|
|
13864
13875
|
icon_xmark_default({ size: 16 });
|
|
13865
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
13876
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_jj")}>`);
|
|
13866
13877
|
_set_serialize_reason(2);
|
|
13867
13878
|
const $childScope = _peek_scope_id();
|
|
13868
13879
|
file_filter_default({
|
|
@@ -13871,13 +13882,13 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13871
13882
|
filter = _new_filter;
|
|
13872
13883
|
}, "i1", $scope1_id)
|
|
13873
13884
|
});
|
|
13874
|
-
_html(`</div><div${_attr_class("
|
|
13885
|
+
_html(`</div><div${_attr_class("_jc")}>`);
|
|
13875
13886
|
_for_of(groups, (group) => {
|
|
13876
13887
|
const $scope2_id = _scope_id();
|
|
13877
|
-
_html(`<div${_attr_class("
|
|
13888
|
+
_html(`<div${_attr_class("_jd")}><div${_attr_class("_je")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
13878
13889
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
13879
13890
|
const $scope3_id = _scope_id();
|
|
13880
|
-
_html(`<div${_attr_class("
|
|
13891
|
+
_html(`<div${_attr_class("_jf")}>`);
|
|
13881
13892
|
_if(() => {
|
|
13882
13893
|
if (dir) {
|
|
13883
13894
|
const $scope5_id = _scope_id();
|
|
@@ -13888,11 +13899,11 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13888
13899
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
13889
13900
|
_for_of(files, ({ file, name }) => {
|
|
13890
13901
|
const $scope4_id = _scope_id();
|
|
13891
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
13902
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_jg", "_y"])}><span${_attr_class("__")}${_attr("data-status", file.status)}>${_text_resume($scope4_id, "c", file.status, $sg__input_files)}</span>${_el_resume($scope4_id, "b", $sg__input_files)}<span${_attr_class("_ji")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
13892
13903
|
_if(() => {
|
|
13893
13904
|
if (newKeys.has(file.key)) {
|
|
13894
13905
|
const $scope6_id = _scope_id();
|
|
13895
|
-
_html(`<span${_attr_class(["_A", "
|
|
13906
|
+
_html(`<span${_attr_class(["_A", "_jl"])} title="Changed since your last visit"></span>`);
|
|
13896
13907
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
13897
13908
|
return 0;
|
|
13898
13909
|
}
|
|
@@ -13902,7 +13913,7 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13902
13913
|
const $scope7_id = _scope_id();
|
|
13903
13914
|
icon_comment_default({
|
|
13904
13915
|
size: 12,
|
|
13905
|
-
class: "
|
|
13916
|
+
class: "_jm"
|
|
13906
13917
|
});
|
|
13907
13918
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
13908
13919
|
return 0;
|
|
@@ -13927,7 +13938,7 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13927
13938
|
_if(() => {
|
|
13928
13939
|
if (!input.files.length) {
|
|
13929
13940
|
const $scope8_id = _scope_id();
|
|
13930
|
-
_html(`<p${_attr_class("
|
|
13941
|
+
_html(`<p${_attr_class("_jk")}>No files match.</p>`);
|
|
13931
13942
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
13932
13943
|
return 0;
|
|
13933
13944
|
}
|
|
@@ -14368,11 +14379,11 @@ var review_view_default = _template("A", (input) => {
|
|
|
14368
14379
|
else viewBox.scrollToLine(hit.key, hit.line, hit.side);
|
|
14369
14380
|
}, 0);
|
|
14370
14381
|
};
|
|
14371
|
-
_html(`<div${_attr_class("
|
|
14382
|
+
_html(`<div${_attr_class("_f8")}><div${_attr_class("_gc")}><div${_attr_class("_gL")}><div${_attr_class("_gd")}><div${_attr_class("_gk")}>`);
|
|
14372
14383
|
_if(() => {
|
|
14373
14384
|
if (input.onExit) {
|
|
14374
14385
|
const $scope1_id = _scope_id();
|
|
14375
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
14386
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_ge"])} title="Back to terminal (⌘/Ctrl+Shift+D)">`);
|
|
14376
14387
|
icon_back_default({ size: 14 });
|
|
14377
14388
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 2))}`);
|
|
14378
14389
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 2) && _scope_with_id($scope0_id) });
|
|
@@ -14383,7 +14394,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14383
14394
|
_if(() => {
|
|
14384
14395
|
if (comments.length) {
|
|
14385
14396
|
const $scope2_id = _scope_id();
|
|
14386
|
-
_html(`<span${_attr_class("
|
|
14397
|
+
_html(`<span${_attr_class("_gf")}>`);
|
|
14387
14398
|
_set_serialize_reason({
|
|
14388
14399
|
0: _serialize_guard($scope0_reason, 10),
|
|
14389
14400
|
1: 1
|
|
@@ -14400,14 +14411,14 @@ var review_view_default = _template("A", (input) => {
|
|
|
14400
14411
|
return 0;
|
|
14401
14412
|
}
|
|
14402
14413
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
14403
|
-
_html(`</div><div${_attr_class(["
|
|
14414
|
+
_html(`</div><div${_attr_class(["_gb", "_gK"])}>`);
|
|
14404
14415
|
_if(() => {
|
|
14405
14416
|
if (hasFiles) {
|
|
14406
14417
|
const $scope9_id = _scope_id();
|
|
14407
14418
|
_html(`<button${_attr_class([
|
|
14408
14419
|
treeToggle,
|
|
14409
|
-
"
|
|
14410
|
-
{ ["
|
|
14420
|
+
"_f_",
|
|
14421
|
+
{ ["_f9"]: treeOpen }
|
|
14411
14422
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
14412
14423
|
icon_sidebar_default({ size: 14 });
|
|
14413
14424
|
_html(`</button>${_el_resume($scope9_id, "a")}`);
|
|
@@ -14416,7 +14427,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14416
14427
|
return 0;
|
|
14417
14428
|
}
|
|
14418
14429
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
14419
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
14430
|
+
_html(`<button${_attr_class([iconBtnRow, "_f_"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
14420
14431
|
_set_serialize_reason(1);
|
|
14421
14432
|
const $childScope2 = _peek_scope_id();
|
|
14422
14433
|
icon_refresh_default({
|
|
@@ -14429,30 +14440,30 @@ var review_view_default = _template("A", (input) => {
|
|
|
14429
14440
|
const $scope10_id = _scope_id();
|
|
14430
14441
|
_html(`<button${_attr_class([
|
|
14431
14442
|
iconBtnRow,
|
|
14432
|
-
"
|
|
14433
|
-
"
|
|
14434
|
-
])}${_attr("title", `Jump to file (${shownFiles.length})`)}${_attr("aria-label", `Jump to file (${shownFiles.length} files)`)}><span${_attr_class("
|
|
14443
|
+
"_f_",
|
|
14444
|
+
"_gw"
|
|
14445
|
+
])}${_attr("title", `Jump to file (${shownFiles.length})`)}${_attr("aria-label", `Jump to file (${shownFiles.length} files)`)}><span${_attr_class("_gx")} aria-hidden=true>`);
|
|
14435
14446
|
icon_folder_default({
|
|
14436
14447
|
size: 20,
|
|
14437
|
-
class: "
|
|
14448
|
+
class: "_gy"
|
|
14438
14449
|
});
|
|
14439
|
-
_html(`<span${_attr_class("
|
|
14450
|
+
_html(`<span${_attr_class("_gz")}>${_text_resume($scope10_id, "e", shownFiles.length > 99 ? "99+" : shownFiles.length)}</span></span></button>${_el_resume($scope10_id, "a")}`);
|
|
14440
14451
|
_script($scope10_id, "A41");
|
|
14441
14452
|
writeScope($scope10_id, {});
|
|
14442
14453
|
return 0;
|
|
14443
14454
|
}
|
|
14444
14455
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
14445
|
-
_html(`<span${_attr_class("
|
|
14456
|
+
_html(`<span${_attr_class("_gl")}><button${_attr_class([
|
|
14446
14457
|
iconBtnRow,
|
|
14447
|
-
"
|
|
14448
|
-
{ ["
|
|
14458
|
+
"_f_",
|
|
14459
|
+
{ ["_f9"]: !!rev }
|
|
14449
14460
|
])}${_attr("title", `${compareLabel}\n${compareTitle}`)} aria-label=Compare${_attr("disabled", loading)}>`);
|
|
14450
14461
|
icon_branch_default({ size: 14 });
|
|
14451
14462
|
_html(`</button>${_el_resume($scope0_id, "o")}`);
|
|
14452
14463
|
_attr_select_value($scope0_id, "q", rev ? `rev:${rev}` : scope, _resume(function(v) {
|
|
14453
14464
|
pickCompare(v);
|
|
14454
14465
|
}, "A0", $scope0_id), () => {
|
|
14455
|
-
_html(`<select${_attr_class("
|
|
14466
|
+
_html(`<select${_attr_class("_gm")} 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>`);
|
|
14456
14467
|
_if(() => {
|
|
14457
14468
|
if (commitOptions.length) {
|
|
14458
14469
|
const $scope12_id = _scope_id();
|
|
@@ -14468,7 +14479,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14468
14479
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
14469
14480
|
_html("</select>");
|
|
14470
14481
|
});
|
|
14471
|
-
_html(`${_el_resume($scope0_id, "q")}</span> <div${_attr_class(["
|
|
14482
|
+
_html(`${_el_resume($scope0_id, "q")}</span> <div${_attr_class(["_gj", { ["_gi"]: !findOpen }])}>`);
|
|
14472
14483
|
_set_serialize_reason(2);
|
|
14473
14484
|
const $childScope3 = _peek_scope_id();
|
|
14474
14485
|
let findFocus = diff_find_default({
|
|
@@ -14491,8 +14502,8 @@ var review_view_default = _template("A", (input) => {
|
|
|
14491
14502
|
const $scope11_id = _scope_id();
|
|
14492
14503
|
_html(`<button${_attr_class([
|
|
14493
14504
|
iconBtnRow,
|
|
14494
|
-
"
|
|
14495
|
-
"
|
|
14505
|
+
"_gh",
|
|
14506
|
+
"_f_"
|
|
14496
14507
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
14497
14508
|
icon_search_default({ size: 14 });
|
|
14498
14509
|
_html(`</button>${_el_resume($scope11_id, "a")}`);
|
|
@@ -14505,7 +14516,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14505
14516
|
_if(() => {
|
|
14506
14517
|
if (!repos && loading) {
|
|
14507
14518
|
const $scope14_id = _scope_id();
|
|
14508
|
-
_html(`<div${_attr_class("
|
|
14519
|
+
_html(`<div${_attr_class("_gt")} aria-hidden=true><div${_attr_class(["_gp", "_gu"])}></div><div${_attr_class(["_gp", "_gv"])}></div></div>`);
|
|
14509
14520
|
writeScope($scope14_id, {});
|
|
14510
14521
|
return 0;
|
|
14511
14522
|
}
|
|
@@ -14578,7 +14589,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14578
14589
|
onReload: reload,
|
|
14579
14590
|
loading
|
|
14580
14591
|
});
|
|
14581
|
-
_html(`</div><div${_attr_class("
|
|
14592
|
+
_html(`</div><div${_attr_class("_gA")}>`);
|
|
14582
14593
|
_if(() => {
|
|
14583
14594
|
if (error) {
|
|
14584
14595
|
const $scope3_id = _scope_id();
|
|
@@ -14623,10 +14634,10 @@ var review_view_default = _template("A", (input) => {
|
|
|
14623
14634
|
_if(() => {
|
|
14624
14635
|
if (!repos && loading) {
|
|
14625
14636
|
const $scope15_id = _scope_id();
|
|
14626
|
-
_html(`<div${_attr_class("
|
|
14637
|
+
_html(`<div${_attr_class("_go")} aria-hidden=true>`);
|
|
14627
14638
|
forTo(2, 0, 1, () => {
|
|
14628
14639
|
_scope_id();
|
|
14629
|
-
_html(`<div${_attr_class("
|
|
14640
|
+
_html(`<div${_attr_class("_gq")}><div${_attr_class(["_gp", "_gr"])}></div><div${_attr_class(["_gp", "_gs"])}></div></div>`);
|
|
14630
14641
|
});
|
|
14631
14642
|
_html("</div>");
|
|
14632
14643
|
writeScope($scope15_id, {});
|
|
@@ -14646,7 +14657,7 @@ var review_view_default = _template("A", (input) => {
|
|
|
14646
14657
|
return 1;
|
|
14647
14658
|
}
|
|
14648
14659
|
}, $scope0_id, "a2", 1, 1, 1, 0, 1);
|
|
14649
|
-
_html(`</div></div><div${_attr_class("
|
|
14660
|
+
_html(`</div></div><div${_attr_class("_gB")} data-diff-main></div>${_el_resume($scope0_id, "a3")}</div>`);
|
|
14650
14661
|
_set_serialize_reason(26);
|
|
14651
14662
|
const $childScope6 = _peek_scope_id();
|
|
14652
14663
|
review_tree_default({
|
|
@@ -14926,10 +14937,10 @@ function parseInvite(text) {
|
|
|
14926
14937
|
}
|
|
14927
14938
|
//#endregion
|
|
14928
14939
|
//#region src/tags/manage-workspace.css.ts
|
|
14929
|
-
var procCmd = "
|
|
14930
|
-
var skillRow = "
|
|
14931
|
-
var skillName = "
|
|
14932
|
-
var skillDesc = "
|
|
14940
|
+
var procCmd = "_gM _cV";
|
|
14941
|
+
var skillRow = "_gO _cT";
|
|
14942
|
+
var skillName = "_gQ _gM _cV";
|
|
14943
|
+
var skillDesc = "_gT _cW";
|
|
14933
14944
|
//#endregion
|
|
14934
14945
|
//#region src/tags/icons/icon-archive.marko
|
|
14935
14946
|
var icon_archive_default = _template("Q", (input) => {
|
|
@@ -14964,10 +14975,10 @@ var icon_trash_default = _template("wb", (input) => {
|
|
|
14964
14975
|
});
|
|
14965
14976
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
14966
14977
|
});
|
|
14967
|
-
var resultRow = "
|
|
14968
|
-
var resultBranch = "
|
|
14969
|
-
var urlAction = "
|
|
14970
|
-
var addedRow = "
|
|
14978
|
+
var resultRow = "_hV _I";
|
|
14979
|
+
var resultBranch = "_hW _c0 _X _W _3 _l";
|
|
14980
|
+
var urlAction = "_hX _c0 _X _W _c1";
|
|
14981
|
+
var addedRow = "_h8 _cT";
|
|
14971
14982
|
//#endregion
|
|
14972
14983
|
//#region src/tags/branch-pick.marko
|
|
14973
14984
|
var branch_pick_default = _template("f", (input) => {
|
|
@@ -14980,7 +14991,7 @@ var branch_pick_default = _template("f", (input) => {
|
|
|
14980
14991
|
let branchFilter = "";
|
|
14981
14992
|
let reloadTick = 0;
|
|
14982
14993
|
let refreshing = false;
|
|
14983
|
-
_html(`<div${_attr_class("
|
|
14994
|
+
_html(`<div${_attr_class("_hY")}>`);
|
|
14984
14995
|
_if(() => {
|
|
14985
14996
|
{
|
|
14986
14997
|
const $scope4_id = _scope_id();
|
|
@@ -15087,10 +15098,10 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15087
15098
|
}, $scope0_id) };
|
|
15088
15099
|
const addedList = sheet ? input$2.added || [] : [];
|
|
15089
15100
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || ssoPending.length || sheet && !!input$2.added);
|
|
15090
|
-
_html(`<div${_attr_class(["
|
|
15091
|
-
["
|
|
15092
|
-
["
|
|
15093
|
-
}])}><label${_attr_class(["_0", "
|
|
15101
|
+
_html(`<div${_attr_class(["_cs", {
|
|
15102
|
+
["_ct"]: !input$2.open,
|
|
15103
|
+
["_cu"]: input$2.pinned
|
|
15104
|
+
}])}><label${_attr_class(["_0", "_cv"])}>`);
|
|
15094
15105
|
icon_search_default({
|
|
15095
15106
|
size: 14,
|
|
15096
15107
|
class: "_1"
|
|
@@ -15102,14 +15113,14 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15102
15113
|
}, "w0", $scope0_id))}${_attr_class([
|
|
15103
15114
|
"_Y",
|
|
15104
15115
|
"_2",
|
|
15105
|
-
"
|
|
15106
|
-
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
15116
|
+
"_cw"
|
|
15117
|
+
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "d")}</label><button${_attr_class([iconBtnRow, "_cy"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
15107
15118
|
icon_xmark_default({ size: 14 });
|
|
15108
15119
|
_html(`</button>${_el_resume($scope0_id, "e")}<div${_attr_class(pop$1)}${_attr("hidden", !hasBody || !input$2.open && !input$2.pinned)}>`);
|
|
15109
15120
|
_if(() => {
|
|
15110
15121
|
if (ssoPending.length) {
|
|
15111
15122
|
const $scope11_id = _scope_id();
|
|
15112
|
-
_html(`<div${_attr_class("
|
|
15123
|
+
_html(`<div${_attr_class("_hR")}>`);
|
|
15113
15124
|
ssoBlock.content({});
|
|
15114
15125
|
_html("</div>");
|
|
15115
15126
|
writeScope($scope11_id, {});
|
|
@@ -15119,16 +15130,16 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15119
15130
|
_if(() => {
|
|
15120
15131
|
if (pasted) {
|
|
15121
15132
|
const $scope1_id = _scope_id();
|
|
15122
|
-
_html(`<ul${_attr_class("
|
|
15133
|
+
_html(`<ul${_attr_class("_hS")}><li><div${_attr_class(["_hU", "_hT"])}><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)`)}>`);
|
|
15123
15134
|
icon_plus_default({
|
|
15124
15135
|
size: 12,
|
|
15125
|
-
class: "
|
|
15136
|
+
class: "_h0"
|
|
15126
15137
|
});
|
|
15127
|
-
_html(`<span${_attr_class("
|
|
15138
|
+
_html(`<span${_attr_class("_h1")}>${_text_resume($scope1_id, "f", repoLabel$1(pasted))}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
15128
15139
|
_if(() => {
|
|
15129
15140
|
if (pastedForkable) {
|
|
15130
15141
|
const $scope10_id = _scope_id();
|
|
15131
|
-
_html(`<button${_attr_class([urlAction, { ["
|
|
15142
|
+
_html(`<button${_attr_class([urlAction, { ["_cZ"]: 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"}>`);
|
|
15132
15143
|
_if(() => {
|
|
15133
15144
|
if (pasteWillFork) {
|
|
15134
15145
|
const $scope13_id = _scope_id();
|
|
@@ -15148,7 +15159,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15148
15159
|
return 0;
|
|
15149
15160
|
}
|
|
15150
15161
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
15151
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
15162
|
+
_html(`<button${_attr_class([resultBranch, { ["_cZ"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
15152
15163
|
icon_branch_default({ size: 12 });
|
|
15153
15164
|
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
15154
15165
|
_if(() => {
|
|
@@ -15183,15 +15194,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15183
15194
|
_if(() => {
|
|
15184
15195
|
if (results.length) {
|
|
15185
15196
|
const $scope3_id = _scope_id();
|
|
15186
|
-
_html(`<ul${_attr_class("
|
|
15197
|
+
_html(`<ul${_attr_class("_hS")}>`);
|
|
15187
15198
|
_for_of(results, (repo, i) => {
|
|
15188
15199
|
const $scope4_id = _scope_id();
|
|
15189
|
-
_html(`<li><div${_attr_class(["
|
|
15200
|
+
_html(`<li><div${_attr_class(["_hU", { ["_hT"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15190
15201
|
icon_plus_default({
|
|
15191
15202
|
size: 12,
|
|
15192
|
-
class: "
|
|
15203
|
+
class: "_h0"
|
|
15193
15204
|
});
|
|
15194
|
-
_html(`<span${_attr_class("
|
|
15205
|
+
_html(`<span${_attr_class("_h1")}>${_text_resume($scope4_id, "e", repoLabel$1(repo.nameWithOwner))}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_cZ"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
15195
15206
|
icon_branch_default({ size: 12 });
|
|
15196
15207
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
15197
15208
|
_if(() => {
|
|
@@ -15234,10 +15245,10 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15234
15245
|
_if(() => {
|
|
15235
15246
|
if (sheet && input$2.added) {
|
|
15236
15247
|
const $scope6_id = _scope_id();
|
|
15237
|
-
_html(`<div${_attr_class("
|
|
15248
|
+
_html(`<div${_attr_class("_h6")}><p${_attr_class("_h7")}>Repos <span${_attr_class(sectionCount$1)}>${_text_resume($scope6_id, "d", addedList.length, $sg__input_added)}</span></p><ul${_attr_class(list$2)}>`);
|
|
15238
15249
|
_for_of(addedList, (repo) => {
|
|
15239
15250
|
const $scope15_id = _scope_id();
|
|
15240
|
-
_html(`<li${_attr_class([addedRow, { ["
|
|
15251
|
+
_html(`<li${_attr_class([addedRow, { ["_cY"]: repo.pending }])}>`);
|
|
15241
15252
|
_if(() => {
|
|
15242
15253
|
if (repo.pending) {
|
|
15243
15254
|
const $scope17_id = _scope_id();
|
|
@@ -15248,13 +15259,13 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15248
15259
|
const $scope18_id = _scope_id();
|
|
15249
15260
|
icon_check_default({
|
|
15250
15261
|
size: 12,
|
|
15251
|
-
class: "
|
|
15262
|
+
class: "_h0"
|
|
15252
15263
|
});
|
|
15253
15264
|
$si__input_added && writeScope($scope18_id, {});
|
|
15254
15265
|
return 1;
|
|
15255
15266
|
}
|
|
15256
15267
|
}, $scope15_id, "b", $sg__input_added, $sg__input_added, $sg__input_added, 0, 1);
|
|
15257
|
-
_html(`<span${_attr_class("
|
|
15268
|
+
_html(`<span${_attr_class("_h1")}>${_text_resume($scope15_id, "d", repoLabel$1(repo.name), $sg__input_added)}</span>`);
|
|
15258
15269
|
_if(() => {
|
|
15259
15270
|
if (repo.baseBranch) {
|
|
15260
15271
|
const $scope16_id = _scope_id();
|
|
@@ -15271,7 +15282,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15271
15282
|
_if(() => {
|
|
15272
15283
|
if (!addedList.length) {
|
|
15273
15284
|
const $scope7_id = _scope_id();
|
|
15274
|
-
_html(`<li${_attr_class([addedRow, "
|
|
15285
|
+
_html(`<li${_attr_class([addedRow, "_cY"])}>`);
|
|
15275
15286
|
_if(() => {
|
|
15276
15287
|
if (catalog) {
|
|
15277
15288
|
const $scope19_id = _scope_id();
|
|
@@ -15509,7 +15520,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15509
15520
|
setTimeout(() => loadProcs(void 0), 500);
|
|
15510
15521
|
}, "p11", $scope0_id);
|
|
15511
15522
|
const titleId = _id();
|
|
15512
|
-
_html(`<div${_attr_class("
|
|
15523
|
+
_html(`<div${_attr_class("_d8")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d9")}><div${_attr_class("_d_")}>`);
|
|
15513
15524
|
_set_serialize_reason(30);
|
|
15514
15525
|
const $childScope2 = _peek_scope_id();
|
|
15515
15526
|
page_head_default({
|
|
@@ -15617,7 +15628,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15617
15628
|
_resume_branch($scope6_id);
|
|
15618
15629
|
}, $scope0_id) })
|
|
15619
15630
|
});
|
|
15620
|
-
_html(`<div${_attr_class("
|
|
15631
|
+
_html(`<div${_attr_class("_ea")}><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("_gX")}>Name</span><span${_attr_class(["_gY", "_gZ"])}>${_text_resume($scope0_id, "m", ws.name)}</span>`);
|
|
15621
15632
|
_if(() => {
|
|
15622
15633
|
if (ws.status !== "active") {
|
|
15623
15634
|
const $scope23_id = _scope_id();
|
|
@@ -15626,8 +15637,8 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15626
15637
|
return 0;
|
|
15627
15638
|
}
|
|
15628
15639
|
}, $scope0_id, "n", 1, 1, 1, 0, 1);
|
|
15629
|
-
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("
|
|
15630
|
-
"
|
|
15640
|
+
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("_gX")}>Path</span><span${_attr_class([
|
|
15641
|
+
"_gY",
|
|
15631
15642
|
"_y",
|
|
15632
15643
|
"_ba"
|
|
15633
15644
|
])}${_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">`);
|
|
@@ -15644,7 +15655,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15644
15655
|
return 1;
|
|
15645
15656
|
}
|
|
15646
15657
|
}, $scope0_id, "s", 1, 1, 1, "</button>", 1);
|
|
15647
|
-
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("
|
|
15658
|
+
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("_gX")}>Branch</span><span${_attr_class(["_gY", "_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">`);
|
|
15648
15659
|
_if(() => {
|
|
15649
15660
|
if (copiedFact === "branch") {
|
|
15650
15661
|
const $scope26_id = _scope_id();
|
|
@@ -15687,7 +15698,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15687
15698
|
return 0;
|
|
15688
15699
|
}
|
|
15689
15700
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
15690
|
-
_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, "
|
|
15701
|
+
_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, "_gW"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
15691
15702
|
icon_plus_default({ size: 16 });
|
|
15692
15703
|
_html(`</button>${_el_resume($scope0_id, "a6")}`);
|
|
15693
15704
|
_set_serialize_reason(34);
|
|
@@ -15724,10 +15735,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15724
15735
|
size: 14,
|
|
15725
15736
|
class: catalogRefreshing && "_F"
|
|
15726
15737
|
});
|
|
15727
|
-
_html(`</button>${_el_resume($scope0_id, "aa")}</div><ul${_attr_class([list$2, "
|
|
15738
|
+
_html(`</button>${_el_resume($scope0_id, "aa")}</div><ul${_attr_class([list$2, "_cS"])}>`);
|
|
15728
15739
|
_for_of(ws.repos, (row) => {
|
|
15729
15740
|
const $scope1_id = _scope_id();
|
|
15730
|
-
_html(`<li${_attr_class("
|
|
15741
|
+
_html(`<li${_attr_class("_cT")}><span${_attr_class(["_y", procCmd])}>${_text_resume($scope1_id, "c", row.worktree)}/</span><span${_attr_class("_cW")}><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")}`);
|
|
15731
15742
|
_if(() => {
|
|
15732
15743
|
if (row.base_branch !== row.default_branch) {
|
|
15733
15744
|
const $scope28_id = _scope_id();
|
|
@@ -15738,7 +15749,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15738
15749
|
return 0;
|
|
15739
15750
|
}
|
|
15740
15751
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
15741
|
-
_html(`</span><span${_attr_class("
|
|
15752
|
+
_html(`</span><span${_attr_class("_cX")}>`);
|
|
15742
15753
|
_if(() => {
|
|
15743
15754
|
if (busy.has(row.full_name)) {
|
|
15744
15755
|
const $scope29_id = _scope_id();
|
|
@@ -15781,8 +15792,8 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15781
15792
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
15782
15793
|
const $scope31_id = _scope_id();
|
|
15783
15794
|
_html(`<li${_attr_class([
|
|
15784
|
-
"
|
|
15785
|
-
"
|
|
15795
|
+
"_cT",
|
|
15796
|
+
"_cU",
|
|
15786
15797
|
"_ch"
|
|
15787
15798
|
])}><span${_attr_class("_G")}></span><span${_attr_class("_cm")}>Adding ${_text_resume($scope31_id, "d", name, 2)}…</span></li>`);
|
|
15788
15799
|
writeScope($scope31_id, {});
|
|
@@ -15790,7 +15801,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15790
15801
|
_if(() => {
|
|
15791
15802
|
if (!ws.repos.length && !busy.size) {
|
|
15792
15803
|
const $scope32_id = _scope_id();
|
|
15793
|
-
_html(`<li${_attr_class(["
|
|
15804
|
+
_html(`<li${_attr_class(["_cT", "_cU"])}><span${_attr_class("_cm")}>No repos yet. Add one to start.</span></li>`);
|
|
15794
15805
|
writeScope($scope32_id, {});
|
|
15795
15806
|
return 0;
|
|
15796
15807
|
}
|
|
@@ -15803,17 +15814,17 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15803
15814
|
_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)}>`);
|
|
15804
15815
|
_for_of(running, (p) => {
|
|
15805
15816
|
const $scope16_id = _scope_id();
|
|
15806
|
-
_html(`<li${_attr_class("
|
|
15817
|
+
_html(`<li${_attr_class("_cT")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", procCmd])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_cW"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_cX")}>`);
|
|
15807
15818
|
_for_of(p.ports, (port) => {
|
|
15808
15819
|
const $scope33_id = _scope_id();
|
|
15809
15820
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope33_id, "b", port, 2)}</button>${_el_resume($scope33_id, "a")}`);
|
|
15810
15821
|
_script($scope33_id, "p28");
|
|
15811
15822
|
writeScope($scope33_id, { d: port });
|
|
15812
15823
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
15813
|
-
_html(`<span${_attr_class(["_y", "
|
|
15824
|
+
_html(`<span${_attr_class(["_y", "_gN"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
15814
15825
|
"_cn",
|
|
15815
15826
|
"_7",
|
|
15816
|
-
"
|
|
15827
|
+
"_gV"
|
|
15817
15828
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
15818
15829
|
icon_xmark_default({ size: 14 });
|
|
15819
15830
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -15834,28 +15845,28 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15834
15845
|
s,
|
|
15835
15846
|
linked: false
|
|
15836
15847
|
}))].sort((a, b) => a.s.name.localeCompare(b.s.name));
|
|
15837
|
-
_html(`</div><div${_attr_class("
|
|
15848
|
+
_html(`</div><div${_attr_class("_ea")}>`);
|
|
15838
15849
|
_if(() => {
|
|
15839
15850
|
if (allSkills.length) {
|
|
15840
15851
|
const $scope2_id = _scope_id();
|
|
15841
|
-
_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, "
|
|
15852
|
+
_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, "_cS"])}>`);
|
|
15842
15853
|
_for_of(allSkills, ({ s, linked }) => {
|
|
15843
15854
|
const $scope3_id = _scope_id();
|
|
15844
15855
|
const isBusy = skillBusy.has(s.id);
|
|
15845
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
15856
|
+
_html(`<li${_attr_class([skillRow, { ["_gP"]: !linked }])}><span${_attr_class("_gR")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
15846
15857
|
_if(() => {
|
|
15847
15858
|
if (s.worktree && !s.broken) {
|
|
15848
15859
|
const $scope34_id = _scope_id();
|
|
15849
15860
|
_html(`<span${_attr_class([
|
|
15850
15861
|
"_N",
|
|
15851
15862
|
"_y",
|
|
15852
|
-
"
|
|
15863
|
+
"_gS"
|
|
15853
15864
|
])}${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")}`);
|
|
15854
15865
|
writeScope($scope34_id, {});
|
|
15855
15866
|
return 0;
|
|
15856
15867
|
}
|
|
15857
15868
|
}, $scope3_id, "e", 1, 1, 1, 0, 1);
|
|
15858
|
-
_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("
|
|
15869
|
+
_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("_cX")}>`);
|
|
15859
15870
|
_if(() => {
|
|
15860
15871
|
if (s.broken) {
|
|
15861
15872
|
const $scope35_id = _scope_id();
|
|
@@ -15906,7 +15917,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15906
15917
|
"_cn",
|
|
15907
15918
|
"_7",
|
|
15908
15919
|
"_8",
|
|
15909
|
-
"
|
|
15920
|
+
"_gU"
|
|
15910
15921
|
],
|
|
15911
15922
|
disabled: isBusy,
|
|
15912
15923
|
busy: isBusy,
|
|
@@ -16016,10 +16027,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
16016
16027
|
});
|
|
16017
16028
|
_resume_branch($scope0_id);
|
|
16018
16029
|
});
|
|
16019
|
-
var curRow = "
|
|
16020
|
-
var archived = "
|
|
16021
|
-
var archivedHint = "
|
|
16022
|
-
var archivedRow = "
|
|
16030
|
+
var curRow = "_fo _cT";
|
|
16031
|
+
var archived = "_ft _cd";
|
|
16032
|
+
var archivedHint = "_fu _W";
|
|
16033
|
+
var archivedRow = "_fv _cR _cP";
|
|
16023
16034
|
//#endregion
|
|
16024
16035
|
//#region src/tags/icons/icon-group.marko
|
|
16025
16036
|
var icon_group_default = _template("jb", (input) => {
|
|
@@ -16039,8 +16050,8 @@ var icon_group_default = _template("jb", (input) => {
|
|
|
16039
16050
|
});
|
|
16040
16051
|
//#endregion
|
|
16041
16052
|
//#region src/tags/join-dialog.css.ts
|
|
16042
|
-
var dlg = "
|
|
16043
|
-
var hint = "
|
|
16053
|
+
var dlg = "_iG _hz";
|
|
16054
|
+
var hint = "_iH _W";
|
|
16044
16055
|
//#endregion
|
|
16045
16056
|
//#region src/tags/join-dialog.marko
|
|
16046
16057
|
var api$3;
|
|
@@ -16169,26 +16180,26 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16169
16180
|
content: _content("m12", () => {
|
|
16170
16181
|
_scope_reason();
|
|
16171
16182
|
const $scope1_id = _scope_id();
|
|
16172
|
-
_html(`<h2${_attr_class("
|
|
16183
|
+
_html(`<h2${_attr_class("_hA")}${_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([
|
|
16173
16184
|
"_Y",
|
|
16174
16185
|
"_y",
|
|
16175
|
-
"
|
|
16186
|
+
"_iJ"
|
|
16176
16187
|
])} 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")}`);
|
|
16177
16188
|
_if(() => {
|
|
16178
16189
|
if (parsed.error) {
|
|
16179
16190
|
const $scope8_id = _scope_id();
|
|
16180
|
-
_html(`<p${_attr_class([hint, "
|
|
16191
|
+
_html(`<p${_attr_class([hint, "_iI"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16181
16192
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16182
16193
|
return 0;
|
|
16183
16194
|
} else if (parsed.ok) {
|
|
16184
16195
|
const $scope3_id = _scope_id();
|
|
16185
|
-
_html(`<ul${_attr_class("
|
|
16196
|
+
_html(`<ul${_attr_class("_iK")}>`);
|
|
16186
16197
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16187
16198
|
const $scope9_id = _scope_id();
|
|
16188
|
-
_html(`<li${_attr_class("
|
|
16199
|
+
_html(`<li${_attr_class("_iL")}><span${_attr_class("_iM")}>${_text_resume($scope9_id, "c", repoLabel$1(fullName))}</span></li>`);
|
|
16189
16200
|
writeScope($scope9_id, {});
|
|
16190
16201
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16191
|
-
_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("
|
|
16202
|
+
_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("_iN")}><span${_attr_class("_cr")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
16192
16203
|
name = _new_name;
|
|
16193
16204
|
}, "m1", $scope3_id))}${_attr_class("_Y")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16194
16205
|
_script($scope3_id, "m8");
|
|
@@ -16225,10 +16236,10 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16225
16236
|
_if(() => {
|
|
16226
16237
|
if (busy && steps$2.length) {
|
|
16227
16238
|
const $scope6_id = _scope_id();
|
|
16228
|
-
_html(`<ul${_attr_class("
|
|
16239
|
+
_html(`<ul${_attr_class("_iO")}>`);
|
|
16229
16240
|
_for_of(steps$2, (step$2, i) => {
|
|
16230
16241
|
const $scope7_id = _scope_id();
|
|
16231
|
-
_html(`<li${_attr_class(["
|
|
16242
|
+
_html(`<li${_attr_class(["_iQ", { ["_iP"]: i === steps$2.length - 1 }])}>`);
|
|
16232
16243
|
_if(() => {
|
|
16233
16244
|
if (i === steps$2.length - 1) {
|
|
16234
16245
|
const $scope10_id = _scope_id();
|
|
@@ -16237,7 +16248,7 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16237
16248
|
return 0;
|
|
16238
16249
|
} else {
|
|
16239
16250
|
const $scope11_id = _scope_id();
|
|
16240
|
-
_html(`<span${_attr_class("
|
|
16251
|
+
_html(`<span${_attr_class("_iR")}>`);
|
|
16241
16252
|
icon_check_default({ size: 14 });
|
|
16242
16253
|
_html("</span>");
|
|
16243
16254
|
writeScope($scope11_id, {});
|
|
@@ -16395,7 +16406,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16395
16406
|
}
|
|
16396
16407
|
}, "s6", $scope0_id);
|
|
16397
16408
|
const titleId = _id();
|
|
16398
|
-
_html(`<div${_attr_class("
|
|
16409
|
+
_html(`<div${_attr_class("_d8")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d9")}><div${_attr_class("_d_")}>`);
|
|
16399
16410
|
_set_serialize_reason({
|
|
16400
16411
|
0: _serialize_guard($scope0_reason, 2),
|
|
16401
16412
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -16419,7 +16430,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16419
16430
|
_resume_branch($scope2_id);
|
|
16420
16431
|
}, $scope0_id) })
|
|
16421
16432
|
});
|
|
16422
|
-
_html(`<div${_attr_class("
|
|
16433
|
+
_html(`<div${_attr_class("_ea")}>`);
|
|
16423
16434
|
_if(() => {
|
|
16424
16435
|
if (error) {
|
|
16425
16436
|
const $scope7_id = _scope_id();
|
|
@@ -16440,9 +16451,9 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16440
16451
|
return 0;
|
|
16441
16452
|
}
|
|
16442
16453
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16443
|
-
_html(`<label${_attr_class("
|
|
16454
|
+
_html(`<label${_attr_class("_fj")}><span${_attr_class("_cr")}>Name</span><input${_attr_input_value($scope0_id, "i", name, _resume((_new_name) => {
|
|
16444
16455
|
name = _new_name;
|
|
16445
|
-
}, "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("
|
|
16456
|
+
}, "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("_fm")}><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, "_fl"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}${_attr("disabled", busy)}>`);
|
|
16446
16457
|
icon_plus_default({ size: 16 });
|
|
16447
16458
|
_html(`</button>${_el_resume($scope0_id, "p")}`);
|
|
16448
16459
|
_set_serialize_reason(34);
|
|
@@ -16480,14 +16491,14 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16480
16491
|
_html(`</button>${_el_resume($scope0_id, "t")}</div><ul${_attr_class(list$2)}>`);
|
|
16481
16492
|
_for_of(selected, (repo) => {
|
|
16482
16493
|
const $scope3_id = _scope_id();
|
|
16483
|
-
_html(`<li${_attr_class("
|
|
16494
|
+
_html(`<li${_attr_class("_fn")}><div${_attr_class(curRow)}><span${_attr_class("_cV")}>${_text_resume($scope3_id, "d", repoLabel$1(repo.fullName))}</span><span${_attr_class("_cX")}>`);
|
|
16484
16495
|
_if(() => {
|
|
16485
16496
|
if (repo.fork !== void 0) {
|
|
16486
16497
|
const $scope4_id = _scope_id();
|
|
16487
16498
|
_html(`<button${_attr_class([
|
|
16488
16499
|
chip$1,
|
|
16489
|
-
"
|
|
16490
|
-
{ ["
|
|
16500
|
+
"_c1",
|
|
16501
|
+
{ ["_cZ"]: repo.fork }
|
|
16491
16502
|
])}${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)}>`);
|
|
16492
16503
|
_if(() => {
|
|
16493
16504
|
if (repo.fork) {
|
|
@@ -16511,7 +16522,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16511
16522
|
_html(`<button${_attr_class([
|
|
16512
16523
|
chip$1,
|
|
16513
16524
|
"_y",
|
|
16514
|
-
{ ["
|
|
16525
|
+
{ ["_cZ"]: branchesFor === repo.fullName }
|
|
16515
16526
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
16516
16527
|
icon_branch_default({ size: 12 });
|
|
16517
16528
|
_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)}>`);
|
|
@@ -16520,7 +16531,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16520
16531
|
_if(() => {
|
|
16521
16532
|
if (branchesFor === repo.fullName) {
|
|
16522
16533
|
const $scope9_id = _scope_id();
|
|
16523
|
-
_html(`<div${_attr_class("
|
|
16534
|
+
_html(`<div${_attr_class("_fp")}>`);
|
|
16524
16535
|
const $childScope4 = _peek_scope_id();
|
|
16525
16536
|
branch_pick_default({
|
|
16526
16537
|
repo: repo.fullName,
|
|
@@ -16549,7 +16560,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16549
16560
|
_if(() => {
|
|
16550
16561
|
if (!selected.length) {
|
|
16551
16562
|
const $scope14_id = _scope_id();
|
|
16552
|
-
_html(`<li${_attr_class(["
|
|
16563
|
+
_html(`<li${_attr_class(["_cT", "_cY"])}>No repos yet. Add one above, or create it empty.</li>`);
|
|
16553
16564
|
writeScope($scope14_id, {});
|
|
16554
16565
|
return 0;
|
|
16555
16566
|
}
|
|
@@ -16558,10 +16569,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16558
16569
|
_if(() => {
|
|
16559
16570
|
if (busy && steps.length) {
|
|
16560
16571
|
const $scope10_id = _scope_id();
|
|
16561
|
-
_html(`<ul${_attr_class("
|
|
16572
|
+
_html(`<ul${_attr_class("_fq")}>`);
|
|
16562
16573
|
_for_of(steps, (step, i) => {
|
|
16563
16574
|
const $scope11_id = _scope_id();
|
|
16564
|
-
_html(`<li${_attr_class(["
|
|
16575
|
+
_html(`<li${_attr_class(["_fw", { ["_fr"]: i === steps.length - 1 }])}>`);
|
|
16565
16576
|
_if(() => {
|
|
16566
16577
|
if (i === steps.length - 1) {
|
|
16567
16578
|
const $scope15_id = _scope_id();
|
|
@@ -16570,7 +16581,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16570
16581
|
return 0;
|
|
16571
16582
|
} else {
|
|
16572
16583
|
const $scope16_id = _scope_id();
|
|
16573
|
-
_html(`<span${_attr_class("
|
|
16584
|
+
_html(`<span${_attr_class("_fs")}>`);
|
|
16574
16585
|
icon_check_default({ size: 14 });
|
|
16575
16586
|
_html("</span>");
|
|
16576
16587
|
writeScope($scope16_id, {});
|
|
@@ -16584,15 +16595,15 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16584
16595
|
return 0;
|
|
16585
16596
|
}
|
|
16586
16597
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
16587
|
-
_html(`<div${_attr_class("
|
|
16598
|
+
_html(`<div${_attr_class("_fh")}><button type=button${_attr_class([
|
|
16588
16599
|
btnLg,
|
|
16589
16600
|
"_r",
|
|
16590
|
-
"
|
|
16591
|
-
])}${_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("
|
|
16601
|
+
"_fi"
|
|
16602
|
+
])}${_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("_ea")}>`);
|
|
16592
16603
|
_if(() => {
|
|
16593
16604
|
if (archived$1.length) {
|
|
16594
16605
|
const $scope5_id = _scope_id();
|
|
16595
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
16606
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fm")}><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)}>`);
|
|
16596
16607
|
_for_of(archived$1, (ws) => {
|
|
16597
16608
|
const $scope6_id = _scope_id();
|
|
16598
16609
|
_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)}>`);
|
|
@@ -16712,19 +16723,19 @@ var term_find_default = _template("H", (input) => {
|
|
|
16712
16723
|
const canStep = hasQuery && open;
|
|
16713
16724
|
const keybar = input.placement === "keybar";
|
|
16714
16725
|
_html(`<div${_attr_class([
|
|
16715
|
-
"
|
|
16716
|
-
keybar ? "
|
|
16717
|
-
!open && "
|
|
16718
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
16726
|
+
"_eF",
|
|
16727
|
+
keybar ? "_eH" : "_eG",
|
|
16728
|
+
!open && "_eJ"
|
|
16729
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_ez", keybar ? "_eI" : "_eC"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
16719
16730
|
if (!open) return;
|
|
16720
16731
|
query = v;
|
|
16721
16732
|
live.query = v;
|
|
16722
16733
|
run(0);
|
|
16723
|
-
}, "H1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
16734
|
+
}, "H1", $scope0_id))}${_attr_class([findInput, keybar && "_eK"])} 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 && "_eL"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
16724
16735
|
icon_arrow_up_default({ size: 14 });
|
|
16725
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
16736
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_eL"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
16726
16737
|
icon_arrow_down_default({ size: 14 });
|
|
16727
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
16738
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_eL"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
16728
16739
|
icon_xmark_default({ size: 14 });
|
|
16729
16740
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
16730
16741
|
const $return = focusInput;
|
|
@@ -16875,7 +16886,7 @@ var term_default = _template("I", (input) => {
|
|
|
16875
16886
|
}
|
|
16876
16887
|
}, "I9", $scope0_id);
|
|
16877
16888
|
input.keys;
|
|
16878
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
16889
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_fx")}><div${_attr_class("_fy")}></div>${_el_resume($scope0_id, "b")}`);
|
|
16879
16890
|
_if(() => {
|
|
16880
16891
|
if (findOpen) {
|
|
16881
16892
|
const $scope4_id = _scope_id();
|
|
@@ -16902,7 +16913,7 @@ var term_default = _template("I", (input) => {
|
|
|
16902
16913
|
_if(() => {
|
|
16903
16914
|
if (uploading) {
|
|
16904
16915
|
const $scope5_id = _scope_id();
|
|
16905
|
-
_html(`<div${_attr_class("
|
|
16916
|
+
_html(`<div${_attr_class("_fE")}>uploading…</div>`);
|
|
16906
16917
|
writeScope($scope5_id, {});
|
|
16907
16918
|
return 0;
|
|
16908
16919
|
}
|
|
@@ -16910,7 +16921,7 @@ var term_default = _template("I", (input) => {
|
|
|
16910
16921
|
_if(() => {
|
|
16911
16922
|
if (copiedFlash) {
|
|
16912
16923
|
const $scope6_id = _scope_id();
|
|
16913
|
-
_html(`<div${_attr_class("
|
|
16924
|
+
_html(`<div${_attr_class("_fD")}>Copied</div>`);
|
|
16914
16925
|
writeScope($scope6_id, {});
|
|
16915
16926
|
return 0;
|
|
16916
16927
|
}
|
|
@@ -16919,7 +16930,7 @@ var term_default = _template("I", (input) => {
|
|
|
16919
16930
|
_if(() => {
|
|
16920
16931
|
if (trapOpen) {
|
|
16921
16932
|
const $scope3_id = _scope_id();
|
|
16922
|
-
_html(`<div${_attr_class("
|
|
16933
|
+
_html(`<div${_attr_class("_fF")}><div${_attr_class("_fG")}><p${_attr_class("_fH")}>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")}`);
|
|
16923
16934
|
_script($scope3_id, "I16");
|
|
16924
16935
|
_script($scope3_id, "I17");
|
|
16925
16936
|
writeScope($scope3_id, {});
|
|
@@ -17181,7 +17192,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17181
17192
|
toggleDiff();
|
|
17182
17193
|
}
|
|
17183
17194
|
}, "N14", $scope0_id);
|
|
17184
|
-
_html(`<div${_attr_class(["
|
|
17195
|
+
_html(`<div${_attr_class(["_b8", { ["_b7"]: !input.active }])}><div${_attr_class("_b9")}>`);
|
|
17185
17196
|
_if(() => {
|
|
17186
17197
|
if (error) {
|
|
17187
17198
|
const $scope8_id = _scope_id();
|
|
@@ -17204,7 +17215,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17204
17215
|
_if(() => {
|
|
17205
17216
|
if (diffMounted && ws) {
|
|
17206
17217
|
const $scope1_id = _scope_id();
|
|
17207
|
-
_html(`<div${_attr_class("
|
|
17218
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
17208
17219
|
_set_serialize_reason({
|
|
17209
17220
|
0: $sg__input_workspace,
|
|
17210
17221
|
1: $sg__input_workspace,
|
|
@@ -17266,7 +17277,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17266
17277
|
_if(() => {
|
|
17267
17278
|
if (manageMounted && ws) {
|
|
17268
17279
|
const $scope2_id = _scope_id();
|
|
17269
|
-
_html(`<div${_attr_class("
|
|
17280
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
17270
17281
|
_set_serialize_reason({
|
|
17271
17282
|
0: $sg__input_workspace,
|
|
17272
17283
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -17292,7 +17303,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17292
17303
|
_if(() => {
|
|
17293
17304
|
if (settingsMounted) {
|
|
17294
17305
|
const $scope3_id = _scope_id();
|
|
17295
|
-
_html(`<div${_attr_class("
|
|
17306
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
17296
17307
|
_set_serialize_reason({
|
|
17297
17308
|
0: _serialize_guard($scope0_reason, 0),
|
|
17298
17309
|
1: $sg__input_workspace,
|
|
@@ -17334,7 +17345,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17334
17345
|
_if(() => {
|
|
17335
17346
|
if (newMounted) {
|
|
17336
17347
|
const $scope4_id = _scope_id();
|
|
17337
|
-
_html(`<div${_attr_class("
|
|
17348
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
17338
17349
|
_set_serialize_reason({
|
|
17339
17350
|
0: 1,
|
|
17340
17351
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -17359,13 +17370,13 @@ var work_view_default = _template("N", (input) => {
|
|
|
17359
17370
|
return 0;
|
|
17360
17371
|
}
|
|
17361
17372
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
17362
|
-
_html(`<div${_attr_class("
|
|
17373
|
+
_html(`<div${_attr_class("_ca")}${_attr("inert", view !== "term")}>`);
|
|
17363
17374
|
_if(() => {
|
|
17364
17375
|
if (ws && shownSessions) {
|
|
17365
17376
|
const $scope5_id = _scope_id();
|
|
17366
17377
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
17367
17378
|
const $scope6_id = _scope_id();
|
|
17368
|
-
_html(`<div${_attr_class("
|
|
17379
|
+
_html(`<div${_attr_class("_cb")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
17369
17380
|
_set_serialize_reason(2);
|
|
17370
17381
|
const $childScope5 = _peek_scope_id();
|
|
17371
17382
|
term_default({
|
|
@@ -17504,7 +17515,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17504
17515
|
});
|
|
17505
17516
|
//#endregion
|
|
17506
17517
|
//#region src/tags/key-bar.css.ts
|
|
17507
|
-
var kbtn = "
|
|
17518
|
+
var kbtn = "_bG _5 _l";
|
|
17508
17519
|
_template("yb", (input) => {
|
|
17509
17520
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
17510
17521
|
const $scope0_id = _scope_id();
|
|
@@ -17520,8 +17531,8 @@ _template("yb", (input) => {
|
|
|
17520
17531
|
});
|
|
17521
17532
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
17522
17533
|
});
|
|
17523
|
-
var sessOpen = "
|
|
17524
|
-
var sessRename = "
|
|
17534
|
+
var sessOpen = "_e8 _I";
|
|
17535
|
+
var sessRename = "_fb _J";
|
|
17525
17536
|
//#endregion
|
|
17526
17537
|
//#region src/tags/usage-pcts.marko
|
|
17527
17538
|
var usage_pcts_default = _template("M", (input) => {
|
|
@@ -17548,7 +17559,7 @@ var usage_pcts_default = _template("M", (input) => {
|
|
|
17548
17559
|
return 0;
|
|
17549
17560
|
}
|
|
17550
17561
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
17551
|
-
_html(`<span${_attr_class("_hO")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hP", win$1.used_percent >= 90 ? "
|
|
17562
|
+
_html(`<span${_attr_class("_hO")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hP", win$1.used_percent >= 90 ? "_hi" : win$1.used_percent >= 70 ? "_hh" : win$1.used_percent >= 40 ? "_hg" : "_hf"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
17552
17563
|
$si__input_agent && writeScope($scope2_id, {});
|
|
17553
17564
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
17554
17565
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -17590,7 +17601,7 @@ _template("n", (input) => {
|
|
|
17590
17601
|
align: "center",
|
|
17591
17602
|
gap: 8
|
|
17592
17603
|
}), "n2", $scope0_id);
|
|
17593
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17604
|
+
_html(`<button${_attr_class([kbtn, "_e4"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
17594
17605
|
_set_serialize_reason({
|
|
17595
17606
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
17596
17607
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -17604,11 +17615,11 @@ _template("n", (input) => {
|
|
|
17604
17615
|
"_A",
|
|
17605
17616
|
"_bb",
|
|
17606
17617
|
phase[sessionPhase(current$2?.state)]
|
|
17607
|
-
])}></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", "
|
|
17618
|
+
])}></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", "_e5"])}>`);
|
|
17608
17619
|
_for_of(input.sessions, (s) => {
|
|
17609
17620
|
const $scope1_id = _scope_id();
|
|
17610
17621
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17611
|
-
_html(`<div${_attr_class(["
|
|
17622
|
+
_html(`<div${_attr_class(["_e7", { ["_e6"]: s.id === input.sessionId }])}>`);
|
|
17612
17623
|
_if(() => {
|
|
17613
17624
|
if (renamingId === s.id) {
|
|
17614
17625
|
const $scope5_id = _scope_id();
|
|
@@ -17640,7 +17651,7 @@ _template("n", (input) => {
|
|
|
17640
17651
|
agent: activeAgent(s),
|
|
17641
17652
|
size: 14
|
|
17642
17653
|
});
|
|
17643
|
-
_html(`<span${_attr_class("
|
|
17654
|
+
_html(`<span${_attr_class("_e9")}><span${_attr_class("_fa")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17644
17655
|
_if(() => {
|
|
17645
17656
|
if (s.id === input.sessionId) {
|
|
17646
17657
|
const $scope7_id = _scope_id();
|
|
@@ -17652,7 +17663,7 @@ _template("n", (input) => {
|
|
|
17652
17663
|
const $childScope4 = _peek_scope_id();
|
|
17653
17664
|
usage_pcts_default({
|
|
17654
17665
|
agent: plan,
|
|
17655
|
-
class: "
|
|
17666
|
+
class: "_e_"
|
|
17656
17667
|
});
|
|
17657
17668
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
17658
17669
|
return 0;
|
|
@@ -17669,7 +17680,7 @@ _template("n", (input) => {
|
|
|
17669
17680
|
_if(() => {
|
|
17670
17681
|
if (input.onRenameSession) {
|
|
17671
17682
|
const $scope6_id = _scope_id();
|
|
17672
|
-
_html(`<button${_attr_class(["
|
|
17683
|
+
_html(`<button${_attr_class(["_fc", "_fd"])} title="Rename session">`);
|
|
17673
17684
|
icon_edit_default({ size: 12 });
|
|
17674
17685
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
17675
17686
|
_script($scope6_id, "n5");
|
|
@@ -17681,7 +17692,7 @@ _template("n", (input) => {
|
|
|
17681
17692
|
if (input.onCloseSession) {
|
|
17682
17693
|
const $scope3_id = _scope_id();
|
|
17683
17694
|
arm_button_default({
|
|
17684
|
-
class: ["
|
|
17695
|
+
class: ["_fc", "_7"],
|
|
17685
17696
|
title: "Close session",
|
|
17686
17697
|
armedTitle: "Close?",
|
|
17687
17698
|
onFire: _resume(function() {
|
|
@@ -17713,7 +17724,7 @@ _template("n", (input) => {
|
|
|
17713
17724
|
m: $si__input_sessions && $for_content__s_agent__closures
|
|
17714
17725
|
});
|
|
17715
17726
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
17716
|
-
_html(`<div${_attr_class("
|
|
17727
|
+
_html(`<div${_attr_class("_fe")}><span${_attr_class("_ff")}>New session</span><div${_attr_class("_fg")}>`);
|
|
17717
17728
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
17718
17729
|
const $scope4_id = _scope_id();
|
|
17719
17730
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -26882,4 +26893,4 @@ server.listen(port, () => {
|
|
|
26882
26893
|
//#endregion
|
|
26883
26894
|
export {};
|
|
26884
26895
|
|
|
26885
|
-
;var __MARKO_MANIFEST__={"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-
|
|
26896
|
+
;var __MARKO_MANIFEST__={"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-Djyi23Q9.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Djyi23Q9.css\"",">",2,"stylesheet#/assets/app-page-DD1F0TTl.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DD1F0TTl.css\"",">"],"defer":[2,"/assets/w._-BwcyiB1L.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BwcyiB1L.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/_bLcqPuzt.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_bLcqPuzt.js\"",">",2,"modulepreload#/assets/_B0OVfJVa.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_B0OVfJVa.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-Djyi23Q9.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Djyi23Q9.css\"",">",2,"stylesheet#/assets/app-page-DD1F0TTl.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DD1F0TTl.css\"",">"],"defer":[2,"/assets/new-BwcyiB1L.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-BwcyiB1L.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/_bLcqPuzt.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_bLcqPuzt.js\"",">",2,"modulepreload#/assets/_B0OVfJVa.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_B0OVfJVa.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-Djyi23Q9.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Djyi23Q9.css\"",">",2,"stylesheet#/assets/app-page-DD1F0TTl.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DD1F0TTl.css\"",">"],"defer":[2,"/assets/settings-BwcyiB1L.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-BwcyiB1L.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/_bLcqPuzt.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_bLcqPuzt.js\"",">",2,"modulepreload#/assets/_B0OVfJVa.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_B0OVfJVa.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-Djyi23Q9.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Djyi23Q9.css\"",">",2,"stylesheet#/assets/app-page-DD1F0TTl.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DD1F0TTl.css\"",">"],"defer":[2,"/assets/w._-gFT3A4in.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-gFT3A4in.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/_bLcqPuzt.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_bLcqPuzt.js\"",">",2,"modulepreload#/assets/_B0OVfJVa.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_B0OVfJVa.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-Djyi23Q9.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Djyi23Q9.css\"",">",2,"stylesheet#/assets/app-page-DD1F0TTl.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DD1F0TTl.css\"",">"],"defer":[2,"/assets/w-BwcyiB1L.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-BwcyiB1L.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/_bLcqPuzt.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_bLcqPuzt.js\"",">",2,"modulepreload#/assets/_B0OVfJVa.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_B0OVfJVa.js\"",">"]},"_A":{"block":[2,"stylesheet#/assets/review-view-3q-u988K.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/review-view-3q-u988K.css\"",">",2,"stylesheet#/assets/icon-arrow-down-Djyi23Q9.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-Djyi23Q9.css\"",">"],"defer":[2,"/assets/review-view-CiWwWm6V.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/review-view-CiWwWm6V.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">"]}};
|