@dylanpiercey/work 0.0.162 → 0.0.163
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 +426 -416
- package/dist/public/assets/_ADBv0JHa.js +1 -0
- package/dist/public/assets/{_B3gSz3ke.js → _B9aynZpd.js} +106 -106
- package/dist/public/assets/_B9aynZpd.js.br +0 -0
- package/dist/public/assets/_BD5g78lR.js +1 -0
- package/dist/public/assets/_BLp3ocpo.js +1 -0
- package/dist/public/assets/_By8Q0kjO.js +1 -0
- package/dist/public/assets/_C0IUHC2J.js +1 -0
- package/dist/public/assets/_C1uHTxE9.js +1 -0
- package/dist/public/assets/_C2EvCPWi.js +1 -0
- package/dist/public/assets/{_D3rnDRIv.js → _C7fpvxku.js} +1 -1
- package/dist/public/assets/_C7fpvxku.js.br +0 -0
- package/dist/public/assets/_CHlzsEhp.js +1 -0
- package/dist/public/assets/_CJ7IP1Av.js +1 -0
- package/dist/public/assets/_CZFZcbX6.js +1 -0
- package/dist/public/assets/_Clds-jNF.js +1 -0
- package/dist/public/assets/_CmPjzYBq.js +1 -0
- package/dist/public/assets/_Cn4yj8mF.js +1 -0
- package/dist/public/assets/_CnY7WKoH.js +1 -0
- package/dist/public/assets/_CsbAROu4.js +1 -0
- package/dist/public/assets/_CwLvxT1I.js +1 -0
- package/dist/public/assets/_D1nQRxbq.js +1 -0
- package/dist/public/assets/{_DL2Do1rA.js → _DO-1wrdg.js} +8 -8
- package/dist/public/assets/_DO-1wrdg.js.br +0 -0
- package/dist/public/assets/_DqZ5bGsL.js +1 -0
- package/dist/public/assets/_KBJPVXi5.js +1 -0
- package/dist/public/assets/_Z_b2LTfZ.js +1 -0
- package/dist/public/assets/_oBeKiYJw.js +1 -0
- package/dist/public/assets/app-page-Dl6GaaKR.css +1 -0
- package/dist/public/assets/app-page-Dl6GaaKR.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-BG7XlCPT.css +1 -0
- package/dist/public/assets/icon-arrow-down-BG7XlCPT.css.br +0 -0
- package/dist/public/assets/new-DqdzV-MH.js +1 -0
- package/dist/public/assets/review-view-Buxhdl15.css +1 -0
- package/dist/public/assets/review-view-Buxhdl15.css.br +0 -0
- package/dist/public/assets/review-view-o3qf1i3k.js +2 -0
- package/dist/public/assets/settings-DqdzV-MH.js +1 -0
- package/dist/public/assets/w-DqdzV-MH.js +1 -0
- package/dist/public/assets/w._-DWpX54fh.js +1 -0
- package/dist/public/assets/w._-DqdzV-MH.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_B3gSz3ke.js.br +0 -0
- package/dist/public/assets/_B67KCuSp.js +0 -1
- package/dist/public/assets/_BD_SUgMs.js +0 -1
- package/dist/public/assets/_BFOMXAe_.js +0 -1
- package/dist/public/assets/_BHZgDosz.js +0 -1
- package/dist/public/assets/_BLWhy5_L.js +0 -1
- package/dist/public/assets/_BUKisRQy.js +0 -1
- package/dist/public/assets/_BvmCRM73.js +0 -1
- package/dist/public/assets/_ByJ0l3Ki.js +0 -1
- package/dist/public/assets/_CFUbxGJz.js +0 -1
- package/dist/public/assets/_CU55I6bP.js +0 -1
- package/dist/public/assets/_Cccfw4J7.js +0 -1
- package/dist/public/assets/_CfKMpugL.js +0 -1
- package/dist/public/assets/_CqHU2zXz.js +0 -1
- package/dist/public/assets/_CyIDJLEQ.js +0 -1
- package/dist/public/assets/_CyTB-zvq.js +0 -1
- package/dist/public/assets/_D0zoJeVP.js +0 -1
- package/dist/public/assets/_D3rnDRIv.js.br +0 -0
- package/dist/public/assets/_DL2Do1rA.js.br +0 -0
- package/dist/public/assets/_DWMLCD9Y.js +0 -1
- package/dist/public/assets/_DcDLWNwh.js +0 -1
- package/dist/public/assets/_DlHXl5mY.js +0 -1
- package/dist/public/assets/_fCCm5Yhk.js +0 -1
- package/dist/public/assets/_wakj4FEZ.js +0 -1
- package/dist/public/assets/app-page-BbBGFieh.css +0 -1
- package/dist/public/assets/app-page-BbBGFieh.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-BzUfPnGo.css +0 -1
- package/dist/public/assets/icon-arrow-down-BzUfPnGo.css.br +0 -0
- package/dist/public/assets/new-LK2NkRbP.js +0 -1
- package/dist/public/assets/review-view--XosOwhX.css +0 -1
- package/dist/public/assets/review-view--XosOwhX.css.br +0 -0
- package/dist/public/assets/review-view-CqwNr3QK.js +0 -2
- package/dist/public/assets/settings-LK2NkRbP.js +0 -1
- package/dist/public/assets/w-LK2NkRbP.js +0 -1
- package/dist/public/assets/w._-CvYgsk8p.js +0 -1
- package/dist/public/assets/w._-LK2NkRbP.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -7286,19 +7286,19 @@ function applyInstance(inst) {
|
|
|
7286
7286
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7287
7287
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7288
7288
|
}
|
|
7289
|
-
var agentList = "
|
|
7290
|
-
var agentRow = "
|
|
7291
|
-
var toolGrid = "
|
|
7292
|
-
var toolRow = "
|
|
7293
|
-
var themeSeg = "
|
|
7294
|
-
var checkList = "
|
|
7295
|
-
var list$2 = "
|
|
7296
|
-
var flatCardRow = "
|
|
7297
|
-
var pop$1 = "
|
|
7298
|
-
var spinner = "
|
|
7299
|
-
var busy = "
|
|
7300
|
-
var pop = "
|
|
7301
|
-
var sectionCount = "
|
|
7289
|
+
var agentList = "_c0 _cf _cN _cY";
|
|
7290
|
+
var agentRow = "_c4 _cO";
|
|
7291
|
+
var toolGrid = "_db _cY";
|
|
7292
|
+
var toolRow = "_dc _cZ";
|
|
7293
|
+
var themeSeg = "_dA _be";
|
|
7294
|
+
var checkList = "_d6 _cd";
|
|
7295
|
+
var list$2 = "_c0 _cf _cN _cY";
|
|
7296
|
+
var flatCardRow = "_c1 _cZ";
|
|
7297
|
+
var pop$1 = "_cC __";
|
|
7298
|
+
var spinner = "_cF _2 _G";
|
|
7299
|
+
var busy = "_cJ _cI";
|
|
7300
|
+
var pop = "_cL __";
|
|
7301
|
+
var sectionCount$1 = "_cc _N _O";
|
|
7302
7302
|
var iconBtn$1 = "_5 _l";
|
|
7303
7303
|
//#endregion
|
|
7304
7304
|
//#region src/tags/icons/icon-refresh.marko
|
|
@@ -7343,14 +7343,14 @@ var page_head_default = _template("q", (input) => {
|
|
|
7343
7343
|
_if(() => {
|
|
7344
7344
|
if (input.backHref) {
|
|
7345
7345
|
const $scope1_id = _scope_id();
|
|
7346
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7346
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_g0"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7347
7347
|
icon_back_default({ size: 14 });
|
|
7348
7348
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7349
7349
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7350
7350
|
return 0;
|
|
7351
7351
|
} else if (input.onBack) {
|
|
7352
7352
|
const $scope2_id = _scope_id();
|
|
7353
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7353
|
+
_html(`<button${_attr_class([iconBtnRow, "_g0"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7354
7354
|
icon_back_default({ size: 14 });
|
|
7355
7355
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7356
7356
|
_script($scope2_id, "q0");
|
|
@@ -7441,7 +7441,7 @@ var icon_agent_default = _template("J", (input) => {
|
|
|
7441
7441
|
n: $badge__closures
|
|
7442
7442
|
});
|
|
7443
7443
|
});
|
|
7444
|
-
var usageNote = "
|
|
7444
|
+
var usageNote = "_ho _X";
|
|
7445
7445
|
//#endregion
|
|
7446
7446
|
//#region src/tags/icons/icon-warning.marko
|
|
7447
7447
|
var icon_warning_default = _template("qb", (input) => {
|
|
@@ -7471,11 +7471,11 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
7471
7471
|
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);
|
|
7472
7472
|
const $scope0_id = _scope_id();
|
|
7473
7473
|
const agent = input.agent;
|
|
7474
|
-
_html(`<div${_attr_class(["
|
|
7474
|
+
_html(`<div${_attr_class(["_hi", { ["_hj"]: input.hideName }])}><div${_attr_class("_hk")}>`);
|
|
7475
7475
|
_if(() => {
|
|
7476
7476
|
if (!input.hideName) {
|
|
7477
7477
|
const $scope1_id = _scope_id();
|
|
7478
|
-
_html(`<strong${_attr_class("
|
|
7478
|
+
_html(`<strong${_attr_class("_hD")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7479
7479
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7480
7480
|
return 0;
|
|
7481
7481
|
}
|
|
@@ -7483,7 +7483,7 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
7483
7483
|
_if(() => {
|
|
7484
7484
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7485
7485
|
const $scope2_id = _scope_id();
|
|
7486
|
-
_html(`<span${_attr_class("
|
|
7486
|
+
_html(`<span${_attr_class("_hl")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7487
7487
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7488
7488
|
return 0;
|
|
7489
7489
|
}
|
|
@@ -7491,21 +7491,21 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
7491
7491
|
_if(() => {
|
|
7492
7492
|
if (agent.stale_seconds != null) {
|
|
7493
7493
|
const $scope3_id = _scope_id();
|
|
7494
|
-
_html(`<span${_attr_class("
|
|
7494
|
+
_html(`<span${_attr_class("_hm")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7495
7495
|
icon_warning_default({ size: 12 });
|
|
7496
7496
|
_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)}`);
|
|
7497
7497
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7498
7498
|
return 0;
|
|
7499
7499
|
}
|
|
7500
7500
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7501
|
-
_html(`</div><div${_attr_class(["
|
|
7501
|
+
_html(`</div><div${_attr_class(["_hn", { ["_hE"]: agent.stale_seconds != null }])}>`);
|
|
7502
7502
|
_for_of(agent.windows || [], (win) => {
|
|
7503
7503
|
const $scope4_id = _scope_id();
|
|
7504
7504
|
const pct = pctText(win.used_percent);
|
|
7505
7505
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7506
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7507
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7508
|
-
_html(`<div${_attr_class("
|
|
7506
|
+
const fillClass = win.used_percent >= 90 ? "_hw" : win.used_percent >= 70 ? "_hv" : win.used_percent >= 40 ? "_hu" : "_ht";
|
|
7507
|
+
const pctClass = win.used_percent >= 90 ? "_hB" : win.used_percent >= 70 ? "_hA" : win.used_percent >= 40 ? "_hz" : "_hy";
|
|
7508
|
+
_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")}>`);
|
|
7509
7509
|
_if(() => {
|
|
7510
7510
|
if (label) {
|
|
7511
7511
|
const $scope6_id = _scope_id();
|
|
@@ -7622,14 +7622,14 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
7622
7622
|
localCode = null;
|
|
7623
7623
|
}
|
|
7624
7624
|
}, "B0", $scope0_id);
|
|
7625
|
-
_html(`<div${_attr_class(["
|
|
7625
|
+
_html(`<div${_attr_class(["_g7", input.class])}>`);
|
|
7626
7626
|
_for_of(input.items, (s) => {
|
|
7627
7627
|
const $scope1_id = _scope_id();
|
|
7628
|
-
_html(`<div${_attr_class("
|
|
7628
|
+
_html(`<div${_attr_class("_g8")}><span${_attr_class("_g_")}><span${_attr_class("_ha")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_hb", "_hc"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7629
7629
|
_if(() => {
|
|
7630
7630
|
if (!busy) {
|
|
7631
7631
|
const $scope2_id = _scope_id();
|
|
7632
|
-
_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, "
|
|
7632
|
+
_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, "_hd"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7633
7633
|
_script($scope2_id, "B1");
|
|
7634
7634
|
writeScope($scope2_id, {});
|
|
7635
7635
|
return 0;
|
|
@@ -7644,13 +7644,13 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
7644
7644
|
_if(() => {
|
|
7645
7645
|
if (localBusy && localCode) {
|
|
7646
7646
|
const $scope4_id = _scope_id();
|
|
7647
|
-
_html(`<div${_attr_class(["
|
|
7647
|
+
_html(`<div${_attr_class(["_g8", "_he"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_hf")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_hg")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7648
7648
|
_script($scope4_id, "B2");
|
|
7649
7649
|
writeScope($scope4_id, {});
|
|
7650
7650
|
return 0;
|
|
7651
7651
|
} else if (localBusy) {
|
|
7652
7652
|
const $scope6_id = _scope_id();
|
|
7653
|
-
_html(`<div${_attr_class(["
|
|
7653
|
+
_html(`<div${_attr_class(["_g8", "_he"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7654
7654
|
writeScope($scope6_id, {});
|
|
7655
7655
|
return 1;
|
|
7656
7656
|
}
|
|
@@ -7658,14 +7658,14 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
7658
7658
|
_if(() => {
|
|
7659
7659
|
if (localError) {
|
|
7660
7660
|
const $scope5_id = _scope_id();
|
|
7661
|
-
_html(`<p${_attr_class(["
|
|
7661
|
+
_html(`<p${_attr_class(["_g8", "_hh"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7662
7662
|
writeScope($scope5_id, {});
|
|
7663
7663
|
return 0;
|
|
7664
7664
|
}
|
|
7665
7665
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7666
7666
|
_for_of(skipped, (s) => {
|
|
7667
7667
|
const $scope3_id = _scope_id();
|
|
7668
|
-
_html(`<div${_attr_class(["
|
|
7668
|
+
_html(`<div${_attr_class(["_g8", "_g9"])}><span${_attr_class("_g_")}><span${_attr_class("_ha")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_hb")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_hd"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7669
7669
|
_script($scope3_id, "B3");
|
|
7670
7670
|
writeScope($scope3_id, {
|
|
7671
7671
|
i: s?.org,
|
|
@@ -7733,7 +7733,7 @@ var skill_chip_default = _template("A", (input) => {
|
|
|
7733
7733
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7734
7734
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7735
7735
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7736
|
-
_html(`<li${_attr_class("
|
|
7736
|
+
_html(`<li${_attr_class("_cH")}>`);
|
|
7737
7737
|
_if(() => {
|
|
7738
7738
|
if (input.busy != null) {
|
|
7739
7739
|
const $scope1_id = _scope_id();
|
|
@@ -7743,20 +7743,20 @@ var skill_chip_default = _template("A", (input) => {
|
|
|
7743
7743
|
} else {
|
|
7744
7744
|
const $scope2_id = _scope_id();
|
|
7745
7745
|
const popId = _id();
|
|
7746
|
-
_html(`<button${_attr_class("
|
|
7746
|
+
_html(`<button${_attr_class("_cI")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7747
7747
|
_if(() => {
|
|
7748
7748
|
if (input.hint) {
|
|
7749
7749
|
const $scope3_id = _scope_id();
|
|
7750
|
-
_html(`<span${_attr_class("
|
|
7750
|
+
_html(`<span${_attr_class("_cK")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7751
7751
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7752
7752
|
return 0;
|
|
7753
7753
|
}
|
|
7754
7754
|
}, $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);
|
|
7755
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7755
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_ch", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7756
7756
|
_if(() => {
|
|
7757
7757
|
if (input.description) {
|
|
7758
7758
|
const $scope4_id = _scope_id();
|
|
7759
|
-
_html(`<span${_attr_class("
|
|
7759
|
+
_html(`<span${_attr_class("_cj")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7760
7760
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7761
7761
|
return 0;
|
|
7762
7762
|
}
|
|
@@ -7764,12 +7764,12 @@ var skill_chip_default = _template("A", (input) => {
|
|
|
7764
7764
|
_if(() => {
|
|
7765
7765
|
if (input.sourceUrl) {
|
|
7766
7766
|
const $scope5_id = _scope_id();
|
|
7767
|
-
_html(`<a${_attr_class(["
|
|
7767
|
+
_html(`<a${_attr_class(["_cj", "_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))}`);
|
|
7768
7768
|
$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) })));
|
|
7769
7769
|
return 0;
|
|
7770
7770
|
} else if (input.source) {
|
|
7771
7771
|
const $scope6_id = _scope_id();
|
|
7772
|
-
_html(`<span${_attr_class("
|
|
7772
|
+
_html(`<span${_attr_class("_cj")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7773
7773
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7774
7774
|
_: _scope_with_id($scope2_id),
|
|
7775
7775
|
Cs: $si__input_source && 1
|
|
@@ -7777,7 +7777,7 @@ var skill_chip_default = _template("A", (input) => {
|
|
|
7777
7777
|
return 1;
|
|
7778
7778
|
} else if (input.noteLocal) {
|
|
7779
7779
|
const $scope10_id = _scope_id();
|
|
7780
|
-
_html(`<span${_attr_class(["
|
|
7780
|
+
_html(`<span${_attr_class(["_cj", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7781
7781
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7782
7782
|
return 2;
|
|
7783
7783
|
}
|
|
@@ -7785,7 +7785,7 @@ var skill_chip_default = _template("A", (input) => {
|
|
|
7785
7785
|
_if(() => {
|
|
7786
7786
|
if (input.tags) {
|
|
7787
7787
|
const $scope7_id = _scope_id();
|
|
7788
|
-
_html(`<span${_attr_class("
|
|
7788
|
+
_html(`<span${_attr_class("_ci")}>`);
|
|
7789
7789
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7790
7790
|
_html("</span>");
|
|
7791
7791
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7795,7 +7795,7 @@ var skill_chip_default = _template("A", (input) => {
|
|
|
7795
7795
|
_if(() => {
|
|
7796
7796
|
if (input.actions) {
|
|
7797
7797
|
const $scope8_id = _scope_id();
|
|
7798
|
-
_html(`<div${_attr_class("
|
|
7798
|
+
_html(`<div${_attr_class("_cM")}>`);
|
|
7799
7799
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7800
7800
|
_html("</div>");
|
|
7801
7801
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7906,7 +7906,7 @@ var icon_moon_default = _template("hb", (input) => {
|
|
|
7906
7906
|
});
|
|
7907
7907
|
//#endregion
|
|
7908
7908
|
//#region src/tags/prompt-dialog.css.ts
|
|
7909
|
-
var promptDlg = "
|
|
7909
|
+
var promptDlg = "_g6 _g2";
|
|
7910
7910
|
//#endregion
|
|
7911
7911
|
//#region src/tags/dialog-close.marko
|
|
7912
7912
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7930,7 +7930,7 @@ var modal_view_default = _template("o", (input) => {
|
|
|
7930
7930
|
const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
|
|
7931
7931
|
const dismissable = input.dismissable !== false;
|
|
7932
7932
|
let open = input.open;
|
|
7933
|
-
_html(`<dialog${_attr_class(["
|
|
7933
|
+
_html(`<dialog${_attr_class(["_g1", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
7934
7934
|
...htmlInput,
|
|
7935
7935
|
open: null
|
|
7936
7936
|
}, {
|
|
@@ -7940,20 +7940,20 @@ var modal_view_default = _template("o", (input) => {
|
|
|
7940
7940
|
closedby: 1,
|
|
7941
7941
|
"on-cancel": 1,
|
|
7942
7942
|
"on-close": 1
|
|
7943
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7943
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_g4")}>`);
|
|
7944
7944
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7945
7945
|
_html("</div>");
|
|
7946
7946
|
_if(() => {
|
|
7947
7947
|
if (footer) {
|
|
7948
7948
|
const $scope1_id = _scope_id();
|
|
7949
|
-
_html(`<form method=dialog${_attr_class("
|
|
7949
|
+
_html(`<form method=dialog${_attr_class("_g5")}>`);
|
|
7950
7950
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7951
7951
|
_html("</form>");
|
|
7952
7952
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7953
7953
|
return 0;
|
|
7954
7954
|
} else if (input.openChange) {
|
|
7955
7955
|
const $scope2_id = _scope_id();
|
|
7956
|
-
_html(`<form method=dialog${_attr_class("
|
|
7956
|
+
_html(`<form method=dialog${_attr_class("_g5")}>`);
|
|
7957
7957
|
dialog_close_default({
|
|
7958
7958
|
class: ["_q", "_r"],
|
|
7959
7959
|
content: _content("o0", () => {
|
|
@@ -8037,7 +8037,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
8037
8037
|
content: _content("r7", () => {
|
|
8038
8038
|
_scope_reason();
|
|
8039
8039
|
const $scope2_id = _scope_id();
|
|
8040
|
-
_html(`<h2${_attr_class("
|
|
8040
|
+
_html(`<h2${_attr_class("_g3")}${_attr("id", titleId)}>${_text_resume($scope2_id, "b", input.label, $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
8041
8041
|
value = _new_value;
|
|
8042
8042
|
}, "r0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8043
8043
|
_script($scope2_id, "r5");
|
|
@@ -8571,7 +8571,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8571
8571
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("w44", () => {
|
|
8572
8572
|
_scope_reason();
|
|
8573
8573
|
const $scope4_id = _scope_id();
|
|
8574
|
-
_html(`<span${_attr_class("
|
|
8574
|
+
_html(`<span${_attr_class("_c3")}>Not ready</span>. Missing ${_text_resume($scope4_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
|
|
8575
8575
|
_subscribe($setup_missing__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
|
|
8576
8576
|
_resume_branch($scope4_id);
|
|
8577
8577
|
}, $scope0_id) });
|
|
@@ -8624,16 +8624,16 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8624
8624
|
_if(() => {
|
|
8625
8625
|
if (selfUpdatePending || selfUpdating) {
|
|
8626
8626
|
const $scope44_id = _scope_id();
|
|
8627
|
-
_html(`<div${_attr_class("
|
|
8627
|
+
_html(`<div${_attr_class("_dE")} role=status><div${_attr_class("_dF")}>`);
|
|
8628
8628
|
_if(() => {
|
|
8629
8629
|
if (selfUpdating) {
|
|
8630
8630
|
const $scope79_id = _scope_id();
|
|
8631
|
-
_html(`<span${_attr_class("
|
|
8631
|
+
_html(`<span${_attr_class("_dG")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dH")}>The app restarts and reloads when it is done.</span>`);
|
|
8632
8632
|
writeScope($scope79_id, {});
|
|
8633
8633
|
return 0;
|
|
8634
8634
|
} else {
|
|
8635
8635
|
const $scope45_id = _scope_id();
|
|
8636
|
-
_html(`<span${_attr_class("
|
|
8636
|
+
_html(`<span${_attr_class("_dG")}>Update available</span><span${_attr_class("_dH")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
|
|
8637
8637
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
|
|
8638
8638
|
return 1;
|
|
8639
8639
|
}
|
|
@@ -8652,11 +8652,11 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8652
8652
|
return 0;
|
|
8653
8653
|
}
|
|
8654
8654
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8655
|
-
_html(`<section${_attr_class("
|
|
8655
|
+
_html(`<section${_attr_class("_ca")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_cb")}><h2${_attr("id", agentsId)}${_attr_class("_co")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_c5")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
|
|
8656
8656
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8657
8657
|
setPreferred(v);
|
|
8658
8658
|
}, "w2", $scope0_id), () => {
|
|
8659
|
-
_html(`<select${_attr_class(["_p", "
|
|
8659
|
+
_html(`<select${_attr_class(["_p", "_c6"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8660
8660
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8661
8661
|
const $scope80_id = _scope_id();
|
|
8662
8662
|
_html(`<option${_attr_option_value(id)}>${_text_resume($scope80_id, "b", agentLabel(id), $sg__input_agents)}</option>${_el_resume($scope80_id, "a", $sg__input_agents)}`);
|
|
@@ -8670,14 +8670,14 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8670
8670
|
const rows = lone ? [] : a.instances;
|
|
8671
8671
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8672
8672
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8673
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8673
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_c7", { ["_c9"]: lone && !lone.enabled }])}>`);
|
|
8674
8674
|
_set_serialize_reason(12);
|
|
8675
8675
|
const $childScope3 = _peek_scope_id();
|
|
8676
8676
|
icon_agent_default({
|
|
8677
8677
|
agent: a.id,
|
|
8678
8678
|
size: 18
|
|
8679
8679
|
});
|
|
8680
|
-
_html(`<div${_attr_class("
|
|
8680
|
+
_html(`<div${_attr_class("_cg")}><span${_attr_class("_ci")}><span${_attr_class("_ch")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8681
8681
|
_if(() => {
|
|
8682
8682
|
if (lone && input$3.preferred === lone.id) {
|
|
8683
8683
|
const $scope81_id = _scope_id();
|
|
@@ -8690,12 +8690,12 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8690
8690
|
_if(() => {
|
|
8691
8691
|
if (active.has(a.id)) {
|
|
8692
8692
|
const $scope12_id = _scope_id();
|
|
8693
|
-
_html(`<span${_attr_class("
|
|
8693
|
+
_html(`<span${_attr_class("_c2")}><span${_attr_class("_G")}></span>${_text_resume($scope12_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8694
8694
|
_subscribe($active__closures, writeScope($scope12_id, {}));
|
|
8695
8695
|
return 0;
|
|
8696
8696
|
} else if (!a.installed) {
|
|
8697
8697
|
const $scope82_id = _scope_id();
|
|
8698
|
-
_html(`<span${_attr_class("
|
|
8698
|
+
_html(`<span${_attr_class("_cj")}>Not installed</span>`);
|
|
8699
8699
|
writeScope($scope82_id, {});
|
|
8700
8700
|
return 1;
|
|
8701
8701
|
}
|
|
@@ -8723,15 +8723,15 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8723
8723
|
_if(() => {
|
|
8724
8724
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8725
8725
|
const $scope2_id = _scope_id();
|
|
8726
|
-
_html(`<ul${_attr_class(["
|
|
8726
|
+
_html(`<ul${_attr_class(["_da", { ["_c9"]: lone && !lone.enabled }])}>`);
|
|
8727
8727
|
_for_of(rows, (inst) => {
|
|
8728
8728
|
const $scope3_id = _scope_id();
|
|
8729
8729
|
const accounts = accountsFor(inst.id);
|
|
8730
|
-
_html(`<li${_attr_class(["
|
|
8730
|
+
_html(`<li${_attr_class(["_c8", { ["_c9"]: !inst.enabled }])}><div${_attr_class("_c7")}>`);
|
|
8731
8731
|
_set_serialize_reason(12);
|
|
8732
8732
|
const $childScope4 = _peek_scope_id();
|
|
8733
8733
|
icon_agent_default({ agent: inst.id });
|
|
8734
|
-
_html(`<span${_attr_class(["
|
|
8734
|
+
_html(`<span${_attr_class(["_c_", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8735
8735
|
_if(() => {
|
|
8736
8736
|
if (input$3.preferred === inst.id) {
|
|
8737
8737
|
const $scope83_id = _scope_id();
|
|
@@ -8813,21 +8813,21 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8813
8813
|
_if(() => {
|
|
8814
8814
|
if (!usage && families.length) {
|
|
8815
8815
|
const $scope88_id = _scope_id();
|
|
8816
|
-
_html(`<p${_attr_class("
|
|
8816
|
+
_html(`<p${_attr_class("_cl")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
8817
8817
|
writeScope($scope88_id, {});
|
|
8818
8818
|
return 0;
|
|
8819
8819
|
} else if (usage?.error) {
|
|
8820
8820
|
const $scope8_id = _scope_id();
|
|
8821
|
-
_html(`<p${_attr_class("
|
|
8821
|
+
_html(`<p${_attr_class("_cl")}>${_text_resume($scope8_id, "b", usage.error)}</p>`);
|
|
8822
8822
|
writeScope($scope8_id, {});
|
|
8823
8823
|
return 1;
|
|
8824
8824
|
}
|
|
8825
8825
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8826
|
-
_html(`</section><section${_attr_class("
|
|
8826
|
+
_html(`</section><section${_attr_class("_ca")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_cb")}><h2${_attr("id", githubId)}${_attr_class("_co")}>GitHub</h2>`);
|
|
8827
8827
|
_if(() => {
|
|
8828
8828
|
if (setup && !addingHost) {
|
|
8829
8829
|
const $scope42_id = _scope_id();
|
|
8830
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8830
|
+
_html(`<button${_attr_class([iconBtnRow, "_dj"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8831
8831
|
icon_plus_default({ size: 16 });
|
|
8832
8832
|
_html(`</button>${_el_resume($scope42_id, "a")}`);
|
|
8833
8833
|
_script($scope42_id, "w51");
|
|
@@ -8839,10 +8839,10 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8839
8839
|
if (setup) {
|
|
8840
8840
|
const $scope41_id = _scope_id();
|
|
8841
8841
|
_html(`<form${_attr_class([
|
|
8842
|
-
"
|
|
8843
|
-
"
|
|
8844
|
-
{ ["
|
|
8845
|
-
])}><label${_attr_class(["_1", "
|
|
8842
|
+
"_cw",
|
|
8843
|
+
"_dj",
|
|
8844
|
+
{ ["_cx"]: !addingHost }
|
|
8845
|
+
])}><label${_attr_class(["_1", "_cz"])}>`);
|
|
8846
8846
|
icon_github_default({
|
|
8847
8847
|
size: 14,
|
|
8848
8848
|
class: "_2"
|
|
@@ -8852,12 +8852,12 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8852
8852
|
}, "w3", $scope41_id))}${_attr_class([
|
|
8853
8853
|
"_Z",
|
|
8854
8854
|
"_3",
|
|
8855
|
-
"
|
|
8855
|
+
"_cA"
|
|
8856
8856
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope41_id, "d")}</label><button${_attr_class([
|
|
8857
8857
|
btnSm,
|
|
8858
8858
|
"_r",
|
|
8859
|
-
"
|
|
8860
|
-
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope41_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope41_id, "e")}<button${_attr_class([iconBtnRow, "
|
|
8859
|
+
"_di"
|
|
8860
|
+
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope41_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope41_id, "e")}<button${_attr_class([iconBtnRow, "_cB"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
8861
8861
|
icon_xmark_default({ size: 14 });
|
|
8862
8862
|
_html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
|
|
8863
8863
|
_script($scope41_id, "w52");
|
|
@@ -8865,19 +8865,19 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8865
8865
|
return 0;
|
|
8866
8866
|
}
|
|
8867
8867
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8868
|
-
_html(`</div><div${_attr_class(["
|
|
8868
|
+
_html(`</div><div${_attr_class(["_cf", "_cN"])}>`);
|
|
8869
8869
|
_for_of(setup?.github || [], (h) => {
|
|
8870
8870
|
const $scope6_id = _scope_id();
|
|
8871
8871
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
8872
8872
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8873
8873
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8874
8874
|
const busy = active.has(h.host);
|
|
8875
|
-
_html(`<div${_attr_class(["
|
|
8875
|
+
_html(`<div${_attr_class(["_cO", "_dk"])}><div${_attr_class("_dl")}>`);
|
|
8876
8876
|
icon_github_default({
|
|
8877
8877
|
size: 18,
|
|
8878
|
-
class: "
|
|
8878
|
+
class: "_dm"
|
|
8879
8879
|
});
|
|
8880
|
-
_html(`<div${_attr_class("
|
|
8880
|
+
_html(`<div${_attr_class("_cg")}><span${_attr_class("_ci")}><span${_attr_class("_ch")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8881
8881
|
_if(() => {
|
|
8882
8882
|
if (h.isEnterprise) {
|
|
8883
8883
|
const $scope91_id = _scope_id();
|
|
@@ -8890,25 +8890,25 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8890
8890
|
_if(() => {
|
|
8891
8891
|
if (busy) {
|
|
8892
8892
|
const $scope13_id = _scope_id();
|
|
8893
|
-
_html(`<span${_attr_class(["
|
|
8893
|
+
_html(`<span${_attr_class(["_cj", "_dn"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
8894
8894
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, { Ch2: 1 })));
|
|
8895
8895
|
return 0;
|
|
8896
8896
|
} else if (h.authed) {
|
|
8897
8897
|
const $scope89_id = _scope_id();
|
|
8898
|
-
_html(`<span${_attr_class(["
|
|
8898
|
+
_html(`<span${_attr_class(["_cj", "_dn"])}>`);
|
|
8899
8899
|
icon_check_default({
|
|
8900
8900
|
size: 12,
|
|
8901
|
-
class: "
|
|
8901
|
+
class: "_do"
|
|
8902
8902
|
});
|
|
8903
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8903
|
+
_html(` Signed in as <strong${_attr_class("_dq")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
|
|
8904
8904
|
writeScope($scope89_id, {});
|
|
8905
8905
|
return 1;
|
|
8906
8906
|
} else if (h.error) {
|
|
8907
8907
|
const $scope90_id = _scope_id();
|
|
8908
8908
|
_html(`<span${_attr_class([
|
|
8909
|
-
"
|
|
8910
|
-
"
|
|
8911
|
-
"
|
|
8909
|
+
"_cj",
|
|
8910
|
+
"_dn",
|
|
8911
|
+
"_dp"
|
|
8912
8912
|
])}>`);
|
|
8913
8913
|
icon_warning_default({ size: 12 });
|
|
8914
8914
|
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
@@ -8916,7 +8916,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8916
8916
|
return 2;
|
|
8917
8917
|
} else {
|
|
8918
8918
|
const $scope92_id = _scope_id();
|
|
8919
|
-
_html(`<span${_attr_class(["
|
|
8919
|
+
_html(`<span${_attr_class(["_cj", "_dn"])}>Not signed in</span>`);
|
|
8920
8920
|
writeScope($scope92_id, {});
|
|
8921
8921
|
return 3;
|
|
8922
8922
|
}
|
|
@@ -8947,7 +8947,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8947
8947
|
if (h.isEnterprise) {
|
|
8948
8948
|
const $scope33_id = _scope_id();
|
|
8949
8949
|
_html(`<button${_attr_class([
|
|
8950
|
-
"
|
|
8950
|
+
"_ck",
|
|
8951
8951
|
"_8",
|
|
8952
8952
|
"_9",
|
|
8953
8953
|
{ ["_s"]: confirmingRemove === h.host }
|
|
@@ -8981,7 +8981,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8981
8981
|
_if(() => {
|
|
8982
8982
|
if (busy && authCodes.has(h.host)) {
|
|
8983
8983
|
const $scope30_id = _scope_id();
|
|
8984
|
-
_html(`<div${_attr_class("
|
|
8984
|
+
_html(`<div${_attr_class("_dr")}><span${_attr_class("_ds")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_du")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_dt")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
8985
8985
|
_subscribe($authCodes__closures, writeScope($scope30_id, { Ch4: 1 }));
|
|
8986
8986
|
return 0;
|
|
8987
8987
|
}
|
|
@@ -8993,7 +8993,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8993
8993
|
_set_serialize_reason(30);
|
|
8994
8994
|
const $childScope9 = _peek_scope_id();
|
|
8995
8995
|
sso_auth_default({
|
|
8996
|
-
class: ["
|
|
8996
|
+
class: ["_cO", "_dv"],
|
|
8997
8997
|
items: hostSso$1,
|
|
8998
8998
|
skipped: skippedSso,
|
|
8999
8999
|
busy,
|
|
@@ -9027,23 +9027,23 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9027
9027
|
_if(() => {
|
|
9028
9028
|
if (setup && !setup.github.length) {
|
|
9029
9029
|
const $scope95_id = _scope_id();
|
|
9030
|
-
_html(`<p${_attr_class("
|
|
9030
|
+
_html(`<p${_attr_class("_cl")}>Install the GitHub CLI below to sign in.</p>`);
|
|
9031
9031
|
writeScope($scope95_id, {});
|
|
9032
9032
|
return 0;
|
|
9033
9033
|
}
|
|
9034
9034
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
9035
|
-
_html(`</section><section${_attr_class("
|
|
9035
|
+
_html(`</section><section${_attr_class("_ca")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_cb")}><h2${_attr("id", machineId)}${_attr_class("_co")}>Machine</h2></div><div${_attr_class(["_cf", "_cN"])}><div${_attr_class(["_cO", "_cP"])}><div${_attr_class(["_cQ", { ["_cR"]: skillsOpen }])}><button${_attr_class("_cS")} aria-expanded=true>`);
|
|
9036
9036
|
_set_serialize_reason(1);
|
|
9037
9037
|
const $childScope10 = _peek_scope_id();
|
|
9038
9038
|
icon_chevron_right_default({
|
|
9039
9039
|
size: 12,
|
|
9040
|
-
class: ["
|
|
9040
|
+
class: ["_cW", { ["_cX"]: skillsOpen }]
|
|
9041
9041
|
});
|
|
9042
|
-
_html(`<span${_attr_class("
|
|
9042
|
+
_html(`<span${_attr_class("_cT")}>Skills</span>`);
|
|
9043
9043
|
_if(() => {
|
|
9044
9044
|
if (skills?.global.length) {
|
|
9045
9045
|
const $scope51_id = _scope_id();
|
|
9046
|
-
_html(`<span${_attr_class("
|
|
9046
|
+
_html(`<span${_attr_class("_cU")}>${_text_resume($scope51_id, "b", skills.global.length)} installed</span>`);
|
|
9047
9047
|
writeScope($scope51_id, {});
|
|
9048
9048
|
return 0;
|
|
9049
9049
|
}
|
|
@@ -9063,7 +9063,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9063
9063
|
_if(() => {
|
|
9064
9064
|
if (skills?.available && skills.agents.length) {
|
|
9065
9065
|
const $scope14_id = _scope_id();
|
|
9066
|
-
_html(`<div${_attr_class(["
|
|
9066
|
+
_html(`<div${_attr_class(["_cw", { ["_cx"]: true }])}><label${_attr_class(["_1", "_cz"])}>`);
|
|
9067
9067
|
_if(() => {
|
|
9068
9068
|
if (skillSearching) {
|
|
9069
9069
|
const $scope96_id = _scope_id();
|
|
@@ -9083,14 +9083,14 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9083
9083
|
_html(`<input${_attr_input_value($scope14_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
9084
9084
|
"_Z",
|
|
9085
9085
|
"_3",
|
|
9086
|
-
"
|
|
9087
|
-
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
9086
|
+
"_cA"
|
|
9087
|
+
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "_cB"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9088
9088
|
icon_xmark_default({ size: 14 });
|
|
9089
|
-
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "
|
|
9089
|
+
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_cD"])}${_attr("hidden", true)}>`);
|
|
9090
9090
|
_if(() => {
|
|
9091
9091
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9092
9092
|
const $scope98_id = _scope_id();
|
|
9093
|
-
_html(`<li${_attr_class("
|
|
9093
|
+
_html(`<li${_attr_class("_cE")}>Searching skills.sh…</li>`);
|
|
9094
9094
|
writeScope($scope98_id, {});
|
|
9095
9095
|
return 0;
|
|
9096
9096
|
}
|
|
@@ -9098,11 +9098,11 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9098
9098
|
_if(() => {
|
|
9099
9099
|
if (looksLikeSource(skillQuery)) {
|
|
9100
9100
|
const $scope15_id = _scope_id();
|
|
9101
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9101
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cg")}><span${_attr_class(["_de", "_y"])}>${_text_resume($scope15_id, "d", skillQuery.trim())}</span>`);
|
|
9102
9102
|
_if(() => {
|
|
9103
9103
|
if (active.has(skillQuery.trim())) {
|
|
9104
9104
|
const $scope16_id = _scope_id();
|
|
9105
|
-
_html(`<span${_attr_class("
|
|
9105
|
+
_html(`<span${_attr_class("_c2")}><span${_attr_class("_G")}></span>${_text_resume($scope16_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9106
9106
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
9107
9107
|
Ch2: 3,
|
|
9108
9108
|
Chr: 1
|
|
@@ -9110,7 +9110,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9110
9110
|
return 0;
|
|
9111
9111
|
} else {
|
|
9112
9112
|
const $scope99_id = _scope_id();
|
|
9113
|
-
_html(`<span${_attr_class("
|
|
9113
|
+
_html(`<span${_attr_class("_cj")}>Add straight from this source</span>`);
|
|
9114
9114
|
writeScope($scope99_id, {});
|
|
9115
9115
|
return 1;
|
|
9116
9116
|
}
|
|
@@ -9133,16 +9133,16 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9133
9133
|
_for_of(skillHits || [], (h) => {
|
|
9134
9134
|
const $scope17_id = _scope_id();
|
|
9135
9135
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9136
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9136
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cg")}><span${_attr_class(["_de", "_y"])}>${_text_resume($scope17_id, "d", h.name)}</span>`);
|
|
9137
9137
|
_if(() => {
|
|
9138
9138
|
if (active.has(h.skillId)) {
|
|
9139
9139
|
const $scope18_id = _scope_id();
|
|
9140
|
-
_html(`<span${_attr_class("
|
|
9140
|
+
_html(`<span${_attr_class("_c2")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9141
9141
|
_subscribe($active__closures, writeScope($scope18_id, { Ch2: 5 }));
|
|
9142
9142
|
return 0;
|
|
9143
9143
|
} else {
|
|
9144
9144
|
const $scope100_id = _scope_id();
|
|
9145
|
-
_html(`<span${_attr_class("
|
|
9145
|
+
_html(`<span${_attr_class("_cj")}${_attr("title", h.source)}>${_text_resume($scope100_id, "b", h.source)}</span>${_el_resume($scope100_id, "a")}`);
|
|
9146
9146
|
writeScope($scope100_id, {});
|
|
9147
9147
|
return 1;
|
|
9148
9148
|
}
|
|
@@ -9190,7 +9190,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9190
9190
|
_if(() => {
|
|
9191
9191
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9192
9192
|
const $scope53_id = _scope_id();
|
|
9193
|
-
_html(`<li${_attr_class("
|
|
9193
|
+
_html(`<li${_attr_class("_cE")}>No skills match "${_text_resume($scope53_id, "b", skillQuery, 2)}".</li>`);
|
|
9194
9194
|
_subscribe($skillQuery__closures, writeScope($scope53_id, { Chr: 2 }));
|
|
9195
9195
|
return 0;
|
|
9196
9196
|
}
|
|
@@ -9205,22 +9205,22 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9205
9205
|
_if(() => {
|
|
9206
9206
|
{
|
|
9207
9207
|
const $scope19_id = _scope_id();
|
|
9208
|
-
_html(`<div${_attr_class("
|
|
9208
|
+
_html(`<div${_attr_class("_cV")}>`);
|
|
9209
9209
|
_if(() => {
|
|
9210
9210
|
if (skills && !skills.agents.length) {
|
|
9211
9211
|
const $scope103_id = _scope_id();
|
|
9212
|
-
_html(`<p${_attr_class("
|
|
9212
|
+
_html(`<p${_attr_class("_cl")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9213
9213
|
writeScope($scope103_id, {});
|
|
9214
9214
|
return 0;
|
|
9215
9215
|
} else if (skills && !skills.available) {
|
|
9216
9216
|
const $scope20_id = _scope_id();
|
|
9217
|
-
_html(`<p${_attr_class("
|
|
9217
|
+
_html(`<p${_attr_class("_cl")}>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($scope20_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope20_id, "b")}</p>`);
|
|
9218
9218
|
_script($scope20_id, "w60");
|
|
9219
9219
|
_subscribe($active__closures, writeScope($scope20_id, { Ch2: 6 }));
|
|
9220
9220
|
return 1;
|
|
9221
9221
|
}
|
|
9222
9222
|
}, $scope19_id, "b", 1, 1, 1, 0, 1);
|
|
9223
|
-
_html(`<ul${_attr_class("
|
|
9223
|
+
_html(`<ul${_attr_class("_cG")}>`);
|
|
9224
9224
|
_for_of(skills?.global || [], (s) => {
|
|
9225
9225
|
const $scope21_id = _scope_id();
|
|
9226
9226
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9296,7 +9296,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9296
9296
|
_if(() => {
|
|
9297
9297
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9298
9298
|
const $scope108_id = _scope_id();
|
|
9299
|
-
_html(`<p${_attr_class("
|
|
9299
|
+
_html(`<p${_attr_class("_cl")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9300
9300
|
writeScope($scope108_id, {});
|
|
9301
9301
|
return 0;
|
|
9302
9302
|
}
|
|
@@ -9306,14 +9306,14 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9306
9306
|
return 0;
|
|
9307
9307
|
}
|
|
9308
9308
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9309
|
-
_html(`</div><div${_attr_class(["
|
|
9309
|
+
_html(`</div><div${_attr_class(["_cO", "_cP"])}><div${_attr_class(["_cQ", { ["_cR"]: machineOpen }])}><button${_attr_class("_cS")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9310
9310
|
_set_serialize_reason(1);
|
|
9311
9311
|
const $childScope12 = _peek_scope_id();
|
|
9312
9312
|
icon_chevron_right_default({
|
|
9313
9313
|
size: 12,
|
|
9314
|
-
class: ["
|
|
9314
|
+
class: ["_cW", { ["_cX"]: machineOpen }]
|
|
9315
9315
|
});
|
|
9316
|
-
_html(`<span${_attr_class("
|
|
9316
|
+
_html(`<span${_attr_class("_cT")}>Tools</span><span${_attr_class("_cU")}>${_text_resume($scope0_id, "ai", tools.filter((t) => t.installed).length)} installed ${_text_resume($scope0_id, "aj", missingCount ? `${_to_text(" · ")}${_to_text(missingCount)} missing` : "", 2)}${_text_resume($scope0_id, "ak", outdatedIds.length ? `${_to_text(" · ")}${_to_text(outdatedIds.length)} outdated` : "", 2)}</span></button>${_el_resume($scope0_id, "ae")}`);
|
|
9317
9317
|
_if(() => {
|
|
9318
9318
|
if (outdatedIds.length > 1) {
|
|
9319
9319
|
const $scope22_id = _scope_id();
|
|
@@ -9346,7 +9346,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9346
9346
|
_if(() => {
|
|
9347
9347
|
if (setup && setup.mise.installed) {
|
|
9348
9348
|
const $scope24_id = _scope_id();
|
|
9349
|
-
_html(`<div${_attr_class(["
|
|
9349
|
+
_html(`<div${_attr_class(["_cw", { ["_cx"]: true }])}><label${_attr_class(["_1", "_cz"])}>`);
|
|
9350
9350
|
_if(() => {
|
|
9351
9351
|
if (searching) {
|
|
9352
9352
|
const $scope109_id = _scope_id();
|
|
@@ -9366,14 +9366,14 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9366
9366
|
_html(`<input${_attr_input_value($scope24_id, "d", query, search)}${_attr_class([
|
|
9367
9367
|
"_Z",
|
|
9368
9368
|
"_3",
|
|
9369
|
-
"
|
|
9370
|
-
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
9369
|
+
"_cA"
|
|
9370
|
+
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "_cB"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9371
9371
|
icon_xmark_default({ size: 14 });
|
|
9372
|
-
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "
|
|
9372
|
+
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_cD"])}${_attr("hidden", true)}>`);
|
|
9373
9373
|
_if(() => {
|
|
9374
9374
|
if (searching && !hits?.length) {
|
|
9375
9375
|
const $scope111_id = _scope_id();
|
|
9376
|
-
_html(`<li${_attr_class("
|
|
9376
|
+
_html(`<li${_attr_class("_cE")}>Searching the mise registry…</li>`);
|
|
9377
9377
|
writeScope($scope111_id, {});
|
|
9378
9378
|
return 0;
|
|
9379
9379
|
}
|
|
@@ -9381,23 +9381,23 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9381
9381
|
_if(() => {
|
|
9382
9382
|
if (hits && !hits.length && !searching) {
|
|
9383
9383
|
const $scope43_id = _scope_id();
|
|
9384
|
-
_html(`<li${_attr_class("
|
|
9384
|
+
_html(`<li${_attr_class("_cE")}>No tools match "${_text_resume($scope43_id, "b", query, 2)}".</li>`);
|
|
9385
9385
|
_subscribe($query__closures, writeScope($scope43_id, {}));
|
|
9386
9386
|
return 0;
|
|
9387
9387
|
}
|
|
9388
9388
|
}, $scope24_id, "i", 1, 1, 1, 0, 1);
|
|
9389
9389
|
_for_of(hits || [], (h) => {
|
|
9390
9390
|
const $scope25_id = _scope_id();
|
|
9391
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9391
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cg")}><span${_attr_class(["_de", "_y"])}>${_text_resume($scope25_id, "d", h.name)}</span>`);
|
|
9392
9392
|
_if(() => {
|
|
9393
9393
|
if (active.has(h.name)) {
|
|
9394
9394
|
const $scope26_id = _scope_id();
|
|
9395
|
-
_html(`<span${_attr_class("
|
|
9395
|
+
_html(`<span${_attr_class("_c2")}><span${_attr_class("_G")}></span>${_text_resume($scope26_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9396
9396
|
_subscribe($active__closures, writeScope($scope26_id, { Ch2: 9 }));
|
|
9397
9397
|
return 0;
|
|
9398
9398
|
} else if (h.description) {
|
|
9399
9399
|
const $scope112_id = _scope_id();
|
|
9400
|
-
_html(`<span${_attr_class("
|
|
9400
|
+
_html(`<span${_attr_class("_cj")}${_attr("title", h.description)}>${_text_resume($scope112_id, "b", h.description)}</span>${_el_resume($scope112_id, "a")}`);
|
|
9401
9401
|
writeScope($scope112_id, {});
|
|
9402
9402
|
return 1;
|
|
9403
9403
|
}
|
|
@@ -9442,11 +9442,11 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9442
9442
|
_if(() => {
|
|
9443
9443
|
if (machineOpen) {
|
|
9444
9444
|
const $scope5_id = _scope_id();
|
|
9445
|
-
_html(`<div${_attr_class("
|
|
9445
|
+
_html(`<div${_attr_class("_cV")}>`);
|
|
9446
9446
|
_if(() => {
|
|
9447
9447
|
if (setup && !setup.mise.installed) {
|
|
9448
9448
|
const $scope27_id = _scope_id();
|
|
9449
|
-
_html(`<p${_attr_class("
|
|
9449
|
+
_html(`<p${_attr_class("_cl")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope27_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope27_id, "b")}</p>`);
|
|
9450
9450
|
_script($scope27_id, "w71");
|
|
9451
9451
|
_subscribe($active__closures, writeScope($scope27_id, { Ch2: 10 }));
|
|
9452
9452
|
return 0;
|
|
@@ -9456,11 +9456,11 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9456
9456
|
_if(() => {
|
|
9457
9457
|
if (self) {
|
|
9458
9458
|
const $scope47_id = _scope_id();
|
|
9459
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9459
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_de", "_y"])}>work</span>`);
|
|
9460
9460
|
_if(() => {
|
|
9461
9461
|
if (selfUpdating) {
|
|
9462
9462
|
const $scope114_id = _scope_id();
|
|
9463
|
-
_html(`<span${_attr_class("
|
|
9463
|
+
_html(`<span${_attr_class("_c2")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9464
9464
|
writeScope($scope114_id, {});
|
|
9465
9465
|
return 0;
|
|
9466
9466
|
} else {
|
|
@@ -9474,7 +9474,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9474
9474
|
return 0;
|
|
9475
9475
|
} else if (self.latest && self.latest !== self.version) {
|
|
9476
9476
|
const $scope49_id = _scope_id();
|
|
9477
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9477
|
+
_html(`<button${_attr_class([btnSm, "_dh"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9478
9478
|
icon_arrow_up_default({ size: 12 });
|
|
9479
9479
|
_html(` ${_text_resume($scope49_id, "c", self.latest, 2)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9480
9480
|
_script($scope49_id, "w72");
|
|
@@ -9518,11 +9518,11 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9518
9518
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9519
9519
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9520
9520
|
const $for_content7__t_id__closures = /* @__PURE__ */ new Set();
|
|
9521
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9521
|
+
_html(`<li${_attr_class([toolRow, { ["_dd"]: !t.installed }])}><span${_attr_class(["_de", "_y"])}>${_text_resume($scope28_id, "c", t.label)}</span>`);
|
|
9522
9522
|
_if(() => {
|
|
9523
9523
|
if (active.has(t.id)) {
|
|
9524
9524
|
const $scope29_id = _scope_id();
|
|
9525
|
-
_html(`<span${_attr_class("
|
|
9525
|
+
_html(`<span${_attr_class("_c2")}><span${_attr_class("_G")}></span>${_text_resume($scope29_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9526
9526
|
_subscribe($active__closures, writeScope($scope29_id, { Ch2: 12 }));
|
|
9527
9527
|
return 0;
|
|
9528
9528
|
} else if (t.installed) {
|
|
@@ -9530,11 +9530,11 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9530
9530
|
_if(() => {
|
|
9531
9531
|
if (t.version) {
|
|
9532
9532
|
const $scope40_id = _scope_id();
|
|
9533
|
-
_html(`<button${_attr_class(["
|
|
9533
|
+
_html(`<button${_attr_class(["_dg", "_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)}`);
|
|
9534
9534
|
_if(() => {
|
|
9535
9535
|
if (aliasPin(t)) {
|
|
9536
9536
|
const $scope118_id = _scope_id();
|
|
9537
|
-
_html(`<span${_attr_class("
|
|
9537
|
+
_html(`<span${_attr_class("_df")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9538
9538
|
_subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9539
9539
|
return 0;
|
|
9540
9540
|
}
|
|
@@ -9553,7 +9553,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9553
9553
|
_if(() => {
|
|
9554
9554
|
if (outdated(t)) {
|
|
9555
9555
|
const $scope59_id = _scope_id();
|
|
9556
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9556
|
+
_html(`<button${_attr_class([btnSm, "_dh"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9557
9557
|
icon_arrow_up_default({ size: 12 });
|
|
9558
9558
|
_html(` ${_text_resume($scope59_id, "c", t.latest, 2)}</button>${_el_resume($scope59_id, "a")}`);
|
|
9559
9559
|
_script($scope59_id, "w74");
|
|
@@ -9561,7 +9561,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9561
9561
|
return 0;
|
|
9562
9562
|
} else if (t.newest) {
|
|
9563
9563
|
const $scope60_id = _scope_id();
|
|
9564
|
-
_html(`<button${_attr_class(["
|
|
9564
|
+
_html(`<button${_attr_class(["_dg", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope60_id, "b", t.newest)} available</button>${_el_resume($scope60_id, "a")}`);
|
|
9565
9565
|
_script($scope60_id, "w75");
|
|
9566
9566
|
_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($scope60_id, {
|
|
9567
9567
|
Cw: 1,
|
|
@@ -9677,14 +9677,14 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9677
9677
|
label: "Dark"
|
|
9678
9678
|
}
|
|
9679
9679
|
];
|
|
9680
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9680
|
+
_html(`</div></div></section><section${_attr_class("_ca")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_cb")}><h2${_attr("id", appearanceId)}${_attr_class("_co")}>Appearance</h2></div><div${_attr_class(["_cf", "_dw"])}><div${_attr_class("_dI")}><img${_attr_class("_dJ")}${_attr("src", `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`)} alt aria-hidden=true>${_el_resume($scope0_id, "av", $sg__input_instance_accent)}<span${_attr_class("_dK")}><span${_attr_class("_dL")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dM")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dx")}><span${_attr_class("_dy")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
|
|
9681
9681
|
setInstance({ name: v });
|
|
9682
|
-
}, "w4", $scope0_id))}${_attr_class(["_Z", "
|
|
9682
|
+
}, "w4", $scope0_id))}${_attr_class(["_Z", "_dz"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_dx")}><span${_attr_class("_dy")}>Theme</span><span${_attr_class("_dB")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9683
9683
|
_for_of(themeOpts, (opt) => {
|
|
9684
9684
|
const $scope50_id = _scope_id();
|
|
9685
9685
|
_html(`<button type=button${_attr_class([
|
|
9686
9686
|
"_bg",
|
|
9687
|
-
"
|
|
9687
|
+
"_dN",
|
|
9688
9688
|
{ ["_bf"]: themeMode === opt.id }
|
|
9689
9689
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9690
9690
|
if (opt.id === "system") {
|
|
@@ -9704,28 +9704,28 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9704
9704
|
_: _scope_with_id($scope0_id)
|
|
9705
9705
|
});
|
|
9706
9706
|
}, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
|
|
9707
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9707
|
+
_html(`</span><span${_attr_class(["_o", "_dC"])}>`);
|
|
9708
9708
|
_attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
|
|
9709
9709
|
setThemeMode(v);
|
|
9710
9710
|
}, "w5", $scope0_id), () => {
|
|
9711
|
-
_html(`<select${_attr_class(["_p", "
|
|
9711
|
+
_html(`<select${_attr_class(["_p", "_dD"])} aria-label="Color theme">`);
|
|
9712
9712
|
forOf(themeOpts, (opt) => {
|
|
9713
9713
|
_scope_id();
|
|
9714
9714
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9715
9715
|
});
|
|
9716
9716
|
_html("</select>");
|
|
9717
9717
|
});
|
|
9718
|
-
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("
|
|
9719
|
-
"
|
|
9720
|
-
"
|
|
9721
|
-
{ ["
|
|
9718
|
+
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_dx")}><span${_attr_class("_dy")}>Accent</span><span${_attr_class("_dO")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9719
|
+
"_dP",
|
|
9720
|
+
"_dS",
|
|
9721
|
+
{ ["_dQ"]: !accent }
|
|
9722
9722
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9723
9723
|
_if(() => {
|
|
9724
9724
|
if (!accent) {
|
|
9725
9725
|
const $scope129_id = _scope_id();
|
|
9726
9726
|
icon_check_default({
|
|
9727
9727
|
size: 12,
|
|
9728
|
-
class: "
|
|
9728
|
+
class: "_dR"
|
|
9729
9729
|
});
|
|
9730
9730
|
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9731
9731
|
return 0;
|
|
@@ -9733,13 +9733,13 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9733
9733
|
}, $scope0_id, "bc", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9734
9734
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9735
9735
|
const $scope77_id = _scope_id();
|
|
9736
|
-
_html(`<button type=button${_attr_class(["
|
|
9736
|
+
_html(`<button type=button${_attr_class(["_dP", { ["_dQ"]: 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)}>`);
|
|
9737
9737
|
_if(() => {
|
|
9738
9738
|
if (accent === p.value) {
|
|
9739
9739
|
const $scope130_id = _scope_id();
|
|
9740
9740
|
icon_check_default({
|
|
9741
9741
|
size: 12,
|
|
9742
|
-
class: "
|
|
9742
|
+
class: "_dR"
|
|
9743
9743
|
});
|
|
9744
9744
|
$si__input_instance_accent && writeScope($scope130_id, {});
|
|
9745
9745
|
return 0;
|
|
@@ -9753,18 +9753,18 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9753
9753
|
}, "value", $scope0_id, "bd", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9754
9754
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9755
9755
|
_html(`<label${_attr_class([
|
|
9756
|
-
"
|
|
9757
|
-
"
|
|
9758
|
-
{ ["
|
|
9756
|
+
"_dP",
|
|
9757
|
+
"_dT",
|
|
9758
|
+
{ ["_dQ"]: customOn }
|
|
9759
9759
|
])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "bf", accent || "#3556d8", _resume(function(v) {
|
|
9760
9760
|
setInstance({ accent: v });
|
|
9761
|
-
}, "w6", $scope0_id))}${_attr_class("
|
|
9761
|
+
}, "w6", $scope0_id))}${_attr_class("_dU")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
|
|
9762
9762
|
_if(() => {
|
|
9763
9763
|
if (customOn) {
|
|
9764
9764
|
const $scope131_id = _scope_id();
|
|
9765
9765
|
icon_check_default({
|
|
9766
9766
|
size: 12,
|
|
9767
|
-
class: "
|
|
9767
|
+
class: "_dR"
|
|
9768
9768
|
});
|
|
9769
9769
|
$si__input_instance_accent && writeScope($scope131_id, {});
|
|
9770
9770
|
return 0;
|
|
@@ -9775,16 +9775,16 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9775
9775
|
return 1;
|
|
9776
9776
|
}
|
|
9777
9777
|
}, $scope0_id, "bg", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9778
|
-
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
9778
|
+
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_ca")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_cb")}><h2${_attr("id", backupId)}${_attr_class("_co")}>Backup</h2></div><div${_attr_class(["_cf", "_cN"])}><div${_attr_class("_cO")}><div${_attr_class("_dV")}><div${_attr_class("_cg")}>`);
|
|
9779
9779
|
_if(() => {
|
|
9780
9780
|
if (backupBusy === "preflight") {
|
|
9781
9781
|
const $scope65_id = _scope_id();
|
|
9782
|
-
_html(`<span${_attr_class("
|
|
9782
|
+
_html(`<span${_attr_class("_c2")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9783
9783
|
writeScope($scope65_id, {});
|
|
9784
9784
|
return 0;
|
|
9785
9785
|
} else {
|
|
9786
9786
|
const $scope133_id = _scope_id();
|
|
9787
|
-
_html(`<span${_attr_class("
|
|
9787
|
+
_html(`<span${_attr_class("_cj")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9788
9788
|
writeScope($scope133_id, {});
|
|
9789
9789
|
return 1;
|
|
9790
9790
|
}
|
|
@@ -9802,7 +9802,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9802
9802
|
_if(() => {
|
|
9803
9803
|
if (preflight && !backupBusy) {
|
|
9804
9804
|
const $scope67_id = _scope_id();
|
|
9805
|
-
_html(`<div${_attr_class("
|
|
9805
|
+
_html(`<div${_attr_class("_dX")}><p${_attr_class("_dY")}>In the file: ${_text_resume($scope67_id, "c", preflight.contents.workspaces, 2)} workspace${_text_resume($scope67_id, "d", preflight.contents.workspaces === 1 ? "" : "s", 2)}${_text_resume($scope67_id, "e", preflight.contents.archived ? `${_to_text(" ")}(${_to_text(preflight.contents.archived)} archived)` : "", 2)} , ${_text_resume($scope67_id, "f", preflight.contents.tools, 2)} tool pin${_text_resume($scope67_id, "g", preflight.contents.tools === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "h", preflight.contents.skills, 2)} skill${_text_resume($scope67_id, "i", preflight.contents.skills === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "j", preflight.contents.agents, 2)} agent${_text_resume($scope67_id, "k", preflight.contents.agents === 1 ? "" : "s", 2)}.</p><p${_attr_class("_dY")}>Not in the file: `);
|
|
9806
9806
|
_if(() => {
|
|
9807
9807
|
if (preflight.unpushed) {
|
|
9808
9808
|
const $scope68_id = _scope_id();
|
|
@@ -9819,15 +9819,15 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9819
9819
|
return 0;
|
|
9820
9820
|
}
|
|
9821
9821
|
}, $scope67_id, "m");
|
|
9822
|
-
_html(`${_text_resume($scope67_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("
|
|
9822
|
+
_html(`${_text_resume($scope67_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_dZ")}>`);
|
|
9823
9823
|
_for_of(preflight.workspaces, (w) => {
|
|
9824
9824
|
const $scope135_id = _scope_id();
|
|
9825
9825
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9826
|
-
_html(`<li${_attr_class("
|
|
9826
|
+
_html(`<li${_attr_class("_d0")}><span${_attr_class("_ch")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_dZ")}>`);
|
|
9827
9827
|
_for_of(w.repos, (r) => {
|
|
9828
9828
|
const $scope136_id = _scope_id();
|
|
9829
9829
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9830
|
-
_html(`<li${_attr_class("
|
|
9830
|
+
_html(`<li${_attr_class("_d1")}><span${_attr_class("_d2")}><span${_attr_class("_y")}>${_text_resume($scope136_id, "d", r.worktree)}/</span>`);
|
|
9831
9831
|
_for_of(r.unpushed, (b) => {
|
|
9832
9832
|
const $scope137_id = _scope_id();
|
|
9833
9833
|
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($scope137_id, "b", b.count)} unpushed `);
|
|
@@ -9846,10 +9846,10 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9846
9846
|
_if(() => {
|
|
9847
9847
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9848
9848
|
const $scope138_id = _scope_id();
|
|
9849
|
-
_html(`<ul${_attr_class("
|
|
9849
|
+
_html(`<ul${_attr_class("_d3")}>`);
|
|
9850
9850
|
_for_of(r.modified, (f) => {
|
|
9851
9851
|
const $scope141_id = _scope_id();
|
|
9852
|
-
_html(`<li${_attr_class("
|
|
9852
|
+
_html(`<li${_attr_class("_d4")}><span${_attr_class([
|
|
9853
9853
|
"_N",
|
|
9854
9854
|
"_P",
|
|
9855
9855
|
tone.warn
|
|
@@ -9858,18 +9858,18 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9858
9858
|
}, (f) => f, $scope138_id, "b", 1, 1, 1, 0, 1);
|
|
9859
9859
|
_for_of(r.untracked, (f) => {
|
|
9860
9860
|
const $scope142_id = _scope_id();
|
|
9861
|
-
_html(`<li${_attr_class("
|
|
9861
|
+
_html(`<li${_attr_class("_d4")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope142_id, "d", f)}</span></li>`);
|
|
9862
9862
|
writeScope($scope142_id, {});
|
|
9863
9863
|
}, (f) => f, $scope138_id, "c", 1, 1, 1, 0, 1);
|
|
9864
9864
|
_for_of(r.ignored, (f) => {
|
|
9865
9865
|
const $scope143_id = _scope_id();
|
|
9866
|
-
_html(`<li${_attr_class("
|
|
9866
|
+
_html(`<li${_attr_class("_d4")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope143_id, "d", f)}</span></li>`);
|
|
9867
9867
|
writeScope($scope143_id, {});
|
|
9868
9868
|
}, (f) => f, $scope138_id, "d", 1, 1, 1, 0, 1);
|
|
9869
9869
|
_if(() => {
|
|
9870
9870
|
if (r.more) {
|
|
9871
9871
|
const $scope139_id = _scope_id();
|
|
9872
|
-
_html(`<li${_attr_class(["
|
|
9872
|
+
_html(`<li${_attr_class(["_d4", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
|
|
9873
9873
|
_subscribe($for_content19__r_more__closures, writeScope($scope139_id, {}));
|
|
9874
9874
|
return 0;
|
|
9875
9875
|
}
|
|
@@ -9894,27 +9894,27 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9894
9894
|
i: $for_content18__w_name__closures
|
|
9895
9895
|
});
|
|
9896
9896
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9897
|
-
_html(`<div${_attr_class("
|
|
9897
|
+
_html(`<div${_attr_class("_d5")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope67_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope67_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope67_id, "s")}</div></div>`);
|
|
9898
9898
|
_script($scope67_id, "w81");
|
|
9899
9899
|
writeScope($scope67_id, {});
|
|
9900
9900
|
return 0;
|
|
9901
9901
|
}
|
|
9902
9902
|
}, $scope0_id, "bp", 1, 1, 1, 0, 1);
|
|
9903
|
-
_html(`</div><div${_attr_class("
|
|
9903
|
+
_html(`</div><div${_attr_class("_cO")}><div${_attr_class("_dV")}><div${_attr_class("_cg")}>`);
|
|
9904
9904
|
_if(() => {
|
|
9905
9905
|
if (backupBusy === "restore") {
|
|
9906
9906
|
const $scope66_id = _scope_id();
|
|
9907
|
-
_html(`<span${_attr_class("
|
|
9907
|
+
_html(`<span${_attr_class("_c2")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9908
9908
|
writeScope($scope66_id, {});
|
|
9909
9909
|
return 0;
|
|
9910
9910
|
} else if (restoreDone) {
|
|
9911
9911
|
const $scope74_id = _scope_id();
|
|
9912
|
-
_html(`<span${_attr_class("
|
|
9912
|
+
_html(`<span${_attr_class("_cj")}>${_text_resume($scope74_id, "b", restoreDone)}</span>`);
|
|
9913
9913
|
writeScope($scope74_id, {});
|
|
9914
9914
|
return 1;
|
|
9915
9915
|
} else {
|
|
9916
9916
|
const $scope144_id = _scope_id();
|
|
9917
|
-
_html(`<span${_attr_class("
|
|
9917
|
+
_html(`<span${_attr_class("_cj")}>Load a backup file. Repos clone in the background.</span>`);
|
|
9918
9918
|
writeScope($scope144_id, {});
|
|
9919
9919
|
return 2;
|
|
9920
9920
|
}
|
|
@@ -9922,7 +9922,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9922
9922
|
_if(() => {
|
|
9923
9923
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9924
9924
|
const $scope76_id = _scope_id();
|
|
9925
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
9925
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dW")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
9926
9926
|
_script($scope76_id, "w82");
|
|
9927
9927
|
writeScope($scope76_id, {});
|
|
9928
9928
|
return 0;
|
|
@@ -9933,14 +9933,14 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9933
9933
|
if (restorePreview && backupBusy !== "restore") {
|
|
9934
9934
|
const $scope69_id = _scope_id();
|
|
9935
9935
|
const { preview } = restorePreview;
|
|
9936
|
-
_html(`<div${_attr_class("
|
|
9936
|
+
_html(`<div${_attr_class("_dX")}><p${_attr_class("_dY")}>From ${_text_resume($scope69_id, "c", preview.from.host, 2)} on ${_text_resume($scope69_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope69_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
|
|
9937
9937
|
_if(() => {
|
|
9938
9938
|
if (preview.workspaces.length) {
|
|
9939
9939
|
const $scope70_id = _scope_id();
|
|
9940
9940
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9941
9941
|
_for_of(preview.workspaces, (w) => {
|
|
9942
9942
|
const $scope71_id = _scope_id();
|
|
9943
|
-
_html(`<li><label${_attr_class(["
|
|
9943
|
+
_html(`<li><label${_attr_class(["_d7", { ["_d9"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_d8")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_cg")}><span${_attr_class("_ci")}><span${_attr_class("_ch")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
|
|
9944
9944
|
_if(() => {
|
|
9945
9945
|
if (w.status === "archived") {
|
|
9946
9946
|
const $scope148_id = _scope_id();
|
|
@@ -9962,7 +9962,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9962
9962
|
return 1;
|
|
9963
9963
|
}
|
|
9964
9964
|
}, $scope71_id, "h", 1, 1, 1, 0, 1);
|
|
9965
|
-
_html(`</span><span${_attr_class("
|
|
9965
|
+
_html(`</span><span${_attr_class("_cj")}>${_text_resume($scope71_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
|
|
9966
9966
|
_script($scope71_id, "w83");
|
|
9967
9967
|
_subscribe($restoreWs__closures, writeScope($scope71_id, {
|
|
9968
9968
|
n: w?.unknownHost,
|
|
@@ -9973,7 +9973,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9973
9973
|
return 0;
|
|
9974
9974
|
} else {
|
|
9975
9975
|
const $scope146_id = _scope_id();
|
|
9976
|
-
_html(`<p${_attr_class("
|
|
9976
|
+
_html(`<p${_attr_class("_cl")}>No workspaces in this file.</p>`);
|
|
9977
9977
|
writeScope($scope146_id, {});
|
|
9978
9978
|
return 1;
|
|
9979
9979
|
}
|
|
@@ -10013,7 +10013,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
10013
10013
|
_if(() => {
|
|
10014
10014
|
if (p.total) {
|
|
10015
10015
|
const $scope73_id = _scope_id();
|
|
10016
|
-
_html(`<li><label${_attr_class(["
|
|
10016
|
+
_html(`<li><label${_attr_class(["_d7", { ["_d9"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_d8")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_cg")}><span${_attr_class("_ch")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_cj")}>`);
|
|
10017
10017
|
_if(() => {
|
|
10018
10018
|
if (p.key === "settings") {
|
|
10019
10019
|
const $scope145_id = _scope_id();
|
|
@@ -10060,7 +10060,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
10060
10060
|
i: $for_content10__p_total__closures
|
|
10061
10061
|
});
|
|
10062
10062
|
}, "key", $scope69_id, "h");
|
|
10063
|
-
_html(`</ul><div${_attr_class("
|
|
10063
|
+
_html(`</ul><div${_attr_class("_d5")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope69_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope69_id, "k")}</div></div>`);
|
|
10064
10064
|
_script($scope69_id, "w85");
|
|
10065
10065
|
writeScope($scope69_id, {});
|
|
10066
10066
|
return 0;
|
|
@@ -10345,7 +10345,8 @@ function activeAgent(session) {
|
|
|
10345
10345
|
const command = session.state?.command?.trim();
|
|
10346
10346
|
return command && agentFromCommand(command) || session.agent;
|
|
10347
10347
|
}
|
|
10348
|
-
var
|
|
10348
|
+
var heroTag = "_eN _N _Q";
|
|
10349
|
+
var rowState = "_e0 _N";
|
|
10349
10350
|
//#endregion
|
|
10350
10351
|
//#region src/client/arm.ts
|
|
10351
10352
|
/** Two-step destructive controls: first click arms (label/colour flips),
|
|
@@ -10356,12 +10357,12 @@ var ARM_MS = 3500;
|
|
|
10356
10357
|
function disarmLater(fn) {
|
|
10357
10358
|
return setTimeout(fn, ARM_MS);
|
|
10358
10359
|
}
|
|
10359
|
-
var prChip = "
|
|
10360
|
-
var portChip = "
|
|
10360
|
+
var prChip = "_iH _u _iG";
|
|
10361
|
+
var portChip = "_iI _u _iG";
|
|
10361
10362
|
var prState = {
|
|
10362
|
-
open: "
|
|
10363
|
-
merged: "
|
|
10364
|
-
closed: "
|
|
10363
|
+
open: "_iM",
|
|
10364
|
+
merged: "_iN",
|
|
10365
|
+
closed: "_iO"
|
|
10365
10366
|
};
|
|
10366
10367
|
//#endregion
|
|
10367
10368
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10452,7 +10453,7 @@ var side_nav_chips_default = _template("x", (input) => {
|
|
|
10452
10453
|
const name = repo.full_name.split("/").at(-1);
|
|
10453
10454
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel$1(repo.full_name) : name;
|
|
10454
10455
|
}, "x4", $scope1_id);
|
|
10455
|
-
_html(`<div${_attr_class("
|
|
10456
|
+
_html(`<div${_attr_class("_iF")}>`);
|
|
10456
10457
|
_for_of(repos, (repo) => {
|
|
10457
10458
|
const $scope2_id = _scope_id();
|
|
10458
10459
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10468,11 +10469,11 @@ var side_nav_chips_default = _template("x", (input) => {
|
|
|
10468
10469
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10469
10470
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10470
10471
|
}
|
|
10471
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10472
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_iJ", { ["_iR"]: !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")}`);
|
|
10472
10473
|
_if(() => {
|
|
10473
10474
|
if (open) {
|
|
10474
10475
|
const $scope4_id = _scope_id();
|
|
10475
|
-
_html(`<a${_attr_class(["
|
|
10476
|
+
_html(`<a${_attr_class(["_iJ", "_iK"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10476
10477
|
icon_diff_default({ size: 12 });
|
|
10477
10478
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10478
10479
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10480,9 +10481,9 @@ var side_nav_chips_default = _template("x", (input) => {
|
|
|
10480
10481
|
} else {
|
|
10481
10482
|
const $scope6_id = _scope_id();
|
|
10482
10483
|
_html(`<button type=button${_attr_class([
|
|
10483
|
-
"
|
|
10484
|
-
"
|
|
10485
|
-
"
|
|
10484
|
+
"_iJ",
|
|
10485
|
+
"_iK",
|
|
10486
|
+
"_iL"
|
|
10486
10487
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10487
10488
|
icon_xmark_default({ size: 12 });
|
|
10488
10489
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10510,21 +10511,21 @@ var side_nav_chips_default = _template("x", (input) => {
|
|
|
10510
10511
|
_if(() => {
|
|
10511
10512
|
if (dead.has(p.port)) {
|
|
10512
10513
|
const $scope7_id = _scope_id();
|
|
10513
|
-
_html(`<span${_attr_class(["
|
|
10514
|
+
_html(`<span${_attr_class(["_iJ", "_iP"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10514
10515
|
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10515
10516
|
return 0;
|
|
10516
10517
|
} else {
|
|
10517
10518
|
const $scope8_id = _scope_id();
|
|
10518
|
-
_html(`<button type=button${_attr_class(["
|
|
10519
|
+
_html(`<button type=button${_attr_class(["_iJ", "_iQ"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10519
10520
|
_script($scope8_id, "x6");
|
|
10520
10521
|
writeScope($scope8_id, {});
|
|
10521
10522
|
return 1;
|
|
10522
10523
|
}
|
|
10523
10524
|
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10524
10525
|
_html(`<button type=button${_attr_class([
|
|
10525
|
-
"
|
|
10526
|
-
"
|
|
10527
|
-
"
|
|
10526
|
+
"_iJ",
|
|
10527
|
+
"_iK",
|
|
10528
|
+
"_iL",
|
|
10528
10529
|
{ ["_s"]: armedPid === p.pid }
|
|
10529
10530
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10530
10531
|
icon_xmark_default({ size: 12 });
|
|
@@ -10567,16 +10568,16 @@ var side_nav_chips_default = _template("x", (input) => {
|
|
|
10567
10568
|
});
|
|
10568
10569
|
_resume_branch($scope0_id);
|
|
10569
10570
|
});
|
|
10570
|
-
var railBtn = "
|
|
10571
|
-
var wsBtn = "
|
|
10572
|
-
var rowIcon = "
|
|
10573
|
-
var close = "
|
|
10574
|
-
var sessRename$1 = "
|
|
10575
|
-
var sessBtn$1 = "
|
|
10571
|
+
var railBtn = "_fA _l";
|
|
10572
|
+
var wsBtn = "_fF _I";
|
|
10573
|
+
var rowIcon = "_fI _4 _l";
|
|
10574
|
+
var close = "_fJ _7 _l _8";
|
|
10575
|
+
var sessRename$1 = "_fU _J";
|
|
10576
|
+
var sessBtn$1 = "_fW _I";
|
|
10576
10577
|
//#endregion
|
|
10577
10578
|
//#region src/styles/session-pop.css.ts
|
|
10578
|
-
var sessionPop = "
|
|
10579
|
-
var sessionPopBtn = "
|
|
10579
|
+
var sessionPop = "_fc __";
|
|
10580
|
+
var sessionPopBtn = "_fd _I";
|
|
10580
10581
|
//#endregion
|
|
10581
10582
|
//#region src/tags/icons/icon-manage.marko
|
|
10582
10583
|
var icon_manage_default = _template("fb", (input) => {
|
|
@@ -10605,22 +10606,22 @@ var usage_pcts_default = _template("G", (input) => {
|
|
|
10605
10606
|
if (windows.length) {
|
|
10606
10607
|
const $scope1_id = _scope_id();
|
|
10607
10608
|
_html(`<span${_attr_class([
|
|
10608
|
-
"
|
|
10609
|
+
"_hF",
|
|
10609
10610
|
input.class,
|
|
10610
|
-
{ ["
|
|
10611
|
+
{ ["_hG"]: agent.stale_seconds != null }
|
|
10611
10612
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10612
10613
|
_for_of(windows, (win$1, i) => {
|
|
10613
10614
|
const $scope2_id = _scope_id();
|
|
10614
|
-
_html(`<span${_attr_class("
|
|
10615
|
+
_html(`<span${_attr_class("_hH")}>`);
|
|
10615
10616
|
_if(() => {
|
|
10616
10617
|
if (i) {
|
|
10617
10618
|
const $scope3_id = _scope_id();
|
|
10618
|
-
_html(`<span${_attr_class("
|
|
10619
|
+
_html(`<span${_attr_class("_hK")} aria-hidden=true>·</span>`);
|
|
10619
10620
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10620
10621
|
return 0;
|
|
10621
10622
|
}
|
|
10622
10623
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10623
|
-
_html(`<span${_attr_class("
|
|
10624
|
+
_html(`<span${_attr_class("_hI")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hJ", win$1.used_percent >= 90 ? "_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>`);
|
|
10624
10625
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10625
10626
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10626
10627
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10731,7 +10732,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10731
10732
|
_if(() => {
|
|
10732
10733
|
if (input.rail) {
|
|
10733
10734
|
const $scope2_id = _scope_id();
|
|
10734
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10735
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_fy"]: 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, 27))}<span${_attr_class([
|
|
10735
10736
|
"_A",
|
|
10736
10737
|
phase[dot$1],
|
|
10737
10738
|
"_bc"
|
|
@@ -10741,34 +10742,34 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10741
10742
|
} else if (ws$1.pending) {
|
|
10742
10743
|
const $scope3_id = _scope_id();
|
|
10743
10744
|
_html(`<section${_attr_class([
|
|
10744
|
-
"
|
|
10745
|
-
"
|
|
10745
|
+
"_fC",
|
|
10746
|
+
"_fY",
|
|
10746
10747
|
{
|
|
10747
|
-
["
|
|
10748
|
-
["
|
|
10748
|
+
["_fD"]: input.railPop,
|
|
10749
|
+
["_fB"]: input.page
|
|
10749
10750
|
}
|
|
10750
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10751
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fE")}><div${_attr_class(wsBtn)}>`);
|
|
10751
10752
|
_if(() => {
|
|
10752
10753
|
if (ws$1.pending_error) {
|
|
10753
10754
|
const $scope15_id = _scope_id();
|
|
10754
10755
|
icon_warning_default({
|
|
10755
10756
|
size: 12,
|
|
10756
|
-
class: "
|
|
10757
|
+
class: "_f0"
|
|
10757
10758
|
});
|
|
10758
10759
|
$si__input_workspace && writeScope($scope15_id, {});
|
|
10759
10760
|
return 0;
|
|
10760
10761
|
} else {
|
|
10761
10762
|
const $scope16_id = _scope_id();
|
|
10762
|
-
_html(`<span${_attr_class(["_G", "
|
|
10763
|
+
_html(`<span${_attr_class(["_G", "_fZ"])}></span>`);
|
|
10763
10764
|
$si__input_workspace && writeScope($scope16_id, {});
|
|
10764
10765
|
return 1;
|
|
10765
10766
|
}
|
|
10766
10767
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10767
|
-
_html(`<span${_attr_class("
|
|
10768
|
+
_html(`<span${_attr_class("_fL")}><span${_attr_class("_fM")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_f2")}${_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>`);
|
|
10768
10769
|
_if(() => {
|
|
10769
10770
|
if (ws$1.pending_error && !retrying) {
|
|
10770
10771
|
const $scope14_id = _scope_id();
|
|
10771
|
-
_html(`<div${_attr_class("
|
|
10772
|
+
_html(`<div${_attr_class("_f1")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope14_id, "b")}<button type=button${_attr_class([
|
|
10772
10773
|
"_q",
|
|
10773
10774
|
btnSm,
|
|
10774
10775
|
{ ["_s"]: armedDelete }
|
|
@@ -10788,15 +10789,15 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10788
10789
|
const $scope4_id = _scope_id();
|
|
10789
10790
|
const sessions$1 = input.sessions || [];
|
|
10790
10791
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10791
|
-
_html(`<section${_attr_class(["
|
|
10792
|
-
["
|
|
10792
|
+
_html(`<section${_attr_class(["_fC", {
|
|
10793
|
+
["_fy"]: input.current,
|
|
10793
10794
|
["_bd"]: input.current,
|
|
10794
|
-
["
|
|
10795
|
-
["
|
|
10796
|
-
}])}><div${_attr_class("
|
|
10795
|
+
["_fD"]: input.railPop,
|
|
10796
|
+
["_fB"]: input.page
|
|
10797
|
+
}])}><div${_attr_class("_fE")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10797
10798
|
"_A",
|
|
10798
10799
|
phase[dot$1],
|
|
10799
|
-
"
|
|
10800
|
+
"_fQ"
|
|
10800
10801
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10801
10802
|
_if(() => {
|
|
10802
10803
|
if (sessions$1.length === 1) {
|
|
@@ -10809,7 +10810,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10809
10810
|
icon_agent_default({
|
|
10810
10811
|
agent: activeAgent(sessions$1[0]),
|
|
10811
10812
|
size: 12,
|
|
10812
|
-
class: "
|
|
10813
|
+
class: "_fK"
|
|
10813
10814
|
});
|
|
10814
10815
|
$si__input_sessions && writeScope($scope17_id, {
|
|
10815
10816
|
_: _scope_with_id($scope4_id),
|
|
@@ -10819,11 +10820,11 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10819
10820
|
}
|
|
10820
10821
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10821
10822
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10822
|
-
_html(`<span${_attr_class("
|
|
10823
|
+
_html(`<span${_attr_class("_fL")}><span${_attr_class("_fM")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
|
|
10823
10824
|
_if(() => {
|
|
10824
10825
|
if (input.page && metaText) {
|
|
10825
10826
|
const $scope18_id = _scope_id();
|
|
10826
|
-
_html(`<span${_attr_class("
|
|
10827
|
+
_html(`<span${_attr_class("_fP")}>${_text_resume($scope18_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10827
10828
|
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope18_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10828
10829
|
return 0;
|
|
10829
10830
|
}
|
|
@@ -10832,7 +10833,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10832
10833
|
_if(() => {
|
|
10833
10834
|
if (!input.page) {
|
|
10834
10835
|
const $scope5_id = _scope_id();
|
|
10835
|
-
_html(`<div${_attr_class("
|
|
10836
|
+
_html(`<div${_attr_class("_fG")}>`);
|
|
10836
10837
|
_if(() => {
|
|
10837
10838
|
if (input.onNewSession) {
|
|
10838
10839
|
const $scope6_id = _scope_id();
|
|
@@ -10881,7 +10882,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10881
10882
|
return 0;
|
|
10882
10883
|
}
|
|
10883
10884
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10884
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
10885
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fz"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
10885
10886
|
icon_manage_default({ size: 12 });
|
|
10886
10887
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10887
10888
|
_subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope5_id, {
|
|
@@ -10891,7 +10892,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10891
10892
|
return 0;
|
|
10892
10893
|
}
|
|
10893
10894
|
}, $scope4_id, "j", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10894
|
-
_html(`</div><div${_attr_class("
|
|
10895
|
+
_html(`</div><div${_attr_class("_fV")}>`);
|
|
10895
10896
|
_if(() => {
|
|
10896
10897
|
if (sessions$1.length === 1 && openPlan) {
|
|
10897
10898
|
const $scope11_id = _scope_id();
|
|
@@ -10899,7 +10900,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10899
10900
|
const $childScope3 = _peek_scope_id();
|
|
10900
10901
|
usage_pcts_default({
|
|
10901
10902
|
agent: openPlan,
|
|
10902
|
-
class: "
|
|
10903
|
+
class: "_fN"
|
|
10903
10904
|
});
|
|
10904
10905
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
10905
10906
|
a: _existing_scope($childScope3),
|
|
@@ -10910,14 +10911,14 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10910
10911
|
}, $scope4_id, "l");
|
|
10911
10912
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10912
10913
|
const $scope8_id = _scope_id();
|
|
10913
|
-
_html(`<div${_attr_class(["
|
|
10914
|
+
_html(`<div${_attr_class(["_fH", { ["_fy"]: s.id === input.currentTab }])}>`);
|
|
10914
10915
|
_if(() => {
|
|
10915
10916
|
if (renamingId === s.id) {
|
|
10916
10917
|
const $scope10_id = _scope_id();
|
|
10917
10918
|
_html(`<span${_attr_class([
|
|
10918
10919
|
"_A",
|
|
10919
10920
|
phase[sessionPhase(s.state)],
|
|
10920
|
-
"
|
|
10921
|
+
"_fT"
|
|
10921
10922
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
10922
10923
|
_set_serialize_reason({
|
|
10923
10924
|
1: $sg__input_sessions,
|
|
@@ -10927,7 +10928,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10927
10928
|
icon_agent_default({
|
|
10928
10929
|
agent: activeAgent(s),
|
|
10929
10930
|
size: 12,
|
|
10930
|
-
class: "
|
|
10931
|
+
class: "_fX"
|
|
10931
10932
|
});
|
|
10932
10933
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
10933
10934
|
renameValue = _new_renameValue;
|
|
@@ -10946,9 +10947,9 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10946
10947
|
icon_agent_default({
|
|
10947
10948
|
agent: activeAgent(s),
|
|
10948
10949
|
size: 12,
|
|
10949
|
-
class: "
|
|
10950
|
+
class: "_fX"
|
|
10950
10951
|
});
|
|
10951
|
-
_html(`<span${_attr_class("
|
|
10952
|
+
_html(`<span${_attr_class("_fR")}>${_text_resume($scope9_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 2))}<div${_attr_class("_fS")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
10952
10953
|
icon_edit_default({ size: 12 });
|
|
10953
10954
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
10954
10955
|
icon_xmark_default({ size: 12 });
|
|
@@ -10960,7 +10961,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10960
10961
|
const $childScope6 = _peek_scope_id();
|
|
10961
10962
|
usage_pcts_default({
|
|
10962
10963
|
agent: openPlan,
|
|
10963
|
-
class: "
|
|
10964
|
+
class: "_fO"
|
|
10964
10965
|
});
|
|
10965
10966
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
10966
10967
|
a: _existing_scope($childScope6),
|
|
@@ -11100,11 +11101,11 @@ var workspace_switcher_default = _template("I", (input) => {
|
|
|
11100
11101
|
const sessions = input.sessions || st?.sessions || [];
|
|
11101
11102
|
const manySessions = sessions.length > 1;
|
|
11102
11103
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11103
|
-
_html(`<div${_attr_class("
|
|
11104
|
+
_html(`<div${_attr_class("_eJ")}>`);
|
|
11104
11105
|
_if(() => {
|
|
11105
11106
|
if (ws) {
|
|
11106
11107
|
const $scope1_id = _scope_id();
|
|
11107
|
-
_html(`<section${_attr_class("
|
|
11108
|
+
_html(`<section${_attr_class("_eK")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_eL")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11108
11109
|
_if(() => {
|
|
11109
11110
|
if (sessions.length === 1) {
|
|
11110
11111
|
const $scope8_id = _scope_id();
|
|
@@ -11116,7 +11117,7 @@ var workspace_switcher_default = _template("I", (input) => {
|
|
|
11116
11117
|
icon_agent_default({
|
|
11117
11118
|
agent: activeAgent(sessions[0]),
|
|
11118
11119
|
size: 16,
|
|
11119
|
-
class: "
|
|
11120
|
+
class: "_eP"
|
|
11120
11121
|
});
|
|
11121
11122
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
|
|
11122
11123
|
_: _scope_with_id($scope1_id),
|
|
@@ -11125,14 +11126,14 @@ var workspace_switcher_default = _template("I", (input) => {
|
|
|
11125
11126
|
return 0;
|
|
11126
11127
|
}
|
|
11127
11128
|
}, $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);
|
|
11128
|
-
_html(`<span${_attr_class("
|
|
11129
|
+
_html(`<span${_attr_class("_eM")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class(heroTag)}>current</span><span${_attr_class("_eO")}>${_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)}`);
|
|
11129
11130
|
_if(() => {
|
|
11130
11131
|
if (manySessions) {
|
|
11131
11132
|
const $scope2_id = _scope_id();
|
|
11132
|
-
_html(`<div${_attr_class("
|
|
11133
|
+
_html(`<div${_attr_class("_eQ")}>`);
|
|
11133
11134
|
_for_of(sessions, (s) => {
|
|
11134
11135
|
const $scope3_id = _scope_id();
|
|
11135
|
-
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["
|
|
11136
|
+
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_eS", { ["_eR"]: 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)}`);
|
|
11136
11137
|
_set_serialize_reason({
|
|
11137
11138
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11138
11139
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11142,7 +11143,7 @@ var workspace_switcher_default = _template("I", (input) => {
|
|
|
11142
11143
|
agent: activeAgent(s),
|
|
11143
11144
|
size: 14
|
|
11144
11145
|
});
|
|
11145
|
-
_html(`<span${_attr_class("
|
|
11146
|
+
_html(`<span${_attr_class("_eT")}>${_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))}`);
|
|
11146
11147
|
$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, {
|
|
11147
11148
|
h: $si__input_tab && s?.id,
|
|
11148
11149
|
_: _scope_with_id($scope2_id),
|
|
@@ -11152,7 +11153,7 @@ var workspace_switcher_default = _template("I", (input) => {
|
|
|
11152
11153
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab && _subscribe($si__input_workspace__OR__input_allStatus__OR__input_sessions && $sessions__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }));
|
|
11153
11154
|
return 0;
|
|
11154
11155
|
}
|
|
11155
|
-
}, $scope1_id, "
|
|
11156
|
+
}, $scope1_id, "j", $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, 0, 1);
|
|
11156
11157
|
_set_serialize_reason($sg__input_workspace);
|
|
11157
11158
|
const $childScope3 = _peek_scope_id();
|
|
11158
11159
|
side_nav_chips_default({
|
|
@@ -11163,7 +11164,7 @@ var workspace_switcher_default = _template("I", (input) => {
|
|
|
11163
11164
|
_script($scope1_id, "I1");
|
|
11164
11165
|
writeScope($scope1_id, {
|
|
11165
11166
|
_: $si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab && _scope_with_id($scope0_id),
|
|
11166
|
-
|
|
11167
|
+
k: $si__input_workspace__OR__input_allStatus && _existing_scope($childScope3)
|
|
11167
11168
|
});
|
|
11168
11169
|
return 0;
|
|
11169
11170
|
}
|
|
@@ -11171,7 +11172,7 @@ var workspace_switcher_default = _template("I", (input) => {
|
|
|
11171
11172
|
_if(() => {
|
|
11172
11173
|
if (input.ids.length) {
|
|
11173
11174
|
const $scope4_id = _scope_id();
|
|
11174
|
-
_html(`<div${_attr_class("
|
|
11175
|
+
_html(`<div${_attr_class("_eU")}>Other workspaces</div><div${_attr_class("_eV")}>`);
|
|
11175
11176
|
_for_of(input.ids, (id) => {
|
|
11176
11177
|
const $scope5_id = _scope_id();
|
|
11177
11178
|
const w = input.byId.get(id);
|
|
@@ -11221,7 +11222,7 @@ var workspace_switcher_default = _template("I", (input) => {
|
|
|
11221
11222
|
const rp = phaseOf(rs);
|
|
11222
11223
|
const rowSessions = rs?.sessions || [];
|
|
11223
11224
|
const many = rowSessions.length > 1;
|
|
11224
|
-
_html(`<div${_attr_class("
|
|
11225
|
+
_html(`<div${_attr_class("_eW")}><a${_attr("href", `/w/${id}`)}${_attr_class("_eX")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope7_id, "c", $sg__input_allStatus__OR__input_ids)}`);
|
|
11225
11226
|
_if(() => {
|
|
11226
11227
|
if (rowSessions.length === 1) {
|
|
11227
11228
|
const $scope9_id = _scope_id();
|
|
@@ -11233,7 +11234,7 @@ var workspace_switcher_default = _template("I", (input) => {
|
|
|
11233
11234
|
icon_agent_default({
|
|
11234
11235
|
agent: activeAgent(rowSessions[0]),
|
|
11235
11236
|
size: 16,
|
|
11236
|
-
class: "
|
|
11237
|
+
class: "_eZ"
|
|
11237
11238
|
});
|
|
11238
11239
|
$si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
|
|
11239
11240
|
_: _scope_with_id($scope7_id),
|
|
@@ -11242,7 +11243,7 @@ var workspace_switcher_default = _template("I", (input) => {
|
|
|
11242
11243
|
return 0;
|
|
11243
11244
|
}
|
|
11244
11245
|
}, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
|
|
11245
|
-
_html(`<span${_attr_class("
|
|
11246
|
+
_html(`<span${_attr_class("_eY")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
|
|
11246
11247
|
_if(() => {
|
|
11247
11248
|
if (many) {
|
|
11248
11249
|
const $scope10_id = _scope_id();
|
|
@@ -11253,7 +11254,7 @@ var workspace_switcher_default = _template("I", (input) => {
|
|
|
11253
11254
|
}, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
|
|
11254
11255
|
icon_chevron_right_default({
|
|
11255
11256
|
size: 14,
|
|
11256
|
-
class: "
|
|
11257
|
+
class: "_e1"
|
|
11257
11258
|
});
|
|
11258
11259
|
_html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
|
|
11259
11260
|
_set_serialize_reason($sg__input_ids);
|
|
@@ -11279,11 +11280,11 @@ var workspace_switcher_default = _template("I", (input) => {
|
|
|
11279
11280
|
f: $si__input_ids__OR__input_byId && w?.name,
|
|
11280
11281
|
_: _scope_with_id($scope4_id)
|
|
11281
11282
|
}));
|
|
11282
|
-
}, (id) => id, $scope4_id, "
|
|
11283
|
+
}, (id) => id, $scope4_id, "b", $sg__input_ids, $sg__input_ids, $sg__input_ids, "</div>");
|
|
11283
11284
|
$si__input_allStatus__OR__input_ids__OR__input_byId && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
11284
11285
|
return 0;
|
|
11285
11286
|
}
|
|
11286
|
-
}, $scope0_id, "c", $sg__input_ids, _serialize_guard($scope0_reason, 15), $sg__input_workspace__OR__input_ids_length
|
|
11287
|
+
}, $scope0_id, "c", $sg__input_ids, _serialize_guard($scope0_reason, 15), $sg__input_workspace__OR__input_ids_length);
|
|
11287
11288
|
_html("</div>");
|
|
11288
11289
|
_serialize_if($scope0_reason, 9) && writeScope($scope0_id, {
|
|
11289
11290
|
g: _serialize_if($scope0_reason, 5) && input.allStatus,
|
|
@@ -12802,8 +12803,8 @@ function markdownFence(body) {
|
|
|
12802
12803
|
function indent(text) {
|
|
12803
12804
|
return text.split("\n").map((line) => line ? ` ${line}` : line).join("\n");
|
|
12804
12805
|
}
|
|
12805
|
-
var treeToggle = "
|
|
12806
|
-
var pageTitle = "
|
|
12806
|
+
var treeToggle = "_go _5 _l";
|
|
12807
|
+
var pageTitle = "_gv _ed";
|
|
12807
12808
|
//#endregion
|
|
12808
12809
|
//#region src/tags/diff-send.marko
|
|
12809
12810
|
var diff_send_default = _template("i", (input) => {
|
|
@@ -12813,7 +12814,7 @@ var diff_send_default = _template("i", (input) => {
|
|
|
12813
12814
|
let sendTarget = null;
|
|
12814
12815
|
const sessions = input.sessions || [];
|
|
12815
12816
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
12816
|
-
_html(`<span${_attr_class("
|
|
12817
|
+
_html(`<span${_attr_class("_hL")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
12817
12818
|
_if(() => {
|
|
12818
12819
|
if (sessions.length === 1) {
|
|
12819
12820
|
const $scope1_id = _scope_id();
|
|
@@ -12823,11 +12824,11 @@ var diff_send_default = _template("i", (input) => {
|
|
|
12823
12824
|
return 0;
|
|
12824
12825
|
} else if (sessions.length) {
|
|
12825
12826
|
const $scope2_id = _scope_id();
|
|
12826
|
-
_html(`<span${_attr_class("
|
|
12827
|
+
_html(`<span${_attr_class("_hM")}><button type=button${_attr_class(["_r", "_hN"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
12827
12828
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
12828
12829
|
sendTarget = _new_sendTarget;
|
|
12829
12830
|
}, "i0", $scope2_id), () => {
|
|
12830
|
-
_html(`<select${_attr_class("
|
|
12831
|
+
_html(`<select${_attr_class("_hO")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
12831
12832
|
_for_of(sessions, (s) => {
|
|
12832
12833
|
const $scope3_id = _scope_id();
|
|
12833
12834
|
_html(`<option${_attr_option_value(s.id)}>${_text_resume($scope3_id, "b", s.title || s.agent, $sg__input_sessions)}</option>${_el_resume($scope3_id, "a", $sg__input_sessions)}`);
|
|
@@ -13057,8 +13058,8 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13057
13058
|
}
|
|
13058
13059
|
return shortHeadFallback(head);
|
|
13059
13060
|
}
|
|
13060
|
-
var repoWorktree = "
|
|
13061
|
-
var repoTitle = "
|
|
13061
|
+
var repoWorktree = "_iV _y";
|
|
13062
|
+
var repoTitle = "_i1 _x";
|
|
13062
13063
|
//#endregion
|
|
13063
13064
|
//#region src/tags/review-head.marko
|
|
13064
13065
|
var review_head_default = _template("t", (input) => {
|
|
@@ -13066,7 +13067,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13066
13067
|
const $scope0_id = _scope_id();
|
|
13067
13068
|
const repo = input.repo;
|
|
13068
13069
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
13069
|
-
_html(`<div${_attr_class("
|
|
13070
|
+
_html(`<div${_attr_class("_iS")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}><button type=button${_attr_class("_iU")} title="Scroll to this section"><span${_attr_class(repoWorktree)}>${_text_resume($scope0_id, "d", repo.worktree, $sg__input_repo)}</span></button>${_el_resume($scope0_id, "b")}`);
|
|
13070
13071
|
_if(() => {
|
|
13071
13072
|
if (repo.pr) {
|
|
13072
13073
|
const $scope6_id = _scope_id();
|
|
@@ -13075,19 +13076,19 @@ var review_head_default = _template("t", (input) => {
|
|
|
13075
13076
|
return 0;
|
|
13076
13077
|
} else {
|
|
13077
13078
|
const $scope7_id = _scope_id();
|
|
13078
|
-
_html(`<span${_attr_class([repoTitle, "
|
|
13079
|
+
_html(`<span${_attr_class([repoTitle, "_i2"])}>${_text_resume($scope7_id, "b", repoLabel$1(repo.full_name), $sg__input_repo)}</span>`);
|
|
13079
13080
|
$si__input_repo && writeScope($scope7_id, { _: _scope_with_id($scope0_id) });
|
|
13080
13081
|
return 1;
|
|
13081
13082
|
}
|
|
13082
13083
|
}, $scope0_id, "e", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew);
|
|
13083
|
-
_html(`<span${_attr_class("
|
|
13084
|
+
_html(`<span${_attr_class("_i3")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_i4"])}>${_text_resume($scope0_id, "h", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_i6"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_i5"])}>${_text_resume($scope0_id, "k", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13084
13085
|
_if(() => {
|
|
13085
13086
|
if (compare$1.topic) {
|
|
13086
13087
|
const $scope10_id = _scope_id();
|
|
13087
13088
|
_html(`<span${_attr_class([
|
|
13088
13089
|
"_N",
|
|
13089
13090
|
tone.accent,
|
|
13090
|
-
"
|
|
13091
|
+
"_i7"
|
|
13091
13092
|
])}>${_text_resume($scope10_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13092
13093
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope10_id, { _: _scope_with_id($scope0_id) });
|
|
13093
13094
|
return 0;
|
|
@@ -13097,7 +13098,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13097
13098
|
_if(() => {
|
|
13098
13099
|
if (repo.rev) {
|
|
13099
13100
|
const $scope8_id = _scope_id();
|
|
13100
|
-
_html(`<span${_attr_class(["_N", "
|
|
13101
|
+
_html(`<span${_attr_class(["_N", "_i8"])} title="One commit against its parent">commit ${_text_resume($scope8_id, "b", shortSha(repo.rev, 7), $sg__input_repo * 2)}</span>`);
|
|
13101
13102
|
$si__input_repo && writeScope($scope8_id, { _: _scope_with_id($scope0_id) });
|
|
13102
13103
|
return 0;
|
|
13103
13104
|
}
|
|
@@ -13108,7 +13109,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13108
13109
|
_html(`<button type=button${_attr_class([
|
|
13109
13110
|
"_N",
|
|
13110
13111
|
tone.warn,
|
|
13111
|
-
"
|
|
13112
|
+
"_i8"
|
|
13112
13113
|
])}${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}. Reload to re-ask GitHub`)}${_attr("disabled", input.loading)}>behind GitHub ${_text_resume($scope1_id, "b", shortSha(repo.head, 7), $sg__input_repo * 2)} → ${_text_resume($scope1_id, "c", shortSha(repo.pr.headRefOid, 7), $sg__input_repo * 2)}</button>${_el_resume($scope1_id, "a")}`);
|
|
13113
13114
|
_script($scope1_id, "t0");
|
|
13114
13115
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -13118,7 +13119,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13118
13119
|
_if(() => {
|
|
13119
13120
|
if (repo.contained && input.fileCount) {
|
|
13120
13121
|
const $scope9_id = _scope_id();
|
|
13121
|
-
_html(`<span${_attr_class(["_N", "
|
|
13122
|
+
_html(`<span${_attr_class(["_N", "_i8"])}${_attr("title", `${repo.pr ? `#${repo.pr.number}` : repo.branch} is already in ${repo.base}; showing the working tree only`)}>already in ${_text_resume($scope9_id, "b", repo.base, $sg__input_repo * 2)}</span>${_el_resume($scope9_id, "a", $sg__input_repo)}`);
|
|
13122
13123
|
$si__input_repo__OR__input_fileCount && writeScope($scope9_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
13123
13124
|
return 0;
|
|
13124
13125
|
}
|
|
@@ -13126,16 +13127,16 @@ var review_head_default = _template("t", (input) => {
|
|
|
13126
13127
|
_if(() => {
|
|
13127
13128
|
if (input.localDiffers) {
|
|
13128
13129
|
const $scope2_id = _scope_id();
|
|
13129
|
-
_html(`<span${_attr_class(["_N", "
|
|
13130
|
+
_html(`<span${_attr_class(["_N", "_i8"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope2_id, "b", shortBranch(repo.branch, input.workspaceBranch, input.workspaceName), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}${_text_resume($scope2_id, "c", shortSha(repo.localHead, 7), $sg__input_repo * 2)}</span>${_el_resume($scope2_id, "a", $sg__input_repo)}`);
|
|
13130
13131
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && writeScope($scope2_id, { _: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _scope_with_id($scope0_id) });
|
|
13131
13132
|
return 0;
|
|
13132
13133
|
}
|
|
13133
13134
|
}, $scope0_id, "p", _serialize_guard($scope0_reason, 9), _serialize_guard($scope0_reason, 14), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew, 0, 1);
|
|
13134
|
-
_html(`<span${_attr_class("
|
|
13135
|
+
_html(`<span${_attr_class("_iW")}><span>${_text_resume($scope0_id, "r", input.fileCount, $sg__input_fileCount)} file${_text_resume($scope0_id, "s", input.fileCount === 1 ? "" : "s", $sg__input_fileCount * 2)}</span>`);
|
|
13135
13136
|
_if(() => {
|
|
13136
13137
|
if (input.additions || input.deletions) {
|
|
13137
13138
|
const $scope3_id = _scope_id();
|
|
13138
|
-
_html(`<span${_attr_class("
|
|
13139
|
+
_html(`<span${_attr_class("_iX")}>+${_text_resume($scope3_id, "b", input.additions, _serialize_guard($scope0_reason, 15) * 2)}</span><span${_attr_class("_iY")}>−${_text_resume($scope3_id, "d", input.deletions, _serialize_guard($scope0_reason, 16) * 2)}</span>`);
|
|
13139
13140
|
$si__input_additions__OR__input_deletions && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
13140
13141
|
return 0;
|
|
13141
13142
|
}
|
|
@@ -13143,7 +13144,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13143
13144
|
_if(() => {
|
|
13144
13145
|
if (input.hiddenCount) {
|
|
13145
13146
|
const $scope4_id = _scope_id();
|
|
13146
|
-
_html(`<button type=button${_attr_class("
|
|
13147
|
+
_html(`<button type=button${_attr_class("_i0")} title="Filtered out of the list — show every file">${_text_resume($scope4_id, "b", input.hiddenCount, $sg__input_hiddenCount)} hidden</button>${_el_resume($scope4_id, "a")}`);
|
|
13147
13148
|
_script($scope4_id, "t1");
|
|
13148
13149
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
13149
13150
|
return 0;
|
|
@@ -13152,7 +13153,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13152
13153
|
_if(() => {
|
|
13153
13154
|
if (input.newCount || input.onlyNew) {
|
|
13154
13155
|
const $scope5_id = _scope_id();
|
|
13155
|
-
_html(`<button type=button${_attr_class(["
|
|
13156
|
+
_html(`<button type=button${_attr_class(["_i0", { ["_iZ"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope5_id, "b", input.newCount, _serialize_guard($scope0_reason, 18))} new</button>${_el_resume($scope5_id, "a")}`);
|
|
13156
13157
|
_script($scope5_id, "t2");
|
|
13157
13158
|
writeScope($scope5_id, { _: _scope_with_id($scope0_id) });
|
|
13158
13159
|
return 0;
|
|
@@ -13192,7 +13193,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13192
13193
|
b4: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && compare$1?.topic
|
|
13193
13194
|
});
|
|
13194
13195
|
});
|
|
13195
|
-
var fileFilter = "
|
|
13196
|
+
var fileFilter = "_jq _n";
|
|
13196
13197
|
//#endregion
|
|
13197
13198
|
//#region src/tags/file-filter.marko
|
|
13198
13199
|
var file_filter_default = _template("j", (input) => {
|
|
@@ -13222,7 +13223,7 @@ var file_filter_default = _template("j", (input) => {
|
|
|
13222
13223
|
pending = v;
|
|
13223
13224
|
box.timer = setTimeout(flush, 150);
|
|
13224
13225
|
}, "j2", $scope0_id);
|
|
13225
|
-
_html(`<div${_attr_class("
|
|
13226
|
+
_html(`<div${_attr_class("_jp")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
13226
13227
|
type(v);
|
|
13227
13228
|
}, "j0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
13228
13229
|
_script($scope0_id, "j3");
|
|
@@ -13242,9 +13243,11 @@ var file_filter_default = _template("j", (input) => {
|
|
|
13242
13243
|
//#endregion
|
|
13243
13244
|
//#region src/tags/review-tree.marko
|
|
13244
13245
|
var review_tree_default = _template("u", (input) => {
|
|
13245
|
-
const $scope0_reason = _scope_reason(), $sg__input_sections = _serialize_guard($scope0_reason, 2), $sg__input_sections_length = _serialize_guard($scope0_reason, 3), $si__input_sections_length = _serialize_if($scope0_reason, 3)
|
|
13246
|
+
const $scope0_reason = _scope_reason(), $sg__input_sections = _serialize_guard($scope0_reason, 2), $sg__input_sections_length = _serialize_guard($scope0_reason, 3), $si__input_sections_length = _serialize_if($scope0_reason, 3);
|
|
13246
13247
|
const $scope0_id = _scope_id();
|
|
13248
|
+
const $closed__closures = /* @__PURE__ */ new Set();
|
|
13247
13249
|
let filter$1 = input.filter;
|
|
13250
|
+
let closed$4 = /* @__PURE__ */ new Set();
|
|
13248
13251
|
let width = diffTreeWidth();
|
|
13249
13252
|
let dragging$1 = false;
|
|
13250
13253
|
const dragBox = { id: -1 };
|
|
@@ -13266,7 +13269,7 @@ var review_tree_default = _template("u", (input) => {
|
|
|
13266
13269
|
dragging$1 = false;
|
|
13267
13270
|
if (width != null) setDiffTreeWidth(width);
|
|
13268
13271
|
}, "u2", $scope0_id);
|
|
13269
|
-
_html(`<div${_attr_class(["
|
|
13272
|
+
_html(`<div${_attr_class(["_ir", { ["_iq"]: input.open === false }])}${width != null ? _attr_style(`--tree-w:${width}px`) : ""}><div${_attr_class(["_iE", { ["_iD"]: dragging$1 }])} title="Drag to resize"></div>${_el_resume($scope0_id, "b")}<div${_attr_class("_is")}>`);
|
|
13270
13273
|
_set_serialize_reason(2);
|
|
13271
13274
|
const $childScope = _peek_scope_id();
|
|
13272
13275
|
file_filter_default({
|
|
@@ -13275,47 +13278,54 @@ var review_tree_default = _template("u", (input) => {
|
|
|
13275
13278
|
filter$1 = _new_filter;
|
|
13276
13279
|
}, "u3", $scope0_id)
|
|
13277
13280
|
});
|
|
13278
|
-
_html(`</div><div${_attr_class("
|
|
13281
|
+
_html(`</div><div${_attr_class("_it")}>`);
|
|
13279
13282
|
_for_of(input.sections, (section) => {
|
|
13280
13283
|
const $scope1_id = _scope_id();
|
|
13281
|
-
_html(`<div${_attr_class(["
|
|
13284
|
+
_html(`<div${_attr_class(["_iv", { ["_iu"]: input.sections.length === 1 }])}${_attr("data-section", section.id)}>`);
|
|
13282
13285
|
_if(() => {
|
|
13283
13286
|
if (input.sections.length > 1) {
|
|
13284
13287
|
const $scope2_id = _scope_id();
|
|
13285
|
-
_html(`<
|
|
13286
|
-
|
|
13288
|
+
_html(`<button type=button${_attr_class("_iw")}${_attr("title", section.label)} aria-expanded=${closed$4.has(section.id) ? "false" : "true"}><span${_attr_class(["_ix", { ["_iy"]: !closed$4.has(section.id) }])} aria-hidden=true>`);
|
|
13289
|
+
icon_chevron_right_default({ size: 12 });
|
|
13290
|
+
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("_iz")}>${_text_resume($scope2_id, "e", section.label, $sg__input_sections)}</span><span${_attr_class("_iA")}>${_text_resume($scope2_id, "g", section.files.length, $sg__input_sections)}</span></button>${_el_resume($scope2_id, "a")}`);
|
|
13291
|
+
_script($scope2_id, "u4");
|
|
13292
|
+
_subscribe($closed__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }));
|
|
13287
13293
|
return 0;
|
|
13288
13294
|
}
|
|
13289
13295
|
}, $scope1_id, "b", $sg__input_sections, $sg__input_sections_length, $sg__input_sections_length, 0, 1);
|
|
13290
|
-
_html(`<div${_attr_class(["
|
|
13291
|
-
|
|
13292
|
-
|
|
13293
|
-
|
|
13296
|
+
_html(`<div${_attr_class(["_iC", { ["_iB"]: input.sections.length === 1 }])}${_attr("data-tree", section.id)}${_attr("hidden", closed$4.has(section.id))}></div>${_el_resume($scope1_id, "c")}</div>${_el_resume($scope1_id, "a", $sg__input_sections)}`);
|
|
13297
|
+
writeScope($scope1_id, {
|
|
13298
|
+
f: section?.id,
|
|
13299
|
+
h: $si__input_sections_length && section?.label,
|
|
13300
|
+
j: $si__input_sections_length && section?.files?.length,
|
|
13301
|
+
_: _scope_with_id($scope0_id)
|
|
13294
13302
|
});
|
|
13295
|
-
}, "id", $scope0_id, "e",
|
|
13303
|
+
}, "id", $scope0_id, "e", 1, $sg__input_sections, $sg__input_sections, "</div>", 1);
|
|
13296
13304
|
_html(`</div>${_el_resume($scope0_id, "a")}`);
|
|
13297
|
-
_script($scope0_id, "u4");
|
|
13298
13305
|
_script($scope0_id, "u5");
|
|
13306
|
+
_script($scope0_id, "u6");
|
|
13299
13307
|
writeScope($scope0_id, {
|
|
13300
13308
|
h: _serialize_if($scope0_reason, 1) && input.filter,
|
|
13301
13309
|
i: _serialize_if($scope0_reason, 0) && input.filterChange,
|
|
13302
13310
|
l: input.sections,
|
|
13303
|
-
m: $
|
|
13311
|
+
m: _serialize_if($scope0_reason, 2) && input.sections?.length,
|
|
13304
13312
|
n: input.commentCounts,
|
|
13305
13313
|
o: input.newKeys,
|
|
13306
13314
|
p: input.onSelect,
|
|
13307
13315
|
q: filter$1,
|
|
13308
|
-
t:
|
|
13309
|
-
|
|
13310
|
-
|
|
13311
|
-
z:
|
|
13312
|
-
a0:
|
|
13316
|
+
t: closed$4,
|
|
13317
|
+
u: width,
|
|
13318
|
+
x: dragBox.id,
|
|
13319
|
+
z: startDrag,
|
|
13320
|
+
a0: moveDrag,
|
|
13321
|
+
a1: endDrag,
|
|
13313
13322
|
r: input.filterChange || void 0,
|
|
13314
|
-
d: _existing_scope($childScope)
|
|
13323
|
+
d: _existing_scope($childScope),
|
|
13324
|
+
a3: $closed__closures
|
|
13315
13325
|
});
|
|
13316
13326
|
_resume_branch($scope0_id);
|
|
13317
13327
|
});
|
|
13318
|
-
var sheetDir = "
|
|
13328
|
+
var sheetDir = "_jj _bb";
|
|
13319
13329
|
//#endregion
|
|
13320
13330
|
//#region src/tags/icons/icon-comment.marko
|
|
13321
13331
|
var icon_comment_default = _template("X", (input) => {
|
|
@@ -13388,9 +13398,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13388
13398
|
_if(() => {
|
|
13389
13399
|
if (open) {
|
|
13390
13400
|
const $scope1_id = _scope_id();
|
|
13391
|
-
_html(`<div${_attr_class("
|
|
13401
|
+
_html(`<div${_attr_class("_ja")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_jb")} role=dialog aria-label="Jump to file"><div${_attr_class("_jc")}><strong${_attr_class("_i_")}>Files</strong><span${_attr_class("_jd")}>${_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, "_i9"])} title=Close aria-label=Close>`);
|
|
13392
13402
|
icon_xmark_default({ size: 16 });
|
|
13393
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
13403
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_jl")}>`);
|
|
13394
13404
|
_set_serialize_reason(2);
|
|
13395
13405
|
const $childScope = _peek_scope_id();
|
|
13396
13406
|
file_filter_default({
|
|
@@ -13399,13 +13409,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13399
13409
|
filter = _new_filter;
|
|
13400
13410
|
}, "g1", $scope1_id)
|
|
13401
13411
|
});
|
|
13402
|
-
_html(`</div><div${_attr_class("
|
|
13412
|
+
_html(`</div><div${_attr_class("_je")}>`);
|
|
13403
13413
|
_for_of(groups, (group) => {
|
|
13404
13414
|
const $scope2_id = _scope_id();
|
|
13405
|
-
_html(`<div${_attr_class("
|
|
13415
|
+
_html(`<div${_attr_class("_jf")}><div${_attr_class("_jg")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
13406
13416
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
13407
13417
|
const $scope3_id = _scope_id();
|
|
13408
|
-
_html(`<div${_attr_class("
|
|
13418
|
+
_html(`<div${_attr_class("_jh")}>`);
|
|
13409
13419
|
_if(() => {
|
|
13410
13420
|
if (dir) {
|
|
13411
13421
|
const $scope5_id = _scope_id();
|
|
@@ -13416,11 +13426,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13416
13426
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
13417
13427
|
_for_of(files, ({ file, name }) => {
|
|
13418
13428
|
const $scope4_id = _scope_id();
|
|
13419
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
13429
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_ji", "_y"])}><span${_attr_class("_ba")}${_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("_jk")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
13420
13430
|
_if(() => {
|
|
13421
13431
|
if (newKeys.has(file.key)) {
|
|
13422
13432
|
const $scope6_id = _scope_id();
|
|
13423
|
-
_html(`<span${_attr_class(["_A", "
|
|
13433
|
+
_html(`<span${_attr_class(["_A", "_jn"])} title="Changed since your last visit"></span>`);
|
|
13424
13434
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
13425
13435
|
return 0;
|
|
13426
13436
|
}
|
|
@@ -13430,7 +13440,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13430
13440
|
const $scope7_id = _scope_id();
|
|
13431
13441
|
icon_comment_default({
|
|
13432
13442
|
size: 12,
|
|
13433
|
-
class: "
|
|
13443
|
+
class: "_jo"
|
|
13434
13444
|
});
|
|
13435
13445
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
13436
13446
|
return 0;
|
|
@@ -13455,7 +13465,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13455
13465
|
_if(() => {
|
|
13456
13466
|
if (!input.files.length) {
|
|
13457
13467
|
const $scope8_id = _scope_id();
|
|
13458
|
-
_html(`<p${_attr_class("
|
|
13468
|
+
_html(`<p${_attr_class("_jm")}>No files match.</p>`);
|
|
13459
13469
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
13460
13470
|
return 0;
|
|
13461
13471
|
}
|
|
@@ -13872,11 +13882,11 @@ var review_view_default = _template("v", (input) => {
|
|
|
13872
13882
|
else viewBox.scrollToLine(hit.key, hit.line, hit.side);
|
|
13873
13883
|
}, 0);
|
|
13874
13884
|
};
|
|
13875
|
-
_html(`<div${_attr_class("
|
|
13885
|
+
_html(`<div${_attr_class("_gl")}><div${_attr_class("_gq")}><div${_attr_class("_gZ")}><div${_attr_class("_gr")}><div${_attr_class(["_gB", { ["_gA"]: !comments.length }])}>`);
|
|
13876
13886
|
_if(() => {
|
|
13877
13887
|
if (input.onExit) {
|
|
13878
13888
|
const $scope1_id = _scope_id();
|
|
13879
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
13889
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_gs"])} title="Back to terminal (⌘/Ctrl+Shift+D)">`);
|
|
13880
13890
|
icon_back_default({ size: 14 });
|
|
13881
13891
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 2))}`);
|
|
13882
13892
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 2) && _scope_with_id($scope0_id) });
|
|
@@ -13887,7 +13897,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
13887
13897
|
_if(() => {
|
|
13888
13898
|
if (comments.length) {
|
|
13889
13899
|
const $scope2_id = _scope_id();
|
|
13890
|
-
_html(`<span${_attr_class("
|
|
13900
|
+
_html(`<span${_attr_class("_gu")}>${_text_resume($scope2_id, "b", comments.length)} comment${_text_resume($scope2_id, "c", comments.length === 1 ? "" : "s", 2)}</span><span${_attr_class("_gt")}>`);
|
|
13891
13901
|
_set_serialize_reason(_serialize_guard($scope0_reason, 8));
|
|
13892
13902
|
const $childScope = _peek_scope_id();
|
|
13893
13903
|
diff_send_default({
|
|
@@ -13900,14 +13910,14 @@ var review_view_default = _template("v", (input) => {
|
|
|
13900
13910
|
return 0;
|
|
13901
13911
|
}
|
|
13902
13912
|
}, $scope0_id, "h");
|
|
13903
|
-
_html(`</div>${_el_resume($scope0_id, "e")}<div${_attr_class(["
|
|
13913
|
+
_html(`</div>${_el_resume($scope0_id, "e")}<div${_attr_class(["_gp", "_gW"])}>`);
|
|
13904
13914
|
_if(() => {
|
|
13905
13915
|
if (hasFiles) {
|
|
13906
13916
|
const $scope12_id = _scope_id();
|
|
13907
13917
|
_html(`<button${_attr_class([
|
|
13908
13918
|
treeToggle,
|
|
13909
|
-
"
|
|
13910
|
-
{ ["
|
|
13919
|
+
"_gn",
|
|
13920
|
+
{ ["_gm"]: treeOpen }
|
|
13911
13921
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
13912
13922
|
icon_sidebar_default({ size: 14 });
|
|
13913
13923
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -13916,7 +13926,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
13916
13926
|
return 0;
|
|
13917
13927
|
}
|
|
13918
13928
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
13919
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
13929
|
+
_html(`<button${_attr_class([iconBtnRow, "_gn"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
13920
13930
|
_set_serialize_reason(1);
|
|
13921
13931
|
const $childScope2 = _peek_scope_id();
|
|
13922
13932
|
icon_refresh_default({
|
|
@@ -13927,7 +13937,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
13927
13937
|
_if(() => {
|
|
13928
13938
|
if (hasFiles) {
|
|
13929
13939
|
const $scope13_id = _scope_id();
|
|
13930
|
-
_html(`<button${_attr_class(["_q", "
|
|
13940
|
+
_html(`<button${_attr_class(["_q", "_gK"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
|
|
13931
13941
|
_script($scope13_id, "v40");
|
|
13932
13942
|
writeScope($scope13_id, {});
|
|
13933
13943
|
return 0;
|
|
@@ -13935,16 +13945,16 @@ var review_view_default = _template("v", (input) => {
|
|
|
13935
13945
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
13936
13946
|
_html(`<span${_attr_class([
|
|
13937
13947
|
"_o",
|
|
13938
|
-
"
|
|
13939
|
-
"
|
|
13948
|
+
"_gC",
|
|
13949
|
+
"_gX"
|
|
13940
13950
|
])}>`);
|
|
13941
13951
|
_attr_select_value($scope0_id, "o", rev ? `rev:${rev}` : scope, _resume(function(v) {
|
|
13942
13952
|
pickCompare(v);
|
|
13943
13953
|
}, "v0", $scope0_id), () => {
|
|
13944
13954
|
_html(`<select${_attr_class([
|
|
13945
13955
|
"_p",
|
|
13946
|
-
"
|
|
13947
|
-
"
|
|
13956
|
+
"_gD",
|
|
13957
|
+
"_gY"
|
|
13948
13958
|
])} aria-label=Compare${_attr("disabled", loading)}><option${_attr_option_value("committed")}>Committed</option><option${_attr_option_value("working")}>Working tree</option><option${_attr_option_value("dirty")}>Uncommitted</option>`);
|
|
13949
13959
|
_if(() => {
|
|
13950
13960
|
if (commitOptions.length) {
|
|
@@ -13961,7 +13971,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
13961
13971
|
}, $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
13962
13972
|
_html("</select>");
|
|
13963
13973
|
});
|
|
13964
|
-
_html(`${_el_resume($scope0_id, "o")}</span> <div${_attr_class(["
|
|
13974
|
+
_html(`${_el_resume($scope0_id, "o")}</span> <div${_attr_class(["_gy", { ["_gx"]: !findOpen }])}>`);
|
|
13965
13975
|
_set_serialize_reason(2);
|
|
13966
13976
|
const $childScope3 = _peek_scope_id();
|
|
13967
13977
|
let findFocus = diff_find_default({
|
|
@@ -13984,8 +13994,8 @@ var review_view_default = _template("v", (input) => {
|
|
|
13984
13994
|
const $scope14_id = _scope_id();
|
|
13985
13995
|
_html(`<button${_attr_class([
|
|
13986
13996
|
iconBtnRow,
|
|
13987
|
-
"
|
|
13988
|
-
"
|
|
13997
|
+
"_gw",
|
|
13998
|
+
"_gn"
|
|
13989
13999
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
13990
14000
|
icon_search_default({ size: 14 });
|
|
13991
14001
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -13994,7 +14004,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
13994
14004
|
return 0;
|
|
13995
14005
|
}
|
|
13996
14006
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
13997
|
-
_html(`</div></div><div${_attr_class("
|
|
14007
|
+
_html(`</div></div><div${_attr_class("_gM")}>`);
|
|
13998
14008
|
_if(() => {
|
|
13999
14009
|
if (error) {
|
|
14000
14010
|
const $scope6_id = _scope_id();
|
|
@@ -14039,7 +14049,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
14039
14049
|
_if(() => {
|
|
14040
14050
|
if (!repos && loading) {
|
|
14041
14051
|
const $scope17_id = _scope_id();
|
|
14042
|
-
_html(`<div${_attr_class("
|
|
14052
|
+
_html(`<div${_attr_class("_gF")} aria-hidden=true><div${_attr_class(["_gG", "_gH"])}></div><div${_attr_class(["_gG", "_gI"])}></div><div${_attr_class(["_gG", "_gJ"])}></div></div>`);
|
|
14043
14053
|
writeScope($scope17_id, {});
|
|
14044
14054
|
return 0;
|
|
14045
14055
|
}
|
|
@@ -14047,12 +14057,12 @@ var review_view_default = _template("v", (input) => {
|
|
|
14047
14057
|
_if(() => {
|
|
14048
14058
|
if (repos && !allFiles.length) {
|
|
14049
14059
|
const $scope11_id = _scope_id();
|
|
14050
|
-
_html(`<p${_attr_class("
|
|
14060
|
+
_html(`<p${_attr_class("_cm")}>${_text_resume($scope11_id, "b", rev ? "This commit is not in any of these repos." : repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
|
|
14051
14061
|
writeScope($scope11_id, {});
|
|
14052
14062
|
return 0;
|
|
14053
14063
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
14054
14064
|
const $scope8_id = _scope_id();
|
|
14055
|
-
_html(`<p${_attr_class("
|
|
14065
|
+
_html(`<p${_attr_class("_cm")}>${_text_resume($scope8_id, "b", findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${fileFilter}".`)}</p>`);
|
|
14056
14066
|
writeScope($scope8_id, {});
|
|
14057
14067
|
return 1;
|
|
14058
14068
|
}
|
|
@@ -14061,7 +14071,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
14061
14071
|
_if(() => {
|
|
14062
14072
|
if (shownRepos.length) {
|
|
14063
14073
|
const $scope3_id = _scope_id();
|
|
14064
|
-
_html(`<div${_attr_class("
|
|
14074
|
+
_html(`<div${_attr_class("_gL")}>`);
|
|
14065
14075
|
_for_of(shownRepos, (repo) => {
|
|
14066
14076
|
const $scope4_id = _scope_id();
|
|
14067
14077
|
const st = statsFor(repo);
|
|
@@ -14138,7 +14148,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
14138
14148
|
return 0;
|
|
14139
14149
|
}
|
|
14140
14150
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
14141
|
-
_html(`</div>${_el_resume($scope0_id, "c")}<div${_attr_class("
|
|
14151
|
+
_html(`</div>${_el_resume($scope0_id, "c")}<div${_attr_class("_gN")} data-diff-main></div>${_el_resume($scope0_id, "a0")}</div>`);
|
|
14142
14152
|
_set_serialize_reason(26);
|
|
14143
14153
|
const $childScope6 = _peek_scope_id();
|
|
14144
14154
|
review_tree_default({
|
|
@@ -14419,12 +14429,12 @@ function parseInvite(text) {
|
|
|
14419
14429
|
}
|
|
14420
14430
|
//#endregion
|
|
14421
14431
|
//#region src/tags/manage-workspace.css.ts
|
|
14422
|
-
var pageMeta = "
|
|
14423
|
-
var pathMeta = "
|
|
14424
|
-
var skillRow = "
|
|
14425
|
-
var skillName = "
|
|
14426
|
-
var skillDesc = "
|
|
14427
|
-
var skillEnd = "
|
|
14432
|
+
var pageMeta = "_f3 _ef";
|
|
14433
|
+
var pathMeta = "_f6 _y";
|
|
14434
|
+
var skillRow = "_gb _f7";
|
|
14435
|
+
var skillName = "_gd _f8";
|
|
14436
|
+
var skillDesc = "_gg _f9";
|
|
14437
|
+
var skillEnd = "_gh _f_";
|
|
14428
14438
|
//#endregion
|
|
14429
14439
|
//#region src/tags/icons/icon-clipboard.marko
|
|
14430
14440
|
var icon_clipboard_default = _template("W", (input) => {
|
|
@@ -14442,8 +14452,8 @@ var icon_clipboard_default = _template("W", (input) => {
|
|
|
14442
14452
|
});
|
|
14443
14453
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
14444
14454
|
});
|
|
14445
|
-
var resultRow = "
|
|
14446
|
-
var resultBranch = "
|
|
14455
|
+
var resultRow = "_h9 _I";
|
|
14456
|
+
var resultBranch = "_ia _4 _l";
|
|
14447
14457
|
//#endregion
|
|
14448
14458
|
//#region src/tags/icons/icon-branch.marko
|
|
14449
14459
|
var icon_branch_default = _template("S", (input) => {
|
|
@@ -14473,11 +14483,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
14473
14483
|
let branchFilter = "";
|
|
14474
14484
|
let reloadTick = 0;
|
|
14475
14485
|
let refreshing = false;
|
|
14476
|
-
_html(`<div${_attr_class("
|
|
14486
|
+
_html(`<div${_attr_class("_ic")}>`);
|
|
14477
14487
|
_if(() => {
|
|
14478
14488
|
{
|
|
14479
14489
|
const $scope4_id = _scope_id();
|
|
14480
|
-
_html(`<p${_attr_class("
|
|
14490
|
+
_html(`<p${_attr_class("_cl")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
14481
14491
|
writeScope($scope4_id, {});
|
|
14482
14492
|
return 0;
|
|
14483
14493
|
}
|
|
@@ -14578,21 +14588,21 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14578
14588
|
_resume_branch($scope9_id);
|
|
14579
14589
|
}, $scope0_id) };
|
|
14580
14590
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
14581
|
-
_html(`<div${_attr_class([compact ? "
|
|
14582
|
-
["
|
|
14583
|
-
["
|
|
14591
|
+
_html(`<div${_attr_class([compact ? "_cw" : "_h1", {
|
|
14592
|
+
["_cx"]: compact && !input$2.open,
|
|
14593
|
+
["_cy"]: input$2.pinned
|
|
14584
14594
|
}])}>`);
|
|
14585
14595
|
_if(() => {
|
|
14586
14596
|
if (!compact && ssoPending.length) {
|
|
14587
14597
|
const $scope11_id = _scope_id();
|
|
14588
|
-
_html(`<div${_attr_class("
|
|
14598
|
+
_html(`<div${_attr_class("_h4")}>`);
|
|
14589
14599
|
ssoBlock.content({});
|
|
14590
14600
|
_html("</div>");
|
|
14591
14601
|
writeScope($scope11_id, {});
|
|
14592
14602
|
return 0;
|
|
14593
14603
|
}
|
|
14594
14604
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
14595
|
-
_html(`<div${!compact && input$2.action ? _attr_class("
|
|
14605
|
+
_html(`<div${!compact && input$2.action ? _attr_class("_h2") : _attr_class("_h3")}><label${_attr_class(["_1", compact && "_cz"])}>`);
|
|
14596
14606
|
icon_search_default({
|
|
14597
14607
|
size: 14,
|
|
14598
14608
|
class: "_2"
|
|
@@ -14604,7 +14614,7 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14604
14614
|
}, "s0", $scope0_id))}${_attr_class([
|
|
14605
14615
|
compact ? "_Z" : inputLg,
|
|
14606
14616
|
"_3",
|
|
14607
|
-
compact && "
|
|
14617
|
+
compact && "_cA"
|
|
14608
14618
|
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "f")}</label>${_el_resume($scope0_id, "d", $sg__input_compact)}`);
|
|
14609
14619
|
_if(() => {
|
|
14610
14620
|
if (!compact && input$2.action) {
|
|
@@ -14618,7 +14628,7 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14618
14628
|
_if(() => {
|
|
14619
14629
|
if (compact) {
|
|
14620
14630
|
const $scope2_id = _scope_id();
|
|
14621
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
14631
|
+
_html(`<button${_attr_class([iconBtnRow, "_cB"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
14622
14632
|
icon_xmark_default({ size: 14 });
|
|
14623
14633
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
14624
14634
|
_script($scope2_id, "s14");
|
|
@@ -14626,11 +14636,11 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14626
14636
|
return 0;
|
|
14627
14637
|
}
|
|
14628
14638
|
}, $scope0_id, "h", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
14629
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
14639
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_h5"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
14630
14640
|
_if(() => {
|
|
14631
14641
|
if (compact && ssoPending.length) {
|
|
14632
14642
|
const $scope12_id = _scope_id();
|
|
14633
|
-
_html(`<div${_attr_class("
|
|
14643
|
+
_html(`<div${_attr_class("_h4")}>`);
|
|
14634
14644
|
ssoBlock.content({});
|
|
14635
14645
|
_html("</div>");
|
|
14636
14646
|
writeScope($scope12_id, {});
|
|
@@ -14640,16 +14650,16 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14640
14650
|
_if(() => {
|
|
14641
14651
|
if (pasted) {
|
|
14642
14652
|
const $scope3_id = _scope_id();
|
|
14643
|
-
_html(`<ul${_attr_class("
|
|
14653
|
+
_html(`<ul${_attr_class("_h6")}><li><div${_attr_class(["_h8", "_h7"])}><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)`)}>`);
|
|
14644
14654
|
icon_plus_default({
|
|
14645
14655
|
size: 12,
|
|
14646
|
-
class: "
|
|
14656
|
+
class: "_ie"
|
|
14647
14657
|
});
|
|
14648
|
-
_html(`<span${_attr_class("
|
|
14658
|
+
_html(`<span${_attr_class("_if")}>${_text_resume($scope3_id, "f", repoLabel$1(pasted))}</span></button>${_el_resume($scope3_id, "c")}`);
|
|
14649
14659
|
_if(() => {
|
|
14650
14660
|
if (pastedForkable) {
|
|
14651
14661
|
const $scope10_id = _scope_id();
|
|
14652
|
-
_html(`<button${_attr_class(["
|
|
14662
|
+
_html(`<button${_attr_class(["_ib", { ["_h_"]: 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"}>`);
|
|
14653
14663
|
_if(() => {
|
|
14654
14664
|
if (pasteWillFork) {
|
|
14655
14665
|
const $scope14_id = _scope_id();
|
|
@@ -14669,7 +14679,7 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14669
14679
|
return 0;
|
|
14670
14680
|
}
|
|
14671
14681
|
}, $scope3_id, "g", 1, 1, 1, 0, 1);
|
|
14672
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
14682
|
+
_html(`<button${_attr_class([resultBranch, { ["_h_"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
14673
14683
|
icon_branch_default({ size: 12 });
|
|
14674
14684
|
_html(`</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
14675
14685
|
_if(() => {
|
|
@@ -14696,7 +14706,7 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14696
14706
|
return 0;
|
|
14697
14707
|
} else if (filter && !catalog) {
|
|
14698
14708
|
const $scope13_id = _scope_id();
|
|
14699
|
-
_html(`<p${_attr_class("
|
|
14709
|
+
_html(`<p${_attr_class("_cl")}>Loading repos…</p>`);
|
|
14700
14710
|
writeScope($scope13_id, {});
|
|
14701
14711
|
return 1;
|
|
14702
14712
|
}
|
|
@@ -14704,15 +14714,15 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14704
14714
|
_if(() => {
|
|
14705
14715
|
if (results.length) {
|
|
14706
14716
|
const $scope5_id = _scope_id();
|
|
14707
|
-
_html(`<ul${_attr_class("
|
|
14717
|
+
_html(`<ul${_attr_class("_h6")}>`);
|
|
14708
14718
|
_for_of(results, (repo, i) => {
|
|
14709
14719
|
const $scope6_id = _scope_id();
|
|
14710
|
-
_html(`<li><div${_attr_class(["
|
|
14720
|
+
_html(`<li><div${_attr_class(["_h8", { ["_h7"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
14711
14721
|
icon_plus_default({
|
|
14712
14722
|
size: 12,
|
|
14713
|
-
class: "
|
|
14723
|
+
class: "_ie"
|
|
14714
14724
|
});
|
|
14715
|
-
_html(`<span${_attr_class("
|
|
14725
|
+
_html(`<span${_attr_class("_if")}>${_text_resume($scope6_id, "e", repoLabel$1(repo.nameWithOwner))}</span></button>${_el_resume($scope6_id, "b")}<button${_attr_class([resultBranch, { ["_h_"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
14716
14726
|
icon_branch_default({ size: 12 });
|
|
14717
14727
|
_html(`</button>${_el_resume($scope6_id, "f")}</div>${_el_resume($scope6_id, "a")}`);
|
|
14718
14728
|
_if(() => {
|
|
@@ -14747,7 +14757,7 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14747
14757
|
return 0;
|
|
14748
14758
|
} else if (filter && catalog && !pasted) {
|
|
14749
14759
|
const $scope8_id = _scope_id();
|
|
14750
|
-
_html(`<p${_attr_class("
|
|
14760
|
+
_html(`<p${_attr_class("_cl")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
14751
14761
|
writeScope($scope8_id, {});
|
|
14752
14762
|
return 1;
|
|
14753
14763
|
}
|
|
@@ -14980,7 +14990,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
14980
14990
|
meta: attrTag({ content: _content("n20", () => {
|
|
14981
14991
|
_scope_reason();
|
|
14982
14992
|
const $scope13_id = _scope_id();
|
|
14983
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
14993
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_f4")}>${_text_resume($scope13_id, "c", ws.name)}</span>`);
|
|
14984
14994
|
_if(() => {
|
|
14985
14995
|
if (ws.status !== "active") {
|
|
14986
14996
|
const $scope17_id = _scope_id();
|
|
@@ -14989,7 +14999,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
14989
14999
|
return 0;
|
|
14990
15000
|
}
|
|
14991
15001
|
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
14992
|
-
_html(`<span${_attr_class("
|
|
15002
|
+
_html(`<span${_attr_class("_f5")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_text_resume($scope13_id, "g", ws.display_path || ws.path)}</span></span>${_el_resume($scope13_id, "a")}`);
|
|
14993
15003
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope13_id, {
|
|
14994
15004
|
_: _scope_with_id($scope0_id),
|
|
14995
15005
|
Ccf: 1
|
|
@@ -15069,12 +15079,12 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15069
15079
|
_if(() => {
|
|
15070
15080
|
if (pendingAction && actionStep) {
|
|
15071
15081
|
const $scope10_id = _scope_id();
|
|
15072
|
-
_html(`<p${_attr_class("
|
|
15082
|
+
_html(`<p${_attr_class("_b_")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
15073
15083
|
writeScope($scope10_id, {});
|
|
15074
15084
|
return 0;
|
|
15075
15085
|
}
|
|
15076
15086
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
15077
|
-
_html(`<section${_attr_class("
|
|
15087
|
+
_html(`<section${_attr_class("_ca")}><div${_attr_class("_cb")}><h2${_attr_class("_co")}>Repos</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_gk"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
15078
15088
|
icon_plus_default({ size: 16 });
|
|
15079
15089
|
_html(`</button>${_el_resume($scope0_id, "m")}`);
|
|
15080
15090
|
_set_serialize_reason(26);
|
|
@@ -15108,7 +15118,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15108
15118
|
_html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class(list$2)}>`);
|
|
15109
15119
|
_for_of(ws.repos, (row) => {
|
|
15110
15120
|
const $scope1_id = _scope_id();
|
|
15111
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
15121
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_cg")}><span${_attr_class(["_ch", "_y"])}>${_text_resume($scope1_id, "d", row.worktree)}/</span><span${_attr_class("_ci")}><a${_attr_class(["_cj", "_K"])}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_text_resume($scope1_id, "g", repoLabel$1(row.full_name))}</a>${_el_resume($scope1_id, "f")}`);
|
|
15112
15122
|
_if(() => {
|
|
15113
15123
|
if (row.base_branch !== row.default_branch) {
|
|
15114
15124
|
const $scope20_id = _scope_id();
|
|
@@ -15129,7 +15139,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15129
15139
|
} else {
|
|
15130
15140
|
const $scope9_id = _scope_id();
|
|
15131
15141
|
_html(`<button${_attr_class([
|
|
15132
|
-
"
|
|
15142
|
+
"_ck",
|
|
15133
15143
|
"_8",
|
|
15134
15144
|
"_9",
|
|
15135
15145
|
{ ["_s"]: confirmingRemove === row.full_name }
|
|
@@ -15162,13 +15172,13 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15162
15172
|
}, "full_name", $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
15163
15173
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
15164
15174
|
const $scope24_id = _scope_id();
|
|
15165
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
15175
|
+
_html(`<li${_attr_class([flatCardRow, "_ce"])}><span${_attr_class("_G")}></span><div${_attr_class("_cg")}><span${_attr_class("_cj")}>Adding ${_text_resume($scope24_id, "e", name, 2)}…</span></div></li>`);
|
|
15166
15176
|
writeScope($scope24_id, {});
|
|
15167
15177
|
}, (n) => n, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
15168
15178
|
_if(() => {
|
|
15169
15179
|
if (!ws.repos.length && !busy.size) {
|
|
15170
15180
|
const $scope25_id = _scope_id();
|
|
15171
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
15181
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_cj")}>No repos yet. Add one to start.</span></li>`);
|
|
15172
15182
|
writeScope($scope25_id, {});
|
|
15173
15183
|
return 0;
|
|
15174
15184
|
}
|
|
@@ -15186,18 +15196,18 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15186
15196
|
_if(() => {
|
|
15187
15197
|
if (allSkills.length) {
|
|
15188
15198
|
const $scope2_id = _scope_id();
|
|
15189
|
-
_html(`<section${_attr_class("
|
|
15199
|
+
_html(`<section${_attr_class("_ca")}><div${_attr_class("_cb")}><h2${_attr_class("_co")}>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)}>`);
|
|
15190
15200
|
_for_of(allSkills, ({ s, linked }) => {
|
|
15191
15201
|
const $scope3_id = _scope_id();
|
|
15192
15202
|
const isBusy = skillBusy.has(s.id);
|
|
15193
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
15203
|
+
_html(`<li${_attr_class([skillRow, { ["_gc"]: !linked }])}><span${_attr_class("_ge")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
15194
15204
|
_if(() => {
|
|
15195
15205
|
if (s.worktree && !s.broken) {
|
|
15196
15206
|
const $scope26_id = _scope_id();
|
|
15197
15207
|
_html(`<span${_attr_class([
|
|
15198
15208
|
"_N",
|
|
15199
15209
|
"_y",
|
|
15200
|
-
"
|
|
15210
|
+
"_gf"
|
|
15201
15211
|
])}${linked ? _attr("title", `Linked from ${s.worktree}/ in this workspace`) : _attr("title", `Ships in ${s.worktree}/ — not linked into this workspace yet`)}>${_text_resume($scope26_id, "b", s.worktree)}/</span>${_el_resume($scope26_id, "a")}`);
|
|
15202
15212
|
writeScope($scope26_id, {});
|
|
15203
15213
|
return 0;
|
|
@@ -15249,10 +15259,10 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15249
15259
|
if (linked) {
|
|
15250
15260
|
const $scope11_id = _scope_id();
|
|
15251
15261
|
_html(`<button${_attr_class([
|
|
15252
|
-
"
|
|
15262
|
+
"_ck",
|
|
15253
15263
|
"_8",
|
|
15254
15264
|
"_9",
|
|
15255
|
-
"
|
|
15265
|
+
"_gi",
|
|
15256
15266
|
{ ["_s"]: confirmingSkill === s.id }
|
|
15257
15267
|
])} type=button${_attr("disabled", isBusy)}${isBusy ? " aria-busy=true" : ""}${confirmingSkill === s.id ? _attr("title", `Remove ${s.name} from this workspace?`) : s.linked ? _attr("title", `Stop using ${s.name} here`) : _attr("title", `Remove ${s.name}`)}>`);
|
|
15258
15268
|
_if(() => {
|
|
@@ -15302,20 +15312,20 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15302
15312
|
_if(() => {
|
|
15303
15313
|
if (running.length) {
|
|
15304
15314
|
const $scope15_id = _scope_id();
|
|
15305
|
-
_html(`<section${_attr_class("
|
|
15315
|
+
_html(`<section${_attr_class("_ca")}><div${_attr_class("_cb")}><h2${_attr_class("_co")}>Running</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
15306
15316
|
_for_of(running, (p) => {
|
|
15307
15317
|
const $scope16_id = _scope_id();
|
|
15308
|
-
_html(`<li${_attr_class("
|
|
15318
|
+
_html(`<li${_attr_class("_f7")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_f8"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_f9"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_f_")}>`);
|
|
15309
15319
|
_for_of(p.ports, (port) => {
|
|
15310
15320
|
const $scope34_id = _scope_id();
|
|
15311
15321
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope34_id, "b", port, 2)}</button>${_el_resume($scope34_id, "a")}`);
|
|
15312
15322
|
_script($scope34_id, "n27");
|
|
15313
15323
|
writeScope($scope34_id, { d: port });
|
|
15314
15324
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
15315
|
-
_html(`<span${_attr_class(["_y", "
|
|
15316
|
-
"
|
|
15325
|
+
_html(`<span${_attr_class(["_y", "_ga"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
15326
|
+
"_ck",
|
|
15317
15327
|
"_8",
|
|
15318
|
-
"
|
|
15328
|
+
"_gj"
|
|
15319
15329
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
15320
15330
|
icon_xmark_default({ size: 14 });
|
|
15321
15331
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -15396,14 +15406,14 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15396
15406
|
});
|
|
15397
15407
|
_resume_branch($scope0_id);
|
|
15398
15408
|
});
|
|
15399
|
-
var curRepos = "
|
|
15400
|
-
var curRow = "
|
|
15401
|
-
var curEmpty = "
|
|
15402
|
-
var curBase = "
|
|
15403
|
-
var archived = "
|
|
15404
|
-
var archivedHint = "
|
|
15405
|
-
var archivedList = "
|
|
15406
|
-
var archivedRow = "
|
|
15409
|
+
var curRepos = "_c0 _cf _cN _cY";
|
|
15410
|
+
var curRow = "_fk _c1 _cZ";
|
|
15411
|
+
var curEmpty = "_fm _cl";
|
|
15412
|
+
var curBase = "_fp _Y _X";
|
|
15413
|
+
var archived = "_fu _ca";
|
|
15414
|
+
var archivedHint = "_fv _X";
|
|
15415
|
+
var archivedList = "_c0 _cf _cN _cY";
|
|
15416
|
+
var archivedRow = "_fw _c1 _cZ";
|
|
15407
15417
|
//#endregion
|
|
15408
15418
|
//#region src/tags/icons/icon-group.marko
|
|
15409
15419
|
var icon_group_default = _template("db", (input) => {
|
|
@@ -15423,8 +15433,8 @@ var icon_group_default = _template("db", (input) => {
|
|
|
15423
15433
|
});
|
|
15424
15434
|
//#endregion
|
|
15425
15435
|
//#region src/tags/join-dialog.css.ts
|
|
15426
|
-
var dlg = "
|
|
15427
|
-
var hint = "
|
|
15436
|
+
var dlg = "_hP _g2";
|
|
15437
|
+
var hint = "_hQ _X";
|
|
15428
15438
|
//#endregion
|
|
15429
15439
|
//#region src/tags/join-dialog.marko
|
|
15430
15440
|
var api$3;
|
|
@@ -15553,26 +15563,26 @@ var join_dialog_default = _template("k", (input) => {
|
|
|
15553
15563
|
content: _content("k12", () => {
|
|
15554
15564
|
_scope_reason();
|
|
15555
15565
|
const $scope1_id = _scope_id();
|
|
15556
|
-
_html(`<h2${_attr_class("
|
|
15566
|
+
_html(`<h2${_attr_class("_g3")}${_attr("id", titleId)}>Join a workspace</h2><p${_attr_class(hint)}>Paste an invite: the same repos, on your own lane of their branch.</p><textarea${_attr_class([
|
|
15557
15567
|
"_Z",
|
|
15558
15568
|
"_y",
|
|
15559
|
-
"
|
|
15569
|
+
"_hS"
|
|
15560
15570
|
])} 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")}`);
|
|
15561
15571
|
_if(() => {
|
|
15562
15572
|
if (parsed.error) {
|
|
15563
15573
|
const $scope8_id = _scope_id();
|
|
15564
|
-
_html(`<p${_attr_class([hint, "
|
|
15574
|
+
_html(`<p${_attr_class([hint, "_hR"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
15565
15575
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
15566
15576
|
return 0;
|
|
15567
15577
|
} else if (parsed.ok) {
|
|
15568
15578
|
const $scope3_id = _scope_id();
|
|
15569
|
-
_html(`<ul${_attr_class("
|
|
15579
|
+
_html(`<ul${_attr_class("_hT")}>`);
|
|
15570
15580
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
15571
15581
|
const $scope9_id = _scope_id();
|
|
15572
|
-
_html(`<li${_attr_class("
|
|
15582
|
+
_html(`<li${_attr_class("_hU")}><span${_attr_class("_hV")}>${_text_resume($scope9_id, "c", repoLabel$1(fullName))}</span></li>`);
|
|
15573
15583
|
writeScope($scope9_id, {});
|
|
15574
15584
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
15575
|
-
_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("
|
|
15585
|
+
_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("_hW")}><span${_attr_class("_co")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
15576
15586
|
name = _new_name;
|
|
15577
15587
|
}, "k1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
15578
15588
|
_script($scope3_id, "k8");
|
|
@@ -15609,10 +15619,10 @@ var join_dialog_default = _template("k", (input) => {
|
|
|
15609
15619
|
_if(() => {
|
|
15610
15620
|
if (busy && steps$2.length) {
|
|
15611
15621
|
const $scope6_id = _scope_id();
|
|
15612
|
-
_html(`<ul${_attr_class("
|
|
15622
|
+
_html(`<ul${_attr_class("_hX")}>`);
|
|
15613
15623
|
_for_of(steps$2, (step$2, i) => {
|
|
15614
15624
|
const $scope7_id = _scope_id();
|
|
15615
|
-
_html(`<li${_attr_class(["
|
|
15625
|
+
_html(`<li${_attr_class(["_hZ", { ["_hY"]: i === steps$2.length - 1 }])}>`);
|
|
15616
15626
|
_if(() => {
|
|
15617
15627
|
if (i === steps$2.length - 1) {
|
|
15618
15628
|
const $scope10_id = _scope_id();
|
|
@@ -15621,7 +15631,7 @@ var join_dialog_default = _template("k", (input) => {
|
|
|
15621
15631
|
return 0;
|
|
15622
15632
|
} else {
|
|
15623
15633
|
const $scope11_id = _scope_id();
|
|
15624
|
-
_html(`<span${_attr_class("
|
|
15634
|
+
_html(`<span${_attr_class("_h0")}>`);
|
|
15625
15635
|
icon_check_default({ size: 14 });
|
|
15626
15636
|
_html("</span>");
|
|
15627
15637
|
writeScope($scope11_id, {});
|
|
@@ -15828,16 +15838,16 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
15828
15838
|
return 0;
|
|
15829
15839
|
}
|
|
15830
15840
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
15831
|
-
_html(`<label${_attr_class("
|
|
15841
|
+
_html(`<label${_attr_class("_fg")}><span${_attr_class("_co")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
15832
15842
|
name = _new_name;
|
|
15833
|
-
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("
|
|
15843
|
+
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_ca")}><div${_attr_class("_fi")}><h2${_attr_class("_co")}>Repos</h2></div><ul${_attr_class(curRepos)}>`);
|
|
15834
15844
|
_for_of(selected, (repo) => {
|
|
15835
15845
|
const $scope4_id = _scope_id();
|
|
15836
|
-
_html(`<li${_attr_class("
|
|
15846
|
+
_html(`<li${_attr_class("_fj")}><div${_attr_class(curRow)}><span${_attr_class("_fn")}>${_text_resume($scope4_id, "d", repoLabel$1(repo.fullName))}</span>`);
|
|
15837
15847
|
_if(() => {
|
|
15838
15848
|
if (repo.fork !== void 0) {
|
|
15839
15849
|
const $scope5_id = _scope_id();
|
|
15840
|
-
_html(`<button${_attr_class(["
|
|
15850
|
+
_html(`<button${_attr_class(["_fq", { ["_fo"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
|
|
15841
15851
|
_if(() => {
|
|
15842
15852
|
if (repo.fork) {
|
|
15843
15853
|
const $scope14_id = _scope_id();
|
|
@@ -15860,7 +15870,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
15860
15870
|
_html(`<button${_attr_class([
|
|
15861
15871
|
curBase,
|
|
15862
15872
|
"_y",
|
|
15863
|
-
{ ["
|
|
15873
|
+
{ ["_fo"]: branchesFor === repo.fullName }
|
|
15864
15874
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
15865
15875
|
icon_branch_default({ size: 12 });
|
|
15866
15876
|
_html(`${_text_resume($scope4_id, "h", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope4_id, "f")}<button${_attr_class([iconBtnXs, "_8"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -15869,7 +15879,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
15869
15879
|
_if(() => {
|
|
15870
15880
|
if (branchesFor === repo.fullName) {
|
|
15871
15881
|
const $scope10_id = _scope_id();
|
|
15872
|
-
_html(`<div${_attr_class("
|
|
15882
|
+
_html(`<div${_attr_class("_fl")}>`);
|
|
15873
15883
|
const $childScope2 = _peek_scope_id();
|
|
15874
15884
|
branch_pick_default({
|
|
15875
15885
|
repo: repo.fullName,
|
|
@@ -15920,7 +15930,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
15920
15930
|
action: attrTag({ content: _content("p21", () => {
|
|
15921
15931
|
_scope_reason();
|
|
15922
15932
|
const $scope2_id = _scope_id();
|
|
15923
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15933
|
+
_html(`<button${_attr_class([iconBtnRow, "_fh"])} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
15924
15934
|
_set_serialize_reason(1);
|
|
15925
15935
|
const $childScope3 = _peek_scope_id();
|
|
15926
15936
|
icon_refresh_default({
|
|
@@ -15941,10 +15951,10 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
15941
15951
|
_if(() => {
|
|
15942
15952
|
if (busy && steps.length) {
|
|
15943
15953
|
const $scope11_id = _scope_id();
|
|
15944
|
-
_html(`<ul${_attr_class("
|
|
15954
|
+
_html(`<ul${_attr_class("_fr")}>`);
|
|
15945
15955
|
_for_of(steps, (step, i) => {
|
|
15946
15956
|
const $scope12_id = _scope_id();
|
|
15947
|
-
_html(`<li${_attr_class(["
|
|
15957
|
+
_html(`<li${_attr_class(["_fx", { ["_fs"]: i === steps.length - 1 }])}>`);
|
|
15948
15958
|
_if(() => {
|
|
15949
15959
|
if (i === steps.length - 1) {
|
|
15950
15960
|
const $scope17_id = _scope_id();
|
|
@@ -15953,7 +15963,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
15953
15963
|
return 0;
|
|
15954
15964
|
} else {
|
|
15955
15965
|
const $scope18_id = _scope_id();
|
|
15956
|
-
_html(`<span${_attr_class("
|
|
15966
|
+
_html(`<span${_attr_class("_ft")}>`);
|
|
15957
15967
|
icon_check_default({ size: 14 });
|
|
15958
15968
|
_html("</span>");
|
|
15959
15969
|
writeScope($scope18_id, {});
|
|
@@ -15967,18 +15977,18 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
15967
15977
|
return 0;
|
|
15968
15978
|
}
|
|
15969
15979
|
}, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
15970
|
-
_html(`<div${_attr_class("
|
|
15980
|
+
_html(`<div${_attr_class("_fe")}><button type=button${_attr_class([
|
|
15971
15981
|
btnLg,
|
|
15972
15982
|
"_r",
|
|
15973
|
-
"
|
|
15983
|
+
"_ff"
|
|
15974
15984
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "t", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "s")}</div>`);
|
|
15975
15985
|
_if(() => {
|
|
15976
15986
|
if (archived$1.length) {
|
|
15977
15987
|
const $scope6_id = _scope_id();
|
|
15978
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
15988
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fi")}><h2${_attr_class("_co")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope6_id, "e", archived$1.length, $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class(archivedList)}>`);
|
|
15979
15989
|
_for_of(archived$1, (ws) => {
|
|
15980
15990
|
const $scope7_id = _scope_id();
|
|
15981
|
-
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("
|
|
15991
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_cg")}><span${_attr_class("_ch")}>${_text_resume($scope7_id, "d", ws.name, $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_y"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope7_id, "f", ws.display_path || ws.path, $sg__input_workspaces)}</span>${_el_resume($scope7_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnSm)}${_attr("disabled", busy || !!restoring)}>`);
|
|
15982
15992
|
_if(() => {
|
|
15983
15993
|
if (restoring === ws.id) {
|
|
15984
15994
|
const $scope19_id = _scope_id();
|
|
@@ -16257,7 +16267,7 @@ var term_default = _template("D", (input) => {
|
|
|
16257
16267
|
}
|
|
16258
16268
|
}, "D9", $scope0_id);
|
|
16259
16269
|
input.keys;
|
|
16260
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
16270
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_e2")}><div${_attr_class("_e3")}></div>${_el_resume($scope0_id, "b")}`);
|
|
16261
16271
|
_if(() => {
|
|
16262
16272
|
if (findOpen) {
|
|
16263
16273
|
const $scope4_id = _scope_id();
|
|
@@ -16284,7 +16294,7 @@ var term_default = _template("D", (input) => {
|
|
|
16284
16294
|
_if(() => {
|
|
16285
16295
|
if (uploading) {
|
|
16286
16296
|
const $scope5_id = _scope_id();
|
|
16287
|
-
_html(`<div${_attr_class("
|
|
16297
|
+
_html(`<div${_attr_class("_e9")}>uploading…</div>`);
|
|
16288
16298
|
writeScope($scope5_id, {});
|
|
16289
16299
|
return 0;
|
|
16290
16300
|
}
|
|
@@ -16292,7 +16302,7 @@ var term_default = _template("D", (input) => {
|
|
|
16292
16302
|
_if(() => {
|
|
16293
16303
|
if (copiedFlash) {
|
|
16294
16304
|
const $scope6_id = _scope_id();
|
|
16295
|
-
_html(`<div${_attr_class("
|
|
16305
|
+
_html(`<div${_attr_class("_e8")}>Copied</div>`);
|
|
16296
16306
|
writeScope($scope6_id, {});
|
|
16297
16307
|
return 0;
|
|
16298
16308
|
}
|
|
@@ -16301,7 +16311,7 @@ var term_default = _template("D", (input) => {
|
|
|
16301
16311
|
_if(() => {
|
|
16302
16312
|
if (trapOpen) {
|
|
16303
16313
|
const $scope3_id = _scope_id();
|
|
16304
|
-
_html(`<div${_attr_class("
|
|
16314
|
+
_html(`<div${_attr_class("_e_")}><div${_attr_class("_fa")}><p${_attr_class("_fb")}>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")}`);
|
|
16305
16315
|
_script($scope3_id, "D16");
|
|
16306
16316
|
_script($scope3_id, "D17");
|
|
16307
16317
|
writeScope($scope3_id, {});
|
|
@@ -16564,10 +16574,10 @@ var work_view_default = _template("H", (input) => {
|
|
|
16564
16574
|
}
|
|
16565
16575
|
}, "H14", $scope0_id);
|
|
16566
16576
|
const navShown = view === "nav" && input.navState?.view === "nav";
|
|
16567
|
-
_html(`<div${_attr_class(["
|
|
16568
|
-
["
|
|
16569
|
-
["
|
|
16570
|
-
}])}><div${_attr_class("
|
|
16577
|
+
_html(`<div${_attr_class(["_cr", {
|
|
16578
|
+
["_cp"]: navShown,
|
|
16579
|
+
["_cq"]: !input.active
|
|
16580
|
+
}])}><div${_attr_class("_cs")}>`);
|
|
16571
16581
|
_if(() => {
|
|
16572
16582
|
if (error) {
|
|
16573
16583
|
const $scope8_id = _scope_id();
|
|
@@ -16590,7 +16600,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
16590
16600
|
_if(() => {
|
|
16591
16601
|
if (diffMounted && ws) {
|
|
16592
16602
|
const $scope1_id = _scope_id();
|
|
16593
|
-
_html(`<div${_attr_class("
|
|
16603
|
+
_html(`<div${_attr_class("_ct")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
16594
16604
|
_set_serialize_reason({
|
|
16595
16605
|
0: $sg__input_workspace,
|
|
16596
16606
|
1: $sg__input_workspace,
|
|
@@ -16652,7 +16662,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
16652
16662
|
_if(() => {
|
|
16653
16663
|
if (manageMounted && ws) {
|
|
16654
16664
|
const $scope2_id = _scope_id();
|
|
16655
|
-
_html(`<div${_attr_class("
|
|
16665
|
+
_html(`<div${_attr_class("_ct")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
16656
16666
|
_set_serialize_reason({
|
|
16657
16667
|
0: $sg__input_workspace,
|
|
16658
16668
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -16678,7 +16688,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
16678
16688
|
_if(() => {
|
|
16679
16689
|
if (settingsMounted) {
|
|
16680
16690
|
const $scope3_id = _scope_id();
|
|
16681
|
-
_html(`<div${_attr_class("
|
|
16691
|
+
_html(`<div${_attr_class("_ct")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
16682
16692
|
_set_serialize_reason({
|
|
16683
16693
|
0: _serialize_guard($scope0_reason, 0),
|
|
16684
16694
|
1: $sg__input_workspace,
|
|
@@ -16720,7 +16730,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
16720
16730
|
_if(() => {
|
|
16721
16731
|
if (newMounted) {
|
|
16722
16732
|
const $scope4_id = _scope_id();
|
|
16723
|
-
_html(`<div${_attr_class("
|
|
16733
|
+
_html(`<div${_attr_class("_ct")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
16724
16734
|
_set_serialize_reason({
|
|
16725
16735
|
0: 1,
|
|
16726
16736
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -16745,13 +16755,13 @@ var work_view_default = _template("H", (input) => {
|
|
|
16745
16755
|
return 0;
|
|
16746
16756
|
}
|
|
16747
16757
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
16748
|
-
_html(`<div${_attr_class("
|
|
16758
|
+
_html(`<div${_attr_class("_cu")}${_attr("inert", view !== "term")}>`);
|
|
16749
16759
|
_if(() => {
|
|
16750
16760
|
if (ws && shownSessions) {
|
|
16751
16761
|
const $scope5_id = _scope_id();
|
|
16752
16762
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
16753
16763
|
const $scope6_id = _scope_id();
|
|
16754
|
-
_html(`<div${_attr_class("
|
|
16764
|
+
_html(`<div${_attr_class("_cv")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
16755
16765
|
_set_serialize_reason(2);
|
|
16756
16766
|
const $childScope5 = _peek_scope_id();
|
|
16757
16767
|
term_default({
|
|
@@ -16777,7 +16787,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
16777
16787
|
_if(() => {
|
|
16778
16788
|
if (!shownSessions.length && view === "term") {
|
|
16779
16789
|
const $scope7_id = _scope_id();
|
|
16780
|
-
_html(`<div${_attr_class("
|
|
16790
|
+
_html(`<div${_attr_class("_cm")}><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>`);
|
|
16781
16791
|
_script($scope7_id, "H39");
|
|
16782
16792
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
16783
16793
|
return 0;
|
|
@@ -16787,7 +16797,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
16787
16797
|
return 0;
|
|
16788
16798
|
} else if (ws) {
|
|
16789
16799
|
const $scope10_id = _scope_id();
|
|
16790
|
-
_html(`<p${_attr_class("
|
|
16800
|
+
_html(`<p${_attr_class("_cm")}>Loading sessions…</p>`);
|
|
16791
16801
|
writeScope($scope10_id, {});
|
|
16792
16802
|
return 1;
|
|
16793
16803
|
}
|
|
@@ -26226,4 +26236,4 @@ server.listen(port, () => {
|
|
|
26226
26236
|
//#endregion
|
|
26227
26237
|
export {};
|
|
26228
26238
|
|
|
26229
|
-
;var __MARKO_MANIFEST__={"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-
|
|
26239
|
+
;var __MARKO_MANIFEST__={"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-BG7XlCPT.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BG7XlCPT.css\"",">",2,"stylesheet#/assets/app-page-Dl6GaaKR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Dl6GaaKR.css\"",">"],"defer":[2,"/assets/w._-DqdzV-MH.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DqdzV-MH.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_C7fpvxku.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C7fpvxku.js\"",">",2,"modulepreload#/assets/_DO-1wrdg.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DO-1wrdg.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-BG7XlCPT.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BG7XlCPT.css\"",">",2,"stylesheet#/assets/app-page-Dl6GaaKR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Dl6GaaKR.css\"",">"],"defer":[2,"/assets/new-DqdzV-MH.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-DqdzV-MH.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_C7fpvxku.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C7fpvxku.js\"",">",2,"modulepreload#/assets/_DO-1wrdg.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DO-1wrdg.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-BG7XlCPT.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BG7XlCPT.css\"",">",2,"stylesheet#/assets/app-page-Dl6GaaKR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Dl6GaaKR.css\"",">"],"defer":[2,"/assets/w._-DWpX54fh.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DWpX54fh.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_C7fpvxku.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C7fpvxku.js\"",">",2,"modulepreload#/assets/_DO-1wrdg.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DO-1wrdg.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-BG7XlCPT.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BG7XlCPT.css\"",">",2,"stylesheet#/assets/app-page-Dl6GaaKR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Dl6GaaKR.css\"",">"],"defer":[2,"/assets/settings-DqdzV-MH.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-DqdzV-MH.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_C7fpvxku.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C7fpvxku.js\"",">",2,"modulepreload#/assets/_DO-1wrdg.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DO-1wrdg.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-BG7XlCPT.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BG7XlCPT.css\"",">",2,"stylesheet#/assets/app-page-Dl6GaaKR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Dl6GaaKR.css\"",">"],"defer":[2,"/assets/w-DqdzV-MH.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-DqdzV-MH.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_C7fpvxku.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C7fpvxku.js\"",">",2,"modulepreload#/assets/_DO-1wrdg.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DO-1wrdg.js\"",">"]},"_v":{"block":[2,"stylesheet#/assets/review-view-Buxhdl15.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/review-view-Buxhdl15.css\"",">",2,"stylesheet#/assets/icon-arrow-down-BG7XlCPT.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-BG7XlCPT.css\"",">"],"defer":[2,"/assets/review-view-o3qf1i3k.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/review-view-o3qf1i3k.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">"]}};
|