@dylanpiercey/work 0.0.166 → 0.0.168
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 +991 -952
- package/dist/public/assets/_B3aKAChT.js +1 -0
- package/dist/public/assets/_B5pYS8AP.js +1 -0
- package/dist/public/assets/_BIZs-MXG.js +1 -0
- package/dist/public/assets/_BNdtgPXM.js +1 -0
- package/dist/public/assets/_BUJdNfZC.js +1 -0
- package/dist/public/assets/_BgkPks7x.js +1 -0
- package/dist/public/assets/_BkGrAvYH.js +1 -0
- package/dist/public/assets/_CK9d3VRb.js +1 -0
- package/dist/public/assets/_CPiwLVs7.js +1 -0
- package/dist/public/assets/_CzTOSXAp.js +1 -0
- package/dist/public/assets/_D22Kwfne.js +1 -0
- package/dist/public/assets/{_AUERBn_y.js → _D6Wszvs1.js} +6 -6
- package/dist/public/assets/_D6Wszvs1.js.br +0 -0
- package/dist/public/assets/_DHAoUCPL.js +1 -0
- package/dist/public/assets/_DI17TM3q.js +1 -0
- package/dist/public/assets/_DgRjzNZx.js +1 -0
- package/dist/public/assets/_DqC2_F7z.js +1 -0
- package/dist/public/assets/{_BjbKCfD1.js → _Dr6PwR9h.js} +1 -1
- package/dist/public/assets/_Dr6PwR9h.js.br +0 -0
- package/dist/public/assets/_DwV7Flj6.js +1 -0
- package/dist/public/assets/_HFV9DpDD.js +1 -0
- package/dist/public/assets/_UsogGx1K.js +1 -0
- package/dist/public/assets/_V0Yazj2j.js +1 -0
- package/dist/public/assets/_afAqkDtE.js +1 -0
- package/dist/public/assets/_m6B8EqQJ.js +83 -0
- package/dist/public/assets/_m6B8EqQJ.js.br +0 -0
- package/dist/public/assets/_onT_YqQM.js +1 -0
- package/dist/public/assets/app-page-CE13Vv1z.css +1 -0
- package/dist/public/assets/app-page-CE13Vv1z.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-B--iIAi7.css → icon-arrow-down-D-UU3b4l.css} +1 -1
- package/dist/public/assets/icon-arrow-down-D-UU3b4l.css.br +0 -0
- package/dist/public/assets/new-BE32Bvf7.js +1 -0
- package/dist/public/assets/review-view-D2rU40po.css +1 -0
- package/dist/public/assets/review-view-D2rU40po.css.br +0 -0
- package/dist/public/assets/review-view-DKK8Dhx3.js +2 -0
- package/dist/public/assets/settings-BE32Bvf7.js +1 -0
- package/dist/public/assets/w-BE32Bvf7.js +1 -0
- package/dist/public/assets/w._-BE32Bvf7.js +1 -0
- package/dist/public/assets/w._-D42QLstp.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_AC-aJ3zZ.js +0 -1
- package/dist/public/assets/_AUERBn_y.js.br +0 -0
- package/dist/public/assets/_B903V3OG.js +0 -1
- package/dist/public/assets/_BDghQc9n.js +0 -1
- package/dist/public/assets/_BGiosTCR.js +0 -1
- package/dist/public/assets/_BjbKCfD1.js.br +0 -0
- package/dist/public/assets/_BprsSw3O.js +0 -83
- package/dist/public/assets/_BprsSw3O.js.br +0 -0
- package/dist/public/assets/_By3QD65A.js +0 -1
- package/dist/public/assets/_C08SC99R.js +0 -1
- package/dist/public/assets/_CH5nkz-h.js +0 -1
- package/dist/public/assets/_CHokMRPd.js +0 -1
- package/dist/public/assets/_CpOoerdw.js +0 -1
- package/dist/public/assets/_CxZsBFtJ.js +0 -1
- package/dist/public/assets/_D3lsnVSb.js +0 -1
- package/dist/public/assets/_D_Bppk-n.js +0 -1
- package/dist/public/assets/_D_ez64OY.js +0 -1
- package/dist/public/assets/_DlYN3-iL.js +0 -1
- package/dist/public/assets/_G1C8Y-eo.js +0 -1
- package/dist/public/assets/_HC3yU-DB.js +0 -1
- package/dist/public/assets/_JG1N4OU2.js +0 -1
- package/dist/public/assets/_Pob-NvA4.js +0 -1
- package/dist/public/assets/_UxZlwNAI.js +0 -1
- package/dist/public/assets/_W89snyDq.js +0 -1
- package/dist/public/assets/_q5DUuHQJ.js +0 -1
- package/dist/public/assets/app-page-C9AHaeQw.css +0 -1
- package/dist/public/assets/app-page-C9AHaeQw.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-B--iIAi7.css.br +0 -0
- package/dist/public/assets/new-Bl_QYIOI.js +0 -1
- package/dist/public/assets/review-view-BS-qwjda.js +0 -2
- package/dist/public/assets/review-view-CZWrBoMi.css +0 -1
- package/dist/public/assets/review-view-CZWrBoMi.css.br +0 -0
- package/dist/public/assets/settings-Bl_QYIOI.js +0 -1
- package/dist/public/assets/w-Bl_QYIOI.js +0 -1
- package/dist/public/assets/w._-BWkVXJ8U.js +0 -1
- package/dist/public/assets/w._-Bl_QYIOI.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -7289,18 +7289,18 @@ function applyInstance(inst) {
|
|
|
7289
7289
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7290
7290
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7291
7291
|
}
|
|
7292
|
-
var agentRow = "
|
|
7293
|
-
var toolGrid = "
|
|
7294
|
-
var toolRow = "
|
|
7295
|
-
var themeSeg = "
|
|
7296
|
-
var checkList = "
|
|
7297
|
-
var list$2 = "
|
|
7298
|
-
var flatCardRow = "
|
|
7299
|
-
var pop$1 = "
|
|
7300
|
-
var spinner = "
|
|
7301
|
-
var busy = "
|
|
7302
|
-
var pop = "
|
|
7303
|
-
var sectionCount$1 = "
|
|
7292
|
+
var agentRow = "_cT _ct";
|
|
7293
|
+
var toolGrid = "_c1 _cD";
|
|
7294
|
+
var toolRow = "_c2 _cE";
|
|
7295
|
+
var themeSeg = "_do _bd";
|
|
7296
|
+
var checkList = "_dU _cg";
|
|
7297
|
+
var list$2 = "_cF _ci _cs _cD";
|
|
7298
|
+
var flatCardRow = "_cG _cE";
|
|
7299
|
+
var pop$1 = "_cO _9";
|
|
7300
|
+
var spinner = "_cR _1 _G";
|
|
7301
|
+
var busy = "_d1 _d0";
|
|
7302
|
+
var pop = "_d3 _9";
|
|
7303
|
+
var sectionCount$1 = "_cf _N _O";
|
|
7304
7304
|
//#endregion
|
|
7305
7305
|
//#region src/tags/icons/icon-refresh.marko
|
|
7306
7306
|
var icon_refresh_default = _template("nb", (input) => {
|
|
@@ -7340,18 +7340,18 @@ var icon_back_default = _template("U", (input) => {
|
|
|
7340
7340
|
var page_head_default = _template("t", (input) => {
|
|
7341
7341
|
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);
|
|
7342
7342
|
const $scope0_id = _scope_id();
|
|
7343
|
-
_html(`<header${_attr_class("
|
|
7343
|
+
_html(`<header${_attr_class("_d9")}>`);
|
|
7344
7344
|
_if(() => {
|
|
7345
7345
|
if (input.backHref) {
|
|
7346
7346
|
const $scope1_id = _scope_id();
|
|
7347
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7347
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_eF"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7348
7348
|
icon_back_default({ size: 14 });
|
|
7349
7349
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7350
7350
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7351
7351
|
return 0;
|
|
7352
7352
|
} else if (input.onBack) {
|
|
7353
7353
|
const $scope2_id = _scope_id();
|
|
7354
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7354
|
+
_html(`<button${_attr_class([iconBtnRow, "_eF"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7355
7355
|
icon_back_default({ size: 14 });
|
|
7356
7356
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7357
7357
|
_script($scope2_id, "t0");
|
|
@@ -7359,11 +7359,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
7359
7359
|
return 1;
|
|
7360
7360
|
}
|
|
7361
7361
|
}, $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);
|
|
7362
|
-
_html(`<div${_attr_class("
|
|
7362
|
+
_html(`<div${_attr_class("_ea")}><h1${_attr("id", input.titleId)}${_attr_class("_d_")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7363
7363
|
_if(() => {
|
|
7364
7364
|
if (input.meta) {
|
|
7365
7365
|
const $scope3_id = _scope_id();
|
|
7366
|
-
_html(`<p${_attr_class("
|
|
7366
|
+
_html(`<p${_attr_class("_eb")}>`);
|
|
7367
7367
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7368
7368
|
_html("</p>");
|
|
7369
7369
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7374,7 +7374,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
7374
7374
|
_if(() => {
|
|
7375
7375
|
if (input.actions) {
|
|
7376
7376
|
const $scope4_id = _scope_id();
|
|
7377
|
-
_html(`<div${_attr_class("
|
|
7377
|
+
_html(`<div${_attr_class("_ec")}>`);
|
|
7378
7378
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7379
7379
|
_html("</div>");
|
|
7380
7380
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7442,7 +7442,7 @@ var icon_agent_default = _template("O", (input) => {
|
|
|
7442
7442
|
n: $badge__closures
|
|
7443
7443
|
});
|
|
7444
7444
|
});
|
|
7445
|
-
var usageNote = "
|
|
7445
|
+
var usageNote = "_hn _W";
|
|
7446
7446
|
//#endregion
|
|
7447
7447
|
//#region src/tags/icons/icon-warning.marko
|
|
7448
7448
|
var icon_warning_default = _template("vb", (input) => {
|
|
@@ -7472,11 +7472,11 @@ var usage_meters_default = _template("K", (input) => {
|
|
|
7472
7472
|
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);
|
|
7473
7473
|
const $scope0_id = _scope_id();
|
|
7474
7474
|
const agent = input.agent;
|
|
7475
|
-
_html(`<div${_attr_class(["
|
|
7475
|
+
_html(`<div${_attr_class(["_hh", { ["_hi"]: input.hideName }])}><div${_attr_class("_hj")}>`);
|
|
7476
7476
|
_if(() => {
|
|
7477
7477
|
if (!input.hideName) {
|
|
7478
7478
|
const $scope1_id = _scope_id();
|
|
7479
|
-
_html(`<strong${_attr_class("
|
|
7479
|
+
_html(`<strong${_attr_class("_hC")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7480
7480
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7481
7481
|
return 0;
|
|
7482
7482
|
}
|
|
@@ -7484,7 +7484,7 @@ var usage_meters_default = _template("K", (input) => {
|
|
|
7484
7484
|
_if(() => {
|
|
7485
7485
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7486
7486
|
const $scope2_id = _scope_id();
|
|
7487
|
-
_html(`<span${_attr_class("
|
|
7487
|
+
_html(`<span${_attr_class("_hk")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7488
7488
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7489
7489
|
return 0;
|
|
7490
7490
|
}
|
|
@@ -7492,21 +7492,21 @@ var usage_meters_default = _template("K", (input) => {
|
|
|
7492
7492
|
_if(() => {
|
|
7493
7493
|
if (agent.stale_seconds != null) {
|
|
7494
7494
|
const $scope3_id = _scope_id();
|
|
7495
|
-
_html(`<span${_attr_class("
|
|
7495
|
+
_html(`<span${_attr_class("_hl")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7496
7496
|
icon_warning_default({ size: 12 });
|
|
7497
7497
|
_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)}`);
|
|
7498
7498
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7499
7499
|
return 0;
|
|
7500
7500
|
}
|
|
7501
7501
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7502
|
-
_html(`</div><div${_attr_class(["
|
|
7502
|
+
_html(`</div><div${_attr_class(["_hm", { ["_hD"]: agent.stale_seconds != null }])}>`);
|
|
7503
7503
|
_for_of(agent.windows || [], (win) => {
|
|
7504
7504
|
const $scope4_id = _scope_id();
|
|
7505
7505
|
const pct = pctText(win.used_percent);
|
|
7506
7506
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7507
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7508
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7509
|
-
_html(`<div${_attr_class("
|
|
7507
|
+
const fillClass = win.used_percent >= 90 ? "_hv" : win.used_percent >= 70 ? "_hu" : win.used_percent >= 40 ? "_ht" : "_hs";
|
|
7508
|
+
const pctClass = win.used_percent >= 90 ? "_hA" : win.used_percent >= 70 ? "_hz" : win.used_percent >= 40 ? "_hy" : "_hx";
|
|
7509
|
+
_html(`<div${_attr_class("_ho")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_hp")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_hq")}><span${_attr_class(["_hr", 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(["_hw", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hB")}>`);
|
|
7510
7510
|
_if(() => {
|
|
7511
7511
|
if (label) {
|
|
7512
7512
|
const $scope6_id = _scope_id();
|
|
@@ -7605,10 +7605,10 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7605
7605
|
}
|
|
7606
7606
|
}, $scope0_id, "a", 1, 1, 1, 0, 1);
|
|
7607
7607
|
_html(`<form${_attr_class([
|
|
7608
|
-
"
|
|
7608
|
+
"_cH",
|
|
7609
7609
|
input$3.class,
|
|
7610
|
-
{ ["
|
|
7611
|
-
])}><label${_attr_class(["_0", "
|
|
7610
|
+
{ ["_cI"]: !open }
|
|
7611
|
+
])}><label${_attr_class(["_0", "_cK"])}>`);
|
|
7612
7612
|
_if(() => {
|
|
7613
7613
|
if (input$3.searching) {
|
|
7614
7614
|
const $scope5_id = _scope_id();
|
|
@@ -7635,7 +7635,7 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7635
7635
|
}, "b0", $scope0_id))}${_attr_class([
|
|
7636
7636
|
"_Y",
|
|
7637
7637
|
"_2",
|
|
7638
|
-
"
|
|
7638
|
+
"_cL"
|
|
7639
7639
|
])} type=text${_attr("placeholder", input$3.placeholder)}${_attr("aria-label", input$3.ariaLabel)} autocomplete=off spellcheck=false>${_el_resume($scope0_id, "e")}</label>`);
|
|
7640
7640
|
_if(() => {
|
|
7641
7641
|
if (input$3.submitLabel) {
|
|
@@ -7643,19 +7643,19 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7643
7643
|
_html(`<button${_attr_class([
|
|
7644
7644
|
btnSm,
|
|
7645
7645
|
"_r",
|
|
7646
|
-
"
|
|
7646
|
+
"_cM"
|
|
7647
7647
|
])} 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")}`);
|
|
7648
7648
|
writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7649
7649
|
return 0;
|
|
7650
7650
|
}
|
|
7651
7651
|
}, $scope0_id, "f", 1, _serialize_guard($scope0_reason, 7), 1, 0, 1);
|
|
7652
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7652
|
+
_html(`<button${_attr_class([iconBtnRow, "_cN"])} type=button${_attr("hidden", !open)} title=Close aria-label=Close${_attr("disabled", input$3.busy)}>`);
|
|
7653
7653
|
icon_xmark_default({ size: 14 });
|
|
7654
7654
|
_html(`</button>${_el_resume($scope0_id, "g")}`);
|
|
7655
7655
|
_if(() => {
|
|
7656
7656
|
if (input$3.content) {
|
|
7657
7657
|
const $scope4_id = _scope_id();
|
|
7658
|
-
_html(`<ul${_attr_class([pop$1, "
|
|
7658
|
+
_html(`<ul${_attr_class([pop$1, "_cP"])}${_attr("hidden", !open || !value.trim())}>`);
|
|
7659
7659
|
_dynamic_tag($scope4_id, "b", input$3.content, {}, 0, 0, $sg__input_content);
|
|
7660
7660
|
_html(`</ul>${_el_resume($scope4_id, "a")}`);
|
|
7661
7661
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7782,14 +7782,14 @@ var sso_auth_default = _template("F", (input) => {
|
|
|
7782
7782
|
localCode = null;
|
|
7783
7783
|
}
|
|
7784
7784
|
}, "F0", $scope0_id);
|
|
7785
|
-
_html(`<div${_attr_class(["
|
|
7785
|
+
_html(`<div${_attr_class(["_g6", input.class])}>`);
|
|
7786
7786
|
_for_of(input.items, (s) => {
|
|
7787
7787
|
const $scope1_id = _scope_id();
|
|
7788
|
-
_html(`<div${_attr_class("
|
|
7788
|
+
_html(`<div${_attr_class("_g7")}><span${_attr_class("_g9")}><span${_attr_class("_g_")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_ha", "_hb"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7789
7789
|
_if(() => {
|
|
7790
7790
|
if (!busy) {
|
|
7791
7791
|
const $scope2_id = _scope_id();
|
|
7792
|
-
_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, "
|
|
7792
|
+
_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, "_hc"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7793
7793
|
_script($scope2_id, "F1");
|
|
7794
7794
|
writeScope($scope2_id, {});
|
|
7795
7795
|
return 0;
|
|
@@ -7804,13 +7804,13 @@ var sso_auth_default = _template("F", (input) => {
|
|
|
7804
7804
|
_if(() => {
|
|
7805
7805
|
if (localBusy && localCode) {
|
|
7806
7806
|
const $scope4_id = _scope_id();
|
|
7807
|
-
_html(`<div${_attr_class(["
|
|
7807
|
+
_html(`<div${_attr_class(["_g7", "_hd"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_he")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_hf")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7808
7808
|
_script($scope4_id, "F2");
|
|
7809
7809
|
writeScope($scope4_id, {});
|
|
7810
7810
|
return 0;
|
|
7811
7811
|
} else if (localBusy) {
|
|
7812
7812
|
const $scope6_id = _scope_id();
|
|
7813
|
-
_html(`<div${_attr_class(["
|
|
7813
|
+
_html(`<div${_attr_class(["_g7", "_hd"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7814
7814
|
writeScope($scope6_id, {});
|
|
7815
7815
|
return 1;
|
|
7816
7816
|
}
|
|
@@ -7818,14 +7818,14 @@ var sso_auth_default = _template("F", (input) => {
|
|
|
7818
7818
|
_if(() => {
|
|
7819
7819
|
if (localError) {
|
|
7820
7820
|
const $scope5_id = _scope_id();
|
|
7821
|
-
_html(`<p${_attr_class(["
|
|
7821
|
+
_html(`<p${_attr_class(["_g7", "_hg"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7822
7822
|
writeScope($scope5_id, {});
|
|
7823
7823
|
return 0;
|
|
7824
7824
|
}
|
|
7825
7825
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7826
7826
|
_for_of(skipped, (s) => {
|
|
7827
7827
|
const $scope3_id = _scope_id();
|
|
7828
|
-
_html(`<div${_attr_class(["
|
|
7828
|
+
_html(`<div${_attr_class(["_g7", "_g8"])}><span${_attr_class("_g9")}><span${_attr_class("_g_")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_ha")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_hc"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7829
7829
|
_script($scope3_id, "F3");
|
|
7830
7830
|
writeScope($scope3_id, {
|
|
7831
7831
|
i: s?.org,
|
|
@@ -7876,7 +7876,7 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7876
7876
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7877
7877
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7878
7878
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7879
|
-
_html(`<li${_attr_class("
|
|
7879
|
+
_html(`<li${_attr_class("_dZ")}>`);
|
|
7880
7880
|
_if(() => {
|
|
7881
7881
|
if (input.busy != null) {
|
|
7882
7882
|
const $scope1_id = _scope_id();
|
|
@@ -7886,20 +7886,20 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7886
7886
|
} else {
|
|
7887
7887
|
const $scope2_id = _scope_id();
|
|
7888
7888
|
const popId = _id();
|
|
7889
|
-
_html(`<button${_attr_class("
|
|
7889
|
+
_html(`<button${_attr_class("_d0")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7890
7890
|
_if(() => {
|
|
7891
7891
|
if (input.hint) {
|
|
7892
7892
|
const $scope3_id = _scope_id();
|
|
7893
|
-
_html(`<span${_attr_class("
|
|
7893
|
+
_html(`<span${_attr_class("_d2")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7894
7894
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7895
7895
|
return 0;
|
|
7896
7896
|
}
|
|
7897
7897
|
}, $scope2_id, "c", $sg__input_hint, $sg__input_hint, $sg__input_hint__OR__input_description__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal__OR__input_tags__OR__input_actions__OR__input_trailing, 0, 1);
|
|
7898
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7898
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_ck", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7899
7899
|
_if(() => {
|
|
7900
7900
|
if (input.description) {
|
|
7901
7901
|
const $scope4_id = _scope_id();
|
|
7902
|
-
_html(`<span${_attr_class("
|
|
7902
|
+
_html(`<span${_attr_class("_cm")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7903
7903
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7904
7904
|
return 0;
|
|
7905
7905
|
}
|
|
@@ -7907,12 +7907,12 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7907
7907
|
_if(() => {
|
|
7908
7908
|
if (input.sourceUrl) {
|
|
7909
7909
|
const $scope5_id = _scope_id();
|
|
7910
|
-
_html(`<a${_attr_class(["
|
|
7910
|
+
_html(`<a${_attr_class(["_cm", "_K"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_text_resume($scope5_id, "b", input.source, $sg__input_source)}</a>${_el_resume($scope5_id, "a", _serialize_guard($scope0_reason, 6))}`);
|
|
7911
7911
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, _subscribe($si__input_sourceUrl && $input_sourceUrl__closures, writeScope($scope5_id, { _: _scope_with_id($scope2_id) })));
|
|
7912
7912
|
return 0;
|
|
7913
7913
|
} else if (input.source) {
|
|
7914
7914
|
const $scope6_id = _scope_id();
|
|
7915
|
-
_html(`<span${_attr_class("
|
|
7915
|
+
_html(`<span${_attr_class("_cm")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7916
7916
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7917
7917
|
_: _scope_with_id($scope2_id),
|
|
7918
7918
|
Cs: $si__input_source && 1
|
|
@@ -7920,7 +7920,7 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7920
7920
|
return 1;
|
|
7921
7921
|
} else if (input.noteLocal) {
|
|
7922
7922
|
const $scope10_id = _scope_id();
|
|
7923
|
-
_html(`<span${_attr_class(["
|
|
7923
|
+
_html(`<span${_attr_class(["_cm", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7924
7924
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7925
7925
|
return 2;
|
|
7926
7926
|
}
|
|
@@ -7928,7 +7928,7 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7928
7928
|
_if(() => {
|
|
7929
7929
|
if (input.tags) {
|
|
7930
7930
|
const $scope7_id = _scope_id();
|
|
7931
|
-
_html(`<span${_attr_class("
|
|
7931
|
+
_html(`<span${_attr_class("_cl")}>`);
|
|
7932
7932
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7933
7933
|
_html("</span>");
|
|
7934
7934
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7938,7 +7938,7 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7938
7938
|
_if(() => {
|
|
7939
7939
|
if (input.actions) {
|
|
7940
7940
|
const $scope8_id = _scope_id();
|
|
7941
|
-
_html(`<div${_attr_class("
|
|
7941
|
+
_html(`<div${_attr_class("_d4")}>`);
|
|
7942
7942
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7943
7943
|
_html("</div>");
|
|
7944
7944
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -8049,7 +8049,7 @@ var icon_moon_default = _template("lb", (input) => {
|
|
|
8049
8049
|
});
|
|
8050
8050
|
//#endregion
|
|
8051
8051
|
//#region src/tags/prompt-dialog.css.ts
|
|
8052
|
-
var promptDlg = "
|
|
8052
|
+
var promptDlg = "_g5 _g1";
|
|
8053
8053
|
//#endregion
|
|
8054
8054
|
//#region src/tags/dialog-close.marko
|
|
8055
8055
|
var dialog_close_default = _template("h", (input) => {
|
|
@@ -8073,7 +8073,7 @@ var modal_view_default = _template("q", (input) => {
|
|
|
8073
8073
|
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;
|
|
8074
8074
|
const dismissable = input.dismissable !== false;
|
|
8075
8075
|
let open = input.open;
|
|
8076
|
-
_html(`<dialog${_attr_class(["
|
|
8076
|
+
_html(`<dialog${_attr_class(["_g0", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
8077
8077
|
...htmlInput,
|
|
8078
8078
|
open: null
|
|
8079
8079
|
}, {
|
|
@@ -8083,20 +8083,20 @@ var modal_view_default = _template("q", (input) => {
|
|
|
8083
8083
|
closedby: 1,
|
|
8084
8084
|
"on-cancel": 1,
|
|
8085
8085
|
"on-close": 1
|
|
8086
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
8086
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_g3")}>`);
|
|
8087
8087
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
8088
8088
|
_html("</div>");
|
|
8089
8089
|
_if(() => {
|
|
8090
8090
|
if (footer) {
|
|
8091
8091
|
const $scope1_id = _scope_id();
|
|
8092
|
-
_html(`<form method=dialog${_attr_class("
|
|
8092
|
+
_html(`<form method=dialog${_attr_class("_g4")}>`);
|
|
8093
8093
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
8094
8094
|
_html("</form>");
|
|
8095
8095
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
8096
8096
|
return 0;
|
|
8097
8097
|
} else if (input.openChange) {
|
|
8098
8098
|
const $scope2_id = _scope_id();
|
|
8099
|
-
_html(`<form method=dialog${_attr_class("
|
|
8099
|
+
_html(`<form method=dialog${_attr_class("_g4")}>`);
|
|
8100
8100
|
dialog_close_default({
|
|
8101
8101
|
class: ["_q", "_r"],
|
|
8102
8102
|
content: _content("q0", () => {
|
|
@@ -8180,7 +8180,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
8180
8180
|
content: _content("u7", () => {
|
|
8181
8181
|
_scope_reason();
|
|
8182
8182
|
const $scope2_id = _scope_id();
|
|
8183
|
-
_html(`<h2${_attr_class("
|
|
8183
|
+
_html(`<h2${_attr_class("_g2")}${_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) => {
|
|
8184
8184
|
value = _new_value;
|
|
8185
8185
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8186
8186
|
_script($scope2_id, "u5");
|
|
@@ -8251,6 +8251,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8251
8251
|
const $skillSearching__closures = /* @__PURE__ */ new Set();
|
|
8252
8252
|
const $skills__closures = /* @__PURE__ */ new Set();
|
|
8253
8253
|
const $skills_available__closures = /* @__PURE__ */ new Set();
|
|
8254
|
+
const $active_size__closures = /* @__PURE__ */ new Set();
|
|
8254
8255
|
const $query__closures = /* @__PURE__ */ new Set();
|
|
8255
8256
|
const $hits__closures = /* @__PURE__ */ new Set();
|
|
8256
8257
|
const $hits_length__closures = /* @__PURE__ */ new Set();
|
|
@@ -8272,6 +8273,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8272
8273
|
let error = null;
|
|
8273
8274
|
let refreshing = false;
|
|
8274
8275
|
let active = /* @__PURE__ */ new Map();
|
|
8276
|
+
let bulk = null;
|
|
8275
8277
|
let authCodes = /* @__PURE__ */ new Map();
|
|
8276
8278
|
let versionPick = null;
|
|
8277
8279
|
let hostInput = "";
|
|
@@ -8601,7 +8603,24 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8601
8603
|
}
|
|
8602
8604
|
}, "A25", $scope0_id);
|
|
8603
8605
|
const runEach = _resume(async (ids, action) => {
|
|
8604
|
-
|
|
8606
|
+
let done = 0;
|
|
8607
|
+
bulk = {
|
|
8608
|
+
action,
|
|
8609
|
+
done,
|
|
8610
|
+
total: ids.length
|
|
8611
|
+
};
|
|
8612
|
+
try {
|
|
8613
|
+
for (const id of ids) {
|
|
8614
|
+
await run(id, action);
|
|
8615
|
+
bulk = {
|
|
8616
|
+
action,
|
|
8617
|
+
done: ++done,
|
|
8618
|
+
total: ids.length
|
|
8619
|
+
};
|
|
8620
|
+
}
|
|
8621
|
+
} finally {
|
|
8622
|
+
bulk = null;
|
|
8623
|
+
}
|
|
8605
8624
|
}, "A26", $scope0_id);
|
|
8606
8625
|
const setPreferred = _resume(async (agent) => {
|
|
8607
8626
|
input.preferredChange?.(agent);
|
|
@@ -8693,6 +8712,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8693
8712
|
const missingInstallable = tools.filter((t) => t.recommended && !t.installed && t.installable);
|
|
8694
8713
|
const missingCount = tools.filter((t) => t.recommended && !t.installed).length;
|
|
8695
8714
|
const outdatedIds = tools.filter(outdated).map((t) => t.id);
|
|
8715
|
+
const activeLine = [...active.values()].find((l) => l) || "";
|
|
8696
8716
|
const families = setup?.agents || [];
|
|
8697
8717
|
const instanceIds = new Set(families.flatMap((f) => f.instances.map((i) => i.id)));
|
|
8698
8718
|
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "A33", $scope0_id);
|
|
@@ -8704,7 +8724,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8704
8724
|
const githubId = _id();
|
|
8705
8725
|
const backupId = _id();
|
|
8706
8726
|
const machineId = _id();
|
|
8707
|
-
_html(`<div${_attr_class("
|
|
8727
|
+
_html(`<div${_attr_class("_d5")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d6")}><div${_attr_class("_d7")}>`);
|
|
8708
8728
|
_set_serialize_reason({
|
|
8709
8729
|
0: _serialize_guard($scope0_reason, 4),
|
|
8710
8730
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8736,7 +8756,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8736
8756
|
_resume_branch($scope12_id);
|
|
8737
8757
|
}, $scope0_id) })
|
|
8738
8758
|
});
|
|
8739
|
-
_html(`<div${_attr_class("
|
|
8759
|
+
_html(`<div${_attr_class("_d8")}>`);
|
|
8740
8760
|
_if(() => {
|
|
8741
8761
|
if (setup && !setup.ready) {
|
|
8742
8762
|
const $scope4_id = _scope_id();
|
|
@@ -8778,55 +8798,55 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8778
8798
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
8779
8799
|
_if(() => {
|
|
8780
8800
|
if (selfUpdatePending || selfUpdating) {
|
|
8781
|
-
const $
|
|
8782
|
-
_html(`<div${_attr_class("
|
|
8801
|
+
const $scope43_id = _scope_id();
|
|
8802
|
+
_html(`<div${_attr_class("_ds")} role=status><div${_attr_class("_dt")}>`);
|
|
8783
8803
|
_if(() => {
|
|
8784
8804
|
if (selfUpdating) {
|
|
8785
|
-
const $
|
|
8786
|
-
_html(`<span${_attr_class("
|
|
8787
|
-
writeScope($
|
|
8805
|
+
const $scope81_id = _scope_id();
|
|
8806
|
+
_html(`<span${_attr_class("_du")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dv")}>The app restarts and reloads when it is done.</span>`);
|
|
8807
|
+
writeScope($scope81_id, {});
|
|
8788
8808
|
return 0;
|
|
8789
8809
|
} else {
|
|
8790
|
-
const $
|
|
8791
|
-
_html(`<span${_attr_class("
|
|
8792
|
-
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($
|
|
8810
|
+
const $scope44_id = _scope_id();
|
|
8811
|
+
_html(`<span${_attr_class("_du")}>Update available</span><span${_attr_class("_dv")}>v${_text_resume($scope44_id, "c", self.version, 2)} → v${_text_resume($scope44_id, "d", self.latest, 2)}</span>`);
|
|
8812
|
+
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope44_id, {})));
|
|
8793
8813
|
return 1;
|
|
8794
8814
|
}
|
|
8795
|
-
}, $
|
|
8815
|
+
}, $scope43_id, "b", 1, 1, 1, "</div>");
|
|
8796
8816
|
_if(() => {
|
|
8797
8817
|
if (!selfUpdating) {
|
|
8798
|
-
const $
|
|
8799
|
-
_html(`<button${_attr_class(["_q", "_r"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($
|
|
8800
|
-
_script($
|
|
8801
|
-
_subscribe($self_latest__closures, writeScope($
|
|
8818
|
+
const $scope45_id = _scope_id();
|
|
8819
|
+
_html(`<button${_attr_class(["_q", "_r"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope45_id, "a")}`);
|
|
8820
|
+
_script($scope45_id, "A55");
|
|
8821
|
+
_subscribe($self_latest__closures, writeScope($scope45_id, { Chj: 1 }));
|
|
8802
8822
|
return 0;
|
|
8803
8823
|
}
|
|
8804
|
-
}, $
|
|
8824
|
+
}, $scope43_id, "c", 1, 1, 1, 0, 1);
|
|
8805
8825
|
_html("</div>");
|
|
8806
|
-
writeScope($
|
|
8826
|
+
writeScope($scope43_id, {});
|
|
8807
8827
|
return 0;
|
|
8808
8828
|
}
|
|
8809
8829
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
8810
8830
|
const EnabledSwitch = { content: _content("A56", ({ id, enabled }) => {
|
|
8811
|
-
const $
|
|
8831
|
+
const $scope80_id = _scope_id();
|
|
8812
8832
|
_scope_reason();
|
|
8813
|
-
_html(`<button${_attr_class("_H")} role=switch aria-checked=${enabled ? "true" : "false"} title=${enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}></button>${_el_resume($
|
|
8814
|
-
_script($
|
|
8815
|
-
writeScope($
|
|
8833
|
+
_html(`<button${_attr_class("_H")} role=switch aria-checked=${enabled ? "true" : "false"} title=${enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}></button>${_el_resume($scope80_id, "a")}`);
|
|
8834
|
+
_script($scope80_id, "A57");
|
|
8835
|
+
writeScope($scope80_id, {
|
|
8816
8836
|
d: id,
|
|
8817
8837
|
e: enabled,
|
|
8818
8838
|
_: _scope_with_id($scope0_id)
|
|
8819
8839
|
});
|
|
8820
8840
|
}, $scope0_id) };
|
|
8821
|
-
_html(`<section${_attr_class("
|
|
8841
|
+
_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("_cU")}><span${_attr_class("_W")}>Default</span><span${_attr_class("_o")}>`);
|
|
8822
8842
|
_attr_select_value($scope0_id, "p", input.preferred, _resume(function(v) {
|
|
8823
8843
|
setPreferred(v);
|
|
8824
8844
|
}, "A0", $scope0_id), () => {
|
|
8825
|
-
_html(`<select${_attr_class(["_p", "
|
|
8845
|
+
_html(`<select${_attr_class(["_p", "_cV"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8826
8846
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
8827
|
-
const $
|
|
8828
|
-
_html(`<option${_attr_option_value(id)}>${_text_resume($
|
|
8829
|
-
_serialize_if($scope0_reason, 5) && writeScope($
|
|
8847
|
+
const $scope83_id = _scope_id();
|
|
8848
|
+
_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)}`);
|
|
8849
|
+
_serialize_if($scope0_reason, 5) && writeScope($scope83_id, {});
|
|
8830
8850
|
}, (a) => a, $scope0_id, "p", $sg__input_agents, 1, 1, "</select>", 1);
|
|
8831
8851
|
});
|
|
8832
8852
|
_html(`</span></label></div><ul${_attr_class(list$2)}>`);
|
|
@@ -8837,19 +8857,19 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8837
8857
|
const rows = lone ? [] : a.instances;
|
|
8838
8858
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8839
8859
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8840
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8860
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_cW", { ["_cY"]: lone && !lone.enabled }])}>`);
|
|
8841
8861
|
_set_serialize_reason(12);
|
|
8842
8862
|
const $childScope3 = _peek_scope_id();
|
|
8843
8863
|
icon_agent_default({
|
|
8844
8864
|
agent: a.id,
|
|
8845
8865
|
size: 18
|
|
8846
8866
|
});
|
|
8847
|
-
_html(`<div${_attr_class("
|
|
8867
|
+
_html(`<div${_attr_class("_cj")}><span${_attr_class("_cl")}><span${_attr_class("_ck")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8848
8868
|
_if(() => {
|
|
8849
8869
|
if (lone && input.preferred === lone.id) {
|
|
8850
|
-
const $
|
|
8870
|
+
const $scope85_id = _scope_id();
|
|
8851
8871
|
_html(`<span${_attr_class(["_N", tone.accent])}>default</span>`);
|
|
8852
|
-
writeScope($
|
|
8872
|
+
writeScope($scope85_id, {});
|
|
8853
8873
|
return 0;
|
|
8854
8874
|
}
|
|
8855
8875
|
}, $scope1_id, "h", 1, 1, 1, 0, 1);
|
|
@@ -8857,35 +8877,35 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8857
8877
|
_if(() => {
|
|
8858
8878
|
if (active.has(a.id)) {
|
|
8859
8879
|
const $scope13_id = _scope_id();
|
|
8860
|
-
_html(`<span${_attr_class("
|
|
8880
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8861
8881
|
_subscribe($active__closures, writeScope($scope13_id, {}));
|
|
8862
8882
|
return 0;
|
|
8863
8883
|
} else if (!a.installed) {
|
|
8864
|
-
const $
|
|
8865
|
-
_html(`<span${_attr_class("
|
|
8866
|
-
writeScope($
|
|
8884
|
+
const $scope86_id = _scope_id();
|
|
8885
|
+
_html(`<span${_attr_class("_cm")}>Not installed</span>`);
|
|
8886
|
+
writeScope($scope86_id, {});
|
|
8867
8887
|
return 1;
|
|
8868
8888
|
}
|
|
8869
8889
|
}, $scope1_id, "i", 1, 1, 1, 0, 1);
|
|
8870
8890
|
_html("</div>");
|
|
8871
8891
|
_if(() => {
|
|
8872
8892
|
if (!a.installed && !active.has(a.id)) {
|
|
8873
|
-
const $
|
|
8874
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
8875
|
-
_script($
|
|
8876
|
-
writeScope($
|
|
8893
|
+
const $scope53_id = _scope_id();
|
|
8894
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope53_id, "a")}`);
|
|
8895
|
+
_script($scope53_id, "A58");
|
|
8896
|
+
writeScope($scope53_id, {});
|
|
8877
8897
|
return 0;
|
|
8878
8898
|
}
|
|
8879
8899
|
}, $scope1_id, "j", 1, 1, 1, 0, 1);
|
|
8880
8900
|
_if(() => {
|
|
8881
8901
|
if (lone) {
|
|
8882
|
-
const $
|
|
8902
|
+
const $scope82_id = _scope_id();
|
|
8883
8903
|
const $childScope4 = _peek_scope_id();
|
|
8884
8904
|
EnabledSwitch.content({
|
|
8885
8905
|
id: lone.id,
|
|
8886
8906
|
enabled: lone.enabled
|
|
8887
8907
|
});
|
|
8888
|
-
writeScope($
|
|
8908
|
+
writeScope($scope82_id, { a: _existing_scope($childScope4) });
|
|
8889
8909
|
return 0;
|
|
8890
8910
|
}
|
|
8891
8911
|
}, $scope1_id, "k");
|
|
@@ -8893,20 +8913,20 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8893
8913
|
_if(() => {
|
|
8894
8914
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8895
8915
|
const $scope2_id = _scope_id();
|
|
8896
|
-
_html(`<ul${_attr_class(["
|
|
8916
|
+
_html(`<ul${_attr_class(["_c0", { ["_cY"]: lone && !lone.enabled }])}>`);
|
|
8897
8917
|
_for_of(rows, (inst) => {
|
|
8898
8918
|
const $scope3_id = _scope_id();
|
|
8899
8919
|
const accounts = accountsFor(inst.id);
|
|
8900
|
-
_html(`<li${_attr_class(["
|
|
8920
|
+
_html(`<li${_attr_class(["_cX", { ["_cY"]: !inst.enabled }])}><div${_attr_class("_cW")}>`);
|
|
8901
8921
|
_set_serialize_reason(12);
|
|
8902
8922
|
const $childScope5 = _peek_scope_id();
|
|
8903
8923
|
icon_agent_default({ agent: inst.id });
|
|
8904
|
-
_html(`<span${_attr_class(["
|
|
8924
|
+
_html(`<span${_attr_class(["_cZ", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8905
8925
|
_if(() => {
|
|
8906
8926
|
if (input.preferred === inst.id) {
|
|
8907
|
-
const $
|
|
8927
|
+
const $scope87_id = _scope_id();
|
|
8908
8928
|
_html(`<span${_attr_class(["_N", tone.accent])}>default</span>`);
|
|
8909
|
-
writeScope($
|
|
8929
|
+
writeScope($scope87_id, {});
|
|
8910
8930
|
return 0;
|
|
8911
8931
|
}
|
|
8912
8932
|
}, $scope3_id, "f", 1, 1, 1, 0, 1);
|
|
@@ -8918,14 +8938,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8918
8938
|
});
|
|
8919
8939
|
_html("</div>");
|
|
8920
8940
|
_for_of(accounts, (u) => {
|
|
8921
|
-
const $
|
|
8941
|
+
const $scope88_id = _scope_id();
|
|
8922
8942
|
_set_serialize_reason(6);
|
|
8923
8943
|
const $childScope7 = _peek_scope_id();
|
|
8924
8944
|
usage_meters_default({
|
|
8925
8945
|
agent: u,
|
|
8926
8946
|
hideName: true
|
|
8927
8947
|
});
|
|
8928
|
-
writeScope($
|
|
8948
|
+
writeScope($scope88_id, { a: _existing_scope($childScope7) });
|
|
8929
8949
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "i", 1, 1, 1, 0, 1);
|
|
8930
8950
|
_html(`</li>${_el_resume($scope3_id, "a")}`);
|
|
8931
8951
|
_subscribe($accountsFor2__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {
|
|
@@ -8935,7 +8955,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8935
8955
|
})));
|
|
8936
8956
|
}, "id", $scope2_id, "b", 1, 1, 1, 0, 1);
|
|
8937
8957
|
_for_of([...loneAccounts, ...extraAccounts], (u) => {
|
|
8938
|
-
const $
|
|
8958
|
+
const $scope84_id = _scope_id();
|
|
8939
8959
|
_html("<li>");
|
|
8940
8960
|
_set_serialize_reason(1);
|
|
8941
8961
|
const $childScope8 = _peek_scope_id();
|
|
@@ -8944,7 +8964,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8944
8964
|
hideName: loneAccounts.includes(u)
|
|
8945
8965
|
});
|
|
8946
8966
|
_html("</li>");
|
|
8947
|
-
_subscribe($for_content__loneAccounts__closures, writeScope($
|
|
8967
|
+
_subscribe($for_content__loneAccounts__closures, writeScope($scope84_id, { a: _existing_scope($childScope8) }));
|
|
8948
8968
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "c", 1, 1, 1, 0, 1);
|
|
8949
8969
|
_html(`</ul>${_el_resume($scope2_id, "a")}`);
|
|
8950
8970
|
writeScope($scope2_id, {});
|
|
@@ -8968,44 +8988,44 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8968
8988
|
});
|
|
8969
8989
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8970
8990
|
_for_of(otherUsage, (u) => {
|
|
8971
|
-
const $
|
|
8991
|
+
const $scope89_id = _scope_id();
|
|
8972
8992
|
_html(`<li${_attr_class(agentRow)}>`);
|
|
8973
8993
|
_set_serialize_reason(6);
|
|
8974
8994
|
const $childScope9 = _peek_scope_id();
|
|
8975
8995
|
usage_meters_default({ agent: u });
|
|
8976
8996
|
_html("</li>");
|
|
8977
|
-
writeScope($
|
|
8997
|
+
writeScope($scope89_id, { b: _existing_scope($childScope9) });
|
|
8978
8998
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
8979
8999
|
_html("</ul>");
|
|
8980
9000
|
_if(() => {
|
|
8981
9001
|
if (!usage && families.length) {
|
|
8982
|
-
const $
|
|
8983
|
-
_html(`<p${_attr_class("
|
|
8984
|
-
writeScope($
|
|
9002
|
+
const $scope90_id = _scope_id();
|
|
9003
|
+
_html(`<p${_attr_class("_co")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
9004
|
+
writeScope($scope90_id, {});
|
|
8985
9005
|
return 0;
|
|
8986
9006
|
} else if (usage?.error) {
|
|
8987
9007
|
const $scope9_id = _scope_id();
|
|
8988
|
-
_html(`<p${_attr_class("
|
|
9008
|
+
_html(`<p${_attr_class("_co")}>${_text_resume($scope9_id, "b", usage.error)}</p>`);
|
|
8989
9009
|
writeScope($scope9_id, {});
|
|
8990
9010
|
return 1;
|
|
8991
9011
|
}
|
|
8992
9012
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
8993
|
-
_html(`</section></div><div${_attr_class("
|
|
9013
|
+
_html(`</section></div><div${_attr_class("_d8")}><section${_attr_class("_cd")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_ce")}><h2${_attr("id", githubId)}${_attr_class("_cr")}>GitHub</h2>`);
|
|
8994
9014
|
_if(() => {
|
|
8995
9015
|
if (setup) {
|
|
8996
|
-
const $
|
|
9016
|
+
const $scope41_id = _scope_id();
|
|
8997
9017
|
_set_serialize_reason(44);
|
|
8998
9018
|
const $childScope10 = _peek_scope_id();
|
|
8999
9019
|
add_field_default({
|
|
9000
|
-
class: "
|
|
9020
|
+
class: "_c8",
|
|
9001
9021
|
open: addingHost,
|
|
9002
9022
|
openChange: _resume((_new_addingHost) => {
|
|
9003
9023
|
addingHost = _new_addingHost;
|
|
9004
|
-
}, "A37", $
|
|
9024
|
+
}, "A37", $scope41_id),
|
|
9005
9025
|
value: hostInput,
|
|
9006
9026
|
valueChange: _resume((_new_hostInput) => {
|
|
9007
9027
|
hostInput = _new_hostInput;
|
|
9008
|
-
}, "A38", $
|
|
9028
|
+
}, "A38", $scope41_id),
|
|
9009
9029
|
placeholder: "github.example.com",
|
|
9010
9030
|
ariaLabel: "GitHub Enterprise host",
|
|
9011
9031
|
addTitle: "Add Enterprise host",
|
|
@@ -9013,7 +9033,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9013
9033
|
busy: hostBusy,
|
|
9014
9034
|
onSubmit: _resume(function() {
|
|
9015
9035
|
changeHost(hostInput.trim().toLowerCase(), false);
|
|
9016
|
-
}, "A39", $
|
|
9036
|
+
}, "A39", $scope41_id),
|
|
9017
9037
|
icon: attrTag({ content: _content("A59", () => {
|
|
9018
9038
|
_scope_reason();
|
|
9019
9039
|
_scope_id();
|
|
@@ -9021,30 +9041,30 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9021
9041
|
size: 14,
|
|
9022
9042
|
class: "_1"
|
|
9023
9043
|
});
|
|
9024
|
-
}, $
|
|
9044
|
+
}, $scope41_id) })
|
|
9025
9045
|
});
|
|
9026
|
-
writeScope($
|
|
9046
|
+
writeScope($scope41_id, { a: _existing_scope($childScope10) });
|
|
9027
9047
|
return 0;
|
|
9028
9048
|
}
|
|
9029
9049
|
}, $scope0_id, "y");
|
|
9030
|
-
_html(`</div><div${_attr_class(["
|
|
9050
|
+
_html(`</div><div${_attr_class(["_ci", "_cs"])}>`);
|
|
9031
9051
|
_for_of(setup?.github || [], (h) => {
|
|
9032
9052
|
const $scope7_id = _scope_id();
|
|
9033
9053
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
9034
9054
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
9035
9055
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
9036
9056
|
const busy = active.has(h.host);
|
|
9037
|
-
_html(`<div${_attr_class(["
|
|
9057
|
+
_html(`<div${_attr_class(["_ct", "_c9"])}><div${_attr_class("_c_")}>`);
|
|
9038
9058
|
icon_github_default({
|
|
9039
9059
|
size: 18,
|
|
9040
|
-
class: "
|
|
9060
|
+
class: "_da"
|
|
9041
9061
|
});
|
|
9042
|
-
_html(`<div${_attr_class("
|
|
9062
|
+
_html(`<div${_attr_class("_cj")}><span${_attr_class("_cl")}><span${_attr_class("_ck")}>${_text_resume($scope7_id, "g", h.host)}</span>`);
|
|
9043
9063
|
_if(() => {
|
|
9044
9064
|
if (h.isEnterprise) {
|
|
9045
|
-
const $
|
|
9065
|
+
const $scope94_id = _scope_id();
|
|
9046
9066
|
_html(`<span${_attr_class("_N")}>Enterprise</span>`);
|
|
9047
|
-
writeScope($
|
|
9067
|
+
writeScope($scope94_id, {});
|
|
9048
9068
|
return 0;
|
|
9049
9069
|
}
|
|
9050
9070
|
}, $scope7_id, "h", 1, 1, 1, 0, 1);
|
|
@@ -9052,50 +9072,50 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9052
9072
|
_if(() => {
|
|
9053
9073
|
if (busy) {
|
|
9054
9074
|
const $scope14_id = _scope_id();
|
|
9055
|
-
_html(`<span${_attr_class(["
|
|
9056
|
-
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, {
|
|
9075
|
+
_html(`<span${_attr_class(["_cm", "_db"])}><span${_attr_class("_G")}></span>${_text_resume($scope14_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
9076
|
+
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Ch1: 1 })));
|
|
9057
9077
|
return 0;
|
|
9058
9078
|
} else if (h.authed) {
|
|
9059
|
-
const $
|
|
9060
|
-
_html(`<span${_attr_class(["
|
|
9079
|
+
const $scope92_id = _scope_id();
|
|
9080
|
+
_html(`<span${_attr_class(["_cm", "_db"])}>`);
|
|
9061
9081
|
icon_check_default({
|
|
9062
9082
|
size: 12,
|
|
9063
|
-
class: "
|
|
9083
|
+
class: "_dc"
|
|
9064
9084
|
});
|
|
9065
|
-
_html(` Signed in as <strong${_attr_class("
|
|
9066
|
-
writeScope($
|
|
9085
|
+
_html(` Signed in as <strong${_attr_class("_de")}>${_text_resume($scope92_id, "d", h.user || "?")}</strong></span>`);
|
|
9086
|
+
writeScope($scope92_id, {});
|
|
9067
9087
|
return 1;
|
|
9068
9088
|
} else if (h.error) {
|
|
9069
|
-
const $
|
|
9089
|
+
const $scope93_id = _scope_id();
|
|
9070
9090
|
_html(`<span${_attr_class([
|
|
9071
|
-
"
|
|
9072
|
-
"
|
|
9073
|
-
"
|
|
9091
|
+
"_cm",
|
|
9092
|
+
"_db",
|
|
9093
|
+
"_dd"
|
|
9074
9094
|
])}>`);
|
|
9075
9095
|
icon_warning_default({ size: 12 });
|
|
9076
|
-
_html(`${_text_resume($
|
|
9077
|
-
writeScope($
|
|
9096
|
+
_html(`${_text_resume($scope93_id, "c", h.error)}</span>`);
|
|
9097
|
+
writeScope($scope93_id, {});
|
|
9078
9098
|
return 2;
|
|
9079
9099
|
} else {
|
|
9080
|
-
const $
|
|
9081
|
-
_html(`<span${_attr_class(["
|
|
9082
|
-
writeScope($
|
|
9100
|
+
const $scope95_id = _scope_id();
|
|
9101
|
+
_html(`<span${_attr_class(["_cm", "_db"])}>Not signed in</span>`);
|
|
9102
|
+
writeScope($scope95_id, {});
|
|
9083
9103
|
return 3;
|
|
9084
9104
|
}
|
|
9085
9105
|
}, $scope7_id, "i", 1, 1, 1, 0, 1);
|
|
9086
9106
|
_html("</div>");
|
|
9087
9107
|
_if(() => {
|
|
9088
9108
|
if (!busy) {
|
|
9089
|
-
const $
|
|
9109
|
+
const $scope54_id = _scope_id();
|
|
9090
9110
|
_if(() => {
|
|
9091
9111
|
if (!h.authed) {
|
|
9092
|
-
const $
|
|
9093
|
-
_html(`<button${_attr_class([btnSm, "_r"])}>Sign in</button>${_el_resume($
|
|
9094
|
-
_script($
|
|
9095
|
-
writeScope($
|
|
9112
|
+
const $scope55_id = _scope_id();
|
|
9113
|
+
_html(`<button${_attr_class([btnSm, "_r"])}>Sign in</button>${_el_resume($scope55_id, "a")}`);
|
|
9114
|
+
_script($scope55_id, "A60");
|
|
9115
|
+
writeScope($scope55_id, {});
|
|
9096
9116
|
return 0;
|
|
9097
9117
|
} else {
|
|
9098
|
-
const $
|
|
9118
|
+
const $scope56_id = _scope_id();
|
|
9099
9119
|
const $childScope11 = _peek_scope_id();
|
|
9100
9120
|
arm_button_default({
|
|
9101
9121
|
class: btnSm,
|
|
@@ -9104,24 +9124,24 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9104
9124
|
armedLabel: "Sign out?",
|
|
9105
9125
|
onFire: _resume(function() {
|
|
9106
9126
|
run(h.host, "logout");
|
|
9107
|
-
}, "A40", $
|
|
9127
|
+
}, "A40", $scope56_id),
|
|
9108
9128
|
content: _content_resume("A61", () => {
|
|
9109
9129
|
_scope_reason();
|
|
9110
9130
|
_scope_id();
|
|
9111
9131
|
_html("Sign out");
|
|
9112
|
-
}, $
|
|
9132
|
+
}, $scope56_id)
|
|
9113
9133
|
});
|
|
9114
|
-
_subscribe($for_content3__h_host__closures, writeScope($
|
|
9134
|
+
_subscribe($for_content3__h_host__closures, writeScope($scope56_id, { a: _existing_scope($childScope11) }));
|
|
9115
9135
|
return 1;
|
|
9116
9136
|
}
|
|
9117
|
-
}, $
|
|
9137
|
+
}, $scope54_id, "a", 1, 1, 1, 0, 1);
|
|
9118
9138
|
_if(() => {
|
|
9119
9139
|
if (h.isEnterprise) {
|
|
9120
|
-
const $
|
|
9140
|
+
const $scope78_id = _scope_id();
|
|
9121
9141
|
const $childScope12 = _peek_scope_id();
|
|
9122
9142
|
arm_button_default({
|
|
9123
9143
|
class: [
|
|
9124
|
-
"
|
|
9144
|
+
"_cn",
|
|
9125
9145
|
"_7",
|
|
9126
9146
|
"_8"
|
|
9127
9147
|
],
|
|
@@ -9130,30 +9150,30 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9130
9150
|
armedLabel: "Forget?",
|
|
9131
9151
|
onFire: _resume(function() {
|
|
9132
9152
|
changeHost(h.host, true);
|
|
9133
|
-
}, "A41", $
|
|
9153
|
+
}, "A41", $scope78_id),
|
|
9134
9154
|
content: _content_resume("A62", () => {
|
|
9135
9155
|
_scope_reason();
|
|
9136
9156
|
_scope_id();
|
|
9137
9157
|
icon_xmark_default({ size: 14 });
|
|
9138
|
-
}, $
|
|
9158
|
+
}, $scope78_id)
|
|
9139
9159
|
});
|
|
9140
|
-
_subscribe($for_content3__h_host__closures, writeScope($
|
|
9160
|
+
_subscribe($for_content3__h_host__closures, writeScope($scope78_id, {
|
|
9141
9161
|
a: _existing_scope($childScope12),
|
|
9142
9162
|
Ca4: 1
|
|
9143
9163
|
}));
|
|
9144
9164
|
return 0;
|
|
9145
9165
|
}
|
|
9146
|
-
}, $
|
|
9147
|
-
writeScope($
|
|
9166
|
+
}, $scope54_id, "b", 1, 1, 1, 0, 1);
|
|
9167
|
+
writeScope($scope54_id, {});
|
|
9148
9168
|
return 0;
|
|
9149
9169
|
}
|
|
9150
9170
|
}, $scope7_id, "j");
|
|
9151
9171
|
_html("</div>");
|
|
9152
9172
|
_if(() => {
|
|
9153
9173
|
if (busy && authCodes.has(h.host)) {
|
|
9154
|
-
const $
|
|
9155
|
-
_html(`<div${_attr_class("
|
|
9156
|
-
_subscribe($authCodes__closures, writeScope($
|
|
9174
|
+
const $scope35_id = _scope_id();
|
|
9175
|
+
_html(`<div${_attr_class("_df")}><span${_attr_class("_dg")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_di")}>${_text_resume($scope35_id, "d", h.host)}/login/device</a>${_el_resume($scope35_id, "c")}</span><code${_attr_class("_dh")}>${_text_resume($scope35_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
9176
|
+
_subscribe($authCodes__closures, writeScope($scope35_id, { Ch6: 1 }));
|
|
9157
9177
|
return 0;
|
|
9158
9178
|
}
|
|
9159
9179
|
}, $scope7_id, "k", 1, 1, 1, 0, 1);
|
|
@@ -9164,7 +9184,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9164
9184
|
_set_serialize_reason(30);
|
|
9165
9185
|
const $childScope13 = _peek_scope_id();
|
|
9166
9186
|
sso_auth_default({
|
|
9167
|
-
class: ["
|
|
9187
|
+
class: ["_ct", "_dj"],
|
|
9168
9188
|
items: hostSso$1,
|
|
9169
9189
|
skipped: skippedSso,
|
|
9170
9190
|
busy,
|
|
@@ -9197,25 +9217,25 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9197
9217
|
}, "host", $scope0_id, "z", 1, 1, 1, "</div>");
|
|
9198
9218
|
_if(() => {
|
|
9199
9219
|
if (setup && !setup.github.length) {
|
|
9200
|
-
const $
|
|
9201
|
-
_html(`<p${_attr_class("
|
|
9202
|
-
writeScope($
|
|
9220
|
+
const $scope98_id = _scope_id();
|
|
9221
|
+
_html(`<p${_attr_class("_co")}>Install the GitHub CLI below to sign in.</p>`);
|
|
9222
|
+
writeScope($scope98_id, {});
|
|
9203
9223
|
return 0;
|
|
9204
9224
|
}
|
|
9205
9225
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
9206
|
-
_html(`</section><section${_attr_class("
|
|
9226
|
+
_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", "_cs"])}><div${_attr_class(["_ct", "_cu"])}><div${_attr_class(["_cv", { ["_cw"]: skillsOpen }])}><button${_attr_class("_cx")} aria-expanded=true>`);
|
|
9207
9227
|
_set_serialize_reason(1);
|
|
9208
9228
|
const $childScope14 = _peek_scope_id();
|
|
9209
9229
|
icon_chevron_right_default({
|
|
9210
9230
|
size: 12,
|
|
9211
|
-
class: ["
|
|
9231
|
+
class: ["_cB", { ["_cC"]: skillsOpen }]
|
|
9212
9232
|
});
|
|
9213
|
-
_html(`<span${_attr_class("
|
|
9233
|
+
_html(`<span${_attr_class("_cy")}>Skills</span>`);
|
|
9214
9234
|
_if(() => {
|
|
9215
9235
|
if (skills?.global.length) {
|
|
9216
|
-
const $
|
|
9217
|
-
_html(`<span${_attr_class("
|
|
9218
|
-
writeScope($
|
|
9236
|
+
const $scope50_id = _scope_id();
|
|
9237
|
+
_html(`<span${_attr_class("_cz")}>${_text_resume($scope50_id, "b", skills.global.length)} installed</span>`);
|
|
9238
|
+
writeScope($scope50_id, {});
|
|
9219
9239
|
return 0;
|
|
9220
9240
|
}
|
|
9221
9241
|
}, $scope0_id, "aa", 1, 1, 1, 0, 1);
|
|
@@ -9241,46 +9261,46 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9241
9261
|
const $scope16_id = _scope_id();
|
|
9242
9262
|
_if(() => {
|
|
9243
9263
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9244
|
-
const $
|
|
9245
|
-
_html(`<li${_attr_class("
|
|
9246
|
-
writeScope($
|
|
9264
|
+
const $scope99_id = _scope_id();
|
|
9265
|
+
_html(`<li${_attr_class("_cQ")}>Searching skills.sh…</li>`);
|
|
9266
|
+
writeScope($scope99_id, {});
|
|
9247
9267
|
return 0;
|
|
9248
9268
|
}
|
|
9249
9269
|
}, $scope16_id, "a", 1, 1, 1, 0, 1);
|
|
9250
9270
|
_if(() => {
|
|
9251
9271
|
if (looksLikeSource(skillQuery)) {
|
|
9252
9272
|
const $scope17_id = _scope_id();
|
|
9253
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9273
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_c4", "_y"])}>${_text_resume($scope17_id, "d", skillQuery.trim())}</span>`);
|
|
9254
9274
|
_if(() => {
|
|
9255
9275
|
if (active.has(skillQuery.trim())) {
|
|
9256
9276
|
const $scope18_id = _scope_id();
|
|
9257
|
-
_html(`<span${_attr_class("
|
|
9277
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9258
9278
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope18_id, {
|
|
9259
|
-
|
|
9260
|
-
|
|
9279
|
+
Ch1: 3,
|
|
9280
|
+
Chs: 2
|
|
9261
9281
|
})));
|
|
9262
9282
|
return 0;
|
|
9263
9283
|
} else {
|
|
9264
|
-
const $
|
|
9265
|
-
_html(`<span${_attr_class("
|
|
9266
|
-
writeScope($
|
|
9284
|
+
const $scope100_id = _scope_id();
|
|
9285
|
+
_html(`<span${_attr_class("_cm")}>Add straight from this source</span>`);
|
|
9286
|
+
writeScope($scope100_id, {});
|
|
9267
9287
|
return 1;
|
|
9268
9288
|
}
|
|
9269
9289
|
}, $scope17_id, "e", 1, 1, 1, 0, 1);
|
|
9270
9290
|
_html("</div>");
|
|
9271
9291
|
_if(() => {
|
|
9272
9292
|
if (!active.has(skillQuery.trim())) {
|
|
9273
|
-
const $
|
|
9274
|
-
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($
|
|
9275
|
-
_script($
|
|
9276
|
-
writeScope($
|
|
9293
|
+
const $scope51_id = _scope_id();
|
|
9294
|
+
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope51_id, "a")}`);
|
|
9295
|
+
_script($scope51_id, "A63");
|
|
9296
|
+
writeScope($scope51_id, {});
|
|
9277
9297
|
return 0;
|
|
9278
9298
|
}
|
|
9279
9299
|
}, $scope17_id, "f", 1, 1, 1, 0, 1);
|
|
9280
9300
|
_html("</li>");
|
|
9281
9301
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope17_id, {
|
|
9282
|
-
|
|
9283
|
-
|
|
9302
|
+
Ch1: 2,
|
|
9303
|
+
Chs: 1
|
|
9284
9304
|
})));
|
|
9285
9305
|
return 0;
|
|
9286
9306
|
}
|
|
@@ -9288,47 +9308,47 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9288
9308
|
_for_of(skillHits || [], (h) => {
|
|
9289
9309
|
const $scope19_id = _scope_id();
|
|
9290
9310
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9291
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9311
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_c4", "_y"])}>${_text_resume($scope19_id, "d", h.name)}</span>`);
|
|
9292
9312
|
_if(() => {
|
|
9293
9313
|
if (active.has(h.skillId)) {
|
|
9294
9314
|
const $scope20_id = _scope_id();
|
|
9295
|
-
_html(`<span${_attr_class("
|
|
9296
|
-
_subscribe($active__closures, writeScope($scope20_id, {
|
|
9315
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope20_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9316
|
+
_subscribe($active__closures, writeScope($scope20_id, { Ch1: 5 }));
|
|
9297
9317
|
return 0;
|
|
9298
9318
|
} else {
|
|
9299
|
-
const $
|
|
9300
|
-
_html(`<span${_attr_class("
|
|
9301
|
-
writeScope($
|
|
9319
|
+
const $scope101_id = _scope_id();
|
|
9320
|
+
_html(`<span${_attr_class("_cm")}${_attr("title", h.source)}>${_text_resume($scope101_id, "b", h.source)}</span>${_el_resume($scope101_id, "a")}`);
|
|
9321
|
+
writeScope($scope101_id, {});
|
|
9302
9322
|
return 1;
|
|
9303
9323
|
}
|
|
9304
9324
|
}, $scope19_id, "e", 1, 1, 1, 0, 1);
|
|
9305
9325
|
_html("</div>");
|
|
9306
9326
|
_if(() => {
|
|
9307
9327
|
if (!active.has(h.skillId)) {
|
|
9308
|
-
const $
|
|
9328
|
+
const $scope62_id = _scope_id();
|
|
9309
9329
|
_if(() => {
|
|
9310
9330
|
if (h.installs) {
|
|
9311
|
-
const $
|
|
9312
|
-
_html(`<span${_attr_class(["_N", "_O"])}${_attr("title", `${h.installs} installs`)}>${_text_resume($
|
|
9313
|
-
_subscribe($for_content4__h_installs__closures, writeScope($
|
|
9331
|
+
const $scope102_id = _scope_id();
|
|
9332
|
+
_html(`<span${_attr_class(["_N", "_O"])}${_attr("title", `${h.installs} installs`)}>${_text_resume($scope102_id, "b", skillInstalls(h.installs))}</span>${_el_resume($scope102_id, "a")}`);
|
|
9333
|
+
_subscribe($for_content4__h_installs__closures, writeScope($scope102_id, {}));
|
|
9314
9334
|
return 0;
|
|
9315
9335
|
}
|
|
9316
|
-
}, $
|
|
9336
|
+
}, $scope62_id, "a", 1, 1, 1, 0, 1);
|
|
9317
9337
|
_if(() => {
|
|
9318
9338
|
if (h.installed) {
|
|
9319
|
-
const $
|
|
9339
|
+
const $scope103_id = _scope_id();
|
|
9320
9340
|
_html(`<span${_attr_class("_N")}>installed</span>`);
|
|
9321
|
-
writeScope($
|
|
9341
|
+
writeScope($scope103_id, {});
|
|
9322
9342
|
return 0;
|
|
9323
9343
|
} else {
|
|
9324
|
-
const $
|
|
9325
|
-
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($
|
|
9326
|
-
_script($
|
|
9327
|
-
writeScope($
|
|
9344
|
+
const $scope63_id = _scope_id();
|
|
9345
|
+
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope63_id, "a")}`);
|
|
9346
|
+
_script($scope63_id, "A64");
|
|
9347
|
+
writeScope($scope63_id, {});
|
|
9328
9348
|
return 1;
|
|
9329
9349
|
}
|
|
9330
|
-
}, $
|
|
9331
|
-
writeScope($
|
|
9350
|
+
}, $scope62_id, "b", 1, 1, 1, 0, 1);
|
|
9351
|
+
writeScope($scope62_id, {});
|
|
9332
9352
|
return 0;
|
|
9333
9353
|
}
|
|
9334
9354
|
}, $scope19_id, "f");
|
|
@@ -9339,14 +9359,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9339
9359
|
m: h?.installs,
|
|
9340
9360
|
n: h?.installed,
|
|
9341
9361
|
q: $for_content4__h_installs__closures,
|
|
9342
|
-
|
|
9362
|
+
Ch1: 4
|
|
9343
9363
|
}));
|
|
9344
9364
|
}, "skillId", $scope16_id, "c", 1, 1, 1, 0, 1);
|
|
9345
9365
|
_if(() => {
|
|
9346
9366
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9347
|
-
const $
|
|
9348
|
-
_html(`<li${_attr_class("
|
|
9349
|
-
_subscribe($skillQuery__closures, writeScope($
|
|
9367
|
+
const $scope52_id = _scope_id();
|
|
9368
|
+
_html(`<li${_attr_class("_cQ")}>No skills match "${_text_resume($scope52_id, "b", skillQuery, 2)}".</li>`);
|
|
9369
|
+
_subscribe($skillQuery__closures, writeScope($scope52_id, { Chs: 3 }));
|
|
9350
9370
|
return 0;
|
|
9351
9371
|
}
|
|
9352
9372
|
}, $scope16_id, "d", 1, 1, 1, 0, 1);
|
|
@@ -9362,22 +9382,22 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9362
9382
|
_if(() => {
|
|
9363
9383
|
{
|
|
9364
9384
|
const $scope21_id = _scope_id();
|
|
9365
|
-
_html(`<div${_attr_class("
|
|
9385
|
+
_html(`<div${_attr_class("_cA")}>`);
|
|
9366
9386
|
_if(() => {
|
|
9367
9387
|
if (skills && !skills.agents.length) {
|
|
9368
|
-
const $
|
|
9369
|
-
_html(`<p${_attr_class("
|
|
9370
|
-
writeScope($
|
|
9388
|
+
const $scope104_id = _scope_id();
|
|
9389
|
+
_html(`<p${_attr_class("_co")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9390
|
+
writeScope($scope104_id, {});
|
|
9371
9391
|
return 0;
|
|
9372
9392
|
} else if (skills && !skills.available) {
|
|
9373
9393
|
const $scope22_id = _scope_id();
|
|
9374
|
-
_html(`<p${_attr_class("
|
|
9394
|
+
_html(`<p${_attr_class("_co")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${_text_resume($scope22_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope22_id, "b")}</p>`);
|
|
9375
9395
|
_script($scope22_id, "A66");
|
|
9376
|
-
_subscribe($active__closures, writeScope($scope22_id, {
|
|
9396
|
+
_subscribe($active__closures, writeScope($scope22_id, { Ch1: 6 }));
|
|
9377
9397
|
return 1;
|
|
9378
9398
|
}
|
|
9379
9399
|
}, $scope21_id, "b", 1, 1, 1, 0, 1);
|
|
9380
|
-
_html(`<ul${_attr_class("
|
|
9400
|
+
_html(`<ul${_attr_class("_dY")}>`);
|
|
9381
9401
|
_for_of(skills?.global || [], (s) => {
|
|
9382
9402
|
const $scope23_id = _scope_id();
|
|
9383
9403
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9388,21 +9408,21 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9388
9408
|
let $trailing;
|
|
9389
9409
|
if (skills && s.agents.length < skills.agents.length) $tags = attrTag({ content: _content_resume("A69", () => {
|
|
9390
9410
|
_scope_reason();
|
|
9391
|
-
const $
|
|
9392
|
-
_html(`<span${_attr_class("_N")}${_attr("title", `Only installed for ${s.agents.map(agentLabel).join(", ")}`)}>${_text_resume($
|
|
9393
|
-
_subscribe($for_content5__s_agents__closures, writeScope($
|
|
9394
|
-
_resume_branch($
|
|
9411
|
+
const $scope105_id = _scope_id();
|
|
9412
|
+
_html(`<span${_attr_class("_N")}${_attr("title", `Only installed for ${s.agents.map(agentLabel).join(", ")}`)}>${_text_resume($scope105_id, "b", s.agents.map(agentLabel).join(", "))} only</span>${_el_resume($scope105_id, "a")}`);
|
|
9413
|
+
_subscribe($for_content5__s_agents__closures, writeScope($scope105_id, { _: _scope_with_id($scope23_id) }));
|
|
9414
|
+
_resume_branch($scope105_id);
|
|
9395
9415
|
}, $scope23_id) });
|
|
9396
9416
|
if (skills?.available && s.source) $actions = attrTag({ content: _content_resume("A70", () => {
|
|
9397
9417
|
_scope_reason();
|
|
9398
|
-
const $
|
|
9399
|
-
_html(`<button${_attr_class(btnSm)}>Update</button>${_el_resume($
|
|
9400
|
-
_script($
|
|
9401
|
-
writeScope($
|
|
9418
|
+
const $scope64_id = _scope_id();
|
|
9419
|
+
_html(`<button${_attr_class(btnSm)}>Update</button>${_el_resume($scope64_id, "a")}`);
|
|
9420
|
+
_script($scope64_id, "A67");
|
|
9421
|
+
writeScope($scope64_id, { _: _scope_with_id($scope23_id) });
|
|
9402
9422
|
}, $scope23_id) });
|
|
9403
9423
|
if (skills?.available) $trailing = attrTag({ content: _content_resume("A71", () => {
|
|
9404
9424
|
_scope_reason();
|
|
9405
|
-
const $
|
|
9425
|
+
const $scope65_id = _scope_id();
|
|
9406
9426
|
const $childScope16 = _peek_scope_id();
|
|
9407
9427
|
arm_button_default({
|
|
9408
9428
|
class: [
|
|
@@ -9417,18 +9437,18 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9417
9437
|
action: "remove",
|
|
9418
9438
|
id: s.id
|
|
9419
9439
|
});
|
|
9420
|
-
}, "A46", $
|
|
9440
|
+
}, "A46", $scope65_id),
|
|
9421
9441
|
content: _content_resume("A68", () => {
|
|
9422
9442
|
_scope_reason();
|
|
9423
9443
|
_scope_id();
|
|
9424
9444
|
icon_xmark_default({ size: 12 });
|
|
9425
|
-
}, $
|
|
9445
|
+
}, $scope65_id)
|
|
9426
9446
|
});
|
|
9427
|
-
_subscribe($for_content5__s_name__closures, writeScope($
|
|
9447
|
+
_subscribe($for_content5__s_name__closures, writeScope($scope65_id, {
|
|
9428
9448
|
_: _scope_with_id($scope23_id),
|
|
9429
9449
|
a: _existing_scope($childScope16)
|
|
9430
9450
|
}));
|
|
9431
|
-
_resume_branch($
|
|
9451
|
+
_resume_branch($scope65_id);
|
|
9432
9452
|
}, $scope23_id) });
|
|
9433
9453
|
const $childScope17 = _peek_scope_id();
|
|
9434
9454
|
skill_chip_default({
|
|
@@ -9449,14 +9469,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9449
9469
|
o: $for_content5__s_agents__closures,
|
|
9450
9470
|
n: $for_content5__s_name__closures,
|
|
9451
9471
|
a: _existing_scope($childScope17),
|
|
9452
|
-
|
|
9472
|
+
Ch1: 7
|
|
9453
9473
|
}))));
|
|
9454
9474
|
}, "id", $scope21_id, "c", 1, 1, 1, "</ul>", 1);
|
|
9455
9475
|
_if(() => {
|
|
9456
9476
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9457
|
-
const $
|
|
9458
|
-
_html(`<p${_attr_class("
|
|
9459
|
-
writeScope($
|
|
9477
|
+
const $scope108_id = _scope_id();
|
|
9478
|
+
_html(`<p${_attr_class("_co")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9479
|
+
writeScope($scope108_id, {});
|
|
9460
9480
|
return 0;
|
|
9461
9481
|
}
|
|
9462
9482
|
}, $scope21_id, "d", 1, 1, 1, 0, 1);
|
|
@@ -9465,42 +9485,54 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9465
9485
|
return 0;
|
|
9466
9486
|
}
|
|
9467
9487
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
9468
|
-
_html(`</div><div${_attr_class(["
|
|
9488
|
+
_html(`</div><div${_attr_class(["_ct", "_cu"])}><div${_attr_class(["_cv", { ["_cw"]: machineOpen }])}><button${_attr_class("_cx")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9469
9489
|
_set_serialize_reason(1);
|
|
9470
9490
|
const $childScope18 = _peek_scope_id();
|
|
9471
9491
|
icon_chevron_right_default({
|
|
9472
9492
|
size: 12,
|
|
9473
|
-
class: ["
|
|
9493
|
+
class: ["_cB", { ["_cC"]: machineOpen }]
|
|
9474
9494
|
});
|
|
9475
|
-
_html(`<span${_attr_class("
|
|
9495
|
+
_html(`<span${_attr_class("_cy")}>Tools</span><span${_attr_class("_cz")}>${_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")}`);
|
|
9476
9496
|
_if(() => {
|
|
9477
|
-
if (
|
|
9497
|
+
if (bulk) {
|
|
9498
|
+
const $scope34_id = _scope_id();
|
|
9499
|
+
_html(`<span${_attr_class("_cS")}><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>`);
|
|
9500
|
+
writeScope($scope34_id, {});
|
|
9501
|
+
return 0;
|
|
9502
|
+
} else {
|
|
9478
9503
|
const $scope24_id = _scope_id();
|
|
9479
|
-
|
|
9480
|
-
|
|
9504
|
+
_if(() => {
|
|
9505
|
+
if (outdatedIds.length > 1) {
|
|
9506
|
+
const $scope25_id = _scope_id();
|
|
9507
|
+
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope25_id, "a")}`);
|
|
9508
|
+
_script($scope25_id, "A72");
|
|
9509
|
+
_subscribe($active_size__closures, writeScope($scope25_id, {}));
|
|
9510
|
+
return 0;
|
|
9511
|
+
}
|
|
9512
|
+
}, $scope24_id, "a", 1, 1, 1, 0, 1);
|
|
9513
|
+
_if(() => {
|
|
9514
|
+
if (missingInstallable.length > 1) {
|
|
9515
|
+
const $scope26_id = _scope_id();
|
|
9516
|
+
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope26_id, "a")}`);
|
|
9517
|
+
_script($scope26_id, "A73");
|
|
9518
|
+
_subscribe($active_size__closures, writeScope($scope26_id, { Ch2: 1 }));
|
|
9519
|
+
return 0;
|
|
9520
|
+
}
|
|
9521
|
+
}, $scope24_id, "b", 1, 1, 1, 0, 1);
|
|
9481
9522
|
writeScope($scope24_id, {});
|
|
9482
|
-
return
|
|
9483
|
-
}
|
|
9484
|
-
}, $scope0_id, "am", 1, 1, 1, 0, 1);
|
|
9485
|
-
_if(() => {
|
|
9486
|
-
if (missingInstallable.length > 1) {
|
|
9487
|
-
const $scope25_id = _scope_id();
|
|
9488
|
-
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope25_id, "a")}`);
|
|
9489
|
-
_script($scope25_id, "A73");
|
|
9490
|
-
writeScope($scope25_id, {});
|
|
9491
|
-
return 0;
|
|
9523
|
+
return 1;
|
|
9492
9524
|
}
|
|
9493
|
-
}, $scope0_id, "
|
|
9525
|
+
}, $scope0_id, "am");
|
|
9494
9526
|
_if(() => {
|
|
9495
9527
|
if (setup && setup.mise.installed) {
|
|
9496
|
-
const $
|
|
9528
|
+
const $scope27_id = _scope_id();
|
|
9497
9529
|
_set_serialize_reason(106);
|
|
9498
9530
|
const $childScope19 = _peek_scope_id();
|
|
9499
9531
|
add_field_default({
|
|
9500
9532
|
open: addingTool,
|
|
9501
9533
|
openChange: _resume((_new_addingTool) => {
|
|
9502
9534
|
addingTool = _new_addingTool;
|
|
9503
|
-
}, "A47", $
|
|
9535
|
+
}, "A47", $scope27_id),
|
|
9504
9536
|
value: query,
|
|
9505
9537
|
valueChange: search,
|
|
9506
9538
|
placeholder: "Search the mise registry…",
|
|
@@ -9509,149 +9541,149 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9509
9541
|
searching,
|
|
9510
9542
|
content: _content("A75", () => {
|
|
9511
9543
|
_scope_reason();
|
|
9512
|
-
const $
|
|
9544
|
+
const $scope28_id = _scope_id();
|
|
9513
9545
|
_if(() => {
|
|
9514
9546
|
if (searching && !hits?.length) {
|
|
9515
|
-
const $
|
|
9516
|
-
_html(`<li${_attr_class("
|
|
9517
|
-
writeScope($
|
|
9547
|
+
const $scope109_id = _scope_id();
|
|
9548
|
+
_html(`<li${_attr_class("_cQ")}>Searching the mise registry…</li>`);
|
|
9549
|
+
writeScope($scope109_id, {});
|
|
9518
9550
|
return 0;
|
|
9519
9551
|
}
|
|
9520
|
-
}, $
|
|
9552
|
+
}, $scope28_id, "a", 1, 1, 1, 0, 1);
|
|
9521
9553
|
_if(() => {
|
|
9522
9554
|
if (hits && !hits.length && !searching) {
|
|
9523
|
-
const $
|
|
9524
|
-
_html(`<li${_attr_class("
|
|
9525
|
-
_subscribe($query__closures, writeScope($
|
|
9555
|
+
const $scope42_id = _scope_id();
|
|
9556
|
+
_html(`<li${_attr_class("_cQ")}>No tools match "${_text_resume($scope42_id, "b", query, 2)}".</li>`);
|
|
9557
|
+
_subscribe($query__closures, writeScope($scope42_id, {}));
|
|
9526
9558
|
return 0;
|
|
9527
9559
|
}
|
|
9528
|
-
}, $
|
|
9560
|
+
}, $scope28_id, "b", 1, 1, 1, 0, 1);
|
|
9529
9561
|
_for_of(hits || [], (h) => {
|
|
9530
|
-
const $
|
|
9531
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9562
|
+
const $scope29_id = _scope_id();
|
|
9563
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_c4", "_y"])}>${_text_resume($scope29_id, "d", h.name)}</span>`);
|
|
9532
9564
|
_if(() => {
|
|
9533
9565
|
if (active.has(h.name)) {
|
|
9534
|
-
const $
|
|
9535
|
-
_html(`<span${_attr_class("
|
|
9536
|
-
_subscribe($active__closures, writeScope($
|
|
9566
|
+
const $scope30_id = _scope_id();
|
|
9567
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope30_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9568
|
+
_subscribe($active__closures, writeScope($scope30_id, { Ch1: 9 }));
|
|
9537
9569
|
return 0;
|
|
9538
9570
|
} else if (h.description) {
|
|
9539
|
-
const $
|
|
9540
|
-
_html(`<span${_attr_class("
|
|
9541
|
-
writeScope($
|
|
9571
|
+
const $scope110_id = _scope_id();
|
|
9572
|
+
_html(`<span${_attr_class("_cm")}${_attr("title", h.description)}>${_text_resume($scope110_id, "b", h.description)}</span>${_el_resume($scope110_id, "a")}`);
|
|
9573
|
+
writeScope($scope110_id, {});
|
|
9542
9574
|
return 1;
|
|
9543
9575
|
}
|
|
9544
|
-
}, $
|
|
9576
|
+
}, $scope29_id, "e", 1, 1, 1, 0, 1);
|
|
9545
9577
|
_html("</div>");
|
|
9546
9578
|
_if(() => {
|
|
9547
9579
|
if (!active.has(h.name)) {
|
|
9548
|
-
const $
|
|
9580
|
+
const $scope37_id = _scope_id();
|
|
9549
9581
|
_if(() => {
|
|
9550
9582
|
if (h.installed) {
|
|
9551
|
-
const $
|
|
9583
|
+
const $scope111_id = _scope_id();
|
|
9552
9584
|
_html(`<span${_attr_class("_N")}>installed</span>`);
|
|
9553
|
-
writeScope($
|
|
9585
|
+
writeScope($scope111_id, {});
|
|
9554
9586
|
return 0;
|
|
9555
9587
|
} else {
|
|
9556
|
-
const $
|
|
9557
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
9558
|
-
_script($
|
|
9559
|
-
writeScope($
|
|
9588
|
+
const $scope38_id = _scope_id();
|
|
9589
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope38_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope38_id, "b")}`);
|
|
9590
|
+
_script($scope38_id, "A74");
|
|
9591
|
+
writeScope($scope38_id, {});
|
|
9560
9592
|
return 1;
|
|
9561
9593
|
}
|
|
9562
|
-
}, $
|
|
9563
|
-
writeScope($
|
|
9594
|
+
}, $scope37_id, "a");
|
|
9595
|
+
writeScope($scope37_id, {});
|
|
9564
9596
|
return 0;
|
|
9565
9597
|
}
|
|
9566
|
-
}, $
|
|
9598
|
+
}, $scope29_id, "f");
|
|
9567
9599
|
_html("</li>");
|
|
9568
|
-
_subscribe($active__closures, writeScope($
|
|
9600
|
+
_subscribe($active__closures, writeScope($scope29_id, {
|
|
9569
9601
|
i: h?.name,
|
|
9570
9602
|
k: h?.description,
|
|
9571
9603
|
m: h?.installed,
|
|
9572
|
-
|
|
9604
|
+
Ch1: 8
|
|
9573
9605
|
}));
|
|
9574
|
-
}, "name", $
|
|
9575
|
-
_subscribe($searching__closures, _subscribe($hits_length__closures, _subscribe($hits__closures, writeScope($
|
|
9576
|
-
_resume_branch($
|
|
9577
|
-
}, $
|
|
9606
|
+
}, "name", $scope28_id, "c", 1, 1, 1, 0, 1);
|
|
9607
|
+
_subscribe($searching__closures, _subscribe($hits_length__closures, _subscribe($hits__closures, writeScope($scope28_id, { _: _scope_with_id($scope27_id) }))));
|
|
9608
|
+
_resume_branch($scope28_id);
|
|
9609
|
+
}, $scope27_id)
|
|
9578
9610
|
});
|
|
9579
|
-
writeScope($
|
|
9611
|
+
writeScope($scope27_id, { a: _existing_scope($childScope19) });
|
|
9580
9612
|
return 0;
|
|
9581
9613
|
}
|
|
9582
|
-
}, $scope0_id, "
|
|
9614
|
+
}, $scope0_id, "an");
|
|
9583
9615
|
_html(`</div>${_el_resume($scope0_id, "ae")}`);
|
|
9584
9616
|
_if(() => {
|
|
9585
9617
|
if (machineOpen) {
|
|
9586
9618
|
const $scope6_id = _scope_id();
|
|
9587
|
-
_html(`<div${_attr_class("
|
|
9619
|
+
_html(`<div${_attr_class("_cA")}>`);
|
|
9588
9620
|
_if(() => {
|
|
9589
9621
|
if (setup && !setup.mise.installed) {
|
|
9590
|
-
const $
|
|
9591
|
-
_html(`<p${_attr_class("
|
|
9592
|
-
_script($
|
|
9593
|
-
_subscribe($active__closures, writeScope($
|
|
9622
|
+
const $scope31_id = _scope_id();
|
|
9623
|
+
_html(`<p${_attr_class("_co")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope31_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope31_id, "b")}</p>`);
|
|
9624
|
+
_script($scope31_id, "A76");
|
|
9625
|
+
_subscribe($active__closures, writeScope($scope31_id, { Ch1: 10 }));
|
|
9594
9626
|
return 0;
|
|
9595
9627
|
}
|
|
9596
9628
|
}, $scope6_id, "b", 1, 1, 1, 0, 1);
|
|
9597
9629
|
_html(`<ul${_attr_class(toolGrid)}>`);
|
|
9598
9630
|
_if(() => {
|
|
9599
9631
|
if (self) {
|
|
9600
|
-
const $
|
|
9601
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9632
|
+
const $scope46_id = _scope_id();
|
|
9633
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_c4", "_y"])}>work</span>`);
|
|
9602
9634
|
_if(() => {
|
|
9603
9635
|
if (selfUpdating) {
|
|
9604
|
-
const $
|
|
9605
|
-
_html(`<span${_attr_class("
|
|
9606
|
-
writeScope($
|
|
9636
|
+
const $scope112_id = _scope_id();
|
|
9637
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9638
|
+
writeScope($scope112_id, {});
|
|
9607
9639
|
return 0;
|
|
9608
9640
|
} else {
|
|
9609
|
-
const $
|
|
9610
|
-
_html(`<span${_attr_class(["_y", metaTrunc])} title="Running version">v${_text_resume($
|
|
9641
|
+
const $scope47_id = _scope_id();
|
|
9642
|
+
_html(`<span${_attr_class(["_y", metaTrunc])} title="Running version">v${_text_resume($scope47_id, "b", self.version, 2)}</span>`);
|
|
9611
9643
|
_if(() => {
|
|
9612
9644
|
if (self.install === "source") {
|
|
9613
|
-
const $
|
|
9645
|
+
const $scope113_id = _scope_id();
|
|
9614
9646
|
_html(`<span${_attr_class(metaTrunc)} title="Started from a checkout, not the published package">source checkout — update with git</span>`);
|
|
9615
|
-
writeScope($
|
|
9647
|
+
writeScope($scope113_id, {});
|
|
9616
9648
|
return 0;
|
|
9617
9649
|
} else if (self.latest && self.latest !== self.version) {
|
|
9618
|
-
const $
|
|
9619
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9650
|
+
const $scope48_id = _scope_id();
|
|
9651
|
+
_html(`<button${_attr_class([btnSm, "_c7"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9620
9652
|
icon_arrow_up_default({ size: 12 });
|
|
9621
|
-
_html(` ${_text_resume($
|
|
9622
|
-
_script($
|
|
9623
|
-
_subscribe($self_latest__closures, writeScope($
|
|
9653
|
+
_html(` ${_text_resume($scope48_id, "c", self.latest, 2)}</button>${_el_resume($scope48_id, "a")}`);
|
|
9654
|
+
_script($scope48_id, "A77");
|
|
9655
|
+
_subscribe($self_latest__closures, writeScope($scope48_id, { Chj: 3 }));
|
|
9624
9656
|
return 1;
|
|
9625
9657
|
} else if (self.latest) {
|
|
9626
|
-
const $
|
|
9658
|
+
const $scope114_id = _scope_id();
|
|
9627
9659
|
_html(`<span${_attr_class(metaTrunc)}>up to date</span>`);
|
|
9628
|
-
writeScope($
|
|
9660
|
+
writeScope($scope114_id, {});
|
|
9629
9661
|
return 2;
|
|
9630
9662
|
}
|
|
9631
|
-
}, $
|
|
9632
|
-
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($
|
|
9633
|
-
|
|
9634
|
-
|
|
9663
|
+
}, $scope47_id, "c", 1, 1, 1, 0, 1);
|
|
9664
|
+
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope47_id, {
|
|
9665
|
+
Chj: 2,
|
|
9666
|
+
Chk: 1
|
|
9635
9667
|
}))));
|
|
9636
9668
|
return 1;
|
|
9637
9669
|
}
|
|
9638
|
-
}, $
|
|
9670
|
+
}, $scope46_id, "c");
|
|
9639
9671
|
_html(`<span${_attr_class("_z")}></span>`);
|
|
9640
9672
|
_if(() => {
|
|
9641
9673
|
if (!selfUpdating) {
|
|
9642
|
-
const $
|
|
9674
|
+
const $scope115_id = _scope_id();
|
|
9643
9675
|
_html(`<span${_attr_class("_N")}>app</span>`);
|
|
9644
|
-
writeScope($
|
|
9676
|
+
writeScope($scope115_id, {});
|
|
9645
9677
|
return 0;
|
|
9646
9678
|
}
|
|
9647
|
-
}, $
|
|
9679
|
+
}, $scope46_id, "e", 1, 1, 1, 0, 1);
|
|
9648
9680
|
_html("</li>");
|
|
9649
|
-
_subscribe($selfUpdating__closures, writeScope($
|
|
9681
|
+
_subscribe($selfUpdating__closures, writeScope($scope46_id, {}));
|
|
9650
9682
|
return 0;
|
|
9651
9683
|
}
|
|
9652
9684
|
}, $scope6_id, "d", 1, 1, 1, 0, 1);
|
|
9653
9685
|
_for_of(tools, (t) => {
|
|
9654
|
-
const $
|
|
9686
|
+
const $scope32_id = _scope_id();
|
|
9655
9687
|
const $for_content7__t_pin__closures = /* @__PURE__ */ new Set();
|
|
9656
9688
|
const $for_content7__t__closures = /* @__PURE__ */ new Set();
|
|
9657
9689
|
const $for_content7__t_version__closures = /* @__PURE__ */ new Set();
|
|
@@ -9659,90 +9691,90 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9659
9691
|
const $for_content7__t_latest__closures = /* @__PURE__ */ new Set();
|
|
9660
9692
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9661
9693
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9662
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9694
|
+
_html(`<li${_attr_class([toolRow, { ["_c3"]: !t.installed }])}><span${_attr_class(["_c4", "_y"])}>${_text_resume($scope32_id, "c", t.label)}</span>`);
|
|
9663
9695
|
_if(() => {
|
|
9664
9696
|
if (active.has(t.id)) {
|
|
9665
|
-
const $
|
|
9666
|
-
_html(`<span${_attr_class("
|
|
9667
|
-
_subscribe($active__closures, writeScope($
|
|
9697
|
+
const $scope33_id = _scope_id();
|
|
9698
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope33_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9699
|
+
_subscribe($active__closures, writeScope($scope33_id, { Ch1: 12 }));
|
|
9668
9700
|
return 0;
|
|
9669
9701
|
} else if (t.installed) {
|
|
9670
|
-
const $
|
|
9702
|
+
const $scope39_id = _scope_id();
|
|
9671
9703
|
_if(() => {
|
|
9672
9704
|
if (t.version) {
|
|
9673
|
-
const $
|
|
9674
|
-
_html(`<button${_attr_class(["
|
|
9705
|
+
const $scope40_id = _scope_id();
|
|
9706
|
+
_html(`<button${_attr_class(["_c6", "_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)}`);
|
|
9675
9707
|
_if(() => {
|
|
9676
9708
|
if (aliasPin(t)) {
|
|
9677
|
-
const $
|
|
9678
|
-
_html(`<span${_attr_class("
|
|
9679
|
-
_subscribe($for_content7__t_pin__closures, writeScope($
|
|
9709
|
+
const $scope116_id = _scope_id();
|
|
9710
|
+
_html(`<span${_attr_class("_c5")}>${_text_resume($scope116_id, "b", t.pin)}</span>`);
|
|
9711
|
+
_subscribe($for_content7__t_pin__closures, writeScope($scope116_id, { Ca0: 1 }));
|
|
9680
9712
|
return 0;
|
|
9681
9713
|
}
|
|
9682
|
-
}, $
|
|
9683
|
-
_html(`</button>${_el_resume($
|
|
9684
|
-
_script($
|
|
9685
|
-
_subscribe($for_content7__t_version__closures, _subscribe($for_content7__t__closures, writeScope($
|
|
9714
|
+
}, $scope40_id, "c", 1, 1, 1, 0, 1);
|
|
9715
|
+
_html(`</button>${_el_resume($scope40_id, "a")}`);
|
|
9716
|
+
_script($scope40_id, "A78");
|
|
9717
|
+
_subscribe($for_content7__t_version__closures, _subscribe($for_content7__t__closures, writeScope($scope40_id, {})));
|
|
9686
9718
|
return 0;
|
|
9687
9719
|
} else {
|
|
9688
|
-
const $
|
|
9689
|
-
_html(`<span${_attr_class([metaTrunc, "_y"])}${_attr("title", t.path)}>${_text_resume($
|
|
9690
|
-
_subscribe($for_content7__t_path__closures, writeScope($
|
|
9720
|
+
const $scope117_id = _scope_id();
|
|
9721
|
+
_html(`<span${_attr_class([metaTrunc, "_y"])}${_attr("title", t.path)}>${_text_resume($scope117_id, "b", t.path)}</span>${_el_resume($scope117_id, "a")}`);
|
|
9722
|
+
_subscribe($for_content7__t_path__closures, writeScope($scope117_id, {}));
|
|
9691
9723
|
return 1;
|
|
9692
9724
|
}
|
|
9693
|
-
}, $
|
|
9725
|
+
}, $scope39_id, "a", 1, 1, 1, 0, 1);
|
|
9694
9726
|
_if(() => {
|
|
9695
9727
|
if (outdated(t)) {
|
|
9696
|
-
const $
|
|
9697
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9728
|
+
const $scope57_id = _scope_id();
|
|
9729
|
+
_html(`<button${_attr_class([btnSm, "_c7"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9698
9730
|
icon_arrow_up_default({ size: 12 });
|
|
9699
|
-
_html(` ${_text_resume($
|
|
9700
|
-
_script($
|
|
9701
|
-
_subscribe($for_content7__t_latest__closures, writeScope($
|
|
9731
|
+
_html(` ${_text_resume($scope57_id, "c", t.latest, 2)}</button>${_el_resume($scope57_id, "a")}`);
|
|
9732
|
+
_script($scope57_id, "A79");
|
|
9733
|
+
_subscribe($for_content7__t_latest__closures, writeScope($scope57_id, {}));
|
|
9702
9734
|
return 0;
|
|
9703
9735
|
} else if (t.newest) {
|
|
9704
|
-
const $
|
|
9705
|
-
_html(`<button${_attr_class(["
|
|
9706
|
-
_script($
|
|
9707
|
-
_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($
|
|
9736
|
+
const $scope58_id = _scope_id();
|
|
9737
|
+
_html(`<button${_attr_class(["_c6", "_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")}`);
|
|
9738
|
+
_script($scope58_id, "A80");
|
|
9739
|
+
_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 })))));
|
|
9708
9740
|
return 1;
|
|
9709
9741
|
}
|
|
9710
|
-
}, $
|
|
9711
|
-
writeScope($
|
|
9742
|
+
}, $scope39_id, "b", 1, 1, 1, 0, 1);
|
|
9743
|
+
writeScope($scope39_id, {});
|
|
9712
9744
|
return 1;
|
|
9713
9745
|
} else if (t.installable) {
|
|
9714
|
-
const $
|
|
9746
|
+
const $scope118_id = _scope_id();
|
|
9715
9747
|
_html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
|
|
9716
|
-
writeScope($
|
|
9748
|
+
writeScope($scope118_id, {});
|
|
9717
9749
|
return 2;
|
|
9718
9750
|
} else {
|
|
9719
|
-
const $
|
|
9751
|
+
const $scope119_id = _scope_id();
|
|
9720
9752
|
_html(`<span${_attr_class(metaTrunc)} title="Installed with the system package manager">system package</span>`);
|
|
9721
|
-
writeScope($
|
|
9753
|
+
writeScope($scope119_id, {});
|
|
9722
9754
|
return 3;
|
|
9723
9755
|
}
|
|
9724
|
-
}, $
|
|
9756
|
+
}, $scope32_id, "d");
|
|
9725
9757
|
_html(`<span${_attr_class("_z")}></span>`);
|
|
9726
9758
|
_if(() => {
|
|
9727
9759
|
if (!active.has(t.id)) {
|
|
9728
|
-
const $
|
|
9760
|
+
const $scope59_id = _scope_id();
|
|
9729
9761
|
_if(() => {
|
|
9730
9762
|
if (t.required) {
|
|
9731
|
-
const $
|
|
9763
|
+
const $scope120_id = _scope_id();
|
|
9732
9764
|
_html(`<span${_attr_class("_N")}>required</span>`);
|
|
9733
|
-
writeScope($
|
|
9765
|
+
writeScope($scope120_id, {});
|
|
9734
9766
|
return 0;
|
|
9735
9767
|
}
|
|
9736
|
-
}, $
|
|
9768
|
+
}, $scope59_id, "a", 1, 1, 1, 0, 1);
|
|
9737
9769
|
_if(() => {
|
|
9738
9770
|
if (!t.installed && t.installable) {
|
|
9739
|
-
const $
|
|
9740
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
9741
|
-
_script($
|
|
9742
|
-
writeScope($
|
|
9771
|
+
const $scope60_id = _scope_id();
|
|
9772
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope60_id, "a")}`);
|
|
9773
|
+
_script($scope60_id, "A81");
|
|
9774
|
+
writeScope($scope60_id, {});
|
|
9743
9775
|
return 0;
|
|
9744
9776
|
} else if (t.installed && t.version && !t.required) {
|
|
9745
|
-
const $
|
|
9777
|
+
const $scope61_id = _scope_id();
|
|
9746
9778
|
const $childScope20 = _peek_scope_id();
|
|
9747
9779
|
arm_button_default({
|
|
9748
9780
|
class: [
|
|
@@ -9754,26 +9786,26 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9754
9786
|
armedLabel: "Remove?",
|
|
9755
9787
|
onFire: _resume(function() {
|
|
9756
9788
|
run(t.id, "remove");
|
|
9757
|
-
}, "A48", $
|
|
9789
|
+
}, "A48", $scope61_id),
|
|
9758
9790
|
content: _content_resume("A82", () => {
|
|
9759
9791
|
_scope_reason();
|
|
9760
9792
|
_scope_id();
|
|
9761
9793
|
icon_xmark_default({ size: 12 });
|
|
9762
|
-
}, $
|
|
9794
|
+
}, $scope61_id)
|
|
9763
9795
|
});
|
|
9764
|
-
_subscribe($for_content7__t_label__closures, writeScope($
|
|
9796
|
+
_subscribe($for_content7__t_label__closures, writeScope($scope61_id, {
|
|
9765
9797
|
a: _existing_scope($childScope20),
|
|
9766
9798
|
Cw: 1
|
|
9767
9799
|
}));
|
|
9768
9800
|
return 1;
|
|
9769
9801
|
}
|
|
9770
|
-
}, $
|
|
9771
|
-
writeScope($
|
|
9802
|
+
}, $scope59_id, "b", 1, 1, 1, 0, 1);
|
|
9803
|
+
writeScope($scope59_id, {});
|
|
9772
9804
|
return 0;
|
|
9773
9805
|
}
|
|
9774
|
-
}, $
|
|
9775
|
-
_html(`</li>${_el_resume($
|
|
9776
|
-
_subscribe($active__closures, writeScope($
|
|
9806
|
+
}, $scope32_id, "f");
|
|
9807
|
+
_html(`</li>${_el_resume($scope32_id, "a")}`);
|
|
9808
|
+
_subscribe($active__closures, writeScope($scope32_id, {
|
|
9777
9809
|
h: t,
|
|
9778
9810
|
i: t?.installed,
|
|
9779
9811
|
j: t?.label,
|
|
@@ -9792,14 +9824,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9792
9824
|
a2: $for_content7__t_latest__closures,
|
|
9793
9825
|
w: $for_content7__t_label__closures,
|
|
9794
9826
|
a1: $for_content7__t_newest__closures,
|
|
9795
|
-
|
|
9827
|
+
Ch1: 11
|
|
9796
9828
|
}));
|
|
9797
9829
|
}, "id", $scope6_id, "e", 1, 1, 1, 0, 1);
|
|
9798
9830
|
_html("</ul></div>");
|
|
9799
9831
|
writeScope($scope6_id, {});
|
|
9800
9832
|
return 0;
|
|
9801
9833
|
}
|
|
9802
|
-
}, $scope0_id, "
|
|
9834
|
+
}, $scope0_id, "ao", 1, 1, 1, 0, 1);
|
|
9803
9835
|
const accent = input.instance.accent;
|
|
9804
9836
|
const themeOpts = [
|
|
9805
9837
|
{
|
|
@@ -9815,14 +9847,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9815
9847
|
label: "Dark"
|
|
9816
9848
|
}
|
|
9817
9849
|
];
|
|
9818
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9850
|
+
_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", "_dk"])}><div${_attr_class("_dw")}><img${_attr_class("_dx")}${_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("_dy")}><span${_attr_class("_dz")}>${_text_resume($scope0_id, "ax", input.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dA")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dl")}><span${_attr_class("_dm")}>Name</span><input${_attr_input_value($scope0_id, "b1", input.instance.name, _resume(function(v) {
|
|
9819
9851
|
setInstance({ name: v });
|
|
9820
|
-
}, "A1", $scope0_id))}${_attr_class(["_Y", "
|
|
9852
|
+
}, "A1", $scope0_id))}${_attr_class(["_Y", "_dn"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b1")}</label><div${_attr_class("_dl")}><span${_attr_class("_dm")}>Theme</span><span${_attr_class("_dp")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9821
9853
|
_for_of(themeOpts, (opt) => {
|
|
9822
|
-
const $
|
|
9854
|
+
const $scope49_id = _scope_id();
|
|
9823
9855
|
_html(`<button type=button${_attr_class([
|
|
9824
9856
|
"_bf",
|
|
9825
|
-
"
|
|
9857
|
+
"_dB",
|
|
9826
9858
|
{ ["_be"]: themeMode === opt.id }
|
|
9827
9859
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9828
9860
|
if (opt.id === "system") {
|
|
@@ -9835,287 +9867,287 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9835
9867
|
_scope_id();
|
|
9836
9868
|
icon_moon_default({ size: 14 });
|
|
9837
9869
|
}
|
|
9838
|
-
_html(`${_escape(opt.label)}</button>${_el_resume($
|
|
9839
|
-
_script($
|
|
9840
|
-
writeScope($
|
|
9870
|
+
_html(`${_escape(opt.label)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9871
|
+
_script($scope49_id, "A83");
|
|
9872
|
+
writeScope($scope49_id, {
|
|
9841
9873
|
f: opt?.id,
|
|
9842
9874
|
_: _scope_with_id($scope0_id)
|
|
9843
9875
|
});
|
|
9844
|
-
}, "id", $scope0_id, "
|
|
9845
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9846
|
-
_attr_select_value($scope0_id, "
|
|
9876
|
+
}, "id", $scope0_id, "b5", 1, 0, 1, 0, 1);
|
|
9877
|
+
_html(`</span><span${_attr_class(["_o", "_dq"])}>`);
|
|
9878
|
+
_attr_select_value($scope0_id, "b7", themeMode, _resume(function(v) {
|
|
9847
9879
|
setThemeMode(v);
|
|
9848
9880
|
}, "A2", $scope0_id), () => {
|
|
9849
|
-
_html(`<select${_attr_class(["_p", "
|
|
9881
|
+
_html(`<select${_attr_class(["_p", "_dr"])} aria-label="Color theme">`);
|
|
9850
9882
|
forOf(themeOpts, (opt) => {
|
|
9851
9883
|
_scope_id();
|
|
9852
9884
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9853
9885
|
});
|
|
9854
9886
|
_html("</select>");
|
|
9855
9887
|
});
|
|
9856
|
-
_html(`${_el_resume($scope0_id, "
|
|
9857
|
-
"
|
|
9858
|
-
"
|
|
9859
|
-
{ ["
|
|
9888
|
+
_html(`${_el_resume($scope0_id, "b7")}</span></span></div><div${_attr_class("_dl")}><span${_attr_class("_dm")}>Accent</span><span${_attr_class("_dC")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9889
|
+
"_dD",
|
|
9890
|
+
"_dG",
|
|
9891
|
+
{ ["_dE"]: !accent }
|
|
9860
9892
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9861
9893
|
_if(() => {
|
|
9862
9894
|
if (!accent) {
|
|
9863
|
-
const $
|
|
9895
|
+
const $scope126_id = _scope_id();
|
|
9864
9896
|
icon_check_default({
|
|
9865
9897
|
size: 12,
|
|
9866
|
-
class: "
|
|
9898
|
+
class: "_dF"
|
|
9867
9899
|
});
|
|
9868
|
-
$si__input_instance_accent && writeScope($
|
|
9900
|
+
$si__input_instance_accent && writeScope($scope126_id, {});
|
|
9869
9901
|
return 0;
|
|
9870
9902
|
}
|
|
9871
|
-
}, $scope0_id, "
|
|
9903
|
+
}, $scope0_id, "bb", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9872
9904
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9873
|
-
const $
|
|
9874
|
-
_html(`<button type=button${_attr_class(["
|
|
9905
|
+
const $scope79_id = _scope_id();
|
|
9906
|
+
_html(`<button type=button${_attr_class(["_dD", { ["_dE"]: 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)}>`);
|
|
9875
9907
|
_if(() => {
|
|
9876
9908
|
if (accent === p.value) {
|
|
9877
|
-
const $
|
|
9909
|
+
const $scope127_id = _scope_id();
|
|
9878
9910
|
icon_check_default({
|
|
9879
9911
|
size: 12,
|
|
9880
|
-
class: "
|
|
9912
|
+
class: "_dF"
|
|
9881
9913
|
});
|
|
9882
|
-
$si__input_instance_accent && writeScope($
|
|
9914
|
+
$si__input_instance_accent && writeScope($scope127_id, {});
|
|
9883
9915
|
return 0;
|
|
9884
9916
|
}
|
|
9885
|
-
}, $
|
|
9886
|
-
_script($
|
|
9887
|
-
writeScope($
|
|
9917
|
+
}, $scope79_id, "a", $sg__input_instance_accent, 1, $sg__input_instance_accent, "</button>", 1);
|
|
9918
|
+
_script($scope79_id, "A84");
|
|
9919
|
+
writeScope($scope79_id, {
|
|
9888
9920
|
d: p?.value,
|
|
9889
9921
|
_: _scope_with_id($scope0_id)
|
|
9890
9922
|
});
|
|
9891
|
-
}, "value", $scope0_id, "
|
|
9923
|
+
}, "value", $scope0_id, "bc", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9892
9924
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9893
9925
|
_html(`<label${_attr_class([
|
|
9894
|
-
"
|
|
9895
|
-
"
|
|
9896
|
-
{ ["
|
|
9897
|
-
])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "
|
|
9926
|
+
"_dD",
|
|
9927
|
+
"_dH",
|
|
9928
|
+
{ ["_dE"]: customOn }
|
|
9929
|
+
])}${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) {
|
|
9898
9930
|
setInstance({ accent: v });
|
|
9899
|
-
}, "A3", $scope0_id))}${_attr_class("
|
|
9931
|
+
}, "A3", $scope0_id))}${_attr_class("_dI")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "be")}`);
|
|
9900
9932
|
_if(() => {
|
|
9901
9933
|
if (customOn) {
|
|
9902
|
-
const $
|
|
9934
|
+
const $scope128_id = _scope_id();
|
|
9903
9935
|
icon_check_default({
|
|
9904
9936
|
size: 12,
|
|
9905
|
-
class: "
|
|
9937
|
+
class: "_dF"
|
|
9906
9938
|
});
|
|
9907
|
-
$si__input_instance_accent && writeScope($
|
|
9939
|
+
$si__input_instance_accent && writeScope($scope128_id, {});
|
|
9908
9940
|
return 0;
|
|
9909
9941
|
} else {
|
|
9910
|
-
const $
|
|
9942
|
+
const $scope129_id = _scope_id();
|
|
9911
9943
|
icon_plus_default({ size: 12 });
|
|
9912
|
-
$si__input_instance_accent && writeScope($
|
|
9944
|
+
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9913
9945
|
return 1;
|
|
9914
9946
|
}
|
|
9915
|
-
}, $scope0_id, "
|
|
9916
|
-
_html(`</label>${_el_resume($scope0_id, "
|
|
9947
|
+
}, $scope0_id, "bf", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9948
|
+
_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", "_cs"])}><div${_attr_class("_ct")}><div${_attr_class("_dJ")}><div${_attr_class("_cj")}>`);
|
|
9917
9949
|
_if(() => {
|
|
9918
9950
|
if (backupBusy === "preflight") {
|
|
9919
|
-
const $
|
|
9920
|
-
_html(`<span${_attr_class("
|
|
9921
|
-
writeScope($
|
|
9951
|
+
const $scope66_id = _scope_id();
|
|
9952
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9953
|
+
writeScope($scope66_id, {});
|
|
9922
9954
|
return 0;
|
|
9923
9955
|
} else {
|
|
9924
|
-
const $
|
|
9925
|
-
_html(`<span${_attr_class("
|
|
9926
|
-
writeScope($
|
|
9956
|
+
const $scope130_id = _scope_id();
|
|
9957
|
+
_html(`<span${_attr_class("_cm")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9958
|
+
writeScope($scope130_id, {});
|
|
9927
9959
|
return 1;
|
|
9928
9960
|
}
|
|
9929
|
-
}, $scope0_id, "
|
|
9961
|
+
}, $scope0_id, "bm", 1, 1, 1, "</div>", 1);
|
|
9930
9962
|
_if(() => {
|
|
9931
9963
|
if (!backupBusy && !preflight) {
|
|
9932
|
-
const $
|
|
9933
|
-
_html(`<button${_attr_class(btnSm)}>Export…</button>${_el_resume($
|
|
9934
|
-
_script($
|
|
9935
|
-
writeScope($
|
|
9964
|
+
const $scope76_id = _scope_id();
|
|
9965
|
+
_html(`<button${_attr_class(btnSm)}>Export…</button>${_el_resume($scope76_id, "a")}`);
|
|
9966
|
+
_script($scope76_id, "A85");
|
|
9967
|
+
writeScope($scope76_id, {});
|
|
9936
9968
|
return 0;
|
|
9937
9969
|
}
|
|
9938
|
-
}, $scope0_id, "
|
|
9970
|
+
}, $scope0_id, "bn", 1, 1, 1, 0, 1);
|
|
9939
9971
|
_html("</div>");
|
|
9940
9972
|
_if(() => {
|
|
9941
9973
|
if (preflight && !backupBusy) {
|
|
9942
|
-
const $
|
|
9943
|
-
_html(`<div${_attr_class("
|
|
9974
|
+
const $scope68_id = _scope_id();
|
|
9975
|
+
_html(`<div${_attr_class("_dL")}><p${_attr_class("_dM")}>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("_dM")}>Not in the file: `);
|
|
9944
9976
|
_if(() => {
|
|
9945
9977
|
if (preflight.unpushed) {
|
|
9946
|
-
const $
|
|
9947
|
-
_html(` ${_text_resume($
|
|
9978
|
+
const $scope69_id = _scope_id();
|
|
9979
|
+
_html(` ${_text_resume($scope69_id, "a", preflight.unpushed, 2)} unpushed commit${_text_resume($scope69_id, "b", preflight.unpushed === 1 ? "" : "s", 2)}`);
|
|
9948
9980
|
_if(() => {
|
|
9949
9981
|
if (preflight.files) {
|
|
9950
|
-
const $
|
|
9982
|
+
const $scope131_id = _scope_id();
|
|
9951
9983
|
_html(",");
|
|
9952
|
-
writeScope($
|
|
9984
|
+
writeScope($scope131_id, {});
|
|
9953
9985
|
return 0;
|
|
9954
9986
|
}
|
|
9955
|
-
}, $
|
|
9956
|
-
_subscribe($preflight_files__closures, _subscribe($preflight_unpushed__closures, writeScope($
|
|
9987
|
+
}, $scope69_id, "c");
|
|
9988
|
+
_subscribe($preflight_files__closures, _subscribe($preflight_unpushed__closures, writeScope($scope69_id, {})));
|
|
9957
9989
|
return 0;
|
|
9958
9990
|
}
|
|
9959
|
-
}, $
|
|
9960
|
-
_html(`${_text_resume($
|
|
9991
|
+
}, $scope68_id, "m");
|
|
9992
|
+
_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("_dN")}>`);
|
|
9961
9993
|
_for_of(preflight.workspaces, (w) => {
|
|
9962
|
-
const $
|
|
9994
|
+
const $scope132_id = _scope_id();
|
|
9963
9995
|
const $for_content17__w_name__closures = /* @__PURE__ */ new Set();
|
|
9964
|
-
_html(`<li${_attr_class("
|
|
9996
|
+
_html(`<li${_attr_class("_dO")}><span${_attr_class("_ck")}>${_text_resume($scope132_id, "c", w.name)}</span><ul${_attr_class("_dN")}>`);
|
|
9965
9997
|
_for_of(w.repos, (r) => {
|
|
9966
|
-
const $
|
|
9998
|
+
const $scope133_id = _scope_id();
|
|
9967
9999
|
const $for_content18__r_more__closures = /* @__PURE__ */ new Set();
|
|
9968
|
-
_html(`<li${_attr_class("
|
|
10000
|
+
_html(`<li${_attr_class("_dP")}><span${_attr_class("_dQ")}><span${_attr_class("_y")}>${_text_resume($scope133_id, "d", r.worktree)}/</span>`);
|
|
9969
10001
|
_for_of(r.unpushed, (b) => {
|
|
9970
|
-
const $
|
|
9971
|
-
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($
|
|
10002
|
+
const $scope134_id = _scope_id();
|
|
10003
|
+
_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 `);
|
|
9972
10004
|
_if(() => {
|
|
9973
10005
|
if (b.branch !== w.name) {
|
|
9974
|
-
const $
|
|
9975
|
-
_html(`<span${_attr_class("_y")}>${_text_resume($
|
|
9976
|
-
writeScope($
|
|
10006
|
+
const $scope137_id = _scope_id();
|
|
10007
|
+
_html(`<span${_attr_class("_y")}>${_text_resume($scope137_id, "b", b.branch)}</span>`);
|
|
10008
|
+
writeScope($scope137_id, {});
|
|
9977
10009
|
return 0;
|
|
9978
10010
|
}
|
|
9979
|
-
}, $
|
|
9980
|
-
_html(`</span>${_el_resume($
|
|
9981
|
-
_subscribe($for_content17__w_name__closures, writeScope($
|
|
9982
|
-
}, "branch", $
|
|
10011
|
+
}, $scope134_id, "c", 1, 1, 1, 0, 1);
|
|
10012
|
+
_html(`</span>${_el_resume($scope134_id, "a")}`);
|
|
10013
|
+
_subscribe($for_content17__w_name__closures, writeScope($scope134_id, { f: b?.branch }));
|
|
10014
|
+
}, "branch", $scope133_id, "e", 1, 1, 1, 0, 1);
|
|
9983
10015
|
_html("</span>");
|
|
9984
10016
|
_if(() => {
|
|
9985
10017
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9986
|
-
const $
|
|
9987
|
-
_html(`<ul${_attr_class("
|
|
10018
|
+
const $scope135_id = _scope_id();
|
|
10019
|
+
_html(`<ul${_attr_class("_dR")}>`);
|
|
9988
10020
|
_for_of(r.modified, (f) => {
|
|
9989
|
-
const $
|
|
9990
|
-
_html(`<li${_attr_class("
|
|
10021
|
+
const $scope138_id = _scope_id();
|
|
10022
|
+
_html(`<li${_attr_class("_dS")}><span${_attr_class([
|
|
9991
10023
|
"_N",
|
|
9992
10024
|
"_P",
|
|
9993
10025
|
tone.warn
|
|
9994
|
-
])} title="Modified, not committed">M</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($
|
|
9995
|
-
writeScope($
|
|
9996
|
-
}, (f) => f, $
|
|
10026
|
+
])} title="Modified, not committed">M</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($scope138_id, "d", f)}</span></li>`);
|
|
10027
|
+
writeScope($scope138_id, {});
|
|
10028
|
+
}, (f) => f, $scope135_id, "b", 1, 1, 1, 0, 1);
|
|
9997
10029
|
_for_of(r.untracked, (f) => {
|
|
9998
|
-
const $
|
|
9999
|
-
_html(`<li${_attr_class("
|
|
10000
|
-
writeScope($
|
|
10001
|
-
}, (f) => f, $
|
|
10030
|
+
const $scope139_id = _scope_id();
|
|
10031
|
+
_html(`<li${_attr_class("_dS")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($scope139_id, "d", f)}</span></li>`);
|
|
10032
|
+
writeScope($scope139_id, {});
|
|
10033
|
+
}, (f) => f, $scope135_id, "c", 1, 1, 1, 0, 1);
|
|
10002
10034
|
_for_of(r.ignored, (f) => {
|
|
10003
|
-
const $
|
|
10004
|
-
_html(`<li${_attr_class("
|
|
10005
|
-
writeScope($
|
|
10006
|
-
}, (f) => f, $
|
|
10035
|
+
const $scope140_id = _scope_id();
|
|
10036
|
+
_html(`<li${_attr_class("_dS")}><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>`);
|
|
10037
|
+
writeScope($scope140_id, {});
|
|
10038
|
+
}, (f) => f, $scope135_id, "d", 1, 1, 1, 0, 1);
|
|
10007
10039
|
_if(() => {
|
|
10008
10040
|
if (r.more) {
|
|
10009
|
-
const $
|
|
10010
|
-
_html(`<li${_attr_class(["
|
|
10011
|
-
_subscribe($for_content18__r_more__closures, writeScope($
|
|
10041
|
+
const $scope136_id = _scope_id();
|
|
10042
|
+
_html(`<li${_attr_class(["_dS", "_x"])}>+${_text_resume($scope136_id, "b", r.more, 2)} more</li>`);
|
|
10043
|
+
_subscribe($for_content18__r_more__closures, writeScope($scope136_id, {}));
|
|
10012
10044
|
return 0;
|
|
10013
10045
|
}
|
|
10014
|
-
}, $
|
|
10046
|
+
}, $scope135_id, "e", 1, 1, 1, 0, 1);
|
|
10015
10047
|
_html("</ul>");
|
|
10016
|
-
writeScope($
|
|
10048
|
+
writeScope($scope135_id, {});
|
|
10017
10049
|
return 0;
|
|
10018
10050
|
}
|
|
10019
|
-
}, $
|
|
10051
|
+
}, $scope133_id, "f", 1, 1, 1, 0, 1);
|
|
10020
10052
|
_html("</li>");
|
|
10021
|
-
writeScope($
|
|
10053
|
+
writeScope($scope133_id, {
|
|
10022
10054
|
k: r?.modified,
|
|
10023
10055
|
m: r?.untracked,
|
|
10024
10056
|
o: r?.ignored,
|
|
10025
10057
|
r: r?.more,
|
|
10026
10058
|
v: $for_content18__r_more__closures
|
|
10027
10059
|
});
|
|
10028
|
-
}, "worktree", $
|
|
10060
|
+
}, "worktree", $scope132_id, "d", 1, 1, 1, "</ul>", 1);
|
|
10029
10061
|
_html("</li>");
|
|
10030
|
-
writeScope($
|
|
10062
|
+
writeScope($scope132_id, {
|
|
10031
10063
|
g: w?.name,
|
|
10032
10064
|
i: $for_content17__w_name__closures
|
|
10033
10065
|
});
|
|
10034
|
-
}, "id", $
|
|
10035
|
-
_html(`<div${_attr_class("
|
|
10036
|
-
_script($
|
|
10037
|
-
writeScope($
|
|
10066
|
+
}, "id", $scope68_id, "o", 1, 1, 1, "</ul>", 1);
|
|
10067
|
+
_html(`<div${_attr_class("_dT")}><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>`);
|
|
10068
|
+
_script($scope68_id, "A86");
|
|
10069
|
+
writeScope($scope68_id, {});
|
|
10038
10070
|
return 0;
|
|
10039
10071
|
}
|
|
10040
|
-
}, $scope0_id, "
|
|
10041
|
-
_html(`</div><div${_attr_class("
|
|
10072
|
+
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
10073
|
+
_html(`</div><div${_attr_class("_ct")}><div${_attr_class("_dJ")}><div${_attr_class("_cj")}>`);
|
|
10042
10074
|
_if(() => {
|
|
10043
10075
|
if (backupBusy === "restore") {
|
|
10044
|
-
const $
|
|
10045
|
-
_html(`<span${_attr_class("
|
|
10046
|
-
writeScope($
|
|
10076
|
+
const $scope67_id = _scope_id();
|
|
10077
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope67_id, "c", backupLine || "Restoring…")}</span>`);
|
|
10078
|
+
writeScope($scope67_id, {});
|
|
10047
10079
|
return 0;
|
|
10048
10080
|
} else if (restoreDone) {
|
|
10049
|
-
const $
|
|
10050
|
-
_html(`<span${_attr_class("
|
|
10051
|
-
writeScope($
|
|
10081
|
+
const $scope75_id = _scope_id();
|
|
10082
|
+
_html(`<span${_attr_class("_cm")}>${_text_resume($scope75_id, "b", restoreDone)}</span>`);
|
|
10083
|
+
writeScope($scope75_id, {});
|
|
10052
10084
|
return 1;
|
|
10053
10085
|
} else {
|
|
10054
|
-
const $
|
|
10055
|
-
_html(`<span${_attr_class("
|
|
10056
|
-
writeScope($
|
|
10086
|
+
const $scope141_id = _scope_id();
|
|
10087
|
+
_html(`<span${_attr_class("_cm")}>Load a backup file. Repos clone in the background.</span>`);
|
|
10088
|
+
writeScope($scope141_id, {});
|
|
10057
10089
|
return 2;
|
|
10058
10090
|
}
|
|
10059
|
-
}, $scope0_id, "
|
|
10091
|
+
}, $scope0_id, "br", 1, 1, 1, "</div>", 1);
|
|
10060
10092
|
_if(() => {
|
|
10061
10093
|
if (!restorePreview && backupBusy !== "restore") {
|
|
10062
|
-
const $
|
|
10063
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
10064
|
-
_script($
|
|
10065
|
-
writeScope($
|
|
10094
|
+
const $scope77_id = _scope_id();
|
|
10095
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dK")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope77_id, "b")}</label>`);
|
|
10096
|
+
_script($scope77_id, "A87");
|
|
10097
|
+
writeScope($scope77_id, {});
|
|
10066
10098
|
return 0;
|
|
10067
10099
|
}
|
|
10068
|
-
}, $scope0_id, "
|
|
10100
|
+
}, $scope0_id, "bs", 1, 1, 1, 0, 1);
|
|
10069
10101
|
_html("</div>");
|
|
10070
10102
|
_if(() => {
|
|
10071
10103
|
if (restorePreview && backupBusy !== "restore") {
|
|
10072
|
-
const $
|
|
10104
|
+
const $scope70_id = _scope_id();
|
|
10073
10105
|
const { preview } = restorePreview;
|
|
10074
|
-
_html(`<div${_attr_class("
|
|
10106
|
+
_html(`<div${_attr_class("_dL")}><p${_attr_class("_dM")}>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>`);
|
|
10075
10107
|
_if(() => {
|
|
10076
10108
|
if (preview.workspaces.length) {
|
|
10077
|
-
const $
|
|
10109
|
+
const $scope71_id = _scope_id();
|
|
10078
10110
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
10079
10111
|
_for_of(preview.workspaces, (w) => {
|
|
10080
|
-
const $
|
|
10081
|
-
_html(`<li><label${_attr_class(["
|
|
10112
|
+
const $scope72_id = _scope_id();
|
|
10113
|
+
_html(`<li><label${_attr_class(["_dV", { ["_dX"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_dW")} 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>`);
|
|
10082
10114
|
_if(() => {
|
|
10083
10115
|
if (w.status === "archived") {
|
|
10084
|
-
const $
|
|
10116
|
+
const $scope145_id = _scope_id();
|
|
10085
10117
|
_html(`<span${_attr_class(["_N", "_P"])}>archived</span>`);
|
|
10086
|
-
writeScope($
|
|
10118
|
+
writeScope($scope145_id, {});
|
|
10087
10119
|
return 0;
|
|
10088
10120
|
}
|
|
10089
|
-
}, $
|
|
10121
|
+
}, $scope72_id, "g", 1, 1, 1, 0, 1);
|
|
10090
10122
|
_if(() => {
|
|
10091
10123
|
if (w.exists) {
|
|
10092
|
-
const $
|
|
10124
|
+
const $scope146_id = _scope_id();
|
|
10093
10125
|
_html(`<span${_attr_class("_N")}>already here</span>`);
|
|
10094
|
-
writeScope($
|
|
10126
|
+
writeScope($scope146_id, {});
|
|
10095
10127
|
return 0;
|
|
10096
10128
|
} else if (w.unknownHost) {
|
|
10097
|
-
const $
|
|
10098
|
-
_html(`<span${_attr_class(["_N", tone.warn])} title="Add this GitHub host above first">unknown host ${_text_resume($
|
|
10099
|
-
writeScope($
|
|
10129
|
+
const $scope144_id = _scope_id();
|
|
10130
|
+
_html(`<span${_attr_class(["_N", tone.warn])} title="Add this GitHub host above first">unknown host ${_text_resume($scope144_id, "b", w.unknownHost, 2)}</span>`);
|
|
10131
|
+
writeScope($scope144_id, {});
|
|
10100
10132
|
return 1;
|
|
10101
10133
|
}
|
|
10102
|
-
}, $
|
|
10103
|
-
_html(`</span><span${_attr_class("
|
|
10104
|
-
_script($
|
|
10105
|
-
_subscribe($restoreWs__closures, writeScope($
|
|
10134
|
+
}, $scope72_id, "h", 1, 1, 1, 0, 1);
|
|
10135
|
+
_html(`</span><span${_attr_class("_cm")}>${_text_resume($scope72_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope72_id, "a")}</li>`);
|
|
10136
|
+
_script($scope72_id, "A88");
|
|
10137
|
+
_subscribe($restoreWs__closures, writeScope($scope72_id, {
|
|
10106
10138
|
n: w?.unknownHost,
|
|
10107
10139
|
p: w?.id
|
|
10108
10140
|
}));
|
|
10109
|
-
}, "id", $
|
|
10110
|
-
_subscribe($preview_workspaces__closures, writeScope($
|
|
10141
|
+
}, "id", $scope71_id, "a", 1, 1, 1, "</ul>", 1);
|
|
10142
|
+
_subscribe($preview_workspaces__closures, writeScope($scope71_id, {}));
|
|
10111
10143
|
return 0;
|
|
10112
10144
|
} else {
|
|
10113
|
-
const $
|
|
10114
|
-
_html(`<p${_attr_class("
|
|
10115
|
-
writeScope($
|
|
10145
|
+
const $scope143_id = _scope_id();
|
|
10146
|
+
_html(`<p${_attr_class("_co")}>No workspaces in this file.</p>`);
|
|
10147
|
+
writeScope($scope143_id, {});
|
|
10116
10148
|
return 1;
|
|
10117
10149
|
}
|
|
10118
|
-
}, $
|
|
10150
|
+
}, $scope70_id, "f", 1, 1, 1, 0, 1);
|
|
10119
10151
|
const parts = [
|
|
10120
10152
|
{
|
|
10121
10153
|
key: "tools",
|
|
@@ -10144,50 +10176,50 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10144
10176
|
];
|
|
10145
10177
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
10146
10178
|
_for_of(parts, (p) => {
|
|
10147
|
-
const $
|
|
10179
|
+
const $scope73_id = _scope_id();
|
|
10148
10180
|
const $for_content10__p_missing__closures = /* @__PURE__ */ new Set();
|
|
10149
10181
|
const $for_content10__p_missing_length__closures = /* @__PURE__ */ new Set();
|
|
10150
10182
|
const $for_content10__p_total__closures = /* @__PURE__ */ new Set();
|
|
10151
10183
|
_if(() => {
|
|
10152
10184
|
if (p.total) {
|
|
10153
|
-
const $
|
|
10154
|
-
_html(`<li><label${_attr_class(["
|
|
10185
|
+
const $scope74_id = _scope_id();
|
|
10186
|
+
_html(`<li><label${_attr_class(["_dV", { ["_dX"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_dW")} 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")}>`);
|
|
10155
10187
|
_if(() => {
|
|
10156
10188
|
if (p.key === "settings") {
|
|
10157
|
-
const $
|
|
10158
|
-
_html(`${_text_resume($
|
|
10189
|
+
const $scope142_id = _scope_id();
|
|
10190
|
+
_html(`${_text_resume($scope142_id, "a", preview.settings)} value${_text_resume($scope142_id, "b", preview.settings === 1 ? "" : "s", 2)}`);
|
|
10159
10191
|
_if(() => {
|
|
10160
10192
|
if (p.missing.length) {
|
|
10161
|
-
const $
|
|
10162
|
-
_html(`, add host${_text_resume($
|
|
10163
|
-
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($
|
|
10193
|
+
const $scope147_id = _scope_id();
|
|
10194
|
+
_html(`, add host${_text_resume($scope147_id, "a", p.missing.length === 1 ? "" : "s", 2)} ${_text_resume($scope147_id, "b", p.missing.join(", "), 2)}`);
|
|
10195
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($scope147_id, { Ck: 1 })));
|
|
10164
10196
|
return 0;
|
|
10165
10197
|
}
|
|
10166
|
-
}, $
|
|
10167
|
-
_subscribe($for_content10__p_missing_length__closures, _subscribe($preview_settings__closures, writeScope($
|
|
10198
|
+
}, $scope142_id, "c");
|
|
10199
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($preview_settings__closures, writeScope($scope142_id, {})));
|
|
10168
10200
|
return 0;
|
|
10169
10201
|
} else if (p.missing.length) {
|
|
10170
|
-
const $
|
|
10171
|
-
_html(`${_text_resume($
|
|
10172
|
-
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($
|
|
10202
|
+
const $scope148_id = _scope_id();
|
|
10203
|
+
_html(`${_text_resume($scope148_id, "a", p.missing.length)} to install: ${_text_resume($scope148_id, "b", p.missing.join(", "), 2)}`);
|
|
10204
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($scope148_id, {
|
|
10173
10205
|
Cj: 1,
|
|
10174
10206
|
Ck: 2
|
|
10175
10207
|
})));
|
|
10176
10208
|
return 1;
|
|
10177
10209
|
} else {
|
|
10178
|
-
const $
|
|
10179
|
-
_html(`all ${_text_resume($
|
|
10180
|
-
_subscribe($for_content10__p_total__closures, writeScope($
|
|
10210
|
+
const $scope149_id = _scope_id();
|
|
10211
|
+
_html(`all ${_text_resume($scope149_id, "a", p.total, 2)} already installed`);
|
|
10212
|
+
_subscribe($for_content10__p_total__closures, writeScope($scope149_id, {}));
|
|
10181
10213
|
return 2;
|
|
10182
10214
|
}
|
|
10183
|
-
}, $
|
|
10184
|
-
_html(`</span></label>${_el_resume($
|
|
10185
|
-
_script($
|
|
10186
|
-
_subscribe($restoreParts__closures, writeScope($
|
|
10215
|
+
}, $scope74_id, "f", 1, 1, 1, "</span>");
|
|
10216
|
+
_html(`</span></label>${_el_resume($scope74_id, "a")}</li>`);
|
|
10217
|
+
_script($scope74_id, "A89");
|
|
10218
|
+
_subscribe($restoreParts__closures, writeScope($scope74_id, {}));
|
|
10187
10219
|
return 0;
|
|
10188
10220
|
}
|
|
10189
|
-
}, $
|
|
10190
|
-
writeScope($
|
|
10221
|
+
}, $scope73_id, "a", 1, 1, 1, 0, 1);
|
|
10222
|
+
writeScope($scope73_id, {
|
|
10191
10223
|
d: p?.total,
|
|
10192
10224
|
e: p?.missing,
|
|
10193
10225
|
f: p?.missing?.length,
|
|
@@ -10197,17 +10229,17 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10197
10229
|
k: $for_content10__p_missing_length__closures,
|
|
10198
10230
|
i: $for_content10__p_total__closures
|
|
10199
10231
|
});
|
|
10200
|
-
}, "key", $
|
|
10201
|
-
_html(`</ul><div${_attr_class("
|
|
10202
|
-
_script($
|
|
10203
|
-
writeScope($
|
|
10232
|
+
}, "key", $scope70_id, "h");
|
|
10233
|
+
_html(`</ul><div${_attr_class("_dT")}><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>`);
|
|
10234
|
+
_script($scope70_id, "A90");
|
|
10235
|
+
writeScope($scope70_id, {});
|
|
10204
10236
|
return 0;
|
|
10205
10237
|
}
|
|
10206
|
-
}, $scope0_id, "
|
|
10238
|
+
}, $scope0_id, "bt", 1, 1, 1, 0, 1);
|
|
10207
10239
|
_html("</div></div></section></div></div></div></div>");
|
|
10208
10240
|
_if(() => {
|
|
10209
10241
|
if (versionPick) {
|
|
10210
|
-
const $
|
|
10242
|
+
const $scope36_id = _scope_id();
|
|
10211
10243
|
_set_serialize_reason(10);
|
|
10212
10244
|
const $childScope21 = _peek_scope_id();
|
|
10213
10245
|
prompt_dialog_default({
|
|
@@ -10218,169 +10250,176 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10218
10250
|
open: versionPick != null,
|
|
10219
10251
|
openChange: _resume(function(o) {
|
|
10220
10252
|
if (!o) versionPick = null;
|
|
10221
|
-
}, "A49", $
|
|
10253
|
+
}, "A49", $scope36_id),
|
|
10222
10254
|
onSubmit: _resume(function(v) {
|
|
10223
10255
|
const pick = versionPick;
|
|
10224
10256
|
versionPick = null;
|
|
10225
10257
|
run(pick.id, "install", v);
|
|
10226
|
-
}, "A50", $
|
|
10258
|
+
}, "A50", $scope36_id)
|
|
10227
10259
|
});
|
|
10228
|
-
writeScope($
|
|
10260
|
+
writeScope($scope36_id, { a: _existing_scope($childScope21) });
|
|
10229
10261
|
return 0;
|
|
10230
10262
|
}
|
|
10231
|
-
}, $scope0_id, "
|
|
10263
|
+
}, $scope0_id, "bu", 1, 1, 1, 0, 1);
|
|
10232
10264
|
_script($scope0_id, "A91");
|
|
10233
10265
|
_script($scope0_id, "A92");
|
|
10234
10266
|
writeScope($scope0_id, {
|
|
10235
|
-
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
cp:
|
|
10255
|
-
cq:
|
|
10256
|
-
cr:
|
|
10257
|
-
cs:
|
|
10258
|
-
ct: versionPick
|
|
10259
|
-
cu:
|
|
10260
|
-
cv:
|
|
10261
|
-
cw:
|
|
10262
|
-
cx:
|
|
10263
|
-
cy:
|
|
10264
|
-
cz:
|
|
10265
|
-
d0:
|
|
10266
|
-
d1:
|
|
10267
|
-
d2:
|
|
10268
|
-
d3: self
|
|
10269
|
-
d4:
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
de: skills
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
dk:
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
dr:
|
|
10285
|
-
ds:
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
e1:
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
ek:
|
|
10304
|
-
el:
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
er: preflight?.contents?.
|
|
10309
|
-
es: preflight?.contents?.
|
|
10310
|
-
et: preflight?.
|
|
10311
|
-
eu: preflight?.
|
|
10312
|
-
ev: preflight?.
|
|
10313
|
-
ew:
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
f9:
|
|
10323
|
-
fa:
|
|
10324
|
-
fb:
|
|
10325
|
-
fc:
|
|
10326
|
-
fd:
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
fn:
|
|
10333
|
-
fo:
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10267
|
+
by: input.setupChange,
|
|
10268
|
+
bz: input.agentsChange,
|
|
10269
|
+
c0: input.preferred,
|
|
10270
|
+
c1: input.preferredChange,
|
|
10271
|
+
c3: input.instance,
|
|
10272
|
+
c4: input.instanceChange,
|
|
10273
|
+
c6: input.onExit,
|
|
10274
|
+
c9: $si__input_instance__OR__input_instanceChange && input.instance?.name,
|
|
10275
|
+
ca: setup,
|
|
10276
|
+
cb: setup?.agents,
|
|
10277
|
+
cd: setup?.missing,
|
|
10278
|
+
cf: ignoredSso,
|
|
10279
|
+
cg: readIgnoredSso,
|
|
10280
|
+
ch: usage,
|
|
10281
|
+
ci: usage?.agents,
|
|
10282
|
+
cj: usage?.error,
|
|
10283
|
+
ck: error,
|
|
10284
|
+
cm: active,
|
|
10285
|
+
cn: active?.size,
|
|
10286
|
+
cp: bulk?.action,
|
|
10287
|
+
cq: bulk?.done,
|
|
10288
|
+
cr: bulk?.total,
|
|
10289
|
+
cs: authCodes,
|
|
10290
|
+
ct: versionPick,
|
|
10291
|
+
cu: versionPick?.label,
|
|
10292
|
+
cv: versionPick?.newest,
|
|
10293
|
+
cw: versionPick?.current,
|
|
10294
|
+
cx: hostInput,
|
|
10295
|
+
cy: addingHost,
|
|
10296
|
+
cz: hostBusy,
|
|
10297
|
+
d0: query,
|
|
10298
|
+
d1: hits,
|
|
10299
|
+
d2: hits?.length,
|
|
10300
|
+
d3: self,
|
|
10301
|
+
d4: self?.install,
|
|
10302
|
+
d5: self?.latest,
|
|
10303
|
+
d6: self?.version,
|
|
10304
|
+
d7: selfUpdating,
|
|
10305
|
+
da: searching,
|
|
10306
|
+
dc: searchTimer.id,
|
|
10307
|
+
de: skills,
|
|
10308
|
+
df: skills?.global,
|
|
10309
|
+
dg: skills?.global?.length,
|
|
10310
|
+
dh: skills?.available,
|
|
10311
|
+
dk: skillQuery,
|
|
10312
|
+
dl: skillHits,
|
|
10313
|
+
dm: skillHits?.length,
|
|
10314
|
+
dn: skillSearching,
|
|
10315
|
+
dp: skillTimer.id,
|
|
10316
|
+
dr: machineOpen,
|
|
10317
|
+
ds: skillsOpen,
|
|
10318
|
+
dt: addingSkill,
|
|
10319
|
+
du: addingTool,
|
|
10320
|
+
dv: setThemeMode,
|
|
10321
|
+
dz: applySetup,
|
|
10322
|
+
e1: syncAgents,
|
|
10323
|
+
e2: retryWhenBack,
|
|
10324
|
+
e3: loadSetup,
|
|
10325
|
+
e4: loadSelf,
|
|
10326
|
+
e6: updateSelf,
|
|
10327
|
+
e7: loadUsage,
|
|
10328
|
+
e9: refresh,
|
|
10329
|
+
ea: refreshUsage,
|
|
10330
|
+
eb: setActive,
|
|
10331
|
+
ed: run,
|
|
10332
|
+
ef: skillSeq.applied,
|
|
10333
|
+
eg: skillSeq.issued,
|
|
10334
|
+
eh: applySkills,
|
|
10335
|
+
ek: loadSkills,
|
|
10336
|
+
el: runSkill,
|
|
10337
|
+
em: backupBusy,
|
|
10338
|
+
en: backupLine,
|
|
10339
|
+
eo: preflight,
|
|
10340
|
+
er: preflight?.contents?.workspaces,
|
|
10341
|
+
es: preflight?.contents?.archived,
|
|
10342
|
+
et: preflight?.contents?.tools,
|
|
10343
|
+
eu: preflight?.contents?.skills,
|
|
10344
|
+
ev: preflight?.contents?.agents,
|
|
10345
|
+
ew: preflight?.unpushed,
|
|
10346
|
+
ex: preflight?.files,
|
|
10347
|
+
ey: preflight?.workspaces,
|
|
10348
|
+
ez: restorePreview,
|
|
10349
|
+
f1: restoreWs,
|
|
10350
|
+
f2: restoreWs?.size,
|
|
10351
|
+
f3: restoreParts,
|
|
10352
|
+
f5: restoreDone,
|
|
10353
|
+
f7: downloadManifest,
|
|
10354
|
+
f9: startExport,
|
|
10355
|
+
fa: pickRestoreFile,
|
|
10356
|
+
fb: toggleRestoreWs,
|
|
10357
|
+
fc: runRestore,
|
|
10358
|
+
fd: searchSkills,
|
|
10359
|
+
fe: changeHost,
|
|
10360
|
+
ff: runEach,
|
|
10361
|
+
fg: setPreferred,
|
|
10362
|
+
fj: saveTimer.id,
|
|
10363
|
+
fl: setInstance,
|
|
10364
|
+
fn: setEnabled,
|
|
10365
|
+
fo: search,
|
|
10366
|
+
fp: outdated,
|
|
10367
|
+
fq: aliasPin,
|
|
10368
|
+
fr: tools,
|
|
10369
|
+
ft: missingInstallable,
|
|
10370
|
+
fu: missingInstallable?.length,
|
|
10371
|
+
fw: outdatedIds,
|
|
10372
|
+
fx: outdatedIds?.length,
|
|
10373
|
+
fy: activeLine,
|
|
10374
|
+
fz: families,
|
|
10375
|
+
g1: families.length,
|
|
10376
|
+
g3: instanceIds,
|
|
10377
|
+
g5: accountsFor,
|
|
10378
|
+
g6: strayAccountsFor,
|
|
10379
|
+
ge: $si__input_instance__OR__input_instanceChange && accent,
|
|
10380
|
+
gk: restorePreview?.preview?.from?.host,
|
|
10381
|
+
gl: restorePreview?.preview?.from?.exportedAt,
|
|
10382
|
+
gm: restorePreview?.preview?.from?.version,
|
|
10383
|
+
gn: restorePreview?.preview?.workspaces,
|
|
10384
|
+
go: restorePreview?.preview?.workspaces?.length,
|
|
10385
|
+
gp: restorePreview?.preview?.tools,
|
|
10386
|
+
gq: restorePreview?.preview?.skills,
|
|
10387
|
+
gr: restorePreview?.preview?.agents,
|
|
10388
|
+
gs: restorePreview?.preview?.hosts,
|
|
10389
|
+
gt: restorePreview?.preview?.settings,
|
|
10390
|
+
h0: $refreshing__closures,
|
|
10353
10391
|
d: _serialize_if($scope0_reason, 1) && _existing_scope($childScope2),
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10392
|
+
gw: $setup_missing__closures,
|
|
10393
|
+
gz: $error__closures,
|
|
10394
|
+
hj: $self_latest__closures,
|
|
10395
|
+
hk: $self_version__closures,
|
|
10396
|
+
h1: $active__closures,
|
|
10397
|
+
gu: $si__input_preferred && $input_preferred__closures,
|
|
10398
|
+
il: $accountsFor2__closures,
|
|
10399
|
+
h6: $authCodes__closures,
|
|
10400
|
+
hy: $si__input_setupChange && $refresh2__closures,
|
|
10401
|
+
hz: $run2__closures,
|
|
10364
10402
|
a8: _existing_scope($childScope14),
|
|
10365
|
-
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10403
|
+
hs: $skillQuery__closures,
|
|
10404
|
+
ht: $skillHits__closures,
|
|
10405
|
+
hu: $skillHits_length__closures,
|
|
10406
|
+
hv: $skillSearching__closures,
|
|
10407
|
+
ho: $skills__closures,
|
|
10408
|
+
hr: $skills_available__closures,
|
|
10371
10409
|
ag: _existing_scope($childScope18),
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
hg: $
|
|
10376
|
-
|
|
10377
|
-
|
|
10378
|
-
|
|
10379
|
-
|
|
10380
|
-
|
|
10381
|
-
|
|
10382
|
-
|
|
10383
|
-
|
|
10410
|
+
h2: $active_size__closures,
|
|
10411
|
+
he: $query__closures,
|
|
10412
|
+
hf: $hits__closures,
|
|
10413
|
+
hg: $hits_length__closures,
|
|
10414
|
+
hn: $searching__closures,
|
|
10415
|
+
hi: $self_install__closures,
|
|
10416
|
+
hl: $selfUpdating__closures,
|
|
10417
|
+
i6: $preflight_unpushed__closures,
|
|
10418
|
+
i7: $preflight_files__closures,
|
|
10419
|
+
i9: $restoreWs__closures,
|
|
10420
|
+
ir: $preview_workspaces__closures,
|
|
10421
|
+
ix: $preview_settings__closures,
|
|
10422
|
+
ib: $restoreParts__closures
|
|
10384
10423
|
});
|
|
10385
10424
|
_resume_branch($scope0_id);
|
|
10386
10425
|
});
|
|
@@ -10428,13 +10467,13 @@ function vapidKey(base64) {
|
|
|
10428
10467
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10429
10468
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10430
10469
|
}
|
|
10431
|
-
var iconBtn = "
|
|
10432
|
-
var settingsDot = "
|
|
10433
|
-
var navToggle = "
|
|
10470
|
+
var iconBtn = "_bQ _l";
|
|
10471
|
+
var settingsDot = "_bR _bb";
|
|
10472
|
+
var navToggle = "_bV _l";
|
|
10434
10473
|
//#endregion
|
|
10435
10474
|
//#region src/styles/session-pop.css.ts
|
|
10436
|
-
var sessionPop = "
|
|
10437
|
-
var sessionPopBtn = "
|
|
10475
|
+
var sessionPop = "_bN _9";
|
|
10476
|
+
var sessionPopBtn = "_bO _I";
|
|
10438
10477
|
_template("W", (input) => {
|
|
10439
10478
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10440
10479
|
const $scope0_id = _scope_id();
|
|
@@ -10488,14 +10527,14 @@ function activeAgent(session) {
|
|
|
10488
10527
|
const command = session.state?.command?.trim();
|
|
10489
10528
|
return command && agentFromCommand(command) || session.agent;
|
|
10490
10529
|
}
|
|
10491
|
-
var heroTag = "
|
|
10492
|
-
var rowState = "
|
|
10493
|
-
var prChip = "
|
|
10494
|
-
var portChip = "
|
|
10530
|
+
var heroTag = "_e5 _N _Q";
|
|
10531
|
+
var rowState = "_fg _N";
|
|
10532
|
+
var prChip = "_h5 _u _h4";
|
|
10533
|
+
var portChip = "_h6 _u _h4";
|
|
10495
10534
|
var prState = {
|
|
10496
|
-
open: "
|
|
10497
|
-
merged: "
|
|
10498
|
-
closed: "
|
|
10535
|
+
open: "_h_",
|
|
10536
|
+
merged: "_ia",
|
|
10537
|
+
closed: "_ib"
|
|
10499
10538
|
};
|
|
10500
10539
|
//#endregion
|
|
10501
10540
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10576,7 +10615,7 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10576
10615
|
const name = repo.full_name.split("/").at(-1);
|
|
10577
10616
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel$1(repo.full_name) : name;
|
|
10578
10617
|
}, "B3", $scope1_id);
|
|
10579
|
-
_html(`<div${_attr_class("
|
|
10618
|
+
_html(`<div${_attr_class("_h3")}>`);
|
|
10580
10619
|
_for_of(repos, (repo) => {
|
|
10581
10620
|
const $scope2_id = _scope_id();
|
|
10582
10621
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10592,11 +10631,11 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10592
10631
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10593
10632
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10594
10633
|
}
|
|
10595
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10634
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_h7", { ["_ie"]: !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")}`);
|
|
10596
10635
|
_if(() => {
|
|
10597
10636
|
if (open) {
|
|
10598
10637
|
const $scope4_id = _scope_id();
|
|
10599
|
-
_html(`<a${_attr_class(["
|
|
10638
|
+
_html(`<a${_attr_class(["_h7", "_h8"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10600
10639
|
icon_diff_default({ size: 12 });
|
|
10601
10640
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10602
10641
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10604,9 +10643,9 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10604
10643
|
} else {
|
|
10605
10644
|
const $scope5_id = _scope_id();
|
|
10606
10645
|
_html(`<button type=button${_attr_class([
|
|
10607
|
-
"
|
|
10608
|
-
"
|
|
10609
|
-
"
|
|
10646
|
+
"_h7",
|
|
10647
|
+
"_h8",
|
|
10648
|
+
"_h9"
|
|
10610
10649
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10611
10650
|
icon_xmark_default({ size: 12 });
|
|
10612
10651
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
@@ -10634,12 +10673,12 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10634
10673
|
_if(() => {
|
|
10635
10674
|
if (dead.has(p.port)) {
|
|
10636
10675
|
const $scope7_id = _scope_id();
|
|
10637
|
-
_html(`<span${_attr_class(["
|
|
10676
|
+
_html(`<span${_attr_class(["_h7", "_ic"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10638
10677
|
_subscribe($dead__closures, writeScope($scope7_id, { Cy: 1 }));
|
|
10639
10678
|
return 0;
|
|
10640
10679
|
} else {
|
|
10641
10680
|
const $scope8_id = _scope_id();
|
|
10642
|
-
_html(`<button type=button${_attr_class(["
|
|
10681
|
+
_html(`<button type=button${_attr_class(["_h7", "_id"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10643
10682
|
_script($scope8_id, "B6");
|
|
10644
10683
|
writeScope($scope8_id, {});
|
|
10645
10684
|
return 1;
|
|
@@ -10648,9 +10687,9 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10648
10687
|
const $childScope = _peek_scope_id();
|
|
10649
10688
|
arm_button_default({
|
|
10650
10689
|
class: [
|
|
10651
|
-
"
|
|
10652
|
-
"
|
|
10653
|
-
"
|
|
10690
|
+
"_h7",
|
|
10691
|
+
"_h8",
|
|
10692
|
+
"_h9"
|
|
10654
10693
|
],
|
|
10655
10694
|
title: `Kill ${p.cmd} (pid ${p.pid})`,
|
|
10656
10695
|
armedTitle: "Kill?",
|
|
@@ -10697,12 +10736,12 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10697
10736
|
});
|
|
10698
10737
|
_resume_branch($scope0_id);
|
|
10699
10738
|
});
|
|
10700
|
-
var railBtn = "
|
|
10701
|
-
var wsBtn = "
|
|
10702
|
-
var rowIcon = "
|
|
10703
|
-
var close = "
|
|
10704
|
-
var sessRename$1 = "
|
|
10705
|
-
var sessBtn$1 = "
|
|
10739
|
+
var railBtn = "_fl _l";
|
|
10740
|
+
var wsBtn = "_fp _I";
|
|
10741
|
+
var rowIcon = "_fs _3 _l";
|
|
10742
|
+
var close = "_ft _6 _l _7";
|
|
10743
|
+
var sessRename$1 = "_fz _J";
|
|
10744
|
+
var sessBtn$1 = "_fB _I";
|
|
10706
10745
|
//#endregion
|
|
10707
10746
|
//#region src/tags/icons/icon-manage.marko
|
|
10708
10747
|
var icon_manage_default = _template("jb", (input) => {
|
|
@@ -10817,7 +10856,7 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10817
10856
|
_if(() => {
|
|
10818
10857
|
if (input.rail) {
|
|
10819
10858
|
const $scope2_id = _scope_id();
|
|
10820
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10859
|
+
_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([
|
|
10821
10860
|
"_A",
|
|
10822
10861
|
phase[dot$1],
|
|
10823
10862
|
"_bb"
|
|
@@ -10827,31 +10866,31 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10827
10866
|
} else if (ws$1.pending) {
|
|
10828
10867
|
const $scope3_id = _scope_id();
|
|
10829
10868
|
_html(`<section${_attr_class([
|
|
10830
|
-
"
|
|
10831
|
-
"
|
|
10832
|
-
{ ["
|
|
10833
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10869
|
+
"_fn",
|
|
10870
|
+
"_fD",
|
|
10871
|
+
{ ["_fm"]: input.page }
|
|
10872
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fo")}><div${_attr_class(wsBtn)}>`);
|
|
10834
10873
|
_if(() => {
|
|
10835
10874
|
if (ws$1.pending_error) {
|
|
10836
10875
|
const $scope11_id = _scope_id();
|
|
10837
10876
|
icon_warning_default({
|
|
10838
10877
|
size: 12,
|
|
10839
|
-
class: "
|
|
10878
|
+
class: "_fF"
|
|
10840
10879
|
});
|
|
10841
10880
|
$si__input_workspace && writeScope($scope11_id, {});
|
|
10842
10881
|
return 0;
|
|
10843
10882
|
} else {
|
|
10844
10883
|
const $scope12_id = _scope_id();
|
|
10845
|
-
_html(`<span${_attr_class(["_G", "
|
|
10884
|
+
_html(`<span${_attr_class(["_G", "_fE"])}></span>`);
|
|
10846
10885
|
$si__input_workspace && writeScope($scope12_id, {});
|
|
10847
10886
|
return 1;
|
|
10848
10887
|
}
|
|
10849
10888
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10850
|
-
_html(`<span${_attr_class("
|
|
10889
|
+
_html(`<span${_attr_class("_fv")}><span${_attr_class("_fw")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_fH")}${_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>`);
|
|
10851
10890
|
_if(() => {
|
|
10852
10891
|
if (ws$1.pending_error && !retrying) {
|
|
10853
10892
|
const $scope10_id = _scope_id();
|
|
10854
|
-
_html(`<div${_attr_class("
|
|
10893
|
+
_html(`<div${_attr_class("_fG")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope10_id, "b")}`);
|
|
10855
10894
|
arm_button_default({
|
|
10856
10895
|
class: ["_q", btnSm],
|
|
10857
10896
|
title: "Delete workspace",
|
|
@@ -10882,11 +10921,11 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10882
10921
|
const $scope4_id = _scope_id();
|
|
10883
10922
|
const sessions$1 = input.sessions || [];
|
|
10884
10923
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10885
|
-
_html(`<section${_attr_class(["
|
|
10886
|
-
["
|
|
10924
|
+
_html(`<section${_attr_class(["_fn", {
|
|
10925
|
+
["_fi"]: input.current,
|
|
10887
10926
|
["_bc"]: input.current,
|
|
10888
|
-
["
|
|
10889
|
-
}])}><div${_attr_class("
|
|
10927
|
+
["_fk"]: input.menuOpen
|
|
10928
|
+
}])}><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)}`);
|
|
10890
10929
|
_if(() => {
|
|
10891
10930
|
if (sessions$1.length === 1) {
|
|
10892
10931
|
const $scope14_id = _scope_id();
|
|
@@ -10898,7 +10937,7 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10898
10937
|
icon_agent_default({
|
|
10899
10938
|
agent: activeAgent(sessions$1[0]),
|
|
10900
10939
|
size: 12,
|
|
10901
|
-
class: "
|
|
10940
|
+
class: "_fu"
|
|
10902
10941
|
});
|
|
10903
10942
|
$si__input_sessions && writeScope($scope14_id, {
|
|
10904
10943
|
_: _scope_with_id($scope4_id),
|
|
@@ -10907,7 +10946,7 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10907
10946
|
return 0;
|
|
10908
10947
|
}
|
|
10909
10948
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview);
|
|
10910
|
-
_html(`<span${_attr_class("
|
|
10949
|
+
_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")}>`);
|
|
10911
10950
|
_if(() => {
|
|
10912
10951
|
if (input.onNewSession) {
|
|
10913
10952
|
const $scope5_id = _scope_id();
|
|
@@ -10935,19 +10974,19 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10935
10974
|
return 0;
|
|
10936
10975
|
}
|
|
10937
10976
|
}, $scope4_id, "k", $sg__input_onReview, $sg__input_onReview, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10938
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
10977
|
+
_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" : ""}>`);
|
|
10939
10978
|
icon_manage_default({ size: 12 });
|
|
10940
|
-
_html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("
|
|
10979
|
+
_html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("_fA")}>`);
|
|
10941
10980
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10942
10981
|
const $scope6_id = _scope_id();
|
|
10943
|
-
_html(`<div${_attr_class(["
|
|
10982
|
+
_html(`<div${_attr_class(["_fr", { ["_fi"]: s.id === input.currentTab }])}>`);
|
|
10944
10983
|
_if(() => {
|
|
10945
10984
|
if (renamingId === s.id) {
|
|
10946
10985
|
const $scope7_id = _scope_id();
|
|
10947
10986
|
_html(`<span${_attr_class([
|
|
10948
10987
|
"_A",
|
|
10949
10988
|
phase[sessionPhase(s.state)],
|
|
10950
|
-
"
|
|
10989
|
+
"_fy"
|
|
10951
10990
|
])}></span>${_el_resume($scope7_id, "a", $sg__input_sessions)}`);
|
|
10952
10991
|
_set_serialize_reason({
|
|
10953
10992
|
1: $sg__input_sessions,
|
|
@@ -10957,7 +10996,7 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10957
10996
|
icon_agent_default({
|
|
10958
10997
|
agent: activeAgent(s),
|
|
10959
10998
|
size: 12,
|
|
10960
|
-
class: "
|
|
10999
|
+
class: "_fC"
|
|
10961
11000
|
});
|
|
10962
11001
|
const $childScope3 = _peek_scope_id();
|
|
10963
11002
|
rename_input_default({
|
|
@@ -10988,9 +11027,9 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10988
11027
|
icon_agent_default({
|
|
10989
11028
|
agent: activeAgent(s),
|
|
10990
11029
|
size: 12,
|
|
10991
|
-
class: "
|
|
11030
|
+
class: "_fC"
|
|
10992
11031
|
});
|
|
10993
|
-
_html(`<span${_attr_class("
|
|
11032
|
+
_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">`);
|
|
10994
11033
|
icon_edit_default({ size: 12 });
|
|
10995
11034
|
_html(`</button>${_el_resume($scope8_id, "f")}`);
|
|
10996
11035
|
arm_button_default({
|
|
@@ -11113,11 +11152,11 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11113
11152
|
const sessions = input.sessions || st?.sessions || [];
|
|
11114
11153
|
const manySessions = sessions.length > 1;
|
|
11115
11154
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11116
|
-
_html(`<div${_attr_class("
|
|
11155
|
+
_html(`<div${_attr_class("_e1")}>`);
|
|
11117
11156
|
_if(() => {
|
|
11118
11157
|
if (ws) {
|
|
11119
11158
|
const $scope1_id = _scope_id();
|
|
11120
|
-
_html(`<section${_attr_class("
|
|
11159
|
+
_html(`<section${_attr_class("_e2")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_e3")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11121
11160
|
_if(() => {
|
|
11122
11161
|
if (sessions.length === 1) {
|
|
11123
11162
|
const $scope8_id = _scope_id();
|
|
@@ -11129,7 +11168,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11129
11168
|
icon_agent_default({
|
|
11130
11169
|
agent: activeAgent(sessions[0]),
|
|
11131
11170
|
size: 16,
|
|
11132
|
-
class: "
|
|
11171
|
+
class: "_e7"
|
|
11133
11172
|
});
|
|
11134
11173
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
|
|
11135
11174
|
_: _scope_with_id($scope1_id),
|
|
@@ -11138,14 +11177,14 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11138
11177
|
return 0;
|
|
11139
11178
|
}
|
|
11140
11179
|
}, $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);
|
|
11141
|
-
_html(`<span${_attr_class("
|
|
11180
|
+
_html(`<span${_attr_class("_e4")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class(heroTag)}>current</span><span${_attr_class("_e6")}>${_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)}`);
|
|
11142
11181
|
_if(() => {
|
|
11143
11182
|
if (manySessions) {
|
|
11144
11183
|
const $scope2_id = _scope_id();
|
|
11145
|
-
_html(`<div${_attr_class("
|
|
11184
|
+
_html(`<div${_attr_class("_e8")}>`);
|
|
11146
11185
|
_for_of(sessions, (s) => {
|
|
11147
11186
|
const $scope3_id = _scope_id();
|
|
11148
|
-
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["
|
|
11187
|
+
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_e_", { ["_e9"]: 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)}`);
|
|
11149
11188
|
_set_serialize_reason({
|
|
11150
11189
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11151
11190
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11155,7 +11194,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11155
11194
|
agent: activeAgent(s),
|
|
11156
11195
|
size: 14
|
|
11157
11196
|
});
|
|
11158
|
-
_html(`<span${_attr_class("
|
|
11197
|
+
_html(`<span${_attr_class("_fa")}>${_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))}`);
|
|
11159
11198
|
$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, {
|
|
11160
11199
|
h: $si__input_tab && s?.id,
|
|
11161
11200
|
_: _scope_with_id($scope2_id),
|
|
@@ -11184,7 +11223,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11184
11223
|
_if(() => {
|
|
11185
11224
|
if (input.ids.length) {
|
|
11186
11225
|
const $scope4_id = _scope_id();
|
|
11187
|
-
_html(`<div${_attr_class("
|
|
11226
|
+
_html(`<div${_attr_class("_fb")}>`);
|
|
11188
11227
|
_for_of(input.ids, (id) => {
|
|
11189
11228
|
const $scope5_id = _scope_id();
|
|
11190
11229
|
const w = input.byId.get(id);
|
|
@@ -11228,7 +11267,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11228
11267
|
const rp = phaseOf(rs);
|
|
11229
11268
|
const rowSessions = rs?.sessions || [];
|
|
11230
11269
|
const many = rowSessions.length > 1;
|
|
11231
|
-
_html(`<div${_attr_class("
|
|
11270
|
+
_html(`<div${_attr_class("_fc")}><a${_attr("href", `/w/${id}`)}${_attr_class("_fd")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope7_id, "c", $sg__input_allStatus__OR__input_ids)}`);
|
|
11232
11271
|
_if(() => {
|
|
11233
11272
|
if (rowSessions.length === 1) {
|
|
11234
11273
|
const $scope9_id = _scope_id();
|
|
@@ -11240,7 +11279,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11240
11279
|
icon_agent_default({
|
|
11241
11280
|
agent: activeAgent(rowSessions[0]),
|
|
11242
11281
|
size: 16,
|
|
11243
|
-
class: "
|
|
11282
|
+
class: "_ff"
|
|
11244
11283
|
});
|
|
11245
11284
|
$si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
|
|
11246
11285
|
_: _scope_with_id($scope7_id),
|
|
@@ -11249,7 +11288,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11249
11288
|
return 0;
|
|
11250
11289
|
}
|
|
11251
11290
|
}, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
|
|
11252
|
-
_html(`<span${_attr_class("
|
|
11291
|
+
_html(`<span${_attr_class("_fe")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
|
|
11253
11292
|
_if(() => {
|
|
11254
11293
|
if (many) {
|
|
11255
11294
|
const $scope10_id = _scope_id();
|
|
@@ -11260,7 +11299,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11260
11299
|
}, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
|
|
11261
11300
|
icon_chevron_right_default({
|
|
11262
11301
|
size: 14,
|
|
11263
|
-
class: "
|
|
11302
|
+
class: "_fh"
|
|
11264
11303
|
});
|
|
11265
11304
|
_html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
|
|
11266
11305
|
_set_serialize_reason($sg__input_ids);
|
|
@@ -11380,13 +11419,13 @@ var usage_bars_default = _template("J", (input) => {
|
|
|
11380
11419
|
if (windows.length) {
|
|
11381
11420
|
const $scope1_id = _scope_id();
|
|
11382
11421
|
_html(`<span${_attr_class([
|
|
11383
|
-
"
|
|
11422
|
+
"_hK",
|
|
11384
11423
|
input.class,
|
|
11385
|
-
{ ["
|
|
11424
|
+
{ ["_hL"]: agent.stale_seconds != null }
|
|
11386
11425
|
])} role=img${_attr("aria-label", `Plan usage: ${summary}`)}${agent.stale_seconds != null ? _attr("title", `${summary} — ${agent.note || "provider unreachable"}; last cached numbers`) : _attr("title", summary)}>`);
|
|
11387
11426
|
_for_of(windows, (win) => {
|
|
11388
11427
|
const $scope2_id = _scope_id();
|
|
11389
|
-
_html(`<span${_attr_class(["
|
|
11428
|
+
_html(`<span${_attr_class(["_hM", win.used_percent >= 90 ? "_hQ" : win.used_percent >= 70 ? "_hP" : win.used_percent >= 40 ? "_hO" : "_hN"])}${_attr_style(`--pct:${Math.max(2, Math.min(100, win.used_percent))}%`)}></span>${_el_resume($scope2_id, "a", $sg__input_agent)}`);
|
|
11390
11429
|
$si__input_agent && writeScope($scope2_id, {});
|
|
11391
11430
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
11392
11431
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -11418,7 +11457,7 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11418
11457
|
const plan = openSess ? usageFor$1(openSess.agent, usage) : null;
|
|
11419
11458
|
const all = usage?.agents || [];
|
|
11420
11459
|
const peak = Math.max(0, ...(plan?.windows || []).map((w) => w.used_percent));
|
|
11421
|
-
const ringTone = _resume((pct) => pct >= 90 ? "
|
|
11460
|
+
const ringTone = _resume((pct) => pct >= 90 ? "_eP" : pct >= 70 ? "_eO" : pct >= 40 ? "_eN" : "_eM", "r0");
|
|
11422
11461
|
let card$2 = null;
|
|
11423
11462
|
const showCard = _resume((el) => {
|
|
11424
11463
|
const r = el.getBoundingClientRect();
|
|
@@ -11430,18 +11469,18 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11430
11469
|
_if(() => {
|
|
11431
11470
|
if (plan) {
|
|
11432
11471
|
const $scope1_id = _scope_id();
|
|
11433
|
-
_html(`<span${_attr_class("
|
|
11472
|
+
_html(`<span${_attr_class("_eG")} tabindex=0>`);
|
|
11434
11473
|
_set_serialize_reason(1);
|
|
11435
11474
|
const $childScope = _peek_scope_id();
|
|
11436
11475
|
usage_bars_default({
|
|
11437
|
-
class: "
|
|
11476
|
+
class: "_eI",
|
|
11438
11477
|
agent: plan
|
|
11439
11478
|
});
|
|
11440
|
-
_html(`<svg${_attr_class(["
|
|
11479
|
+
_html(`<svg${_attr_class(["_eJ", ringTone(peak)])} viewBox="0 0 16 16" width=16 height=16 aria-hidden=true><circle${_attr_class("_eK")} cx=8 cy=8 r=6.5></circle><circle${_attr_class("_eL")} cx=8 cy=8 r=6.5${_attr_style(`stroke-dasharray:${Math.max(2, Math.min(100, peak)) / 100 * 40.84} 40.84`)}></circle>${_el_resume($scope1_id, "e")}</svg>${_el_resume($scope1_id, "c")}</span>${_el_resume($scope1_id, "a")}`);
|
|
11441
11480
|
_if(() => {
|
|
11442
11481
|
if (card$2) {
|
|
11443
11482
|
const $scope2_id = _scope_id();
|
|
11444
|
-
_html(`<div${_attr_class(["_9", "
|
|
11483
|
+
_html(`<div${_attr_class(["_9", "_eH"])}${_attr_style(`left:${card$2.left}px;bottom:${card$2.bottom}px`)} role=tooltip>`);
|
|
11445
11484
|
_for_of(all, (a) => {
|
|
11446
11485
|
const $scope3_id = _scope_id();
|
|
11447
11486
|
_set_serialize_reason(6);
|
|
@@ -11538,14 +11577,14 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11538
11577
|
const backHref = ws ? `/w/${ws.id}` : "/new";
|
|
11539
11578
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11540
11579
|
const pageIds = orderedIds.filter((id) => id !== ws?.id);
|
|
11541
|
-
_html(`<aside${_attr_class(["
|
|
11542
|
-
["
|
|
11543
|
-
["
|
|
11580
|
+
_html(`<aside${_attr_class(["_bU", {
|
|
11581
|
+
["_bS"]: !navOpen,
|
|
11582
|
+
["_bT"]: isPage
|
|
11544
11583
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11545
11584
|
_if(() => {
|
|
11546
11585
|
if (isPage) {
|
|
11547
11586
|
const $scope1_id = _scope_id();
|
|
11548
|
-
_html(`<div${_attr_class("
|
|
11587
|
+
_html(`<div${_attr_class("_bX")}>`);
|
|
11549
11588
|
_set_serialize_reason({
|
|
11550
11589
|
3: $sg__input_instanceName,
|
|
11551
11590
|
6: $sg__input_instanceName
|
|
@@ -11554,7 +11593,7 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11554
11593
|
if (input.instanceName) $meta = attrTag({ content: _content_resume("D8", () => {
|
|
11555
11594
|
_scope_reason();
|
|
11556
11595
|
const $scope2_id = _scope_id();
|
|
11557
|
-
_html(`<span${_attr_class("
|
|
11596
|
+
_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>`);
|
|
11558
11597
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11559
11598
|
_resume_branch($scope2_id);
|
|
11560
11599
|
}, $scope1_id) });
|
|
@@ -11569,7 +11608,7 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11569
11608
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11570
11609
|
iconBtnRow,
|
|
11571
11610
|
iconBtn,
|
|
11572
|
-
{ ["
|
|
11611
|
+
{ ["_bP"]: view === "settings" }
|
|
11573
11612
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11574
11613
|
icon_settings_default({ size: 16 });
|
|
11575
11614
|
_if(() => {
|
|
@@ -11593,7 +11632,7 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11593
11632
|
_if(() => {
|
|
11594
11633
|
if (!isPage && input.instanceName) {
|
|
11595
11634
|
const $scope4_id = _scope_id();
|
|
11596
|
-
_html(`<div${_attr_class("
|
|
11635
|
+
_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>`);
|
|
11597
11636
|
writeScope($scope4_id, {});
|
|
11598
11637
|
return 0;
|
|
11599
11638
|
}
|
|
@@ -11661,7 +11700,7 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11661
11700
|
b: _serialize_if($scope0_reason, 21) && _existing_scope($childScope3)
|
|
11662
11701
|
});
|
|
11663
11702
|
}, (a) => a, $scope6_id, "a", $sg__input_agents, 1, $sg__input_workspace__OR__input_allWorkspaces__OR__input_agents, "</div>", 1);
|
|
11664
|
-
_html(`<div${_attr_class("
|
|
11703
|
+
_html(`<div${_attr_class("_b3")}>`);
|
|
11665
11704
|
_for_of(orderedIds, (wsId) => {
|
|
11666
11705
|
const $scope8_id = _scope_id();
|
|
11667
11706
|
_set_serialize_reason({
|
|
@@ -11738,7 +11777,7 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11738
11777
|
_if(() => {
|
|
11739
11778
|
if (!navOpen) {
|
|
11740
11779
|
const $scope9_id = _scope_id();
|
|
11741
|
-
_html(`<div${_attr_class("
|
|
11780
|
+
_html(`<div${_attr_class("_b4")}>`);
|
|
11742
11781
|
_for_of(orderedIds, (wsId, i) => {
|
|
11743
11782
|
const $scope10_id = _scope_id();
|
|
11744
11783
|
_set_serialize_reason({
|
|
@@ -11786,14 +11825,14 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11786
11825
|
return 0;
|
|
11787
11826
|
}
|
|
11788
11827
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
11789
|
-
_html(`<div${_attr_class("
|
|
11828
|
+
_html(`<div${_attr_class("_b5")}>`);
|
|
11790
11829
|
_if(() => {
|
|
11791
11830
|
if (isPage) {
|
|
11792
11831
|
const $scope12_id = _scope_id();
|
|
11793
11832
|
_html(`<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([
|
|
11794
11833
|
"_q",
|
|
11795
11834
|
btnLg,
|
|
11796
|
-
"
|
|
11835
|
+
"_bZ"
|
|
11797
11836
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11798
11837
|
icon_folder_plus_default({ size: 16 });
|
|
11799
11838
|
_html(` New workspace</a>${_el_resume($scope12_id, "a")}`);
|
|
@@ -11825,9 +11864,9 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11825
11864
|
sessions: input.sessions,
|
|
11826
11865
|
tab: view === "term" ? tab : null
|
|
11827
11866
|
});
|
|
11828
|
-
_html(`<div${_attr_class(["_z", "
|
|
11867
|
+
_html(`<div${_attr_class(["_z", "_b6"])}></div>`);
|
|
11829
11868
|
_if(() => {}, $scope11_id, "d", 1, 1, 1, 0, 1);
|
|
11830
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
11869
|
+
_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" : ""}>`);
|
|
11831
11870
|
icon_settings_default({});
|
|
11832
11871
|
_if(() => {
|
|
11833
11872
|
if (input.setupReady === false) {
|
|
@@ -11837,7 +11876,7 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11837
11876
|
return 0;
|
|
11838
11877
|
}
|
|
11839
11878
|
}, $scope11_id, "g", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11840
|
-
_html(`</a>${_el_resume($scope11_id, "e")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
11879
|
+
_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" : ""}>`);
|
|
11841
11880
|
icon_folder_plus_default({ size: 16 });
|
|
11842
11881
|
_html(`</a>${_el_resume($scope11_id, "h")}`);
|
|
11843
11882
|
_script($scope11_id, "D13");
|
|
@@ -12859,7 +12898,7 @@ function indent(text) {
|
|
|
12859
12898
|
return text.split("\n").map((line) => line ? ` ${line}` : line).join("\n");
|
|
12860
12899
|
}
|
|
12861
12900
|
var treeToggle = "_gp _4 _l";
|
|
12862
|
-
var pageTitle = "_gw
|
|
12901
|
+
var pageTitle = "_gw _d_";
|
|
12863
12902
|
//#endregion
|
|
12864
12903
|
//#region src/tags/diff-send.marko
|
|
12865
12904
|
var diff_send_default = _template("k", (input) => {
|
|
@@ -12869,7 +12908,7 @@ var diff_send_default = _template("k", (input) => {
|
|
|
12869
12908
|
let sendTarget = null;
|
|
12870
12909
|
const sessions = input.sessions || [];
|
|
12871
12910
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
12872
|
-
_html(`<span${_attr_class("
|
|
12911
|
+
_html(`<span${_attr_class("_il")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
12873
12912
|
_if(() => {
|
|
12874
12913
|
if (sessions.length === 1) {
|
|
12875
12914
|
const $scope1_id = _scope_id();
|
|
@@ -12879,11 +12918,11 @@ var diff_send_default = _template("k", (input) => {
|
|
|
12879
12918
|
return 0;
|
|
12880
12919
|
} else if (sessions.length) {
|
|
12881
12920
|
const $scope2_id = _scope_id();
|
|
12882
|
-
_html(`<span${_attr_class("
|
|
12921
|
+
_html(`<span${_attr_class("_im")}><button type=button${_attr_class(["_r", "_in"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
12883
12922
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
12884
12923
|
sendTarget = _new_sendTarget;
|
|
12885
12924
|
}, "k0", $scope2_id), () => {
|
|
12886
|
-
_html(`<select${_attr_class("
|
|
12925
|
+
_html(`<select${_attr_class("_io")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
12887
12926
|
_for_of(sessions, (s) => {
|
|
12888
12927
|
const $scope3_id = _scope_id();
|
|
12889
12928
|
_html(`<option${_attr_option_value(s.id)}>${_text_resume($scope3_id, "b", s.title || s.agent, $sg__input_sessions)}</option>${_el_resume($scope3_id, "a", $sg__input_sessions)}`);
|
|
@@ -12910,8 +12949,8 @@ var diff_send_default = _template("k", (input) => {
|
|
|
12910
12949
|
});
|
|
12911
12950
|
_resume_branch($scope0_id);
|
|
12912
12951
|
});
|
|
12913
|
-
var findInput = "
|
|
12914
|
-
var findIconBtn = "
|
|
12952
|
+
var findInput = "_eg _n";
|
|
12953
|
+
var findIconBtn = "_ej _l";
|
|
12915
12954
|
//#endregion
|
|
12916
12955
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
12917
12956
|
var icon_arrow_down_default = _template("Q", (input) => {
|
|
@@ -13003,18 +13042,18 @@ var diff_find_default = _template("j", (input) => {
|
|
|
13003
13042
|
}, 0);
|
|
13004
13043
|
}, "j0", $scope0_id);
|
|
13005
13044
|
_html(`<div${_attr_class([
|
|
13006
|
-
"
|
|
13007
|
-
input.keybar && "
|
|
13008
|
-
!open && "
|
|
13009
|
-
])} aria-hidden=${open ? "false" : "true"}><span${_attr_class("
|
|
13045
|
+
"_ee",
|
|
13046
|
+
input.keybar && "_en",
|
|
13047
|
+
!open && "_ed"
|
|
13048
|
+
])} aria-hidden=${open ? "false" : "true"}><span${_attr_class("_ef")} aria-hidden=true>`);
|
|
13010
13049
|
icon_search_default({ size: 13 });
|
|
13011
13050
|
_html(`</span><input${_attr_input_value($scope0_id, "d", query || "", _resume(function(v) {
|
|
13012
13051
|
type(v);
|
|
13013
|
-
}, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "
|
|
13052
|
+
}, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "_ep"])} 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("_ei")}>${_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 && "_eq"])} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13014
13053
|
icon_arrow_up_default({ size: 14 });
|
|
13015
|
-
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "
|
|
13054
|
+
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "_eq"])} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13016
13055
|
icon_arrow_down_default({ size: 14 });
|
|
13017
|
-
_html(`</button>${_el_resume($scope0_id, "i")}<button type=button${_attr_class([findIconBtn, input.keybar && "
|
|
13056
|
+
_html(`</button>${_el_resume($scope0_id, "i")}<button type=button${_attr_class([findIconBtn, input.keybar && "_eq"])} title="Close find"${_attr("hidden", input.pinned)} tabindex=${open ? "0" : "-1"}>`);
|
|
13018
13057
|
icon_xmark_default({ size: 14 });
|
|
13019
13058
|
_html(`</button>${_el_resume($scope0_id, "k")}</div>${_el_resume($scope0_id, "a")}`);
|
|
13020
13059
|
const $return = focusInput;
|
|
@@ -13114,8 +13153,8 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13114
13153
|
}
|
|
13115
13154
|
return shortHeadFallback(head);
|
|
13116
13155
|
}
|
|
13117
|
-
var repoWorktree = "
|
|
13118
|
-
var repoTitle = "
|
|
13156
|
+
var repoWorktree = "_jg _y";
|
|
13157
|
+
var repoTitle = "_jm _x";
|
|
13119
13158
|
//#endregion
|
|
13120
13159
|
//#region src/tags/review-head.marko
|
|
13121
13160
|
var review_head_default = _template("x", (input) => {
|
|
@@ -13123,7 +13162,7 @@ var review_head_default = _template("x", (input) => {
|
|
|
13123
13162
|
const $scope0_id = _scope_id();
|
|
13124
13163
|
const repo = input.repo;
|
|
13125
13164
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
13126
|
-
_html(`<div${_attr_class("
|
|
13165
|
+
_html(`<div${_attr_class("_je")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}><button type=button${_attr_class("_jf")} title="Scroll to this section"><span${_attr_class(repoWorktree)}>${_text_resume($scope0_id, "d", repo.worktree, $sg__input_repo)}</span></button>${_el_resume($scope0_id, "b")}`);
|
|
13127
13166
|
_if(() => {
|
|
13128
13167
|
if (repo.pr) {
|
|
13129
13168
|
const $scope6_id = _scope_id();
|
|
@@ -13132,19 +13171,19 @@ var review_head_default = _template("x", (input) => {
|
|
|
13132
13171
|
return 0;
|
|
13133
13172
|
} else {
|
|
13134
13173
|
const $scope7_id = _scope_id();
|
|
13135
|
-
_html(`<span${_attr_class([repoTitle, "
|
|
13174
|
+
_html(`<span${_attr_class([repoTitle, "_jn"])}>${_text_resume($scope7_id, "b", repoLabel$1(repo.full_name), $sg__input_repo)}</span>`);
|
|
13136
13175
|
$si__input_repo && writeScope($scope7_id, { _: _scope_with_id($scope0_id) });
|
|
13137
13176
|
return 1;
|
|
13138
13177
|
}
|
|
13139
13178
|
}, $scope0_id, "e", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew);
|
|
13140
|
-
_html(`<span${_attr_class("
|
|
13179
|
+
_html(`<span${_attr_class("_jo")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_jp"])}>${_text_resume($scope0_id, "h", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_jr"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_jq"])}>${_text_resume($scope0_id, "k", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13141
13180
|
_if(() => {
|
|
13142
13181
|
if (compare$1.topic) {
|
|
13143
13182
|
const $scope10_id = _scope_id();
|
|
13144
13183
|
_html(`<span${_attr_class([
|
|
13145
13184
|
"_N",
|
|
13146
13185
|
tone.accent,
|
|
13147
|
-
"
|
|
13186
|
+
"_js"
|
|
13148
13187
|
])}>${_text_resume($scope10_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13149
13188
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope10_id, { _: _scope_with_id($scope0_id) });
|
|
13150
13189
|
return 0;
|
|
@@ -13154,7 +13193,7 @@ var review_head_default = _template("x", (input) => {
|
|
|
13154
13193
|
_if(() => {
|
|
13155
13194
|
if (repo.rev) {
|
|
13156
13195
|
const $scope8_id = _scope_id();
|
|
13157
|
-
_html(`<span${_attr_class(["_N", "
|
|
13196
|
+
_html(`<span${_attr_class(["_N", "_jt"])} title="One commit against its parent">commit ${_text_resume($scope8_id, "b", shortSha(repo.rev, 7), $sg__input_repo * 2)}</span>`);
|
|
13158
13197
|
$si__input_repo && writeScope($scope8_id, { _: _scope_with_id($scope0_id) });
|
|
13159
13198
|
return 0;
|
|
13160
13199
|
}
|
|
@@ -13165,7 +13204,7 @@ var review_head_default = _template("x", (input) => {
|
|
|
13165
13204
|
_html(`<button type=button${_attr_class([
|
|
13166
13205
|
"_N",
|
|
13167
13206
|
tone.warn,
|
|
13168
|
-
"
|
|
13207
|
+
"_jt"
|
|
13169
13208
|
])}${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}. Reload to re-ask GitHub`)}${_attr("disabled", input.loading)}>behind GitHub ${_text_resume($scope1_id, "b", shortSha(repo.head, 7), $sg__input_repo * 2)} → ${_text_resume($scope1_id, "c", shortSha(repo.pr.headRefOid, 7), $sg__input_repo * 2)}</button>${_el_resume($scope1_id, "a")}`);
|
|
13170
13209
|
_script($scope1_id, "x0");
|
|
13171
13210
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -13175,7 +13214,7 @@ var review_head_default = _template("x", (input) => {
|
|
|
13175
13214
|
_if(() => {
|
|
13176
13215
|
if (repo.contained && input.fileCount) {
|
|
13177
13216
|
const $scope9_id = _scope_id();
|
|
13178
|
-
_html(`<span${_attr_class(["_N", "
|
|
13217
|
+
_html(`<span${_attr_class(["_N", "_jt"])}${_attr("title", `${repo.pr ? `#${repo.pr.number}` : repo.branch} is already in ${repo.base}; showing the working tree only`)}>already in ${_text_resume($scope9_id, "b", repo.base, $sg__input_repo * 2)}</span>${_el_resume($scope9_id, "a", $sg__input_repo)}`);
|
|
13179
13218
|
$si__input_repo__OR__input_fileCount && writeScope($scope9_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
13180
13219
|
return 0;
|
|
13181
13220
|
}
|
|
@@ -13183,16 +13222,16 @@ var review_head_default = _template("x", (input) => {
|
|
|
13183
13222
|
_if(() => {
|
|
13184
13223
|
if (input.localDiffers) {
|
|
13185
13224
|
const $scope2_id = _scope_id();
|
|
13186
|
-
_html(`<span${_attr_class(["_N", "
|
|
13225
|
+
_html(`<span${_attr_class(["_N", "_jt"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope2_id, "b", shortBranch(repo.branch, input.workspaceBranch, input.workspaceName), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}${_text_resume($scope2_id, "c", shortSha(repo.localHead, 7), $sg__input_repo * 2)}</span>${_el_resume($scope2_id, "a", $sg__input_repo)}`);
|
|
13187
13226
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && writeScope($scope2_id, { _: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _scope_with_id($scope0_id) });
|
|
13188
13227
|
return 0;
|
|
13189
13228
|
}
|
|
13190
13229
|
}, $scope0_id, "p", _serialize_guard($scope0_reason, 9), _serialize_guard($scope0_reason, 14), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew, 0, 1);
|
|
13191
|
-
_html(`<span${_attr_class("
|
|
13230
|
+
_html(`<span${_attr_class("_jh")}><span>${_text_resume($scope0_id, "r", input.fileCount, $sg__input_fileCount)} file${_text_resume($scope0_id, "s", input.fileCount === 1 ? "" : "s", $sg__input_fileCount * 2)}</span>`);
|
|
13192
13231
|
_if(() => {
|
|
13193
13232
|
if (input.additions || input.deletions) {
|
|
13194
13233
|
const $scope3_id = _scope_id();
|
|
13195
|
-
_html(`<span${_attr_class("
|
|
13234
|
+
_html(`<span${_attr_class("_ji")}>+${_text_resume($scope3_id, "b", input.additions, _serialize_guard($scope0_reason, 15) * 2)}</span><span${_attr_class("_jj")}>−${_text_resume($scope3_id, "d", input.deletions, _serialize_guard($scope0_reason, 16) * 2)}</span>`);
|
|
13196
13235
|
$si__input_additions__OR__input_deletions && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
13197
13236
|
return 0;
|
|
13198
13237
|
}
|
|
@@ -13200,7 +13239,7 @@ var review_head_default = _template("x", (input) => {
|
|
|
13200
13239
|
_if(() => {
|
|
13201
13240
|
if (input.hiddenCount) {
|
|
13202
13241
|
const $scope4_id = _scope_id();
|
|
13203
|
-
_html(`<button type=button${_attr_class("
|
|
13242
|
+
_html(`<button type=button${_attr_class("_jl")} title="Filtered out of the list — show every file">${_text_resume($scope4_id, "b", input.hiddenCount, $sg__input_hiddenCount)} hidden</button>${_el_resume($scope4_id, "a")}`);
|
|
13204
13243
|
_script($scope4_id, "x1");
|
|
13205
13244
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
13206
13245
|
return 0;
|
|
@@ -13209,7 +13248,7 @@ var review_head_default = _template("x", (input) => {
|
|
|
13209
13248
|
_if(() => {
|
|
13210
13249
|
if (input.newCount || input.onlyNew) {
|
|
13211
13250
|
const $scope5_id = _scope_id();
|
|
13212
|
-
_html(`<button type=button${_attr_class(["
|
|
13251
|
+
_html(`<button type=button${_attr_class(["_jl", { ["_jk"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope5_id, "b", input.newCount, _serialize_guard($scope0_reason, 18))} new</button>${_el_resume($scope5_id, "a")}`);
|
|
13213
13252
|
_script($scope5_id, "x2");
|
|
13214
13253
|
writeScope($scope5_id, { _: _scope_with_id($scope0_id) });
|
|
13215
13254
|
return 0;
|
|
@@ -13325,7 +13364,7 @@ var review_tree_default = _template("y", (input) => {
|
|
|
13325
13364
|
dragging$1 = false;
|
|
13326
13365
|
if (width != null) setDiffTreeWidth(width);
|
|
13327
13366
|
}, "y2", $scope0_id);
|
|
13328
|
-
_html(`<div${_attr_class(["
|
|
13367
|
+
_html(`<div${_attr_class(["_iK", { ["_iJ"]: input.open === false }])}${width != null ? _attr_style(`--tree-w:${width}px`) : ""}><div${_attr_class(["_iX", { ["_iW"]: dragging$1 }])} title="Drag to resize"></div>${_el_resume($scope0_id, "b")}<div${_attr_class("_iL")}>`);
|
|
13329
13368
|
_set_serialize_reason(2);
|
|
13330
13369
|
const $childScope = _peek_scope_id();
|
|
13331
13370
|
file_filter_default({
|
|
@@ -13334,22 +13373,22 @@ var review_tree_default = _template("y", (input) => {
|
|
|
13334
13373
|
filter$1 = _new_filter;
|
|
13335
13374
|
}, "y3", $scope0_id)
|
|
13336
13375
|
});
|
|
13337
|
-
_html(`</div><div${_attr_class("
|
|
13376
|
+
_html(`</div><div${_attr_class("_iM")}>`);
|
|
13338
13377
|
_for_of(input.sections, (section$2) => {
|
|
13339
13378
|
const $scope1_id = _scope_id();
|
|
13340
|
-
_html(`<div${_attr_class(["
|
|
13379
|
+
_html(`<div${_attr_class(["_iO", { ["_iN"]: input.sections.length === 1 }])}${_attr("data-section", section$2.id)}>`);
|
|
13341
13380
|
_if(() => {
|
|
13342
13381
|
if (input.sections.length > 1) {
|
|
13343
13382
|
const $scope2_id = _scope_id();
|
|
13344
|
-
_html(`<button type=button${_attr_class("
|
|
13383
|
+
_html(`<button type=button${_attr_class("_iP")}${_attr("title", section$2.label)} aria-expanded=${closed$4.has(section$2.id) ? "false" : "true"}><span${_attr_class(["_iQ", { ["_iR"]: !closed$4.has(section$2.id) }])} aria-hidden=true>`);
|
|
13345
13384
|
icon_chevron_right_default({ size: 12 });
|
|
13346
|
-
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("
|
|
13385
|
+
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("_iS")}>${_text_resume($scope2_id, "e", section$2.label, $sg__input_sections)}</span><span${_attr_class("_iT")}>${_text_resume($scope2_id, "g", section$2.files.length, $sg__input_sections)}</span></button>${_el_resume($scope2_id, "a")}`);
|
|
13347
13386
|
_script($scope2_id, "y4");
|
|
13348
13387
|
_subscribe($closed__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }));
|
|
13349
13388
|
return 0;
|
|
13350
13389
|
}
|
|
13351
13390
|
}, $scope1_id, "b", $sg__input_sections, $sg__input_sections_length, $sg__input_sections_length, 0, 1);
|
|
13352
|
-
_html(`<div${_attr_class(["
|
|
13391
|
+
_html(`<div${_attr_class(["_iV", { ["_iU"]: 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)}`);
|
|
13353
13392
|
writeScope($scope1_id, {
|
|
13354
13393
|
f: section$2?.id,
|
|
13355
13394
|
h: $si__input_sections_length && section$2?.label,
|
|
@@ -13381,7 +13420,7 @@ var review_tree_default = _template("y", (input) => {
|
|
|
13381
13420
|
});
|
|
13382
13421
|
_resume_branch($scope0_id);
|
|
13383
13422
|
});
|
|
13384
|
-
var sheetDir = "
|
|
13423
|
+
var sheetDir = "_i9 _ba";
|
|
13385
13424
|
//#endregion
|
|
13386
13425
|
//#region src/tags/icons/icon-comment.marko
|
|
13387
13426
|
var icon_comment_default = _template("ab", (input) => {
|
|
@@ -13454,9 +13493,9 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13454
13493
|
_if(() => {
|
|
13455
13494
|
if (open) {
|
|
13456
13495
|
const $scope1_id = _scope_id();
|
|
13457
|
-
_html(`<div${_attr_class("
|
|
13496
|
+
_html(`<div${_attr_class("_i0")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_i1")} role=dialog aria-label="Jump to file"><div${_attr_class("_i2")}><strong${_attr_class("_iZ")}>Files</strong><span${_attr_class("_i3")}>${_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, "_iY"])} title=Close aria-label=Close>`);
|
|
13458
13497
|
icon_xmark_default({ size: 16 });
|
|
13459
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
13498
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_ja")}>`);
|
|
13460
13499
|
_set_serialize_reason(2);
|
|
13461
13500
|
const $childScope = _peek_scope_id();
|
|
13462
13501
|
file_filter_default({
|
|
@@ -13465,13 +13504,13 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13465
13504
|
filter = _new_filter;
|
|
13466
13505
|
}, "i1", $scope1_id)
|
|
13467
13506
|
});
|
|
13468
|
-
_html(`</div><div${_attr_class("
|
|
13507
|
+
_html(`</div><div${_attr_class("_i4")}>`);
|
|
13469
13508
|
_for_of(groups, (group) => {
|
|
13470
13509
|
const $scope2_id = _scope_id();
|
|
13471
|
-
_html(`<div${_attr_class("
|
|
13510
|
+
_html(`<div${_attr_class("_i5")}><div${_attr_class("_i6")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
13472
13511
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
13473
13512
|
const $scope3_id = _scope_id();
|
|
13474
|
-
_html(`<div${_attr_class("
|
|
13513
|
+
_html(`<div${_attr_class("_i7")}>`);
|
|
13475
13514
|
_if(() => {
|
|
13476
13515
|
if (dir) {
|
|
13477
13516
|
const $scope5_id = _scope_id();
|
|
@@ -13482,11 +13521,11 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13482
13521
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
13483
13522
|
_for_of(files, ({ file, name }) => {
|
|
13484
13523
|
const $scope4_id = _scope_id();
|
|
13485
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
13524
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_i8", "_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("_i_")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
13486
13525
|
_if(() => {
|
|
13487
13526
|
if (newKeys.has(file.key)) {
|
|
13488
13527
|
const $scope6_id = _scope_id();
|
|
13489
|
-
_html(`<span${_attr_class(["_A", "
|
|
13528
|
+
_html(`<span${_attr_class(["_A", "_jc"])} title="Changed since your last visit"></span>`);
|
|
13490
13529
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
13491
13530
|
return 0;
|
|
13492
13531
|
}
|
|
@@ -13496,7 +13535,7 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13496
13535
|
const $scope7_id = _scope_id();
|
|
13497
13536
|
icon_comment_default({
|
|
13498
13537
|
size: 12,
|
|
13499
|
-
class: "
|
|
13538
|
+
class: "_jd"
|
|
13500
13539
|
});
|
|
13501
13540
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
13502
13541
|
return 0;
|
|
@@ -13521,7 +13560,7 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13521
13560
|
_if(() => {
|
|
13522
13561
|
if (!input.files.length) {
|
|
13523
13562
|
const $scope8_id = _scope_id();
|
|
13524
|
-
_html(`<p${_attr_class("
|
|
13563
|
+
_html(`<p${_attr_class("_jb")}>No files match.</p>`);
|
|
13525
13564
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
13526
13565
|
return 0;
|
|
13527
13566
|
}
|
|
@@ -14113,12 +14152,12 @@ var review_view_default = _template("z", (input) => {
|
|
|
14113
14152
|
_if(() => {
|
|
14114
14153
|
if (repos && !allFiles.length) {
|
|
14115
14154
|
const $scope11_id = _scope_id();
|
|
14116
|
-
_html(`<p${_attr_class("
|
|
14155
|
+
_html(`<p${_attr_class("_cp")}>${_text_resume($scope11_id, "b", rev ? "This commit is not in any of these repos." : repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
|
|
14117
14156
|
writeScope($scope11_id, {});
|
|
14118
14157
|
return 0;
|
|
14119
14158
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
14120
14159
|
const $scope8_id = _scope_id();
|
|
14121
|
-
_html(`<p${_attr_class("
|
|
14160
|
+
_html(`<p${_attr_class("_cp")}>${_text_resume($scope8_id, "b", findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${fileFilter}".`)}</p>`);
|
|
14122
14161
|
writeScope($scope8_id, {});
|
|
14123
14162
|
return 1;
|
|
14124
14163
|
}
|
|
@@ -14483,10 +14522,10 @@ function parseInvite(text) {
|
|
|
14483
14522
|
repos
|
|
14484
14523
|
};
|
|
14485
14524
|
}
|
|
14486
|
-
var skillRow = "
|
|
14487
|
-
var skillName = "
|
|
14488
|
-
var skillDesc = "
|
|
14489
|
-
var skillEnd = "
|
|
14525
|
+
var skillRow = "_f_ _f4";
|
|
14526
|
+
var skillName = "_gb _f6";
|
|
14527
|
+
var skillDesc = "_ge _f7";
|
|
14528
|
+
var skillEnd = "_gf _f8";
|
|
14490
14529
|
//#endregion
|
|
14491
14530
|
//#region src/tags/icons/icon-clipboard.marko
|
|
14492
14531
|
var icon_clipboard_default = _template("$", (input) => {
|
|
@@ -14538,8 +14577,8 @@ var icon_trash_default = _template("ub", (input) => {
|
|
|
14538
14577
|
});
|
|
14539
14578
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
14540
14579
|
});
|
|
14541
|
-
var resultRow = "
|
|
14542
|
-
var resultBranch = "
|
|
14580
|
+
var resultRow = "_ix _I";
|
|
14581
|
+
var resultBranch = "_iz _3 _l";
|
|
14543
14582
|
//#endregion
|
|
14544
14583
|
//#region src/tags/icons/icon-branch.marko
|
|
14545
14584
|
var icon_branch_default = _template("X", (input) => {
|
|
@@ -14569,11 +14608,11 @@ var branch_pick_default = _template("f", (input) => {
|
|
|
14569
14608
|
let branchFilter = "";
|
|
14570
14609
|
let reloadTick = 0;
|
|
14571
14610
|
let refreshing = false;
|
|
14572
|
-
_html(`<div${_attr_class("
|
|
14611
|
+
_html(`<div${_attr_class("_iB")}>`);
|
|
14573
14612
|
_if(() => {
|
|
14574
14613
|
{
|
|
14575
14614
|
const $scope4_id = _scope_id();
|
|
14576
|
-
_html(`<p${_attr_class("
|
|
14615
|
+
_html(`<p${_attr_class("_co")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
14577
14616
|
writeScope($scope4_id, {});
|
|
14578
14617
|
return 0;
|
|
14579
14618
|
}
|
|
@@ -14674,21 +14713,21 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14674
14713
|
_resume_branch($scope9_id);
|
|
14675
14714
|
}, $scope0_id) };
|
|
14676
14715
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
14677
|
-
_html(`<div${_attr_class([compact ? "
|
|
14678
|
-
["
|
|
14679
|
-
["
|
|
14716
|
+
_html(`<div${_attr_class([compact ? "_cH" : "_ip", {
|
|
14717
|
+
["_cI"]: compact && !input$2.open,
|
|
14718
|
+
["_cJ"]: input$2.pinned
|
|
14680
14719
|
}])}>`);
|
|
14681
14720
|
_if(() => {
|
|
14682
14721
|
if (!compact && ssoPending.length) {
|
|
14683
14722
|
const $scope11_id = _scope_id();
|
|
14684
|
-
_html(`<div${_attr_class("
|
|
14723
|
+
_html(`<div${_attr_class("_is")}>`);
|
|
14685
14724
|
ssoBlock.content({});
|
|
14686
14725
|
_html("</div>");
|
|
14687
14726
|
writeScope($scope11_id, {});
|
|
14688
14727
|
return 0;
|
|
14689
14728
|
}
|
|
14690
14729
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
14691
|
-
_html(`<div${!compact && input$2.action ? _attr_class("
|
|
14730
|
+
_html(`<div${!compact && input$2.action ? _attr_class("_iq") : _attr_class("_ir")}><label${_attr_class(["_0", compact && "_cK"])}>`);
|
|
14692
14731
|
icon_search_default({
|
|
14693
14732
|
size: 14,
|
|
14694
14733
|
class: "_1"
|
|
@@ -14700,7 +14739,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14700
14739
|
}, "w0", $scope0_id))}${_attr_class([
|
|
14701
14740
|
compact ? "_Y" : inputLg,
|
|
14702
14741
|
"_2",
|
|
14703
|
-
compact && "
|
|
14742
|
+
compact && "_cL"
|
|
14704
14743
|
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "f")}</label>${_el_resume($scope0_id, "d", $sg__input_compact)}`);
|
|
14705
14744
|
_if(() => {
|
|
14706
14745
|
if (!compact && input$2.action) {
|
|
@@ -14714,7 +14753,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14714
14753
|
_if(() => {
|
|
14715
14754
|
if (compact) {
|
|
14716
14755
|
const $scope2_id = _scope_id();
|
|
14717
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
14756
|
+
_html(`<button${_attr_class([iconBtnRow, "_cN"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
14718
14757
|
icon_xmark_default({ size: 14 });
|
|
14719
14758
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
14720
14759
|
_script($scope2_id, "w14");
|
|
@@ -14722,11 +14761,11 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14722
14761
|
return 0;
|
|
14723
14762
|
}
|
|
14724
14763
|
}, $scope0_id, "h", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
14725
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
14764
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_it"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
14726
14765
|
_if(() => {
|
|
14727
14766
|
if (compact && ssoPending.length) {
|
|
14728
14767
|
const $scope12_id = _scope_id();
|
|
14729
|
-
_html(`<div${_attr_class("
|
|
14768
|
+
_html(`<div${_attr_class("_is")}>`);
|
|
14730
14769
|
ssoBlock.content({});
|
|
14731
14770
|
_html("</div>");
|
|
14732
14771
|
writeScope($scope12_id, {});
|
|
@@ -14736,16 +14775,16 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14736
14775
|
_if(() => {
|
|
14737
14776
|
if (pasted) {
|
|
14738
14777
|
const $scope3_id = _scope_id();
|
|
14739
|
-
_html(`<ul${_attr_class("
|
|
14778
|
+
_html(`<ul${_attr_class("_iu")}><li><div${_attr_class(["_iw", "_iv"])}><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)`)}>`);
|
|
14740
14779
|
icon_plus_default({
|
|
14741
14780
|
size: 12,
|
|
14742
|
-
class: "
|
|
14781
|
+
class: "_iD"
|
|
14743
14782
|
});
|
|
14744
|
-
_html(`<span${_attr_class("
|
|
14783
|
+
_html(`<span${_attr_class("_iE")}>${_text_resume($scope3_id, "f", repoLabel$1(pasted))}</span></button>${_el_resume($scope3_id, "c")}`);
|
|
14745
14784
|
_if(() => {
|
|
14746
14785
|
if (pastedForkable) {
|
|
14747
14786
|
const $scope10_id = _scope_id();
|
|
14748
|
-
_html(`<button${_attr_class(["
|
|
14787
|
+
_html(`<button${_attr_class(["_iA", { ["_iy"]: 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"}>`);
|
|
14749
14788
|
_if(() => {
|
|
14750
14789
|
if (pasteWillFork) {
|
|
14751
14790
|
const $scope14_id = _scope_id();
|
|
@@ -14765,7 +14804,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14765
14804
|
return 0;
|
|
14766
14805
|
}
|
|
14767
14806
|
}, $scope3_id, "g", 1, 1, 1, 0, 1);
|
|
14768
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
14807
|
+
_html(`<button${_attr_class([resultBranch, { ["_iy"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
14769
14808
|
icon_branch_default({ size: 12 });
|
|
14770
14809
|
_html(`</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
14771
14810
|
_if(() => {
|
|
@@ -14792,7 +14831,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14792
14831
|
return 0;
|
|
14793
14832
|
} else if (filter && !catalog) {
|
|
14794
14833
|
const $scope13_id = _scope_id();
|
|
14795
|
-
_html(`<p${_attr_class("
|
|
14834
|
+
_html(`<p${_attr_class("_co")}>Loading repos…</p>`);
|
|
14796
14835
|
writeScope($scope13_id, {});
|
|
14797
14836
|
return 1;
|
|
14798
14837
|
}
|
|
@@ -14800,15 +14839,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14800
14839
|
_if(() => {
|
|
14801
14840
|
if (results.length) {
|
|
14802
14841
|
const $scope5_id = _scope_id();
|
|
14803
|
-
_html(`<ul${_attr_class("
|
|
14842
|
+
_html(`<ul${_attr_class("_iu")}>`);
|
|
14804
14843
|
_for_of(results, (repo, i) => {
|
|
14805
14844
|
const $scope6_id = _scope_id();
|
|
14806
|
-
_html(`<li><div${_attr_class(["
|
|
14845
|
+
_html(`<li><div${_attr_class(["_iw", { ["_iv"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
14807
14846
|
icon_plus_default({
|
|
14808
14847
|
size: 12,
|
|
14809
|
-
class: "
|
|
14848
|
+
class: "_iD"
|
|
14810
14849
|
});
|
|
14811
|
-
_html(`<span${_attr_class("
|
|
14850
|
+
_html(`<span${_attr_class("_iE")}>${_text_resume($scope6_id, "e", repoLabel$1(repo.nameWithOwner))}</span></button>${_el_resume($scope6_id, "b")}<button${_attr_class([resultBranch, { ["_iy"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
14812
14851
|
icon_branch_default({ size: 12 });
|
|
14813
14852
|
_html(`</button>${_el_resume($scope6_id, "f")}</div>${_el_resume($scope6_id, "a")}`);
|
|
14814
14853
|
_if(() => {
|
|
@@ -14843,7 +14882,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14843
14882
|
return 0;
|
|
14844
14883
|
} else if (filter && catalog && !pasted) {
|
|
14845
14884
|
const $scope8_id = _scope_id();
|
|
14846
|
-
_html(`<p${_attr_class("
|
|
14885
|
+
_html(`<p${_attr_class("_co")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
14847
14886
|
writeScope($scope8_id, {});
|
|
14848
14887
|
return 1;
|
|
14849
14888
|
}
|
|
@@ -15060,7 +15099,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15060
15099
|
setTimeout(() => loadProcs(void 0), 500);
|
|
15061
15100
|
}, "p11", $scope0_id);
|
|
15062
15101
|
const titleId = _id();
|
|
15063
|
-
_html(`<div${_attr_class("
|
|
15102
|
+
_html(`<div${_attr_class("_d5")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d6")}><div${_attr_class("_d7")}>`);
|
|
15064
15103
|
_set_serialize_reason(30);
|
|
15065
15104
|
const $childScope2 = _peek_scope_id();
|
|
15066
15105
|
page_head_default({
|
|
@@ -15168,7 +15207,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15168
15207
|
_resume_branch($scope6_id);
|
|
15169
15208
|
}, $scope0_id) })
|
|
15170
15209
|
});
|
|
15171
|
-
_html(`<div${_attr_class("
|
|
15210
|
+
_html(`<div${_attr_class("_d8")}><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("_gj")}>Name</span><span${_attr_class(["_gk", "_gl"])}>${_text_resume($scope0_id, "m", ws.name)}</span>`);
|
|
15172
15211
|
_if(() => {
|
|
15173
15212
|
if (ws.status !== "active") {
|
|
15174
15213
|
const $scope23_id = _scope_id();
|
|
@@ -15177,8 +15216,8 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15177
15216
|
return 0;
|
|
15178
15217
|
}
|
|
15179
15218
|
}, $scope0_id, "n", 1, 1, 1, 0, 1);
|
|
15180
|
-
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("
|
|
15181
|
-
"
|
|
15219
|
+
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("_gj")}>Path</span><span${_attr_class([
|
|
15220
|
+
"_gk",
|
|
15182
15221
|
"_y",
|
|
15183
15222
|
"_ba"
|
|
15184
15223
|
])}${_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">`);
|
|
@@ -15195,7 +15234,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15195
15234
|
return 1;
|
|
15196
15235
|
}
|
|
15197
15236
|
}, $scope0_id, "s", 1, 1, 1, "</button>", 1);
|
|
15198
|
-
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("
|
|
15237
|
+
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("_gj")}>Branch</span><span${_attr_class(["_gk", "_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">`);
|
|
15199
15238
|
_if(() => {
|
|
15200
15239
|
if (copiedFact === "branch") {
|
|
15201
15240
|
const $scope26_id = _scope_id();
|
|
@@ -15233,12 +15272,12 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15233
15272
|
_if(() => {
|
|
15234
15273
|
if (pendingAction && actionStep) {
|
|
15235
15274
|
const $scope10_id = _scope_id();
|
|
15236
|
-
_html(`<p${_attr_class("
|
|
15275
|
+
_html(`<p${_attr_class("_cc")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
15237
15276
|
writeScope($scope10_id, {});
|
|
15238
15277
|
return 0;
|
|
15239
15278
|
}
|
|
15240
15279
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
15241
|
-
_html(`<section${_attr_class("
|
|
15280
|
+
_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, "_gi"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
15242
15281
|
icon_plus_default({ size: 16 });
|
|
15243
15282
|
_html(`</button>${_el_resume($scope0_id, "a6")}`);
|
|
15244
15283
|
_set_serialize_reason(26);
|
|
@@ -15269,10 +15308,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15269
15308
|
size: 14,
|
|
15270
15309
|
class: catalogRefreshing && "_F"
|
|
15271
15310
|
});
|
|
15272
|
-
_html(`</button>${_el_resume($scope0_id, "aa")}</div><ul${_attr_class([list$2, "
|
|
15311
|
+
_html(`</button>${_el_resume($scope0_id, "aa")}</div><ul${_attr_class([list$2, "_f3"])}>`);
|
|
15273
15312
|
_for_of(ws.repos, (row) => {
|
|
15274
15313
|
const $scope1_id = _scope_id();
|
|
15275
|
-
_html(`<li${_attr_class("
|
|
15314
|
+
_html(`<li${_attr_class("_f4")}><span${_attr_class(["_y", "_f6"])}>${_text_resume($scope1_id, "c", row.worktree)}/</span><span${_attr_class(["_f7", "_f2"])}><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")}`);
|
|
15276
15315
|
_if(() => {
|
|
15277
15316
|
if (row.base_branch !== row.default_branch) {
|
|
15278
15317
|
const $scope28_id = _scope_id();
|
|
@@ -15283,7 +15322,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15283
15322
|
return 0;
|
|
15284
15323
|
}
|
|
15285
15324
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
15286
|
-
_html(`</span><span${_attr_class("
|
|
15325
|
+
_html(`</span><span${_attr_class("_f8")}>`);
|
|
15287
15326
|
_if(() => {
|
|
15288
15327
|
if (busy.has(row.full_name)) {
|
|
15289
15328
|
const $scope29_id = _scope_id();
|
|
@@ -15295,7 +15334,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15295
15334
|
const $childScope5 = _peek_scope_id();
|
|
15296
15335
|
arm_button_default({
|
|
15297
15336
|
class: [
|
|
15298
|
-
"
|
|
15337
|
+
"_cn",
|
|
15299
15338
|
"_7",
|
|
15300
15339
|
"_8"
|
|
15301
15340
|
],
|
|
@@ -15326,16 +15365,16 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15326
15365
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
15327
15366
|
const $scope31_id = _scope_id();
|
|
15328
15367
|
_html(`<li${_attr_class([
|
|
15329
|
-
"
|
|
15330
|
-
"
|
|
15331
|
-
"
|
|
15332
|
-
])}><span${_attr_class("_G")}></span><span${_attr_class("
|
|
15368
|
+
"_f4",
|
|
15369
|
+
"_f5",
|
|
15370
|
+
"_ch"
|
|
15371
|
+
])}><span${_attr_class("_G")}></span><span${_attr_class("_cm")}>Adding ${_text_resume($scope31_id, "d", name, 2)}…</span></li>`);
|
|
15333
15372
|
writeScope($scope31_id, {});
|
|
15334
15373
|
}, (n) => n, $scope0_id, "ae", 1, 1, 1, 0, 1);
|
|
15335
15374
|
_if(() => {
|
|
15336
15375
|
if (!ws.repos.length && !busy.size) {
|
|
15337
15376
|
const $scope32_id = _scope_id();
|
|
15338
|
-
_html(`<li${_attr_class(["
|
|
15377
|
+
_html(`<li${_attr_class(["_f4", "_f5"])}><span${_attr_class("_cm")}>No repos yet. Add one to start.</span></li>`);
|
|
15339
15378
|
writeScope($scope32_id, {});
|
|
15340
15379
|
return 0;
|
|
15341
15380
|
}
|
|
@@ -15345,20 +15384,20 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15345
15384
|
_if(() => {
|
|
15346
15385
|
if (running.length) {
|
|
15347
15386
|
const $scope15_id = _scope_id();
|
|
15348
|
-
_html(`<section${_attr_class("
|
|
15387
|
+
_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)}>`);
|
|
15349
15388
|
_for_of(running, (p) => {
|
|
15350
15389
|
const $scope16_id = _scope_id();
|
|
15351
|
-
_html(`<li${_attr_class("
|
|
15390
|
+
_html(`<li${_attr_class("_f4")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_f6"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_f7"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_f8")}>`);
|
|
15352
15391
|
_for_of(p.ports, (port) => {
|
|
15353
15392
|
const $scope33_id = _scope_id();
|
|
15354
15393
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope33_id, "b", port, 2)}</button>${_el_resume($scope33_id, "a")}`);
|
|
15355
15394
|
_script($scope33_id, "p28");
|
|
15356
15395
|
writeScope($scope33_id, { d: port });
|
|
15357
15396
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
15358
|
-
_html(`<span${_attr_class(["_y", "
|
|
15359
|
-
"
|
|
15397
|
+
_html(`<span${_attr_class(["_y", "_f9"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
15398
|
+
"_cn",
|
|
15360
15399
|
"_7",
|
|
15361
|
-
"
|
|
15400
|
+
"_gh"
|
|
15362
15401
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
15363
15402
|
icon_xmark_default({ size: 14 });
|
|
15364
15403
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -15379,22 +15418,22 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15379
15418
|
s,
|
|
15380
15419
|
linked: false
|
|
15381
15420
|
}))].sort((a, b) => a.s.name.localeCompare(b.s.name));
|
|
15382
|
-
_html(`</div><div${_attr_class("
|
|
15421
|
+
_html(`</div><div${_attr_class("_d8")}>`);
|
|
15383
15422
|
_if(() => {
|
|
15384
15423
|
if (allSkills.length) {
|
|
15385
15424
|
const $scope2_id = _scope_id();
|
|
15386
|
-
_html(`<section${_attr_class("
|
|
15425
|
+
_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, "_f3"])}>`);
|
|
15387
15426
|
_for_of(allSkills, ({ s, linked }) => {
|
|
15388
15427
|
const $scope3_id = _scope_id();
|
|
15389
15428
|
const isBusy = skillBusy.has(s.id);
|
|
15390
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
15429
|
+
_html(`<li${_attr_class([skillRow, { ["_ga"]: !linked }])}><span${_attr_class("_gc")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
15391
15430
|
_if(() => {
|
|
15392
15431
|
if (s.worktree && !s.broken) {
|
|
15393
15432
|
const $scope34_id = _scope_id();
|
|
15394
15433
|
_html(`<span${_attr_class([
|
|
15395
15434
|
"_N",
|
|
15396
15435
|
"_y",
|
|
15397
|
-
"
|
|
15436
|
+
"_gd"
|
|
15398
15437
|
])}${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")}`);
|
|
15399
15438
|
writeScope($scope34_id, {});
|
|
15400
15439
|
return 0;
|
|
@@ -15448,10 +15487,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15448
15487
|
const $childScope6 = _peek_scope_id();
|
|
15449
15488
|
arm_button_default({
|
|
15450
15489
|
class: [
|
|
15451
|
-
"
|
|
15490
|
+
"_cn",
|
|
15452
15491
|
"_7",
|
|
15453
15492
|
"_8",
|
|
15454
|
-
"
|
|
15493
|
+
"_gg"
|
|
15455
15494
|
],
|
|
15456
15495
|
disabled: isBusy,
|
|
15457
15496
|
busy: isBusy,
|
|
@@ -15560,12 +15599,12 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15560
15599
|
});
|
|
15561
15600
|
_resume_branch($scope0_id);
|
|
15562
15601
|
});
|
|
15563
|
-
var curRow = "
|
|
15564
|
-
var curEmpty = "
|
|
15565
|
-
var curBase = "
|
|
15566
|
-
var archived = "
|
|
15567
|
-
var archivedHint = "
|
|
15568
|
-
var archivedRow = "
|
|
15602
|
+
var curRow = "_fO _cG _cE";
|
|
15603
|
+
var curEmpty = "_fQ _co";
|
|
15604
|
+
var curBase = "_fT _X _W";
|
|
15605
|
+
var archived = "_fY _cd";
|
|
15606
|
+
var archivedHint = "_fZ _W";
|
|
15607
|
+
var archivedRow = "_f0 _cG _cE";
|
|
15569
15608
|
//#endregion
|
|
15570
15609
|
//#region src/tags/icons/icon-group.marko
|
|
15571
15610
|
var icon_group_default = _template("hb", (input) => {
|
|
@@ -15585,8 +15624,8 @@ var icon_group_default = _template("hb", (input) => {
|
|
|
15585
15624
|
});
|
|
15586
15625
|
//#endregion
|
|
15587
15626
|
//#region src/tags/join-dialog.css.ts
|
|
15588
|
-
var dlg = "
|
|
15589
|
-
var hint = "
|
|
15627
|
+
var dlg = "_hR _g1";
|
|
15628
|
+
var hint = "_hS _W";
|
|
15590
15629
|
//#endregion
|
|
15591
15630
|
//#region src/tags/join-dialog.marko
|
|
15592
15631
|
var api$3;
|
|
@@ -15715,26 +15754,26 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
15715
15754
|
content: _content("m12", () => {
|
|
15716
15755
|
_scope_reason();
|
|
15717
15756
|
const $scope1_id = _scope_id();
|
|
15718
|
-
_html(`<h2${_attr_class("
|
|
15757
|
+
_html(`<h2${_attr_class("_g2")}${_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([
|
|
15719
15758
|
"_Y",
|
|
15720
15759
|
"_y",
|
|
15721
|
-
"
|
|
15760
|
+
"_hU"
|
|
15722
15761
|
])} 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")}`);
|
|
15723
15762
|
_if(() => {
|
|
15724
15763
|
if (parsed.error) {
|
|
15725
15764
|
const $scope8_id = _scope_id();
|
|
15726
|
-
_html(`<p${_attr_class([hint, "
|
|
15765
|
+
_html(`<p${_attr_class([hint, "_hT"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
15727
15766
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
15728
15767
|
return 0;
|
|
15729
15768
|
} else if (parsed.ok) {
|
|
15730
15769
|
const $scope3_id = _scope_id();
|
|
15731
|
-
_html(`<ul${_attr_class("
|
|
15770
|
+
_html(`<ul${_attr_class("_hV")}>`);
|
|
15732
15771
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
15733
15772
|
const $scope9_id = _scope_id();
|
|
15734
|
-
_html(`<li${_attr_class("
|
|
15773
|
+
_html(`<li${_attr_class("_hW")}><span${_attr_class("_hX")}>${_text_resume($scope9_id, "c", repoLabel$1(fullName))}</span></li>`);
|
|
15735
15774
|
writeScope($scope9_id, {});
|
|
15736
15775
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
15737
|
-
_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("
|
|
15776
|
+
_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("_hY")}><span${_attr_class("_cr")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
15738
15777
|
name = _new_name;
|
|
15739
15778
|
}, "m1", $scope3_id))}${_attr_class("_Y")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
15740
15779
|
_script($scope3_id, "m8");
|
|
@@ -15771,10 +15810,10 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
15771
15810
|
_if(() => {
|
|
15772
15811
|
if (busy && steps$2.length) {
|
|
15773
15812
|
const $scope6_id = _scope_id();
|
|
15774
|
-
_html(`<ul${_attr_class("
|
|
15813
|
+
_html(`<ul${_attr_class("_hZ")}>`);
|
|
15775
15814
|
_for_of(steps$2, (step$2, i) => {
|
|
15776
15815
|
const $scope7_id = _scope_id();
|
|
15777
|
-
_html(`<li${_attr_class(["
|
|
15816
|
+
_html(`<li${_attr_class(["_h1", { ["_h0"]: i === steps$2.length - 1 }])}>`);
|
|
15778
15817
|
_if(() => {
|
|
15779
15818
|
if (i === steps$2.length - 1) {
|
|
15780
15819
|
const $scope10_id = _scope_id();
|
|
@@ -15783,7 +15822,7 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
15783
15822
|
return 0;
|
|
15784
15823
|
} else {
|
|
15785
15824
|
const $scope11_id = _scope_id();
|
|
15786
|
-
_html(`<span${_attr_class("
|
|
15825
|
+
_html(`<span${_attr_class("_h2")}>`);
|
|
15787
15826
|
icon_check_default({ size: 14 });
|
|
15788
15827
|
_html("</span>");
|
|
15789
15828
|
writeScope($scope11_id, {});
|
|
@@ -15941,7 +15980,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
15941
15980
|
}
|
|
15942
15981
|
}, "s6", $scope0_id);
|
|
15943
15982
|
const titleId = _id();
|
|
15944
|
-
_html(`<div${_attr_class("
|
|
15983
|
+
_html(`<div${_attr_class("_d5")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d6")}><div${_attr_class("_d7")}>`);
|
|
15945
15984
|
_set_serialize_reason({
|
|
15946
15985
|
0: _serialize_guard($scope0_reason, 2),
|
|
15947
15986
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -15965,7 +16004,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
15965
16004
|
_resume_branch($scope3_id);
|
|
15966
16005
|
}, $scope0_id) })
|
|
15967
16006
|
});
|
|
15968
|
-
_html(`<div${_attr_class("
|
|
16007
|
+
_html(`<div${_attr_class("_d8")}>`);
|
|
15969
16008
|
_if(() => {
|
|
15970
16009
|
if (error) {
|
|
15971
16010
|
const $scope8_id = _scope_id();
|
|
@@ -15986,16 +16025,16 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
15986
16025
|
return 0;
|
|
15987
16026
|
}
|
|
15988
16027
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
15989
|
-
_html(`<label${_attr_class("
|
|
16028
|
+
_html(`<label${_attr_class("_fK")}><span${_attr_class("_cr")}>Name</span><input${_attr_input_value($scope0_id, "i", name, _resume((_new_name) => {
|
|
15990
16029
|
name = _new_name;
|
|
15991
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("
|
|
16030
|
+
}, "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></div><ul${_attr_class(list$2)}>`);
|
|
15992
16031
|
_for_of(selected, (repo) => {
|
|
15993
16032
|
const $scope4_id = _scope_id();
|
|
15994
|
-
_html(`<li${_attr_class("
|
|
16033
|
+
_html(`<li${_attr_class("_fN")}><div${_attr_class(curRow)}><span${_attr_class("_fR")}>${_text_resume($scope4_id, "d", repoLabel$1(repo.fullName))}</span>`);
|
|
15995
16034
|
_if(() => {
|
|
15996
16035
|
if (repo.fork !== void 0) {
|
|
15997
16036
|
const $scope5_id = _scope_id();
|
|
15998
|
-
_html(`<button${_attr_class(["
|
|
16037
|
+
_html(`<button${_attr_class(["_fU", { ["_fS"]: repo.fork }])}${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)}>`);
|
|
15999
16038
|
_if(() => {
|
|
16000
16039
|
if (repo.fork) {
|
|
16001
16040
|
const $scope13_id = _scope_id();
|
|
@@ -16018,7 +16057,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16018
16057
|
_html(`<button${_attr_class([
|
|
16019
16058
|
curBase,
|
|
16020
16059
|
"_y",
|
|
16021
|
-
{ ["
|
|
16060
|
+
{ ["_fS"]: branchesFor === repo.fullName }
|
|
16022
16061
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
16023
16062
|
icon_branch_default({ size: 12 });
|
|
16024
16063
|
_html(`${_text_resume($scope4_id, "h", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope4_id, "f")}<button${_attr_class([iconBtnXs, "_7"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -16027,7 +16066,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16027
16066
|
_if(() => {
|
|
16028
16067
|
if (branchesFor === repo.fullName) {
|
|
16029
16068
|
const $scope10_id = _scope_id();
|
|
16030
|
-
_html(`<div${_attr_class("
|
|
16069
|
+
_html(`<div${_attr_class("_fP")}>`);
|
|
16031
16070
|
const $childScope2 = _peek_scope_id();
|
|
16032
16071
|
branch_pick_default({
|
|
16033
16072
|
repo: repo.fullName,
|
|
@@ -16078,7 +16117,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16078
16117
|
action: attrTag({ content: _content("s20", () => {
|
|
16079
16118
|
_scope_reason();
|
|
16080
16119
|
const $scope2_id = _scope_id();
|
|
16081
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
16120
|
+
_html(`<button${_attr_class([iconBtnRow, "_fL"])} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
16082
16121
|
_set_serialize_reason(1);
|
|
16083
16122
|
const $childScope3 = _peek_scope_id();
|
|
16084
16123
|
icon_refresh_default({
|
|
@@ -16099,10 +16138,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16099
16138
|
_if(() => {
|
|
16100
16139
|
if (busy && steps.length) {
|
|
16101
16140
|
const $scope11_id = _scope_id();
|
|
16102
|
-
_html(`<ul${_attr_class("
|
|
16141
|
+
_html(`<ul${_attr_class("_fV")}>`);
|
|
16103
16142
|
_for_of(steps, (step, i) => {
|
|
16104
16143
|
const $scope12_id = _scope_id();
|
|
16105
|
-
_html(`<li${_attr_class(["
|
|
16144
|
+
_html(`<li${_attr_class(["_f1", { ["_fW"]: i === steps.length - 1 }])}>`);
|
|
16106
16145
|
_if(() => {
|
|
16107
16146
|
if (i === steps.length - 1) {
|
|
16108
16147
|
const $scope16_id = _scope_id();
|
|
@@ -16111,7 +16150,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16111
16150
|
return 0;
|
|
16112
16151
|
} else {
|
|
16113
16152
|
const $scope17_id = _scope_id();
|
|
16114
|
-
_html(`<span${_attr_class("
|
|
16153
|
+
_html(`<span${_attr_class("_fX")}>`);
|
|
16115
16154
|
icon_check_default({ size: 14 });
|
|
16116
16155
|
_html("</span>");
|
|
16117
16156
|
writeScope($scope17_id, {});
|
|
@@ -16125,18 +16164,18 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16125
16164
|
return 0;
|
|
16126
16165
|
}
|
|
16127
16166
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
16128
|
-
_html(`<div${_attr_class("
|
|
16167
|
+
_html(`<div${_attr_class("_fI")}><button type=button${_attr_class([
|
|
16129
16168
|
btnLg,
|
|
16130
16169
|
"_r",
|
|
16131
|
-
"
|
|
16132
|
-
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "u", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "t")}</div></div><div${_attr_class("
|
|
16170
|
+
"_fJ"
|
|
16171
|
+
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "u", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "t")}</div></div><div${_attr_class("_d8")}>`);
|
|
16133
16172
|
_if(() => {
|
|
16134
16173
|
if (archived$1.length) {
|
|
16135
16174
|
const $scope6_id = _scope_id();
|
|
16136
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
16175
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fM")}><h2${_attr_class("_cr")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope6_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)}>`);
|
|
16137
16176
|
_for_of(archived$1, (ws) => {
|
|
16138
16177
|
const $scope7_id = _scope_id();
|
|
16139
|
-
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("
|
|
16178
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_cj")}><span${_attr_class("_ck")}>${_text_resume($scope7_id, "d", ws.name, $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_y"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope7_id, "f", ws.display_path || ws.path, $sg__input_workspaces)}</span>${_el_resume($scope7_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnSm)}${_attr("disabled", busy || !!restoring)}>`);
|
|
16140
16179
|
_if(() => {
|
|
16141
16180
|
if (restoring === ws.id) {
|
|
16142
16181
|
const $scope18_id = _scope_id();
|
|
@@ -16253,19 +16292,19 @@ var term_find_default = _template("G", (input) => {
|
|
|
16253
16292
|
const canStep = hasQuery && open;
|
|
16254
16293
|
const keybar = input.placement === "keybar";
|
|
16255
16294
|
_html(`<div${_attr_class([
|
|
16256
|
-
"
|
|
16257
|
-
keybar ? "
|
|
16258
|
-
!open && "
|
|
16259
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
16295
|
+
"_ek",
|
|
16296
|
+
keybar ? "_em" : "_el",
|
|
16297
|
+
!open && "_eo"
|
|
16298
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_ee", keybar ? "_en" : "_eh"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
16260
16299
|
if (!open) return;
|
|
16261
16300
|
query = v;
|
|
16262
16301
|
live.query = v;
|
|
16263
16302
|
run(0);
|
|
16264
|
-
}, "G1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
16303
|
+
}, "G1", $scope0_id))}${_attr_class([findInput, keybar && "_ep"])} 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 && "_eq"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
16265
16304
|
icon_arrow_up_default({ size: 14 });
|
|
16266
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
16305
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_eq"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
16267
16306
|
icon_arrow_down_default({ size: 14 });
|
|
16268
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
16307
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_eq"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
16269
16308
|
icon_xmark_default({ size: 14 });
|
|
16270
16309
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
16271
16310
|
const $return = focusInput;
|
|
@@ -16416,7 +16455,7 @@ var term_default = _template("H", (input) => {
|
|
|
16416
16455
|
}
|
|
16417
16456
|
}, "H9", $scope0_id);
|
|
16418
16457
|
input.keys;
|
|
16419
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
16458
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eQ")}><div${_attr_class("_eR")}></div>${_el_resume($scope0_id, "b")}`);
|
|
16420
16459
|
_if(() => {
|
|
16421
16460
|
if (findOpen) {
|
|
16422
16461
|
const $scope4_id = _scope_id();
|
|
@@ -16443,7 +16482,7 @@ var term_default = _template("H", (input) => {
|
|
|
16443
16482
|
_if(() => {
|
|
16444
16483
|
if (uploading) {
|
|
16445
16484
|
const $scope5_id = _scope_id();
|
|
16446
|
-
_html(`<div${_attr_class("
|
|
16485
|
+
_html(`<div${_attr_class("_eX")}>uploading…</div>`);
|
|
16447
16486
|
writeScope($scope5_id, {});
|
|
16448
16487
|
return 0;
|
|
16449
16488
|
}
|
|
@@ -16451,7 +16490,7 @@ var term_default = _template("H", (input) => {
|
|
|
16451
16490
|
_if(() => {
|
|
16452
16491
|
if (copiedFlash) {
|
|
16453
16492
|
const $scope6_id = _scope_id();
|
|
16454
|
-
_html(`<div${_attr_class("
|
|
16493
|
+
_html(`<div${_attr_class("_eW")}>Copied</div>`);
|
|
16455
16494
|
writeScope($scope6_id, {});
|
|
16456
16495
|
return 0;
|
|
16457
16496
|
}
|
|
@@ -16460,7 +16499,7 @@ var term_default = _template("H", (input) => {
|
|
|
16460
16499
|
_if(() => {
|
|
16461
16500
|
if (trapOpen) {
|
|
16462
16501
|
const $scope3_id = _scope_id();
|
|
16463
|
-
_html(`<div${_attr_class("
|
|
16502
|
+
_html(`<div${_attr_class("_eY")}><div${_attr_class("_eZ")}><p${_attr_class("_e0")}>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")}`);
|
|
16464
16503
|
_script($scope3_id, "H16");
|
|
16465
16504
|
_script($scope3_id, "H17");
|
|
16466
16505
|
writeScope($scope3_id, {});
|
|
@@ -16722,7 +16761,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16722
16761
|
toggleDiff();
|
|
16723
16762
|
}
|
|
16724
16763
|
}, "M14", $scope0_id);
|
|
16725
|
-
_html(`<div${_attr_class(["
|
|
16764
|
+
_html(`<div${_attr_class(["_b8", { ["_b7"]: !input.active }])}><div${_attr_class("_b9")}>`);
|
|
16726
16765
|
_if(() => {
|
|
16727
16766
|
if (error) {
|
|
16728
16767
|
const $scope8_id = _scope_id();
|
|
@@ -16745,7 +16784,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16745
16784
|
_if(() => {
|
|
16746
16785
|
if (diffMounted && ws) {
|
|
16747
16786
|
const $scope1_id = _scope_id();
|
|
16748
|
-
_html(`<div${_attr_class("
|
|
16787
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
16749
16788
|
_set_serialize_reason({
|
|
16750
16789
|
0: $sg__input_workspace,
|
|
16751
16790
|
1: $sg__input_workspace,
|
|
@@ -16807,7 +16846,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16807
16846
|
_if(() => {
|
|
16808
16847
|
if (manageMounted && ws) {
|
|
16809
16848
|
const $scope2_id = _scope_id();
|
|
16810
|
-
_html(`<div${_attr_class("
|
|
16849
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
16811
16850
|
_set_serialize_reason({
|
|
16812
16851
|
0: $sg__input_workspace,
|
|
16813
16852
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -16833,7 +16872,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16833
16872
|
_if(() => {
|
|
16834
16873
|
if (settingsMounted) {
|
|
16835
16874
|
const $scope3_id = _scope_id();
|
|
16836
|
-
_html(`<div${_attr_class("
|
|
16875
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
16837
16876
|
_set_serialize_reason({
|
|
16838
16877
|
0: _serialize_guard($scope0_reason, 0),
|
|
16839
16878
|
1: $sg__input_workspace,
|
|
@@ -16875,7 +16914,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16875
16914
|
_if(() => {
|
|
16876
16915
|
if (newMounted) {
|
|
16877
16916
|
const $scope4_id = _scope_id();
|
|
16878
|
-
_html(`<div${_attr_class("
|
|
16917
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
16879
16918
|
_set_serialize_reason({
|
|
16880
16919
|
0: 1,
|
|
16881
16920
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -16900,13 +16939,13 @@ var work_view_default = _template("M", (input) => {
|
|
|
16900
16939
|
return 0;
|
|
16901
16940
|
}
|
|
16902
16941
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
16903
|
-
_html(`<div${_attr_class("
|
|
16942
|
+
_html(`<div${_attr_class("_ca")}${_attr("inert", view !== "term")}>`);
|
|
16904
16943
|
_if(() => {
|
|
16905
16944
|
if (ws && shownSessions) {
|
|
16906
16945
|
const $scope5_id = _scope_id();
|
|
16907
16946
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
16908
16947
|
const $scope6_id = _scope_id();
|
|
16909
|
-
_html(`<div${_attr_class("
|
|
16948
|
+
_html(`<div${_attr_class("_cb")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
16910
16949
|
_set_serialize_reason(2);
|
|
16911
16950
|
const $childScope5 = _peek_scope_id();
|
|
16912
16951
|
term_default({
|
|
@@ -16932,7 +16971,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16932
16971
|
_if(() => {
|
|
16933
16972
|
if (!shownSessions.length && view === "term") {
|
|
16934
16973
|
const $scope7_id = _scope_id();
|
|
16935
|
-
_html(`<div${_attr_class("
|
|
16974
|
+
_html(`<div${_attr_class("_cp")}><span>No sessions in this workspace.</span><button${_attr_class(["_q", "_r"])}${_attr("disabled", spawning)}>${_text_resume($scope7_id, "c", spawning ? "Starting…" : `Start ${input.preferred || "shell"}`)}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
16936
16975
|
_script($scope7_id, "M39");
|
|
16937
16976
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
16938
16977
|
return 0;
|
|
@@ -16942,7 +16981,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16942
16981
|
return 0;
|
|
16943
16982
|
} else if (ws) {
|
|
16944
16983
|
const $scope10_id = _scope_id();
|
|
16945
|
-
_html(`<p${_attr_class("
|
|
16984
|
+
_html(`<p${_attr_class("_cp")}>Loading sessions…</p>`);
|
|
16946
16985
|
writeScope($scope10_id, {});
|
|
16947
16986
|
return 1;
|
|
16948
16987
|
}
|
|
@@ -17045,7 +17084,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
17045
17084
|
});
|
|
17046
17085
|
//#endregion
|
|
17047
17086
|
//#region src/tags/key-bar.css.ts
|
|
17048
|
-
var kbtn = "
|
|
17087
|
+
var kbtn = "_bG _5 _l";
|
|
17049
17088
|
_template("wb", (input) => {
|
|
17050
17089
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
17051
17090
|
const $scope0_id = _scope_id();
|
|
@@ -17061,8 +17100,8 @@ _template("wb", (input) => {
|
|
|
17061
17100
|
});
|
|
17062
17101
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
17063
17102
|
});
|
|
17064
|
-
var sessOpen = "
|
|
17065
|
-
var sessRename = "
|
|
17103
|
+
var sessOpen = "_ev _I";
|
|
17104
|
+
var sessRename = "_ez _J";
|
|
17066
17105
|
//#endregion
|
|
17067
17106
|
//#region src/tags/usage-pcts.marko
|
|
17068
17107
|
var usage_pcts_default = _template("L", (input) => {
|
|
@@ -17074,22 +17113,22 @@ var usage_pcts_default = _template("L", (input) => {
|
|
|
17074
17113
|
if (windows.length) {
|
|
17075
17114
|
const $scope1_id = _scope_id();
|
|
17076
17115
|
_html(`<span${_attr_class([
|
|
17077
|
-
"
|
|
17116
|
+
"_hE",
|
|
17078
17117
|
input.class,
|
|
17079
|
-
{ ["
|
|
17118
|
+
{ ["_hF"]: agent.stale_seconds != null }
|
|
17080
17119
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
17081
17120
|
_for_of(windows, (win$1, i) => {
|
|
17082
17121
|
const $scope2_id = _scope_id();
|
|
17083
|
-
_html(`<span${_attr_class("
|
|
17122
|
+
_html(`<span${_attr_class("_hG")}>`);
|
|
17084
17123
|
_if(() => {
|
|
17085
17124
|
if (i) {
|
|
17086
17125
|
const $scope3_id = _scope_id();
|
|
17087
|
-
_html(`<span${_attr_class("
|
|
17126
|
+
_html(`<span${_attr_class("_hJ")} aria-hidden=true>·</span>`);
|
|
17088
17127
|
$si__input_agent && writeScope($scope3_id, {});
|
|
17089
17128
|
return 0;
|
|
17090
17129
|
}
|
|
17091
17130
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
17092
|
-
_html(`<span${_attr_class("
|
|
17131
|
+
_html(`<span${_attr_class("_hH")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hI", win$1.used_percent >= 90 ? "_hA" : win$1.used_percent >= 70 ? "_hz" : win$1.used_percent >= 40 ? "_hy" : "_hx"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
17093
17132
|
$si__input_agent && writeScope($scope2_id, {});
|
|
17094
17133
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
17095
17134
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -17131,7 +17170,7 @@ _template("n", (input) => {
|
|
|
17131
17170
|
align: "center",
|
|
17132
17171
|
gap: 8
|
|
17133
17172
|
}), "n2", $scope0_id);
|
|
17134
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17173
|
+
_html(`<button${_attr_class([kbtn, "_er"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
17135
17174
|
_set_serialize_reason({
|
|
17136
17175
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
17137
17176
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -17145,11 +17184,11 @@ _template("n", (input) => {
|
|
|
17145
17184
|
"_A",
|
|
17146
17185
|
"_bb",
|
|
17147
17186
|
phase[sessionPhase(current$2?.state)]
|
|
17148
|
-
])}></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", "
|
|
17187
|
+
])}></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", "_es"])}>`);
|
|
17149
17188
|
_for_of(input.sessions, (s) => {
|
|
17150
17189
|
const $scope1_id = _scope_id();
|
|
17151
17190
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17152
|
-
_html(`<div${_attr_class(["
|
|
17191
|
+
_html(`<div${_attr_class(["_eu", { ["_et"]: s.id === input.sessionId }])}>`);
|
|
17153
17192
|
_if(() => {
|
|
17154
17193
|
if (renamingId === s.id) {
|
|
17155
17194
|
const $scope5_id = _scope_id();
|
|
@@ -17181,7 +17220,7 @@ _template("n", (input) => {
|
|
|
17181
17220
|
agent: activeAgent(s),
|
|
17182
17221
|
size: 14
|
|
17183
17222
|
});
|
|
17184
|
-
_html(`<span${_attr_class("
|
|
17223
|
+
_html(`<span${_attr_class("_ew")}><span${_attr_class("_ey")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17185
17224
|
_if(() => {
|
|
17186
17225
|
if (s.id === input.sessionId) {
|
|
17187
17226
|
const $scope7_id = _scope_id();
|
|
@@ -17193,7 +17232,7 @@ _template("n", (input) => {
|
|
|
17193
17232
|
const $childScope4 = _peek_scope_id();
|
|
17194
17233
|
usage_pcts_default({
|
|
17195
17234
|
agent: plan,
|
|
17196
|
-
class: "
|
|
17235
|
+
class: "_ex"
|
|
17197
17236
|
});
|
|
17198
17237
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
17199
17238
|
return 0;
|
|
@@ -17210,7 +17249,7 @@ _template("n", (input) => {
|
|
|
17210
17249
|
_if(() => {
|
|
17211
17250
|
if (input.onRenameSession) {
|
|
17212
17251
|
const $scope6_id = _scope_id();
|
|
17213
|
-
_html(`<button${_attr_class(["
|
|
17252
|
+
_html(`<button${_attr_class(["_eA", "_eB"])} title="Rename session">`);
|
|
17214
17253
|
icon_edit_default({ size: 12 });
|
|
17215
17254
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
17216
17255
|
_script($scope6_id, "n5");
|
|
@@ -17222,7 +17261,7 @@ _template("n", (input) => {
|
|
|
17222
17261
|
if (input.onCloseSession) {
|
|
17223
17262
|
const $scope3_id = _scope_id();
|
|
17224
17263
|
arm_button_default({
|
|
17225
|
-
class: ["
|
|
17264
|
+
class: ["_eA", "_7"],
|
|
17226
17265
|
title: "Close session",
|
|
17227
17266
|
armedTitle: "Close?",
|
|
17228
17267
|
onFire: _resume(function() {
|
|
@@ -17254,7 +17293,7 @@ _template("n", (input) => {
|
|
|
17254
17293
|
m: $si__input_sessions && $for_content__s_agent__closures
|
|
17255
17294
|
});
|
|
17256
17295
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
17257
|
-
_html(`<div${_attr_class("
|
|
17296
|
+
_html(`<div${_attr_class("_eC")}><span${_attr_class("_eD")}>New session</span><div${_attr_class("_eE")}>`);
|
|
17258
17297
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
17259
17298
|
const $scope4_id = _scope_id();
|
|
17260
17299
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -26418,4 +26457,4 @@ server.listen(port, () => {
|
|
|
26418
26457
|
//#endregion
|
|
26419
26458
|
export {};
|
|
26420
26459
|
|
|
26421
|
-
;var __MARKO_MANIFEST__={"
|
|
26460
|
+
;var __MARKO_MANIFEST__={"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-D-UU3b4l.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D-UU3b4l.css\"",">",2,"stylesheet#/assets/app-page-CE13Vv1z.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CE13Vv1z.css\"",">"],"defer":[2,"/assets/w._-BE32Bvf7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BE32Bvf7.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Dr6PwR9h.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Dr6PwR9h.js\"",">",2,"modulepreload#/assets/_m6B8EqQJ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_m6B8EqQJ.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-D-UU3b4l.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D-UU3b4l.css\"",">",2,"stylesheet#/assets/app-page-CE13Vv1z.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CE13Vv1z.css\"",">"],"defer":[2,"/assets/w-BE32Bvf7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-BE32Bvf7.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Dr6PwR9h.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Dr6PwR9h.js\"",">",2,"modulepreload#/assets/_m6B8EqQJ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_m6B8EqQJ.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-D-UU3b4l.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D-UU3b4l.css\"",">",2,"stylesheet#/assets/app-page-CE13Vv1z.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CE13Vv1z.css\"",">"],"defer":[2,"/assets/new-BE32Bvf7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-BE32Bvf7.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Dr6PwR9h.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Dr6PwR9h.js\"",">",2,"modulepreload#/assets/_m6B8EqQJ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_m6B8EqQJ.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-D-UU3b4l.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D-UU3b4l.css\"",">",2,"stylesheet#/assets/app-page-CE13Vv1z.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CE13Vv1z.css\"",">"],"defer":[2,"/assets/w._-D42QLstp.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-D42QLstp.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Dr6PwR9h.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Dr6PwR9h.js\"",">",2,"modulepreload#/assets/_m6B8EqQJ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_m6B8EqQJ.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-D-UU3b4l.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D-UU3b4l.css\"",">",2,"stylesheet#/assets/app-page-CE13Vv1z.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CE13Vv1z.css\"",">"],"defer":[2,"/assets/settings-BE32Bvf7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-BE32Bvf7.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Dr6PwR9h.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Dr6PwR9h.js\"",">",2,"modulepreload#/assets/_m6B8EqQJ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_m6B8EqQJ.js\"",">"]},"_z":{"block":[2,"stylesheet#/assets/review-view-D2rU40po.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/review-view-D2rU40po.css\"",">",2,"stylesheet#/assets/icon-arrow-down-D-UU3b4l.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-D-UU3b4l.css\"",">"],"defer":[2,"/assets/review-view-DKK8Dhx3.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/review-view-DKK8Dhx3.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">"]}};
|