@dylanpiercey/work 0.0.174 → 0.0.176
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 +414 -414
- package/dist/public/assets/_8TkbwrDF.js +1 -0
- package/dist/public/assets/_BBj6AGD8.js +1 -0
- package/dist/public/assets/_BC69rqyR.js +1 -0
- package/dist/public/assets/_BGTdJr0N.js +1 -0
- package/dist/public/assets/_BJt_-ynT.js +1 -0
- package/dist/public/assets/{_BN5-ORGu.js → _BNhAUM8r.js} +94 -93
- package/dist/public/assets/_BNhAUM8r.js.br +0 -0
- package/dist/public/assets/{_DZ999WI0.js → _BZpsc9I_.js} +1 -1
- package/dist/public/assets/_BZpsc9I_.js.br +0 -0
- package/dist/public/assets/_Bai1O7O7.js +1 -0
- package/dist/public/assets/_BdBZBPSy.js +1 -0
- package/dist/public/assets/_BibI-31k.js +1 -0
- package/dist/public/assets/_BiiRLSFc.js +1 -0
- package/dist/public/assets/_Bj-p0MtZ.js +1 -0
- package/dist/public/assets/{_CmxWKvu7.js → _BoN0MUA6.js} +4 -4
- package/dist/public/assets/_BoN0MUA6.js.br +0 -0
- package/dist/public/assets/_C-sKNGw7.js +1 -0
- package/dist/public/assets/_COgTXiUb.js +1 -0
- package/dist/public/assets/_ChG9Z0HY.js +1 -0
- package/dist/public/assets/_DjYjEtWU.js +1 -0
- package/dist/public/assets/_DpQ_0dwK.js +1 -0
- package/dist/public/assets/_DxdzDFcR.js +1 -0
- package/dist/public/assets/_GMYEjb5d.js +1 -0
- package/dist/public/assets/_Ho-YoFdR.js +1 -0
- package/dist/public/assets/_TJ13aErs.js +1 -0
- package/dist/public/assets/_g_pAeaEU.js +1 -0
- package/dist/public/assets/_iNx4ee_y.js +1 -0
- package/dist/public/assets/{app-page-CPgV7nno.css → app-page-BYLkOROF.css} +1 -1
- package/dist/public/assets/app-page-BYLkOROF.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-D2thnWCA.css → icon-arrow-down-B9_qBRD4.css} +1 -1
- package/dist/public/assets/icon-arrow-down-B9_qBRD4.css.br +0 -0
- package/dist/public/assets/new-l1nwmujI.js +1 -0
- package/dist/public/assets/review-view-BwsOWNsd.js +2 -0
- package/dist/public/assets/{review-view-BzdF2mqZ.css → review-view-C25qv8iD.css} +1 -1
- package/dist/public/assets/review-view-C25qv8iD.css.br +0 -0
- package/dist/public/assets/settings-l1nwmujI.js +1 -0
- package/dist/public/assets/w-l1nwmujI.js +1 -0
- package/dist/public/assets/w._-BpQmbwMk.js +1 -0
- package/dist/public/assets/w._-l1nwmujI.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_183V-Tx2.js +0 -1
- package/dist/public/assets/_1ClJ7Vbz.js +0 -1
- package/dist/public/assets/_BBU880O4.js +0 -1
- package/dist/public/assets/_BLwsKK6M.js +0 -1
- package/dist/public/assets/_BN5-ORGu.js.br +0 -0
- package/dist/public/assets/_BbgDq-mE.js +0 -1
- package/dist/public/assets/_C8KvVbAQ.js +0 -1
- package/dist/public/assets/_CIQpuPUD.js +0 -1
- package/dist/public/assets/_CKsR7jYG.js +0 -1
- package/dist/public/assets/_CVhJELGI.js +0 -1
- package/dist/public/assets/_CmxWKvu7.js.br +0 -0
- package/dist/public/assets/_D1-CPqVC.js +0 -1
- package/dist/public/assets/_D1mhDjhN.js +0 -1
- package/dist/public/assets/_D7b9CXdo.js +0 -1
- package/dist/public/assets/_DO8m5BCJ.js +0 -1
- package/dist/public/assets/_DSsgc1Tk.js +0 -1
- package/dist/public/assets/_DZ999WI0.js.br +0 -0
- package/dist/public/assets/_DZigKPCx.js +0 -1
- package/dist/public/assets/_Djeh7x4b.js +0 -1
- package/dist/public/assets/_DvrbuUNn.js +0 -1
- package/dist/public/assets/_cIlU2HUp.js +0 -1
- package/dist/public/assets/_cPqUhesZ.js +0 -1
- package/dist/public/assets/_iZX4u3E4.js +0 -1
- package/dist/public/assets/_tM6HaJgW.js +0 -1
- package/dist/public/assets/app-page-CPgV7nno.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-D2thnWCA.css.br +0 -0
- package/dist/public/assets/new-Dt00pIqK.js +0 -1
- package/dist/public/assets/review-view-BzdF2mqZ.css.br +0 -0
- package/dist/public/assets/review-view-DcsDfTWS.js +0 -2
- package/dist/public/assets/settings-Dt00pIqK.js +0 -1
- package/dist/public/assets/w-Dt00pIqK.js +0 -1
- package/dist/public/assets/w._-Dt00pIqK.js +0 -1
- package/dist/public/assets/w._-H70KYAMD.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -7318,19 +7318,19 @@ function applyInstance(inst) {
|
|
|
7318
7318
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7319
7319
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7320
7320
|
}
|
|
7321
|
-
var agentRow = "
|
|
7322
|
-
var toolGrid = "
|
|
7323
|
-
var toolRow = "
|
|
7324
|
-
var themeSeg = "
|
|
7325
|
-
var checkList = "
|
|
7326
|
-
var list$2 = "
|
|
7327
|
-
var flatCardRow = "
|
|
7328
|
-
var chip$1 = "
|
|
7329
|
-
var pop$1 = "
|
|
7330
|
-
var spinner = "
|
|
7331
|
-
var busy = "
|
|
7332
|
-
var pop = "
|
|
7333
|
-
var sectionCount$1 = "
|
|
7321
|
+
var agentRow = "_di _cL";
|
|
7322
|
+
var toolGrid = "_dq _cV";
|
|
7323
|
+
var toolRow = "_dr _cW";
|
|
7324
|
+
var themeSeg = "_dO _bd";
|
|
7325
|
+
var checkList = "_ej _bX";
|
|
7326
|
+
var list$2 = "_cX _bZ _cK _cV";
|
|
7327
|
+
var flatCardRow = "_cY _cW";
|
|
7328
|
+
var chip$1 = "_c7 _X _W";
|
|
7329
|
+
var pop$1 = "_cG _9";
|
|
7330
|
+
var spinner = "_cJ _1 _G";
|
|
7331
|
+
var busy = "_cv _cu";
|
|
7332
|
+
var pop = "_cx _9";
|
|
7333
|
+
var sectionCount$1 = "_bW _N _O";
|
|
7334
7334
|
//#endregion
|
|
7335
7335
|
//#region src/tags/icons/icon-refresh.marko
|
|
7336
7336
|
var icon_refresh_default = _template("pb", (input) => {
|
|
@@ -7370,18 +7370,18 @@ var icon_back_default = _template("V", (input) => {
|
|
|
7370
7370
|
var page_head_default = _template("t", (input) => {
|
|
7371
7371
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
|
|
7372
7372
|
const $scope0_id = _scope_id();
|
|
7373
|
-
_html(`<header${_attr_class("
|
|
7373
|
+
_html(`<header${_attr_class("_dc")}>`);
|
|
7374
7374
|
_if(() => {
|
|
7375
7375
|
if (input.backHref) {
|
|
7376
7376
|
const $scope1_id = _scope_id();
|
|
7377
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7377
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_eB"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7378
7378
|
icon_back_default({ size: 14 });
|
|
7379
7379
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7380
7380
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7381
7381
|
return 0;
|
|
7382
7382
|
} else if (input.onBack) {
|
|
7383
7383
|
const $scope2_id = _scope_id();
|
|
7384
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7384
|
+
_html(`<button${_attr_class([iconBtnRow, "_eB"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7385
7385
|
icon_back_default({ size: 14 });
|
|
7386
7386
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7387
7387
|
_script($scope2_id, "t0");
|
|
@@ -7389,11 +7389,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
7389
7389
|
return 1;
|
|
7390
7390
|
}
|
|
7391
7391
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
7392
|
-
_html(`<div${_attr_class("
|
|
7392
|
+
_html(`<div${_attr_class("_de")}><h1${_attr("id", input.titleId)}${_attr_class("_dd")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7393
7393
|
_if(() => {
|
|
7394
7394
|
if (input.meta) {
|
|
7395
7395
|
const $scope3_id = _scope_id();
|
|
7396
|
-
_html(`<p${_attr_class("
|
|
7396
|
+
_html(`<p${_attr_class("_df")}>`);
|
|
7397
7397
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7398
7398
|
_html("</p>");
|
|
7399
7399
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7404,7 +7404,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
7404
7404
|
_if(() => {
|
|
7405
7405
|
if (input.actions) {
|
|
7406
7406
|
const $scope4_id = _scope_id();
|
|
7407
|
-
_html(`<div${_attr_class("
|
|
7407
|
+
_html(`<div${_attr_class("_dg")}>`);
|
|
7408
7408
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7409
7409
|
_html("</div>");
|
|
7410
7410
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7472,7 +7472,7 @@ var icon_agent_default = _template("P", (input) => {
|
|
|
7472
7472
|
n: $badge__closures
|
|
7473
7473
|
});
|
|
7474
7474
|
});
|
|
7475
|
-
var usageNote = "
|
|
7475
|
+
var usageNote = "_ho _W";
|
|
7476
7476
|
//#endregion
|
|
7477
7477
|
//#region src/tags/icons/icon-warning.marko
|
|
7478
7478
|
var icon_warning_default = _template("xb", (input) => {
|
|
@@ -7502,11 +7502,11 @@ var usage_meters_default = _template("L", (input) => {
|
|
|
7502
7502
|
const $scope0_reason = _scope_reason(), $sg__input_agent__OR__input_hideName = _serialize_guard($scope0_reason, 0), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_hideName = _serialize_guard($scope0_reason, 2), $si__input_agent__OR__input_hideName = _serialize_if($scope0_reason, 0);
|
|
7503
7503
|
const $scope0_id = _scope_id();
|
|
7504
7504
|
const agent = input.agent;
|
|
7505
|
-
_html(`<div${_attr_class(["
|
|
7505
|
+
_html(`<div${_attr_class(["_hi", { ["_hj"]: input.hideName }])}><div${_attr_class("_hk")}>`);
|
|
7506
7506
|
_if(() => {
|
|
7507
7507
|
if (!input.hideName) {
|
|
7508
7508
|
const $scope1_id = _scope_id();
|
|
7509
|
-
_html(`<strong${_attr_class("
|
|
7509
|
+
_html(`<strong${_attr_class("_hD")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7510
7510
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7511
7511
|
return 0;
|
|
7512
7512
|
}
|
|
@@ -7514,7 +7514,7 @@ var usage_meters_default = _template("L", (input) => {
|
|
|
7514
7514
|
_if(() => {
|
|
7515
7515
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7516
7516
|
const $scope2_id = _scope_id();
|
|
7517
|
-
_html(`<span${_attr_class("
|
|
7517
|
+
_html(`<span${_attr_class("_hl")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7518
7518
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7519
7519
|
return 0;
|
|
7520
7520
|
}
|
|
@@ -7522,21 +7522,21 @@ var usage_meters_default = _template("L", (input) => {
|
|
|
7522
7522
|
_if(() => {
|
|
7523
7523
|
if (agent.stale_seconds != null) {
|
|
7524
7524
|
const $scope3_id = _scope_id();
|
|
7525
|
-
_html(`<span${_attr_class("
|
|
7525
|
+
_html(`<span${_attr_class("_hm")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7526
7526
|
icon_warning_default({ size: 12 });
|
|
7527
7527
|
_html(` ${_text_resume($scope3_id, "c", duration(agent.stale_seconds * 1e3), $sg__input_agent * 2)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
7528
7528
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7529
7529
|
return 0;
|
|
7530
7530
|
}
|
|
7531
7531
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7532
|
-
_html(`</div><div${_attr_class(["
|
|
7532
|
+
_html(`</div><div${_attr_class(["_hn", { ["_hE"]: agent.stale_seconds != null }])}>`);
|
|
7533
7533
|
_for_of(agent.windows || [], (win) => {
|
|
7534
7534
|
const $scope4_id = _scope_id();
|
|
7535
7535
|
const pct = pctText(win.used_percent);
|
|
7536
7536
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7537
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7538
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7539
|
-
_html(`<div${_attr_class("
|
|
7537
|
+
const fillClass = win.used_percent >= 90 ? "_hw" : win.used_percent >= 70 ? "_hv" : win.used_percent >= 40 ? "_hu" : "_ht";
|
|
7538
|
+
const pctClass = win.used_percent >= 90 ? "_hB" : win.used_percent >= 70 ? "_hA" : win.used_percent >= 40 ? "_hz" : "_hy";
|
|
7539
|
+
_html(`<div${_attr_class("_hp")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_hq")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_hr")}><span${_attr_class(["_hs", fillClass])}${_attr_style(`width:${Math.min(100, Math.max(2, win.used_percent))}%`)}></span>${_el_resume($scope4_id, "e", $sg__input_agent)}</span><span${_attr_class(["_hx", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hC")}>`);
|
|
7540
7540
|
_if(() => {
|
|
7541
7541
|
if (label) {
|
|
7542
7542
|
const $scope6_id = _scope_id();
|
|
@@ -7635,10 +7635,10 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7635
7635
|
}
|
|
7636
7636
|
}, $scope0_id, "a", 1, 1, 1, 0, 1);
|
|
7637
7637
|
_html(`<form${_attr_class([
|
|
7638
|
-
"
|
|
7638
|
+
"_cz",
|
|
7639
7639
|
input$3.class,
|
|
7640
|
-
{ ["
|
|
7641
|
-
])}><label${_attr_class(["_0", "
|
|
7640
|
+
{ ["_cA"]: !open }
|
|
7641
|
+
])}><label${_attr_class(["_0", "_cC"])}>`);
|
|
7642
7642
|
_if(() => {
|
|
7643
7643
|
if (input$3.searching) {
|
|
7644
7644
|
const $scope5_id = _scope_id();
|
|
@@ -7665,7 +7665,7 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7665
7665
|
}, "b0", $scope0_id))}${_attr_class([
|
|
7666
7666
|
"_Y",
|
|
7667
7667
|
"_2",
|
|
7668
|
-
"
|
|
7668
|
+
"_cD"
|
|
7669
7669
|
])} type=text${_attr("placeholder", input$3.placeholder)}${_attr("aria-label", input$3.ariaLabel)} autocomplete=off spellcheck=false>${_el_resume($scope0_id, "e")}</label>`);
|
|
7670
7670
|
_if(() => {
|
|
7671
7671
|
if (input$3.submitLabel) {
|
|
@@ -7673,19 +7673,19 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7673
7673
|
_html(`<button${_attr_class([
|
|
7674
7674
|
btnSm,
|
|
7675
7675
|
"_r",
|
|
7676
|
-
"
|
|
7676
|
+
"_cE"
|
|
7677
7677
|
])} type=submit${_attr("hidden", !open)}${_attr("disabled", !value.trim() || input$3.busy)}>${_text_resume($scope3_id, "b", input$3.busy ? "Adding…" : input$3.submitLabel, _serialize_guard($scope0_reason, 1))}</button>${_el_resume($scope3_id, "a")}`);
|
|
7678
7678
|
writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7679
7679
|
return 0;
|
|
7680
7680
|
}
|
|
7681
7681
|
}, $scope0_id, "f", 1, _serialize_guard($scope0_reason, 7), 1, 0, 1);
|
|
7682
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7682
|
+
_html(`<button${_attr_class([iconBtnRow, "_cF"])} type=button${_attr("hidden", !open)} title=Close aria-label=Close${_attr("disabled", input$3.busy)}>`);
|
|
7683
7683
|
icon_xmark_default({ size: 14 });
|
|
7684
7684
|
_html(`</button>${_el_resume($scope0_id, "g")}`);
|
|
7685
7685
|
_if(() => {
|
|
7686
7686
|
if (input$3.content) {
|
|
7687
7687
|
const $scope4_id = _scope_id();
|
|
7688
|
-
_html(`<ul${_attr_class([pop$1, "
|
|
7688
|
+
_html(`<ul${_attr_class([pop$1, "_cH"])}${_attr("hidden", !open || !value.trim())}>`);
|
|
7689
7689
|
_dynamic_tag($scope4_id, "b", input$3.content, {}, 0, 0, $sg__input_content);
|
|
7690
7690
|
_html(`</ul>${_el_resume($scope4_id, "a")}`);
|
|
7691
7691
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7812,14 +7812,14 @@ var sso_auth_default = _template("G", (input) => {
|
|
|
7812
7812
|
localCode = null;
|
|
7813
7813
|
}
|
|
7814
7814
|
}, "G0", $scope0_id);
|
|
7815
|
-
_html(`<div${_attr_class(["
|
|
7815
|
+
_html(`<div${_attr_class(["_hF", input.class])}>`);
|
|
7816
7816
|
_for_of(input.items, (s) => {
|
|
7817
7817
|
const $scope1_id = _scope_id();
|
|
7818
|
-
_html(`<div${_attr_class("
|
|
7818
|
+
_html(`<div${_attr_class("_hG")}><span${_attr_class("_hI")}><span${_attr_class("_hJ")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_hK", "_hL"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7819
7819
|
_if(() => {
|
|
7820
7820
|
if (!busy) {
|
|
7821
7821
|
const $scope2_id = _scope_id();
|
|
7822
|
-
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "
|
|
7822
|
+
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "_hM"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7823
7823
|
_script($scope2_id, "G1");
|
|
7824
7824
|
writeScope($scope2_id, {});
|
|
7825
7825
|
return 0;
|
|
@@ -7834,13 +7834,13 @@ var sso_auth_default = _template("G", (input) => {
|
|
|
7834
7834
|
_if(() => {
|
|
7835
7835
|
if (localBusy && localCode) {
|
|
7836
7836
|
const $scope4_id = _scope_id();
|
|
7837
|
-
_html(`<div${_attr_class(["
|
|
7837
|
+
_html(`<div${_attr_class(["_hG", "_hN"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_hO")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_hP")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7838
7838
|
_script($scope4_id, "G2");
|
|
7839
7839
|
writeScope($scope4_id, {});
|
|
7840
7840
|
return 0;
|
|
7841
7841
|
} else if (localBusy) {
|
|
7842
7842
|
const $scope6_id = _scope_id();
|
|
7843
|
-
_html(`<div${_attr_class(["
|
|
7843
|
+
_html(`<div${_attr_class(["_hG", "_hN"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7844
7844
|
writeScope($scope6_id, {});
|
|
7845
7845
|
return 1;
|
|
7846
7846
|
}
|
|
@@ -7848,14 +7848,14 @@ var sso_auth_default = _template("G", (input) => {
|
|
|
7848
7848
|
_if(() => {
|
|
7849
7849
|
if (localError) {
|
|
7850
7850
|
const $scope5_id = _scope_id();
|
|
7851
|
-
_html(`<p${_attr_class(["
|
|
7851
|
+
_html(`<p${_attr_class(["_hG", "_hQ"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7852
7852
|
writeScope($scope5_id, {});
|
|
7853
7853
|
return 0;
|
|
7854
7854
|
}
|
|
7855
7855
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7856
7856
|
_for_of(skipped, (s) => {
|
|
7857
7857
|
const $scope3_id = _scope_id();
|
|
7858
|
-
_html(`<div${_attr_class(["
|
|
7858
|
+
_html(`<div${_attr_class(["_hG", "_hH"])}><span${_attr_class("_hI")}><span${_attr_class("_hJ")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_hK")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_hM"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7859
7859
|
_script($scope3_id, "G3");
|
|
7860
7860
|
writeScope($scope3_id, {
|
|
7861
7861
|
i: s?.org,
|
|
@@ -7906,7 +7906,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7906
7906
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7907
7907
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7908
7908
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7909
|
-
_html(`<li${_attr_class("
|
|
7909
|
+
_html(`<li${_attr_class("_ct")}>`);
|
|
7910
7910
|
_if(() => {
|
|
7911
7911
|
if (input.busy != null) {
|
|
7912
7912
|
const $scope1_id = _scope_id();
|
|
@@ -7916,20 +7916,20 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7916
7916
|
} else {
|
|
7917
7917
|
const $scope2_id = _scope_id();
|
|
7918
7918
|
const popId = _id();
|
|
7919
|
-
_html(`<button${_attr_class("
|
|
7919
|
+
_html(`<button${_attr_class("_cu")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7920
7920
|
_if(() => {
|
|
7921
7921
|
if (input.hint) {
|
|
7922
7922
|
const $scope3_id = _scope_id();
|
|
7923
|
-
_html(`<span${_attr_class("
|
|
7923
|
+
_html(`<span${_attr_class("_cw")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7924
7924
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7925
7925
|
return 0;
|
|
7926
7926
|
}
|
|
7927
7927
|
}, $scope2_id, "c", $sg__input_hint, $sg__input_hint, $sg__input_hint__OR__input_description__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal__OR__input_tags__OR__input_actions__OR__input_trailing, 0, 1);
|
|
7928
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7928
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_b1", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7929
7929
|
_if(() => {
|
|
7930
7930
|
if (input.description) {
|
|
7931
7931
|
const $scope4_id = _scope_id();
|
|
7932
|
-
_html(`<span${_attr_class("
|
|
7932
|
+
_html(`<span${_attr_class("_b3")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7933
7933
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7934
7934
|
return 0;
|
|
7935
7935
|
}
|
|
@@ -7937,12 +7937,12 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7937
7937
|
_if(() => {
|
|
7938
7938
|
if (input.sourceUrl) {
|
|
7939
7939
|
const $scope5_id = _scope_id();
|
|
7940
|
-
_html(`<a${_attr_class(["
|
|
7940
|
+
_html(`<a${_attr_class(["_b3", "_K"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_text_resume($scope5_id, "b", input.source, $sg__input_source)}</a>${_el_resume($scope5_id, "a", _serialize_guard($scope0_reason, 6))}`);
|
|
7941
7941
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, _subscribe($si__input_sourceUrl && $input_sourceUrl__closures, writeScope($scope5_id, { _: _scope_with_id($scope2_id) })));
|
|
7942
7942
|
return 0;
|
|
7943
7943
|
} else if (input.source) {
|
|
7944
7944
|
const $scope6_id = _scope_id();
|
|
7945
|
-
_html(`<span${_attr_class("
|
|
7945
|
+
_html(`<span${_attr_class("_b3")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7946
7946
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7947
7947
|
_: _scope_with_id($scope2_id),
|
|
7948
7948
|
Cs: $si__input_source && 1
|
|
@@ -7950,7 +7950,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7950
7950
|
return 1;
|
|
7951
7951
|
} else if (input.noteLocal) {
|
|
7952
7952
|
const $scope10_id = _scope_id();
|
|
7953
|
-
_html(`<span${_attr_class(["
|
|
7953
|
+
_html(`<span${_attr_class(["_b3", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7954
7954
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7955
7955
|
return 2;
|
|
7956
7956
|
}
|
|
@@ -7958,7 +7958,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7958
7958
|
_if(() => {
|
|
7959
7959
|
if (input.tags) {
|
|
7960
7960
|
const $scope7_id = _scope_id();
|
|
7961
|
-
_html(`<span${_attr_class("
|
|
7961
|
+
_html(`<span${_attr_class("_b2")}>`);
|
|
7962
7962
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7963
7963
|
_html("</span>");
|
|
7964
7964
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7968,7 +7968,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7968
7968
|
_if(() => {
|
|
7969
7969
|
if (input.actions) {
|
|
7970
7970
|
const $scope8_id = _scope_id();
|
|
7971
|
-
_html(`<div${_attr_class("
|
|
7971
|
+
_html(`<div${_attr_class("_cy")}>`);
|
|
7972
7972
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7973
7973
|
_html("</div>");
|
|
7974
7974
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -8754,7 +8754,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8754
8754
|
const githubId = _id();
|
|
8755
8755
|
const backupId = _id();
|
|
8756
8756
|
const machineId = _id();
|
|
8757
|
-
_html(`<div${_attr_class("
|
|
8757
|
+
_html(`<div${_attr_class("_c9")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_c_")}><div${_attr_class("_da")}>`);
|
|
8758
8758
|
_set_serialize_reason({
|
|
8759
8759
|
0: _serialize_guard($scope0_reason, 4),
|
|
8760
8760
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8786,7 +8786,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8786
8786
|
_resume_branch($scope12_id);
|
|
8787
8787
|
}, $scope0_id) })
|
|
8788
8788
|
});
|
|
8789
|
-
_html(`<div${_attr_class("
|
|
8789
|
+
_html(`<div${_attr_class("_db")}>`);
|
|
8790
8790
|
_if(() => {
|
|
8791
8791
|
if (setup && !setup.ready) {
|
|
8792
8792
|
const $scope4_id = _scope_id();
|
|
@@ -8829,16 +8829,16 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8829
8829
|
_if(() => {
|
|
8830
8830
|
if (selfUpdatePending || selfUpdating) {
|
|
8831
8831
|
const $scope43_id = _scope_id();
|
|
8832
|
-
_html(`<div${_attr_class("
|
|
8832
|
+
_html(`<div${_attr_class("_dS")} role=status><div${_attr_class("_dT")}>`);
|
|
8833
8833
|
_if(() => {
|
|
8834
8834
|
if (selfUpdating) {
|
|
8835
8835
|
const $scope81_id = _scope_id();
|
|
8836
|
-
_html(`<span${_attr_class("
|
|
8836
|
+
_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>`);
|
|
8837
8837
|
writeScope($scope81_id, {});
|
|
8838
8838
|
return 0;
|
|
8839
8839
|
} else {
|
|
8840
8840
|
const $scope44_id = _scope_id();
|
|
8841
|
-
_html(`<span${_attr_class("
|
|
8841
|
+
_html(`<span${_attr_class("_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>`);
|
|
8842
8842
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope44_id, {})));
|
|
8843
8843
|
return 1;
|
|
8844
8844
|
}
|
|
@@ -8868,11 +8868,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8868
8868
|
_: _scope_with_id($scope0_id)
|
|
8869
8869
|
});
|
|
8870
8870
|
}, $scope0_id) };
|
|
8871
|
-
_html(`<section${_attr_class("
|
|
8871
|
+
_html(`<section${_attr_class("_bU")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bV")}><h2${_attr("id", agentsId)}${_attr_class("_b8")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_dj")}><span${_attr_class("_W")}>Default</span><span${_attr_class("_o")}>`);
|
|
8872
8872
|
_attr_select_value($scope0_id, "p", input.preferred, _resume(function(v) {
|
|
8873
8873
|
setPreferred(v);
|
|
8874
8874
|
}, "B0", $scope0_id), () => {
|
|
8875
|
-
_html(`<select${_attr_class(["_p", "
|
|
8875
|
+
_html(`<select${_attr_class(["_p", "_dk"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8876
8876
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
8877
8877
|
const $scope83_id = _scope_id();
|
|
8878
8878
|
_html(`<option${_attr_option_value(id)}>${_text_resume($scope83_id, "b", agentLabel(id), $sg__input_agents)}</option>${_el_resume($scope83_id, "a", $sg__input_agents)}`);
|
|
@@ -8887,14 +8887,14 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8887
8887
|
const rows = lone ? [] : a.instances;
|
|
8888
8888
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8889
8889
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8890
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8890
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_dl", { ["_dn"]: lone && !lone.enabled }])}>`);
|
|
8891
8891
|
_set_serialize_reason(12);
|
|
8892
8892
|
const $childScope3 = _peek_scope_id();
|
|
8893
8893
|
icon_agent_default({
|
|
8894
8894
|
agent: a.id,
|
|
8895
8895
|
size: 18
|
|
8896
8896
|
});
|
|
8897
|
-
_html(`<div${_attr_class("
|
|
8897
|
+
_html(`<div${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8898
8898
|
_if(() => {
|
|
8899
8899
|
if (lone && input.preferred === lone.id) {
|
|
8900
8900
|
const $scope85_id = _scope_id();
|
|
@@ -8907,12 +8907,12 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8907
8907
|
_if(() => {
|
|
8908
8908
|
if (active.has(a.id)) {
|
|
8909
8909
|
const $scope13_id = _scope_id();
|
|
8910
|
-
_html(`<span${_attr_class("
|
|
8910
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8911
8911
|
_subscribe($active__closures, writeScope($scope13_id, {}));
|
|
8912
8912
|
return 0;
|
|
8913
8913
|
} else if (!a.installed) {
|
|
8914
8914
|
const $scope86_id = _scope_id();
|
|
8915
|
-
_html(`<span${_attr_class("
|
|
8915
|
+
_html(`<span${_attr_class("_b3")}>Not installed</span>`);
|
|
8916
8916
|
writeScope($scope86_id, {});
|
|
8917
8917
|
return 1;
|
|
8918
8918
|
}
|
|
@@ -8943,15 +8943,15 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8943
8943
|
_if(() => {
|
|
8944
8944
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8945
8945
|
const $scope2_id = _scope_id();
|
|
8946
|
-
_html(`<ul${_attr_class(["
|
|
8946
|
+
_html(`<ul${_attr_class(["_dp", { ["_dn"]: lone && !lone.enabled }])}>`);
|
|
8947
8947
|
_for_of(rows, (inst) => {
|
|
8948
8948
|
const $scope3_id = _scope_id();
|
|
8949
8949
|
const accounts = accountsFor(inst.id);
|
|
8950
|
-
_html(`<li${_attr_class(["
|
|
8950
|
+
_html(`<li${_attr_class(["_dm", { ["_dn"]: !inst.enabled }])}><div${_attr_class("_dl")}>`);
|
|
8951
8951
|
_set_serialize_reason(12);
|
|
8952
8952
|
const $childScope5 = _peek_scope_id();
|
|
8953
8953
|
icon_agent_default({ agent: inst.id });
|
|
8954
|
-
_html(`<span${_attr_class(["
|
|
8954
|
+
_html(`<span${_attr_class(["_do", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8955
8955
|
_if(() => {
|
|
8956
8956
|
if (input.preferred === inst.id) {
|
|
8957
8957
|
const $scope87_id = _scope_id();
|
|
@@ -9030,24 +9030,24 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9030
9030
|
_if(() => {
|
|
9031
9031
|
if (!usage && families.length) {
|
|
9032
9032
|
const $scope90_id = _scope_id();
|
|
9033
|
-
_html(`<p${_attr_class("
|
|
9033
|
+
_html(`<p${_attr_class("_b5")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
9034
9034
|
writeScope($scope90_id, {});
|
|
9035
9035
|
return 0;
|
|
9036
9036
|
} else if (usage?.error) {
|
|
9037
9037
|
const $scope9_id = _scope_id();
|
|
9038
|
-
_html(`<p${_attr_class("
|
|
9038
|
+
_html(`<p${_attr_class("_b5")}>${_text_resume($scope9_id, "b", usage.error)}</p>`);
|
|
9039
9039
|
writeScope($scope9_id, {});
|
|
9040
9040
|
return 1;
|
|
9041
9041
|
}
|
|
9042
9042
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
9043
|
-
_html(`</section></div><div${_attr_class("
|
|
9043
|
+
_html(`</section></div><div${_attr_class("_db")}><section${_attr_class("_bU")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bV")}><h2${_attr("id", githubId)}${_attr_class("_b8")}>GitHub</h2>`);
|
|
9044
9044
|
_if(() => {
|
|
9045
9045
|
if (setup) {
|
|
9046
9046
|
const $scope41_id = _scope_id();
|
|
9047
9047
|
_set_serialize_reason(44);
|
|
9048
9048
|
const $childScope10 = _peek_scope_id();
|
|
9049
9049
|
add_field_default({
|
|
9050
|
-
class: "
|
|
9050
|
+
class: "_dx",
|
|
9051
9051
|
open: addingHost,
|
|
9052
9052
|
openChange: _resume((_new_addingHost) => {
|
|
9053
9053
|
addingHost = _new_addingHost;
|
|
@@ -9077,19 +9077,19 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9077
9077
|
return 0;
|
|
9078
9078
|
}
|
|
9079
9079
|
}, $scope0_id, "y");
|
|
9080
|
-
_html(`</div><div${_attr_class(["
|
|
9080
|
+
_html(`</div><div${_attr_class(["_bZ", "_cK"])}>`);
|
|
9081
9081
|
_for_of(setup?.github || [], (h) => {
|
|
9082
9082
|
const $scope7_id = _scope_id();
|
|
9083
9083
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
9084
9084
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
9085
9085
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
9086
9086
|
const busy = active.has(h.host);
|
|
9087
|
-
_html(`<div${_attr_class(["
|
|
9087
|
+
_html(`<div${_attr_class(["_cL", "_dy"])}><div${_attr_class("_dz")}>`);
|
|
9088
9088
|
icon_github_default({
|
|
9089
9089
|
size: 18,
|
|
9090
|
-
class: "
|
|
9090
|
+
class: "_dA"
|
|
9091
9091
|
});
|
|
9092
|
-
_html(`<div${_attr_class("
|
|
9092
|
+
_html(`<div${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope7_id, "g", h.host)}</span>`);
|
|
9093
9093
|
_if(() => {
|
|
9094
9094
|
if (h.isEnterprise) {
|
|
9095
9095
|
const $scope94_id = _scope_id();
|
|
@@ -9102,25 +9102,25 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9102
9102
|
_if(() => {
|
|
9103
9103
|
if (busy) {
|
|
9104
9104
|
const $scope14_id = _scope_id();
|
|
9105
|
-
_html(`<span${_attr_class(["
|
|
9105
|
+
_html(`<span${_attr_class(["_b3", "_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>`);
|
|
9106
9106
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Ch1: 1 })));
|
|
9107
9107
|
return 0;
|
|
9108
9108
|
} else if (h.authed) {
|
|
9109
9109
|
const $scope92_id = _scope_id();
|
|
9110
|
-
_html(`<span${_attr_class(["
|
|
9110
|
+
_html(`<span${_attr_class(["_b3", "_dB"])}>`);
|
|
9111
9111
|
icon_check_default({
|
|
9112
9112
|
size: 12,
|
|
9113
|
-
class: "
|
|
9113
|
+
class: "_dC"
|
|
9114
9114
|
});
|
|
9115
|
-
_html(` Signed in as <strong${_attr_class("
|
|
9115
|
+
_html(` Signed in as <strong${_attr_class("_dE")}>${_text_resume($scope92_id, "d", h.user || "?")}</strong></span>`);
|
|
9116
9116
|
writeScope($scope92_id, {});
|
|
9117
9117
|
return 1;
|
|
9118
9118
|
} else if (h.error) {
|
|
9119
9119
|
const $scope93_id = _scope_id();
|
|
9120
9120
|
_html(`<span${_attr_class([
|
|
9121
|
-
"
|
|
9122
|
-
"
|
|
9123
|
-
"
|
|
9121
|
+
"_b3",
|
|
9122
|
+
"_dB",
|
|
9123
|
+
"_dD"
|
|
9124
9124
|
])}>`);
|
|
9125
9125
|
icon_warning_default({ size: 12 });
|
|
9126
9126
|
_html(`${_text_resume($scope93_id, "c", h.error)}</span>`);
|
|
@@ -9128,7 +9128,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9128
9128
|
return 2;
|
|
9129
9129
|
} else {
|
|
9130
9130
|
const $scope95_id = _scope_id();
|
|
9131
|
-
_html(`<span${_attr_class(["
|
|
9131
|
+
_html(`<span${_attr_class(["_b3", "_dB"])}>Not signed in</span>`);
|
|
9132
9132
|
writeScope($scope95_id, {});
|
|
9133
9133
|
return 3;
|
|
9134
9134
|
}
|
|
@@ -9171,7 +9171,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9171
9171
|
const $childScope12 = _peek_scope_id();
|
|
9172
9172
|
arm_button_default({
|
|
9173
9173
|
class: [
|
|
9174
|
-
"
|
|
9174
|
+
"_b4",
|
|
9175
9175
|
"_7",
|
|
9176
9176
|
"_8"
|
|
9177
9177
|
],
|
|
@@ -9202,7 +9202,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9202
9202
|
_if(() => {
|
|
9203
9203
|
if (busy && authCodes.has(h.host)) {
|
|
9204
9204
|
const $scope35_id = _scope_id();
|
|
9205
|
-
_html(`<div${_attr_class("
|
|
9205
|
+
_html(`<div${_attr_class("_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>`);
|
|
9206
9206
|
_subscribe($authCodes__closures, writeScope($scope35_id, { Ch6: 1 }));
|
|
9207
9207
|
return 0;
|
|
9208
9208
|
}
|
|
@@ -9214,7 +9214,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9214
9214
|
_set_serialize_reason(30);
|
|
9215
9215
|
const $childScope13 = _peek_scope_id();
|
|
9216
9216
|
sso_auth_default({
|
|
9217
|
-
class: ["
|
|
9217
|
+
class: ["_cL", "_dJ"],
|
|
9218
9218
|
items: hostSso$1,
|
|
9219
9219
|
skipped: skippedSso,
|
|
9220
9220
|
busy,
|
|
@@ -9248,23 +9248,23 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9248
9248
|
_if(() => {
|
|
9249
9249
|
if (setup && !setup.github.length) {
|
|
9250
9250
|
const $scope98_id = _scope_id();
|
|
9251
|
-
_html(`<p${_attr_class("
|
|
9251
|
+
_html(`<p${_attr_class("_b5")}>Install the GitHub CLI below to sign in.</p>`);
|
|
9252
9252
|
writeScope($scope98_id, {});
|
|
9253
9253
|
return 0;
|
|
9254
9254
|
}
|
|
9255
9255
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
9256
|
-
_html(`</section><section${_attr_class("
|
|
9256
|
+
_html(`</section><section${_attr_class("_bU")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bV")}><h2${_attr("id", machineId)}${_attr_class("_b8")}>Machine</h2></div><div${_attr_class(["_bZ", "_cK"])}><div${_attr_class(["_cL", "_cM"])}><div${_attr_class(["_cN", { ["_cO"]: skillsOpen }])}><button${_attr_class("_cP")} aria-expanded=true>`);
|
|
9257
9257
|
_set_serialize_reason(1);
|
|
9258
9258
|
const $childScope14 = _peek_scope_id();
|
|
9259
9259
|
icon_chevron_right_default({
|
|
9260
9260
|
size: 12,
|
|
9261
|
-
class: ["
|
|
9261
|
+
class: ["_cT", { ["_cU"]: skillsOpen }]
|
|
9262
9262
|
});
|
|
9263
|
-
_html(`<span${_attr_class("
|
|
9263
|
+
_html(`<span${_attr_class("_cQ")}>Skills</span>`);
|
|
9264
9264
|
_if(() => {
|
|
9265
9265
|
if (skills?.global.length) {
|
|
9266
9266
|
const $scope50_id = _scope_id();
|
|
9267
|
-
_html(`<span${_attr_class("
|
|
9267
|
+
_html(`<span${_attr_class("_cR")}>${_text_resume($scope50_id, "b", skills.global.length)} installed</span>`);
|
|
9268
9268
|
writeScope($scope50_id, {});
|
|
9269
9269
|
return 0;
|
|
9270
9270
|
}
|
|
@@ -9292,7 +9292,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9292
9292
|
_if(() => {
|
|
9293
9293
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9294
9294
|
const $scope99_id = _scope_id();
|
|
9295
|
-
_html(`<li${_attr_class("
|
|
9295
|
+
_html(`<li${_attr_class("_cI")}>Searching skills.sh…</li>`);
|
|
9296
9296
|
writeScope($scope99_id, {});
|
|
9297
9297
|
return 0;
|
|
9298
9298
|
}
|
|
@@ -9300,11 +9300,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9300
9300
|
_if(() => {
|
|
9301
9301
|
if (looksLikeSource(skillQuery)) {
|
|
9302
9302
|
const $scope17_id = _scope_id();
|
|
9303
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9303
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_dt", "_y"])}>${_text_resume($scope17_id, "d", skillQuery.trim())}</span>`);
|
|
9304
9304
|
_if(() => {
|
|
9305
9305
|
if (active.has(skillQuery.trim())) {
|
|
9306
9306
|
const $scope18_id = _scope_id();
|
|
9307
|
-
_html(`<span${_attr_class("
|
|
9307
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9308
9308
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope18_id, {
|
|
9309
9309
|
Ch1: 3,
|
|
9310
9310
|
Chs: 2
|
|
@@ -9312,7 +9312,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9312
9312
|
return 0;
|
|
9313
9313
|
} else {
|
|
9314
9314
|
const $scope100_id = _scope_id();
|
|
9315
|
-
_html(`<span${_attr_class("
|
|
9315
|
+
_html(`<span${_attr_class("_b3")}>Add straight from this source</span>`);
|
|
9316
9316
|
writeScope($scope100_id, {});
|
|
9317
9317
|
return 1;
|
|
9318
9318
|
}
|
|
@@ -9338,16 +9338,16 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9338
9338
|
_for_of(skillHits || [], (h) => {
|
|
9339
9339
|
const $scope19_id = _scope_id();
|
|
9340
9340
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9341
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9341
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_dt", "_y"])}>${_text_resume($scope19_id, "d", h.name)}</span>`);
|
|
9342
9342
|
_if(() => {
|
|
9343
9343
|
if (active.has(h.skillId)) {
|
|
9344
9344
|
const $scope20_id = _scope_id();
|
|
9345
|
-
_html(`<span${_attr_class("
|
|
9345
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope20_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9346
9346
|
_subscribe($active__closures, writeScope($scope20_id, { Ch1: 5 }));
|
|
9347
9347
|
return 0;
|
|
9348
9348
|
} else {
|
|
9349
9349
|
const $scope101_id = _scope_id();
|
|
9350
|
-
_html(`<span${_attr_class("
|
|
9350
|
+
_html(`<span${_attr_class("_b3")}${_attr("title", h.source)}>${_text_resume($scope101_id, "b", h.source)}</span>${_el_resume($scope101_id, "a")}`);
|
|
9351
9351
|
writeScope($scope101_id, {});
|
|
9352
9352
|
return 1;
|
|
9353
9353
|
}
|
|
@@ -9395,7 +9395,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9395
9395
|
_if(() => {
|
|
9396
9396
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9397
9397
|
const $scope52_id = _scope_id();
|
|
9398
|
-
_html(`<li${_attr_class("
|
|
9398
|
+
_html(`<li${_attr_class("_cI")}>No skills match "${_text_resume($scope52_id, "b", skillQuery, 2)}".</li>`);
|
|
9399
9399
|
_subscribe($skillQuery__closures, writeScope($scope52_id, { Chs: 3 }));
|
|
9400
9400
|
return 0;
|
|
9401
9401
|
}
|
|
@@ -9412,22 +9412,22 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9412
9412
|
_if(() => {
|
|
9413
9413
|
{
|
|
9414
9414
|
const $scope21_id = _scope_id();
|
|
9415
|
-
_html(`<div${_attr_class("
|
|
9415
|
+
_html(`<div${_attr_class("_cS")}>`);
|
|
9416
9416
|
_if(() => {
|
|
9417
9417
|
if (skills && !skills.agents.length) {
|
|
9418
9418
|
const $scope104_id = _scope_id();
|
|
9419
|
-
_html(`<p${_attr_class("
|
|
9419
|
+
_html(`<p${_attr_class("_b5")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9420
9420
|
writeScope($scope104_id, {});
|
|
9421
9421
|
return 0;
|
|
9422
9422
|
} else if (skills && !skills.available) {
|
|
9423
9423
|
const $scope22_id = _scope_id();
|
|
9424
|
-
_html(`<p${_attr_class("
|
|
9424
|
+
_html(`<p${_attr_class("_b5")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${_text_resume($scope22_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope22_id, "b")}</p>`);
|
|
9425
9425
|
_script($scope22_id, "B66");
|
|
9426
9426
|
_subscribe($active__closures, writeScope($scope22_id, { Ch1: 6 }));
|
|
9427
9427
|
return 1;
|
|
9428
9428
|
}
|
|
9429
9429
|
}, $scope21_id, "b", 1, 1, 1, 0, 1);
|
|
9430
|
-
_html(`<ul${_attr_class("
|
|
9430
|
+
_html(`<ul${_attr_class("_cs")}>`);
|
|
9431
9431
|
_for_of(skills?.global || [], (s) => {
|
|
9432
9432
|
const $scope23_id = _scope_id();
|
|
9433
9433
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9505,7 +9505,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9505
9505
|
_if(() => {
|
|
9506
9506
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9507
9507
|
const $scope108_id = _scope_id();
|
|
9508
|
-
_html(`<p${_attr_class("
|
|
9508
|
+
_html(`<p${_attr_class("_b5")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9509
9509
|
writeScope($scope108_id, {});
|
|
9510
9510
|
return 0;
|
|
9511
9511
|
}
|
|
@@ -9515,18 +9515,18 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9515
9515
|
return 0;
|
|
9516
9516
|
}
|
|
9517
9517
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
9518
|
-
_html(`</div><div${_attr_class(["
|
|
9518
|
+
_html(`</div><div${_attr_class(["_cL", "_cM"])}><div${_attr_class(["_cN", { ["_cO"]: machineOpen }])}><button${_attr_class("_cP")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9519
9519
|
_set_serialize_reason(1);
|
|
9520
9520
|
const $childScope18 = _peek_scope_id();
|
|
9521
9521
|
icon_chevron_right_default({
|
|
9522
9522
|
size: 12,
|
|
9523
|
-
class: ["
|
|
9523
|
+
class: ["_cT", { ["_cU"]: machineOpen }]
|
|
9524
9524
|
});
|
|
9525
|
-
_html(`<span${_attr_class("
|
|
9525
|
+
_html(`<span${_attr_class("_cQ")}>Tools</span><span${_attr_class("_cR")}>${_text_resume($scope0_id, "aj", tools.filter((t) => t.installed).length)} installed ${_text_resume($scope0_id, "ak", missingCount ? `${_to_text(" · ")}${_to_text(missingCount)} missing` : "", 2)}${_text_resume($scope0_id, "al", outdatedIds.length ? `${_to_text(" · ")}${_to_text(outdatedIds.length)} outdated` : "", 2)}</span></button>${_el_resume($scope0_id, "af")}`);
|
|
9526
9526
|
_if(() => {
|
|
9527
9527
|
if (bulk) {
|
|
9528
9528
|
const $scope34_id = _scope_id();
|
|
9529
|
-
_html(`<span${_attr_class("
|
|
9529
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope34_id, "c", bulk.action === "update" ? "Updating" : "Installing")} ${_text_resume($scope34_id, "d", Math.min(bulk.done + 1, bulk.total), 2)}/${_text_resume($scope34_id, "e", bulk.total, 2)}${_text_resume($scope34_id, "f", activeLine && ` — ${activeLine}`, 2)}</span>`);
|
|
9530
9530
|
writeScope($scope34_id, {});
|
|
9531
9531
|
return 0;
|
|
9532
9532
|
} else {
|
|
@@ -9575,7 +9575,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9575
9575
|
_if(() => {
|
|
9576
9576
|
if (searching && !hits?.length) {
|
|
9577
9577
|
const $scope109_id = _scope_id();
|
|
9578
|
-
_html(`<li${_attr_class("
|
|
9578
|
+
_html(`<li${_attr_class("_cI")}>Searching the mise registry…</li>`);
|
|
9579
9579
|
writeScope($scope109_id, {});
|
|
9580
9580
|
return 0;
|
|
9581
9581
|
}
|
|
@@ -9583,23 +9583,23 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9583
9583
|
_if(() => {
|
|
9584
9584
|
if (hits && !hits.length && !searching) {
|
|
9585
9585
|
const $scope42_id = _scope_id();
|
|
9586
|
-
_html(`<li${_attr_class("
|
|
9586
|
+
_html(`<li${_attr_class("_cI")}>No tools match "${_text_resume($scope42_id, "b", query, 2)}".</li>`);
|
|
9587
9587
|
_subscribe($query__closures, writeScope($scope42_id, {}));
|
|
9588
9588
|
return 0;
|
|
9589
9589
|
}
|
|
9590
9590
|
}, $scope28_id, "b", 1, 1, 1, 0, 1);
|
|
9591
9591
|
_for_of(hits || [], (h) => {
|
|
9592
9592
|
const $scope29_id = _scope_id();
|
|
9593
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9593
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_dt", "_y"])}>${_text_resume($scope29_id, "d", h.name)}</span>`);
|
|
9594
9594
|
_if(() => {
|
|
9595
9595
|
if (active.has(h.name)) {
|
|
9596
9596
|
const $scope30_id = _scope_id();
|
|
9597
|
-
_html(`<span${_attr_class("
|
|
9597
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope30_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9598
9598
|
_subscribe($active__closures, writeScope($scope30_id, { Ch1: 9 }));
|
|
9599
9599
|
return 0;
|
|
9600
9600
|
} else if (h.description) {
|
|
9601
9601
|
const $scope110_id = _scope_id();
|
|
9602
|
-
_html(`<span${_attr_class("
|
|
9602
|
+
_html(`<span${_attr_class("_b3")}${_attr("title", h.description)}>${_text_resume($scope110_id, "b", h.description)}</span>${_el_resume($scope110_id, "a")}`);
|
|
9603
9603
|
writeScope($scope110_id, {});
|
|
9604
9604
|
return 1;
|
|
9605
9605
|
}
|
|
@@ -9646,11 +9646,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9646
9646
|
_if(() => {
|
|
9647
9647
|
if (machineOpen) {
|
|
9648
9648
|
const $scope6_id = _scope_id();
|
|
9649
|
-
_html(`<div${_attr_class("
|
|
9649
|
+
_html(`<div${_attr_class("_cS")}>`);
|
|
9650
9650
|
_if(() => {
|
|
9651
9651
|
if (setup && !setup.mise.installed) {
|
|
9652
9652
|
const $scope31_id = _scope_id();
|
|
9653
|
-
_html(`<p${_attr_class("
|
|
9653
|
+
_html(`<p${_attr_class("_b5")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope31_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope31_id, "b")}</p>`);
|
|
9654
9654
|
_script($scope31_id, "B76");
|
|
9655
9655
|
_subscribe($active__closures, writeScope($scope31_id, { Ch1: 10 }));
|
|
9656
9656
|
return 0;
|
|
@@ -9660,11 +9660,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9660
9660
|
_if(() => {
|
|
9661
9661
|
if (self) {
|
|
9662
9662
|
const $scope46_id = _scope_id();
|
|
9663
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9663
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_dt", "_y"])}>work</span>`);
|
|
9664
9664
|
_if(() => {
|
|
9665
9665
|
if (selfUpdating) {
|
|
9666
9666
|
const $scope112_id = _scope_id();
|
|
9667
|
-
_html(`<span${_attr_class("
|
|
9667
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9668
9668
|
writeScope($scope112_id, {});
|
|
9669
9669
|
return 0;
|
|
9670
9670
|
} else {
|
|
@@ -9678,7 +9678,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9678
9678
|
return 0;
|
|
9679
9679
|
} else if (self.latest && self.latest !== self.version) {
|
|
9680
9680
|
const $scope48_id = _scope_id();
|
|
9681
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9681
|
+
_html(`<button${_attr_class([btnSm, "_dw"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9682
9682
|
icon_arrow_up_default({ size: 12 });
|
|
9683
9683
|
_html(` ${_text_resume($scope48_id, "c", self.latest, 2)}</button>${_el_resume($scope48_id, "a")}`);
|
|
9684
9684
|
_script($scope48_id, "B77");
|
|
@@ -9721,11 +9721,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9721
9721
|
const $for_content7__t_latest__closures = /* @__PURE__ */ new Set();
|
|
9722
9722
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9723
9723
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9724
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9724
|
+
_html(`<li${_attr_class([toolRow, { ["_ds"]: !t.installed }])}><span${_attr_class(["_dt", "_y"])}>${_text_resume($scope32_id, "c", t.label)}</span>`);
|
|
9725
9725
|
_if(() => {
|
|
9726
9726
|
if (active.has(t.id)) {
|
|
9727
9727
|
const $scope33_id = _scope_id();
|
|
9728
|
-
_html(`<span${_attr_class("
|
|
9728
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope33_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9729
9729
|
_subscribe($active__closures, writeScope($scope33_id, { Ch1: 12 }));
|
|
9730
9730
|
return 0;
|
|
9731
9731
|
} else if (t.installed) {
|
|
@@ -9733,11 +9733,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9733
9733
|
_if(() => {
|
|
9734
9734
|
if (t.version) {
|
|
9735
9735
|
const $scope40_id = _scope_id();
|
|
9736
|
-
_html(`<button${_attr_class(["
|
|
9736
|
+
_html(`<button${_attr_class(["_dv", "_y"])}${_attr("title", `${t.path || t.label}${aliasPin(t) ? `, pinned to ${t.pin}` : ""}. Pin a version`)}>v${_text_resume($scope40_id, "b", t.version, 2)}`);
|
|
9737
9737
|
_if(() => {
|
|
9738
9738
|
if (aliasPin(t)) {
|
|
9739
9739
|
const $scope116_id = _scope_id();
|
|
9740
|
-
_html(`<span${_attr_class("
|
|
9740
|
+
_html(`<span${_attr_class("_du")}>${_text_resume($scope116_id, "b", t.pin)}</span>`);
|
|
9741
9741
|
_subscribe($for_content7__t_pin__closures, writeScope($scope116_id, { Ca0: 1 }));
|
|
9742
9742
|
return 0;
|
|
9743
9743
|
}
|
|
@@ -9756,7 +9756,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9756
9756
|
_if(() => {
|
|
9757
9757
|
if (outdated(t)) {
|
|
9758
9758
|
const $scope57_id = _scope_id();
|
|
9759
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9759
|
+
_html(`<button${_attr_class([btnSm, "_dw"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9760
9760
|
icon_arrow_up_default({ size: 12 });
|
|
9761
9761
|
_html(` ${_text_resume($scope57_id, "c", t.latest, 2)}</button>${_el_resume($scope57_id, "a")}`);
|
|
9762
9762
|
_script($scope57_id, "B79");
|
|
@@ -9764,7 +9764,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9764
9764
|
return 0;
|
|
9765
9765
|
} else if (t.newest) {
|
|
9766
9766
|
const $scope58_id = _scope_id();
|
|
9767
|
-
_html(`<button${_attr_class(["
|
|
9767
|
+
_html(`<button${_attr_class(["_dv", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope58_id, "b", t.newest)} available</button>${_el_resume($scope58_id, "a")}`);
|
|
9768
9768
|
_script($scope58_id, "B80");
|
|
9769
9769
|
_subscribe($for_content7__t_newest__closures, _subscribe($for_content7__t_pin__closures, _subscribe($for_content7__t_version__closures, _subscribe($for_content7__t_label__closures, writeScope($scope58_id, { Cy: 1 })))));
|
|
9770
9770
|
return 1;
|
|
@@ -9877,14 +9877,14 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9877
9877
|
label: "Dark"
|
|
9878
9878
|
}
|
|
9879
9879
|
];
|
|
9880
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9880
|
+
_html(`</div></div></section><section${_attr_class("_bU")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bV")}><h2${_attr("id", appearanceId)}${_attr_class("_b8")}>Appearance</h2></div><div${_attr_class(["_bZ", "_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("_d0")}>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) {
|
|
9881
9881
|
setInstance({ name: v });
|
|
9882
|
-
}, "B1", $scope0_id))}${_attr_class(["_Y", "
|
|
9882
|
+
}, "B1", $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">`);
|
|
9883
9883
|
_for_of(themeOpts, (opt) => {
|
|
9884
9884
|
const $scope49_id = _scope_id();
|
|
9885
9885
|
_html(`<button type=button${_attr_class([
|
|
9886
9886
|
"_bf",
|
|
9887
|
-
"
|
|
9887
|
+
"_d1",
|
|
9888
9888
|
{ ["_be"]: themeMode === opt.id }
|
|
9889
9889
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9890
9890
|
if (opt.id === "system") {
|
|
@@ -9904,28 +9904,28 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9904
9904
|
_: _scope_with_id($scope0_id)
|
|
9905
9905
|
});
|
|
9906
9906
|
}, "id", $scope0_id, "b5", 1, 0, 1, 0, 1);
|
|
9907
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9907
|
+
_html(`</span><span${_attr_class(["_o", "_dQ"])}>`);
|
|
9908
9908
|
_attr_select_value($scope0_id, "b7", themeMode, _resume(function(v) {
|
|
9909
9909
|
setThemeMode(v);
|
|
9910
9910
|
}, "B2", $scope0_id), () => {
|
|
9911
|
-
_html(`<select${_attr_class(["_p", "
|
|
9911
|
+
_html(`<select${_attr_class(["_p", "_dR"])} aria-label="Color theme">`);
|
|
9912
9912
|
forOf(themeOpts, (opt) => {
|
|
9913
9913
|
_scope_id();
|
|
9914
9914
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9915
9915
|
});
|
|
9916
9916
|
_html("</select>");
|
|
9917
9917
|
});
|
|
9918
|
-
_html(`${_el_resume($scope0_id, "b7")}</span></span></div><div${_attr_class("
|
|
9919
|
-
"
|
|
9920
|
-
"
|
|
9921
|
-
{ ["
|
|
9918
|
+
_html(`${_el_resume($scope0_id, "b7")}</span></span></div><div${_attr_class("_dL")}><span${_attr_class("_dM")}>Accent</span><span${_attr_class("_d2")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9919
|
+
"_d3",
|
|
9920
|
+
"_d6",
|
|
9921
|
+
{ ["_d4"]: !accent }
|
|
9922
9922
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9923
9923
|
_if(() => {
|
|
9924
9924
|
if (!accent) {
|
|
9925
9925
|
const $scope126_id = _scope_id();
|
|
9926
9926
|
icon_check_default({
|
|
9927
9927
|
size: 12,
|
|
9928
|
-
class: "
|
|
9928
|
+
class: "_d5"
|
|
9929
9929
|
});
|
|
9930
9930
|
$si__input_instance_accent && writeScope($scope126_id, {});
|
|
9931
9931
|
return 0;
|
|
@@ -9933,13 +9933,13 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9933
9933
|
}, $scope0_id, "bb", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9934
9934
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9935
9935
|
const $scope79_id = _scope_id();
|
|
9936
|
-
_html(`<button type=button${_attr_class(["
|
|
9936
|
+
_html(`<button type=button${_attr_class(["_d3", { ["_d4"]: accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}>`);
|
|
9937
9937
|
_if(() => {
|
|
9938
9938
|
if (accent === p.value) {
|
|
9939
9939
|
const $scope127_id = _scope_id();
|
|
9940
9940
|
icon_check_default({
|
|
9941
9941
|
size: 12,
|
|
9942
|
-
class: "
|
|
9942
|
+
class: "_d5"
|
|
9943
9943
|
});
|
|
9944
9944
|
$si__input_instance_accent && writeScope($scope127_id, {});
|
|
9945
9945
|
return 0;
|
|
@@ -9953,18 +9953,18 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9953
9953
|
}, "value", $scope0_id, "bc", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9954
9954
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9955
9955
|
_html(`<label${_attr_class([
|
|
9956
|
-
"
|
|
9957
|
-
"
|
|
9958
|
-
{ ["
|
|
9956
|
+
"_d3",
|
|
9957
|
+
"_d7",
|
|
9958
|
+
{ ["_d4"]: customOn }
|
|
9959
9959
|
])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "be", accent || "#3556d8", _resume(function(v) {
|
|
9960
9960
|
setInstance({ accent: v });
|
|
9961
|
-
}, "B3", $scope0_id))}${_attr_class("
|
|
9961
|
+
}, "B3", $scope0_id))}${_attr_class("_d8")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "be")}`);
|
|
9962
9962
|
_if(() => {
|
|
9963
9963
|
if (customOn) {
|
|
9964
9964
|
const $scope128_id = _scope_id();
|
|
9965
9965
|
icon_check_default({
|
|
9966
9966
|
size: 12,
|
|
9967
|
-
class: "
|
|
9967
|
+
class: "_d5"
|
|
9968
9968
|
});
|
|
9969
9969
|
$si__input_instance_accent && writeScope($scope128_id, {});
|
|
9970
9970
|
return 0;
|
|
@@ -9975,16 +9975,16 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9975
9975
|
return 1;
|
|
9976
9976
|
}
|
|
9977
9977
|
}, $scope0_id, "bf", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9978
|
-
_html(`</label>${_el_resume($scope0_id, "bd", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
9978
|
+
_html(`</label>${_el_resume($scope0_id, "bd", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bU")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bV")}><h2${_attr("id", backupId)}${_attr_class("_b8")}>Backup</h2></div><div${_attr_class(["_bZ", "_cK"])}><div${_attr_class("_cL")}><div${_attr_class("_d9")}><div${_attr_class("_b0")}>`);
|
|
9979
9979
|
_if(() => {
|
|
9980
9980
|
if (backupBusy === "preflight") {
|
|
9981
9981
|
const $scope66_id = _scope_id();
|
|
9982
|
-
_html(`<span${_attr_class("
|
|
9982
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9983
9983
|
writeScope($scope66_id, {});
|
|
9984
9984
|
return 0;
|
|
9985
9985
|
} else {
|
|
9986
9986
|
const $scope130_id = _scope_id();
|
|
9987
|
-
_html(`<span${_attr_class("
|
|
9987
|
+
_html(`<span${_attr_class("_b3")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9988
9988
|
writeScope($scope130_id, {});
|
|
9989
9989
|
return 1;
|
|
9990
9990
|
}
|
|
@@ -10002,7 +10002,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10002
10002
|
_if(() => {
|
|
10003
10003
|
if (preflight && !backupBusy) {
|
|
10004
10004
|
const $scope68_id = _scope_id();
|
|
10005
|
-
_html(`<div${_attr_class("
|
|
10005
|
+
_html(`<div${_attr_class("_ea")}><p${_attr_class("_eb")}>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("_eb")}>Not in the file: `);
|
|
10006
10006
|
_if(() => {
|
|
10007
10007
|
if (preflight.unpushed) {
|
|
10008
10008
|
const $scope69_id = _scope_id();
|
|
@@ -10019,15 +10019,15 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10019
10019
|
return 0;
|
|
10020
10020
|
}
|
|
10021
10021
|
}, $scope68_id, "m");
|
|
10022
|
-
_html(`${_text_resume($scope68_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("
|
|
10022
|
+
_html(`${_text_resume($scope68_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_ec")}>`);
|
|
10023
10023
|
_for_of(preflight.workspaces, (w) => {
|
|
10024
10024
|
const $scope132_id = _scope_id();
|
|
10025
10025
|
const $for_content17__w_name__closures = /* @__PURE__ */ new Set();
|
|
10026
|
-
_html(`<li${_attr_class("
|
|
10026
|
+
_html(`<li${_attr_class("_ed")}><span${_attr_class("_b1")}>${_text_resume($scope132_id, "c", w.name)}</span><ul${_attr_class("_ec")}>`);
|
|
10027
10027
|
_for_of(w.repos, (r) => {
|
|
10028
10028
|
const $scope133_id = _scope_id();
|
|
10029
10029
|
const $for_content18__r_more__closures = /* @__PURE__ */ new Set();
|
|
10030
|
-
_html(`<li${_attr_class("
|
|
10030
|
+
_html(`<li${_attr_class("_ee")}><span${_attr_class("_ef")}><span${_attr_class("_y")}>${_text_resume($scope133_id, "d", r.worktree)}/</span>`);
|
|
10031
10031
|
_for_of(r.unpushed, (b) => {
|
|
10032
10032
|
const $scope134_id = _scope_id();
|
|
10033
10033
|
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($scope134_id, "b", b.count)} unpushed `);
|
|
@@ -10046,10 +10046,10 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10046
10046
|
_if(() => {
|
|
10047
10047
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
10048
10048
|
const $scope135_id = _scope_id();
|
|
10049
|
-
_html(`<ul${_attr_class("
|
|
10049
|
+
_html(`<ul${_attr_class("_eg")}>`);
|
|
10050
10050
|
_for_of(r.modified, (f) => {
|
|
10051
10051
|
const $scope138_id = _scope_id();
|
|
10052
|
-
_html(`<li${_attr_class("
|
|
10052
|
+
_html(`<li${_attr_class("_eh")}><span${_attr_class([
|
|
10053
10053
|
"_N",
|
|
10054
10054
|
"_P",
|
|
10055
10055
|
tone.warn
|
|
@@ -10058,18 +10058,18 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10058
10058
|
}, (f) => f, $scope135_id, "b", 1, 1, 1, 0, 1);
|
|
10059
10059
|
_for_of(r.untracked, (f) => {
|
|
10060
10060
|
const $scope139_id = _scope_id();
|
|
10061
|
-
_html(`<li${_attr_class("
|
|
10061
|
+
_html(`<li${_attr_class("_eh")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($scope139_id, "d", f)}</span></li>`);
|
|
10062
10062
|
writeScope($scope139_id, {});
|
|
10063
10063
|
}, (f) => f, $scope135_id, "c", 1, 1, 1, 0, 1);
|
|
10064
10064
|
_for_of(r.ignored, (f) => {
|
|
10065
10065
|
const $scope140_id = _scope_id();
|
|
10066
|
-
_html(`<li${_attr_class("
|
|
10066
|
+
_html(`<li${_attr_class("_eh")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($scope140_id, "d", f)}</span></li>`);
|
|
10067
10067
|
writeScope($scope140_id, {});
|
|
10068
10068
|
}, (f) => f, $scope135_id, "d", 1, 1, 1, 0, 1);
|
|
10069
10069
|
_if(() => {
|
|
10070
10070
|
if (r.more) {
|
|
10071
10071
|
const $scope136_id = _scope_id();
|
|
10072
|
-
_html(`<li${_attr_class(["
|
|
10072
|
+
_html(`<li${_attr_class(["_eh", "_x"])}>+${_text_resume($scope136_id, "b", r.more, 2)} more</li>`);
|
|
10073
10073
|
_subscribe($for_content18__r_more__closures, writeScope($scope136_id, {}));
|
|
10074
10074
|
return 0;
|
|
10075
10075
|
}
|
|
@@ -10094,27 +10094,27 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10094
10094
|
i: $for_content17__w_name__closures
|
|
10095
10095
|
});
|
|
10096
10096
|
}, "id", $scope68_id, "o", 1, 1, 1, "</ul>", 1);
|
|
10097
|
-
_html(`<div${_attr_class("
|
|
10097
|
+
_html(`<div${_attr_class("_ei")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope68_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope68_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope68_id, "s")}</div></div>`);
|
|
10098
10098
|
_script($scope68_id, "B86");
|
|
10099
10099
|
writeScope($scope68_id, {});
|
|
10100
10100
|
return 0;
|
|
10101
10101
|
}
|
|
10102
10102
|
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
10103
|
-
_html(`</div><div${_attr_class("
|
|
10103
|
+
_html(`</div><div${_attr_class("_cL")}><div${_attr_class("_d9")}><div${_attr_class("_b0")}>`);
|
|
10104
10104
|
_if(() => {
|
|
10105
10105
|
if (backupBusy === "restore") {
|
|
10106
10106
|
const $scope67_id = _scope_id();
|
|
10107
|
-
_html(`<span${_attr_class("
|
|
10107
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope67_id, "c", backupLine || "Restoring…")}</span>`);
|
|
10108
10108
|
writeScope($scope67_id, {});
|
|
10109
10109
|
return 0;
|
|
10110
10110
|
} else if (restoreDone) {
|
|
10111
10111
|
const $scope75_id = _scope_id();
|
|
10112
|
-
_html(`<span${_attr_class("
|
|
10112
|
+
_html(`<span${_attr_class("_b3")}>${_text_resume($scope75_id, "b", restoreDone)}</span>`);
|
|
10113
10113
|
writeScope($scope75_id, {});
|
|
10114
10114
|
return 1;
|
|
10115
10115
|
} else {
|
|
10116
10116
|
const $scope141_id = _scope_id();
|
|
10117
|
-
_html(`<span${_attr_class("
|
|
10117
|
+
_html(`<span${_attr_class("_b3")}>Load a backup file. Repos clone in the background.</span>`);
|
|
10118
10118
|
writeScope($scope141_id, {});
|
|
10119
10119
|
return 2;
|
|
10120
10120
|
}
|
|
@@ -10122,7 +10122,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10122
10122
|
_if(() => {
|
|
10123
10123
|
if (!restorePreview && backupBusy !== "restore") {
|
|
10124
10124
|
const $scope77_id = _scope_id();
|
|
10125
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
10125
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_d_")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope77_id, "b")}</label>`);
|
|
10126
10126
|
_script($scope77_id, "B87");
|
|
10127
10127
|
writeScope($scope77_id, {});
|
|
10128
10128
|
return 0;
|
|
@@ -10133,14 +10133,14 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10133
10133
|
if (restorePreview && backupBusy !== "restore") {
|
|
10134
10134
|
const $scope70_id = _scope_id();
|
|
10135
10135
|
const { preview } = restorePreview;
|
|
10136
|
-
_html(`<div${_attr_class("
|
|
10136
|
+
_html(`<div${_attr_class("_ea")}><p${_attr_class("_eb")}>From ${_text_resume($scope70_id, "c", preview.from.host, 2)} on ${_text_resume($scope70_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope70_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
|
|
10137
10137
|
_if(() => {
|
|
10138
10138
|
if (preview.workspaces.length) {
|
|
10139
10139
|
const $scope71_id = _scope_id();
|
|
10140
10140
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
10141
10141
|
_for_of(preview.workspaces, (w) => {
|
|
10142
10142
|
const $scope72_id = _scope_id();
|
|
10143
|
-
_html(`<li><label${_attr_class(["
|
|
10143
|
+
_html(`<li><label${_attr_class(["_ek", { ["_em"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_el")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope72_id, "f", w.name)}</span>`);
|
|
10144
10144
|
_if(() => {
|
|
10145
10145
|
if (w.status === "archived") {
|
|
10146
10146
|
const $scope145_id = _scope_id();
|
|
@@ -10162,7 +10162,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10162
10162
|
return 1;
|
|
10163
10163
|
}
|
|
10164
10164
|
}, $scope72_id, "h", 1, 1, 1, 0, 1);
|
|
10165
|
-
_html(`</span><span${_attr_class("
|
|
10165
|
+
_html(`</span><span${_attr_class("_b3")}>${_text_resume($scope72_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope72_id, "a")}</li>`);
|
|
10166
10166
|
_script($scope72_id, "B88");
|
|
10167
10167
|
_subscribe($restoreWs__closures, writeScope($scope72_id, {
|
|
10168
10168
|
n: w?.unknownHost,
|
|
@@ -10173,7 +10173,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10173
10173
|
return 0;
|
|
10174
10174
|
} else {
|
|
10175
10175
|
const $scope143_id = _scope_id();
|
|
10176
|
-
_html(`<p${_attr_class("
|
|
10176
|
+
_html(`<p${_attr_class("_b5")}>No workspaces in this file.</p>`);
|
|
10177
10177
|
writeScope($scope143_id, {});
|
|
10178
10178
|
return 1;
|
|
10179
10179
|
}
|
|
@@ -10213,7 +10213,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10213
10213
|
_if(() => {
|
|
10214
10214
|
if (p.total) {
|
|
10215
10215
|
const $scope74_id = _scope_id();
|
|
10216
|
-
_html(`<li><label${_attr_class(["
|
|
10216
|
+
_html(`<li><label${_attr_class(["_ek", { ["_em"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_el")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("_b0")}><span${_attr_class("_b1")}>${_text_resume($scope74_id, "e", p.label)}</span><span${_attr_class("_b3")}>`);
|
|
10217
10217
|
_if(() => {
|
|
10218
10218
|
if (p.key === "settings") {
|
|
10219
10219
|
const $scope142_id = _scope_id();
|
|
@@ -10260,7 +10260,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10260
10260
|
i: $for_content10__p_total__closures
|
|
10261
10261
|
});
|
|
10262
10262
|
}, "key", $scope70_id, "h");
|
|
10263
|
-
_html(`</ul><div${_attr_class("
|
|
10263
|
+
_html(`</ul><div${_attr_class("_ei")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope70_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope70_id, "k")}</div></div>`);
|
|
10264
10264
|
_script($scope70_id, "B90");
|
|
10265
10265
|
writeScope($scope70_id, {});
|
|
10266
10266
|
return 0;
|
|
@@ -10497,13 +10497,13 @@ function vapidKey(base64) {
|
|
|
10497
10497
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10498
10498
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10499
10499
|
}
|
|
10500
|
-
var iconBtn = "
|
|
10501
|
-
var settingsDot = "
|
|
10502
|
-
var navToggle = "
|
|
10500
|
+
var iconBtn = "_b_ _l";
|
|
10501
|
+
var settingsDot = "_ca _bb";
|
|
10502
|
+
var navToggle = "_ce _l";
|
|
10503
10503
|
//#endregion
|
|
10504
10504
|
//#region src/styles/session-pop.css.ts
|
|
10505
|
-
var sessionPop = "
|
|
10506
|
-
var sessionPopBtn = "
|
|
10505
|
+
var sessionPop = "_cq _9";
|
|
10506
|
+
var sessionPopBtn = "_cr _I";
|
|
10507
10507
|
_template("X", (input) => {
|
|
10508
10508
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10509
10509
|
const $scope0_id = _scope_id();
|
|
@@ -10557,14 +10557,14 @@ function activeAgent(session) {
|
|
|
10557
10557
|
const command = session.state?.command?.trim();
|
|
10558
10558
|
return command && agentFromCommand(command) || session.agent;
|
|
10559
10559
|
}
|
|
10560
|
-
var heroTag = "
|
|
10561
|
-
var rowState = "
|
|
10562
|
-
var prChip$1 = "
|
|
10563
|
-
var portChip = "
|
|
10560
|
+
var heroTag = "_fe _N _Q";
|
|
10561
|
+
var rowState = "_fq _N";
|
|
10562
|
+
var prChip$1 = "_im _u _il";
|
|
10563
|
+
var portChip = "_in _u _il";
|
|
10564
10564
|
var prState = {
|
|
10565
|
-
open: "
|
|
10566
|
-
merged: "
|
|
10567
|
-
closed: "
|
|
10565
|
+
open: "_ir",
|
|
10566
|
+
merged: "_is",
|
|
10567
|
+
closed: "_it"
|
|
10568
10568
|
};
|
|
10569
10569
|
//#endregion
|
|
10570
10570
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10645,7 +10645,7 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10645
10645
|
const name = repo.full_name.split("/").at(-1);
|
|
10646
10646
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel$1(repo.full_name) : name;
|
|
10647
10647
|
}, "C3", $scope1_id);
|
|
10648
|
-
_html(`<div${_attr_class("
|
|
10648
|
+
_html(`<div${_attr_class("_ik")}>`);
|
|
10649
10649
|
_for_of(repos, (repo) => {
|
|
10650
10650
|
const $scope2_id = _scope_id();
|
|
10651
10651
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10661,11 +10661,11 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10661
10661
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10662
10662
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10663
10663
|
}
|
|
10664
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10664
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_io", { ["_iw"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
|
|
10665
10665
|
_if(() => {
|
|
10666
10666
|
if (open) {
|
|
10667
10667
|
const $scope4_id = _scope_id();
|
|
10668
|
-
_html(`<a${_attr_class(["
|
|
10668
|
+
_html(`<a${_attr_class(["_io", "_ip"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10669
10669
|
icon_diff_default({ size: 12 });
|
|
10670
10670
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10671
10671
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10673,9 +10673,9 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10673
10673
|
} else {
|
|
10674
10674
|
const $scope5_id = _scope_id();
|
|
10675
10675
|
_html(`<button type=button${_attr_class([
|
|
10676
|
-
"
|
|
10677
|
-
"
|
|
10678
|
-
"
|
|
10676
|
+
"_io",
|
|
10677
|
+
"_ip",
|
|
10678
|
+
"_iq"
|
|
10679
10679
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10680
10680
|
icon_xmark_default({ size: 12 });
|
|
10681
10681
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
@@ -10703,12 +10703,12 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10703
10703
|
_if(() => {
|
|
10704
10704
|
if (dead.has(p.port)) {
|
|
10705
10705
|
const $scope7_id = _scope_id();
|
|
10706
|
-
_html(`<span${_attr_class(["
|
|
10706
|
+
_html(`<span${_attr_class(["_io", "_iu"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10707
10707
|
_subscribe($dead__closures, writeScope($scope7_id, { Cy: 1 }));
|
|
10708
10708
|
return 0;
|
|
10709
10709
|
} else {
|
|
10710
10710
|
const $scope8_id = _scope_id();
|
|
10711
|
-
_html(`<button type=button${_attr_class(["
|
|
10711
|
+
_html(`<button type=button${_attr_class(["_io", "_iv"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10712
10712
|
_script($scope8_id, "C6");
|
|
10713
10713
|
writeScope($scope8_id, {});
|
|
10714
10714
|
return 1;
|
|
@@ -10717,9 +10717,9 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10717
10717
|
const $childScope = _peek_scope_id();
|
|
10718
10718
|
arm_button_default({
|
|
10719
10719
|
class: [
|
|
10720
|
-
"
|
|
10721
|
-
"
|
|
10722
|
-
"
|
|
10720
|
+
"_io",
|
|
10721
|
+
"_ip",
|
|
10722
|
+
"_iq"
|
|
10723
10723
|
],
|
|
10724
10724
|
title: `Kill ${p.cmd} (pid ${p.pid})`,
|
|
10725
10725
|
armedTitle: "Kill?",
|
|
@@ -10766,12 +10766,12 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10766
10766
|
});
|
|
10767
10767
|
_resume_branch($scope0_id);
|
|
10768
10768
|
});
|
|
10769
|
-
var railBtn = "
|
|
10770
|
-
var wsBtn = "
|
|
10771
|
-
var rowIcon = "
|
|
10772
|
-
var close = "
|
|
10773
|
-
var sessRename$1 = "
|
|
10774
|
-
var sessBtn$1 = "
|
|
10769
|
+
var railBtn = "_fv _l";
|
|
10770
|
+
var wsBtn = "_fz _I";
|
|
10771
|
+
var rowIcon = "_fC _3 _l";
|
|
10772
|
+
var close = "_fD _6 _l _7";
|
|
10773
|
+
var sessRename$1 = "_fJ _J";
|
|
10774
|
+
var sessBtn$1 = "_fL _I";
|
|
10775
10775
|
//#endregion
|
|
10776
10776
|
//#region src/tags/icons/icon-manage.marko
|
|
10777
10777
|
var icon_manage_default = _template("lb", (input) => {
|
|
@@ -10886,7 +10886,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10886
10886
|
_if(() => {
|
|
10887
10887
|
if (input.rail) {
|
|
10888
10888
|
const $scope2_id = _scope_id();
|
|
10889
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10889
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_fs"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${_text_resume($scope2_id, "b", input.index === void 0 ? "·" : input.index + 1, _serialize_guard($scope0_reason, 18))}<span${_attr_class([
|
|
10890
10890
|
"_A",
|
|
10891
10891
|
phase[dot$1],
|
|
10892
10892
|
"_bb"
|
|
@@ -10896,31 +10896,31 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10896
10896
|
} else if (ws$1.pending) {
|
|
10897
10897
|
const $scope3_id = _scope_id();
|
|
10898
10898
|
_html(`<section${_attr_class([
|
|
10899
|
-
"
|
|
10900
|
-
"
|
|
10901
|
-
{ ["
|
|
10902
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10899
|
+
"_fx",
|
|
10900
|
+
"_fN",
|
|
10901
|
+
{ ["_fw"]: input.page }
|
|
10902
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fy")}><div${_attr_class(wsBtn)}>`);
|
|
10903
10903
|
_if(() => {
|
|
10904
10904
|
if (ws$1.pending_error) {
|
|
10905
10905
|
const $scope11_id = _scope_id();
|
|
10906
10906
|
icon_warning_default({
|
|
10907
10907
|
size: 12,
|
|
10908
|
-
class: "
|
|
10908
|
+
class: "_fP"
|
|
10909
10909
|
});
|
|
10910
10910
|
$si__input_workspace && writeScope($scope11_id, {});
|
|
10911
10911
|
return 0;
|
|
10912
10912
|
} else {
|
|
10913
10913
|
const $scope12_id = _scope_id();
|
|
10914
|
-
_html(`<span${_attr_class(["_G", "
|
|
10914
|
+
_html(`<span${_attr_class(["_G", "_fO"])}></span>`);
|
|
10915
10915
|
$si__input_workspace && writeScope($scope12_id, {});
|
|
10916
10916
|
return 1;
|
|
10917
10917
|
}
|
|
10918
10918
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10919
|
-
_html(`<span${_attr_class("
|
|
10919
|
+
_html(`<span${_attr_class("_fF")}><span${_attr_class("_fG")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_fR")}${_attr("title", ws$1.pending_error || restoreLine)}>${_text_resume($scope3_id, "i", ws$1.pending_error ? `Restore failed: ${ws$1.pending_error}` : restoreLine || "Restoring…")}</span>${_el_resume($scope3_id, "h")}</span></div></div>`);
|
|
10920
10920
|
_if(() => {
|
|
10921
10921
|
if (ws$1.pending_error && !retrying) {
|
|
10922
10922
|
const $scope10_id = _scope_id();
|
|
10923
|
-
_html(`<div${_attr_class("
|
|
10923
|
+
_html(`<div${_attr_class("_fQ")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope10_id, "b")}`);
|
|
10924
10924
|
arm_button_default({
|
|
10925
10925
|
class: ["_q", btnSm],
|
|
10926
10926
|
title: "Delete workspace",
|
|
@@ -10951,11 +10951,11 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10951
10951
|
const $scope4_id = _scope_id();
|
|
10952
10952
|
const sessions$1 = input.sessions || [];
|
|
10953
10953
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10954
|
-
_html(`<section${_attr_class(["
|
|
10955
|
-
["
|
|
10954
|
+
_html(`<section${_attr_class(["_fx", {
|
|
10955
|
+
["_fs"]: input.current,
|
|
10956
10956
|
["_bc"]: input.current,
|
|
10957
|
-
["
|
|
10958
|
-
}])}><div${_attr_class("
|
|
10957
|
+
["_fu"]: input.menuOpen
|
|
10958
|
+
}])}><div${_attr_class("_fy")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class(["_A", phase[dot$1]])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10959
10959
|
_if(() => {
|
|
10960
10960
|
if (sessions$1.length === 1) {
|
|
10961
10961
|
const $scope14_id = _scope_id();
|
|
@@ -10967,7 +10967,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10967
10967
|
icon_agent_default({
|
|
10968
10968
|
agent: activeAgent(sessions$1[0]),
|
|
10969
10969
|
size: 12,
|
|
10970
|
-
class: "
|
|
10970
|
+
class: "_fE"
|
|
10971
10971
|
});
|
|
10972
10972
|
$si__input_sessions && writeScope($scope14_id, {
|
|
10973
10973
|
_: _scope_with_id($scope4_id),
|
|
@@ -10976,7 +10976,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10976
10976
|
return 0;
|
|
10977
10977
|
}
|
|
10978
10978
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview);
|
|
10979
|
-
_html(`<span${_attr_class("
|
|
10979
|
+
_html(`<span${_attr_class("_fF")}><span${_attr_class("_fG")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span></span> </a>${_el_resume($scope4_id, "c", $sg__input_workspace)}<div${_attr_class("_fA")}>`);
|
|
10980
10980
|
_if(() => {
|
|
10981
10981
|
if (input.onNewSession) {
|
|
10982
10982
|
const $scope5_id = _scope_id();
|
|
@@ -11004,19 +11004,19 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
11004
11004
|
return 0;
|
|
11005
11005
|
}
|
|
11006
11006
|
}, $scope4_id, "k", $sg__input_onReview, $sg__input_onReview, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview, 0, 1);
|
|
11007
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
11007
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_ft"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
11008
11008
|
icon_manage_default({ size: 12 });
|
|
11009
|
-
_html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("
|
|
11009
|
+
_html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("_fK")}>`);
|
|
11010
11010
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
11011
11011
|
const $scope6_id = _scope_id();
|
|
11012
|
-
_html(`<div${_attr_class(["
|
|
11012
|
+
_html(`<div${_attr_class(["_fB", { ["_fs"]: s.id === input.currentTab }])}>`);
|
|
11013
11013
|
_if(() => {
|
|
11014
11014
|
if (renamingId === s.id) {
|
|
11015
11015
|
const $scope7_id = _scope_id();
|
|
11016
11016
|
_html(`<span${_attr_class([
|
|
11017
11017
|
"_A",
|
|
11018
11018
|
phase[sessionPhase(s.state)],
|
|
11019
|
-
"
|
|
11019
|
+
"_fI"
|
|
11020
11020
|
])}></span>${_el_resume($scope7_id, "a", $sg__input_sessions)}`);
|
|
11021
11021
|
_set_serialize_reason({
|
|
11022
11022
|
1: $sg__input_sessions,
|
|
@@ -11026,7 +11026,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
11026
11026
|
icon_agent_default({
|
|
11027
11027
|
agent: activeAgent(s),
|
|
11028
11028
|
size: 12,
|
|
11029
|
-
class: "
|
|
11029
|
+
class: "_fM"
|
|
11030
11030
|
});
|
|
11031
11031
|
const $childScope3 = _peek_scope_id();
|
|
11032
11032
|
rename_input_default({
|
|
@@ -11057,9 +11057,9 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
11057
11057
|
icon_agent_default({
|
|
11058
11058
|
agent: activeAgent(s),
|
|
11059
11059
|
size: 12,
|
|
11060
|
-
class: "
|
|
11060
|
+
class: "_fM"
|
|
11061
11061
|
});
|
|
11062
|
-
_html(`<span${_attr_class("
|
|
11062
|
+
_html(`<span${_attr_class("_fH")}>${_text_resume($scope8_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope8_id, "a", _serialize_guard($scope0_reason, 3))}<button${_attr_class(rowIcon)} title="Rename session">`);
|
|
11063
11063
|
icon_edit_default({ size: 12 });
|
|
11064
11064
|
_html(`</button>${_el_resume($scope8_id, "f")}`);
|
|
11065
11065
|
arm_button_default({
|
|
@@ -11182,11 +11182,11 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11182
11182
|
const sessions = input.sessions || st?.sessions || [];
|
|
11183
11183
|
const manySessions = sessions.length > 1;
|
|
11184
11184
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11185
|
-
_html(`<div${_attr_class("
|
|
11185
|
+
_html(`<div${_attr_class("_fa")}>`);
|
|
11186
11186
|
_if(() => {
|
|
11187
11187
|
if (ws) {
|
|
11188
11188
|
const $scope1_id = _scope_id();
|
|
11189
|
-
_html(`<section${_attr_class("
|
|
11189
|
+
_html(`<section${_attr_class("_fb")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_fc")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11190
11190
|
_if(() => {
|
|
11191
11191
|
if (sessions.length === 1) {
|
|
11192
11192
|
const $scope8_id = _scope_id();
|
|
@@ -11198,7 +11198,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11198
11198
|
icon_agent_default({
|
|
11199
11199
|
agent: activeAgent(sessions[0]),
|
|
11200
11200
|
size: 16,
|
|
11201
|
-
class: "
|
|
11201
|
+
class: "_fg"
|
|
11202
11202
|
});
|
|
11203
11203
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
|
|
11204
11204
|
_: _scope_with_id($scope1_id),
|
|
@@ -11207,14 +11207,14 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11207
11207
|
return 0;
|
|
11208
11208
|
}
|
|
11209
11209
|
}, $scope1_id, "d", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions);
|
|
11210
|
-
_html(`<span${_attr_class("
|
|
11210
|
+
_html(`<span${_attr_class("_fd")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class(heroTag)}>open</span><span${_attr_class("_ff")}>${_text_resume($scope1_id, "i", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
|
|
11211
11211
|
_if(() => {
|
|
11212
11212
|
if (manySessions) {
|
|
11213
11213
|
const $scope2_id = _scope_id();
|
|
11214
|
-
_html(`<div${_attr_class("
|
|
11214
|
+
_html(`<div${_attr_class("_fh")}>`);
|
|
11215
11215
|
_for_of(sessions, (s) => {
|
|
11216
11216
|
const $scope3_id = _scope_id();
|
|
11217
|
-
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["
|
|
11217
|
+
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_fj", { ["_fi"]: s.id === input.tab }])}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope3_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}`);
|
|
11218
11218
|
_set_serialize_reason({
|
|
11219
11219
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11220
11220
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11224,7 +11224,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11224
11224
|
agent: activeAgent(s),
|
|
11225
11225
|
size: 14
|
|
11226
11226
|
});
|
|
11227
|
-
_html(`<span${_attr_class("
|
|
11227
|
+
_html(`<span${_attr_class("_fk")}>${_text_resume($scope3_id, "e", s.title || activeAgent(s), $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 7))}`);
|
|
11228
11228
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab && _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_tab && $input_tab__closures, writeScope($scope3_id, {
|
|
11229
11229
|
h: $si__input_tab && s?.id,
|
|
11230
11230
|
_: _scope_with_id($scope2_id),
|
|
@@ -11253,7 +11253,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11253
11253
|
_if(() => {
|
|
11254
11254
|
if (input.ids.length) {
|
|
11255
11255
|
const $scope4_id = _scope_id();
|
|
11256
|
-
_html(`<div${_attr_class("
|
|
11256
|
+
_html(`<div${_attr_class("_fl")}>`);
|
|
11257
11257
|
_for_of(input.ids, (id) => {
|
|
11258
11258
|
const $scope5_id = _scope_id();
|
|
11259
11259
|
const w = input.byId.get(id);
|
|
@@ -11297,7 +11297,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11297
11297
|
const rp = phaseOf(rs);
|
|
11298
11298
|
const rowSessions = rs?.sessions || [];
|
|
11299
11299
|
const many = rowSessions.length > 1;
|
|
11300
|
-
_html(`<div${_attr_class("
|
|
11300
|
+
_html(`<div${_attr_class("_fm")}><a${_attr("href", `/w/${id}`)}${_attr_class("_fn")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope7_id, "c", $sg__input_allStatus__OR__input_ids)}`);
|
|
11301
11301
|
_if(() => {
|
|
11302
11302
|
if (rowSessions.length === 1) {
|
|
11303
11303
|
const $scope9_id = _scope_id();
|
|
@@ -11309,7 +11309,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11309
11309
|
icon_agent_default({
|
|
11310
11310
|
agent: activeAgent(rowSessions[0]),
|
|
11311
11311
|
size: 16,
|
|
11312
|
-
class: "
|
|
11312
|
+
class: "_fp"
|
|
11313
11313
|
});
|
|
11314
11314
|
$si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
|
|
11315
11315
|
_: _scope_with_id($scope7_id),
|
|
@@ -11318,7 +11318,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11318
11318
|
return 0;
|
|
11319
11319
|
}
|
|
11320
11320
|
}, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
|
|
11321
|
-
_html(`<span${_attr_class("
|
|
11321
|
+
_html(`<span${_attr_class("_fo")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
|
|
11322
11322
|
_if(() => {
|
|
11323
11323
|
if (many) {
|
|
11324
11324
|
const $scope10_id = _scope_id();
|
|
@@ -11329,7 +11329,7 @@ var workspace_switcher_default = _template("O", (input) => {
|
|
|
11329
11329
|
}, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
|
|
11330
11330
|
icon_chevron_right_default({
|
|
11331
11331
|
size: 14,
|
|
11332
|
-
class: "
|
|
11332
|
+
class: "_fr"
|
|
11333
11333
|
});
|
|
11334
11334
|
_html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
|
|
11335
11335
|
_set_serialize_reason($sg__input_ids);
|
|
@@ -11449,13 +11449,13 @@ var usage_bars_default = _template("K", (input) => {
|
|
|
11449
11449
|
if (windows.length) {
|
|
11450
11450
|
const $scope1_id = _scope_id();
|
|
11451
11451
|
_html(`<span${_attr_class([
|
|
11452
|
-
"
|
|
11452
|
+
"_hb",
|
|
11453
11453
|
input.class,
|
|
11454
|
-
{ ["
|
|
11454
|
+
{ ["_hc"]: agent.stale_seconds != null }
|
|
11455
11455
|
])} role=img${_attr("aria-label", `Plan usage: ${summary}`)}${agent.stale_seconds != null ? _attr("title", `${summary} — ${agent.note || "provider unreachable"}; last cached numbers`) : _attr("title", summary)}>`);
|
|
11456
11456
|
_for_of(windows, (win) => {
|
|
11457
11457
|
const $scope2_id = _scope_id();
|
|
11458
|
-
_html(`<span${_attr_class(["
|
|
11458
|
+
_html(`<span${_attr_class(["_hd", win.used_percent >= 90 ? "_hh" : win.used_percent >= 70 ? "_hg" : win.used_percent >= 40 ? "_hf" : "_he"])}${_attr_style(`--pct:${Math.max(2, Math.min(100, win.used_percent))}%`)}></span>${_el_resume($scope2_id, "a", $sg__input_agent)}`);
|
|
11459
11459
|
$si__input_agent && writeScope($scope2_id, {});
|
|
11460
11460
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
11461
11461
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -11487,7 +11487,7 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11487
11487
|
const plan = openSess ? usageFor$1(openSess.agent, usage) : null;
|
|
11488
11488
|
const all = usage?.agents || [];
|
|
11489
11489
|
const peak = Math.max(0, ...(plan?.windows || []).map((w) => w.used_percent));
|
|
11490
|
-
const ringTone = _resume((pct) => pct >= 90 ? "
|
|
11490
|
+
const ringTone = _resume((pct) => pct >= 90 ? "_eW" : pct >= 70 ? "_eV" : pct >= 40 ? "_eU" : "_eT", "r0");
|
|
11491
11491
|
let card$2 = null;
|
|
11492
11492
|
const showCard = _resume((el) => {
|
|
11493
11493
|
const r = el.getBoundingClientRect();
|
|
@@ -11499,18 +11499,18 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11499
11499
|
_if(() => {
|
|
11500
11500
|
if (plan) {
|
|
11501
11501
|
const $scope1_id = _scope_id();
|
|
11502
|
-
_html(`<span${_attr_class("
|
|
11502
|
+
_html(`<span${_attr_class("_eN")} tabindex=0>`);
|
|
11503
11503
|
_set_serialize_reason(1);
|
|
11504
11504
|
const $childScope = _peek_scope_id();
|
|
11505
11505
|
usage_bars_default({
|
|
11506
|
-
class: "
|
|
11506
|
+
class: "_eP",
|
|
11507
11507
|
agent: plan
|
|
11508
11508
|
});
|
|
11509
|
-
_html(`<svg${_attr_class(["
|
|
11509
|
+
_html(`<svg${_attr_class(["_eQ", ringTone(peak)])} viewBox="0 0 16 16" width=16 height=16 aria-hidden=true><circle${_attr_class("_eR")} cx=8 cy=8 r=6.5></circle><circle${_attr_class("_eS")} cx=8 cy=8 r=6.5${_attr_style(`stroke-dasharray:${Math.max(2, Math.min(100, peak)) / 100 * 40.84} 40.84`)}></circle>${_el_resume($scope1_id, "e")}</svg>${_el_resume($scope1_id, "c")}</span>${_el_resume($scope1_id, "a")}`);
|
|
11510
11510
|
_if(() => {
|
|
11511
11511
|
if (card$2) {
|
|
11512
11512
|
const $scope2_id = _scope_id();
|
|
11513
|
-
_html(`<div${_attr_class(["_9", "
|
|
11513
|
+
_html(`<div${_attr_class(["_9", "_eO"])}${_attr_style(`left:${card$2.left}px;bottom:${card$2.bottom}px`)} role=tooltip>`);
|
|
11514
11514
|
_for_of(all, (a) => {
|
|
11515
11515
|
const $scope3_id = _scope_id();
|
|
11516
11516
|
_set_serialize_reason(6);
|
|
@@ -11607,14 +11607,14 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11607
11607
|
const backHref = ws ? `/w/${ws.id}` : "/new";
|
|
11608
11608
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11609
11609
|
const pageIds = orderedIds.filter((id) => id !== ws?.id);
|
|
11610
|
-
_html(`<aside${_attr_class(["
|
|
11611
|
-
["
|
|
11612
|
-
["
|
|
11610
|
+
_html(`<aside${_attr_class(["_cd", {
|
|
11611
|
+
["_cb"]: !navOpen,
|
|
11612
|
+
["_cc"]: isPage
|
|
11613
11613
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11614
11614
|
_if(() => {
|
|
11615
11615
|
if (isPage) {
|
|
11616
11616
|
const $scope1_id = _scope_id();
|
|
11617
|
-
_html(`<div${_attr_class("
|
|
11617
|
+
_html(`<div${_attr_class("_cg")}>`);
|
|
11618
11618
|
_set_serialize_reason({
|
|
11619
11619
|
3: $sg__input_instanceName,
|
|
11620
11620
|
6: $sg__input_instanceName
|
|
@@ -11623,7 +11623,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11623
11623
|
if (input.instanceName) $meta = attrTag({ content: _content_resume("E8", () => {
|
|
11624
11624
|
_scope_reason();
|
|
11625
11625
|
const $scope2_id = _scope_id();
|
|
11626
|
-
_html(`<span${_attr_class("
|
|
11626
|
+
_html(`<span${_attr_class("_ch")} title="This work server (Settings → Appearance)"><img${_attr_class("_ck")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}${_text_resume($scope2_id, "c", input.instanceName, $sg__input_instanceName)}</span>`);
|
|
11627
11627
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11628
11628
|
_resume_branch($scope2_id);
|
|
11629
11629
|
}, $scope1_id) });
|
|
@@ -11638,7 +11638,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11638
11638
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11639
11639
|
iconBtnRow,
|
|
11640
11640
|
iconBtn,
|
|
11641
|
-
{ ["
|
|
11641
|
+
{ ["_b9"]: view === "settings" }
|
|
11642
11642
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11643
11643
|
icon_settings_default({ size: 16 });
|
|
11644
11644
|
_if(() => {
|
|
@@ -11662,7 +11662,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11662
11662
|
_if(() => {
|
|
11663
11663
|
if (!isPage && input.instanceName) {
|
|
11664
11664
|
const $scope4_id = _scope_id();
|
|
11665
|
-
_html(`<div${_attr_class("
|
|
11665
|
+
_html(`<div${_attr_class("_cj")} title="This work server (Settings → Appearance)"><img${_attr_class("_ck")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope4_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_cl")}>${_text_resume($scope4_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11666
11666
|
writeScope($scope4_id, {});
|
|
11667
11667
|
return 0;
|
|
11668
11668
|
}
|
|
@@ -11730,7 +11730,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11730
11730
|
b: _serialize_if($scope0_reason, 21) && _existing_scope($childScope3)
|
|
11731
11731
|
});
|
|
11732
11732
|
}, (a) => a, $scope6_id, "a", $sg__input_agents, 1, $sg__input_workspace__OR__input_allWorkspaces__OR__input_agents, "</div>", 1);
|
|
11733
|
-
_html(`<div${_attr_class("
|
|
11733
|
+
_html(`<div${_attr_class("_cm")}>`);
|
|
11734
11734
|
_for_of(orderedIds, (wsId) => {
|
|
11735
11735
|
const $scope8_id = _scope_id();
|
|
11736
11736
|
_set_serialize_reason({
|
|
@@ -11807,7 +11807,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11807
11807
|
_if(() => {
|
|
11808
11808
|
if (!navOpen) {
|
|
11809
11809
|
const $scope9_id = _scope_id();
|
|
11810
|
-
_html(`<div${_attr_class("
|
|
11810
|
+
_html(`<div${_attr_class("_cn")}>`);
|
|
11811
11811
|
_for_of(orderedIds, (wsId, i) => {
|
|
11812
11812
|
const $scope10_id = _scope_id();
|
|
11813
11813
|
_set_serialize_reason({
|
|
@@ -11855,14 +11855,14 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11855
11855
|
return 0;
|
|
11856
11856
|
}
|
|
11857
11857
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
11858
|
-
_html(`<div${_attr_class("
|
|
11858
|
+
_html(`<div${_attr_class("_co")}>`);
|
|
11859
11859
|
_if(() => {
|
|
11860
11860
|
if (isPage) {
|
|
11861
11861
|
const $scope12_id = _scope_id();
|
|
11862
11862
|
_html(`<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([
|
|
11863
11863
|
"_q",
|
|
11864
11864
|
btnLg,
|
|
11865
|
-
"
|
|
11865
|
+
"_ci"
|
|
11866
11866
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11867
11867
|
icon_folder_plus_default({ size: 16 });
|
|
11868
11868
|
_html(` New workspace</a>${_el_resume($scope12_id, "a")}`);
|
|
@@ -11894,9 +11894,9 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11894
11894
|
sessions: input.sessions,
|
|
11895
11895
|
tab: view === "term" ? tab : null
|
|
11896
11896
|
});
|
|
11897
|
-
_html(`<div${_attr_class(["_z", "
|
|
11897
|
+
_html(`<div${_attr_class(["_z", "_cp"])}></div>`);
|
|
11898
11898
|
_if(() => {}, $scope11_id, "d", 1, 1, 1, 0, 1);
|
|
11899
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
11899
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_b9"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11900
11900
|
icon_settings_default({});
|
|
11901
11901
|
_if(() => {
|
|
11902
11902
|
if (input.setupReady === false) {
|
|
@@ -11906,7 +11906,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11906
11906
|
return 0;
|
|
11907
11907
|
}
|
|
11908
11908
|
}, $scope11_id, "g", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11909
|
-
_html(`</a>${_el_resume($scope11_id, "e")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
11909
|
+
_html(`</a>${_el_resume($scope11_id, "e")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_b9"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11910
11910
|
icon_folder_plus_default({ size: 16 });
|
|
11911
11911
|
_html(`</a>${_el_resume($scope11_id, "h")}`);
|
|
11912
11912
|
_script($scope11_id, "E13");
|
|
@@ -12989,7 +12989,7 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
12989
12989
|
return shortHeadFallback(head);
|
|
12990
12990
|
}
|
|
12991
12991
|
var treeToggle = "_go _4 _l";
|
|
12992
|
-
var pageTitle = "_gu
|
|
12992
|
+
var pageTitle = "_gu _dd";
|
|
12993
12993
|
//#endregion
|
|
12994
12994
|
//#region src/tags/icons/icon-comment.marko
|
|
12995
12995
|
var icon_comment_default = _template("bb", (input) => {
|
|
@@ -13050,12 +13050,12 @@ var diff_send_default = _template("k", (input) => {
|
|
|
13050
13050
|
}
|
|
13051
13051
|
})();
|
|
13052
13052
|
}, "k1", $scope0_id);
|
|
13053
|
-
_html(`<div${_attr_class("
|
|
13053
|
+
_html(`<div${_attr_class("_i3")} role=group${_attr("aria-label", label)}><span${_attr_class("_i4")}${_attr("title", label)}>`);
|
|
13054
13054
|
icon_comment_default({
|
|
13055
13055
|
size: 18,
|
|
13056
|
-
class: "
|
|
13056
|
+
class: "_i5"
|
|
13057
13057
|
});
|
|
13058
|
-
_html(`<span${_attr_class("
|
|
13058
|
+
_html(`<span${_attr_class("_i6")} aria-hidden=true>${_text_resume($scope0_id, "e", input.count > 99 ? "99+" : input.count, $sg__input_count)}</span></span>${_el_resume($scope0_id, "b", $sg__input_count)}<button type=button${_attr_class("_i7")} title="Copy comments as markdown" aria-label="Copy comments as markdown">`);
|
|
13059
13059
|
_if(() => {
|
|
13060
13060
|
{
|
|
13061
13061
|
const $scope6_id = _scope_id();
|
|
@@ -13067,11 +13067,11 @@ var diff_send_default = _template("k", (input) => {
|
|
|
13067
13067
|
_if(() => {
|
|
13068
13068
|
if (target) {
|
|
13069
13069
|
const $scope1_id = _scope_id();
|
|
13070
|
-
_html(`<button type=button${_attr_class(["
|
|
13070
|
+
_html(`<button type=button${_attr_class(["_i7", "_i8"])}${_attr("disabled", sending)}${_attr("title", `Send comments to ${target.title || target.agent}`)}>`);
|
|
13071
13071
|
_if(() => {
|
|
13072
13072
|
if (sessions.length > 1) {
|
|
13073
13073
|
const $scope2_id = _scope_id();
|
|
13074
|
-
_html(`<span${_attr_class(["
|
|
13074
|
+
_html(`<span${_attr_class(["_ja", "_i_"])}>${_text_resume($scope2_id, "b", sending ? "Sending…" : `Send to ${target.title || target.agent}`)}</span><span${_attr_class("_i9")}>${_text_resume($scope2_id, "d", sending ? "Sending…" : "Send")}</span>`);
|
|
13075
13075
|
_subscribe($target_agent__closures, _subscribe($target_title__closures, _subscribe($sending__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))));
|
|
13076
13076
|
return 0;
|
|
13077
13077
|
} else {
|
|
@@ -13087,15 +13087,15 @@ var diff_send_default = _template("k", (input) => {
|
|
|
13087
13087
|
_if(() => {
|
|
13088
13088
|
if (sessions.length > 1) {
|
|
13089
13089
|
const $scope4_id = _scope_id();
|
|
13090
|
-
_html(`<span${_attr_class("
|
|
13091
|
-
"
|
|
13092
|
-
"
|
|
13093
|
-
"
|
|
13090
|
+
_html(`<span${_attr_class("_jb")}><button type=button${_attr_class([
|
|
13091
|
+
"_i7",
|
|
13092
|
+
"_i8",
|
|
13093
|
+
"_jc"
|
|
13094
13094
|
])} aria-label="Choose session to send to"${_attr("disabled", sending)}></button>${_el_resume($scope4_id, "b")}`);
|
|
13095
13095
|
_attr_select_value($scope4_id, "c", target.id, _resume(function(v) {
|
|
13096
13096
|
sendTarget = v;
|
|
13097
13097
|
}, "k0", $scope4_id), () => {
|
|
13098
|
-
_html(`<select${_attr_class("
|
|
13098
|
+
_html(`<select${_attr_class("_jd")} aria-label="Send comments to session" tabindex=-1${_attr("disabled", sending)}>`);
|
|
13099
13099
|
_for_of(sessions, (s) => {
|
|
13100
13100
|
const $scope7_id = _scope_id();
|
|
13101
13101
|
_html(`<option${_attr_option_value(s.id)}>${_text_resume($scope7_id, "b", s.title || s.agent, $sg__input_sessions)}</option>${_el_resume($scope7_id, "a", $sg__input_sessions)}`);
|
|
@@ -13172,8 +13172,8 @@ var icon_branch_default = _template("Y", (input) => {
|
|
|
13172
13172
|
});
|
|
13173
13173
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
13174
13174
|
});
|
|
13175
|
-
var findInput = "
|
|
13176
|
-
var findIconBtn = "
|
|
13175
|
+
var findInput = "_eq _n";
|
|
13176
|
+
var findIconBtn = "_et _l";
|
|
13177
13177
|
//#endregion
|
|
13178
13178
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
13179
13179
|
var icon_arrow_down_default = _template("R", (input) => {
|
|
@@ -13265,18 +13265,18 @@ var diff_find_default = _template("j", (input) => {
|
|
|
13265
13265
|
}, 0);
|
|
13266
13266
|
}, "j0", $scope0_id);
|
|
13267
13267
|
_html(`<div${_attr_class([
|
|
13268
|
-
"
|
|
13269
|
-
input.keybar && "
|
|
13270
|
-
!open && "
|
|
13271
|
-
])} aria-hidden=${open ? "false" : "true"}><span${_attr_class("
|
|
13268
|
+
"_eo",
|
|
13269
|
+
input.keybar && "_ex",
|
|
13270
|
+
!open && "_en"
|
|
13271
|
+
])} aria-hidden=${open ? "false" : "true"}><span${_attr_class("_ep")} aria-hidden=true>`);
|
|
13272
13272
|
icon_search_default({ size: 13 });
|
|
13273
13273
|
_html(`</span><input${_attr_input_value($scope0_id, "d", query || "", _resume(function(v) {
|
|
13274
13274
|
type(v);
|
|
13275
|
-
}, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "
|
|
13275
|
+
}, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "_ez"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "d")}<span${_attr_class("_es")}>${_text_resume($scope0_id, "f", open && (query || "").trim() ? hits.length ? `${at + 1}/${hits.length}` : "0/0" : "")}</span><button type=button${_attr_class([findIconBtn, input.keybar && "_eA"])} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13276
13276
|
icon_arrow_up_default({ size: 14 });
|
|
13277
|
-
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "
|
|
13277
|
+
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "_eA"])} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13278
13278
|
icon_arrow_down_default({ size: 14 });
|
|
13279
|
-
_html(`</button>${_el_resume($scope0_id, "i")}<button type=button${_attr_class([findIconBtn, input.keybar && "
|
|
13279
|
+
_html(`</button>${_el_resume($scope0_id, "i")}<button type=button${_attr_class([findIconBtn, input.keybar && "_eA"])} title="Close find"${_attr("hidden", input.pinned)} tabindex=${open ? "0" : "-1"}>`);
|
|
13280
13280
|
icon_xmark_default({ size: 14 });
|
|
13281
13281
|
_html(`</button>${_el_resume($scope0_id, "k")}</div>${_el_resume($scope0_id, "a")}`);
|
|
13282
13282
|
const $return = focusInput;
|
|
@@ -13315,7 +13315,7 @@ var diff_find_default = _template("j", (input) => {
|
|
|
13315
13315
|
_resume_branch($scope0_id);
|
|
13316
13316
|
return $return;
|
|
13317
13317
|
});
|
|
13318
|
-
var worktree = "
|
|
13318
|
+
var worktree = "_jt _y";
|
|
13319
13319
|
var repoTitle = "_jK _x";
|
|
13320
13320
|
//#endregion
|
|
13321
13321
|
//#region src/tags/review-head.marko
|
|
@@ -13510,30 +13510,30 @@ var review_repos_default = _template("y", (input) => {
|
|
|
13510
13510
|
_if(() => {
|
|
13511
13511
|
if (input.tabs.length) {
|
|
13512
13512
|
const $scope1_id = _scope_id();
|
|
13513
|
-
_html(`<div${_attr_class(["
|
|
13513
|
+
_html(`<div${_attr_class(["_ji", { ["_jh"]: many }])}>`);
|
|
13514
13514
|
_if(() => {
|
|
13515
13515
|
if (many) {
|
|
13516
13516
|
const $scope2_id = _scope_id();
|
|
13517
|
-
_html(`<div${_attr_class(["
|
|
13518
|
-
["
|
|
13519
|
-
["
|
|
13517
|
+
_html(`<div${_attr_class(["_jl", {
|
|
13518
|
+
["_jk"]: edges.end,
|
|
13519
|
+
["_jj"]: edges.start
|
|
13520
13520
|
}])} role=tablist>`);
|
|
13521
13521
|
_for_of(input.tabs, (tab$1) => {
|
|
13522
13522
|
const $scope3_id = _scope_id();
|
|
13523
13523
|
const repo = tab$1.repo;
|
|
13524
13524
|
const isOn = current?.repo.id === repo.id;
|
|
13525
13525
|
const isFolded = input.folded.has(repo.id);
|
|
13526
|
-
_html(`<div${_attr_class(["
|
|
13527
|
-
["
|
|
13528
|
-
["
|
|
13529
|
-
}])} role=tab aria-selected=${isOn ? "true" : "false"}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}><button type=button${_attr_class("
|
|
13526
|
+
_html(`<div${_attr_class(["_jo", {
|
|
13527
|
+
["_jm"]: isOn,
|
|
13528
|
+
["_jn"]: isFolded
|
|
13529
|
+
}])} role=tab aria-selected=${isOn ? "true" : "false"}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}><button type=button${_attr_class("_jr")} title=${isFolded ? "\"Show this section's files\"" : "\"Hide this section's files\""} aria-expanded=${isFolded ? "false" : "true"}><span${_attr_class("_js")}>▾</span></button>${_el_resume($scope3_id, "b")}<button type=button${_attr_class("_jq")} title="Scroll to this section"><span${_attr_class(worktree)}>${_text_resume($scope3_id, "f", repo.worktree, $sg__input_tabs)}</span>`);
|
|
13530
13530
|
_if(() => {
|
|
13531
13531
|
if (repo.pr) {
|
|
13532
13532
|
const $scope5_id = _scope_id();
|
|
13533
13533
|
_html(`<span${_attr_class([
|
|
13534
13534
|
"_u",
|
|
13535
13535
|
"_v",
|
|
13536
|
-
"
|
|
13536
|
+
"_ju"
|
|
13537
13537
|
])}>#${_text_resume($scope5_id, "b", repo.pr.number, $sg__input_tabs * 2)}</span>`);
|
|
13538
13538
|
$si__input_tabs && writeScope($scope5_id, { _: _scope_with_id($scope3_id) });
|
|
13539
13539
|
return 0;
|
|
@@ -13559,11 +13559,11 @@ var review_repos_default = _template("y", (input) => {
|
|
|
13559
13559
|
if (current) {
|
|
13560
13560
|
const $scope4_id = _scope_id();
|
|
13561
13561
|
const one = current.repo;
|
|
13562
|
-
_html(`<div${_attr_class("
|
|
13562
|
+
_html(`<div${_attr_class("_jv")}>`);
|
|
13563
13563
|
_if(() => {
|
|
13564
13564
|
if (!many) {
|
|
13565
13565
|
const $scope6_id = _scope_id();
|
|
13566
|
-
_html(`<span${_attr_class([worktree, "
|
|
13566
|
+
_html(`<span${_attr_class([worktree, "_jp"])}>${_text_resume($scope6_id, "b", one.worktree, $sg__input_tabs__OR__input_active)}</span>`);
|
|
13567
13567
|
$si__input_tabs__OR__input_active && writeScope($scope6_id, { _: _scope_with_id($scope4_id) });
|
|
13568
13568
|
return 0;
|
|
13569
13569
|
}
|
|
@@ -13748,7 +13748,7 @@ var review_tree_default = _template("z", (input) => {
|
|
|
13748
13748
|
dragging$1 = false;
|
|
13749
13749
|
if (width != null) setDiffTreeWidth(width);
|
|
13750
13750
|
}, "z2", $scope0_id);
|
|
13751
|
-
_html(`<div${_attr_class(["
|
|
13751
|
+
_html(`<div${_attr_class(["_iy", { ["_ix"]: input.open === false }])}${width != null ? _attr_style(`--tree-w:${width}px`) : ""}><div${_attr_class(["_iL", { ["_iK"]: dragging$1 }])} title="Drag to resize"></div>${_el_resume($scope0_id, "b")}<div${_attr_class("_iz")}>`);
|
|
13752
13752
|
_set_serialize_reason(2);
|
|
13753
13753
|
const $childScope = _peek_scope_id();
|
|
13754
13754
|
file_filter_default({
|
|
@@ -13757,22 +13757,22 @@ var review_tree_default = _template("z", (input) => {
|
|
|
13757
13757
|
filter$1 = _new_filter;
|
|
13758
13758
|
}, "z3", $scope0_id)
|
|
13759
13759
|
});
|
|
13760
|
-
_html(`</div><div${_attr_class("
|
|
13760
|
+
_html(`</div><div${_attr_class("_iA")}>`);
|
|
13761
13761
|
_for_of(input.sections, (section$2) => {
|
|
13762
13762
|
const $scope1_id = _scope_id();
|
|
13763
|
-
_html(`<div${_attr_class(["
|
|
13763
|
+
_html(`<div${_attr_class(["_iC", { ["_iB"]: input.sections.length === 1 }])}${_attr("data-section", section$2.id)}>`);
|
|
13764
13764
|
_if(() => {
|
|
13765
13765
|
if (input.sections.length > 1) {
|
|
13766
13766
|
const $scope2_id = _scope_id();
|
|
13767
|
-
_html(`<button type=button${_attr_class("
|
|
13767
|
+
_html(`<button type=button${_attr_class("_iD")}${_attr("title", section$2.label)} aria-expanded=${closed$4.has(section$2.id) ? "false" : "true"}><span${_attr_class(["_iE", { ["_iF"]: !closed$4.has(section$2.id) }])} aria-hidden=true>`);
|
|
13768
13768
|
icon_chevron_right_default({ size: 12 });
|
|
13769
|
-
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("
|
|
13769
|
+
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("_iG")}>${_text_resume($scope2_id, "e", section$2.label, $sg__input_sections)}</span><span${_attr_class("_iH")}>${_text_resume($scope2_id, "g", section$2.files.length, $sg__input_sections)}</span></button>${_el_resume($scope2_id, "a")}`);
|
|
13770
13770
|
_script($scope2_id, "z4");
|
|
13771
13771
|
_subscribe($closed__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }));
|
|
13772
13772
|
return 0;
|
|
13773
13773
|
}
|
|
13774
13774
|
}, $scope1_id, "b", $sg__input_sections, $sg__input_sections_length, $sg__input_sections_length, 0, 1);
|
|
13775
|
-
_html(`<div${_attr_class(["
|
|
13775
|
+
_html(`<div${_attr_class(["_iJ", { ["_iI"]: input.sections.length === 1 }])}${_attr("data-tree", section$2.id)}${_attr("hidden", closed$4.has(section$2.id))}></div>${_el_resume($scope1_id, "c")}</div>${_el_resume($scope1_id, "a", $sg__input_sections)}`);
|
|
13776
13776
|
writeScope($scope1_id, {
|
|
13777
13777
|
f: section$2?.id,
|
|
13778
13778
|
h: $si__input_sections_length && section$2?.label,
|
|
@@ -13804,7 +13804,7 @@ var review_tree_default = _template("z", (input) => {
|
|
|
13804
13804
|
});
|
|
13805
13805
|
_resume_branch($scope0_id);
|
|
13806
13806
|
});
|
|
13807
|
-
var sheetDir = "
|
|
13807
|
+
var sheetDir = "_iX _ba";
|
|
13808
13808
|
//#endregion
|
|
13809
13809
|
//#region src/tags/diff-file-sheet.marko
|
|
13810
13810
|
var diff_file_sheet_default = _template("i", (input) => {
|
|
@@ -13860,9 +13860,9 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13860
13860
|
_if(() => {
|
|
13861
13861
|
if (open) {
|
|
13862
13862
|
const $scope1_id = _scope_id();
|
|
13863
|
-
_html(`<div${_attr_class("
|
|
13863
|
+
_html(`<div${_attr_class("_iO")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_iP")} role=dialog aria-label="Jump to file"><div${_attr_class("_iQ")}><strong${_attr_class("_iN")}>Files</strong><span${_attr_class("_iR")}>${_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, "_iM"])} title=Close aria-label=Close>`);
|
|
13864
13864
|
icon_xmark_default({ size: 16 });
|
|
13865
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
13865
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_iZ")}>`);
|
|
13866
13866
|
_set_serialize_reason(2);
|
|
13867
13867
|
const $childScope = _peek_scope_id();
|
|
13868
13868
|
file_filter_default({
|
|
@@ -13871,13 +13871,13 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13871
13871
|
filter = _new_filter;
|
|
13872
13872
|
}, "i1", $scope1_id)
|
|
13873
13873
|
});
|
|
13874
|
-
_html(`</div><div${_attr_class("
|
|
13874
|
+
_html(`</div><div${_attr_class("_iS")}>`);
|
|
13875
13875
|
_for_of(groups, (group) => {
|
|
13876
13876
|
const $scope2_id = _scope_id();
|
|
13877
|
-
_html(`<div${_attr_class("
|
|
13877
|
+
_html(`<div${_attr_class("_iT")}><div${_attr_class("_iU")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
13878
13878
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
13879
13879
|
const $scope3_id = _scope_id();
|
|
13880
|
-
_html(`<div${_attr_class("
|
|
13880
|
+
_html(`<div${_attr_class("_iV")}>`);
|
|
13881
13881
|
_if(() => {
|
|
13882
13882
|
if (dir) {
|
|
13883
13883
|
const $scope5_id = _scope_id();
|
|
@@ -13888,11 +13888,11 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13888
13888
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
13889
13889
|
_for_of(files, ({ file, name }) => {
|
|
13890
13890
|
const $scope4_id = _scope_id();
|
|
13891
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
13891
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_iW", "_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("_iY")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
13892
13892
|
_if(() => {
|
|
13893
13893
|
if (newKeys.has(file.key)) {
|
|
13894
13894
|
const $scope6_id = _scope_id();
|
|
13895
|
-
_html(`<span${_attr_class(["_A", "
|
|
13895
|
+
_html(`<span${_attr_class(["_A", "_i1"])} title="Changed since your last visit"></span>`);
|
|
13896
13896
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
13897
13897
|
return 0;
|
|
13898
13898
|
}
|
|
@@ -13902,7 +13902,7 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13902
13902
|
const $scope7_id = _scope_id();
|
|
13903
13903
|
icon_comment_default({
|
|
13904
13904
|
size: 12,
|
|
13905
|
-
class: "
|
|
13905
|
+
class: "_i2"
|
|
13906
13906
|
});
|
|
13907
13907
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
13908
13908
|
return 0;
|
|
@@ -13927,7 +13927,7 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13927
13927
|
_if(() => {
|
|
13928
13928
|
if (!input.files.length) {
|
|
13929
13929
|
const $scope8_id = _scope_id();
|
|
13930
|
-
_html(`<p${_attr_class("
|
|
13930
|
+
_html(`<p${_attr_class("_i0")}>No files match.</p>`);
|
|
13931
13931
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
13932
13932
|
return 0;
|
|
13933
13933
|
}
|
|
@@ -14636,12 +14636,12 @@ var review_view_default = _template("A", (input) => {
|
|
|
14636
14636
|
_if(() => {
|
|
14637
14637
|
if (repos && !allFiles.length) {
|
|
14638
14638
|
const $scope8_id = _scope_id();
|
|
14639
|
-
_html(`<p${_attr_class("
|
|
14639
|
+
_html(`<p${_attr_class("_b6")}>${_text_resume($scope8_id, "b", rev ? "This commit is not in any of these repos." : repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
|
|
14640
14640
|
writeScope($scope8_id, {});
|
|
14641
14641
|
return 0;
|
|
14642
14642
|
} else if (repos && !listFiles.length && !findState.hit) {
|
|
14643
14643
|
const $scope5_id = _scope_id();
|
|
14644
|
-
_html(`<p${_attr_class("
|
|
14644
|
+
_html(`<p${_attr_class("_b6")}>${_text_resume($scope5_id, "b", findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${fileFilter}".`)}</p>`);
|
|
14645
14645
|
writeScope($scope5_id, {});
|
|
14646
14646
|
return 1;
|
|
14647
14647
|
}
|
|
@@ -14926,10 +14926,10 @@ function parseInvite(text) {
|
|
|
14926
14926
|
}
|
|
14927
14927
|
//#endregion
|
|
14928
14928
|
//#region src/tags/manage-workspace.css.ts
|
|
14929
|
-
var procCmd = "_f8
|
|
14930
|
-
var skillRow = "_f_
|
|
14931
|
-
var skillName = "_gb _f8
|
|
14932
|
-
var skillDesc = "_ge
|
|
14929
|
+
var procCmd = "_f8 _c2";
|
|
14930
|
+
var skillRow = "_f_ _c0";
|
|
14931
|
+
var skillName = "_gb _f8 _c2";
|
|
14932
|
+
var skillDesc = "_ge _c3";
|
|
14933
14933
|
//#endregion
|
|
14934
14934
|
//#region src/tags/icons/icon-archive.marko
|
|
14935
14935
|
var icon_archive_default = _template("Q", (input) => {
|
|
@@ -14964,10 +14964,10 @@ var icon_trash_default = _template("wb", (input) => {
|
|
|
14964
14964
|
});
|
|
14965
14965
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
14966
14966
|
});
|
|
14967
|
-
var resultRow = "
|
|
14968
|
-
var resultBranch = "
|
|
14969
|
-
var urlAction = "
|
|
14970
|
-
var addedRow = "
|
|
14967
|
+
var resultRow = "_h7 _I";
|
|
14968
|
+
var resultBranch = "_h8 _c7 _X _W _3 _l";
|
|
14969
|
+
var urlAction = "_h9 _c7 _X _W _c8";
|
|
14970
|
+
var addedRow = "_ij _c0";
|
|
14971
14971
|
//#endregion
|
|
14972
14972
|
//#region src/tags/branch-pick.marko
|
|
14973
14973
|
var branch_pick_default = _template("f", (input) => {
|
|
@@ -14980,11 +14980,11 @@ var branch_pick_default = _template("f", (input) => {
|
|
|
14980
14980
|
let branchFilter = "";
|
|
14981
14981
|
let reloadTick = 0;
|
|
14982
14982
|
let refreshing = false;
|
|
14983
|
-
_html(`<div${_attr_class("
|
|
14983
|
+
_html(`<div${_attr_class("_h_")}>`);
|
|
14984
14984
|
_if(() => {
|
|
14985
14985
|
{
|
|
14986
14986
|
const $scope4_id = _scope_id();
|
|
14987
|
-
_html(`<p${_attr_class("
|
|
14987
|
+
_html(`<p${_attr_class("_b5")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
14988
14988
|
writeScope($scope4_id, {});
|
|
14989
14989
|
return 0;
|
|
14990
14990
|
}
|
|
@@ -15087,10 +15087,10 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15087
15087
|
}, $scope0_id) };
|
|
15088
15088
|
const addedList = sheet ? input$2.added || [] : [];
|
|
15089
15089
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || ssoPending.length || sheet && !!input$2.added);
|
|
15090
|
-
_html(`<div${_attr_class(["
|
|
15091
|
-
["
|
|
15092
|
-
["
|
|
15093
|
-
}])}><label${_attr_class(["_0", "
|
|
15090
|
+
_html(`<div${_attr_class(["_cz", {
|
|
15091
|
+
["_cA"]: !input$2.open,
|
|
15092
|
+
["_cB"]: input$2.pinned
|
|
15093
|
+
}])}><label${_attr_class(["_0", "_cC"])}>`);
|
|
15094
15094
|
icon_search_default({
|
|
15095
15095
|
size: 14,
|
|
15096
15096
|
class: "_1"
|
|
@@ -15102,14 +15102,14 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15102
15102
|
}, "w0", $scope0_id))}${_attr_class([
|
|
15103
15103
|
"_Y",
|
|
15104
15104
|
"_2",
|
|
15105
|
-
"
|
|
15106
|
-
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
15105
|
+
"_cD"
|
|
15106
|
+
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "d")}</label><button${_attr_class([iconBtnRow, "_cF"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
15107
15107
|
icon_xmark_default({ size: 14 });
|
|
15108
15108
|
_html(`</button>${_el_resume($scope0_id, "e")}<div${_attr_class(pop$1)}${_attr("hidden", !hasBody || !input$2.open && !input$2.pinned)}>`);
|
|
15109
15109
|
_if(() => {
|
|
15110
15110
|
if (ssoPending.length) {
|
|
15111
15111
|
const $scope11_id = _scope_id();
|
|
15112
|
-
_html(`<div${_attr_class("
|
|
15112
|
+
_html(`<div${_attr_class("_h3")}>`);
|
|
15113
15113
|
ssoBlock.content({});
|
|
15114
15114
|
_html("</div>");
|
|
15115
15115
|
writeScope($scope11_id, {});
|
|
@@ -15119,16 +15119,16 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15119
15119
|
_if(() => {
|
|
15120
15120
|
if (pasted) {
|
|
15121
15121
|
const $scope1_id = _scope_id();
|
|
15122
|
-
_html(`<ul${_attr_class("
|
|
15122
|
+
_html(`<ul${_attr_class("_h4")}><li><div${_attr_class(["_h6", "_h5"])}><button${_attr_class(resultRow)}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
15123
15123
|
icon_plus_default({
|
|
15124
15124
|
size: 12,
|
|
15125
|
-
class: "
|
|
15125
|
+
class: "_ib"
|
|
15126
15126
|
});
|
|
15127
|
-
_html(`<span${_attr_class("
|
|
15127
|
+
_html(`<span${_attr_class("_ic")}>${_text_resume($scope1_id, "f", repoLabel$1(pasted))}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
15128
15128
|
_if(() => {
|
|
15129
15129
|
if (pastedForkable) {
|
|
15130
15130
|
const $scope10_id = _scope_id();
|
|
15131
|
-
_html(`<button${_attr_class([urlAction, { ["
|
|
15131
|
+
_html(`<button${_attr_class([urlAction, { ["_c6"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>`);
|
|
15132
15132
|
_if(() => {
|
|
15133
15133
|
if (pasteWillFork) {
|
|
15134
15134
|
const $scope13_id = _scope_id();
|
|
@@ -15148,7 +15148,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15148
15148
|
return 0;
|
|
15149
15149
|
}
|
|
15150
15150
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
15151
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
15151
|
+
_html(`<button${_attr_class([resultBranch, { ["_c6"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
15152
15152
|
icon_branch_default({ size: 12 });
|
|
15153
15153
|
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
15154
15154
|
_if(() => {
|
|
@@ -15175,7 +15175,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15175
15175
|
return 0;
|
|
15176
15176
|
} else if (filter && !catalog) {
|
|
15177
15177
|
const $scope12_id = _scope_id();
|
|
15178
|
-
_html(`<p${_attr_class("
|
|
15178
|
+
_html(`<p${_attr_class("_b5")}>Loading repos…</p>`);
|
|
15179
15179
|
writeScope($scope12_id, {});
|
|
15180
15180
|
return 1;
|
|
15181
15181
|
}
|
|
@@ -15183,15 +15183,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15183
15183
|
_if(() => {
|
|
15184
15184
|
if (results.length) {
|
|
15185
15185
|
const $scope3_id = _scope_id();
|
|
15186
|
-
_html(`<ul${_attr_class("
|
|
15186
|
+
_html(`<ul${_attr_class("_h4")}>`);
|
|
15187
15187
|
_for_of(results, (repo, i) => {
|
|
15188
15188
|
const $scope4_id = _scope_id();
|
|
15189
|
-
_html(`<li><div${_attr_class(["
|
|
15189
|
+
_html(`<li><div${_attr_class(["_h6", { ["_h5"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15190
15190
|
icon_plus_default({
|
|
15191
15191
|
size: 12,
|
|
15192
|
-
class: "
|
|
15192
|
+
class: "_ib"
|
|
15193
15193
|
});
|
|
15194
|
-
_html(`<span${_attr_class("
|
|
15194
|
+
_html(`<span${_attr_class("_ic")}>${_text_resume($scope4_id, "e", repoLabel$1(repo.nameWithOwner))}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c6"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
15195
15195
|
icon_branch_default({ size: 12 });
|
|
15196
15196
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
15197
15197
|
_if(() => {
|
|
@@ -15226,7 +15226,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15226
15226
|
return 0;
|
|
15227
15227
|
} else if (filter && catalog && !pasted) {
|
|
15228
15228
|
const $scope8_id = _scope_id();
|
|
15229
|
-
_html(`<p${_attr_class("
|
|
15229
|
+
_html(`<p${_attr_class("_b5")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
15230
15230
|
writeScope($scope8_id, {});
|
|
15231
15231
|
return 1;
|
|
15232
15232
|
}
|
|
@@ -15234,10 +15234,10 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15234
15234
|
_if(() => {
|
|
15235
15235
|
if (sheet && input$2.added) {
|
|
15236
15236
|
const $scope6_id = _scope_id();
|
|
15237
|
-
_html(`<div${_attr_class("
|
|
15237
|
+
_html(`<div${_attr_class("_ih")}><p${_attr_class("_ii")}>Repos <span${_attr_class(sectionCount$1)}>${_text_resume($scope6_id, "d", addedList.length, $sg__input_added)}</span></p><ul${_attr_class(list$2)}>`);
|
|
15238
15238
|
_for_of(addedList, (repo) => {
|
|
15239
15239
|
const $scope15_id = _scope_id();
|
|
15240
|
-
_html(`<li${_attr_class([addedRow, { ["
|
|
15240
|
+
_html(`<li${_attr_class([addedRow, { ["_c5"]: repo.pending }])}>`);
|
|
15241
15241
|
_if(() => {
|
|
15242
15242
|
if (repo.pending) {
|
|
15243
15243
|
const $scope17_id = _scope_id();
|
|
@@ -15248,13 +15248,13 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15248
15248
|
const $scope18_id = _scope_id();
|
|
15249
15249
|
icon_check_default({
|
|
15250
15250
|
size: 12,
|
|
15251
|
-
class: "
|
|
15251
|
+
class: "_ib"
|
|
15252
15252
|
});
|
|
15253
15253
|
$si__input_added && writeScope($scope18_id, {});
|
|
15254
15254
|
return 1;
|
|
15255
15255
|
}
|
|
15256
15256
|
}, $scope15_id, "b", $sg__input_added, $sg__input_added, $sg__input_added, 0, 1);
|
|
15257
|
-
_html(`<span${_attr_class("
|
|
15257
|
+
_html(`<span${_attr_class("_ic")}>${_text_resume($scope15_id, "d", repoLabel$1(repo.name), $sg__input_added)}</span>`);
|
|
15258
15258
|
_if(() => {
|
|
15259
15259
|
if (repo.baseBranch) {
|
|
15260
15260
|
const $scope16_id = _scope_id();
|
|
@@ -15271,7 +15271,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15271
15271
|
_if(() => {
|
|
15272
15272
|
if (!addedList.length) {
|
|
15273
15273
|
const $scope7_id = _scope_id();
|
|
15274
|
-
_html(`<li${_attr_class([addedRow, "
|
|
15274
|
+
_html(`<li${_attr_class([addedRow, "_c5"])}>`);
|
|
15275
15275
|
_if(() => {
|
|
15276
15276
|
if (catalog) {
|
|
15277
15277
|
const $scope19_id = _scope_id();
|
|
@@ -15509,7 +15509,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15509
15509
|
setTimeout(() => loadProcs(void 0), 500);
|
|
15510
15510
|
}, "p11", $scope0_id);
|
|
15511
15511
|
const titleId = _id();
|
|
15512
|
-
_html(`<div${_attr_class("
|
|
15512
|
+
_html(`<div${_attr_class("_c9")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_c_")}><div${_attr_class("_da")}>`);
|
|
15513
15513
|
_set_serialize_reason(30);
|
|
15514
15514
|
const $childScope2 = _peek_scope_id();
|
|
15515
15515
|
page_head_default({
|
|
@@ -15617,7 +15617,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15617
15617
|
_resume_branch($scope6_id);
|
|
15618
15618
|
}, $scope0_id) })
|
|
15619
15619
|
});
|
|
15620
|
-
_html(`<div${_attr_class("
|
|
15620
|
+
_html(`<div${_attr_class("_db")}><section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Details</h2></div><div${_attr_class(list$2)}><div${_attr_class(flatCardRow)}><span${_attr_class("_gi")}>Name</span><span${_attr_class(["_gj", "_gk"])}>${_text_resume($scope0_id, "m", ws.name)}</span>`);
|
|
15621
15621
|
_if(() => {
|
|
15622
15622
|
if (ws.status !== "active") {
|
|
15623
15623
|
const $scope23_id = _scope_id();
|
|
@@ -15682,12 +15682,12 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15682
15682
|
_if(() => {
|
|
15683
15683
|
if (pendingAction && actionStep) {
|
|
15684
15684
|
const $scope10_id = _scope_id();
|
|
15685
|
-
_html(`<p${_attr_class("
|
|
15685
|
+
_html(`<p${_attr_class("_bT")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
15686
15686
|
writeScope($scope10_id, {});
|
|
15687
15687
|
return 0;
|
|
15688
15688
|
}
|
|
15689
15689
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
15690
|
-
_html(`<section${_attr_class("
|
|
15690
|
+
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Repos</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope0_id, "a4", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_gh"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
15691
15691
|
icon_plus_default({ size: 16 });
|
|
15692
15692
|
_html(`</button>${_el_resume($scope0_id, "a6")}`);
|
|
15693
15693
|
_set_serialize_reason(34);
|
|
@@ -15724,10 +15724,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15724
15724
|
size: 14,
|
|
15725
15725
|
class: catalogRefreshing && "_F"
|
|
15726
15726
|
});
|
|
15727
|
-
_html(`</button>${_el_resume($scope0_id, "aa")}</div><ul${_attr_class([list$2, "
|
|
15727
|
+
_html(`</button>${_el_resume($scope0_id, "aa")}</div><ul${_attr_class([list$2, "_cZ"])}>`);
|
|
15728
15728
|
_for_of(ws.repos, (row) => {
|
|
15729
15729
|
const $scope1_id = _scope_id();
|
|
15730
|
-
_html(`<li${_attr_class("
|
|
15730
|
+
_html(`<li${_attr_class("_c0")}><span${_attr_class(["_y", procCmd])}>${_text_resume($scope1_id, "c", row.worktree)}/</span><span${_attr_class("_c3")}><a${_attr_class("_K")}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_text_resume($scope1_id, "f", repoLabel$1(row.full_name))}</a>${_el_resume($scope1_id, "e")}`);
|
|
15731
15731
|
_if(() => {
|
|
15732
15732
|
if (row.base_branch !== row.default_branch) {
|
|
15733
15733
|
const $scope28_id = _scope_id();
|
|
@@ -15738,7 +15738,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15738
15738
|
return 0;
|
|
15739
15739
|
}
|
|
15740
15740
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
15741
|
-
_html(`</span><span${_attr_class("
|
|
15741
|
+
_html(`</span><span${_attr_class("_c4")}>`);
|
|
15742
15742
|
_if(() => {
|
|
15743
15743
|
if (busy.has(row.full_name)) {
|
|
15744
15744
|
const $scope29_id = _scope_id();
|
|
@@ -15750,7 +15750,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15750
15750
|
const $childScope5 = _peek_scope_id();
|
|
15751
15751
|
arm_button_default({
|
|
15752
15752
|
class: [
|
|
15753
|
-
"
|
|
15753
|
+
"_b4",
|
|
15754
15754
|
"_7",
|
|
15755
15755
|
"_8"
|
|
15756
15756
|
],
|
|
@@ -15781,16 +15781,16 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15781
15781
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
15782
15782
|
const $scope31_id = _scope_id();
|
|
15783
15783
|
_html(`<li${_attr_class([
|
|
15784
|
-
"
|
|
15785
|
-
"
|
|
15786
|
-
"
|
|
15787
|
-
])}><span${_attr_class("_G")}></span><span${_attr_class("
|
|
15784
|
+
"_c0",
|
|
15785
|
+
"_c1",
|
|
15786
|
+
"_bY"
|
|
15787
|
+
])}><span${_attr_class("_G")}></span><span${_attr_class("_b3")}>Adding ${_text_resume($scope31_id, "d", name, 2)}…</span></li>`);
|
|
15788
15788
|
writeScope($scope31_id, {});
|
|
15789
15789
|
}, (n) => n, $scope0_id, "ae", 1, 1, 1, 0, 1);
|
|
15790
15790
|
_if(() => {
|
|
15791
15791
|
if (!ws.repos.length && !busy.size) {
|
|
15792
15792
|
const $scope32_id = _scope_id();
|
|
15793
|
-
_html(`<li${_attr_class(["
|
|
15793
|
+
_html(`<li${_attr_class(["_c0", "_c1"])}><span${_attr_class("_b3")}>No repos yet. Add one to start.</span></li>`);
|
|
15794
15794
|
writeScope($scope32_id, {});
|
|
15795
15795
|
return 0;
|
|
15796
15796
|
}
|
|
@@ -15800,10 +15800,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15800
15800
|
_if(() => {
|
|
15801
15801
|
if (running.length) {
|
|
15802
15802
|
const $scope15_id = _scope_id();
|
|
15803
|
-
_html(`<section${_attr_class("
|
|
15803
|
+
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Running</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
15804
15804
|
_for_of(running, (p) => {
|
|
15805
15805
|
const $scope16_id = _scope_id();
|
|
15806
|
-
_html(`<li${_attr_class("
|
|
15806
|
+
_html(`<li${_attr_class("_c0")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", procCmd])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_c3"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_c4")}>`);
|
|
15807
15807
|
_for_of(p.ports, (port) => {
|
|
15808
15808
|
const $scope33_id = _scope_id();
|
|
15809
15809
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope33_id, "b", port, 2)}</button>${_el_resume($scope33_id, "a")}`);
|
|
@@ -15811,7 +15811,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15811
15811
|
writeScope($scope33_id, { d: port });
|
|
15812
15812
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
15813
15813
|
_html(`<span${_attr_class(["_y", "_f9"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
15814
|
-
"
|
|
15814
|
+
"_b4",
|
|
15815
15815
|
"_7",
|
|
15816
15816
|
"_gg"
|
|
15817
15817
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
@@ -15834,11 +15834,11 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15834
15834
|
s,
|
|
15835
15835
|
linked: false
|
|
15836
15836
|
}))].sort((a, b) => a.s.name.localeCompare(b.s.name));
|
|
15837
|
-
_html(`</div><div${_attr_class("
|
|
15837
|
+
_html(`</div><div${_attr_class("_db")}>`);
|
|
15838
15838
|
_if(() => {
|
|
15839
15839
|
if (allSkills.length) {
|
|
15840
15840
|
const $scope2_id = _scope_id();
|
|
15841
|
-
_html(`<section${_attr_class("
|
|
15841
|
+
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Skills</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope2_id, "e", wsSkills.length)}/${_text_resume($scope2_id, "f", allSkills.length, 2)}</span></div><ul${_attr_class([list$2, "_cZ"])}>`);
|
|
15842
15842
|
_for_of(allSkills, ({ s, linked }) => {
|
|
15843
15843
|
const $scope3_id = _scope_id();
|
|
15844
15844
|
const isBusy = skillBusy.has(s.id);
|
|
@@ -15855,7 +15855,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15855
15855
|
return 0;
|
|
15856
15856
|
}
|
|
15857
15857
|
}, $scope3_id, "e", 1, 1, 1, 0, 1);
|
|
15858
|
-
_html(`</span><span${_attr_class(skillDesc)}${_attr_or("title", s.description, "")}>${_text_resume($scope3_id, "g", s.description || "")}</span>${_el_resume($scope3_id, "f")}<span${_attr_class("
|
|
15858
|
+
_html(`</span><span${_attr_class(skillDesc)}${_attr_or("title", s.description, "")}>${_text_resume($scope3_id, "g", s.description || "")}</span>${_el_resume($scope3_id, "f")}<span${_attr_class("_c4")}>`);
|
|
15859
15859
|
_if(() => {
|
|
15860
15860
|
if (s.broken) {
|
|
15861
15861
|
const $scope35_id = _scope_id();
|
|
@@ -15903,7 +15903,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15903
15903
|
const $childScope6 = _peek_scope_id();
|
|
15904
15904
|
arm_button_default({
|
|
15905
15905
|
class: [
|
|
15906
|
-
"
|
|
15906
|
+
"_b4",
|
|
15907
15907
|
"_7",
|
|
15908
15908
|
"_8",
|
|
15909
15909
|
"_gf"
|
|
@@ -16016,10 +16016,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
16016
16016
|
});
|
|
16017
16017
|
_resume_branch($scope0_id);
|
|
16018
16018
|
});
|
|
16019
|
-
var curRow = "_fZ
|
|
16020
|
-
var archived = "_f4
|
|
16019
|
+
var curRow = "_fZ _c0";
|
|
16020
|
+
var archived = "_f4 _bU";
|
|
16021
16021
|
var archivedHint = "_f5 _W";
|
|
16022
|
-
var archivedRow = "_f6
|
|
16022
|
+
var archivedRow = "_f6 _cY _cW";
|
|
16023
16023
|
//#endregion
|
|
16024
16024
|
//#region src/tags/icons/icon-group.marko
|
|
16025
16025
|
var icon_group_default = _template("jb", (input) => {
|
|
@@ -16039,8 +16039,8 @@ var icon_group_default = _template("jb", (input) => {
|
|
|
16039
16039
|
});
|
|
16040
16040
|
//#endregion
|
|
16041
16041
|
//#region src/tags/join-dialog.css.ts
|
|
16042
|
-
var dlg = "
|
|
16043
|
-
var hint = "
|
|
16042
|
+
var dlg = "_hR _g1";
|
|
16043
|
+
var hint = "_hS _W";
|
|
16044
16044
|
//#endregion
|
|
16045
16045
|
//#region src/tags/join-dialog.marko
|
|
16046
16046
|
var api$3;
|
|
@@ -16172,23 +16172,23 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16172
16172
|
_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([
|
|
16173
16173
|
"_Y",
|
|
16174
16174
|
"_y",
|
|
16175
|
-
"
|
|
16175
|
+
"_hU"
|
|
16176
16176
|
])} placeholder="{ "name": …, "branch": …, "repos": ["owner/name", …] }" aria-label="Workspace invite" rows=6 autocomplete=off spellcheck=false${_attr("disabled", busy)} autofocus>${_attr_textarea_value($scope1_id, "c", invite, setInvite)}</textarea>${_el_resume($scope1_id, "c")}`);
|
|
16177
16177
|
_if(() => {
|
|
16178
16178
|
if (parsed.error) {
|
|
16179
16179
|
const $scope8_id = _scope_id();
|
|
16180
|
-
_html(`<p${_attr_class([hint, "
|
|
16180
|
+
_html(`<p${_attr_class([hint, "_hT"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16181
16181
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16182
16182
|
return 0;
|
|
16183
16183
|
} else if (parsed.ok) {
|
|
16184
16184
|
const $scope3_id = _scope_id();
|
|
16185
|
-
_html(`<ul${_attr_class("
|
|
16185
|
+
_html(`<ul${_attr_class("_hV")}>`);
|
|
16186
16186
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16187
16187
|
const $scope9_id = _scope_id();
|
|
16188
|
-
_html(`<li${_attr_class("
|
|
16188
|
+
_html(`<li${_attr_class("_hW")}><span${_attr_class("_hX")}>${_text_resume($scope9_id, "c", repoLabel$1(fullName))}</span></li>`);
|
|
16189
16189
|
writeScope($scope9_id, {});
|
|
16190
16190
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16191
|
-
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("
|
|
16191
|
+
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("_hY")}><span${_attr_class("_b8")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
16192
16192
|
name = _new_name;
|
|
16193
16193
|
}, "m1", $scope3_id))}${_attr_class("_Y")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16194
16194
|
_script($scope3_id, "m8");
|
|
@@ -16225,10 +16225,10 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16225
16225
|
_if(() => {
|
|
16226
16226
|
if (busy && steps$2.length) {
|
|
16227
16227
|
const $scope6_id = _scope_id();
|
|
16228
|
-
_html(`<ul${_attr_class("
|
|
16228
|
+
_html(`<ul${_attr_class("_hZ")}>`);
|
|
16229
16229
|
_for_of(steps$2, (step$2, i) => {
|
|
16230
16230
|
const $scope7_id = _scope_id();
|
|
16231
|
-
_html(`<li${_attr_class(["
|
|
16231
|
+
_html(`<li${_attr_class(["_h1", { ["_h0"]: i === steps$2.length - 1 }])}>`);
|
|
16232
16232
|
_if(() => {
|
|
16233
16233
|
if (i === steps$2.length - 1) {
|
|
16234
16234
|
const $scope10_id = _scope_id();
|
|
@@ -16237,7 +16237,7 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16237
16237
|
return 0;
|
|
16238
16238
|
} else {
|
|
16239
16239
|
const $scope11_id = _scope_id();
|
|
16240
|
-
_html(`<span${_attr_class("
|
|
16240
|
+
_html(`<span${_attr_class("_h2")}>`);
|
|
16241
16241
|
icon_check_default({ size: 14 });
|
|
16242
16242
|
_html("</span>");
|
|
16243
16243
|
writeScope($scope11_id, {});
|
|
@@ -16395,7 +16395,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16395
16395
|
}
|
|
16396
16396
|
}, "s6", $scope0_id);
|
|
16397
16397
|
const titleId = _id();
|
|
16398
|
-
_html(`<div${_attr_class("
|
|
16398
|
+
_html(`<div${_attr_class("_c9")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_c_")}><div${_attr_class("_da")}>`);
|
|
16399
16399
|
_set_serialize_reason({
|
|
16400
16400
|
0: _serialize_guard($scope0_reason, 2),
|
|
16401
16401
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -16419,7 +16419,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16419
16419
|
_resume_branch($scope2_id);
|
|
16420
16420
|
}, $scope0_id) })
|
|
16421
16421
|
});
|
|
16422
|
-
_html(`<div${_attr_class("
|
|
16422
|
+
_html(`<div${_attr_class("_db")}>`);
|
|
16423
16423
|
_if(() => {
|
|
16424
16424
|
if (error) {
|
|
16425
16425
|
const $scope7_id = _scope_id();
|
|
@@ -16440,9 +16440,9 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16440
16440
|
return 0;
|
|
16441
16441
|
}
|
|
16442
16442
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16443
|
-
_html(`<label${_attr_class("_fU")}><span${_attr_class("
|
|
16443
|
+
_html(`<label${_attr_class("_fU")}><span${_attr_class("_b8")}>Name</span><input${_attr_input_value($scope0_id, "i", name, _resume((_new_name) => {
|
|
16444
16444
|
name = _new_name;
|
|
16445
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("
|
|
16445
|
+
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("_bU")}><div${_attr_class("_fX")}><h2${_attr_class("_b8")}>Repos</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope0_id, "n", selected.length)}</span><div${_attr_class("_z")}></div><button type=button${_attr_class([iconBtnRow, "_fW"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}${_attr("disabled", busy)}>`);
|
|
16446
16446
|
icon_plus_default({ size: 16 });
|
|
16447
16447
|
_html(`</button>${_el_resume($scope0_id, "p")}`);
|
|
16448
16448
|
_set_serialize_reason(34);
|
|
@@ -16480,14 +16480,14 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16480
16480
|
_html(`</button>${_el_resume($scope0_id, "t")}</div><ul${_attr_class(list$2)}>`);
|
|
16481
16481
|
_for_of(selected, (repo) => {
|
|
16482
16482
|
const $scope3_id = _scope_id();
|
|
16483
|
-
_html(`<li${_attr_class("_fY")}><div${_attr_class(curRow)}><span${_attr_class("
|
|
16483
|
+
_html(`<li${_attr_class("_fY")}><div${_attr_class(curRow)}><span${_attr_class("_c2")}>${_text_resume($scope3_id, "d", repoLabel$1(repo.fullName))}</span><span${_attr_class("_c4")}>`);
|
|
16484
16484
|
_if(() => {
|
|
16485
16485
|
if (repo.fork !== void 0) {
|
|
16486
16486
|
const $scope4_id = _scope_id();
|
|
16487
16487
|
_html(`<button${_attr_class([
|
|
16488
16488
|
chip$1,
|
|
16489
|
-
"
|
|
16490
|
-
{ ["
|
|
16489
|
+
"_c8",
|
|
16490
|
+
{ ["_c6"]: repo.fork }
|
|
16491
16491
|
])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
|
|
16492
16492
|
_if(() => {
|
|
16493
16493
|
if (repo.fork) {
|
|
@@ -16511,7 +16511,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16511
16511
|
_html(`<button${_attr_class([
|
|
16512
16512
|
chip$1,
|
|
16513
16513
|
"_y",
|
|
16514
|
-
{ ["
|
|
16514
|
+
{ ["_c6"]: branchesFor === repo.fullName }
|
|
16515
16515
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
16516
16516
|
icon_branch_default({ size: 12 });
|
|
16517
16517
|
_html(`${_text_resume($scope3_id, "i", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope3_id, "g")}<button${_attr_class([iconBtnXs, "_7"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -16549,7 +16549,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16549
16549
|
_if(() => {
|
|
16550
16550
|
if (!selected.length) {
|
|
16551
16551
|
const $scope14_id = _scope_id();
|
|
16552
|
-
_html(`<li${_attr_class(["
|
|
16552
|
+
_html(`<li${_attr_class(["_c0", "_c5"])}>No repos yet. Add one above, or create it empty.</li>`);
|
|
16553
16553
|
writeScope($scope14_id, {});
|
|
16554
16554
|
return 0;
|
|
16555
16555
|
}
|
|
@@ -16588,14 +16588,14 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16588
16588
|
btnLg,
|
|
16589
16589
|
"_r",
|
|
16590
16590
|
"_fT"
|
|
16591
|
-
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "a1", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "a0")}</div></div><div${_attr_class("
|
|
16591
|
+
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "a1", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "a0")}</div></div><div${_attr_class("_db")}>`);
|
|
16592
16592
|
_if(() => {
|
|
16593
16593
|
if (archived$1.length) {
|
|
16594
16594
|
const $scope5_id = _scope_id();
|
|
16595
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_fX")}><h2${_attr_class("
|
|
16595
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fX")}><h2${_attr_class("_b8")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope5_id, "e", archived$1.length, $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class(list$2)}>`);
|
|
16596
16596
|
_for_of(archived$1, (ws) => {
|
|
16597
16597
|
const $scope6_id = _scope_id();
|
|
16598
|
-
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("
|
|
16598
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_b0")}><span${_attr_class("_b1")}>${_text_resume($scope6_id, "d", ws.name, $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_y"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope6_id, "f", ws.display_path || ws.path, $sg__input_workspaces)}</span>${_el_resume($scope6_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnSm)}${_attr("disabled", busy || !!restoring)}>`);
|
|
16599
16599
|
_if(() => {
|
|
16600
16600
|
if (restoring === ws.id) {
|
|
16601
16601
|
const $scope17_id = _scope_id();
|
|
@@ -16712,19 +16712,19 @@ var term_find_default = _template("H", (input) => {
|
|
|
16712
16712
|
const canStep = hasQuery && open;
|
|
16713
16713
|
const keybar = input.placement === "keybar";
|
|
16714
16714
|
_html(`<div${_attr_class([
|
|
16715
|
-
"
|
|
16716
|
-
keybar ? "
|
|
16717
|
-
!open && "
|
|
16718
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
16715
|
+
"_eu",
|
|
16716
|
+
keybar ? "_ew" : "_ev",
|
|
16717
|
+
!open && "_ey"
|
|
16718
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eo", keybar ? "_ex" : "_er"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
16719
16719
|
if (!open) return;
|
|
16720
16720
|
query = v;
|
|
16721
16721
|
live.query = v;
|
|
16722
16722
|
run(0);
|
|
16723
|
-
}, "H1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
16723
|
+
}, "H1", $scope0_id))}${_attr_class([findInput, keybar && "_ez"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_eA"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
16724
16724
|
icon_arrow_up_default({ size: 14 });
|
|
16725
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
16725
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_eA"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
16726
16726
|
icon_arrow_down_default({ size: 14 });
|
|
16727
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
16727
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_eA"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
16728
16728
|
icon_xmark_default({ size: 14 });
|
|
16729
16729
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
16730
16730
|
const $return = focusInput;
|
|
@@ -16875,7 +16875,7 @@ var term_default = _template("I", (input) => {
|
|
|
16875
16875
|
}
|
|
16876
16876
|
}, "I9", $scope0_id);
|
|
16877
16877
|
input.keys;
|
|
16878
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
16878
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eC")}><div${_attr_class("_eD")}></div>${_el_resume($scope0_id, "b")}`);
|
|
16879
16879
|
_if(() => {
|
|
16880
16880
|
if (findOpen) {
|
|
16881
16881
|
const $scope4_id = _scope_id();
|
|
@@ -16902,7 +16902,7 @@ var term_default = _template("I", (input) => {
|
|
|
16902
16902
|
_if(() => {
|
|
16903
16903
|
if (uploading) {
|
|
16904
16904
|
const $scope5_id = _scope_id();
|
|
16905
|
-
_html(`<div${_attr_class("
|
|
16905
|
+
_html(`<div${_attr_class("_eJ")}>uploading…</div>`);
|
|
16906
16906
|
writeScope($scope5_id, {});
|
|
16907
16907
|
return 0;
|
|
16908
16908
|
}
|
|
@@ -16910,7 +16910,7 @@ var term_default = _template("I", (input) => {
|
|
|
16910
16910
|
_if(() => {
|
|
16911
16911
|
if (copiedFlash) {
|
|
16912
16912
|
const $scope6_id = _scope_id();
|
|
16913
|
-
_html(`<div${_attr_class("
|
|
16913
|
+
_html(`<div${_attr_class("_eI")}>Copied</div>`);
|
|
16914
16914
|
writeScope($scope6_id, {});
|
|
16915
16915
|
return 0;
|
|
16916
16916
|
}
|
|
@@ -16919,7 +16919,7 @@ var term_default = _template("I", (input) => {
|
|
|
16919
16919
|
_if(() => {
|
|
16920
16920
|
if (trapOpen) {
|
|
16921
16921
|
const $scope3_id = _scope_id();
|
|
16922
|
-
_html(`<div${_attr_class("
|
|
16922
|
+
_html(`<div${_attr_class("_eK")}><div${_attr_class("_eL")}><p${_attr_class("_eM")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope3_id, "d")}<button${_attr_class("_q")}>Cancel</button>${_el_resume($scope3_id, "e")}</div>${_el_resume($scope3_id, "b")}</div>${_el_resume($scope3_id, "a")}`);
|
|
16923
16923
|
_script($scope3_id, "I16");
|
|
16924
16924
|
_script($scope3_id, "I17");
|
|
16925
16925
|
writeScope($scope3_id, {});
|
|
@@ -17181,7 +17181,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17181
17181
|
toggleDiff();
|
|
17182
17182
|
}
|
|
17183
17183
|
}, "N14", $scope0_id);
|
|
17184
|
-
_html(`<div${_attr_class(["
|
|
17184
|
+
_html(`<div${_attr_class(["_bO", { ["_bN"]: !input.active }])}><div${_attr_class("_bP")}>`);
|
|
17185
17185
|
_if(() => {
|
|
17186
17186
|
if (error) {
|
|
17187
17187
|
const $scope8_id = _scope_id();
|
|
@@ -17204,7 +17204,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17204
17204
|
_if(() => {
|
|
17205
17205
|
if (diffMounted && ws) {
|
|
17206
17206
|
const $scope1_id = _scope_id();
|
|
17207
|
-
_html(`<div${_attr_class("
|
|
17207
|
+
_html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
17208
17208
|
_set_serialize_reason({
|
|
17209
17209
|
0: $sg__input_workspace,
|
|
17210
17210
|
1: $sg__input_workspace,
|
|
@@ -17266,7 +17266,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17266
17266
|
_if(() => {
|
|
17267
17267
|
if (manageMounted && ws) {
|
|
17268
17268
|
const $scope2_id = _scope_id();
|
|
17269
|
-
_html(`<div${_attr_class("
|
|
17269
|
+
_html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
17270
17270
|
_set_serialize_reason({
|
|
17271
17271
|
0: $sg__input_workspace,
|
|
17272
17272
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -17292,7 +17292,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17292
17292
|
_if(() => {
|
|
17293
17293
|
if (settingsMounted) {
|
|
17294
17294
|
const $scope3_id = _scope_id();
|
|
17295
|
-
_html(`<div${_attr_class("
|
|
17295
|
+
_html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
17296
17296
|
_set_serialize_reason({
|
|
17297
17297
|
0: _serialize_guard($scope0_reason, 0),
|
|
17298
17298
|
1: $sg__input_workspace,
|
|
@@ -17334,7 +17334,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17334
17334
|
_if(() => {
|
|
17335
17335
|
if (newMounted) {
|
|
17336
17336
|
const $scope4_id = _scope_id();
|
|
17337
|
-
_html(`<div${_attr_class("
|
|
17337
|
+
_html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
17338
17338
|
_set_serialize_reason({
|
|
17339
17339
|
0: 1,
|
|
17340
17340
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -17359,13 +17359,13 @@ var work_view_default = _template("N", (input) => {
|
|
|
17359
17359
|
return 0;
|
|
17360
17360
|
}
|
|
17361
17361
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
17362
|
-
_html(`<div${_attr_class("
|
|
17362
|
+
_html(`<div${_attr_class("_bR")}${_attr("inert", view !== "term")}>`);
|
|
17363
17363
|
_if(() => {
|
|
17364
17364
|
if (ws && shownSessions) {
|
|
17365
17365
|
const $scope5_id = _scope_id();
|
|
17366
17366
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
17367
17367
|
const $scope6_id = _scope_id();
|
|
17368
|
-
_html(`<div${_attr_class("
|
|
17368
|
+
_html(`<div${_attr_class("_bS")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
17369
17369
|
_set_serialize_reason(2);
|
|
17370
17370
|
const $childScope5 = _peek_scope_id();
|
|
17371
17371
|
term_default({
|
|
@@ -17391,7 +17391,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17391
17391
|
_if(() => {
|
|
17392
17392
|
if (!shownSessions.length && view === "term") {
|
|
17393
17393
|
const $scope7_id = _scope_id();
|
|
17394
|
-
_html(`<div${_attr_class("
|
|
17394
|
+
_html(`<div${_attr_class("_b6")}><span>No sessions in this workspace.</span><button${_attr_class(["_q", "_r"])}${_attr("disabled", spawning)}>${_text_resume($scope7_id, "c", spawning ? "Starting…" : `Start ${input.preferred || "shell"}`)}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
17395
17395
|
_script($scope7_id, "N39");
|
|
17396
17396
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
17397
17397
|
return 0;
|
|
@@ -17401,7 +17401,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17401
17401
|
return 0;
|
|
17402
17402
|
} else if (ws) {
|
|
17403
17403
|
const $scope10_id = _scope_id();
|
|
17404
|
-
_html(`<p${_attr_class("
|
|
17404
|
+
_html(`<p${_attr_class("_b6")}>Loading sessions…</p>`);
|
|
17405
17405
|
writeScope($scope10_id, {});
|
|
17406
17406
|
return 1;
|
|
17407
17407
|
}
|
|
@@ -17504,7 +17504,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17504
17504
|
});
|
|
17505
17505
|
//#endregion
|
|
17506
17506
|
//#region src/tags/key-bar.css.ts
|
|
17507
|
-
var kbtn = "
|
|
17507
|
+
var kbtn = "_bG _5 _l";
|
|
17508
17508
|
_template("yb", (input) => {
|
|
17509
17509
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
17510
17510
|
const $scope0_id = _scope_id();
|
|
@@ -17520,8 +17520,8 @@ _template("yb", (input) => {
|
|
|
17520
17520
|
});
|
|
17521
17521
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
17522
17522
|
});
|
|
17523
|
-
var sessOpen = "
|
|
17524
|
-
var sessRename = "
|
|
17523
|
+
var sessOpen = "_e1 _I";
|
|
17524
|
+
var sessRename = "_e5 _J";
|
|
17525
17525
|
//#endregion
|
|
17526
17526
|
//#region src/tags/usage-pcts.marko
|
|
17527
17527
|
var usage_pcts_default = _template("M", (input) => {
|
|
@@ -17533,22 +17533,22 @@ var usage_pcts_default = _template("M", (input) => {
|
|
|
17533
17533
|
if (windows.length) {
|
|
17534
17534
|
const $scope1_id = _scope_id();
|
|
17535
17535
|
_html(`<span${_attr_class([
|
|
17536
|
-
"
|
|
17536
|
+
"_g6",
|
|
17537
17537
|
input.class,
|
|
17538
|
-
{ ["
|
|
17538
|
+
{ ["_g7"]: agent.stale_seconds != null }
|
|
17539
17539
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
17540
17540
|
_for_of(windows, (win$1, i) => {
|
|
17541
17541
|
const $scope2_id = _scope_id();
|
|
17542
|
-
_html(`<span${_attr_class("
|
|
17542
|
+
_html(`<span${_attr_class("_g8")}>`);
|
|
17543
17543
|
_if(() => {
|
|
17544
17544
|
if (i) {
|
|
17545
17545
|
const $scope3_id = _scope_id();
|
|
17546
|
-
_html(`<span${_attr_class("
|
|
17546
|
+
_html(`<span${_attr_class("_ha")} aria-hidden=true>·</span>`);
|
|
17547
17547
|
$si__input_agent && writeScope($scope3_id, {});
|
|
17548
17548
|
return 0;
|
|
17549
17549
|
}
|
|
17550
17550
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
17551
|
-
_html(`<span${_attr_class("
|
|
17551
|
+
_html(`<span${_attr_class("_g9")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_g_", win$1.used_percent >= 90 ? "_hB" : win$1.used_percent >= 70 ? "_hA" : win$1.used_percent >= 40 ? "_hz" : "_hy"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
17552
17552
|
$si__input_agent && writeScope($scope2_id, {});
|
|
17553
17553
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
17554
17554
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -17590,7 +17590,7 @@ _template("n", (input) => {
|
|
|
17590
17590
|
align: "center",
|
|
17591
17591
|
gap: 8
|
|
17592
17592
|
}), "n2", $scope0_id);
|
|
17593
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17593
|
+
_html(`<button${_attr_class([kbtn, "_eX"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
17594
17594
|
_set_serialize_reason({
|
|
17595
17595
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
17596
17596
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -17604,11 +17604,11 @@ _template("n", (input) => {
|
|
|
17604
17604
|
"_A",
|
|
17605
17605
|
"_bb",
|
|
17606
17606
|
phase[sessionPhase(current$2?.state)]
|
|
17607
|
-
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["_9", "
|
|
17607
|
+
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["_9", "_eY"])}>`);
|
|
17608
17608
|
_for_of(input.sessions, (s) => {
|
|
17609
17609
|
const $scope1_id = _scope_id();
|
|
17610
17610
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17611
|
-
_html(`<div${_attr_class(["
|
|
17611
|
+
_html(`<div${_attr_class(["_e0", { ["_eZ"]: s.id === input.sessionId }])}>`);
|
|
17612
17612
|
_if(() => {
|
|
17613
17613
|
if (renamingId === s.id) {
|
|
17614
17614
|
const $scope5_id = _scope_id();
|
|
@@ -17640,7 +17640,7 @@ _template("n", (input) => {
|
|
|
17640
17640
|
agent: activeAgent(s),
|
|
17641
17641
|
size: 14
|
|
17642
17642
|
});
|
|
17643
|
-
_html(`<span${_attr_class("
|
|
17643
|
+
_html(`<span${_attr_class("_e2")}><span${_attr_class("_e4")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17644
17644
|
_if(() => {
|
|
17645
17645
|
if (s.id === input.sessionId) {
|
|
17646
17646
|
const $scope7_id = _scope_id();
|
|
@@ -17652,7 +17652,7 @@ _template("n", (input) => {
|
|
|
17652
17652
|
const $childScope4 = _peek_scope_id();
|
|
17653
17653
|
usage_pcts_default({
|
|
17654
17654
|
agent: plan,
|
|
17655
|
-
class: "
|
|
17655
|
+
class: "_e3"
|
|
17656
17656
|
});
|
|
17657
17657
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
17658
17658
|
return 0;
|
|
@@ -17669,7 +17669,7 @@ _template("n", (input) => {
|
|
|
17669
17669
|
_if(() => {
|
|
17670
17670
|
if (input.onRenameSession) {
|
|
17671
17671
|
const $scope6_id = _scope_id();
|
|
17672
|
-
_html(`<button${_attr_class(["
|
|
17672
|
+
_html(`<button${_attr_class(["_e6", "_e7"])} title="Rename session">`);
|
|
17673
17673
|
icon_edit_default({ size: 12 });
|
|
17674
17674
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
17675
17675
|
_script($scope6_id, "n5");
|
|
@@ -17681,7 +17681,7 @@ _template("n", (input) => {
|
|
|
17681
17681
|
if (input.onCloseSession) {
|
|
17682
17682
|
const $scope3_id = _scope_id();
|
|
17683
17683
|
arm_button_default({
|
|
17684
|
-
class: ["
|
|
17684
|
+
class: ["_e6", "_7"],
|
|
17685
17685
|
title: "Close session",
|
|
17686
17686
|
armedTitle: "Close?",
|
|
17687
17687
|
onFire: _resume(function() {
|
|
@@ -17713,7 +17713,7 @@ _template("n", (input) => {
|
|
|
17713
17713
|
m: $si__input_sessions && $for_content__s_agent__closures
|
|
17714
17714
|
});
|
|
17715
17715
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
17716
|
-
_html(`<div${_attr_class("
|
|
17716
|
+
_html(`<div${_attr_class("_e8")}><span${_attr_class("_e9")}>New session</span><div${_attr_class("_e_")}>`);
|
|
17717
17717
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
17718
17718
|
const $scope4_id = _scope_id();
|
|
17719
17719
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -26882,4 +26882,4 @@ server.listen(port, () => {
|
|
|
26882
26882
|
//#endregion
|
|
26883
26883
|
export {};
|
|
26884
26884
|
|
|
26885
|
-
;var __MARKO_MANIFEST__={"
|
|
26885
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-B9_qBRD4.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-B9_qBRD4.css\"",">",2,"stylesheet#/assets/app-page-BYLkOROF.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BYLkOROF.css\"",">"],"defer":[2,"/assets/new-l1nwmujI.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-l1nwmujI.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_BZpsc9I_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BZpsc9I_.js\"",">",2,"modulepreload#/assets/_BoN0MUA6.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BoN0MUA6.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-B9_qBRD4.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-B9_qBRD4.css\"",">",2,"stylesheet#/assets/app-page-BYLkOROF.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BYLkOROF.css\"",">"],"defer":[2,"/assets/w._-l1nwmujI.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-l1nwmujI.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_BZpsc9I_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BZpsc9I_.js\"",">",2,"modulepreload#/assets/_BoN0MUA6.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BoN0MUA6.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-B9_qBRD4.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-B9_qBRD4.css\"",">",2,"stylesheet#/assets/app-page-BYLkOROF.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BYLkOROF.css\"",">"],"defer":[2,"/assets/w-l1nwmujI.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-l1nwmujI.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_BZpsc9I_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BZpsc9I_.js\"",">",2,"modulepreload#/assets/_BoN0MUA6.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BoN0MUA6.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-B9_qBRD4.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-B9_qBRD4.css\"",">",2,"stylesheet#/assets/app-page-BYLkOROF.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BYLkOROF.css\"",">"],"defer":[2,"/assets/settings-l1nwmujI.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-l1nwmujI.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_BZpsc9I_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BZpsc9I_.js\"",">",2,"modulepreload#/assets/_BoN0MUA6.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BoN0MUA6.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-B9_qBRD4.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-B9_qBRD4.css\"",">",2,"stylesheet#/assets/app-page-BYLkOROF.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BYLkOROF.css\"",">"],"defer":[2,"/assets/w._-BpQmbwMk.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BpQmbwMk.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_BZpsc9I_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BZpsc9I_.js\"",">",2,"modulepreload#/assets/_BoN0MUA6.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BoN0MUA6.js\"",">"]},"_A":{"block":[2,"stylesheet#/assets/review-view-C25qv8iD.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/review-view-C25qv8iD.css\"",">",2,"stylesheet#/assets/icon-arrow-down-B9_qBRD4.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-B9_qBRD4.css\"",">"],"defer":[2,"/assets/review-view-BwsOWNsd.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/review-view-BwsOWNsd.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">"]}};
|